window.Modernizr=function(a,b,c){function z(a,b){for(var d in a)if(j[a[d]]!==c)return b=="pfx"?a[d]:!0;return!1}function y(a,b){return!!~(""+a).indexOf(b)}function x(a,b){return typeof a===b}function w(a,b){return v(m.join(a+";")+(b||""))}function v(a){j.cssText=a}var d="2.0.6",e={},f=b.documentElement,g=b.head||b.getElementsByTagName("head")[0],h="modernizr",i=b.createElement(h),j=i.style,k,l=Object.prototype.toString,m=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),n={},o={},p={},q=[],r=function(a,c,d,e){var g,i,j,k=b.createElement("div");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),k.appendChild(j);g=["­",""].join(""),k.id=h,k.innerHTML+=g,f.appendChild(k),i=c(k,a),k.parentNode.removeChild(k);return!!i},s,t={}.hasOwnProperty,u;!x(t,c)&&!x(t.call,c)?u=function(a,b){return t.call(a,b)}:u=function(a,b){return b in a&&x(a.constructor.prototype[b],c)};var A=function(c,d){var f=c.join(""),g=d.length;r(f,function(c,d){var f=b.styleSheets[b.styleSheets.length-1],h=f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"",i=c.childNodes,j={};while(g--)j[i[g].id]=i[g];e.touch="ontouchstart"in a||j.touch.offsetTop===9,e.csstransforms3d=j.csstransforms3d.offsetLeft===9},g,d)}([,["@media (",m.join("touch-enabled),("),h,")","{#touch{top:9px;position:absolute}}"].join(""),["@media (",m.join("transform-3d),("),h,")","{#csstransforms3d{left:9px;position:absolute}}"].join("")],[,"touch","csstransforms3d"]);n.touch=function(){return e.touch},n.csstransforms3d=function(){var a=!!z(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);a&&"webkitPerspective"in f.style&&(a=e.csstransforms3d);return a};for(var B in n)u(n,B)&&(s=B.toLowerCase(),e[s]=n[B](),q.push((e[s]?"":"no-")+s));v(""),i=k=null,e._version=d,e._prefixes=m,e.testProp=function(a){return z([a])},e.testStyles=r;return e}(this,this.document);(function(){fcmsJs.Class('fcmsUser_Site_ContentBox_AjaxContainer').construct(function(container,options){this._container=new fcmsLib_Utils_Dom_Element(container);this._layoutId=this._container.getAttribute('data-fCMS-id');this._contextLevel=this._container.getAttribute('data-fCMS-contextLevel');this._loader=null;if(typeof options==='undefined'){this._options={};}else{this._options=options;} this._pageContainer=[];this._pageContainerIndizes=[];this.setPageContainerIndex(10);if(options.loadCallbackFunction){this.loadCallbackFunction=options.loadCallbackFunction;} this._pageContainer[this.getPageContainerIndex()]=new fcmsUser_Layout_Container(this,this.findStartPage());this._pageContainerIndizes.push(this.getPageContainerIndex());this._semaphore=new fcmsLib_Utils_Semaphore(1);this.config={mainIndex:1,pages:3};this._touchIdentifier='';this._containerCoord={x:0,y:0};this._targetCoord={x:0,y:0};this._touchBeginCoord={x:0,y:0};this._touchEndCoord={x:0,y:0};Event.observe(window,'load',this.init.bind(this));}).method('getOption',function(key){if(this._options[key]){return this._options[key];} return null;}).method('getPageContainerIndizes',function(){return this._pageContainerIndizes;}).method('getPageCount',function(){return this.config.pages;}).method('useWebkitTransform',function(){return window.Modernizr.csstransforms3d;}).method('getMainIndex',function(){return this.config.mainIndex;}).method('setPageContainerIndex',function(index){this._actualPageContainerIndex=index;}).method('getPageContainerIndex',function(){return this._actualPageContainerIndex;}).method('getNextPageContainerIndex',function(){return this.getPageContainerIndex()+1;}).method('getPreviousPageContainerIndex',function(){return this.getPageContainerIndex()-1;}).method('getLoadCallbackFunction',function(){return this.loadCallbackFunction;}).method('executeCallbackFunction',function(){if(this.getLoadCallbackFunction()){var callbackFunctionName=this.getLoadCallbackFunction();if(typeof callbackFunctionName==='function'){callbackFunctionName();}else{fcmsJs.console.error(callbackFunctionName+' ist keine Funktion');}}}).method('raiseContainerIndex',function(){this._actualPageContainerIndex+=1;fcmsJs.console.debug('c-index raised auf '+this._actualPageContainerIndex);}).method('lowerContainerIndex',function(){this._actualPageContainerIndex-=1;fcmsJs.console.debug('c-index lowered auf '+this._actualPageContainerIndex);}).method('getNextFreeIndex',function(){for(var i=this.getPageContainerIndex();i<1000000;i++){if(typeof this._pageContainer[i]==='undefined'){return i;}} return null;}).method('getPreviousFreeIndex',function(){for(var i=this.getPageContainerIndex();i>-1000000;i--){if(typeof this._pageContainer[i]==='undefined'){return i;}} return null;}).method('getPageContainerViaIndex',function(index){return this._pageContainer[index];}).method('findLoaderContainer',function(){if(this.getOption('loaderContainerId')){if(document.getElementById(this.getOption('loaderContainerId'))){this._loader=new fcmsLib_Utils_Dom_Element(document.getElementById(this.getOption('loaderContainerId')));}}}).method('showLoader',function(){if(this._loader){this._loader.show();}}).method('hideLoader',function(){if(this._loader){this._loader.hide();}}).method('init',function(){this.findLoaderContainer();for(var i=0;ithis.getMainIndex()){this.createContainer(true);}} this._pageContainer[this.getPageContainerIndex()].registerControls();var forwardAction=this._pageContainer[this.getPageContainerIndex()].findForwardAction();if(forwardAction){this._pageContainer[this.getNextPageContainerIndex()].setup(this._layoutId,forwardAction,this._contextLevel);} var backwardAction=this._pageContainer[this.getPageContainerIndex()].findBackwardAction();if(backwardAction){this._pageContainer[this.getPreviousPageContainerIndex()].onSetupComplete.subscribe(function(){this.setupMain();this.hideLoader();this.executeCallbackFunction();}.bind(this));this._pageContainer[this.getPreviousPageContainerIndex()].setup(this._layoutId,backwardAction,this._contextLevel);}else{this.setupMain();this.hideLoader();this.executeCallbackFunction();}}).method('createContainer',function(greater){var index=0;if(greater===true){index=this.getNextPageContainerIndex();}else{index=this.getPreviousPageContainerIndex();} var elementCreator=new fcmsLib_Utils_Dom_Creator();var newElement=elementCreator.createElement('div');newElement.addClassName('fCMS_ajaxpage_section');newElement.setAttribute('data-fCMS-object','ajaxLayoutContainer');newElement.setAttribute('data-fCMS-index',index);if(greater===false){this._container.prependChild(newElement.getDomNode());}else{this._container.appendChild(newElement.getDomNode());} this._pageContainer[index]=new fcmsUser_Layout_Container(this,newElement.getDomNode());this._pageContainerIndizes.push(index);fcmsJs.console.debug('pc index '+index+' erstellt');}).method('deleteContainer',function(index){this._pageContainer[index].remove();this._pageContainer[index]=null;var containerIndex=$A(this._pageContainerIndizes).indexOf(index);if(containerIndex>-1){this._pageContainerIndizes.splice(containerIndex,1);} fcmsJs.console.debug('pc index '+index+' entfernt');}).method('setupMain',function(){var position=this._pageContainer[this.getPageContainerIndex()].getPosition();this._container.setLeft(position.left*-1);}).method('findStartPage',function(){var tmp=new fcmsLib_Utils_Dom_ElementSelector(this._container);return tmp.down('[data-fCMS-index="start"]');}).method('touchStart',function(event){event.preventDefault();if(this._semaphore.lock()!==true){return false;} this._touchIdentifier=event.changedTouches[0].identifier;var position=this._pageContainer[this.getPreviousPageContainerIndex()].getPosition();this._containerCoord.x=position.left;this._containerCoord.y=position.top;position=this._pageContainer[this.getPageContainerIndex()].getPosition();this._targetCoord.x=position.left;this._targetCoord.y=position.top;this._touchBeginCoord.x=event.targetTouches[0].pageX;this._touchBeginCoord.y=event.targetTouches[0].pageY;this._touchEndCoord.x=this._touchBeginCoord.x;this._touchEndCoord.y=this._touchBeginCoord.y;}).method('touchMove',function(event){event.preventDefault();if(this._touchIdentifier!=event.changedTouches[0].identifier){return false;} event.preventDefault();this._touchEndCoord.x=event.targetTouches[0].pageX;this._touchEndCoord.y=event.targetTouches[0].pageY;var distance=this._touchBeginCoord.x-this._touchEndCoord.x;var newLeft=this._containerCoord.x-distance;this.getPageContainerIndizes().each(function(newLeft,index){var moveContainer=this.getPageContainerViaIndex(index);moveContainer.transform(newLeft,0);}.bind(this,newLeft));}).method('touchEnd',function(event){event.preventDefault();if(this._touchIdentifier!=event.changedTouches[0].identifier){return false;} var changeX=this._touchBeginCoord.x-this._touchEndCoord.x;var newLeft=0;if(changeX>20){newLeft=this._targetCoord.x*-1;this.getPageContainerIndizes().each(function(newLeft,index){var moveContainer=this.getPageContainerViaIndex(index);if(index===this.getPreviousPageContainerIndex()){moveContainer._container.addEventListener('webkitTransitionEnd',function(){this._forward();}.bind(this),false);} moveContainer.transform(newLeft,'250ms');}.bind(this,newLeft));}else if(changeX<-20){newLeft=this._targetCoord.x;this.getPageContainerIndizes().each(function(newLeft,index){var moveContainer=this.getPageContainerViaIndex(index);if(index===this.getNextPageContainerIndex()){moveContainer._container.addEventListener('webkitTransitionEnd',function(){this._backward();}.bind(this),false);} moveContainer.transform(newLeft,'250ms');}.bind(this,newLeft));}else{this._semaphore.unlock();}}).method('touchCancel',function(event){event.preventDefault();this._semaphore.unlock();}).method('clickForward',function(){if(this._semaphore.lock()!==true){return false;} this._preForward();}).method('_preForward',function(){var startPosition=this._pageContainer[this.getPageContainerIndex()].getPosition();var endPosition=this._pageContainer[this.getNextPageContainerIndex()].getPosition();var difference=(endPosition.left-startPosition.left)*-1;if(this.useWebkitTransform()===true){var newLeft=startPosition.left*-1;this.getPageContainerIndizes().each(function(newLeft,index){var moveContainer=this.getPageContainerViaIndex(index);if(index===this.getPreviousPageContainerIndex()){moveContainer._container.addEventListener('webkitTransitionEnd',function(){this._forward();}.bind(this),false);moveContainer._container.addEventListener('transitionend',function(){this._forward();}.bind(this),false);moveContainer._container.addEventListener('MSTransitionEnd',function(){this._forward();}.bind(this),false);moveContainer._container.addEventListener('oTransitionEnd',function(){this._forward();}.bind(this),false);} moveContainer.transform(newLeft,'250ms');}.bind(this,newLeft));}else{var animationEffect={left:'+='+difference};var animationOptions={duration:'1500ms',complete:function(){this._forward();}.bind(this)};this._container.setAnimation(animationEffect,animationOptions);}}).method('_forwardEffectEnd',function(){if(this.useWebkitTransform()===true){this.getPageContainerIndizes().each(function(index){var moveContainer=this.getPageContainerViaIndex(index);moveContainer.transform(0,'0ms');}.bind(this));}else{var position=this._pageContainer[this.getPageContainerIndex()].getPosition();this._container.setLeft(position.left*-1);}}).method('_forward',function(){this.showLoader();this.deleteContainer(this.getPreviousPageContainerIndex());this.raiseContainerIndex();this._forwardEffectEnd();var forwardAction=this._pageContainer[this.getPageContainerIndex()].findForwardAction();if(forwardAction){this.createContainer(true);this._pageContainer[this.getNextPageContainerIndex()].onSetupComplete.subscribe(function(){this.hideLoader();this._semaphore.unlock();this.executeCallbackFunction();}.bind(this));if(typeof this._options.onForwardLoaded=="function"){this._pageContainer[this.getNextPageContainerIndex()].onSetupComplete.subscribe(this._options.onForwardLoaded);} this._pageContainer[this.getNextPageContainerIndex()].setup(this._layoutId,forwardAction,this._contextLevel);}else{this._semaphore.unlock();this.hideLoader();this.executeCallbackFunction();}}).method('clickBackward',function(){if(this._semaphore.lock()!==true){return false;} this._preBackward();}).method('_preBackward',function(){var startPosition=this._pageContainer[this.getPreviousPageContainerIndex()].getPosition();var endPosition=this._pageContainer[this.getPageContainerIndex()].getPosition();var difference=endPosition.left-startPosition.left;if(this.useWebkitTransform()===true){var newLeft=difference;this.getPageContainerIndizes().each(function(newLeft,index){var moveContainer=this.getPageContainerViaIndex(index);if(index===this.getNextPageContainerIndex()){moveContainer._container.addEventListener('webkitTransitionEnd',function(){this._backward();}.bind(this),false);moveContainer._container.addEventListener('transitionend',function(){this._backward();}.bind(this),false);moveContainer._container.addEventListener('MSTransitionEnd',function(){this._backward();}.bind(this),false);moveContainer._container.addEventListener('oTransitionEnd',function(){this._backward();}.bind(this),false);} moveContainer.transform(newLeft,'250ms');}.bind(this,newLeft));}else{var animationEffect={left:'+='+difference};var animationOptions={duration:'1500ms',complete:function(){this._backward();}.bind(this)};this._container.setAnimation(animationEffect,animationOptions);}}).method('_backEffectEnd',function(){if(this.useWebkitTransform()===true){this.getPageContainerIndizes().each(function(index){var moveContainer=this.getPageContainerViaIndex(index);moveContainer.transform(0,'0ms');}.bind(this));}else{var position=this._pageContainer[this.getPageContainerIndex()].getPosition();this._container.setLeft(position.left*-1);}}).method('_backward',function(){this.showLoader();var backwardAction=this._pageContainer[this.getPreviousPageContainerIndex()].findBackwardAction();if(backwardAction){this.deleteContainer(this.getNextPageContainerIndex());this.lowerContainerIndex();this.createContainer(false);this._pageContainer[this.getPreviousPageContainerIndex()].onSetupComplete.subscribe(function(){this._backEffectEnd();this._semaphore.unlock();this.hideLoader();this.executeCallbackFunction();}.bind(this));if(typeof this._options.onBackwardLoaded=="function"){this._pageContainer[this.getPreviousPageContainerIndex()].onSetupComplete.subscribe(this._options.onBackwardLoaded);} this._pageContainer[this.getPreviousPageContainerIndex()].setup(this._layoutId,backwardAction,this._contextLevel);}else{this._semaphore.unlock();this.hideLoader();this.executeCallbackFunction();}});})();fcmsJs.Class('fcmsUser_Site_ContentBox_SocialShare').construct(function(){this.options={};}).method('setContainerById',function(id){this.setContainer(new fcmsLib_Utils_Dom_Element(id));}).method('setContainer',function(e){this.container=e;}).method('setOptions',function(o){this.options=o;}).method('getOptions',function(){return this.options;}).method('getContainer',function(){return this.container;}).method('init',function(){jQuery(this.getContainer().getDomNode()).socialSharePrivacy(this.getOptions());});(function(){fcmsJs.Class('fcmsUser_Site_Utils_Touch_ToggleDisplay_Model').inherits(fcmsLib_Skeleton_Model).construct(function construct(){this.uber("construct");}).method('setToggleSelectors',function setToggleSelectors(selectors){this.data.toggleSelectors=selectors;}).method('getToggleSelectors',function getToggleSelectors(){if(typeof this.data.toggleSelectors=="undefined"){this.data.toggleSelectors=[];} return this.data.toggleSelectors;}).method('setBlockSelectors',function setBlockSelectors(selectors){this.data.blockSelectors=selectors;}).method('getBlockSelectors',function getBlockSelectors(){if(typeof this.data.blockSelectors=="undefined"){this.data.blockSelectors=[];} return this.data.blockSelectors;}).method('setTapCount',function setTapCount(count){this.data.tapCount=count;}).method('getTapCount',function getTapCount(){if(typeof this.data.tapCount=="undefined"){this.data.tapCount=0;} return this.data.tapCount;}).method('setInterval',function setInterval(interval){this.data.interval=interval;}).method('getInterval',function getInterval(){if(typeof this.data.interval=="undefined"){this.data.interval=0;} return this.data.interval;}).method('isVisible',function isVisible(visible){if(typeof visible=="boolean"){this.data.visible=visible;} if(typeof this.data.visible=="undefined"){this.data.visible=true;} return this.data.visible;}).method('isBlocked',function isBlocked(blocked){if(typeof blocked=="boolean"){this.data.blocked=blocked;} if(typeof this.data.blocked=="undefined"){this.data.blocked=false;} return this.data.blocked;});})();(function(){fcmsJs.Class('fcmsUser_Site_Utils_Touch_ToggleDisplay').inherits(fcmsLib_Skeleton_Controller).construct(function(toggleElements,blockElements,configuration){configuration=configuration||{};configuration.toggleElements=toggleElements;configuration.blockElements=blockElements;this._evaluateConfiguration(configuration);}).method("run",function run(){this._createBlocker();var tap=new fcmsLib_Utils_Event_Touch_Tap({"count":this.getModel().getTapCount(),"interval":this.getModel().getInterval()});tap.setHandler(this.toggle.bind(this));tap.bind(new fcmsLib_Utils_Dom_Element("body"),false);}).method('update',function update(){if(this.getModel().isVisible()){this.show();}else{this.hide();}}).method('hide',function hide(){this._forall(function(element){element.hide();});this.getModel().isVisible(false);}).method('show',function show(){this._forall(function(element){element.show();});this.getModel().isVisible(true);}).method('toggle',function toggle(){if(this.getModel().isBlocked()){this.getModel().isBlocked(false);return;} var visible=this.getModel().isVisible();this._forall(function(element){if(visible){element.hide();}else{element.show();}});this.getModel().isVisible(!visible);}).method('_forall',function _forall(method){if(typeof method!="function"){throw new fcmsLib_Core_Exception("Keine Togglefunktion angegeben.");} fcmsLib_Core_Array.each(this.getModel().getToggleSelectors(),function(selector){try{var group=new fcmsLib_Utils_Dom_Group(selector);fcmsLib_Core_Array.each(group.get(),function(element){method(element);});}catch(fcmsException){fcmsJs.console.error("Das Element ist nicht vorhanden: "+fcmsException.getMessage());}});}).method('_createBlocker',function _createBlocker(){var blocker=[];fcmsLib_Core_Array.each(this.getModel().getBlockSelectors(),function(selector){var tapBlock=new fcmsLib_Utils_Event_Touch_Tap({"count":this.getModel().getTapCount(),"interval":this.getModel().getInterval(),"preventDefault":true,"stopPropagation":true});tapBlock.setHandler(function(){this.getModel().isBlocked(true);}.bind(this));tapBlock.bind(selector,true);blocker.push(tapBlock);}.bind(this));this._setBlockElements(blocker);}).method('_setBlockElements',function _setBlockElements(blocker){this._blockElements=blocker;}).method('_getBlockElements',function _getBlockElements(){if(typeof this._blockElemens=="undefined"){this._blockElements=[];} return this._blockElements;}).method('_evaluateConfiguration',function _evaluateConfiguration(configuration){this._model=new fcmsUser_Site_Utils_Touch_ToggleDisplay_Model();this.getModel().setToggleSelectors(configuration.toggleElements||this.getModel().getToggleSelectors());this.getModel().setBlockSelectors(configuration.blockElements||this.getModel().getBlockSelectors());this.getModel().setTapCount(configuration.tapCount||this.getModel().getTapCount());this.getModel().setInterval(configuration.interval||this.getModel().getInterval());this.getModel().isVisible(configuration.visible||this.getModel().isVisible());});})();if(typeof fcmsJs==="object"){fcmsJs.loaded("fcmsUser_Site");}