(function($){$.fn.center=function(){var settings=arguments[0]||{},windowWidth=$(window).width(),windowHeight=$(window).height();settings=$.extend({offsetTop:0,offsetLeft:0},settings);return $(this).each(function(){var img=$(this).find('img'),el={w:$(this).innerWidth(),h:$(this).innerHeight()};if(typeof settings!=='undefined'&&settings==='none'){$(this).css({top:'auto',left:'auto',marginTop:0,marginLeft:0,position:'relative'});return $(this);} if(img.length>0) el={w:img.width()||img.data('width'),h:img.height()||img.data('height')};if(el.w>windowWidth) el.w=false;if(el.h>windowHeight) el.h=false;if(typeof settings.left!=='undefined') el.w=settings.left;$(this).css($.extend({'position':'fixed','left':el.w?'50%':0,'top':el.h?'50%':0},settings));$(this).css({'margin-left':el.w?-((el.w/2)+settings.offsetLeft)+'px':0,'margin-top':el.h?-((el.h/2)+settings.offsetTop)+'px':0});return $(this);});};})(jQuery);;(function($,window){"use strict";var SKRL=function(){var selfObj=this;this.item=false;this.init=function(element){selfObj=this;selfObj.index=0;selfObj.groups={};selfObj.groupDone={};selfObj.groupEnter={};selfObj.groupStatus={};selfObj.allReady=false;selfObj.scrollPause=false;selfObj.active=0;selfObj.firstScroll=false;selfObj.scrollDirection='down';selfObj.preventScrollPosition=0;selfObj.initialScrollTimeout=false;selfObj.requestAnim=false;selfObj.lastTouchPosition=0;selfObj.element=element;selfObj.resizeImageTimeout=false;selfObj.container=$(window);selfObj.containerScroll=selfObj.scrollTop();$(element).addClass('parallax_wrapper');if(selfObj.initialScroll!==false&&selfObj.noScrollingBeforeInitialScroll===true){selfObj.scrollTop(0);$('html,body').css({position:'relative',width:$('body').innerWidth(),'overflow-y':'hidden'});}else if(selfObj.initialScroll===false)this.internNoInitialScroll();if(selfObj.groupAttr) $(element).find(selfObj.skrlClass).each(function(key,value){if(typeof selfObj.groups[$(this).attr(selfObj.groupAttr)]==="undefined") selfObj.groups[$(this).attr(selfObj.groupAttr)]={};if(typeof selfObj.groupEnter[$(this).attr(selfObj.groupAttr)]==="undefined") selfObj.groupEnter[$(this).attr(selfObj.groupAttr)]={};if($(this).is('.hide,.invisible')) $(this).hidden=true;selfObj.groups[$(this).attr(selfObj.groupAttr)][key]=$(this);selfObj.groupEnter[$(this).attr(selfObj.groupAttr)][key]=false;selfObj.groupDone[$(this).attr(selfObj.groupAttr)]=false;});else selfObj.groups['standard']=$(selfObj.skrlClass);$.each(selfObj.groups,function(key,group){if(selfObj.infiniteScroll!==false&&!group[(selfObj.count(group)-1)].is('.infinite_parallax')){var newItem=group[selfObj.infiniteScroll].clone(true);newItem.appendTo(group[selfObj.infiniteScroll].parent());newItem.addClass('infinite_parallax');group[selfObj.count(group)]=newItem;} selfObj.groupParalax(key,group);});return;};this.is_int=function(n){return n%1===0;};this.scrollTop=function(){var value=arguments[0];if(!value) return selfObj.container.scrollTop();selfObj.container.scrollTop(value);};this.groupParalax=function(key,group){selfObj.items=group;selfObj.countItems=selfObj.count(selfObj.items);selfObj.items[0].addClass('parallax_first');selfObj.items[(selfObj.countItems-(selfObj.inviniteScroll!==false?2:1))].addClass('parallax_last');selfObj.loadNext();};this.loadNext=function(){var helperHight=0,$distanzer='',index=arguments[0]||selfObj.index,actItem=selfObj.items[index],$helper=null;if(typeof selfObj.items[index]==='undefined') return false;$helper=actItem.children(selfObj.helper);selfObj.index=index;actItem.skrlLoaded=true;actItem.setStatus='';actItem.enterState={up:false,down:false};if(!actItem.is('.hide,.invisible')&&selfObj.infiniteScroll!==false&&(index)0){actItem.find(selfObj.helper).each(function(){helperHight+=$(this).outerHeight();});}else helperHight=actItem.height();$distanzer=$('
').insertBefore(actItem);if(selfObj.infiniteScroll===false||index>=selfObj.infiniteScroll) $distanzer.css({height:Math.max(selfObj.container.height(),helperHight),width:'100%',overflow:'hidden',display:(selfObj.disabled?'none':'block')});} else if(!selfObj.disabled)selfObj.showDistanzer(actItem);if(!selfObj.disabled) selfObj.prepareItem(actItem,index);if($helper.length>0&&selfObj.animateHelpers!==false&&index>=selfObj.animateHelpers){$helper.data('top',$helper.offset().top);$helper.css({top:selfObj.container.height(),left:0,marginTop:0,position:'absolute'});} if(selfObj.loadImgFirst&&selfObj.items[index].find('img').length>0){selfObj.loadImage(selfObj.items[index].find('img').eq(0),selfObj.loadNext,index);}else{selfObj.resize({data:{index:index,scroll:true}});selfObj.container.bind('resize',{index:index},selfObj.resize);if(typeof selfObj.items[(index+1)]!=='undefined') selfObj.loadNext((index+1));else selfObj.loaded();}};this.prepareItem=function(actItem,index){var $helper=actItem.children(selfObj.helper),itemHeight=0,helperHight=0,data=arguments[2]||{},zIndex=(selfObj.count(selfObj.items)-index);if($helper.length>0) $helper.each(function(){helperHight+=$(this).outerHeight();});itemHeight=Math.max(selfObj.container.height(),helperHight);if(!actItem.is('.hide,.invisible')&&(selfObj.infiniteScroll===false||(index)>=selfObj.infiniteScroll)){actItem.addClass('active_parallax').data('top',actItem.offset().top).css({top:actItem.offset().top,left:0,height:selfObj.container.height(),zIndex:zIndex,position:'absolute'}).data('zindex',zIndex);actItem.setStatus='';actItem.hidden=true;} else actItem.css('z-index',(selfObj.count(selfObj.items)-index));if((selfObj.infiniteScroll===false||index<=selfObj.infiniteScroll)) $('body,html').height(actItem.height());selfObj.index=index;selfObj.resize({data:$.extend({index:index},data)});selfObj.container.bind('resize',{index:index,realScroll:true},selfObj.resize);selfObj.scroll({data:$.extend({index:index,stat:true},data)});selfObj.container.bind('scroll',{index:index,realScroll:true},selfObj.scroll);};this.loadImage=function(img,callAfter){var src=img.attr("src"),newImage=null,index=arguments[2]||null;if(typeof img.data('src')!=='undefined') src=img.data('src');if(typeof img.data('imgtype')!=='undefined'){var types=img.data('imgtype').split(','),screenSize=selfObj.getScreenSize(),_setup=false,_size='';$.each(types,function(key,value){var _value=value.split(':');if(_value[0]==screenSize){_setup=true;src=src.replace('##ReplaceImgType##',_value[1]);} _size=_value[1];});if(!_setup) src=src.replace('##ReplaceImgType##',_size);} if(typeof img.data('src')!=='undefined'){img.attr('src',src);} if(typeof img.data('loaded')==='undefined'){img.load(function(){if(!$('body').is('.firefox,.gecko')) img.css({width:'auto',height:'auto'});selfObj.fullscreenImage(img);img.data('loaded',1);selfObj.container.bind('resize',{index:index},selfObj.resize);if(typeof selfObj.items[(index+1)]!=='undefined'){callAfter((index+1));} else selfObj.loaded();}).each(function(){if(this.complete) $(this).trigger('load');});}else if(typeof selfObj.items[(index+1)]!=='undefined'){callAfter((index+1));}};this.loaded=function(){var initTime=parseInt(new Date().getTime()-selfObj.initTime,10);selfObj.allReady=true;selfObj.ready();if(selfObj.initialScroll!==false){selfObj.scroll({data:{index:0,active:true,stat:true}});selfObj.items[0].click(function(){clearTimeout(selfObj.initialScrollTimeout);selfObj.items[0].animate({top:'-100%'},Math.max(700,selfObj.container.height()),function(){if(selfObj.noScrollingBeforeInitialScroll){$('html,body').css({width:'100%',position:'static','overflow-y':'scroll'});$('html').css('overflow','');} selfObj.items[0].hidden=true;selfObj.items[0].addClass('hide invisible');selfObj.internAfterInitialScroll();selfObj.active=1;selfObj.firstScroll=true;});}).bind('tap',function(){$(this).trigger('click');});selfObj.initialScrollTimeout=setTimeout(function(){selfObj.items[0].animate({top:'-100%'},Math.max(700,selfObj.container.height()),function(){if(selfObj.noScrollingBeforeInitialScroll){$('html,body').css({width:'100%',position:'static','overflow-y':'scroll'});$('html').css('overflow','');} selfObj.items[0].hidden=true;selfObj.items[0].addClass('hide invisible');selfObj.internAfterInitialScroll();selfObj.active=1;selfObj.firstScroll=true;});},parseInt(selfObj.initialScroll,10)+initTime);}else selfObj.active=1;};this.resize=function(e){var itemHeight=0,helperHight=0,actItem=selfObj.items[e.data.index],helper=actItem.children(selfObj.helper),image=$(actItem).find('.image_wrapper img');if(!selfObj.disabled){selfObj.scrollTop(1);selfObj.scrollDirection='down';helper.each(function(){helperHight+=$(this).outerHeight();});itemHeight=Math.max(selfObj.container.height(),helperHight);if(e.data.index>0) $(actItem).css({top:0,left:0,position:'fixed',height:selfObj.container.height()});else{$(actItem).css({height:selfObj.container.height()});} if(!$(actItem).is('.hide,.invisible')&&(selfObj.infiniteScroll===false||(e.data.index)>=selfObj.infiniteScroll)){$(actItem).prev('.parallax_distanzer').height(itemHeight);} $(actItem).find('.image_wrapper').height(selfObj.container.height());if(image.length>0){if(!$('body').is('.firefox,.gecko')) image.css({width:'auto',height:'auto'});selfObj.fullscreenImage(image);} $(actItem).data('top',$(actItem).prev('.parallax_distanzer').eq(0).offset().top);if(e.data.scroll===true){selfObj.scroll({data:{index:e.data.index,active:true,stat:true}});selfObj.container.bind('scroll',{index:e.data.index,realScroll:true},selfObj.scroll);}}};this.scroll=function(e){var actItem=selfObj.items[e.data.index],oLeft=selfObj.items[e.data.index].offset().left,fixed=null;selfObj.containerScroll=selfObj.scrollTop();if(!selfObj.disabled){switch(selfObj.mode){case'bottom':selfObj.bottomParallax(actItem,e.data);break;case'stack':selfObj.stackParallax(actItem,e.data);break;default:selfObj.standardParallax(actItem,e.data);}} if(selfObj.preventScrollPosition>selfObj.scrollTop()) selfObj.scrollDirection='up';if(selfObj.preventScrollPosition10){nextItem.setStatus='fixed';selfObj.active=1;selfObj.firstScroll=true;nextItem.data('top',Math.max(0,($helper.height()-winHeight)));clearTimeout(selfObj.initialScrollTimeout);if(!actItem.is('.hide,.invisible')){selfObj.items[0].animate({top:'-100%'},Math.max(700,selfObj.container.height()),function(){if(selfObj.noScrollingBeforeInitialScroll){$('html,body').css({width:'100%',position:'static','overflow-y':'scroll'});$('html').css('overflow','');} selfObj.items[0].hidden=true;selfObj.items[0].addClass('hide invisible');selfObj.internAfterInitialScroll();});}}} if(selfObj.active&&selfObj.scrollDirection=='up'&&(selfObj.infiniteScroll!==false&&itemIndex===selfObj.infiniteScroll)){if(selfObj.scrollTop()<=distanzer.offset().top){selfObj.scrollDirection='up';$.each(selfObj.items,function(key){selfObj.items[key].enterState={up:true,down:true};});if(selfObj.items[(selfObj.count(selfObj.items)-1)].prev('.parallax_distanzer').length>=1) $('html, body').scrollTop(selfObj.items[(selfObj.count(selfObj.items)-1)].prev('.parallax_distanzer').offset().top-1);}} if(selfObj.active!==0&&data.realScroll===true&&itemBottom<=selfObj.scrollTop()){if(typeof nextItem!=='undefined') nextItem.setStatus='fixed';} if(typeof nextItem!=='undefined'){if(actItem.data('top')=selfObj.infiniteScroll) nextItem.data('top',itemBottom);var posItemBottom=(itemBottom+(itemIndex>=selfObj.infiniteScroll?Math.max(0,$helper.height()-winHeight):0));if(posItemBottom<(selfObj.scrollTop()+(itemIndex=selfObj.infiniteScroll?winHeight:0));else nextItem.css('top','');var $actHelper=actItem.find(selfObj.helper),helperOffset=((selfObj.container.height()-$helper.innerHeight())/2),top=itemBottom-selfObj.scrollTop();if($helper.height()=windowScrollHeight||(itemBottomwinheight){image.css({width:winwidth+'px',height:heightdiff+'px'});}else{image.css({width:widthdiff+'px',height:winheight+'px'});} if(image.width()>selfObj.container.width()) image.css('margin-left',-((image.width()-selfObj.container.width())/2));else image.css('margin-left','');if(imgheight>selfObj.container.height()) image.css('margin-top',-((image.height()-selfObj.container.height())/2));else image.css('margin-top','');};this.showDistanzer=function(actItem){actItem.prev('.parallax_distanzer').show();};this.hideDistanzer=function(){$('.parallax_distanzer').hide();};this.getScreenSize=function(){var init=0,lastKey=0,sizeState='bigscreen';$.each(selfObj.sizes,function(key,size){init=lastKey;if(selfObj.container.width()>=init&&selfObj.container.width()<=size) sizeState=key;lastKey=size-1;});return sizeState;};this.scrollTo=function(index){var actItem=selfObj.items[index],scrollTo=actItem.prev('.parallax_distanzer').offset().top;actItem.enterState={up:false,down:false};$('body').addClass('switchState');selfObj.scrollPause=true;document.onmousewheel=function(){selfObj.stopWheel();};if(document.addEventListener) document.addEventListener('DOMMouseScroll',selfObj.stopWheel,false);$('html,body').stop().animate({scrollTop:scrollTo},550,function(){selfObj.scrollPause=false;$('body').removeClass('switchState');document.onmousewheel=null;if(document.addEventListener) document.removeEventListener('DOMMouseScroll',selfObj.stopWheel,false);});};this.restart=function(){selfObj.disabled=false;selfObj.index=0;$(selfObj.element).removeClass('parallax_disabled');if(typeof selfObj.items!=='undefined'){if(selfObj.infiniteScroll!==false) selfObj.items[(selfObj.count(selfObj.items)-1)].show();selfObj.loadNext();} return selfObj;};this.disable=function(){selfObj.disabled=true;$(selfObj.element).addClass('parallax_disabled');selfObj.container.unbind('resize',selfObj.resize);selfObj.container.unbind('scroll',selfObj.scroll);if(typeof selfObj.items!=='undefined') $.each(selfObj.items,function(key){selfObj.resetItem($(this),key);});selfObj.hideDistanzer();return selfObj;};this.resetItem=function(actItem,index){if(selfObj.infiniteScroll===false||index>=selfObj.infiniteScroll){actItem.removeClass('active_parallax').data('top',actItem.offset().top).css({top:'',left:'',width:'',height:'',display:'block',position:''}).find('.image_wrapper').css('height','').find('img').css({width:'',height:'',marginLeft:'',marginTop:''});if(selfObj.helper) actItem.find(selfObj.helper).css({top:'',left:'',marginTop:'',position:''});if(index==selfObj.count(selfObj.items)-1) actItem.hide();} selfObj.items[index].setStatus='scroll';selfObj.items[index].enterState={up:false,down:false};selfObj.resetObjects(selfObj.groupDone);selfObj.resetObjects(selfObj.groupEnter);$('body').removeClass('switchState');document.onmousewheel=null;if(document.addEventListener) document.removeEventListener('DOMMouseScroll',selfObj.stopWheel,false);};this.resetObjects=function(obj){$.each(obj,function(group){$.each(obj[group],function(item,value){if(item!=='length'&&typeof obj[group]!=='undefined'&&typeof obj[group][item]!=='undefined') obj[group][item]=null;});});};};$.fn.skrl=function(settings){if(!settings) settings={};return this.each(function(key,item){var Skrl=new SKRL();if(typeof item.skrlActive!=='undefined'&&item.skrlActive) return false;item.skrlActive=true;Skrl=$.extend(settings,Skrl);Skrl=$.extend({noScrollingBeforeInitialScroll:settings.noScrollingBeforeInitialScroll||false,sizes:settings.sizes||{smart:768,ipad:1024,desktop:1365},initTime:settings.initTime||new Date().getTime(),helper:settings.helper||'p',hideItemBeforInfinite:settings.hideItemBeforInfinite||true,infiniteScroll:settings.infiniteScroll||1,minHeight:settings.minHeight||0,initialScroll:settings.initialScroll||false,scrollToIndex:settings.scrollToIndex||1,animateHelpers:settings.animateHelpers||false,disabled:settings.disabled||false,offsetLast:settings.offsetLast||{bottom:0,top:0},mode:settings.mode||'stack',hideLowerElements:settings.hideLowerElements||true,groupAttr:settings.groupAttr||false,skrlClass:settings.skrlClass||'.parallax',loadImgFirst:settings.loadImgFirst||true,activeClass:settings.activeClass||'active',lastItem:settings.lastItem||function(){},ready:settings.ready||function(){},},Skrl);Skrl.init(this);item.skrl=Skrl;});};})(jQuery,window);;(function($){$.fn.accordion=function(settings){var items=$(this),scrollToTimeOut=0;if(!settings)settings={};settings=$.extend({toggler:settings.toggler||'h2',fadeOut:{opacity:0,maxHeight:0},delay:settings.delay||0,scrollTo:settings.scrollTo||300,resize:function(e){var content=e.data.content,container=e.data.container;content.each(function(){var height=$(this).css({display:'block',maxHeight:'none'}).outerHeight();$(this).css('max-height',0);$(this).data('height',height);if(container.is('.accordion_active')) $(this).css({maxHeight:$(this).data('height'),display:'block'});});},is_touch_device:function(){try{document.createEvent("TouchEvent");return true;}catch(e){return false;}}},settings);return this.each(function(){var toggler=$(this).find(settings.toggler),container=toggler.parent(),content=toggler.nextAll();if(typeof this.accordion==='undefined'){this.accordion=true;container.addClass('accordion_start');toggler.addClass('accorion_toggler');content.addClass('accorion_content');settings.resize({data:{container:container,content:content}});$(window).bind('resize',{container:container,content:content},settings.resize);toggler.bind('click',function(){clearTimeout(scrollToTimeOut);items.not(container).removeClass('accordion_active').find(settings.toggler).nextAll().css(settings.fadeOut);if(container.is('.accordion_active')){container.removeClass('accordion_active');content.css(settings.fadeOut);} else{if(settings.scrollTo!==false){var offsetTop=2,windowWidth=$(window).width();if(windowWidth<1365) offsetTop=3;if(windowWidth<1024) offsetTop=0;if(windowWidth<768) offsetTop=5;if(settings.delay===0){var scrollTo=toggler.offset().top;if($(window).width()<768) scrollTo-=$('.header').height();$('html,body').scrollTop(scrollTo+offsetTop);} else{scrollToTimeOut=setTimeout(function(){var scrollTo=toggler.offset().top;if($(window).width()<768) scrollTo-=$('.header').height();$('html,body').scrollTop(scrollTo-offsetTop);},settings.delay);}} container.addClass('accordion_active');content.each(function(){$(this).css({opacity:1,display:'block',maxHeight:$(this).data('height')});});}});}});};})(jQuery);;(function($){"use strict";var Sws=function() {var selfObj=this;this.item=false;this.active=1;this.activeItem=0;this.timeout=null;this.css3=false;this.init=function(elem) {var support=false;selfObj=this;this.elem=elem;this.elem.sliderActive=true;this.item=$(this.elem);if((support=this.checkSupport('animation'))) this.cssAnimation(support);if((support=this.checkSupport('transition'))) this.cssTransition(support);if(!this.css3) this.item.addClass('noCSS3');this.countItems=$(this.elem).find(this.items).length;$(this.elem).find(this.items).first().addClass('slider_first');if(this.countItems<2) return false;if(this.navigation) this.addNavigation();this.after();if(this.autoplay) this.timeout=setTimeout(this.next,this.intervall);};this.cssAnimation=function(prop) {this.css3=true;this.item.addClass('sw_slider_animation');};this.cssTransition=function() {this.css3=true;this.item.addClass('sw_slider_transition');};this.addNavigation=function() {selfObj.navigation=$('
').appendTo(this.item);$('').appendTo(selfObj.navigation).click(selfObj.prev);for(var i=0;i').appendTo(selfObj.navigation).click(selfObj.slideTo);$('').appendTo(selfObj.navigation).click(selfObj.next);};this.slideTo=function() {var action=selfObj.next,activeItem=false;if(selfObj.stopped) return false;selfObj.before();if(selfObj.activeItem==($(this).index()-1)) return false;if(selfObj.activeItem<($(this).index()-1)) {activeItem=selfObj.item.find(selfObj.items).removeClass('next').removeClass('prev').eq(selfObj.activeItem).addClass('next');if(!selfObj.css3) activeItem.css('left',0).animate({'left':'-100%'},selfObj.speed);selfObj.activeItem=$(this).index()-1;activeItem=selfObj.item.find(selfObj.items).removeClass('activeNext').removeClass('activePrev').eq(selfObj.activeItem).addClass('activeNext');if(!selfObj.css3) activeItem.css('left','100%').animate({'left':'0'},selfObj.speed);} else {activeItem=selfObj.item.find(selfObj.items).removeClass('next').removeClass('prev').eq(selfObj.activeItem).addClass('prev');if(!selfObj.css3) activeItem.css('left',0).animate({'left':'100%'},selfObj.speed);selfObj.activeItem=$(this).index()-1;activeItem=selfObj.item.find(selfObj.items).removeClass('activeNext').removeClass('activePrev').eq(selfObj.activeItem).addClass('activePrev');if(!selfObj.css3) activeItem.css('left','-100%').animate({'left':0},selfObj.speed);} selfObj.after();if(selfObj.active&&selfObj.autoplay) selfObj.timeout=setTimeout(action,selfObj.intervall);};this.next=function() {var activeItem=false;if(selfObj.stopped) return false;selfObj.before();activeItem=selfObj.item.find(selfObj.items).removeClass('next').removeClass('prev').eq(selfObj.activeItem).addClass('next');if(!selfObj.css3) activeItem.css('left',0).animate({'left':'-100%'},selfObj.speed);selfObj.activeItem++;if(selfObj.activeItem>=selfObj.countItems) selfObj.activeItem=0;activeItem=selfObj.item.find(selfObj.items).removeClass('activePrev').removeClass('activeNext').eq(selfObj.activeItem).addClass('activeNext');if(!selfObj.css3) activeItem.css('left','100%').animate({'left':'0'},selfObj.speed);selfObj.after();if(selfObj.active&&selfObj.autoplay) selfObj.timeout=setTimeout(selfObj.next,selfObj.intervall);};this.prev=function() {var activeItem=false;if(selfObj.stopped) return false;selfObj.before();activeItem=selfObj.item.find(selfObj.items).removeClass('next').removeClass('prev').eq(selfObj.activeItem).addClass('prev');if(!selfObj.css3) activeItem.css('left',0).animate({'left':'100%'},selfObj.speed);selfObj.activeItem--;if(selfObj.activeItem<0) selfObj.activeItem=selfObj.countItems-1;activeItem=selfObj.item.find(selfObj.items).removeClass('activePrev').removeClass('activeNext').eq(selfObj.activeItem).addClass('activePrev');if(!selfObj.css3) activeItem.css('left','-100%').animate({'left':'0'},selfObj.speed);selfObj.after();if(selfObj.active) selfObj.timeout=setTimeout(selfObj.prev,selfObj.intervall);};this.before=function() {clearTimeout(selfObj.clickTimeout);if(selfObj.clickStop) selfObj.stopped=true;selfObj.clickTimeout=setTimeout(function(){selfObj.stopped=false;},selfObj.clickStop);clearTimeout(selfObj.timeout);selfObj.item.find(selfObj.items).removeClass('slider_first');selfObj.onBefore(selfObj.activeItem);};this.after=function() {if(selfObj.navigation) selfObj.navigation.find('span').removeClass('active').eq((selfObj.activeItem+1)).addClass('active');selfObj.onAfter(selfObj.item.find(selfObj.items).eq(selfObj.activeItem),selfObj.activeItem+1);};this.checkSupport=function(prop) {var div=document.createElement('div'),vendors='Khtml Ms O Moz Webkit'.split(' '),len=vendors.length;return(function(prop) {if(prop in div.style)return prop;prop=prop.replace(/^[a-z]/,function(val){return val.toUpperCase();});while(len--){if(vendors[len]+prop in div.style){return vendors[len]+prop;}} return false;})(prop);};};$.fn.slider=function(settings) {var slider={};return this.each(function(key,item) {var SWS=new Sws();if(typeof item.sliderActive!=='undefined'&&item.sliderActive) return false;item.sliderActive=true;if(!settings) settings={};this.sliderActive=true;SWS=$.extend(settings,SWS);SWS=$.extend({autoplay:settings.autoplay||true,clickStop:settings.clickStop||false,navigation:settings.navigation||false,items:settings.items||'img',intervall:settings.intervall||4000,speed:settings.speed||4000,delay:settings.delay||1000,onAfter:settings.onAfter||function(){},onBefore:settings.onBefore||function(){}},SWS);SWS.init(this);slider[$(this).attr('id')]=SWS;});};})(jQuery);;window.Modernizr=function(a,b,c){function z(a){j.cssText=a}function A(a,b){return z(m.join(a+";")+(b||""))}function B(a,b){return typeof a===b}function C(a,b){return!!~(""+a).indexOf(b)}function D(a,b){for(var d in a){var e=a[d];if(!C(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function E(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:B(f,"function")?f.bind(d||b):f}return!1}function F(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+o.join(d+" ")+d).split(" ");return B(b,"string")||B(b,"undefined")?D(e,b):(e=(a+" "+p.join(d+" ")+d).split(" "),E(e,b,c))}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n="Webkit Moz O ms",o=n.split(" "),p=n.toLowerCase().split(" "),q={},r={},s={},t=[],u=t.slice,v,w=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},x={}.hasOwnProperty,y;!B(x,"undefined")&&!B(x.call,"undefined")?y=function(a,b){return x.call(a,b)}:y=function(a,b){return b in a&&B(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=u.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(u.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(u.call(arguments)))};return e}),q.csstransforms=function(){return!!F("transform")},q.csstransforms3d=function(){var a=!!F("perspective");return a&&"webkitPerspective"in g.style&&w("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=b.offsetLeft===9&&b.offsetHeight===3}),a},q.cssanimations=function(){return F("animationName")};q.csstransitions=function(){return F("transition")};for(var G in q)y(q,G)&&(v=G.toLowerCase(),e[v]=q[G](),t.push((e[v]?"":"no-")+v));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)y(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},z(""),i=k=null,e._version=d,e._prefixes=m,e._domPrefixes=p,e._cssomPrefixes=o,e.testProp=function(a){return D([a])},e.testAllProps=F,e.testStyles=w,e.prefixed=function(a,b,c){return b?F(a,b,c):F(a,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+t.join(" "):""),e}(this,this.document);(function(factory){if(typeof define==='function'&&define.amd){define(['jquery','modernizr'],factory);}else{window.Shuffle=factory(window.jQuery,window.Modernizr);}})(function($,Modernizr,undefined){'use strict';if(typeof Modernizr!=='object'){throw new Error('Shuffle.js requires Modernizr.\n'+'http://vestride.github.io/Shuffle/#dependencies');} function dashify(prop){if(!prop){return'';} return prop.replace(/([A-Z])/g,function(str,m1){return'-'+m1.toLowerCase();}).replace(/^ms-/,'-ms-');} var TRANSITION=Modernizr.prefixed('transition');var TRANSITION_DELAY=Modernizr.prefixed('transitionDelay');var TRANSITION_DURATION=Modernizr.prefixed('transitionDuration');var TRANSITIONEND={'WebkitTransition':'webkitTransitionEnd','transition':'transitionend'}[TRANSITION];var TRANSFORM=Modernizr.prefixed('transform');var CSS_TRANSFORM=dashify(TRANSFORM);var CAN_TRANSITION_TRANSFORMS=Modernizr.csstransforms&&Modernizr.csstransitions;var HAS_TRANSFORMS_3D=Modernizr.csstransforms3d;var SHUFFLE='shuffle';var COLUMN_THRESHOLD=0.3;var ALL_ITEMS='all';var FILTER_ATTRIBUTE_KEY='groups';var DEFAULT_SCALE=1;var CONCEALED_SCALE=0.001;function throttle(func,wait,options){var context,args,result;var timeout=null;var previous=0;options=options||{};var later=function(){previous=options.leading===false?0:$.now();timeout=null;result=func.apply(context,args);context=args=null;};return function(){var now=$.now();if(!previous&&options.leading===false){previous=now;} var remaining=wait-(now-previous);context=this;args=arguments;if(remaining<=0||remaining>wait){clearTimeout(timeout);timeout=null;previous=now;result=func.apply(context,args);context=args=null;}else if(!timeout&&options.trailing!==false){timeout=setTimeout(later,remaining);} return result;};} function each(obj,iterator,context){for(var i=0,length=obj.length;i-1;}};Shuffle.prototype._toggleFilterClasses=function($filtered,$concealed){$filtered.removeClass(Shuffle.ClassName.CONCEALED).addClass(Shuffle.ClassName.FILTERED);$concealed.removeClass(Shuffle.ClassName.FILTERED).addClass(Shuffle.ClassName.CONCEALED);};Shuffle.prototype._initItems=function($items){$items=$items||this.$items;$items.addClass([Shuffle.ClassName.SHUFFLE_ITEM,Shuffle.ClassName.FILTERED].join(' '));$items.css(this.itemCss).data('point',new Point()).data('scale',DEFAULT_SCALE);};Shuffle.prototype._updateItemCount=function(){this.visibleItems=this._getFilteredItems().length;};Shuffle.prototype._setTransition=function(element){element.style[TRANSITION]=CSS_TRANSFORM+' '+this.speed+'ms '+ this.easing+', opacity '+this.speed+'ms '+this.easing;};Shuffle.prototype._setTransitions=function($items){$items=$items||this.$items;each($items,function(el){this._setTransition(el);},this);};Shuffle.prototype._setSequentialDelay=function($collection){if(!this.supported){return;} each($collection,function(el,i){el.style[TRANSITION_DELAY]='0ms,'+((i+1)*this.sequentialFadeDelay)+'ms';},this);};Shuffle.prototype._getItems=function(){return this.$el.children(this.itemSelector);};Shuffle.prototype._getFilteredItems=function(){return this.$items.filter('.'+Shuffle.ClassName.FILTERED);};Shuffle.prototype._getConcealedItems=function(){return this.$items.filter('.'+Shuffle.ClassName.CONCEALED);};Shuffle.prototype._getColumnSize=function(containerWidth,gutterSize){var size;if($.isFunction(this.columnWidth)){size=this.columnWidth(containerWidth);}else if(this.useSizer){size=Shuffle._getOuterWidth(this.sizer);}else if(this.columnWidth){size=this.columnWidth;}else if(this.$items.length>0){size=Shuffle._getOuterWidth(this.$items[0],true);}else{size=containerWidth;} if(size===0){size=containerWidth;} return size+gutterSize;};Shuffle.prototype._getGutterSize=function(containerWidth){var size;if($.isFunction(this.gutterWidth)){size=this.gutterWidth(containerWidth);}else if(this.useSizer){size=Shuffle._getNumberStyle(this.sizer,'marginLeft');}else{size=this.gutterWidth;} return size;};Shuffle.prototype._setColumns=function(theContainerWidth){var containerWidth=theContainerWidth||Shuffle._getOuterWidth(this.element);var gutter=this._getGutterSize(containerWidth);var columnWidth=this._getColumnSize(containerWidth,gutter);var calculatedColumns=(containerWidth+gutter)/columnWidth;if(Math.abs(Math.round(calculatedColumns)-calculatedColumns)=minPosition-buffer&&positions[i]<=minPosition+buffer){return i;}} return 0;};Shuffle.prototype._shrink=function($collection){var $concealed=$collection||this._getConcealedItems();each($concealed,function(item){var $item=$(item);var itemData=$item.data();if(itemData.scale===CONCEALED_SCALE){return;} itemData.scale=CONCEALED_SCALE;this.styleQueue.push({$item:$item,point:itemData.point,scale:CONCEALED_SCALE,opacity:0,callback:function(){$item.css('visibility','hidden');}});},this);};Shuffle.prototype._onResize=function(){if(!this.enabled||this.destroyed||this.isTransitioning){return;} var containerWidth=Shuffle._getOuterWidth(this.element);if(containerWidth===this.containerWidth){return;} this.update();};Shuffle.prototype._getStylesForTransition=function(opts){var styles={opacity:opts.opacity};if(this.supported){styles[TRANSFORM]=Shuffle._getItemTransformString(opts.point,opts.scale);}else{styles.left=opts.point.x;styles.top=opts.point.y;} return styles;};Shuffle.prototype._transition=function(opts){var styles=this._getStylesForTransition(opts);this._startItemAnimation(opts.$item,styles,opts.callfront||$.noop,opts.callback||$.noop);};Shuffle.prototype._startItemAnimation=function($item,styles,callfront,callback){function handleTransitionEnd(evt){if(evt.target===evt.currentTarget){$(evt.target).off(TRANSITIONEND,handleTransitionEnd);callback();}} callfront();if(!this.initialized){$item.css(styles);callback();return;} if(this.supported){$item.css(styles);$item.on(TRANSITIONEND,handleTransitionEnd);}else{var anim=$item.stop(true).animate(styles,this.speed,'swing',callback);this._animations.push(anim.promise());}};Shuffle.prototype._processStyleQueue=function(noLayout){var $transitions=$();each(this.styleQueue,function(transitionObj){if(transitionObj.skipTransition){this._styleImmediately(transitionObj);}else{$transitions=$transitions.add(transitionObj.$item);this._transition(transitionObj);}},this);if($transitions.length>0&&this.initialized){this.isTransitioning=true;if(this.supported){this._whenCollectionDone($transitions,TRANSITIONEND,this._movementFinished);}else{this._whenAnimationsDone(this._movementFinished);}}else if(!noLayout){defer(this._layoutEnd,this);} this.styleQueue.length=0;};Shuffle.prototype._styleImmediately=function(opts){Shuffle._skipTransition(opts.$item[0],function(){opts.$item.css(this._getStylesForTransition(opts));},this);};Shuffle.prototype._movementFinished=function(){this.isTransitioning=false;this._layoutEnd();};Shuffle.prototype._layoutEnd=function(){this._fire(Shuffle.EventType.LAYOUT);};Shuffle.prototype._addItems=function($newItems,addToEnd,isSequential){this._initItems($newItems);this._setTransitions($newItems);this.$items=this._getItems();this._shrink($newItems);each(this.styleQueue,function(transitionObj){transitionObj.skipTransition=true;});this._processStyleQueue(true);if(addToEnd){this._addItemsToEnd($newItems,isSequential);}else{this.shuffle(this.lastFilter);}};Shuffle.prototype._addItemsToEnd=function($newItems,isSequential){var $passed=this._filter(null,$newItems);var passed=$passed.get();this._updateItemCount();this._layout(passed,true);if(isSequential&&this.supported){this._setSequentialDelay(passed);} this._revealAppended(passed);};Shuffle.prototype._revealAppended=function(newFilteredItems){defer(function(){each(newFilteredItems,function(el){var $item=$(el);this._transition({$item:$item,opacity:1,point:$item.data('point'),scale:DEFAULT_SCALE});},this);this._whenCollectionDone($(newFilteredItems),TRANSITIONEND,function(){$(newFilteredItems).css(TRANSITION_DELAY,'0ms');this._movementFinished();});},this,this.revealAppendedDelay);};Shuffle.prototype._whenCollectionDone=function($collection,eventName,callback){var done=0;var items=$collection.length;var self=this;function handleEventName(evt){if(evt.target===evt.currentTarget){$(evt.target).off(eventName,handleEventName);done++;if(done===items){callback.call(self);}}} $collection.on(eventName,handleEventName);};Shuffle.prototype._whenAnimationsDone=function(callback){$.when.apply(null,this._animations).always($.proxy(function(){this._animations.length=0;callback.call(this);},this));};Shuffle.prototype.shuffle=function(category,sortObj){if(!this.enabled||this.isTransitioning){return;} if(!category){category=ALL_ITEMS;} this._filter(category);this._updateItemCount();this._shrink();this.sort(sortObj);};Shuffle.prototype.sort=function(opts){if(this.enabled&&!this.isTransitioning){this._resetCols();var sortOptions=opts||this.lastSort;var items=this._getFilteredItems().sorted(sortOptions);this._layout(items);this.lastSort=sortOptions;}};Shuffle.prototype.update=function(isOnlyLayout){if(this.enabled&&!this.isTransitioning){if(!isOnlyLayout){this._setColumns();} this.sort();}};Shuffle.prototype.layout=function(){this.update(true);};Shuffle.prototype.appended=function($newItems,addToEnd,isSequential){this._addItems($newItems,addToEnd===true,isSequential!==false);};Shuffle.prototype.disable=function(){this.enabled=false;};Shuffle.prototype.enable=function(isUpdateLayout){this.enabled=true;if(isUpdateLayout!==false){this.update();}};Shuffle.prototype.remove=function($collection){if(!$collection.length||!$collection.jquery){return;} function handleRemoved(){$collection.remove();this.$items=this._getItems();this._updateItemCount();this._fire(Shuffle.EventType.REMOVED,[$collection,this]);$collection=null;} this._toggleFilterClasses($(),$collection);this._shrink($collection);this.sort();this.$el.one(Shuffle.EventType.LAYOUT+'.'+SHUFFLE,$.proxy(handleRemoved,this));};Shuffle.prototype.destroy=function(){$window.off('.'+this.unique);this.$el.removeClass(SHUFFLE).removeAttr('style').removeData(SHUFFLE);this.$items.removeAttr('style').removeData('point').removeData('scale').removeClass([Shuffle.ClassName.CONCEALED,Shuffle.ClassName.FILTERED,Shuffle.ClassName.SHUFFLE_ITEM].join(' '));this.$items=null;this.$el=null;this.sizer=null;this.element=null;this.destroyed=true;};$.fn.shuffle=function(opts){var args=Array.prototype.slice.call(arguments,1);return this.each(function(){var $this=$(this);var shuffle=$this.data(SHUFFLE);if(!shuffle){shuffle=new Shuffle(this,opts);$this.data(SHUFFLE,shuffle);}else if(typeof opts==='string'&&shuffle[opts]){shuffle[opts].apply(shuffle,args);}});};function randomize(array){var tmp,current;var top=array.length;if(!top){return array;} while(--top){current=Math.floor(Math.random()*(top+1));tmp=array[current];array[current]=array[top];array[top]=tmp;} return array;} $.fn.sorted=function(options){var opts=$.extend({},$.fn.sorted.defaults,options);var arr=this.get();var revert=false;if(!arr.length){return[];} if(opts.randomize){return randomize(arr);} if($.isFunction(opts.by)){arr.sort(function(a,b){if(revert){return 0;} var valA=opts.by($(a));var valB=opts.by($(b));if(valA===undefined&&valB===undefined){revert=true;return 0;} if(valAvalB||valA==='sortLast'||valB==='sortFirst'){return 1;} return 0;});} if(revert){return this.get();} if(opts.reverse){arr.reverse();} return arr;};$.fn.sorted.defaults={reverse:false,by:null,randomize:false};return Shuffle;});;(function(t,e,i){function n(i,n,o){var r=e.createElement(i);return n&&(r.id=Z+n),o&&(r.style.cssText=o),t(r)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function r(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=t(this.el).attr("data-cbox-"+e),void 0!==n?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function h(t){var e=W.length,i=(z+t)%e;return 0>i?e+i:i}function a(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():o())/100:1)*parseInt(t,10))}function s(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function l(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function d(t){"contains"in y[0]&&!y[0].contains(t.target)&&t.target!==v[0]&&(t.stopPropagation(),y.focus())}function c(t){c.str!==t&&(y.add(v).removeClass(c.str).addClass(t),c.str=t)}function g(e){z=0,e&&e!==!1&&"nofollow"!==e?(W=t("."+te).filter(function(){var i=t.data(this,Y),n=new r(this,i);return n.get("rel")===e}),z=W.index(_.el),-1===z&&(W=W.add(_.el),z=W.length-1)):W=t(_.el)}function u(i){t(e).trigger(i),ae.triggerHandler(i)}function f(i){var o;if(!G){if(o=t(i).data(Y),_=new r(i,o),g(_.get("rel")),!$){$=q=!0,c(_.get("className")),y.css({visibility:"hidden",display:"block",opacity:""}),L=n(se,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(L),D=T.height()+k.height()+b.outerHeight(!0)-b.height(),j=C.width()+H.width()+b.outerWidth(!0)-b.width(),A=L.outerHeight(!0),N=L.outerWidth(!0);var h=a(_.get("initialWidth"),"x"),s=a(_.get("initialHeight"),"y"),l=_.get("maxWidth"),f=_.get("maxHeight");_.w=(l!==!1?Math.min(h,a(l,"x")):h)-N-j,_.h=(f!==!1?Math.min(s,a(f,"y")):s)-A-D,L.css({width:"",height:_.h}),J.position(),u(ee),_.get("onOpen"),O.add(F).hide(),y.focus(),_.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),ae.one(re,function(){e.removeEventListener("focus",d,!0)})),_.get("returnFocus")&&ae.one(re,function(){t(_.el).focus()})}var p=parseFloat(_.get("opacity"));v.css({opacity:p===p?p:"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?B.html(_.get("close")).appendTo(b):B.appendTo("
"),w()}}function p(){y||(V=!1,E=t(i),y=n(se).attr({id:Y,"class":t.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),v=n(se,"Overlay").hide(),S=t([n(se,"LoadingOverlay")[0],n(se,"LoadingGraphic")[0]]),x=n(se,"Wrapper"),b=n(se,"Content").append(F=n(se,"Title"),I=n(se,"Current"),P=t('
').appendTo('body');loadingWrapper.show();}});} $(window).load(function(){$.mobile.page.prototype.options.domCache=true;$('.main a').data('ajax','false');if(is_touch_device()&&$(window).width()>=$(window).height()) showOrientationError();init();}).unload(function(){$(window).scrollTop(0);});$(window).bind('orientationchange',function(){windowWidth=windowContainer.width();if($('.shuffle_grid').length>0) resetShuffleGrid=true;if(is_touch_device()&&windowWidth>windowContainer.height()) showOrientationError();else removeOrientationError();$('.header .logo').css('margin-top','');$('.header .navUL').css('margin-top','');setTimeout(function(){$('.header .logo').css('margin-top','');$('.header .navUL').css('margin-top','');},200);if($('.header').is('.open')&&windowWidth>windowContainer.height()) $('#overlay_mobile').hide();if($('.header').is('.open')&&windowWidth0) prevPage.find('.shuffle_grid').shuffle('destroy');resetShuffleGrid=false;} $('figure[data-type="colorbox"]').unbind(tabClick()).removeClass('open');$('html,body').css('height','100%');if(typeof toPage!=='string'){dataId=toPage.attr('id');if(typeof prevPage!=='string'&&typeof prevPage!=='undefined'){if(dataId!==prevPage.attr('id')){if(dataId=='article_34') $('.mainHeader').fadeOut(function(){$(this).addClass('white');});if(prevPage.attr('id')=='article_34') $('.mainHeader').fadeOut(function(){$(this).removeClass('white');setTimeout(setUpHeaderHeight,500);});}} data.options.reverse=false;if(($('body').data('pagetype')=='root'&&toPage.data('pagetype')=='archiv')||($('body').data('pagetype')=='archiv'&&toPage.data('pagetype')=='text')||($('body').data('pagetype')=='text'&&toPage.data('pagetype')=='root'))data.options.reverse=true;if($('body').data('pagetype')==toPage.data('pagetype')){data.options.reverse=false;data.options.transition='fade';} $('body').data('pagetype',toPage.data('pagetype'));}else if(windowWidth0) $('.nav .lang').html(langadapter.html());if(toPage.data('id')==$('body').data('startpage')) $('html,body').addClass('index_page');else $('html,body').removeClass('index_page');if(keepNaviOpen) $('html,body').addClass('navi_open');else{$('.header').removeClass('open');$('html,body').removeClass('navi_open');} if(dataId=='article_34'){var $hide_logo=toPage.find('.hide_logo');$hide_logo.unbind(tabClick(),smartClick).bind(tabClick(),{$cp_element:$hide_logo},smartClick);if($hide_logo.length>0&&!$hide_logo.is('.hide,.invisible')){hideLogoTimeout=setTimeout(function(){$hide_logo.stop().animate({top:"-100%"},500,function(){TouchScroll.enableScrolling();TouchScroll.restartScrolling();toggleLogo();$hide_logo.addClass('hide invisible').css('position','absolute');});},Math.min(3500,Math.max(0,new Date().getTime()-time)+2000));} $('.logo').removeClass('hideForSmartphone');} if(typeof data.options.direction!=='undefined'){var $li=$('.nav li[data-id="'+toPage.data('id')+'"]');$('.nav').find('.active,.activeViewport').removeClass('active activeViewport');$li.addClass('active').children('a').addClass('active');$li.children('.subarticle').find('li').eq('0').addClass('activeViewport');} if(windowWidth0&&windowWidth>=sizes.smart&&typeof toPage[0].skrl!=='undefined') toPage[0].skrl.restart();else if(toPage.find('.parallax').length>0&&typeof $('.parallax_wrapper')[0].skrl==='undefined') loadParallax(toPage);} if(prevPage.find('.parallax').length>0){if(prevPage.find('.parallax_wrapper').length>0&&typeof prevPage.find('.parallax_wrapper')[0].skrl!=='undefined') prevPage.find('.parallax_wrapper')[0].skrl.disable();if(typeof prevPage[0].skrl!=='undefined') prevPage[0].skrl.disable();} $('.mainHeader').fadeIn();if(typeof toPage.attr('id')!=='undefined'){toPage.find('a').data('ajax','false').attr("rel","external");loadAll(toPage,(toPage.is('.parallax')||toPage.find('.parallax').length>0?'noParallax':null));} $('html,body').removeClass(function(index,css){return(css.match(/(^|\s)article_\S+/g)||[]).join(' ');}).addClass(dataId);setTimeout(function(){$('.loadingWrapper').hide();},200);}});})(jQuery,window,document,undefined);;