1/*Based on Stellar.js http://markdalgleish.com/projects/stellar.js */ 2function sfBannerRatio(){function a(a,b){var c=a.css('background-image');if(c){c=c.replace(/^url\(["']?/,'').replace(/["']?\)$/,'');if(c!=window.lastBGImage){var d=new Image();d.onload=b;d.src=c;window.lastBGImage=c;}}}if(jQuery('link[href$="74.css"]').length>0&&window.screen.width>480){var b=jQuery('.cycle2-slide:not(.cycle2-sentinel):first');if(b.length){var c=PLMOBILE[b.attr('id').replace('post-','')];if(c&&c.base)overrideRatio=c.base.width/c.base.height;else if(b.css('background-image')!=='none')a(b,function(){var a=this.src;if(a&&a.indexOf("/textures/")===-1)overrideRatio=this.width/this.height;else overrideRatio=false;});}if(window.overrideRatio)return overrideRatio;}if(jQuery('link[href$="75.css"]').length>0&&window.screen.width>480)overrideRatio=2.4;if(jQuery('link[href$="76.css"],link[href$="77.css"]').length>0)if(window.screen.width>480)overrideRatio=1.6;else overrideRatio=.8;if(window.overrideRatio)return overrideRatio;return jQuery(window).width()<600?1:2.2;}function allowCustomBGAlignSlider(){return jQuery('link[href$="68.css"], link[href$="70.css"], link[href$="72.css"], link[href$="76.css"], link[href$="77.css"]').length>0;}function wholeScreenNoRatio(){return jQuery('link[href$="68.css"], link[href$="70.css"]').length>0;}function sfBannerRatioSet(){var a=Math.floor(jQuery(window).width()/sfBannerRatio()),b=jQuery('.sfadditionaltoppage');if(b.length>0){a+=b.outerHeight();if(a>1000)a=1000;var c=jQuery('#demo_header').outerHeight();if(c)a+=c;else c=0;}var d='<style id="sfBannerPage-compat"> body .plBanner, body .plBannerContainer { height:'+a+'px;} .plBannerContainer .cycle2-slide {min-height:'+a+'px;} </style>',e=jQuery('#sfBannerPage-compat');if(wholeScreenNoRatio()){d='<style id="sfBannerPage-compat"></style>';a=Math.ceil(jQuery(window).height()-82);}if(e.length>0)e.replaceWith(d);else jQuery('head').append(d);if(b.length>0){var f=98;if(jQuery('link[href$="77.css"]').length)f=jQuery('#header').height()+16;return a-f-b.outerHeight()-c;}return a;};(function(a,b,c,d){var e='stellar',f={scrollProperty:'scroll',positionProperty:'position',horizontalScrolling:true,verticalScrolling:true,horizontalOffset:0,verticalOffset:0,responsive:false,parallaxBackgrounds:true,parallaxElements:true,hideDistantElements:true,hideElement:function(a){a.hide();},showElement:function(a){a.show();}},g={scroll:{getLeft:function(a){return a.scrollLeft();},setLeft:function(a,b){a.scrollLeft(b);},getTop:function(a){return a.scrollTop();},setTop:function(a,b){a.scrollTop(b);}},position:{getLeft:function(a){return parseInt(a.css('left'),10)*-1;},getTop:function(a){return parseInt(a.css('top'),10)*-1;}},margin:{getLeft:function(a){return parseInt(a.css('margin-left'),10)*-1;},getTop:function(a){return parseInt(a.css('margin-top'),10)*-1;}},transform:{getLeft:function(a){var b=getComputedStyle(a[0])[j];return(b!=='none'?parseInt(b.match(/(-?[0-9]+)/g)[4],10)*-1:0);},getTop:function(a){var b=getComputedStyle(a[0])[j];return(b!=='none'?parseInt(b.match(/(-?[0-9]+)/g)[5],10)*-1:0);}}},h={position:{setLeft:function(a,b){a.css('left',b);},setTop:function(a,b){a.css('top',b);}},transform:{setPosition:function(a,b,c,d,e){a[0].style[j]='translate3d('+(b-c)+'px, '+(d-e)+'px, 0)';}}},i=(function(){var b=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,c=a('script')[0].style,d='',e;for(e in c)if(b.test(e)){d=e.match(b)[0];break;}if('WebkitOpacity' in c)d='Webkit';if('KhtmlOpacity' in c)d='Khtml';return function(a){return d+(d.length>0?a.charAt(0).toUpperCase()+a.slice(1):a);};}()),j=i('transform'),k=a('<div />',{style:'background:#fff'}).css('background-position-x')!==d,l=(k?function(a,b,c){if(a.length===1){a[0].style.backgroundPositionX=b;a[0].style.backgroundPositionY=c;}else a.css({'background-position-x':b,'background-position-y':c});}:function(a,b,c){if(a.length===1)a[0].style.backgroundPosition=b+' '+c;else a.css('background-position',b+' '+c);}),m=(k?function(a){return [a.css('background-position-x'),a.css('background-position-y')];}:function(a){if(a.css('background-position'))return a.css('background-position').split(' ');else console.log(a);}),n=(b.requestAnimationFrame||b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||b.oRequestAnimationFrame||b.msRequestAnimationFrame||function(a){setTimeout(a,1000/60);});function o(b,c){this.element=b;this.options=a.extend({},f,c);this._defaults=f;this._name=e;this.init();}o.prototype={init:function(){this.options.name=e+'_'+Math.floor(Math.random()*1e9);this._defineElements();this._defineGetters();this._defineSetters();
2this._handleWindowLoadAndResize();this._detectViewport();this.refresh({firstLoad:true});if(this.options.scrollProperty==='scroll')this._handleScrollEvent();else this._startAnimationLoop();},_defineElements:function(){if(this.element===c.body)this.element=b;this.$scrollElement=a(this.element);this.$element=(this.element===b?a('body'):this.$scrollElement);this.$viewportElement=(this.options.viewportElement!==d?a(this.options.viewportElement):(this.$scrollElement[0]===b||this.options.scrollProperty==='scroll'?this.$scrollElement:this.$scrollElement.parent()));},_defineGetters:function(){var a=this,b=g[a.options.scrollProperty];this._getScrollLeft=function(){return b.getLeft(a.$scrollElement);};this._getScrollTop=function(){return b.getTop(a.$scrollElement);};},_defineSetters:function(){var b=this,c=g[b.options.scrollProperty],d=h[b.options.positionProperty],e=c.setLeft,f=c.setTop;this._setScrollLeft=(typeof e==='function'?function(a){e(b.$scrollElement,a);}:a.noop);this._setScrollTop=(typeof f==='function'?function(a){f(b.$scrollElement,a);}:a.noop);this._setPosition=d.setPosition||function(a,c,e,f,g){if(b.options.horizontalScrolling)d.setLeft(a,c,e);if(b.options.verticalScrolling)d.setTop(a,f,g);};},_handleWindowLoadAndResize:function(){var c=this,d=a(b);if(c.options.responsive)d.on('load.'+this.name,function(){c.refresh();});d.on('resize.'+this.name,function(){if(b.NoResizeEvt)return;sfBannerRatioSet();c._detectViewport();if(c.options.responsive){c._reset();c.refresh({IE:navigator.userAgent.indexOf('Trident/')!==-1});}});},refresh:function(c){var d=this,e=d._getScrollLeft(),f=d._getScrollTop();if(!c||!c.firstLoad)this._reset();this._setScrollLeft(0);this._setScrollTop(0);this._setOffsets();this._findParticles();this._findBackgrounds();if(c&&c.firstLoad&&/WebKit/.test(navigator.userAgent))a(b).on('load',function(){var a=d._getScrollLeft(),b=d._getScrollTop();d._setScrollLeft(a+1);d._setScrollTop(b+1);d._setScrollLeft(a);d._setScrollTop(b);});this._setScrollLeft(e);this._setScrollTop(f);this._repositionElements();},_detectViewport:function(){var a=this.$viewportElement.offset(),b=a!==null&&a!==d;this.viewportWidth=this.$viewportElement.width();this.viewportHeight=this.$viewportElement.height();this.viewportOffsetTop=(b?a.top:0);this.viewportOffsetLeft=(b?a.left:0);},_findParticles:function(){var b=this,c=this._getScrollLeft(),e=this._getScrollTop();if(this.particles!==d)for(var f=this.particles.length-1;f>=0;f--)this.particles[f].$element.data('stellar-elementIsActive',d);this.particles=[];if(!this.options.parallaxElements)return;this.$element.find('[data-stellar-ratio]').each(function(c){var e=a(this),f,g,h,i,j,k,l,m,n,o=0,p=0,q=0,r=0;if(!e.data('stellar-elementIsActive'))e.data('stellar-elementIsActive',this);else if(e.data('stellar-elementIsActive')!==this)return;b.options.showElement(e);if(!e.data('stellar-startingLeft')){e.data('stellar-startingLeft',e.css('left'));e.data('stellar-startingTop',e.css('top'));}else{e.css('left',e.data('stellar-startingLeft'));e.css('top',e.data('stellar-startingTop'));}h=e.position().left;i=e.position().top;j=(e.css('margin-left')==='auto')?0:parseInt(e.css('margin-left'),10);k=(e.css('margin-top')==='auto')?0:parseInt(e.css('margin-top'),10);m=e.offset().left-j;n=e.offset().top-k;e.parents().each(function(){var b=a(this);if(b.data('stellar-offset-parent')===true){o=q;p=r;l=b;return false;}else{q+=b.position().left;r+=b.position().top;}});f=(e.data('stellar-horizontal-offset')!==d?e.data('stellar-horizontal-offset'):(l!==d&&l.data('stellar-horizontal-offset')!==d?l.data('stellar-horizontal-offset'):b.horizontalOffset));g=(e.data('stellar-vertical-offset')!==d?e.data('stellar-vertical-offset'):(l!==d&&l.data('stellar-vertical-offset')!==d?l.data('stellar-vertical-offset'):b.verticalOffset));b.particles.push({$element:e,$offsetParent:l,isFixed:e.css('position')==='fixed',horizontalOffset:f,verticalOffset:g,startingPositionLeft:h,startingPositionTop:i,startingOffsetLeft:m,startingOffsetTop:n,parentOffsetLeft:o,parentOffsetTop:p,stellarRatio:(e.data('stellar-ratio')!==d?e.data('stellar-ratio'):1),width:e.outerWidth(true),height:e.outerHeight(true),isHidden:false});});}
2,_findBackgrounds:function(){var c=this,e=this._getScrollLeft(),f=this._getScrollTop(),g;var h='sfimg_loading';if(this.THREADLOCK)return;else this.THREADLOCK=true;this.backgrounds=[];if(!this.options.parallaxBackgrounds)return;g=this.$element.find('[data-stellar-background-ratio]');if(this.$element.data('stellar-background-ratio'))g=g.add(this.$element);var i=0;g.each(function(){var j=a(this),k=m(j),n,o,p,q,r,s,t,u,v,w=0,x=0,y=0,z=0;var A=j.css('background-image').replace(/^url\(["']?/,'').replace(/["']?\)$/,'');if(!j.data('stellar-backgroundIsActive'))j.data('stellar-backgroundIsActive',this);else if(j.data('stellar-backgroundIsActive')!==this)return;if(j.data('bgH')&&j.data('bgW'))D();else if(A==='none')D();else{var B=new Image();var C={needCORS:false};a(b).trigger('needCORS',C);if(C.needCORS)B.crossOrigin='Anonymous';B.onload=D;B.onerror=D;B.src=A;}function D(){j.css('background-position','');var k=m(j);if(!j.data('stellar-backgroundStartingLeft')){j.data('stellar-backgroundStartingLeft',k[0]);j.data('stellar-backgroundStartingTop',k[1]);}else l(j,j.data('stellar-backgroundStartingLeft'),j.data('stellar-backgroundStartingTop'));r=(j.css('margin-left')==='auto')?0:parseInt(j.css('margin-left'),10);s=(j.css('margin-top')==='auto')?0:parseInt(j.css('margin-top'),10);t=j.offset().left-r-e;u=j.offset().top-s-f;j.parents().each(function(){var b=a(this);if(b.data('stellar-offset-parent')===true){w=y;x=z;v=b;return false;}else{y+=b.position().left;z+=b.position().top;}});n=(j.data('stellar-horizontal-offset')!==d?j.data('stellar-horizontal-offset'):(v!==d&&v.data('stellar-horizontal-offset')!==d?v.data('stellar-horizontal-offset'):c.horizontalOffset));o=(j.data('stellar-vertical-offset')!==d?j.data('stellar-vertical-offset'):(v!==d&&v.data('stellar-vertical-offset')!==d?v.data('stellar-vertical-offset'):c.verticalOffset));if(this&&this.width&&this.height){j.data('bgW',this.width);j.data('bgH',this.height);j.data('bgimg',this);}c.backgrounds.push({height:j.height(),outerWidth:j.outerWidth(),outerHeight:j.outerHeight(),imgH:j.data('bgH'),imgW:j.data('bgW'),$element:j,$offsetParent:v,isFixed:j.css('background-attachment')==='fixed',horizontalOffset:n,verticalOffset:o,startingValueLeft:k[0],startingValueTop:k[1],startingBackgroun
2dPositionLeft:(isNaN(parseInt(k[0],10))?0:parseInt(k[0],10)),startingBackgroundPositionTop:(isNaN(parseInt(k[1],10))?0:parseInt(k[1],10)),startingPositionLeft:j.position().left,startingPositionTop:j.position().top,startingOffsetLeft:t,startingOffsetTop:u,parentOffsetLeft:w,parentOffsetTop:x,stellarRatio:(j.data('stellar-background-ratio')===d?1:j.data('stellar-background-ratio'))});i++;if(i===g.length){c.THREADLOCK=false;j.data(h,false);a(b).trigger('PLimages');}};});},_reset:function(){var a,b,c,d,e;for(e=this.particles.length-1;e>=0;e--){a=this.particles[e];b=a.$element.data('stellar-startingLeft');c=a.$element.data('stellar-startingTop');this._setPosition(a.$element,b,b,c,c);this.options.showElement(a.$element);a.$element.data('stellar-startingLeft',null).data('stellar-elementIsActive',null).data('stellar-backgroundIsActive',null);}for(e=this.backgrounds.length-1;e>=0;e--){d=this.backgrounds[e];d.$element.data('stellar-backgroundStartingLeft',null).data('stellar-backgroundStartingTop',null).css('background-position','');l(d.$element,d.startingValueLeft,d.startingValueTop);}},destroy:function(){this._reset();this.$scrollElement.unbind('resize.'+this.name).unbind('scroll.'+this.name);this._animationLoop=a.noop;a(b).unbind('load.'+this.name).unbind('resize.'+this.name);},_setOffsets:function(){var c=this,d=a(b);d.unbind('resize.horizontal-'+this.name).unbind('resize.vertical-'+this.name);if(typeof this.options.horizontalOffset==='function'){this.horizontalOffset=this.options.horizontalOffset();d.bind('resize.horizontal-'+this.name,function(){c.horizontalOffset=c.options.horizontalOffset();});}else this.horizontalOffset=this.options.horizontalOffset;if(typeof this.options.verticalOffset==='function'){this.verticalOffset=this.options.verticalOffset();d.bind('resize.vertical-'+this.name,function(){c.verticalOffset=c.options.verticalOffset();});}else this.verticalOffset=this.options.verticalOffset;},_repositionElements:function(){this._detectViewport();var c=this._getScrollLeft(),d=this._getScrollTop(),e,f,g,h,i,j,k,m=true,n=true,o,p,q,r,s;this.currentScrollLeft=c;this.currentScrollTop=d;this.currentWidth=this.viewportWidth;this.currentHeight=this.viewportHeight;for(s=this.particles.length-1;s>=0;s--){g=this.particles[s];h=(g.isFixed?1:0);if(this.options.horizontalScrolling){o=(c+g.horizontalOffset+this.viewportOffsetLeft+g.startingPositionLeft-g.startingOffsetLeft+g.parentOffsetLeft)*-(g.stellarRatio+h-1)+g.startingPositionLeft;q=o-g.startingPositionLeft+g.startingOffsetLeft;}else{o=g.startingPositionLeft;q=g.startingOffsetLeft;}if(this.options.verticalScrolling){p=(d+g.verticalOffset+this.viewportOffsetTop+g.startingPositionTop-g.startingOffsetTop+g.parentOffsetTop)*-(g.stellarRatio+h-1)+g.startingPositionTop;r=p-g.startingPositionTop+g.startingOffsetTop;}else{p=g.startingPositionTop;r=g.startingOffsetTop;}if(this.options.hideDistantElements){n=!this.options.horizontalScrolling||q+g.width>(g.isFixed?0:c)&&q<(g.isFixed?0:c)+this.viewportWidth+this.viewportOffsetLeft;m=!this.options.verticalScrolling||r+g.height>(g.isFixed?0:d)&&r<(g.isFixed?0:d)+this.viewportHeight+this.viewportOffsetTop;}if(n&&m){if(g.isHidden){this.options.showElement(g.$element);g.isHidden=false;}this._setPosition(g.$element,o,g.startingPositionLeft,p,g.startingPositionTop);}else if(!g.isHidden){this.options.hideElement(g.$element);g.isHidden=true;}}var s=this.backgrounds.length;while(s--){i=this.backgrounds[s];var t=a(b).height(),u=i.$element.is('.sfbannerpage'),v=u?Math.min(i.outerHeight,t):t,w=Math.min(i.outerWidth,a(b).width());var x,y=C(i.imgW,i.imgH,v),z=[w,v];if(E(y,z))x=y;else x=D(i.imgW,i.imgH,w);if(u){}var A=i.isFixed?i.startingOffsetTop-d:d;var B=u?((A/jQuery('.plBannerContainer').height())||0):(t-A)/(i.outerHeight+t);if(i.outerHeight<=x[1]){if(i.$element.is(':visible')){h=(i.isFixed?0:1);j=(this.options.horizontalScrolling?(c+i.horizontalOffset-this.viewportOffsetLeft-i.startingOffsetLeft+i.parentOffsetLeft-i.startingBackgroun
2dPositionLeft)*(h-i.stellarRatio)+'px':i.startingValueLeft);if(u){if(wholeScreenNoRatio())continue;i.$element.css('background-attachment','scroll');i.isFixed=false;}k=(this.options.verticalScrolling?(d+i.verticalOffset-this.viewportOffsetTop-i.startingOffsetTop+i.parentOffsetTop-i.startingBackgroundPositionTop)*(h-i.stellarRatio)+'px':i.startingValueTop);k=(i.isFixed?A:0)+(i.isFixed?i.outerHeight-x[1]:i.height-x[1])*(1-B);k+='px';l(i.$element,j,k);}else{}}else{var z=i.$element[0];if(z){z.style.backgroundPositionX='';z.style.backgroundPositionY='';z.style.backgroundPosition='';}}}function C(a,b,c){return [c*a/b,c];}function D(a,b,c){return [c,c*b/a];}function E(a,b){return a[0]>=b[0]&&a[1]>=b[1];}},_handleScrollEvent:function(){var a=this,b=false;var c=function(){a._repositionElements();b=false;};var d=function(){c();};this.$scrollElement.bind('scroll.'+this.name,d);d();},_startAnimationLoop:function(){var a=this;this._animationLoop=function(){n(a._animationLoop);a._repositionElements();};this._animationLoop();}};a.fn[e]=function(b){var c=arguments;if(b===d||typeof b==='object'){return this.each(function(){if(!a.data(this,'plugin_'+e))a.data(this,'plugin_'+e,new o(this,b));});}else if(typeof b==='string'&&b[0]!=='_'&&b!=='init')return this.each(function(){var d=a.data(this,'plugin_'+e);if(d instanceof o&&typeof d[b]==='function')d[b].apply(d,Array.prototype.slice.call(c,1));if(b==='destroy')a.data(this,'plugin_'+e,null);});};a[e]=function(c){var d=a(b);return d.stellar.apply(d,Array.prototype.slice.call(arguments,0));};a[e].scrollProperty=g;a[e].positionProperty=h;b.Stellar=o;}(jQuery,this,document));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.