1/* jquery.nicescroll 3.5.0 InuYaksa*2013 MIT http://areaaperta.com/nicescroll */(function(e){var z=!1,E=!1,L=5E3,M=2E3,y=0,N=function(){var e=document.getElementsByTagName("script"),e=e[e.length-1].src.split("?")[0];return 0<e.split("/").length?e.split("/").slice(0,-1).join("/")+"/":""}(),H=["ms","moz","webkit","o"],v=window.requestAnimationFrame||!1,w=window.cancelAnimationFrame||!1;if(!v)for(var O in H){var F=H[O];v||(v=window[F+"RequestAnimationFrame"]);w||(w=window[F+"CancelAnimationFrame"]||window[F+"CancelRequestAnimationFrame"])}var A=window.MutationObserver||window.WebKitMutationObserver|| 2!1,I={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",cursorwidth:"5px",cursorborder:"1px solid #fff",cursorborderradius:"5px",scrollspeed:60,mousescrollstep:24,touchbehavior:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0, 3horizrailenabled:!0,railalign:"right",railvalign:"bottom",enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:0.3,rtlmode:!1,cursordragontouch:!1,oneaxismousemode:"auto"},G=!1,P=function(){if(G)return G;var e=document.createElement("DIV"),c={haspointerlock:"pointerLockElement"in document|| 4"mozPointerLockElement"in document||"webkitPointerLockElement"in document};c.isopera="opera"in window;c.isopera12=c.isopera&&"getUserMedia"in navigator;c.isoperamini="[object OperaMini]"===Object.prototype.toString.call(window.operamini);c.isie="all"in document&&"attachEvent"in e&&!c.isopera;c.isieold=c.isie&&!("msInterpolationMode"in e.style);c.isie7=c.isie&&!c.isieold&&(!("documentMode"in document)||7==document.documentMode);c.isie8=c.isie&&"documentMode"in document&&8==document.documentMode;c.isie9= 5c.isie&&"performance"in window&&9<=document.documentMode;c.isie10=c.isie&&"performance"in window&&10<=document.documentMode;c.isie9mobile=/iemobile.9/i.test(navigator.userAgent);c.isie9mobile&&(c.isie9=!1);c.isie7mobile=!c.isie9mobile&&c.isie7&&/iemobile/i.test(navigator.userAgent);c.ismozilla="MozAppearance"in e.style;c.iswebkit="WebkitAppearance"in e.style;c.ischrome="chrome"in window;c.ischrome22=c.ischrome&&c.haspointerlock;c.ischrome26=c.ischrome&&"transition"in e.style;c.cantouch="ontouchstart"in 6document.documentElement||"ontouchstart"in window;c.hasmstouch=window.navigator.msPointerEnabled||!1;c.ismac=/^mac$/i.test(navigator.platform);c.isios=c.cantouch&&/iphone|ipad|ipod/i.test(navigator.platform);c.isios4=c.isios&&!("seal"in Object);c.isandroid=/android/i.test(navigator.userAgent);c.trstyle=!1;c.hastransform=!1;c.hastranslate3d=!1;c.transitionstyle=!1;c.hastransition=!1;c.transitionend=!1;for(var k=["transform","msTransform","webkitTransform","MozTransform","OTransform"],l=0;l<k.length;l++)if("undefined"!= 7typeof e.style[k[l]]){c.trstyle=k[l];break}c.hastransform=!1!=c.trstyle;c.hastransform&&(e.style[c.trstyle]="translate3d(1px,2px,3px)",c.hastranslate3d=/translate3d/.test(e.style[c.trstyle]));c.transitionstyle=!1;c.prefixstyle="";c.transitionend=!1;for(var k="transition webkitTransition MozTransition OTransition OTransition msTransition KhtmlTransition".split(" "),q=" -webkit- -moz- -o- -o -ms- -khtml-".split(" "),t="transitionend webkitTransitionEnd transitionend otransitionend oTransitionEnd msTransitionEnd KhtmlTransitionEnd".split(" "), 8l=0;l<k.length;l++)if(k[l]in e.style){c.transitionstyle=k[l];c.prefixstyle=q[l];c.transitionend=t[l];break}c.ischrome26&&(c.prefixstyle=q[1]);c.hastransition=c.transitionstyle;a:{k=["-moz-grab","-webkit-grab","grab"];
8if(c.ischrome&&!c.ischrome22||c.isie)k=[];for(l=0;l<k.length;l++)if(q=k[l],e.style.cursor=q,e.style.cursor==q){k=q;break a}k="url(http://www.google.com/intl/en_ALL/mapfiles/openhand.cur),n-resize"}c.cursorgrabvalue=k;c.hasmousecapture="setCapture"in e;c.hasMutationObserver=!1!==A;return G= 9c},Q=function(h,c){function k(){var d=b.win;if("zIndex"in d)return d.zIndex();for(;0<d.length&&9!=d[0].nodeType;){var c=d.css("zIndex");if(!isNaN(c)&&0!=c)return parseInt(c);d=d.parent()}return!1}function l(d,c,f){c=d.css(c);d=parseFloat(c);return isNaN(d)?(d=u[c]||0,f=3==d?f?b.win.outerHeight()-b.win.innerHeight():b.win.outerWidth()-b.win.innerWidth():1,b.isie8&&d&&(d+=1),f?d:0):d}function q(d,c,f,g){b._bind(d,c,function(b){b=b?b:window.event;var g={original:b,target:b.target||b.srcElement,type:"wheel", 10deltaMode:"MozMousePixelScroll"==b.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){b.preventDefault?b.preventDefault():b.returnValue=!1;return!1},stopImmediatePropagation:function(){b.stopImmediatePropagation?b.stopImmediatePropagation():b.cancelBubble=!0}};"mousewheel"==c?(g.deltaY=-0.025*b.wheelDelta,b.wheelDeltaX&&(g.deltaX=-0.025*b.wheelDeltaX)):g.deltaY=b.detail;return f.call(d,g)},g)}function t(d,c,f){var g,e;0==d.deltaMode?(g=-Math.floor(d.deltaX*(b.opt.mousescrollstep/54)),e=-Math.floor(d.deltaY* 11(b.opt.mousescrollstep/54))):1==d.deltaMode&&(g=-Math.floor(d.deltaX*b.opt.mousescrollstep),e=-Math.floor(d.deltaY*b.opt.mousescrollstep));c&&(b.opt.oneaxismousemode&&0==g&&e)&&(g=e,e=0);g&&(b.scrollmom&&b.scrollmom.stop(),b.lastdeltax+=g,b.debounced("mousewheelx",function(){var d=b.lastdeltax;b.lastdeltax=0;b.rail.drag||b.doScrollLeftBy(d)},120));if(e){if(b.opt.nativeparentscrolling&&f&&!b.ispage&&!b.zoomactive)if(0>e){if(b.getScrollTop()>=b.page.maxh)return!0}else if(0>=b.getScrollTop())return!0; 12b.scrollmom&&b.scrollmom.stop();b.lastdeltay+=e;b.debounced("mousewheely",function(){var d=b.lastdeltay;b.lastdeltay=0;b.rail.drag||b.doScrollBy(d)},120)}d.stopImmediatePropagation();return d.preventDefault()}var b=this;this.version="3.5.0";this.name="nicescroll";this.me=c;this.opt={doc:e("body"),win:!1};e.extend(this.opt,I);this.opt.snapbackspeed=80;if(h)for(var p in b.opt)"undefined"!=typeof h[p]&&(b.opt[p]=h[p]);this.iddoc=(this.doc=b.opt.doc)&&this.doc[0]?this.doc[0].id||"":"";this.ispage=/BODY|HTML/.test(b.opt.win? 13b.opt.win[0].nodeName:this.doc[0].nodeName);this.haswrapper=!1!==b.opt.win;
13this.win=b.opt.win||(this.ispage?e(window):this.doc);this.docscroll=this.ispage&&!this.haswrapper?e(window):this.win;this.body=e("body");this.iframe=this.isfixed=this.viewport=!1;this.isiframe="IFRAME"==this.doc[0].nodeName&&"IFRAME"==this.win[0].nodeName;this.istextarea="TEXTAREA"==this.win[0].nodeName;this.forcescreen=!1;this.canshowonmouseevent="scroll"!=b.opt.autohidemode;this.page=this.view=this.onzoomout=this.onzoomin= 14this.onscrollcancel=this.onscrollend=this.onscrollstart=this.onclick=this.ongesturezoom=this.onkeypress=this.onmousewheel=this.onmousemove=this.onmouseup=this.onmousedown=!1;this.scroll={x:0,y:0};this.scrollratio={x:0,y:0};this.cursorheight=20;this.scrollvaluemax=0;this.observerremover=this.observer=this.scrollmom=this.scrollrunning=this.checkrtlmode=!1;do this.id="ascrail"+M++;while(document.getElementById(this.id));this.hasmousefocus=this.hasfocus=this.zoomactive=this.zoom=this.selectiondrag=this.cursorfreezed= 15this.cursor=this.rail=!1;this.visibility=!0;this.hidden=this.locked=!1;this.cursoractive=!0;this.overflowx=b.opt.overflowx;this.overflowy=b.opt.overflowy;this.nativescrollingarea=!1;this.checkarea=0;this.events=[];this.saved={};this.delaylist={};this.synclist={};this.lastdeltay=this.lastdeltax=0;this.detected=P();var g=e.extend({},this.detected);this.ishwscroll=(this.canhwscroll=g.hastransform&&b.opt.hwacceleration)&&b.haswrapper;this.istouchcapable=!1;g.cantouch&&(g.ischrome&&!g.isios&&!g.isandroid)&& 16(this.istouchcapable=!0,g.cantouch=!1);g.cantouch&&(g.ismozilla&&!g.isios&&!g.isandroid)&&(this.istouchcapable=!0,g.cantouch=!1);b.opt.enablemouselockapi||(g.hasmousecapture=!1,g.haspointerlock=!1);this.delayed=function(d,c,f,g){var e=b.delaylist[d],k=(new Date).getTime();if(!g&&e&&e.tt)return!1;e&&e.tt&&clearTimeout(e.tt);if(e&&e.last+f>k&&!e.tt)b.delaylist[d]={last:k+f,tt:setTimeout(function(){b.delaylist[d].tt=0;c.call()},f)};else if(!e||!e.tt)b.delaylist[d]={last:k,tt:0},setTimeout(function(){c.call()}, 170)};this.debounced=function(d,c,f){var g=b.delaylist[d];(new Date).getTime();b.delaylist[d]=c;g||setTimeout(function(){var c=b.delaylist[d];b.delaylist[d]=!1;c.call()},f)};this.synched=function(d,c){b.synclist[d]=c;(function(){b.onsync||(v(function(){b.onsync=!1;for(d in b.synclist){var c=b.synclist[d];c&&c.call(b);b.synclist[d]=!1}}),b.onsync=!0)})();return d};this.unsynched=function(d){b.synclist[d]&&(b.synclist[d]=!1)};this.css=function(d,c){for(var f in c)b.saved.css.push([d,f,d.css(f)]),d.css(f, 18c[f])};this.scrollTop=function(d){return"undefined"==typeof d?b.getScrollTop():b.setScrollTop(d)};this.scrollLeft=function(d){return"undefined"==typeof d?b.getScrollLeft():b.setScrollLeft(d)};BezierClass=function(b,c,f,g,e,k,l){this.st=b;this.ed=c;this.spd=f;this.p1=g||0;this.p2=e||1;this.p3=k||0;this.p4=l||1;this.ts=(new Date).getTime();this.df=this.ed-this.st};BezierClass.prototype={B2:function(b){return 3*b*b*(1-b)},B3:function(b){return 3*b*(1-b)*(1-b)},B4:function(b){return(1-b)*(1-b)*(1-b)}, 19getNow:function(){var b=1-((new Date).getTime()-this.ts)/this.spd,c=this.B2(b)+this.B3(b)+this.B4(b);return 0>b?this.ed:this.st+Math.round(this.df*c)},update:function(b,c){this.st=this.getNow();this.ed=b;this.spd=c;this.ts=(new Date).getTime();this.df=this.ed-this.st;return this}};if(this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"};g.hastranslate3d&&g.isios&&this.doc.css("-webkit-backface-visibility","hidden");var s=function(){var d=b.doc.css(g.trstyle);return d&&"matrix"==d.substr(0, 206)?d.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/):!1};this.getScrollTop=function(d){if(!d){if(d=s())return 16==d.length?-d[13]:-d[5];if(b.timerscroll&&b.timerscroll.bz)return b.timerscroll.bz.getNow()}return b.doc.translate.y};this.getScrollLeft=function(d){if(!d){if(d=s())return 16==d.length?-d[12]:-d[4];if(b.timerscroll&&b.timerscroll.bh)return b.timerscroll.bh.getNow()}return b.doc.translate.x};this.notifyScrollEvent=document.createEvent?function(b){var c=document.createEvent("UIEvents"); 21c.initUIEvent("scroll",!1,!0,window,1);b.dispatchEvent(c)}:document.fireEvent?function(b){var c=document.createEventObject();
21b.fireEvent("onscroll");c.cancelBubble=!0}:function(b,c){};g.hastranslate3d&&b.opt.enabletranslate3d?(this.setScrollTop=function(d,c){b.doc.translate.y=d;b.doc.translate.ty=-1*d+"px";b.doc.css(g.trstyle,"translate3d("+b.doc.translate.tx+","+b.doc.translate.ty+",0px)");c||b.notifyScrollEvent(b.win[0])},this.setScrollLeft=function(d,c){b.doc.translate.x=d;b.doc.translate.tx=-1* 22d+"px";b.doc.css(g.trstyle,"translate3d("+b.doc.translate.tx+","+b.doc.translate.ty+",0px)");c||b.notifyScrollEvent(b.win[0])}):(this.setScrollTop=function(d,c){b.doc.translate.y=d;b.doc.translate.ty=-1*d+"px";b.doc.css(g.trstyle,"translate("+b.doc.translate.tx+","+b.doc.translate.ty+")");c||b.notifyScrollEvent(b.win[0])},this.setScrollLeft=function(d,c){b.doc.translate.x=d;b.doc.translate.tx=-1*d+"px";b.doc.css(g.trstyle,"translate("+b.doc.translate.tx+","+b.doc.translate.ty+")");c||b.notifyScrollEvent(b.win[0])})}else this.getScrollTop= 23function(){return b.docscroll.scrollTop()},this.setScrollTop=function(d){return b.docscroll.scrollTop(d)},this.getScrollLeft=function(){return b.docscroll.scrollLeft()},this.setScrollLeft=function(d){return b.docscroll.scrollLeft(d)};this.getTarget=function(b){return!b?!1:b.target?b.target:b.srcElement?b.srcElement:!1};this.hasParent=function(b,c){if(!b)return!1;for(var f=b.target||b.srcElement||b||!1;f&&f.id!=c;)f=f.parentNode||!1;return!1!==f};var u={thin:1,medium:3,thick:5};this.getOffset=function(){if(b.isfixed)return{top:parseFloat(b.win.css("top")), 24left:parseFloat(b.win.css("left"))};if(!b.viewport)return b.win.offset();var d=b.win.offset(),c=b.viewport.offset();return{top:d.top-c.top+b.viewport.scrollTop(),left:d.left-c.left+b.viewport.scrollLeft()}};this.updateScrollBar=function(d){if(b.ishwscroll)b.rail.css({height:b.win.innerHeight()}
24),b.railh&&b.railh.css({width:b.win.innerWidth()});else{var c=b.getOffset(),f=c.top,g=c.left,f=f+l(b.win,"border-top-width",!0);b.win.outerWidth();b.win.innerWidth();var g=g+(b.rail.align?b.win.outerWidth()- 25l(b.win,"border-right-width")-b.rail.width:l(b.win,"border-left-width")),e=b.opt.railoffset;e&&(e.top&&(f+=e.top),b.rail.align&&e.left&&(g+=e.left));b.locked||b.rail.css({top:f,left:g,height:d?d.h:b.win.innerHeight()});b.zoom&&b.zoom.css({top:f+1,left:1==b.rail.align?g-20:g+b.rail.width+4});b.railh&&!b.locked&&(f=c.top,g=c.left,d=b.railh.align?f+l(b.win,"border-top-width",!0)+b.win.innerHeight()-b.railh.height:f+l(b.win,"border-top-width",!0),g+=l(b.win,"border-left-width"),b.railh.css({top:d,left:g, 26width:b.railh.width}))}};this.doRailClick=function(d,c,f){var g;b.locked||(b.cancelEvent(d),c?(c=f?b.doScrollLeft:b.doScrollTop,g=f?(d.pageX-b.railh.offset().left-b.cursorwidth/2)*b.scrollratio.x:(d.pageY-b.rail.offset().top-b.cursorheight/2)*b.scrollratio.y,c(g)):(c=f?b.doScrollLeftBy:b.doScrollBy,g=f?b.scroll.x:b.scroll.y,d=f?d.pageX-b.railh.offset().left:d.pageY-b.rail.offset().top,f=f?b.view.w:b.view.h,g>=d?c(f):c(-f)))};b.hasanimationframe=v;b.hascancelanimationframe=w;b.hasanimationframe?b.hascancelanimationframe|| 27(w=function(){b.cancelAnimationFrame=!0}):(v=function(b){return setTimeout(b,15-Math.floor(+new Date/1E3)%16)},w=clearInterval);this.init=function(){b.saved.css=[];if(g.isie7mobile||g.isoperamini)return!0;g.hasmstouch&&b.css(b.ispage?e("html"):b.win,{"-ms-touch-action":"none"});b.zindex="auto";b.zindex=!b.ispage&&"auto"==b.opt.zindex?k()||"auto":b.opt.zindex;!b.ispage&&"auto"!=b.zindex&&b.zindex>y&&(y=b.zindex);b.isie&&(0==b.zindex&&"auto"==b.opt.zindex)&&(b.zindex="auto");if(!b.ispage||!g.cantouch&& 28!g.isieold&&!g.isie9mobile){var d=b.docscroll;b.ispage&&(d=b.haswrapper?b.win:b.doc);g.isie9mobile||b.css(d,{"overflow-y":"hidden"});b.ispage&&g.isie7&&("BODY"==b.doc[0].nodeName?b.css(e("html"),{"overflow-y":"hidden"}):"HTML"==b.doc[0].nodeName&&b.css(e("body"),{"overflow-y":"hidden"}));g.isios&&(!b.ispage&&!b.haswrapper)&&b.css(e("body"),{"-webkit-overflow-scrolling":"touch"});var c=e(document.createElement("div"));c.css({position:"relative",top:0,"float":"right",width:b.opt.cursorwidth,height:"0px", 29"background-color":b.opt.cursorcolor,border:b.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":b.opt.cursorborderradius,"-moz-border-radius":b.opt.cursorborderradius,"border-radius":b.opt.cursorborderradius});c.hborder=parseFloat(c.outerHeight()-c.innerHeight());b.cursor=c;var f=e(document.createElement("div"));f.attr("id",b.id);f.addClass("nicescroll-rails");var l,h,x=["left","right"],q;for(q in x)h=x[q],(l=b.opt.railpadding[h])?f.css("padding-"+h,l+"px"):b.opt.railpadding[h]= 300;f.append(c);f.width=Math.max(parseFloat(b.opt.cursorwidth),c.outerWidth())+b.opt.railpadding.left+b.opt.railpadding.right;f.css({width:f.width+"px",zIndex:b.zindex,background:b.opt.background,cursor:"default"});f.visibility=!0;f.scrollable=!0;f.align="left"==b.opt.railalign?0:1;b.rail=f;c=b.rail.drag=!1;b.opt.boxzoom&&(!b.ispage&&!g.isieold)&&(c=document.createElement("div"),b.bind(c,"click",b.doZoom),b.zoom=e(c),b.zoom.css({cursor:"pointer","z-index":b.zindex,backgroundImage:"url("+N+"zoomico.png)", 31height:18,width:18,backgroundPosition:"0px 0px"}),b.opt.dblclickzoom&&b.bind(b.win,"dblclick",b.doZoom),g.cantouch&&b.opt.gesturezoom&&(b.ongesturezoom=function(d){1.5<d.scale&&b.doZoomIn(d);0.8>d.scale&&b.doZoomOut(d);return b.cancelEvent(d)},b.bind(b.win,"gestureend",b.ongesturezoom)));b.railh=!1;if(b.opt.horizrailenabled){b.css(d,{"overflow-x":"hidden"});c=e(document.createElement("div"));c.css({position:"relative",top:0,height:b.opt.cursorwidth,width:"0px","background-color":b.opt.cursorcolor, 32border:b.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":b.opt.cursorborderradius,"-moz-border-radius":b.opt.cursorborderradius,"border-radius":b.opt.cursorborderradius});c.wborder=parseFloat(c.outerWidth()-c.innerWidth());b.cursorh=c;var m=e(document.createElement("div"));m.attr("id",b.id+"-hr");m.addClass("nicescroll-rails");m.height=Math.max(parseFloat(b.opt.cursorwidth),c.outerHeight());m.css({height:m.height+"px",zIndex:b.zindex,background:b.opt.background});m.append(c); 33m.visibility=!0;m.scrollable=!0;m.align="top"==b.opt.railvalign?0:1;b.railh=m;b.railh.drag=!1}b.ispage?(f.css({position:"fixed",top:"0px",height:"100%"}),f.align?f.css({right:"0px"}):f.css({left:"0px"}),b.body.append(f),b.railh&&(m.css({position:"fixed",left:"0px",width:"100%"}),m.align?m.css({bottom:"0px"}):m.css({top:"0px"}),b.body.append(m))):(b.ishwscroll?("static"==b.win.css("position")&&b.css(b.win,{position:"relative"}),d="HTML"==b.win[0].nodeName?b.body:b.win,b.zoom&&(b.zoom.css({position:"absolute",
34top:1,right:0,"margin-right":f.width+4}),d.append(b.zoom)),f.css({position:"absolute",top:0}),f.align?f.css({right:0}):f.css({left:0}),d.append(f),m&&(m.css({position:"absolute",left:0,bottom:0}),m.align?m.css({bottom:0}):m.css({top:0}),d.append(m))):(b.isfixed="fixed"==b.win.css("position"),d=b.isfixed?"fixed":"absolute",b.isfixed||(b.viewport=b.getViewport(b.win[0])),b.viewport&&(b.body=b.viewport,!1==/fixed|relative|absolute/.test(b.viewport.css("position"))&&b.css(b.viewport,{position:"relative"})), 35f.css({position:d}),b.zoom&&b.zoom.css({position:d}),b.updateScrollBar(),b.body.append(f),b.zoom&&b.body.append(b.zoom),b.railh&&(m.css({position:d}),b.body.append(m))),g.isios&&b.css(b.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),g.isie&&b.opt.disableoutline&&b.win.attr("hideFocus","true"),g.iswebkit&&b.opt.disableoutline&&b.win.css({outline:"none"}));!1===b.opt.autohidemode?(b.autohidedom=!1,b.rail.css({opacity:b.opt.cursoropacitymax}),b.railh&&b.railh.css({opacity:b.opt.cursoropacitymax})): 36!0===b.opt.autohidemode||"leave"===b.opt.autohidemode?(b.autohidedom=e().add(b.rail),g.isie8&&(b.autohidedom=b.autohidedom.add(b.cursor)),b.railh&&(b.autohidedom=b.autohidedom.add(b.railh)),b.railh&&g.isie8&&(b.autohidedom=b.autohidedom.add(b.cursorh))):"scroll"==b.opt.autohidemode?(b.autohidedom=e().add(b.rail),b.railh&&(b.autohidedom=b.autohidedom.add(b.railh))):"cursor"==b.opt.autohidemode?(b.autohidedom=e().add(b.cursor),b.railh&&(b.autohidedom=b.autohidedom.add(b.cursorh))):"hidden"==b.opt.autohidemode&& 37(b.autohidedom=!1,b.hide(),b.locked=!1);if(g.isie9mobile)b.scrollmom=new J(b),b.onmangotouch=function(d){d=b.getScrollTop();var c=b.getScrollLeft();if(d==b.scrollmom.lastscrolly&&c==b.scrollmom.lastscrollx)return!0;var f=d-b.mangotouch.sy,g=c-b.mangotouch.sx;if(0!=Math.round(Math.sqrt(Math.pow(g,2)+Math.pow(f,2)))){var n=0>f?-1:1,e=0>g?-1:1,k=+new Date;b.mangotouch.lazy&&clearTimeout(b.mangotouch.lazy);80<k-b.mangotouch.tm||b.mangotouch.dry!=n||b.mangotouch.drx!=e?(b.scrollmom.stop(),b.scrollmom.reset(c, 38d),b.mangotouch.sy=d,b.mangotouch.ly=d,b.mangotouch.sx=c,b.mangotouch.lx=c,b.mangotouch.dry=n,b.mangotouch.drx=e,b.mangotouch.tm=k):(b.scrollmom.stop(),b.scrollmom.update(b.mangotouch.sx-g,b.mangotouch.sy-f),b.mangotouch.tm=k,f=Math.max(Math.abs(b.mangotouch.ly-d),Math.abs(b.mangotouch.lx-c)),b.mangotouch.ly=d,b.mangotouch.lx=c,2<f&&(b.mangotouch.lazy=setTimeout(function(){b.mangotouch.lazy=!1;b.mangotouch.dry=0;b.mangotouch.drx=0;b.mangotouch.tm=0;b.scrollmom.doMomentum(30)},100)))}},f=b.getScrollTop(), 39m=b.getScrollLeft(),b.mangotouch={sy:f,ly:f,dry:0,sx:m,lx:m,drx:0,lazy:!1,tm:0},b.bind(b.docscroll,"scroll",b.onmangotouch);else{if(g.cantouch||b.istouchcapable||b.opt.touchbehavior||g.hasmstouch){b.scrollmom=new J(b);b.ontouchstart=function(d){if(d.pointerType&&2!=d.pointerType)return!1;if(!b.locked){if(g.hasmstouch)for(var c=d.target?d.target:!1;c;){var f=e(c).getNiceScroll();if(0<f.length&&f[0].me==b.me)break;if(0<f.length)return!1;if("DIV"==c.nodeName&&c.id==b.id)break;c=c.parentNode?c.parentNode: 40!1}b.cancelScroll();if((c=b.getTarget(d))&&/INPUT/i.test(c.nodeName)&&/range/i.test(c.type))return b.stopPropagation(d);!("clientX"in d)&&"changedTouches"in d&&(d.clientX=d.changedTouches[0].clientX,d.clientY=d.changedTouches[0].clientY);b.forcescreen&&(f=d,d={original:d.original?d.original:d},d.clientX=f.screenX,d.clientY=f.screenY);b.rail.drag={x:d.clientX,y:d.clientY,sx:b.scroll.x,sy:b.scroll.y,st:b.getScrollTop(),sl:b.getScrollLeft(),pt:2,dl:!1};if(b.ispage||!b.opt.directionlockdeadzone)b.rail.drag.dl= 41"f";else{var f=e(window).width(),n=e(window).height(),k=Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),l=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight),n=Math.max(0,l-n),f=Math.max(0,k-f);b.rail.drag.ck=!b.rail.scrollable&&b.railh.scrollable?0<n?"v":!1:b.rail.scrollable&&!b.railh.scrollable?0<f?"h":!1:!1;b.rail.drag.ck||(b.rail.drag.dl="f")}b.opt.touchbehavior&&(b.isiframe&&g.isie)&&(f=b.win.position(),b.rail.drag.x+=f.left,b.rail.drag.y+=f.top); 42b.hasmoving=!1;b.lastmouseup=!1;b.scrollmom.reset(d.clientX,d.clientY);if(!g.cantouch&&!this.istouchcapable&&!g.hasmstouch){if(!c||!/INPUT|SELECT|TEXTAREA/i.test(c.nodeName))return!b.ispage&&g.hasmousecapture&&c.setCapture(),b.opt.touchbehavior?b.cancelEvent(d):b.stopPropagation(d);/SUBMIT|CANCEL|BUTTON/i.test(e(c).attr("type"))&&(pc={tg:c,click:!1},b.preventclick=pc)}}};b.ontouchend=function(d){if(d.pointerType&&2!=d.pointerType)return!1;if(b.rail.drag&&2==b.rail.drag.pt&&(b.scrollmom.doMomentum(), 43b.rail.drag=!1,b.hasmoving&&(b.hasmoving=!1,b.lastmouseup=!0,b.hideCursor(),g.hasmousecapture&&document.releaseCapture(),!g.cantouch)))return b.cancelEvent(d)};var t=b.opt.touchbehavior&&b.isiframe&&!g.hasmousecapture;b.ontouchmove=function(d,c){if(d.pointerType&&2!=d.pointerType)return!1;if(b.rail.drag&&2==b.rail.drag.pt){if(g.cantouch&&"undefined"==typeof d.original)return!0;b.hasmoving=!0;b.preventclick&&!b.preventclick.click&&(b.preventclick.click=b.preventclick.tg.oncl
43ick||!1,b.preventclick.tg.onclick= 44b.onpreventclick);d=e.extend({original:d},d);"changedTouches"in d&&(d.clientX=d.changedTouches[0].clientX,d.clientY=d.changedTouches[0].clientY);if(b.forcescreen){var f=d;d={original:d.original?d.original:d};d.clientX=f.screenX;d.clientY=f.screenY}f=ofy=0;if(t&&!c){var n=b.win.position(),f=-n.left;ofy=-n.top}var k=d.clientY+ofy,n=k-b.rail.drag.y,l=d.clientX+f,h=l-b.rail.drag.x,r=b.rail.drag.st-n;b.ishwscroll&&b.opt.bouncescroll?0>r?r=Math.round(r/2):r>b.page.maxh&&(r=b.page.maxh+Math.round((r-b.page.maxh)/ 452)):(0>r&&(k=r=0),r>b.page.maxh&&(r=b.page.maxh,k=0));if(b.railh&&b.railh.scrollable){var m=b.rail.drag.sl-h;b.ishwscroll&&b.opt.bouncescroll?0>m?m=Math.round(m/2):m>b.page.maxw&&(m=b.page.maxw+Math.round((m-b.page.maxw)/2)):(0>m&&(l=m=0),m>b.page.maxw&&(m=b.page.maxw,l=0))}f=!1;if(b.rail.drag.dl)f=!0,"v"==b.rail.drag.dl?m=b.rail.drag.sl:"h"==b.rail.drag.dl&&(r=b.rail.drag.st);else{var n=Math.abs(n),h=Math.abs(h),x=b.opt.directionlockdeadzone;if("v"==b.rail.drag.ck){if(n>x&&h<=0.3*n)return b.rail.drag= 46!1,!0;h>x&&(b.rail.drag.dl="f",e("body").scrollTop(e("body").scrollTop()))}else if("h"==b.rail.drag.ck){if(h>x&&n<=0.3*h)return b.rail.drag=!1,!0;n>x&&(b.rail.drag.dl="f",e("body").scrollLeft(e("body").scrollLeft()))}}b.synched("touchmove",function(){b.rail.drag&&2==b.rail.drag.pt&&(b.prepareTransition&&b.prepareTransition(0),b.rail.scrollable&&b.setScrollTop(r),b.scrollmom.update(l,k),b.railh&&b.railh.scrollable?(b.setScrollLeft(m),b.showCursor(r,m)):b.showCursor(r),g.isie10&&document.selection.clear())}); 47g.ischrome&&b.istouchcapable&&(f=!1);if(f)return b.cancelEvent(d)}}}b.onmousedown=function(d,c){if(!(b.rail.drag&&1!=b.rail.drag.pt)){if(b.locked)return b.cancelEvent(d);b.cancelScroll();b.rail.drag={x:d.clientX,y:d.clientY,sx:b.scroll.x,sy:b.scroll.y,pt:1,hr:!!c};var f=b.getTarget(d);!b.ispage&&g.hasmousecapture&&f.setCapture();b.isiframe&&!g.hasmousecapture&&(b.saved.csspointerevents=b.doc.css("pointer-events"),b.css(b.doc,{"pointer-events":"none"}));return b.cancelEvent(d)}};b.onmouseup=function(d){if(b.rail.drag&& 48(g.hasmousecapture&&document.releaseCapture(),b.isiframe&&!g.hasmousecapture&&b.doc.css("pointer-events",b.saved.csspointerevents),1==b.rail.drag.pt))return b.rail.drag=!1,b.cancelEvent(d)};b.onmousemove=function(d){if(b.rail.drag&&1==b.rail.drag.pt){if(g.ischrome&&0==d.which)return b.onmouseup(d);b.cursorfreezed=!0;if(b.rail.drag.hr){b.scroll.x=b.rail.drag.sx+(d.clientX-b.rail.drag.x);0>b.scroll.x&&(b.scroll.x=0);var c=b.scrollvaluemaxw;b.scroll.x>c&&(b.scroll.x=c)}else b.scroll.y=b.rail.drag.sy+ 49(d.clientY-b.rail.drag.y),0>b.scroll.y&&(b.scroll.y=0),c=b.scrollvaluemax,b.scroll.y>c&&(b.scroll.y=c);b.synched("mousemove",function(){b.rail.drag&&1==b.rail.drag.pt&&(b.showCursor(),b.rail.drag.hr?b.doScrollLeft(Math.round(b.scroll.x*b.scrollratio.x),b.opt.cursordragspeed):b.doScrollTop(Math.round(b.scroll.y*b.scrollratio.y),b.opt.cursordragspeed))});return b.cancelEvent(d)}};if(g.cantouch||b.opt.touchbehavior)b.onpreventclick=function(d){if(b.preventclick)return b.preventclick.tg.onclick=b.preventclick.click, 50b.preventclick=!1,b.cancelEvent(d)},b.bind(b.win,"mousedown",b.ontouchstart),b.onclick=g.isios?!1:function(d){return b.lastmouseup?(b.lastmouseup=!1,b.cancelEvent(d)):!0},b.opt.grabcursorenabled&&g.cursorgrabvalue&&(b.css(b.ispage?b.doc:b.win,{cursor:g.cursorgrabvalue}),b.css(b.rail,{cursor:g.cursorgrabvalue}));else{var p=function(d){if(b.selectiondrag){if(d){var c=b.win.outerHeight();d=d.pageY-b.selectiondrag.top;0<d&&d<c&&(d=0);d>=c&&(d-=c);b.selectiondrag.df=d}0!=b.selectiondrag.df&&(b.doScrollBy(2* 51-Math.floor(b.selectiondrag.df/6)),b.debounced("doselectionscroll",function(){p()},50))}};b.hasTextSelected="getSelection"in document?function(){return 0<document.getSelection().rangeCount}:"selection"in document?function(){return"None"!=document.selection.type}:function(){return!1};b.onselectionstart=function(d){b.ispage||(b.selectiondrag=b.win.offset())};b.onselectionend=function(d){b.selectiondrag=!1};b.onselectiondrag=function(d){b.selectiondrag&&b.hasTextSelected()&&b.debounced("selectionscroll", 52function(){p(d)},250)}}g.hasmstouch&&(b.css(b.rail,{"-ms-touch-action":"none"}),b.css(b.cursor,{"-ms-touch-action":"none"}),b.bind(b.win,"MSPointerDown",b.ontouchstart),b.bind(document,"MSPointerUp",b.ontouchend),b.bind(document,"MSPointerMove",b.ontouchmove),b.bind(b.cursor,"MSGestureHold",function(b){b.preventDefault()}),b.bind(b.cursor,"contextmenu",function(b){b.preventDefault()}));this.istouchcapable&&(b.bind(b.win,"touchstart",b.ontouchstart),b.bind(document,"touchend",b.ontouchend),b.bind(document, 53"touchcancel",b.ontouchend),b.bind(document,"touchmove",b.ontouchmove));b.bind(b.cursor,"mousedown",b.onmousedown);b.bind(b.cursor,"mouseup",b.onmouseup);b.railh&&(b.bind(b.cursorh,"mousedown",function(d){b.onmousedown(d,!0)}),b.bind(b.cursorh,"mouseup",function(d){if(!(b.rail.drag&&2==b.rail.drag.pt))return b.rail.drag=!1,b.hasmoving=!1,b.hideCursor(),g.hasmousecapture&&document.releaseCapture(),b.cancelEvent(d)}));if(b.opt.cursordragontouch||!g.cantouch&&!b.opt.touchbehavior)b.rail.css({cursor:"default"}), 54b.railh&&b.railh.css({cursor:"default"}),b.jqbind(b.rail,"mouseenter",function(){b.canshowonmouseevent&&b.showCursor();b.rail.active=!0}),b.jqbind(b.rail,"mouseleave",function(){b.rail.active=!1;b.rail.drag||b.hideCursor()}),b.opt.sensitiverail&&(b.bind(b.rail,"click",function(d){b.doRailClick(d,!1,!1)}),b.bind(b.rail,"dblclick",function(d){b.doRailClick(d,!0,!1)}),b.bind(b.cursor,"click",function(d){b.cancelEvent(d)}),b.bind(b.cursor,"dblclick",function(d){b.cancelEvent(d)})),b.railh&&(b.jqbind(b.railh, 55"mouseenter",function(){b.canshowonmouseevent&&b.showCursor();b.rail.active=!0}),b.jqbind(b.railh,"mouseleave",function(){b.rail.active=!1;b.rail.drag||b.hideCursor()}),b.opt.sensitiverail&&(b.bind(b.railh,"click",function(d){b.doRailClick(d,!1,!0)}),b.bind(b.railh,"dblclick",function(d){b.doRailClick(d,!0,!0)}),b.bind(b.cursorh,"click",function(d){b.cancelEvent(d)}),b.bind(b.cursorh,"dblclick",function(d){b.cancelEvent(d)})));!g.cantouch&&!b.opt.touchbehavior?(b.bind(g.hasmousecapture?b.win:document, 56"mouseup",b.onmouseup),b.bind(document,"mousemove",b.onmousemove),b.onclick&&b.bind(document,"click",b.onclick),!b.ispage&&b.opt.enablescrollonselection&&(b.bind(b.win[0],"mousedown",b.onselectionstart),b.bind(document,"mouseup",b.onselectionend),b.bind(b.cursor,"mouseup",b.onselectionend),b.cursorh&&b.bind(b.cursorh,"mouseup",b.onselectionend),b.bind(document,"mousemove",b.onselectiondrag)),b.zoom&&(b.jqbind(b.zoom,"mouseenter",function(){b.canshowonmouseevent&&b.showCursor();b.rail.active=!0}), 57b.jqbind(b.zoom,"mouseleave",function(){b.rail.active=!1;b.rail.drag||b.hideCursor()}))):(b.bind(g.hasmousecapture?b.win:document,"mouseup",b.ontouchend),b.bind(document,"mousemove",b.ontouchmove),b.onclick&&b.bind(document,"click",b.onclick),b.opt.cursordragontouch&&(b.bind(b.cursor,"mousedown",b.onmousedown),b.bind(b.cursor,"mousemove",b.onmousemove),b.cursorh&&b.bind(b.cursorh,"mousedown",function(d){b.onmousedown(d,!0)}),b.cursorh&&b.bind(b.cursorh,"mousemove",b.onmousemove)));b.opt.enablemousewheel&& 58(b.isiframe||b.bind(g.isie&&b.ispage?document:b.win,"mousewheel",b.onmousewheel),b.bind(b.rail,"mousewheel",b.onmousewheel),b.railh&&b.bind(b.railh,"mousewheel",b.onmousewheelhr));!b.ispage&&(!g.cantouch&&!/HTML|BODY/.test(b.win[0].nodeName))&&(b.win.attr("tabindex")||b.win.attr({tabindex:L++}),b.jqbind(b.win,"focus",function(d){z=b.getTarget(d).id||!0;b.hasfocus=!0;b.canshowonmouseevent&&b.noticeCursor()}),b.jqbind(b.win,"blur",function(d){z=!1;b.hasfocus=!1}),b.jqbind(b.win,"mouseenter",function(d){E= 59b.getTarget(d).id||!0;b.hasmousefocus=!0;b.canshowonmouseevent&&b.noticeCursor()}),b.jqbind(b.win,"mouseleave",function(){E=!1;b.hasmousefocus=!1;b.rail.drag||b.hideCursor()}))}b.onkeypress=function(d){if(b.locked&&0==b.page.maxh)return!0;d=d?d:window.e;var c=b.getTarget(d);if(c&&/INPUT|TEXTAREA|SELECT|OPTION/.test(c.nodeName)&&(!c.getAttribute("type")&&!c.type||!/submit|button|cancel/i.tp))return!0;
59if(b.hasfocus||b.hasmousefocus&&!z||b.ispage&&!z&&!E){c=d.keyCode;if(b.locked&&27!=c)return b.cancelEvent(d); 60var f=d.ctrlKey||!1,n=d.shiftKey||!1,g=!1;switch(c){case 38:case 63233:b.doScrollBy(72);g=!0;break;case 40:case 63235:b.doScrollBy(-72);g=!0;break;case 37:case 63232:b.railh&&(f?b.doScrollLeft(0):b.doScrollLeftBy(72),g=!0);break;case 39:case 63234:b.railh&&(f?b.doScrollLeft(b.page.maxw):b.doScrollLeftBy(-72),g=!0);break;case 33:case 63276:b.doScrollBy(b.view.h);g=!0;break;case 34:case 63277:b.doScrollBy(-b.view.h);g=!0;break;case 36:case 63273:b.railh&&f?b.doScrollPos(0,0):b.doScrollTo(0);g=!0;break; 61case 35:case 63275:b.railh&&f?b.doScrollPos(b.page.maxw,b.page.maxh):b.doScrollTo(b.page.maxh);g=!0;break;case 32:b.opt.spacebarenabled&&(n?b.doScrollBy(b.view.h):b.doScrollBy(-b.view.h),g=!0);break;case 27:b.zoomactive&&(b.doZoom(),g=!0)}if(g)return b.cancelEvent(d)}};b.opt.enablekeyboard&&b.bind(document,g.isopera&&!g.isopera12?"keypress":"keydown",b.onkeypress);b.bind(window,"resize",b.lazyResize);b.bind(window,"orientationchange",b.lazyResize);b.bind(window,"load",b.lazyResize);if(g.ischrome&& 62!b.ispage&&!b.haswrapper){var s=b.win.attr("style"),f=parseFloat(b.win.css("width"))+1;b.win.css("width",f);b.synched("chromefix",function(){b.win.attr("style",s)})}b.onAttributeChange=function(d){b.lazyResize(250)};!b.ispage&&!b.haswrapper&&(!1!==A?(b.observer=new A(function(d){d.forEach(b.onAttributeChange)}),b.observer.observe(b.win[0],{childList:!0,characterData:!1,attributes:!0,subtree:!1}),b.observerremover=new A(function(d){d.forEach(function(d){if(0<d.removedNodes.length)for(var c in d.removedNodes)if(d.removedNodes[c]== 63b.win[0])return b.remove()})}),b.observerremover.observe(b.win[0].parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(b.bind(b.win,g.isie&&!g.isie9?"propertychange":"DOMAttrModified",b.onAttributeChange),g.isie9&&b.win[0].attachEvent("onpropertychange",b.onAttributeChange),b.bind(b.win,"DOMNodeRemoved",function(d){d.target==b.win[0]&&b.remove()})));!b.ispage&&b.opt.boxzoom&&b.bind(window,"resize",b.resizeZoom);b.istextarea&&b.bind(b.win,"mouseup",b.lazyResize);b.checkrtlmode=!0; 64b.lazyResize(30)}if("IFRAME"==this.doc[0].nodeName){var K=function(d){b.iframexd=!1;try{var c="contentDocument"in this?this.contentDocument:this.contentWindow.document}catch(f){b.iframexd=!0,c=!1}if(b.iframexd)return"console"in window&&console.log("NiceScroll error: policy restriced iframe"),!0;b.forcescreen=!0;b.isiframe&&(b.iframe={doc:e(c),html:b.doc.contents().find("html")[0],body:b.doc.contents().find("body")[0]},b.getContentSize=function(){return{w:Math.max(b.iframe.html.scrollWidth,b.iframe.body.scrollWidth), 65h:Math.max(b.iframe.html.scrollHeight,b.iframe.body.scrollHeight)}},b.docscroll=e(b.iframe.body));!g.isios&&(b.opt.iframeautoresize&&!b.isiframe)&&(b.win.scrollTop(0),b.doc.height(""),d=Math.max(c.getElementsByTagName("html")[0].scrollHeight,c.body.scrollHeight),b.doc.height(d));b.lazyResize(30);g.isie7&&b.css(e(b.iframe.html),{"overflow-y":"hidden"});b.css(e(b.iframe.body),{"overflow-y":"hidden"});g.isios&&b.haswrapper&&b.css(e(c.body),{"-webkit-transform":"translate3d(0,0,0)"});"contentWindow"in 66this?b.bind(this.contentWindow,"scroll",b.onscroll):b.bind(c,"scroll",b.onscroll);b.opt.enablemousewheel&&b.bind(c,"mousewheel",b.onmousewheel);b.opt.enablekeyboard&&b.bind(c,g.isopera?"keypress":"keydown",b.onkeypress);if(g.cantouch||b.opt.touchbehavior)b.bind(c,"mousedown",b.ontouchstart),b.bind(c,"mousemove",function(d){b.ontouchmove(d,!0)}),b.opt.grabcursorenabled&&g.cursorgrabvalue&&b.css(e(c.body),{cursor:g.cursorgrabvalue});b.bind(c,"mouseup",b.ontouchend);b.zoom&&(b.opt.dblclickzoom&&b.bind(c, 67"dblclick",b.doZoom),b.ongesturezoom&&b.bind(c,"gestureend",b.ongesturezoom))};this.doc[0].readyState&&"complete"==this.doc[0].readyState&&setTimeout(function(){K.call(b.doc[0],!1)},500);b.bind(this.doc,"load",K)}};this.showCursor=function(d,c){b.cursortimeout&&(clearTimeout(b.cursortimeout),b.cursortimeout=0);if(b.rail){b.autohidedom&&(b.autohidedom.stop().css({opacity:b.opt.cursoropacitymax}),b.cursoractive=!0);if(!b.rail.drag||1!=b.rail.drag.pt)"undefined"!=typeof d&&!1!==d&&(b.scroll.y=Math.round(1* 68d/b.scrollratio.y)),"undefined"!=typeof c&&(b.scroll.x=Math.round(1*c/b.scrollratio.x));b.cursor.css({height:b.cursorheight,top:b.scroll.y});b.cursorh&&(!b.rail.align&&b.rail.visibility?b.cursorh.css({width:b.cursorwidth,left:b.scroll.x+b.rail.width}):b.cursorh.css({width:b.cursorwidth,left:b.scroll.x}),b.cursoractive=!0);b.zoom&&b.zoom.stop().css({opacity:b.opt.cursoropacitymax})}};this.hideCursor=function(d){!b.cursortimeout&&(b.rail&&b.autohidedom&&!(b.hasmousefocus&&"leave"==b.opt.autohidemode))&& 69(b.cursortimeout=setTimeout(function(){if(!b.rail.active||!b.showonmouseevent)b.autohidedom.stop().animate({opacity:b.opt.cursoropacitymin}),b.zoom&&b.zoom.stop().animate({opacity:b.opt.cursoropacitymin}),b.cursoractive=!1;
69b.cursortimeout=0},d||b.opt.hidecursordelay))};this.noticeCursor=function(d,c,f){b.showCursor(c,f);b.rail.active||b.hideCursor(d)};this.getContentSize=b.ispage?function(){return{w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight, 70document.documentElement.scrollHeight)}}:b.haswrapper?function(){return{w:b.doc.outerWidth()+parseInt(b.win.css("paddingLeft"))+parseInt(b.win.css("paddingRight")),h:b.doc.outerHeight()+parseInt(b.win.css("paddingTop"))+parseInt(b.win.css("paddingBottom"))}}:function(){return{w:b.docscroll[0].scrollWidth,h:b.docscroll[0].scrollHeight}};this.onResize=function(d,c){if(!b.win)return!1;if(!b.haswrapper&&!b.ispage){if("none"==b.win.css("display"))return b.visibility&&b.hideRail().hideRailHr(),!1;!b.hidden&& 71!b.visibility&&b.showRail().showRailHr()}var f=b.page.maxh,g=b.page.maxw,e=b.view.w;b.view={w:b.ispage?b.win.width():parseInt(b.win[0].clientWidth),h:b.ispage?b.win.height():parseInt(b.win[0].clientHeight)};b.page=c?c:b.getContentSize();b.page.maxh=Math.max(0,b.page.h-b.view.h);b.page.maxw=Math.max(0,b.page.w-b.view.w);if(b.page.maxh==f&&b.page.maxw==g&&b.view.w==e){if(b.ispage)return b;f=b.win.offset();if(b.lastposition&&(g=b.lastposition,g.top==f.top&&g.left==f.left))return b;b.lastposition=f}0== 72b.page.maxh?(b.hideRail(),b.scrollvaluemax=0,b.scroll.y=0,b.scrollratio.y=0,b.cursorheight=0,b.setScrollTop(0),b.rail.scrollable=!1):b.rail.scrollable=!0;0==b.page.maxw?(b.hideRailHr(),b.scrollvaluemaxw=0,b.scroll.x=0,b.scrollratio.x=0,b.cursorwidth=0,b.setScrollLeft(0),b.railh.scrollable=!1):b.railh.scrollable=!0;b.locked=0==b.page.maxh&&0==b.page.maxw;if(b.locked)return b.ispage||b.updateScrollBar(b.view),!1;!b.hidden&&!b.visibility?b.showRail().showRailHr():!b.hidden&&!b.railh.visibility&&b.showRailHr(); 73b.istextarea&&(b.win.css("resize")&&"none"!=b.win.css("resize"))&&(b.view.h-=20);b.cursorheight=Math.min(b.view.h,Math.round(b.view.h*(b.view.h/b.page.h)));b.cursorheight=b.opt.cursorfixedheight?b.opt.cursorfixedheight:Math.max(b.opt.cursorminheight,b.cursorheight);b.cursorwidth=Math.min(b.view.w,Math.round(b.view.w*(b.view.w/b.page.w)));b.cursorwidth=b.opt.cursorfixedheight?b.opt.cursorfixedheight:Math.max(b.opt.cursorminheight,b.cursorwidth);b.scrollvaluemax=b.view.h-b.cursorheight-b.cursor.hborder; 74b.railh&&(b.railh.width=0<b.page.maxh?b.view.w-b.rail.width:b.view.w,b.scrollvaluemaxw=b.railh.width-b.cursorwidth-b.cursorh.wborder);b.checkrtlmode&&b.railh&&(b.checkrtlmode=!1,b.opt.rtlmode&&0==b.scroll.x&&b.setScrollLeft(b.page.maxw));b.ispage||b.updateScrollBar(b.view);b.scrollratio={x:b.page.maxw/b.scrollvaluemaxw,y:b.page.maxh/b.scrollvaluemax};b.getScrollTop()>b.page.maxh?b.doScrollTop(b.page.maxh):(b.scroll.y=Math.round(b.getScrollTop()*(1/b.scrollratio.y)),b.scroll.x=Math.round(b.getScrollLeft()* 75(1/b.scrollratio.x)),b.cursoractive&&b.noticeCursor());b.scroll.y&&0==b.getScrollTop()&&b.doScrollTo(Math.floor(b.scroll.y*b.scrollratio.y));return b};this.resize=b.onResize;this.lazyResize=function(d){d=isNaN(d)?30:d;b.delayed("resize",b.resize,d);return b};this._bind=function(d,c,f,g){b.events.push({e:d,n:c,f:f,b:g,q:!1});d.addEventListener?d.addEventListener(c,f,g||!1):d.attachEvent?d.attachEvent("on"+c,f):d["on"+c]=f};this.jqbind=function(d,c,f){b.events.push({e:d,n:c,f:f,q:!0});e(d).bind(c,f)}; 76this.bind=function(d,c,f,e){var k="jquery"in d?d[0]:d;"mousewheel"==c?"onwheel"in b.win?b._bind(k,"wheel",f,e||!1):(d="undefined"!=typeof document.onmousewheel?"mousewheel":"DOMMouseScroll",q(k,d,f,e||!1),"DOMMouseScroll"==d&&q(k,"MozMousePixelScroll",f,e||!1)):k.addEventListener?(g.cantouch&&/mouseup|mousedown|mousemove/.test(c)&&b._bind(k,"mousedown"==c?"touchstart":"mouseup"==c?"touchend":"touchmove",function(b){if(b.touches){if(2>b.touches.length){var d=b.touches.length?b.touches[0]:b;d.original= 77b;f.call(this,d)}}else b.changedTouches&&(d=b.changedTouches[0],d.original=b,f.call(this,d))},e||!1),b._bind(k,c,f,e||!1),g.cantouch&&"mouseup"==c&&b._bind(k,"touchcancel",f,e||!1)):b._bind(k,c,function(d){if((d=d||window.event||!1)&&d.srcElement)d.target=d.srcElement;"pageY"in d||(d.pageX=d.clientX+document.documentElement.scrollLeft,d.pageY=d.clientY+document.documentElement.scrollTop);return!1===f.call(k,d)||!1===e?b.cancelEvent(d):!0})};this._unbind=function(b,c,f,g){b.removeEventListener?b.removeEventListener(c, 78f,g):b.detachEvent?b.detachEvent("on"+c,f):b["on"+c]=!1};this.unbindAll=function(){for(var d=0;d<b.events.length;d++){var c=b.events[d];c.q?c.e.unbind(c.n,c.f):b._unbind(c.e,c.n,c.f,c.b)}};this.cancelEvent=function(b){b=b.original?b.original:b?b:window.event||!1;if(!b)return!1;b.preventDefault&&b.preventDefault();b.stopPropagation&&b.stopPropagation();b.preventManipulation&&b.preventManipulation();b.cancelBubble=!0;b.cancel=!0;return b.returnValue=!1};this.stopPropagation=function(b){b=b.original? 79b.original:b?b:window.event||!1;if(!b)return!1;if(b.stopPropagation)return b.stopPropagation();b.cancelBubble&&(b.cancelBubble=!0);return!1};this.showRail=function(){if(0!=b.page.maxh&&(b.ispage||"none"!=b.win.css("display")))b.visibility=!0,b.rail.visibility=!0,b.rail.css("display","block");return b};this.showRailHr=function(){if(!b.railh)return b;if(0!=b.page.maxw&&(b.ispage||"none"!=b.win.css("display")))b.railh.visibility=!0,b.railh.css("display","block");return b};this.hideRail=function(){b.visibility= 80!1;b.rail.visibility=!1;b.rail.css("display","none");return b};this.hideRailHr=function(){if(!b.railh)return b;b.railh.visibility=!1;b.railh.css("display","none");return b};this.show=function(){b.hidden=!1;b.locked=!1;return b.showRail().showRailHr()};this.hide=function(){b.hidden=!0;b.locked=!0;return b.hideRail().hideRailHr()};this.toggle=function(){return b.hidden?b.show():b.hide()};this.remove=function(){b.stop();b.cursortimeout&&clearTimeout(b.cursortimeout);b.doZoomOut();b.unbindAll();g.isie9&& 81b.win[0].detachEvent("onpropertychange",b.onAttributeChange);!1!==b.observer&&b.observer.disconnect();!1!==b.observerremover&&b.observerremover.disconnect();b.events=null;b.cursor&&b.cursor.remove();b.cursorh&&b.cursorh.remove();b.rail&&b.rail.remove();b.railh&&b.railh.remove();b.zoom&&b.zoom.remove();for(var d=0;d<b.saved.css.length;d++){var c=b.saved.css[d];c[0].css(c[1],"undefined"==typeof c[2]?"":c[2])}b.saved=!1;b.me.data("__nicescroll","");var f=e.nicescroll;f.each(function(d){if(this&&this.id=== 82b.id){delete f[d];for(var c=++d;c<f.length;c++,d++)f[d]=f[c];f.length--;f.length&&delete f[f.length]}});for(var k in b)b[k]=null,delete b[k];b=null};this.scrollstart=function(d){this.onscrollstart=d;return b};this.scrollend=function(d){this.onscrollend=d;return b};this.scrollcancel=function(d){this.onscrollcancel=d;return b};this.zoomin=function(d){this.onzoomin=d;return b};this.zoomout=function(d){this.onzoomout=d;return b};this.isScrollable=function(b){b=b.target?b.target:b;if("OPTION"==b.nodeName)return!0; 83for(;b&&1==b.nodeType&&!/BODY|HTML/.test(b.nodeName);){var c=e(b),c=c.css("overflowY")||c.css("overflowX")||c.css("overflow")||"";if(/scroll|auto/.test(c))return b.clientHeight!=b.scrollHeight;b=b.parentNode?b.parentNode:!1}return!1};this.getViewport=function(b){for(b=b&&b.parentNode?b.parentNode:!1;b&&1==b.nodeType&&!/BODY|HTML/.test(b.nodeName);){var c=e(b);
83if(/fixed|absolute/.test(c.css("position")))return c;var f=c.css("overflowY")||c.css("overflowX")||c.css("overflow")||"";if(/scroll|auto/.test(f)&& 84b.clientHeight!=b.scrollHeight||0<c.getNiceScroll().length)return c;b=b.parentNode?b.parentNode:!1}return!1};this.onmousewheel=function(d){if(b.locked)return b.debounced("checkunlock",b.resize,250),!0;if(b.rail.drag)return b.cancelEvent(d);"auto"==b.opt.oneaxismousemode&&0!=d.deltaX&&(b.opt.oneaxismousemode=!1);if(b.opt.oneaxismousemode&&0==d.deltaX&&!b.rail.scrollable)return b.railh&&b.railh.scrollable?b.onmousewheelhr(d):!0;var c=+new Date,f=!1;b.opt.preservenativescrolling&&b.checkarea+600<c&& 85(b.nativescrollingarea=b.isScrollable(d),f=!0);b.checkarea=c;if(b.nativescrollingarea)return!0;if(d=t(d,!1,f))b.checkarea=0;return d};this.onmousewheelhr=function(d){if(b.locked||!b.railh.scrollable)return!0;if(b.rail.drag)return b.cancelEvent(d);var c=+new Date,f=!1;b.opt.preservenativescrolling&&b.checkarea+600<c&&(b.nativescrollingarea=b.isScrollable(d),f=!0);b.checkarea=c;return b.nativescrollingarea?!0:b.locked?b.cancelEvent(d):t(d,!0,f)};this.stop=function(){b.cancelScroll();b.scrollmon&&b.scrollmon.stop(); 86b.cursorfreezed=!1;b.scroll.y=Math.round(b.getScrollTop()*(1/b.scrollratio.y));b.noticeCursor();return b};this.getTransitionSpeed=function(d){var c=Math.round(10*b.opt.scrollspeed);d=Math.min(c,Math.round(d/20*b.opt.scrollspeed));return 20<d?d:0};b.opt.smoothscroll?b.ishwscroll&&g.hastransition&&b.opt.usetransition?(this.prepareTransition=function(d,c){var f=c?20<d?d:0:b.getTransitionSpeed(d),e=f?g.prefixstyle+"transform "+f+"ms ease-out":"";if(!b.lasttransitionstyle||b.lasttransitionstyle!=e)b.lasttransitionstyle= 87e,b.doc.css(g.transitionstyle,e);return f},this.doScrollLeft=function(c,g){var f=b.scrollrunning?b.newscrolly:b.getScrollTop();b.doScrollPos(c,f,g)},this.doScrollTop=function(c,g){var f=b.scrollrunning?b.newscrollx:b.getScrollLeft();b.doScrollPos(f,c,g)},this.doScrollPos=function(c,e,f){var k=b.getScrollTop(),l=b.getScrollLeft();(0>(b.newscrolly-k)*(e-k)||0>(b.newscrollx-l)*(c-l))&&b.cancelScroll();!1==b.opt.bouncescroll&&(0>e?e=0:e>b.page.maxh&&(e=b.page.maxh),0>c?c=0:c>b.page.maxw&&(c=b.page.maxw)); 88if(b.scrollrunning&&c==b.newscrollx&&e==b.newscrolly)return!1;b.newscrolly=e;b.newscrollx=c;b.newscrollspeed=f||!1;if(b.timer)return!1;b.timer=setTimeout(function(){var f=b.getScrollTop(),k=b.getScrollLeft(),l,h;l=c-k;h=e-f;l=Math.round(Math.sqrt(Math.pow(l,2)+Math.pow(h,2)));l=b.newscrollspeed&&1<b.newscrollspeed?b.newscrollspeed:b.getTransitionSpeed(l);b.newscrollspeed&&1>=b.newscrollspeed&&(l*=b.newscrollspeed);b.prepareTransition(l,!0);b.timerscroll&&b.timerscroll.tm&&clearInterval(b.timerscroll.tm); 890<l&&(!b.scrollrunning&&b.onscrollstart&&b.onscrollstart.call(b,{type:"scrollstart",current:{x:k,y:f},request:{x:c,y:e},end:{x:b.newscrollx,y:b.newscrolly},speed:l}),g.transitionend?b.scrollendtrapped||(b.scrollendtrapped=!0,b.bind(b.doc,g.transitionend,b.onScrollEnd,!1)):(b.scrollendtrapped&&clearTimeout(b.scrollendtrapped),b.scrollendtrapped=setTimeout(b.onScrollEnd,l)),b.timerscroll={bz:new BezierClass(f,b.newscrolly,l,0,0,0.58,1),bh:new BezierClass(k,b.newscrollx,l,0,0,0.58,1)},b.cursorfreezed|| 90(b.timerscroll.tm=setInterval(function(){b.showCursor(b.getScrollTop(),b.getScrollLeft())},60)));b.synched("doScroll-set",function(){b.timer=0;b.scrollendtrapped&&(b.scrollrunning=!0);b.setScrollTop(b.newscrolly);b.setScrollLeft(b.newscrollx);if(!b.scrollendtrapped)b.onScrollEnd()})},50)},this.cancelScroll=function(){if(!b.scrollendtrapped)return!0;var c=b.getScrollTop(),e=b.getScrollLeft();b.scrollrunning=!1;g.transitionend||clearTimeout(g.transitionend);b.scrollendtrapped=!1;b._unbind(b.doc,g.transitionend, 91b.onScrollEnd);b.prepareTransition(0);b.setScrollTop(c);b.railh&&b.setScrollLeft(e);b.timerscroll&&b.timerscroll.tm&&clearInterval(b.timerscroll.tm);b.timerscroll=!1;b.cursorfreezed=!1;b.showCursor(c,e);return b},this.onScrollEnd=function(){b.scrollendtrapped&&b._unbind(b.doc,g.transitionend,b.onScrollEnd);b.scrollendtrapped=!1;b.prepareTransition(0);b.timerscroll&&b.timerscroll.tm&&clearInterval(b.timerscroll.tm);b.timerscroll=!1;var c=b.getScrollTop(),e=b.getScrollLeft();b.setScrollTop(c);b.railh&& 92b.setScrollLeft(e);b.noticeCursor(!1,c,e);
92b.cursorfreezed=!1;0>c?c=0:c>b.page.maxh&&(c=b.page.maxh);0>e?e=0:e>b.page.maxw&&(e=b.page.maxw);if(c!=b.newscrolly||e!=b.newscrollx)return b.doScrollPos(e,c,b.opt.snapbackspeed);b.onscrollend&&b.scrollrunning&&b.onscrollend.call(b,{type:"scrollend",current:{x:e,y:c},end:{x:b.newscrollx,y:b.newscrolly}});b.scrollrunning=!1}):(this.doScrollLeft=function(c,g){var f=b.scrollrunning?b.newscrolly:b.getScrollTop();b.doScrollPos(c,f,g)},this.doScrollTop=function(c, 93g){var f=b.scrollrunning?b.newscrollx:b.getScrollLeft();b.doScrollPos(f,c,g)},this.doScrollPos=function(c,g,f){function e(){if(b.cancelAnimationFrame)return!0;b.scrollrunning=!0;if(p=1-p)return b.timer=v(e)||1;var c=0,d=sy=b.getScrollTop();if(b.dst.ay){var d=b.bzscroll?b.dst.py+b.bzscroll.getNow()*b.dst.ay:b.newscrolly,f=d-sy;if(0>f&&d<b.newscrolly||0<f&&d>b.newscrolly)d=b.newscrolly;b.setScrollTop(d);d==b.newscrolly&&(c=1)}else c=1;var g=sx=b.getScrollLeft();if(b.dst.ax){g=b.bzscroll?b.dst.px+b.bzscroll.getNow()* 94b.dst.ax:b.newscrollx;f=g-sx;if(0>f&&g<b.newscrollx||0<f&&g>b.newscrollx)g=b.newscrollx;b.setScrollLeft(g);g==b.newscrollx&&(c+=1)}else c+=1;2==c?(b.timer=0,b.cursorfreezed=!1,b.bzscroll=!1,b.scrollrunning=!1,0>d?d=0:d>b.page.maxh&&(d=b.page.maxh),0>g?g=0:g>b.page.maxw&&(g=b.page.maxw),g!=b.newscrollx||d!=b.newscrolly?b.doScrollPos(g,d):b.onscrollend&&b.onscrollend.call(b,{type:"scrollend",current:{x:sx,y:sy},end:{x:b.newscrollx,y:b.newscrolly}})):b.timer=v(e)||1}g="undefined"==typeof g||!1===g?b.getScrollTop(!0): 95g;if(b.timer&&b.newscrolly==g&&b.newscrollx==c)return!0;b.timer&&w(b.timer);b.timer=0;var k=b.getScrollTop(),l=b.getScrollLeft();(0>(b.newscrolly-k)*(g-k)||0>(b.newscrollx-l)*(c-l))&&b.cancelScroll();b.newscrolly=g;b.newscrollx=c;if(!b.bouncescroll||!b.rail.visibility)0>b.newscrolly?b.newscrolly=0:b.newscrolly>b.page.maxh&&(b.newscrolly=b.page.maxh);if(!b.bouncescroll||!b.railh.visibility)0>b.newscrollx?b.newscrollx=0:b.newscrollx>b.page.maxw&&(b.newscrollx=b.page.maxw);b.dst={};b.dst.x=c-l;b.dst.y= 96g-k;b.dst.px=l;b.dst.py=k;var h=Math.round(Math.sqrt(Math.pow(b.dst.x,2)+Math.pow(b.dst.y,2)));b.dst.ax=b.dst.x/h;b.dst.ay=b.dst.y/h;var m=0,q=h;0==b.dst.x?(m=k,q=g,b.dst.ay=1,b.dst.py=0):0==b.dst.y&&(m=l,q=c,b.dst.ax=1,b.dst.px=0);h=b.getTransitionSpeed(h);f&&1>=f&&(h*=f);b.bzscroll=0<h?b.bzscroll?b.bzscroll.update(q,h):new BezierClass(m,q,h,0,1,0,1):!1;if(!b.timer){(k==b.page.maxh&&g>=b.page.maxh||l==b.page.maxw&&c>=b.page.maxw)&&b.checkContentSize();var p=1;b.cancelAnimationFrame=!1;b.timer=1; 97b.onscrollstart&&!b.scrollrunning&&b.onscrollstart.call(b,{type:"scrollstart",current:{x:l,y:k},request:{x:c,y:g},end:{x:b.newscrollx,y:b.newscrolly},speed:h});e();(k==b.page.maxh&&g>=k||l==b.page.maxw&&c>=l)&&b.checkContentSize();b.noticeCursor()}},this.cancelScroll=function(){b.timer&&w(b.timer);b.timer=0;b.bzscroll=!1;b.scrollrunning=!1;return b}):(this.doScrollLeft=function(c,g){var f=b.getScrollTop();b.doScrollPos(c,f,g)},this.doScrollTop=function(c,g){var f=b.getScrollLeft();b.doScrollPos(f, 98c,g)},this.doScrollPos=function(c,g,f){var e=c>b.page.maxw?b.page.maxw:c;0>e&&(e=0);var k=g>b.page.maxh?b.page.maxh:g;0>k&&(k=0);b.synched("scroll",function(){b.setScrollTop(k);b.setScrollLeft(e)})},this.cancelScroll=function(){});this.doScrollBy=function(c,g){var f=0,f=g?Math.floor((b.scroll.y-c)*b.scrollratio.y):(b.timer?b.newscrolly:b.getScrollTop(!0))-c;if(b.bouncescroll){var e=Math.round(b.view.h/2);f<-e?f=-e:f>b.page.maxh+e&&(f=b.page.maxh+e)}b.cursorfreezed=!1;py=b.getScrollTop(!0);if(0>f&& 990>=py)return b.noticeCursor();if(f>b.page.maxh&&py>=b.page.maxh)return b.checkContentSize(),b.noticeCursor();b.doScrollTop(f)};this.doScrollLeftBy=function(c,g){var f=0,f=g?Math.floor((b.scroll.x-c)*b.scrollratio.x):(b.timer?b.newscrollx:b.getScrollLeft(!0))-c;if(b.bouncescroll){var e=Math.round(b.view.w/2);f<-e?f=-e:f>b.page.maxw+e&&(f=b.page.maxw+e)}b.cursorfreezed=!1;px=b.getScrollLeft(!0);if(0>f&&0>=px||f>b.page.maxw&&px>=b.page.maxw)return b.noticeCursor();b.doScrollLeft(f)};this.doScrollTo= 100function(c,g){g&&Math.round(c*b.scrollratio.y);b.cursorfreezed=!1;b.doScrollTop(c)};this.checkContentSize=function(){var c=b.getContentSize();(c.h!=b.page.h||c.w!=b.page.w)&&b.resize(!1,c)};b.onscroll=function(c){b.rail.drag||b.cursorfreezed||b.synched("scroll",function(){b.scroll.y=Math.round(b.getScrollTop()*(1/b.scrollratio.y));b.railh&&(b.scroll.x=Math.round(b.getScrollLeft()*(1/b.scrollratio.x)));b.noticeCursor()})};
100b.bind(b.docscroll,"scroll",b.onscroll);this.doZoomIn=function(c){if(!b.zoomactive){b.zoomactive= 101!0;b.zoomrestore={style:{}};var k="position top left zIndex backgroundColor marginTop marginBottom marginLeft marginRight".split(" "),f=b.win[0].style,l;for(l in k){var h=k[l];b.zoomrestore.style[h]="undefined"!=typeof f[h]?f[h]:""}b.zoomrestore.style.width=b.win.css("width");b.zoomrestore.style.height=b.win.css("height");b.zoomrestore.padding={w:b.win.outerWidth()-b.win.width(),h:b.win.outerHeight()-b.win.height()};g.isios4&&(b.zoomrestore.scrollTop=e(window).scrollTop(),e(window).scrollTop(0)); 102b.win.css({position:g.isios4?"absolute":"fixed",top:0,left:0,"z-index":y+100,margin:"0px"});k=b.win.css("backgroundColor");(""==k||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(k))&&b.win.css("backgroundColor","#fff");b.rail.css({"z-index":y+101});b.zoom.css({"z-index":y+102});b.zoom.css("backgroundPosition","0px -18px");b.resizeZoom();b.onzoomin&&b.onzoomin.call(b);return b.cancelEvent(c)}};this.doZoomOut=function(c){if(b.zoomactive)return b.zoomactive=!1,b.win.css("margin",""),b.win.css(b.zoomrestore.style), 103g.isios4&&e(window).scrollTop(b.zoomrestore.scrollTop),b.rail.css({"z-index":b.zindex}),b.zoom.css({"z-index":b.zindex}),b.zoomrestore=!1,b.zoom.css("backgroundPosition","0px 0px"),b.onResize(),b.onzoomout&&b.onzoomout.call(b),b.cancelEvent(c)};this.doZoom=function(c){return b.zoomactive?b.doZoomOut(c):b.doZoomIn(c)};this.resizeZoom=function(){if(b.zoomactive){var c=b.getScrollTop();b.win.css({width:e(window).width()-b.zoomrestore.padding.w+"px",height:e(window).height()-b.zoomrestore.padding.h+"px"}); 104b.onResize();b.setScrollTop(Math.min(b.page.maxh,c))}};this.init();e.nicescroll.push(this)},J=function(e){var c=this;this.nc=e;this.steptime=this.lasttime=this.speedy=this.speedx=this.lasty=this.lastx=0;this.snapy=this.snapx=!1;this.demuly=this.demulx=0;this.lastscrolly=this.lastscrollx=-1;this.timer=this.chky=this.chkx=0;this.time=function(){return+new Date};this.reset=function(e,l){c.stop();var h=c.time();c.steptime=0;c.lasttime=h;c.speedx=0;c.speedy=0;c.lastx=e;c.lasty=l;c.lastscrollx=-1;c.lastscrolly= 105-1};this.update=function(e,l){var h=c.time();c.steptime=h-c.lasttime;c.lasttime=h;var h=l-c.lasty,t=e-c.lastx,b=c.nc.getScrollTop(),p=c.nc.getScrollLeft(),b=b+h,p=p+t;c.snapx=0>p||p>c.nc.page.maxw;c.snapy=0>b||b>c.nc.page.maxh;c.speedx=t;c.speedy=h;c.lastx=e;c.lasty=l};this.stop=function(){c.nc.unsynched("domomentum2d");c.timer&&clearTimeout(c.timer);c.timer=0;c.lastscrollx=-1;c.lastscrolly=-1};this.doSnapy=function(e,l){var h=!1;0>l?(l=0,h=!0):l>c.nc.page.maxh&&(l=c.nc.page.maxh,h=!0);0>e?(e=0,h= 106!0):e>c.nc.page.maxw&&(e=c.nc.page.maxw,h=!0);h&&c.nc.doScrollPos(e,l,c.nc.opt.snapbackspeed)};this.doMomentum=function(e){var l=c.time(),h=e?l+e:c.lasttime;e=c.nc.getScrollLeft();var t=c.nc.getScrollTop(),b=c.nc.page.maxh,p=c.nc.page.maxw;c.speedx=0<p?Math.min(60,c.speedx):0;c.speedy=0<b?Math.min(60,c.speedy):0;h=h&&60>=l-h;if(0>t||t>b||0>e||e>p)h=!1;e=c.speedx&&h?c.speedx:!1;if(c.speedy&&h&&c.speedy||e){var g=Math.max(16,c.steptime);50<g&&(e=g/50,c.speedx*=e,c.speedy*=e,g=50);c.demulxy=0;c.lastscrollx= 107c.nc.getScrollLeft();c.chkx=c.lastscrollx;c.lastscrolly=c.nc.getScrollTop();c.chky=c.lastscrolly;var s=c.lastscrollx,u=c.lastscrolly,d=function(){var e=600<c.time()-l?0.04:0.02;if(c.speedx&&(s=Math.floor(c.lastscrollx-c.speedx*(1-c.demulxy)),c.lastscrollx=s,0>s||s>p))e=0.1;if(c.speedy&&(u=Math.floor(c.lastscrolly-c.speedy*(1-c.demulxy)),c.lastscrolly=u,0>u||u>b))e=0.1;c.demulxy=Math.min(1,c.demulxy+e);c.nc.synched("domomentum2d",function(){c.speedx&&(c.nc.getScrollLeft()!=c.chkx&&c.stop(),c.chkx= 108s,c.nc.setScrollLeft(s));c.speedy&&(c.nc.getScrollTop()!=c.chky&&c.stop(),c.chky=u,c.nc.setScrollTop(u));c.timer||(c.nc.hideCursor(),c.doSnapy(s,u))});1>c.demulxy?c.timer=setTimeout(d,g):(c.stop(),c.nc.hideCursor(),c.doSnapy(s,u))};d()}else c.doSnapy(c.nc.getScrollLeft(),c.nc.getScrollTop())}},B=e.fn.scrollTop;e.cssHooks.pageYOffset={get:function(h,c,k){return(c=e.data(h,"__nicescroll")||!1)&&c.ishwscroll?c.getScrollTop():B.call(h)},set:function(h,c){var k=e.data(h,"__nicescroll")||!1;k&&k.ishwscroll? 109k.setScrollTop(parseInt(c)):B.call(h,c);return this}};e.fn.scrollTop=function(h){if("undefined"==typeof h){var c=this[0]?e.data(this[0],"__nicescroll")||!1:!1;return c&&c.ishwscroll?c.getScrollTop():B.call(this)}return this.each(function(){var c=e.data(this,"__nicescroll")||!1;c&&c.ishwscroll?c.setScrollTop(parseInt(h)):B.call(e(this),h)})};
109var C=e.fn.scrollLeft;e.cssHooks.pageXOffset={get:function(h,c,k){return(c=e.data(h,"__nicescroll")||!1)&&c.ishwscroll?c.getScrollLeft():C.call(h)},set:function(h, 110c){var k=e.data(h,"__nicescroll")||!1;k&&k.ishwscroll?k.setScrollLeft(parseInt(c)):C.call(h,c);return this}};e.fn.scrollLeft=function(h){if("undefined"==typeof h){var c=this[0]?e.data(this[0],"__nicescroll")||!1:!1;return c&&c.ishwscroll?c.getScrollLeft():C.call(this)}return this.each(function(){var c=e.data(this,"__nicescroll")||!1;c&&c.ishwscroll?c.setScrollLeft(parseInt(h)):C.call(e(this),h)})};var D=function(h){var c=this;this.length=0;this.name="nicescrollarray";this.each=function(e){for(var h= 1110,k=0;h<c.length;h++)e.call(c[h],k++);return c};this.push=function(e){c[c.length]=e;c.length++};this.eq=function(e){return c[e]};if(h)for(a=0;a<h.length;a++){var k=e.data(h[a],"__nicescroll")||!1;k&&(this[this.length]=k,this.length++)}return this};(function(e,c,k){for(var l=0;l<c.length;l++)k(e,c[l])})(D.prototype,"show hide toggle onResize resize remove stop doScrollPos".split(" "),function(e,c){e[c]=function(){var e=arguments;return this.each(function(){this[c].apply(this,e)})}});e.fn.getNiceScroll= 112function(h){return"undefined"==typeof h?new D(this):this[h]&&e.data(this[h],"__nicescroll")||!1};e.extend(e.expr[":"],{nicescroll:function(h){return e.data(h,"__nicescroll")?!0:!1}});e.fn.niceScroll=function(h,c){"undefined"==typeof c&&("object"==typeof h&&!("jquery"in h))&&(c=h,h=!1);var k=new D;"undefined"==typeof c&&(c={});h&&(c.doc=e(h),c.win=e(this));var l=!("doc"in c);!l&&!("win"in c)&&(c.win=e(this));this.each(function(){var h=e(this).data("__nicescroll")||!1;h||(c.doc=l?e(this):c.doc,h=new Q(c, 113e(this)),e(this).data("__nicescroll",h));k.push(h)});return 1==k.length?k[0]:k};window.NiceScroll={getjQuery:function(){return e}};e.nicescroll||(e.nicescroll=new D,e.nicescroll.options=I)})(jQuery); 114 115/*! http://mths.be/placeholder v2.0.7 by @mathias */ 116;(function(f,h,$){var a='placeholder' in h.createElement('input'),d='placeholder' in h.createElement('textarea'),i=$.fn,c=$.valHooks,k,j;if(a&&d){j=i.placeholder=function(){return this};j.input=j.textarea=true}else{j=i.placeholder=function(){var l=this;l.filter((a?'textarea':':input')+'[placeholder]').not('.placeholder').bind({'focus.placeholder':b,'blur.placeholder':e}).data('placeholder-enabled',true).trigger('blur.placeholder');return l};j.input=a;j.textarea=d;k={get:function(m){var l=$(m);return l.data('placeholder-enabled')&&l.hasClass('placeholder')?'':m.value},set:function(m,n){var l=$(m);if(!l.data('placeholder-enabled')){return m.value=n}if(n==''){m.value=n;if(m!=h.activeElement){e.call(m)}}else{if(l.hasClass('placeholder')){b.call(m,true,n)||(m.value=n)}else{m.value=n}}return l}};a||(c.input=k);d||(c.textarea=k);$(function(){$(h).delegate('form','submit.placeholder',function(){var l=$('.placeholder',this).each(b);setTimeout(function(){l.each(e)},10)})});$(f).bind('beforeunload.placeholder',function(){$('.placeholder').each(function(){this.value=''})})}function g(m){var l={},n=/^jQuery\d+$/;$.each(m.attributes,function(p,o){if(o.specified&&!n.test(o.name)){l[o.name]=o.value}});return l}function b(m,n){var l=this,o=$(l);if(l.value==o.attr('placeholder')&&o.hasClass('placeholder')){if(o.data('placeholder-password')){o=o.hide().next().show().attr('id',o.removeAttr('id').data('placeholder-id'));if(m===true){return o[0].value=n}o.focus()}else{l.value='';o.removeClass('placeholder');l==h.activeElement&&l.select()}}}function e(){var q,l=this,p=$(l),m=p,o=this.id;if(l.value==''){if(l.type=='password'){if(!p.data('placeholder-textinput')){try{q=p.clone().attr({type:'text'})}catch(n){q=$('<input>').attr($.extend(g(this),{type:'text'}))}q.removeAttr('name').data({'placeholder-password':true,'placeholder-id':o}).bind('focus.placeholder',b);p.data({'placeholder-textinput':q,'placeholder-id':o}).before(q)}p=p.removeAttr('id').hide().prev().attr('id',o).show()}p.addClass('placeholder');p[0].value=p.attr('placeholder')}else{p.removeClass('placeholder')}}}(this,document,jQuery)); 117 118 119/* 120 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ 121 * 122 * Uses the built in easing capabilities added In jQuery 1.1 123 * to offer multiple easing options 124 * 125 * TERMS OF USE - jQuery Easing 126 * 127 * Open source under the BSD License. 128 * 129 * Copyright Š2008 George McGinley Smith 130 * All rights reserved. 131 * 132 * Redistribution and use in source and binary forms, with or without modification, 133 * are permitted provided that the following conditions are met: 134 * 135 * Redistributions of source code must retain the above copyright notice, this list of 136 * conditions and the following disclaimer. 137 * Redistributions in binary form must reproduce the above copyright notice, this list 138 * of conditions and the following disclaimer in the documentation and/or other materials 139 * provided with the distribution. 140 * 141 * Neither the name of the author nor the names of contributors may be used to endorse
vendor: 5,700 bytes, lines 142-293
142 * or promote products derived from this software without specific prior written permission. 143 * 144 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 145 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 146 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 147 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 148 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 149 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 150 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 151 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 152 * OF THE POSSIBILITY OF SUCH DAMAGE. 153 * 154*/ 155 156// t: current time, b: begInnIng value, c: change In value, d: duration 157jQuery.easing['jswing'] = jQuery.easing['swing']; 158 159jQuery.extend( jQuery.easing, 160{ 161 def: 'easeOutQuad', 162 swing: function (x, t, b, c, d) { 163 //alert(jQuery.easing.default); 164 return jQuery.easing[jQuery.easing.def](x, t, b, c, d); 165 }, 166 easeInQuad: function (x, t, b, c, d) { 167 return c*(t/=d)*t + b; 168 }, 169 easeOutQuad: function (x, t, b, c, d) { 170 return -c *(t/=d)*(t-2) + b; 171 }, 172 easeInOutQuad: function (x, t, b, c, d) { 173 if ((t/=d/2) < 1) return c/2*t*t + b; 174 return -c/2 * ((--t)*(t-2) - 1) + b; 175 }, 176 easeInCubic: function (x, t, b, c, d) { 177 return c*(t/=d)*t*t + b; 178 }, 179 easeOutCubic: function (x, t, b, c, d) { 180 return c*((t=t/d-1)*t*t + 1) + b; 181 }, 182 easeInOutCubic: function (x, t, b, c, d) { 183 if ((t/=d/2) < 1) return c/2*t*t*t + b; 184 return c/2*((t-=2)*t*t + 2) + b; 185 }, 186 easeInQuart: function (x, t, b, c, d) { 187 return c*(t/=d)*t*t*t + b; 188 }, 189 easeOutQuart: function (x, t, b, c, d) { 190 return -c * ((t=t/d-1)*t*t*t - 1) + b; 191 }, 192 easeInOutQuart: function (x, t, b, c, d) { 193 if ((t/=d/2) < 1) return c/2*t*t*t*t + b; 194 return -c/2 * ((t-=2)*t*t*t - 2) + b; 195 }, 196 easeInQuint: function (x, t, b, c, d) { 197 return c*(t/=d)*t*t*t*t + b; 198 }, 199 easeOutQuint: function (x, t, b, c, d) { 200 return c*((t=t/d-1)*t*t*t*t + 1) + b; 201 }, 202 easeInOutQuint: function (x, t, b, c, d) { 203 if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; 204 return c/2*((t-=2)*t*t*t*t + 2) + b; 205 }, 206 easeInSine: function (x, t, b, c, d) { 207 return -c * Math.cos(t/d * (Math.PI/2)) + c + b; 208 }, 209 easeOutSine: function (x, t, b, c, d) { 210 return c * Math.sin(t/d * (Math.PI/2)) + b; 211 }, 212 easeInOutSine: function (x, t, b, c, d) { 213 return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; 214 }, 215 easeInExpo: function (x, t, b, c, d) { 216 return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; 217 }, 218 easeOutExpo: function (x, t, b, c, d) { 219 return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; 220 }, 221 easeInOutExpo: function (x, t, b, c, d) { 222 if (t==0) return b; 223 if (t==d) return b+c; 224 if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; 225 return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; 226 }, 227 easeInCirc: function (x, t, b, c, d) { 228 return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; 229 }, 230 easeOutCirc: function (x, t, b, c, d) { 231 return c * Math.sqrt(1 - (t=t/d-1)*t) + b; 232 }, 233 easeInOutCirc: function (x, t, b, c, d) { 234 if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; 235 return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; 236 }, 237 easeInElastic: function (x, t, b, c, d) { 238 var s=1.70158;var p=0;var a=c; 239 if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 240 if (a < Math.abs(c)) { a=c; var s=p/4; } 241 else var s = p/(2*Math.PI) * Math.asin (c/a); 242 return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 243 }, 244 easeOutElastic: function (x, t, b, c, d) { 245 var s=1.70158;var p=0;var a=c; 246 if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 247 if (a < Math.abs(c)) { a=c; var s=p/4; } 248 else var s = p/(2*Math.PI) * Math.asin (c/a); 249 return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; 250 }, 251 easeInOutElastic: function (x, t, b, c, d) { 252 var s=1.70158;var p=0;var a=c; 253 if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); 254 if (a < Math.abs(c)) { a=c; var s=p/4; } 255 else var s = p/(2*Math.PI) * Math.asin (c/a); 256 if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 257 return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; 258 }, 259 easeInBack: function (x, t, b, c, d, s) { 260 if (s == undefined) s = 1.70158; 261 return c*(t/=d)*t*((s+1)*t - s) + b; 262 }, 263 easeOutBack: function (x, t, b, c, d, s) { 264 if (s == undefined) s = 1.70158; 265 return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; 266 }, 267 easeInOutBack: function (x, t, b, c, d, s) { 268 if (s == undefined) s = 1.70158; 269 if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; 270 return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; 271 }, 272 easeInBounce: function (x, t, b, c, d) { 273 return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; 274 }, 275 easeOutBounce: function (x, t, b, c, d) { 276 if ((t/=d) < (1/2.75)) { 277 return c*(7.5625*t*t) + b; 278 } else if (t < (2/2.75)) { 279 return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; 280 } else if (t < (2.5/2.75)) { 281 return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; 282 } else { 283 return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; 284 } 285 }, 286 easeInOutBounce: function (x, t, b, c, d) { 287 if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; 288 return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; 289 } 290}); 291 292/* 293 *
294 * TERMS OF USE - EASING EQUATIONS 295 * 296 * Open source under the BSD License. 297 * 298 * Copyright Š2001 Robert Penner 299 * All rights reserved. 300 * 301 * Redistribution and use in source and binary forms, with or without modification, 302 * are permitted provided that the following conditions are met: 303 * 304 * Redistributions of source code must retain the above copyright notice, this list of 305 * conditions and the following disclaimer. 306 * Redistributions in binary form must reproduce the above copyright notice, this list 307 * of conditions and the following disclaimer in the documentation and/or other materials 308 * provided with the distribution. 309 * 310 * Neither the name of the author nor the names of contributors may be used to endorse 311 * or promote products derived from this software without specific prior written permission. 312 * 313 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 314 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 315 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 316 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 317 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 318 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 319 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 320 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 321 * OF THE POSSIBILITY OF SUCH DAMAGE. 322 * 323 */ 324 325 326 327 328// jQuery Quovolver v1.0 - http://sandbox.sebnitu.com/jquery/quovolver 329// By Sebastian Nitu - Copyright 2009 - All rights reserved 330(function($) { $.fn.quovolver = function(speed, delay) {if (!speed) speed = 10;if (!delay) delay = 9000;var quaSpd = (speed*4);if (quaSpd > (delay)) delay = quaSpd;var quote = $(this),firstQuo = $(this).filter(':first'),lastQuo = $(this).filter(':last'),wrapElem = '<div id="quote_wrap"></div>';$(this).wrapAll(wrapElem);$(this).hide();$(firstQuo).show();$(this).parent().css({height: $(firstQuo).height()}); setInterval(function(){if($(lastQuo).is(':visible')) {var nextElem = $(firstQuo);var wrapHeight = $(nextElem).height();} else {var nextElem = $(quote).filter(':visible').next();var wrapHeight = $(nextElem).height();}$(quote).filter(':visible').fadeOut(speed);setTimeout(function() {$(quote).parent().animate({height: wrapHeight}, speed);}, speed);if($(lastQuo).is(':visible')) {setTimeout(function() {$(firstQuo).fadeIn(speed*2);}, speed*2);} else {setTimeout(function() {$(nextElem).fadeIn(speed);}, speed*2);}}, delay); }; })(jQuery); 331 332 333/* Modernizr 2.6.2 (Custom Build) | MIT & BSD 334 * Build: http://modernizr.com/download/#-csstransitions-shiv-cssclasses-testprop-testallprops-domprefixes-load 335 */ 336;window.Modernizr=function(a,b,c){function x(a){j.cssText=a}function y(a,b){return x(prefixes.join(a+";")+(b||""))}function z(a,b){return typeof a===b}function A(a,b){return!!~(""+a).indexOf(b)}function B(a,b){for(var d in a){var e=a[d];if(!A(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function C(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:z(f,"function")?f.bind(d||b):f}return!1}function D(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+n.join(d+" ")+d).split(" ");return z(b,"string")||z(b,"undefined")?B(e,b):(e=(a+" "+o.join(d+" ")+d).split(" "),C(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",n=m.split(" "),o=m.toLowerCase().split(" "),p={},q={},r={},s=[],t=s.slice,u,v={}.hasOwnProperty,w;!z(v,"undefined")&&!z(v.call,"undefined")?w=function(a,b){return v.call(a,b)}:w=function(a,b){return b in a&&z(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=t.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(t.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(t.call(arguments)))};return e}),p.csstransitions=function(){return D("transition")};for(var E in p)w(p,E)&&(u=E.toLowerCase(),e[u]=p[E](),s.push((e[u]?"":"no-")+u));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)w(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},x(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;
vendor: 6,668 bytes, lines 336-349
336return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function p(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?n(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function q(a){a||(a=b);var c=m(a);return r.shivCSS&&!f&&!c.hasCSS&&(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),j||p(a,c),a}var c=a.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,g="_html5shiv",h=0,i={},j;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._domPrefixes=o,e._cssomPrefixes=n,e.testProp=function(a){return B([a])},e.testAllProps=D,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+s.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))}; 337 338 339/** 340 * jquery.cbpQTRotator.min.js v1.0.0 341 * http://www.codrops.com 342 * 343 * Licensed under the MIT license. 344 * http://www.opensource.org/licenses/mit-license.php 345 * 346 * Copyright 2013, Codrops 347 * http://www.codrops.com 348 */ 349(function(c,b,e){var d=b.Modernizr;c.CBPQTRotator=function(f,g){this.$el=c(g);this._init(f)};c.CBPQTRotator.defaults={speed:700,easing:"ease",interval:8000};c.CBPQTRotator.prototype={_init:function(f){this.options=c.extend(true,{},c.CBPQTRotator.defaults,f);this._config();this.$items.eq(this.current).addClass("cbp-qtcurrent");
349if(this.support){this._setTransition()}this._startRotator()},_config:function(){this.$items=this.$el.children("div.cbp-qtcontent");this.itemsCount=this.$items.length;this.current=0;this.support=d.csstransitions;if(this.support){this.$progress=c('<span class="cbp-qtprogress"></span>').appendTo(this.$el)}},_setTransition:function(){setTimeout(c.proxy(function(){this.$items.css("transition","opacity "+this.options.speed+"ms "+this.options.easing)},this),25)},_startRotator:function(){if(this.support){this._startProgress()}setTimeout(c.proxy(function(){if(this.support){this._resetProgress()}this._next();this._startRotator()},this),this.options.interval)},_next:function(){this.$items.eq(this.current).removeClass("cbp-qtcurrent");this.current=this.current<this.itemsCount-1?this.current+1:0;this.$items.eq(this.current).addClass("cbp-qtcurrent")},_startProgress:function(){setTimeout(c.proxy(function(){this.$progress.css({transition:"width "+this.options.interval+"ms linear",width:"100%"})},this),25)},_resetProgress:function(){this.$progress.css({transition:"none",width:"0%"})},destroy:function(){if(this.support){this.$items.css("transition","none");this.$progress.remove()}this.$items.removeClass("cbp-qtcurrent").css({position:"relative","z-index":100,"pointer-events":"auto",opacity:1})}};var a=function(f){if(b.console){b.console.error(f)}};c.fn.cbpQTRotator=function(g){if(typeof g==="string"){var f=Array.prototype.slice.call(arguments,1);this.each(function(){var h=c.data(this,"cbpQTRotator");if(!h){a("cannot call methods on cbpQTRotator prior to initialization; attempted to call method '"+g+"'");return}if(!c.isFunction(h[g])||g.charAt(0)==="_"){a("no such method '"+g+"' for cbpQTRotator instance");return}h[g].apply(h,f)})}else{this.each(function(){var h=c.data(this,"cbpQTRotator");if(h){h._init()}else{h=c.data(this,"cbpQTRotator",new c.CBPQTRotator(g,this))}})}return this}})(jQuery,window); 350 351 352 353 354/** 355 * Isotope v1.5.25 356 * An exquisite jQuery plugin for magical layouts 357 * http://isotope.metafizzy.co 358 * 359 * Commercial use requires one-time license fee 360 * http://metafizzy.co/#licenses 361 * 362 * Copyright 2012 David DeSandro / Metafizzy 363 */ 364(function(a,b,c){"use strict";var d=a.document,e=a.Modernizr,f=function(a){return a.charAt(0).toUpperCase()+a.slice(1)},g="Moz Webkit O Ms".split(" "),h=function(a){var b=d.documentElement.style,c;if(typeof b[a]=="string")return a;a=f(a);for(var e=0,h=g.length;e<h;e++){c=g[e]+a;if(typeof b[c]=="string")return c}},i=h("transform"),j=h("transitionProperty"),k={csstransforms:function(){return!!i},csstransforms3d:function(){var a=!!h("perspective");if(a){var c=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),d="@media ("+c.join("transform-3d),(")+"modernizr)",e=b("<style>"+d+"{#modernizr{height:3px}}"+"</style>").appendTo("head"),f=b('<div id="modernizr" />').appendTo("html");a=f.height()===3,f.remove(),e.remove()}return a},csstransitions:function(){return!!j}},l;if(e)for(l in k)e.hasOwnProperty(l)||e.addTest(l,k[l]);else{e=a.Modernizr={_version:"1.6ish: miniModernizr for Isotope"};var m=" ",n;for(l in k)n=k[l](),e[l]=n,m+=" "+(n?"":"no-")+l;b("html").addClass(m)}if(e.csstransforms){var o=e.csstransforms3d?{translate:function(a){return"translate3d("+a[0]+"px, "+a[1]+"px, 0) "},scale:function(a){return"scale3d("+a+", "+a+", 1) "}}:{translate:function(a){return"translate("+a[0]+"px, "+a[1]+"px) "},scale:function(a){return"scale("+a+") "}},p=function(a,c,d){var e=b.data(a,"isoTransform")||{},f={},g,h={},j;f[c]=d,b.extend(e,f);for(g in e)j=e[g],h[g]=o[g](j);var k=h.translate||"",l=h.scale||"",m=k+l;b.data(a,"isoTransform",e),a.style[i]=m};b.cssNumber.scale=!0,b.cssHooks.scale={set:function(a,b){p(a,"scale",b)},get:function(a,c){var d=b.data(a,"isoTransform");return d&&d.scale?d.scale:1}},b.fx.step.scale=function(a){b.cssHooks.scale.set(a.elem,a.now+a.unit)},b.cssNumber.translate=!0,b.cssHooks.translate={set:function(a,b){p(a,"translate",b)},get:function(a,c){var d=b.data(a,"isoTransform");return d&&d.translate?d.translate:[0,0]}}}var q,r;e.csstransitions&&(q={WebkitTransitionProperty:"webkitTransitionEnd",MozTransitionProperty:"transitionend",OTransitionProperty:"oTransitionEnd otransitionend",transitionProperty:"transitionend"}[j],r=h("transitionDuration"));var s=b.event,t=b.event.handle?"handle":"dispatch",u;s.special.smartresize={setup:function(){b(this).bind("resize",s.special.smartresize.handler)},teardown:function(){b(this).unbind("resize",s.special.smartresize.handler)},handler:function(a,b){var c=this,d=arguments;a.type="smartresize",u&&clearTimeout(u),u=setTimeout(function(){s[t].apply(c,d)},b==="execAsap"?0:100)}},b.fn.smartresize=function(a){return a?this.bind("smartresize",a):this.trigger("smartresize",["execAsap"])},b.Isotope=function(a,c,d){this.element=b(c),this._create(a),this._init(d)};var v=["width","height"],w=b(a);b.Isotope.settings={resizable:!0,layoutMode:"masonry",containerClass:"isotope",itemClass:"isotope-item",hiddenClass:"isotope-hidden",hiddenStyle:{opacity:0,scale:.001},visibleStyle:{opacity:1,scale:1}
vendor: 12,310 bytes, line 364
364,containerStyle:{position:"relative",overflow:"hidden"},animationEngine:"best-available",animationOptions:{queue:!1,duration:800},sortBy:"original-order",sortAscending:!0,resizesContainer:!0,transformsEnabled:!0,itemPositionDataEnabled:!1},b.Isotope.prototype={_create:function(a){this.options=b.extend({},b.Isotope.settings,a),this.styleQueue=[],this.elemCount=0;var c=this.element[0].style;this.originalStyle={};var d=v.slice(0);for(var e in this.options.containerStyle)d.push(e);for(var f=0,g=d.length;f<g;f++)e=d[f],this.originalStyle[e]=c[e]||"";this.element.css(this.options.containerStyle),this._updateAnimationEngine(),this._updateUsingTransforms();var h={"original-order":function(a,b){return b.elemCount++,b.elemCount},random:function(){return Math.random()}};this.options.getSortData=b.extend(this.options.getSortData,h),this.reloadItems(),this.offset={left:parseInt(this.element.css("padding-left")||0,10),top:parseInt(this.element.css("padding-top")||0,10)};var i=this;setTimeout(function(){i.element.addClass(i.options.containerClass)},0),this.options.resizable&&w.bind("smartresize.isotope",function(){i.resize()}),this.element.delegate("."+this.options.hiddenClass,"click",function(){return!1})},_getAtoms:function(a){var b=this.options.itemSelector,c=b?a.filter(b).add(a.find(b)):a,d={position:"absolute"};return c=c.filter(function(a,b){return b.nodeType===1}),this.usingTransforms&&(d.left=0,d.top=0),c.css(d).addClass(this.options.itemClass),this.updateSortData(c,!0),c},_init:function(a){this.$filteredAtoms=this._filter(this.$allAtoms),this._sort(),this.reLayout(a)},option:function(a){if(b.isPlainObject(a)){this.options=b.extend(!0,this.options,a);var c;for(var d in a)c="_update"+f(d),this[c]&&this[c]()}},_updateAnimationEngine:function(){var a=this.options.animationEngine.toLowerCase().replace(/[ _\-]/g,""),b;switch(a){case"css":case"none":b=!1;break;case"jquery":b=!0;break;default:b=!e.csstransitions}this.isUsingJQueryAnimation=b,this._updateUsingTransforms()},_updateTransformsEnabled:function(){this._updateUsingTransforms()},_updateUsingTransforms:function(){var a=this.usingTransforms=this.options.transformsEnabled&&e.csstransforms&&e.csstransitions&&!this.isUsingJQueryAnimation;a||(delete this.options.hiddenStyle.scale,delete this.options.visibleStyle.scale),this.getPositionStyles=a?this._translate:this._positionAbs},_filter:function(a){var b=this.options.filter===""?"*":this.options.filter;if(!b)return a;var c=this.options.hiddenClass,d="."+c,e=a.filter(d),f=e;if(b!=="*"){f=e.filter(b);var g=a.not(d).not(b).addClass(c);this.styleQueue.push({$el:g,style:this.options.hiddenStyle})}return this.styleQueue.push({$el:f,style:this.options.visibleStyle}),f.removeClass(c),a.filter(b)},updateSortData:function(a,c){var d=this,e=this.options.getSortData,f,g;a.each(function(){f=b(this),g={};for(var a in e)!c&&a==="original-order"?g[a]=b.data(this,"isotope-sort-data")[a]:g[a]=e[a](f,d);b.data(this,"isotope-sort-data",g)})},_sort:function(){var a=this.options.sortBy,b=this._getSorter,c=this.options.sortAscending?1:-1,d=function(d,e){var f=b(d,a),g=b(e,a);return f===g&&a!=="original-order"&&(f=b(d,"original-order"),g=b(e,"original-order")),(f>g?1:f<g?-1:0)*c};this.$filteredAtoms.sort(d)},_getSorter:function(a,c){return b.data(a,"isotope-sort-data")[c]},_translate:function(a,b){return{translate:[a,b]}},_positionAbs:function(a,b){return{left:a,top:b}},_pushPosition:function(a,b,c){b=Math.round(b+this.offset.left),c=Math.round(c+this.offset.top);var d=this.getPositionStyles(b,c);this.styleQueue.push({$el:a,style:d}),this.options.itemPositionDataEnabled&&a.data("isotope-item-position",{x:b,y:c})},layout:function(a,b){var c=this.options.layoutMode;this["_"+c+"Layout"](a);if(this.options.resizesContainer){var d=this["_"+c+"GetContainerSize"]();this.styleQueue.push({$el:this.element,style:d})}this._processStyleQueue(a,b),this.isLaidOut=!0},_processStyleQueue:function(a,c){var d=this.isLaidOut?this.isUsingJQueryAnimation?"animate":"css":"css",f=this.options.animationOptions,g=this.options.onLayout,h,i,j,k;i=function(a,b){b.$el[d](b.style,f)};if(this._isInserting&&this.isUsingJQueryAnimation)i=function(a,b){h=b.$el.hasClass("no-transition")?"css":d,b.$el[h](b.style,f)};else if(c||g||f.complete){var l=!1,m=[c,g,f.complete],n=this;j=!0,k=function(){if(l)return;var b;for(var c=0,d=m.length;c<d;c++)b=m[c],typeof b=="function"&&b.call(n.element,a,n);l=!0};if(this.isUsingJQueryAnimation&&d==="animate")f.complete=k,j=!1;else if(e.csstransitions){var o=0,p=this.styleQueue[0],s=p&&p.$el,t;while(!s||!s.length){t=this.styleQueue[o++];if(!t)return;s=t.$el}var u=parseFloat(getComputedStyle(s[0])[r]);u>0&&(i=function(a,b){b.$el[d](b.style,f).one(q,k)},j=!1)}}b.each(this.styleQueue,i),j&&k(),this.styleQueue=[]},resize:function(){this["_"+this.options.layoutMode+"ResizeChanged"]()&&this.reLayout()},reLayout:function(a){this["_"+this.options.layoutMode+"Reset"](),this.layout(this.$filteredAtoms,a)},addItems:function(a,b){var c=this._getAtoms(a);this.$allAtoms=this.$allAtoms.add(c),b&&b(c)},insert:function(a,b){this.element.append(a);var c=this;this.addItems(a,function(a){var d=c._filter(a);c._addHideAppended(d),c._sort(),c.reLayout(),c._revealAppended(d,b)})},appended:function(a,b){var c=this;this.addItems(a,function(a){c._addHideAppended(a),c.layout(a),c._revealAppended(a,b)})},_addHideAppended:function(a){this.$filteredAtoms=this.$filteredAtoms.add(a),a.addClass("no-transition"),this._isInserting=!0,this.styleQueue.push({$el:a,style:this.options.hiddenStyle})},_revealAppended:function(a,b){var c=this;setTimeout(function(){a.removeClass("no-transition"),c.styleQueue.push({$el:a,style:c.options.visibleStyle}),c._isInserting=!1,c._processStyleQueue(a,b)},10)},reloadItems:function(){this.$allAtoms=this._getAtoms(this.element.children())},remove:function(a,b){this.$allAtoms=this.$allAtoms.not(a),this.$filteredAtoms=this.$filteredAtoms.not(a);var c=this,d=function(){a.remove(),b&&b.call(c.element)};a.filter(":not(."+this.options.hiddenClass+")").length?(this.styleQueue.push({$el:a,style:this.options.hiddenStyle}),this._sort(),this.reLayout(d)):d()},shuffle:function(a){this.updateSortData(this.$allAtoms),this.options.sortBy="random",this._sort(),this.reLayout(a)},destroy:function(){var a=this.usingTransforms,b=this.options;this.$allAtoms.removeClass(b.hiddenClass+" "+b.itemClass).each(function(){var b=this.style;b.position="",b.top="",b.left="",b.opacity="",a&&(b[i]="")});var c=this.element[0].style;for(var d in this.originalStyle)c[d]=this.originalStyle[d];this.element.unbind(".isotope").undelegate("."+b.hiddenClass,"click").removeClass(b.containerClass).removeData("isotope"),w.unbind(".isotope")},_getSegments:function(a){var b=this.options.layoutMode,c=a?"rowHeight":"columnWidth",d=a?"height":"width",e=a?"rows":"cols",g=this.element[d](),h,i=this.options[b]&&this.options[b][c]||this.$filteredAtoms["outer"+f(d)](!0)||g;h=Math.floor(g/i),h=Math.max(h,1),this[b][e]=h,this[b][c]=i},_checkIfSegmentsChanged:function(a){var b=this.options.layoutMode,c=a?"rows":"cols",d=this[b][c];return this._getSegments(a),this[b][c]!==d},_masonryReset:function(){this.masonry={},this._getSegments();var a=this.masonry.cols;this.masonry.colYs=[];while(a--)this.masonry.colYs.push(0)},_masonryLayout:function(a){var c=this,d=c.masonry;a.each(function(){var a=b(this),e=Math.ceil(a.outerWidth(!0)/d.columnWidth);e=Math.min(e,d.cols);if(e===1)c._masonryPlaceBrick(a,d.colYs);else{var f=d.cols+1-e,g=[],h,i;for(i=0;i<f;i++)h=d.colYs.slice(i,i+e),g[i]=Math.max.apply(Math,h);c._masonryPlaceBrick(a,g)}})},_masonryPlaceBrick:function(a,b){var c=Math.min.apply(Math,b),d=0;for(var e=0,f=b.length;e<f;e++)if(b[e]===c){d=e;break}var g=this.masonry.columnWidth*d,h=c;this._pushPosition(a,g,h);var i=c+a.outerHeight(!0),j=this.masonry.cols+1-f;for(e=0;e<j;e++)this.masonry.colYs[d+e]=i},_masonryGetContainerSize:function(){var a=Math.max.apply(Math,this.masonry.colYs);return{height:a}},_masonryResizeChanged:function(){return this._checkIfSegmentsChanged()},_fitRowsReset:function(){this.fitRows={x:0,y:0,height:0}},_fitRowsLayout:function(a){var c=this,d=this.element.width(),e=this.fitRows;a.each(function(){var a=b(this),f=a.outerWidth(!0),g=a.outerHeight(!0);e.x!==0&&f+e.x>d&&(e.x=0,e.y=e.height),c._pushPosition(a,e.x,e.y),e.height=Math.max(e.y+g,e.height),e.x+=f})},_fitRowsGetContainerSize:function(){return{height:this.fitRows.height}},_fitRowsResizeChanged:function(){return!0},_cellsByRowReset:function(){this.cellsByRow={index:0},this._getSegments(),this._getSegments(!0)},_cellsByRowLayout:function(a){var c=this,d=this.cellsByRow;a.each(function(){var a=b(this),e=d.index%d.cols,f=Math.floor(d.index/d.cols),g=(e+.5)*d.columnWidth-a.outerWidth(!0)/2,h=(f+.5)*d.rowHeight-a.outerHeight(!0)/2;c._pushPosition(a,g,h),d.index++})},_cellsByRowGetContainerSize:function(){return{height:Math.ceil(this.$filteredAtoms.length/this.cellsByRow.cols)*this.cellsByRow.rowHeight+this.offset.top}},_cellsByRowResizeChanged:function(){return this._checkIfSegmentsChanged()},_straightDownReset:function(){this.straightDown={y:0}},_straightDownLayout:function(a){var c=this;a.each(function(a){var d=b(this);c._pushPosition(d,0,c.straightDown.y),c.straightDown.y+=d.outerHeight(!0)})},_straightDownGetContainerSize:function(){return{height:this.straightDown.y}},_straightDownResizeChanged:function(){return!0},_masonryHorizontalReset:function(){this.masonryHorizontal={},this._getSegments(!0);var a=this.masonryHorizontal.rows;this.masonryHorizontal.rowXs=[];while(a--)this.masonryHorizontal.rowXs.push(0)},_masonryHorizontalLayout:function(a){var c=this,d=c.masonryHorizontal;a.each(function(){var a=b(this),e=Math.ceil(a.outerHeight(!0)/d.rowHeight);e=Math.min(e,d.rows);if(e===1)c._masonryHorizontalPlaceBrick(a,d.rowXs);else{var f=d.rows+1-e,g=[],h,i;for(i=0;i<f;i++)h=d.rowXs.slice(i,i+e),g[i]=Math.max.apply(Math,h);c._masonryHorizontalPlaceBrick(a,g)}})},_masonryHorizontalPlaceBrick:function(a,b){var c=Math.min.apply(Math,b),d=0;for(var e=0,f=b.length;e<f;e++)if(b[e]===c){d=e;break}var g=c,h=this.masonryHorizontal.rowHeight*d;this._pushPosition(a,g,h);var i=c+a.outerWidth(!0),j=this.masonryHorizontal.rows+1-f;for(e=0;e<j;e++)this.masonryHorizontal.rowXs[d+e]=i},_masonryHorizontalGetContainerSize:function(){var a=Math.max.apply(Math,this.masonryHorizontal.rowXs);return{width:a}},_masonryHorizontalResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_fitColumnsReset:function(){this.fitColumns={x:0,y:0,width:0}},_fitColumnsLayout:function(a){var c=this,d=this.element.height(),e=this.fitColumns;a.each(function(){var a=b(this),f=a.outerWidth(!0),g=a.outerHeight(!0);e.y!==0&&g+e.y>d&&(e.x=e.width,e.y=0),c._pushPosition(a,e.x,e.y),e.width=Math.max(e.x+f,e.width),e.y+=g})},_fitColumnsGetContainerSize:function(){return{width:this.fitColumns.width}},_fitColumnsResizeChanged:function(){return!0},_cellsByColumnReset:function(){this.cellsByColumn={index:0},this._getSegments(),this._getSegments(!0)},_cellsByColumnLayout:function(a){var c=this,d=this.cellsByColumn;a.each(function(){var a=b(this),e=Math.floor(d.index/d.rows),f=d.index%d.rows,g=(e+.5)*d.columnWidth-a.outerWidth(!0)/2,h=(f+.5)*d.rowHeight-a.outerHeight(!0)/2;c._pushPosition(a,g,h),d.index++})},_cellsByColumnGetContainerSize:function(){return{width:Math.ceil(this.$filteredAtoms.length/this.cellsByColumn.rows)*this.cellsByColumn.columnWidth}},_cellsByColumnResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_straightAcrossReset:function(){this.straightAcross={x:0}},_straightAcrossLayout:function(a){var c=this;a.each(function(a){var d=b(this);c._pushPosition(d,c.straightAcross.x,0),c.straightAcross.x+=d.outerWidth(!0)})},_straightAcrossGetContainerSize:function(){return{width:this.straightAcross.x}},_straightAcrossResizeChanged:function(){return!0}},b.fn.imagesLoaded=function(a){function h(){a.call(c,d)}function i(a){var c=a.target;c.src!==f&&b.inArray(c,g)===-1&&(g.push(c),--e<=0&&(setTimeout(h),d.unbind(".imagesLoaded",i)))}var c=this,d=c.find("img").add(c.filter("img")),e=d.length,f="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",g=[];return e||h(),d.bind("load.imagesLoaded error.imagesLoaded",i).each(function(){var a=this.src;this.src=f,this.src=a}),c};var x=function(b){a.console&&a.console.error(b)};
364b.fn.isotope=function(a,c){if(typeof a=="string"){var d=Array.prototype.slice.call(arguments,1);this.each(function(){var c=b.data(this,"isotope");if(!c){x("cannot call methods on isotope prior to initialization; attempted to call method '"+a+"'");return}if(!b.isFunction(c[a])||a.charAt(0)==="_"){x("no such method '"+a+"' for isotope instance");return}c[a].apply(c,d)})}else this.each(function(){var d=b.data(this,"isotope");d?(d.option(a),d._init(c)):b.data(this,"isotope",new b.Isotope(a,this,c))});return this}})(window,jQuery); 365 366/* ------------------------------------------------------------------------ 367 Class: prettyPhoto 368 Use: Lightbox clone for jQuery 369 Author: Stephane Caron (http://www.no-margin-for-errors.com) 370 Version: 3.1.5 371------------------------------------------------------------------------- */ 372(function($) { 373 $.prettyPhoto = {version: '3.1.5'}; 374 375 $.fn.prettyPhoto = function(pp_settings) { 376 pp_settings = jQuery.extend({ 377 hook: 'data-gal', /* the attribute tag to use for prettyPhoto hooks. default: 'rel'. For HTML5, use "data-rel" or similar. */ 378 animation_speed: 'fast', /* fast/slow/normal */ 379 ajaxcallback: function() {}, 380 slideshow: 5000, /* false OR interval time in ms */ 381 autoplay_slideshow: false, /* true/false */ 382 opacity: 0.80, /* Value between 0 and 1 */ 383 show_title: true, /* true/false */ 384 allow_resize: true, /* Resize the photos bigger than viewport. true/false */ 385 allow_expand: true, /* Allow the user to expand a resized image. true/false */ 386 default_width: 500, 387 default_height: 344, 388 counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */ 389 theme: 'pp_default', /* light_rounded / dark_rounded / light_square / dark_square / facebook */ 390 horizontal_padding: 20, /* The padding on each side of the picture */ 391 hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */ 392 wmode: 'opaque', /* Set the flash wmode attribute */ 393 autoplay: true, /* Automatically start videos: True/False */ 394 modal: false, /* If set to true, only the close button will close the window */ 395 deeplinking: true, /* Allow prettyPhoto to update the url to enable deeplinking. */ 396 overlay_gallery: true, /* If set to true, a gallery will overlay the fullscreen image on mouse over */ 397 overlay_gallery_max: 30, /* Maximum number of pictures in the overlay gallery */ 398 keyboard_shortcuts: true, /* Set to false if you open forms inside prettyPhoto */ 399 changepicturecallback: function(){}, /* Called everytime an item is shown/changed */ 400 callback: function(){}, /* Called when prettyPhoto is closed */ 401 ie6_fallback: true, 402 markup: '<div class="pp_pic_holder"> \ 403 <div class="ppt"> </div> \ 404 <div class="pp_top"> \ 405 <div class="pp_left"></div> \ 406 <div class="pp_middle"></div> \ 407 <div class="pp_right"></div> \ 408 </div> \ 409 <div class="pp_content_container"> \ 410 <div class="pp_left"> \ 411 <div class="pp_right"> \ 412 <div class="pp_content"> \ 413 <div class="pp_loaderIcon"></div> \ 414 <div class="pp_fade"> \ 415 <a href="#" class="pp_expand" title="Expand the image">Expand</a> \ 416 <div class="pp_hoverContainer"> \ 417 <a class="pp_next" href="#">next</a> \ 418 <a class="pp_previous" href="#">previous</a> \ 419 </div> \ 420 <div id="pp_full_res"></div> \ 421 <div class="pp_details"> \ 422 <div class="pp_nav"> \ 423 <a href="#" class="pp_arrow_previous">Previous</a> \ 424 <p class="currentTextHolder">0/0</p> \ 425 <a href="#" class="pp_arrow_next">Next</a> \ 426 </div> \ 427 <p class="pp_description"></p> \ 428 <div class="pp_social">{pp_social}</div> \ 429 <a class="pp_close" href="#">Close</a> \ 430 </div> \ 431 </div> \ 432 </div> \ 433 </div> \ 434 </div> \ 435 </div> \ 436 <div class="pp_bottom"> \ 437 <div class="pp_left"></div> \ 438 <div class="pp_middle"></div> \ 439 <div class="pp_right"></div> \ 440 </div> \ 441 </div> \ 442 <div class="pp_overlay"></div>', 443 gallery_markup: '<div class="pp_gallery"> \ 444 <a href="#" class="pp_arrow_previous">Previous</a> \ 445 <div> \ 446 <ul> \ 447 {gallery} \ 448 </ul> \ 449 </div> \ 450 <a href="#" class="pp_arrow_next">Next</a> \ 451 </div>', 452 image_markup: '<img id="fullResImage" src="{path}" />', 453 flash_markup: '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>', 454 quicktime_markup: '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>', 455 iframe_markup: '<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>', 456 inline_markup: '<div class="pp_inline">{content}</div>', 457 custom_markup: '', 458 social_tools: '<div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook"><iframe src="//www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&layout=button_count&show_faces=true&width=500&action=like&font&colorscheme=light&height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div>' /* html or false to disable */ 459 }, pp_settings); 460 461 // Global variables accessible only by prettyPhoto 462 var matchedObjects = this, percentBased = false, pp_dimensions, pp_open, 463 464 // prettyPhoto container specific 465 pp_contentHeight, pp_contentWidth, pp_containerHeight, pp_containerWidth, 466 467 // Window size 468 windowHeight = $(window).height(), windowWidth = $(window).width(), 469 470 // Global elements 471 pp_slideshow; 472 473 doresize = true, scroll_pos = _get_scroll(); 474 475 // Window/Keyboard events 476 $(window).unbind('resize.prettyphoto').bind('resize.prettyphoto',function(){ _center_overlay(); _resize_overlay(); }); 477 478 if(pp_settings.keyboard_shortcuts) { 479 $(document).unbind('keydown.prettyphoto').bind('keydown.prettyphoto',function(e){
480 if(typeof $pp_pic_holder != 'undefined'){ 481 if($pp_pic_holder.is(':visible')){ 482 switch(e.keyCode){ 483 case 37: 484 $.prettyPhoto.changePage('previous'); 485 e.preventDefault(); 486 break; 487 case 39: 488 $.prettyPhoto.changePage('next'); 489 e.preventDefault(); 490 break; 491 case 27: 492 if(!settings.modal) 493 $.prettyPhoto.close(); 494 e.preventDefault(); 495 break; 496 }; 497 // return false; 498 }; 499 }; 500 }); 501 }; 502 503 /** 504 * Initialize prettyPhoto. 505 */ 506 $.prettyPhoto.initialize = function() { 507 508 settings = pp_settings; 509 510 if(settings.theme == 'pp_default') settings.horizontal_padding = 16; 511 512 // Find out if the picture is part of a set 513 theRel = $(this).attr(settings.hook); 514 galleryRegExp = /\[(?:.*)\]/; 515 isSet = (galleryRegExp.exec(theRel)) ? true : false; 516 517 // Put the SRCs, TITLEs, ALTs into an array. 518 pp_images = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr(settings.hook).indexOf(theRel) != -1) return $(n).attr('href'); }) : $.makeArray($(this).attr('href')); 519 pp_titles = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr(settings.hook).indexOf(theRel) != -1) return ($(n).find('img').attr('alt')) ? $(n).find('img').attr('alt') : ""; }) : $.makeArray($(this).find('img').attr('alt')); 520 pp_descriptions = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr(settings.hook).indexOf(theRel) != -1) return ($(n).attr('title')) ? $(n).attr('title') : ""; }) : $.makeArray($(this).attr('title')); 521 522 if(pp_images.length > settings.overlay_gallery_max) settings.overlay_gallery = false; 523 524 set_position = jQuery.inArray($(this).attr('href'), pp_images); // Define where in the array the clicked item is positionned 525 rel_index = (isSet) ? set_position : $("a["+settings.hook+"^='"+theRel+"']").index($(this)); 526 527 _build_overlay(this); // Build the overlay {this} being the caller 528 529 if(settings.allow_resize) 530 $(window).bind('scroll.prettyphoto',function(){ _center_overlay(); }); 531 532 533 $.prettyPhoto.open(); 534 535 return false; 536 } 537 538 539 /** 540 * Opens the prettyPhoto modal box. 541 * @param image {String,Array} Full path to the image to be open, can also be an array containing full images paths. 542 * @param title {String,Array} The title to be displayed with the picture, can also be an array containing all the titles. 543 * @param description {String,Array} The description to be displayed with the picture, can also be an array containing all the descriptions. 544 */ 545 $.prettyPhoto.open = function(event) { 546 if(typeof settings == "undefined"){ // Means it's an API call, need to manually get the settings and set the variables 547 settings = pp_settings; 548 pp_images = $.makeArray(arguments[0]); 549 pp_titles = (arguments[1]) ? $.makeArray(arguments[1]) : $.makeArray(""); 550 pp_descriptions = (arguments[2]) ? $.makeArray(arguments[2]) : $.makeArray(""); 551 isSet = (pp_images.length > 1) ? true : false; 552 set_position = (arguments[3])? arguments[3]: 0; 553 _build_overlay(event.target); // Build the overlay {this} being the caller 554 } 555 556 if(settings.hideflash) $('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','hidden'); // Hide the flash 557 558 _checkPosition($(pp_images).size()); // Hide the next/previous links if on first or last images. 559 560 $('.pp_loaderIcon').show(); 561 562 if(settings.deeplinking) 563 setHashtag(); 564 565 // Rebuild Facebook Like Button with updated href 566 if(settings.social_tools){ 567 facebook_like_link = settings.social_tools.replace('{location_href}', encodeURIComponent(location.href)); 568 $pp_pic_holder.find('.pp_social').html(facebook_like_link); 569 } 570 571 // Fade the content in 572 if($ppt.is(':hidden')) $ppt.css('opacity',0).show(); 573 $pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity); 574 575 // Display the current position 576 $pp_pic_holder.find('.currentTextHolder').text((set_position+1) + settings.counter_separator_label + $(pp_images).size()); 577 578 // Set the description 579 if(typeof pp_descriptions[set_position] != 'undefined' && pp_descriptions[set_position] != ""){ 580 $pp_pic_holder.find('.pp_description').show().html(unescape(pp_descriptions[set_position])); 581 }else{ 582 $pp_pic_holder.find('.pp_description').hide(); 583 } 584 585 // Get the dimensions 586 movie_width = ( parseFloat(getParam('width',pp_images[set_position])) ) ? getParam('width',pp_images[set_position]) : settings.default_width.toString(); 587 movie_height = ( parseFloat(getParam('height',pp_images[set_position])) ) ? getParam('height',pp_images[set_position]) : settings.default_height.toString(); 588 589 // If the size is % based, calculate according to window dimensions 590 percentBased=false; 591 if(movie_height.indexOf('%') != -1) { movie_height = parseFloat(($(window).height() * parseFloat(movie_height) / 100) - 150); percentBased = true; } 592 if(movie_width.indexOf('%') != -1) { movie_width = parseFloat(($(window).width() * parseFloat(movie_width) / 100) - 150); percentBased = true; } 593 594 // Fade the holder 595 $pp_pic_holder.fadeIn(function(){ 596 // Set the title
597 (settings.show_title && pp_titles[set_position] != "" && typeof pp_titles[set_position] != "undefined") ? $ppt.html(unescape(pp_titles[set_position])) : $ppt.html(' '); 598 599 imgPreloader = ""; 600 skipInjection = false; 601 602 // Inject the proper content 603 switch(_getFileType(pp_images[set_position])){ 604 case 'image': 605 imgPreloader = new Image(); 606 607 // Preload the neighbour images 608 nextImage = new Image(); 609 if(isSet && set_position < $(pp_images).size() -1) nextImage.src = pp_images[set_position + 1]; 610 prevImage = new Image(); 611 if(isSet && pp_images[set_position - 1]) prevImage.src = pp_images[set_position - 1]; 612 613 $pp_pic_holder.find('#pp_full_res')[0].innerHTML = settings.image_markup.replace(/{path}/g,pp_images[set_position]); 614 615 imgPreloader.onload = function(){ 616 // Fit item to viewport 617 pp_dimensions = _fitToViewport(imgPreloader.width,imgPreloader.height); 618 619 _showContent(); 620 }; 621 622 imgPreloader.onerror = function(){ 623 alert('Image cannot be loaded. Make sure the path is correct and image exist.'); 624 $.prettyPhoto.close(); 625 }; 626 627 imgPreloader.src = pp_images[set_position]; 628 break; 629 630 case 'youtube': 631 pp_dimensions = _fitToViewport(movie_width,movie_height); // Fit item to viewport 632 633 // Regular youtube link 634 movie_id = getParam('v',pp_images[set_position]); 635 636 // youtu.be link 637 if(movie_id == ""){ 638 movie_id = pp_images[set_position].split('youtu.be/'); 639 movie_id = movie_id[1]; 640 if(movie_id.indexOf('?') > 0) 641 movie_id = movie_id.substr(0,movie_id.indexOf('?')); // Strip anything after the ? 642 643 if(movie_id.indexOf('&') > 0) 644 movie_id = movie_id.substr(0,movie_id.indexOf('&')); // Strip anything after the & 645 } 646 647 movie = 'https://www.youtube.com/embed/'+movie_id; 648 (getParam('rel',pp_images[set_position])) ? movie+="?rel="+getParam('rel',pp_images[set_position]) : movie+="?rel=1"; 649 650 if(settings.autoplay) movie += "&autoplay=1"; 651 652 toInject = settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie); 653 break; 654 655 case 'vimeo': 656 pp_dimensions = _fitToViewport(movie_width,movie_height); // Fit item to viewport 657 658 movie_id = pp_images[set_position]; 659 var regExp = /http(s?):\/\/(www\.)?vimeo.com\/(\d+)/; 660 var match = movie_id.match(regExp); 661 662 movie = 'http://player.vimeo.com/video/'+ match[3] +'?title=0&byline=0&portrait=0'; 663 if(settings.autoplay) movie += "&autoplay=1;"; 664 665 vimeo_width = pp_dimensions['width'] + '/embed/?moog_width='+ pp_dimensions['width']; 666 667 toInject = settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,movie); 668 break; 669 670 case 'quicktime': 671 pp_dimensions = _fitToViewport(movie_width,movie_height); // Fit item to viewport 672 pp_dimensions['height']+=15; pp_dimensions['contentHeight']+=15; pp_dimensions['containerHeight']+=15; // Add space for the control bar 673 674 toInject = settings.quicktime_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay); 675 break; 676 677 case 'flash': 678 pp_dimensions = _fitToViewport(movie_width,movie_height); // Fit item to viewport 679 680 flash_vars = pp_images[set_position]; 681 flash_vars = flash_vars.substring(pp_images[set_position].indexOf('flashvars') + 10,pp_images[set_position].length); 682 683 filename = pp_images[set_position]; 684 filename = filename.substring(0,filename.indexOf('?')); 685 686 toInject = settings.flash_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+'?'+flash_vars); 687 break; 688 689 case 'iframe': 690 pp_dimensions = _fitToViewport(movie_width,movie_height); // Fit item to viewport 691 692 frame_url = pp_images[set_position]; 693 frame_url = frame_url.substr(0,frame_url.indexOf('iframe')-1); 694 695 toInject = settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,frame_url); 696 break; 697 698 case 'ajax': 699 doresize = false; // Make sure the dimensions are not resized. 700 pp_dimensions = _fitToViewport(movie_width,movie_height); 701 doresize = true; // Reset the dimensions 702 703 skipInjection = true; 704 $.get(pp_images[set_position],function(responseHTML){ 705 toInject = settings.inline_markup.replace(/{content}/g,responseHTML); 706 $pp_pic_holder.find('#pp_full_res')[0].innerHTML = toInject; 707 _showContent(); 708 });
709 710 break; 711 712 case 'custom': 713 pp_dimensions = _fitToViewport(movie_width,movie_height); // Fit item to viewport 714 715 toInject = settings.custom_markup; 716 break; 717 718 case 'inline': 719 // to get the item height clone it, apply default width, wrap it in the prettyPhoto containers , then delete 720 myClone = $(pp_images[set_position]).clone().append('<br clear="all" />').css({'width':settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline"></div></div>').appendTo($('body')).show(); 721 doresize = false; // Make sure the dimensions are not resized. 722 pp_dimensions = _fitToViewport($(myClone).width(),$(myClone).height()); 723 doresize = true; // Reset the dimensions 724 $(myClone).remove(); 725 toInject = settings.inline_markup.replace(/{content}/g,$(pp_images[set_position]).html()); 726 break; 727 }; 728 729 if(!imgPreloader && !skipInjection){ 730 $pp_pic_holder.find('#pp_full_res')[0].innerHTML = toInject; 731 732 // Show content 733 _showContent(); 734 }; 735 }); 736 737 return false; 738 }; 739 740 741 /** 742 * Change page in the prettyPhoto modal box 743 * @param direction {String} Direction of the paging, previous or next. 744 */ 745 $.prettyPhoto.changePage = function(direction){ 746 currentGalleryPage = 0; 747 748 if(direction == 'previous') { 749 set_position--; 750 if (set_position < 0) set_position = $(pp_images).size()-1; 751 }else if(direction == 'next'){ 752 set_position++; 753 if(set_position > $(pp_images).size()-1) set_position = 0; 754 }else{ 755 set_position=direction; 756 }; 757 758 rel_index = set_position; 759 760 if(!doresize) doresize = true; // Allow the resizing of the images 761 if(settings.allow_expand) { 762 $('.pp_contract').removeClass('pp_contract').addClass('pp_expand'); 763 } 764 765 _hideContent(function(){ $.prettyPhoto.open(); }); 766 }; 767 768 769 /** 770 * Change gallery page in the prettyPhoto modal box 771 * @param direction {String} Direction of the paging, previous or next. 772 */ 773 $.prettyPhoto.changeGalleryPage = function(direction){ 774 if(direction=='next'){ 775 currentGalleryPage ++; 776 777 if(currentGalleryPage > totalPage) currentGalleryPage = 0; 778 }else if(direction=='previous'){ 779 currentGalleryPage --; 780 781 if(currentGalleryPage < 0) currentGalleryPage = totalPage; 782 }else{ 783 currentGalleryPage = direction; 784 }; 785 786 slide_speed = (direction == 'next' || direction == 'previous') ? settings.animation_speed : 0; 787 788 slide_to = currentGalleryPage * (itemsPerPage * itemWidth); 789 790 $pp_gallery.find('ul').animate({left:-slide_to},slide_speed); 791 }; 792 793 794 /** 795 * Start the slideshow... 796 */ 797 $.prettyPhoto.startSlideshow = function(){ 798 if(typeof pp_slideshow == 'undefined'){ 799 $pp_pic_holder.find('.pp_play').unbind('click').removeClass('pp_play').addClass('pp_pause').click(function(){ 800 $.prettyPhoto.stopSlideshow(); 801 return false; 802 }); 803 pp_slideshow = setInterval($.prettyPhoto.startSlideshow,settings.slideshow); 804 }else{ 805 $.prettyPhoto.changePage('next'); 806 }; 807 } 808 809 810 /** 811 * Stop the slideshow... 812 */ 813 $.prettyPhoto.stopSlideshow = function(){ 814 $pp_pic_holder.find('.pp_pause').unbind('click').removeClass('pp_pause').addClass('pp_play').click(function(){ 815 $.prettyPhoto.startSlideshow(); 816 return false; 817 }); 818 clearInterval(pp_slideshow); 819 pp_slideshow=undefined; 820 } 821 822 823 /** 824 * Closes prettyPhoto. 825 */ 826 $.prettyPhoto.close = function(){ 827 if($pp_overlay.is(":animated")) return; 828 829 $.prettyPhoto.stopSlideshow(); 830 831 $pp_pic_holder.stop().find('object,embed').css('visibility','hidden'); 832 833 $('div.pp_pic_holder,div.ppt,.pp_fade').fadeOut(settings.animation_speed,function(){ $(this).remove(); }); 834 835 $pp_overlay.fadeOut(settings.animation_speed, function(){ 836 837 if(settings.hideflash) $('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','visible'); // Show the flash 838 839 $(this).remove(); // No more need for the prettyPhoto markup 840 841 $(window).unbind('scroll.prettyphoto'); 842 843 clearHashtag(); 844 845 settings.callback(); 846 847 doresize = true; 848 849 pp_open = false; 850 851 delete settings; 852 }); 853 }; 854 855 /** 856 * Set the proper sizes on the containers and animate the content in. 857 */ 858 function _showContent(){ 859 $('.pp_loaderIcon').hide(); 860 861 // Calculate the opened top position of the pic holder 862 projectedTop = scroll_pos['scrollTop'] + ((windowHeight/2) - (pp_dimensions['containerHeight']/2)); 863 if(projectedTop < 0) projectedTop = 0; 864 865 $ppt.fadeTo(settings.animation_speed,1); 866 867 // Resize the content holder 868 $pp_pic_holder.find('.pp_content') 869 .animate({ 870 height:pp_dimensions['contentHeight'], 871 width:pp_dimensions['contentWidth'] 872 },settings.animation_speed); 873 874 // Resize picture the holder 875 $pp_pic_holder.animate({ 876 'top': projectedTop, 877 'left': ((windowWidth/2) - (pp_dimensions['containerWidth']/2) < 0) ? 0 : (windowWidth/2) - (pp_dimensions['containerWidth']/2), 878 width:pp_dimensions['containerWidth'] 879 },settings.animation_speed,function(){ 880 $pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(pp_dimensions['height']).width(pp_dimensions['width']); 881 882 $pp_pic_holder.find('.pp_fade').fadeIn(settings.animation_speed); // Fade the new content 883 884 // Show the nav 885 if(isSet && _getFileType(pp_images[set_position])=="image") { $pp_pic_holder.find('.pp_hoverContainer').show(); }else{ $pp_pic_holder.find('.pp_hoverContainer').hide(); } 886 887 if(settings.allow_expand) { 888 if(pp_dimensions['resized']){ // Fade the resizing link if the image is resized 889 $('a.pp_expand,a.pp_contract').show(); 890 }else{ 891 $('a.pp_expand').hide(); 892 } 893 } 894 895 if(settings.autoplay_slideshow && !pp_slideshow && !pp_open) $.prettyPhoto.startSlideshow(); 896 897 settings.changepicturecallback(); // Callback! 898 899 pp_open = true; 900 }); 901 902 _insert_gallery(); 903 pp_settings.ajaxcallback(); 904 }; 905 906 /** 907 * Hide the content...DUH! 908 */ 909 function _hideContent(callback){ 910 // Fade out the current picture 911 $pp_pic_holder.find('#pp_full_res object,#pp_full_res embed').css('visibility','hidden'); 912 $pp_pic_holder.find('.pp_fade').fadeOut(settings.animation_speed,function(){ 913 $('.pp_loaderIcon').show(); 914 915 callback(); 916 }); 917 }; 918 919 /** 920 * Check the item position in the gallery array, hide or show the navigation links 921 * @param setCount {integer} The total number of items in the set 922 */ 923 function _checkPosition(setCount){ 924 (setCount > 1) ? $('.pp_nav').show() : $('.pp_nav').hide(); // Hide the bottom nav if it's not a set. 925 }; 926 927 /** 928 * Resize the item dimensions if it's bigger than the viewport 929 * @param width {integer} Width of the item to be opened 930 * @param height {integer} Height of the item to be opened 931 * @return An array containin the "fitted" dimensions 932 */ 933 function _fitToViewport(width,height){ 934 resized = false; 935 936 _getDimensions(width,height); 937 938 // Define them in case there's no resize needed 939 imageWidth = width, imageHeight = height; 940 941 if( ((pp_containerWidth > windowWidth) || (pp_containerHeight > windowHeight)) && doresize && settings.allow_resize && !percentBased) { 942 resized = true, fitting = false; 943 944 while (!fitting){ 945 if((pp_containerWidth > windowWidth)){ 946 imageWidth = (windowWidth - 200); 947 imageHeight = (height/width) * imageWidth; 948 }else if((pp_containerHeight > windowHeight)){ 949 imageHeight = (windowHeight - 200); 950 imageWidth = (width/height) * imageHeight; 951 }else{ 952 fitting = true; 953 }; 954 955 pp_containerHeight = imageHeight, pp_containerWidth = imageWidth; 956 }; 957 958 959 960 if((pp_containerWidth > windowWidth) || (pp_containerHeight > windowHeight)){ 961 _fitToViewport(pp_containerWidth,pp_containerHeight) 962 }; 963 964 _getDimensions(imageWidth,imageHeight); 965 }; 966 967 return { 968 width:Math.floor(imageWidth), 969 height:Math.floor(imageHeight), 970 containerHeight:Math.floor(pp_containerHeight), 971 containerWidth:Math.floor(pp_containerWidth) + (settings.horizontal_padding * 2), 972 contentHeight:Math.floor(pp_contentHeight), 973 contentWidth:Math.floor(pp_contentWidth), 974 resized:resized 975 }; 976 }; 977 978 /** 979 * Get the containers dimensions according to the item size 980 * @param width {integer} Width of the item to be opened 981 * @param height {integer} Height of the item to be opened 982 */ 983 function _getDimensions(width,height){ 984 width = parseFloat(width); 985 height = parseFloat(height); 986 987 // Get the details height, to do so, I need to clone it since it's invisible 988 $pp_details = $pp_pic_holder.find('.pp_details'); 989 $pp_details.width(width); 990 detailsHeight = parseFloat($pp_details.css('marginTop')) + parseFloat($pp_details.css('marginBottom')); 991 992 $pp_details = $pp_details.clone().addClass(settings.theme).width(width).appendTo($('body')).css({ 993 'position':'absolute', 994 'top':-10000 995 }); 996 detailsHeight += $pp_details.height(); 997 detailsHeight = (detailsHeight <= 34) ? 36 : detailsHeight; // Min-height for the details 998 $pp_details.remove(); 999 1000 // Get the titles height, to do so, I need to clone it since it's invisible 1001 $pp_title = $pp_pic_holder.find('.ppt'); 1002 $pp_title.width(width); 1003 titleHeight = parseFloat($pp_title.css('marginTop')) + parseFloat($pp_title.css('marginBottom')); 1004 $pp_title = $pp_title.clone().appendTo($('body')).css({ 1005 'position':'absolute', 1006 'top':-10000 1007 }); 1008 titleHeight += $pp_title.height(); 1009 $pp_title.remove(); 1010 1011 // Get the container size, to resize the holder to the right dimensions 1012 pp_contentHeight = height + detailsHeight; 1013 pp_contentWidth = width; 1014 pp_containerHeight = pp_contentHeight + titleHeight + $pp_pic_holder.find('.pp_top').height() + $pp_pic_holder.find('.pp_bottom').height(); 1015 pp_containerWidth = width; 1016 } 1017
1018 function _getFileType(itemSrc){ 1019 if (itemSrc.match(/youtube\.com\/watch/i) || itemSrc.match(/youtu\.be/i)) { 1020 return 'youtube'; 1021 }else if (itemSrc.match(/vimeo\.com/i)) { 1022 return 'vimeo'; 1023 }else if(itemSrc.match(/\b.mov\b/i)){ 1024 return 'quicktime'; 1025 }else if(itemSrc.match(/\b.swf\b/i)){ 1026 return 'flash'; 1027 }else if(itemSrc.match(/\biframe=true\b/i)){ 1028 return 'iframe'; 1029 }else if(itemSrc.match(/\bajax=true\b/i)){ 1030 return 'ajax'; 1031 }else if(itemSrc.match(/\bcustom=true\b/i)){ 1032 return 'custom'; 1033 }else if(itemSrc.substr(0,1) == '#'){ 1034 return 'inline'; 1035 }else{ 1036 return 'image'; 1037 }; 1038 }; 1039 1040 function _center_overlay(){ 1041 if(doresize && typeof $pp_pic_holder != 'undefined') { 1042 scroll_pos = _get_scroll(); 1043 contentHeight = $pp_pic_holder.height(), contentwidth = $pp_pic_holder.width(); 1044 1045 projectedTop = (windowHeight/2) + scroll_pos['scrollTop'] - (contentHeight/2); 1046 if(projectedTop < 0) projectedTop = 0; 1047 1048 if(contentHeight > windowHeight) 1049 return; 1050 1051 $pp_pic_holder.css({ 1052 'top': projectedTop, 1053 'left': (windowWidth/2) + scroll_pos['scrollLeft'] - (contentwidth/2) 1054 }); 1055 }; 1056 }; 1057 1058 function _get_scroll(){ 1059 if (self.pageYOffset) { 1060 return {scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}; 1061 } else if (document.documentElement && document.documentElement.scrollTop) { // Explorer 6 Strict 1062 return {scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}; 1063 } else if (document.body) {// all other Explorers 1064 return {scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}; 1065 }; 1066 }; 1067 1068 function _resize_overlay() { 1069 windowHeight = $(window).height(), windowWidth = $(window).width(); 1070 1071 if(typeof $pp_overlay != "undefined") $pp_overlay.height($(document).height()).width(windowWidth); 1072 }; 1073 1074 function _insert_gallery(){ 1075 if(isSet && settings.overlay_gallery && _getFileType(pp_images[set_position])=="image") { 1076 itemWidth = 52+5; // 52 beign the thumb width, 5 being the right margin. 1077 navWidth = (settings.theme == "facebook" || settings.theme == "pp_default") ? 50 : 30; // Define the arrow width depending on the theme 1078 1079 itemsPerPage = Math.floor((pp_dimensions['containerWidth'] - 100 - navWidth) / itemWidth); 1080 itemsPerPage = (itemsPerPage < pp_images.length) ? itemsPerPage : pp_images.length; 1081 totalPage = Math.ceil(pp_images.length / itemsPerPage) - 1; 1082 1083 // Hide the nav in the case there's no need for links 1084 if(totalPage == 0){ 1085 navWidth = 0; // No nav means no width! 1086 $pp_gallery.find('.pp_arrow_next,.pp_arrow_previous').hide(); 1087 }else{ 1088 $pp_gallery.find('.pp_arrow_next,.pp_arrow_previous').show(); 1089 }; 1090 1091 galleryWidth = itemsPerPage * itemWidth; 1092 fullGalleryWidth = pp_images.length * itemWidth; 1093 1094 // Set the proper width to the gallery items 1095 $pp_gallery 1096 .css('margin-left',-((galleryWidth/2) + (navWidth/2))) 1097 .find('div:first').width(galleryWidth+5) 1098 .find('ul').width(fullGalleryWidth) 1099 .find('li.selected').removeClass('selected'); 1100 1101 goToPage = (Math.floor(set_position/itemsPerPage) < totalPage) ? Math.floor(set_position/itemsPerPage) : totalPage; 1102 1103 $.prettyPhoto.changeGalleryPage(goToPage); 1104 1105 $pp_gallery_li.filter(':eq('+set_position+')').addClass('selected'); 1106 }else{ 1107 $pp_pic_holder.find('.pp_content').unbind('mouseenter mouseleave'); 1108 // $pp_gallery.hide(); 1109 } 1110 } 1111 1112 function _build_overlay(caller){ 1113 // Inject Social Tool markup into General markup 1114 if(settings.social_tools) 1115 facebook_like_link = settings.social_tools.replace('{location_href}', encodeURIComponent(location.href)); 1116 1117 settings.markup = settings.markup.replace('{pp_social}',''); 1118 1119 $('body').append(settings.markup); // Inject the markup 1120 1121 $pp_pic_holder = $('.pp_pic_holder') , $ppt = $('.ppt'), $pp_overlay
1121= $('div.pp_overlay'); // Set my global selectors 1122 1123 // Inject the inline gallery! 1124 if(isSet && settings.overlay_gallery) { 1125 currentGalleryPage = 0; 1126 toInject = ""; 1127 for (var i=0; i < pp_images.length; i++) { 1128 if(!pp_images[i].match(/\b(jpg|jpeg|png|gif)\b/gi)){ 1129 classname = 'default'; 1130 img_src = ''; 1131 }else{ 1132 classname = ''; 1133 img_src = pp_images[i]; 1134 } 1135 toInject += "<li class='"+classname+"'><a href='#'><img src='" + img_src + "' width='50' alt='' /></a></li>"; 1136 }; 1137 1138 toInject = settings.gallery_markup.replace(/{gallery}/g,toInject); 1139 1140 $pp_pic_holder.find('#pp_full_res').after(toInject); 1141 1142 $pp_gallery = $('.pp_pic_holder .pp_gallery'), $pp_gallery_li = $pp_gallery.find('li'); // Set the gallery selectors 1143 1144 $pp_gallery.find('.pp_arrow_next').click(function(){ 1145 $.prettyPhoto.changeGalleryPage('next'); 1146 $.prettyPhoto.stopSlideshow(); 1147 return false; 1148 }); 1149 1150 $pp_gallery.find('.pp_arrow_previous').click(function(){ 1151 $.prettyPhoto.changeGalleryPage('previous'); 1152 $.prettyPhoto.stopSlideshow(); 1153 return false; 1154 }); 1155 1156 $pp_pic_holder.find('.pp_content').hover( 1157 function(){ 1158 $pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeIn(); 1159 }, 1160 function(){ 1161 $pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeOut(); 1162 }); 1163 1164 itemWidth = 52+5; // 52 beign the thumb width, 5 being the right margin. 1165 $pp_gallery_li.each(function(i){ 1166 $(this) 1167 .find('a') 1168 .click(function(){ 1169 $.prettyPhoto.changePage(i); 1170 $.prettyPhoto.stopSlideshow(); 1171 return false; 1172 }); 1173 }); 1174 }; 1175 1176 1177 // Inject the play/pause if it's a slideshow 1178 if(settings.slideshow){ 1179 $pp_pic_holder.find('.pp_nav').prepend('<a href="#" class="pp_play">Play</a>') 1180 $pp_pic_holder.find('.pp_nav .pp_play').click(function(){ 1181 $.prettyPhoto.startSlideshow(); 1182 return false; 1183 }); 1184 } 1185 1186 $pp_pic_holder.attr('class','pp_pic_holder ' + settings.theme); // Set the proper theme 1187 1188 $pp_overlay 1189 .css({ 1190 'opacity':0, 1191 'height':$(document).height(), 1192 'width':$(window).width() 1193 }) 1194 .bind('click',function(){ 1195 if(!settings.modal) $.prettyPhoto.close(); 1196 }); 1197 1198 $('a.pp_close').bind('click',function(){ $.prettyPhoto.close(); return false; }); 1199 1200 1201 if(settings.allow_expand) { 1202 $('a.pp_expand').bind('click',function(e){ 1203 // Expand the image 1204 if($(this).hasClass('pp_expand')){ 1205 $(this).removeClass('pp_expand').addClass('pp_contract'); 1206 doresize = false; 1207 }else{ 1208 $(this).removeClass('pp_contract').addClass('pp_expand'); 1209 doresize = true; 1210 }; 1211 1212 _hideContent(function(){ $.prettyPhoto.open(); }); 1213 1214 return false; 1215 }); 1216 } 1217 1218 $pp_pic_holder.find('.pp_previous, .pp_nav .pp_arrow_previous').bind('click',function(){ 1219 $.prettyPhoto.changePage('previous'); 1220 $.prettyPhoto.stopSlideshow(); 1221 return false; 1222 }); 1223 1224 $pp_pic_holder.find('.pp_next, .pp_nav .pp_arrow_next').bind('click',function(){ 1225 $.prettyPhoto.changePage('next'); 1226 $.prettyPhoto.stopSlideshow(); 1227 return false; 1228 }); 1229 1230 _center_overlay(); // Center it 1231 }; 1232 1233 if(!pp_alreadyInitialized && getHashtag()){ 1234 pp_alreadyInitialized = true; 1235 1236 // Grab the rel index to trigger the click on the correct element 1237 hashIndex = getHashtag(); 1238 hashRel = hashIndex; 1239 hashIndex = hashIndex.substring(hashIndex.indexOf('/')+1,hashIndex.length-1); 1240 hashRel = hashRel.substring(0,hashRel.indexOf('/')); 1241 1242 // Little timeout to make sure all the prettyPhoto initialize scripts has been run. 1243 // Useful in the event the page contain several init scripts. 1244 setTimeout(function(){ $("a["+pp_settings.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger('click'); },50); 1245 } 1246 1247 return this.unbind('click.prettyphoto').bind('click.prettyphoto',$.prettyPhoto.initialize); // Return the jQuery object for chaining. The unbind method is used to avoid click conflict when the plugin is called more than once 1248 }; 1249 1250 function getHashtag(){ 1251 var url = location.href; 1252 hashtag = (url.indexOf('#prettyPhoto') !== -1) ? decodeURI(url.substring(url.indexOf('#prettyPhoto')+1,url.length)) : false; 1253 1254 return hashtag; 1255 }; 1256 1257 function setHashtag(){ 1258 if(typeof theRel == 'undefined') return; // theRel is set on normal calls, it's impossible to deeplink using the API 1259 location.hash = theRel + '/'+rel_index+'/'; 1260 }; 1261 1262 function clearHashtag(){ 1263 if ( location.href.indexOf('#prettyPhoto') !== -1 ) location.hash = "prettyPhoto"; 1264 } 1265 1266 function getParam(name,url){ 1267 name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); 1268 var regexS = "[\\?&]"+name+"=([^&#]*)"; 1269 var regex = new RegExp( regexS ); 1270 var results = regex.exec( url ); 1271 return ( results == null ) ? "" : results[1]; 1272 } 1273 1274})(jQuery); 1275 1276var pp_alreadyInitialized = false; // Used for the deep linking to make sure not to call the same function several times. 1277 1278// Easy Resonsive Tabs Plugin 1279// Author: Samson.Onna <Email : [email protected]> 1280(function ($) { 1281 $.fn.extend({ 1282 easyResponsiveTabs: function (options) { 1283 //Set the default values, use comma to separate the settings, example: 1284 var defaults = { 1285 type: 'default', //default, vertical, accordion; 1286 width: 'auto', 1287 fit: true 1288 } 1289 //Variables 1290 var options = $.extend(defaults, options); 1291 var opt = options, jtype = opt.type, jfit = opt.fit, jwidth = opt.width, vtabs = 'vertical', accord = 'accordion'; 1292 1293 //Main function 1294 this.each(function () { 1295 var $respTabs = $(this); 1296 $respTabs.find('ul.resp-tabs-list li').addClass('resp-tab-item'); 1297 $respTabs.css({ 1298 'display': 'block', 1299 'width': jwidth 1300 }); 1301 1302 $respTabs.find('.resp-tabs-container > div').addClass('resp-tab-content'); 1303 jtab_options(); 1304 //Properties Function 1305 function jtab_options() { 1306 if (jtype == vtabs) { 1307 $respTabs.addClass('resp-vtabs'); 1308 } 1309 if (jfit == true) { 1310 $respTabs.css({ width: '100%', margin: '0px' }); 1311 } 1312 if (jtype == accord) { 1313 $respTabs.addClass('resp-easy-accordion'); 1314 $respTabs.find('.resp-tabs-list').css('display', 'none'); 1315 } 1316 } 1317 1318 //Assigning the h2 markup 1319 var $tabItemh2; 1320 $respTabs.find('.resp-tab-content').before("<h2 class='resp-accordion' role='tab'><span class='resp-arrow'></span></h2>"); 1321 1322 var itemCount = 0; 1323 $respTabs.find('.resp-accordion').each(function () { 1324 $tabItemh2 = $(this); 1325 var innertext = $respTabs.find('.resp-tab-item:eq(' + itemCount + ')').text(); 1326 $respTabs.find('.resp-accordion:eq(' + itemCount + ')').append(innertext); 1327 $tabItemh2.attr('aria-controls', 'tab_item-' + (item
1327Count)); 1328 itemCount++; 1329 }); 1330 1331 //Assigning the 'aria-controls' to Tab items 1332 var count = 0, 1333 $tabContent; 1334 $respTabs.find('.resp-tab-item').each(function () { 1335 $tabItem = $(this); 1336 $tabItem.attr('aria-controls', 'tab_item-' + (count)); 1337 $tabItem.attr('role', 'tab'); 1338 1339 //First active tab 1340 $respTabs.find('.resp-tab-item').first().addClass('resp-tab-active'); 1341 $respTabs.find('.resp-accordion').first().addClass('resp-tab-active'); 1342 $respTabs.find('.resp-tab-content').first().addClass('resp-tab-content-active').attr('style', 'display:block'); 1343 1344 //Assigning the 'aria-labelledby' attr to tab-content 1345 var tabcount = 0; 1346 $respTabs.find('.resp-tab-content').each(function () { 1347 $tabContent = $(this); 1348 $tabContent.attr('aria-labelledby', 'tab_item-' + (tabcount)); 1349 tabcount++; 1350 }); 1351 count++; 1352 }); 1353 1354 //Tab Click action function 1355 $respTabs.find("[role=tab]").each(function () { 1356 var $currentTab = $(this); 1357 $currentTab.click(function () { 1358 1359 var $tabAria = $currentTab.attr('aria-controls'); 1360 1361 if ($currentTab.hasClass('resp-accordion') && $currentTab.hasClass('resp-tab-active')) { 1362 $respTabs.find('.resp-tab-content-active').slideUp('', function () { $(this).addClass('resp-accordion-closed'); }); 1363 $currentTab.removeClass('resp-tab-active'); 1364 return false; 1365 } 1366 if (!$currentTab.hasClass('resp-tab-active') && $currentTab.hasClass('resp-accordion')) { 1367 $respTabs.find('.resp-tab-active').removeClass('resp-tab-active'); 1368 $respTabs.find('.resp-tab-content-active').slideUp().removeClass('resp-tab-content-active resp-accordion-closed'); 1369 $respTabs.find("[aria-controls=" + $tabAria + "]").addClass('resp-tab-active'); 1370 1371 $respTabs.find('.resp-tab-content[aria-labelledby = ' + $tabAria + ']').slideDown().addClass('resp-tab-content-active'); 1372 } else { 1373 $respTabs.find('.resp-tab-active').removeClass('resp-tab-active'); 1374 $respTabs.find('.resp-tab-content-active').removeAttr('style').removeClass('resp-tab-content-active').removeClass('resp-accordion-closed'); 1375 $respTabs.find("[aria-controls=" + $tabAria + "]").addClass('resp-tab-active'); 1376 $respTabs.find('.resp-tab-content[aria-labelledby = ' + $tabAria + ']').addClass('resp-tab-content-active').attr('style', 'display:block'); 1377 } 1378 }); 1379 //Window resize function 1380 $(window).resize(function () { 1381 $respTabs.find('.resp-accordion-closed').removeAttr('style'); 1382 }); 1383 }); 1384 }); 1385 } 1386 }); 1387})(jQuery); 1388 1389 1390 1391 1392/* 1393 * jQuery appear plugin 1394 * 1395 * Copyright (c) 2012 Andrey Sidorov 1396 * licensed under MIT license. 1397 * 1398 * https://github.com/morr/jquery.appear/ 1399 * 1400 * Version: 0.3.3 1401 */ 1402(function(e){function u(){r=false;for(var n=0;n<t.length;n++){var i=e(t[n]).filter(function(){return e(this).is(":appeared")});i.trigger("appear",[i]);if(o){var s=o.not(i);s.trigger("disappear",[s])}o=i}}var t=[];var n=false;var r=false;var i={interval:250,force_process:false};var s=e(window);var o;e.expr[":"]["appeared"]=function(t){var n=e(t);if(!n.is(":visible")){return false}var r=s.scrollLeft();var i=s.scrollTop();var o=n.offset();var u=o.left;var a=o.top;if(a+n.height()>=i&&a+(n.data("appear-bottom-offset")||0)<=i+s.height()&&u+n.width()>
1402=r&&u-(n.data("appear-left-offset")||0)<=r+s.width()){return true}else{return false}};e.fn.extend({appear:function(s){var o=e.extend({},i,s||{});var a=this.selector||this;if(!n){var f=function(){if(r){return}r=true;setTimeout(u,o.interval)};e(window).scroll(f).resize(f);n=true}if(o.force_process){setTimeout(u,o.interval)}t.push(a);return e(a)}});e.extend({force_appear:function(){if(n){u();return true}return false}})})(jQuery) 1403 1404 1405 1406/* 1407 * Yummy loader 1408 */ 1409var transitionDelay=0;function findMaxYLValue(){var max=0;elArray=[];$('*[class*="anim_"]').each(function(){var animValue=$(this).attr('class').split(" ");var i,value;for(i=0;i<animValue.length;++i){value=animValue[i];if(value.substring(0,5)==="anim_"){elArray.push(value.substring(5));break;}}});var maxValue='.anim_'+Math.max.apply(Math,elArray),$maxValueEl=$(maxValue).first();$maxValueEl.one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend',function(e){var transitionDelayValue=$maxValueEl.css("transition-delay");transitionDelay=Math.ceil(parseFloat(transitionDelayValue.substring(0,transitionDelayValue.length-1)*1000)*1)/1;});} 1410findMaxYLValue();$('body').on('click','.trigger',function(e){e.preventDefault();$body.toggleClass('on off');var link=$(this).attr('href');setTimeout(function(){location.href=link;},transitionDelay);}); 1411 1412/*! http://tinynav.viljamis.com v1.1 by @viljamis */ 1413(function(a,i,g){a.fn.tinyNav=function(j){var b=a.extend({active:"selected",header:"",label:""},j);return this.each(function(){g++;var h=a(this),d="tinynav"+g,f=".l_"+d,e=a("<select/>").attr("id",d).addClass("tinynav "+d);if(h.is("ul,ol")){""!==b.header&&e.append(a("<option/>").text(b.header));var c="";h.addClass("l_"+d).find("a").each(function(){c+='<option value="'+a(this).attr("href")+'">';var b;for(b=0;b<a(this).parents("ul, ol").length-1;b++)c+="- ";c+=a(this).text()+"</option>"});e.append(c); 1414b.header||e.find(":eq("+a(f+" li").index(a(f+" li."+b.active))+")").attr("selected",!0);e.change(function(){i.location.href=a(this).val()});a(f).after(e);b.label&&e.before(a("<label/>").attr("for",d).addClass("tinynav_label "+d+"_label").append(b.label))}})}})(jQuery,this,0); 1415 1416 1417 1418 1419 1420 1421 1422/* 1423 * CSS3-MEDIAQUERIES 1424 */ 1425 1426if(typeof Object.create!=="function"){ 1427Object.create=function(o){ 1428function F(){ 1429}; 1430F.prototype=o; 1431return new F(); 1432}; 1433} 1434var ua={toString:function(){ 1435return navigator.userAgent; 1436},test:function(s){ 1437return this.toString().toLowerCase().indexOf(s.toLowerCase())>-1; 1438}}; 1439ua.version=(ua.toString().toLowerCase().match(/[\s\S]+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1]; 1440ua.webkit=ua.test("webkit"); 1441ua.gecko=ua.test("gecko")&&!ua.webkit; 1442ua.opera=ua.test("opera"); 1443ua.ie=ua.test("msie")&&!ua.opera; 1444ua.ie6=ua.ie&&document.compatMode&&typeof document.documentElement.style.maxHeight==="undefined"; 1445ua.ie7=ua.ie&&document.documentElement&&typeof document.documentElement.style.maxHeight!=="undefined"&&typeof XDomainRequest==="undefined"; 1446ua.ie8=ua.ie&&typeof XDomainRequest!=="undefined"; 1447var domReady=function(){ 1448var _1=[]; 1449var _2=function(){ 1450if(!arguments.callee.done){ 1451arguments.callee.done=true; 1452for(var i=0;i<_1.length;i++){ 1453_1[i](); 1454} 1455} 1456}; 1457if(document.addEventListener){ 1458document.addEventListener("DOMContentLoaded",_2,false); 1459} 1460if(ua.ie){ 1461(function(){ 1462try{ 1463document.documentElement.doScroll("left"); 1464} 1465catch(e){ 1466setTimeout(arguments.callee,50); 1467return; 1468} 1469_2(); 1470})(); 1471document.onreadystatechange=function(){ 1472if(document.readyState==="complete"){ 1473document.onreadystatechange=null; 1474_2(); 1475} 1476}; 1477} 1478if(ua.webkit&&document.readyState){ 1479(function(){ 1480if(document.readyState!=="loading"){ 1481_2(); 1482}else{ 1483setTimeout(arguments.callee,10); 1484} 1485})(); 1486} 1487window.onload=_2; 1488return function(fn){ 1489if(typeof fn==="function"){ 1490_1[_1.length]=fn; 1491} 1492return fn; 1493}; 1494}(); 1495var cssHelper=function(){ 1496var _3={BLOCKS:/[^\s{][^{]*\{(?:[^{}]*\{[^{}]*\}[^{}]*|[^{}]*)*\}/g,BLOCKS_INSIDE:/[^\s{][^{]*\{[^{}]*\}/g,DECLARATIONS:/[a-zA-Z\-]+[^;]*:[^;]+;/g,RELATIVE_URLS:/url\(['"]?([^\/\)'"][^:\)'"]+)['"]?\)/g,REDUNDANT_COMPONENTS:/(?:\/\*([^*\\\\]|\*(?!\/))+\*\/|@import[^;]+;)/g,REDUNDANT_WHITESPACE:/\s*(,|:|;|\{|\})\s*/g,MORE_WHITESPACE:/\s{2,}/g,FINAL_SEMICOLONS:/;\}/g,NOT_WHITESPACE:/\S+/g}; 1497var _4,_5=false; 1498var _6=[]; 1499var _7=function(fn){ 1500if(typeof fn==="function"){ 1501_6[_6.length]=fn; 1502} 1503}; 1504var _8=function(){ 1505for(var i=0;i<_6.length;i++){ 1506_6[i](_4); 1507} 1508}; 1509var _9={}; 1510var _a=function(n,v){ 1511if(_9[n]){ 1512var _b=_9[n].listeners; 1513if(_b){
vendor: 4,164 bytes, lines 1514-1716
1514for(var i=0;i<_b.length;i++){ 1515_b[i](v); 1516} 1517} 1518} 1519}; 1520var _c=function(_d,_e,_f){ 1521if(ua.ie&&!window.XMLHttpRequest){ 1522window.XMLHttpRequest=function(){ 1523return new ActiveXObject("Microsoft.XMLHTTP"); 1524}; 1525} 1526if(!XMLHttpRequest){ 1527return ""; 1528} 1529var r=new XMLHttpRequest(); 1530try{ 1531r.open("get",_d,true); 1532r.setRequestHeader("X_REQUESTED_WITH","XMLHttpRequest"); 1533} 1534catch(e){ 1535_f(); 1536return; 1537} 1538var _10=false; 1539setTimeout(function(){ 1540_10=true; 1541},5000); 1542document.documentElement.style.cursor="progress"; 1543r.onreadystatechange=function(){ 1544if(r.readyState===4&&!_10){ 1545if(!r.status&&location.protocol==="file:"||(r.status>=200&&r.status<300)||r.status===304||navigator.userAgent.indexOf("Safari")>-1&&typeof r.status==="undefined"){ 1546_e(r.responseText); 1547}else{ 1548_f(); 1549} 1550document.documentElement.style.cursor=""; 1551r=null; 1552} 1553}; 1554r.send(""); 1555}; 1556var _11=function(_12){ 1557_12=_12.replace(_3.REDUNDANT_COMPONENTS,""); 1558_12=_12.replace(_3.REDUNDANT_WHITESPACE,"$1"); 1559_12=_12.replace(_3.MORE_WHITESPACE," "); 1560_12=_12.replace(_3.FINAL_SEMICOLONS,"}"); 1561return _12; 1562}; 1563var _13={mediaQueryList:function(s){ 1564var o={}; 1565var idx=s.indexOf("{"); 1566var lt=s.substring(0,idx); 1567s=s.substring(idx+1,s.length-1); 1568var mqs=[],rs=[]; 1569var qts=lt.toLowerCase().substring(7).split(","); 1570for(var i=0;i<qts.length;i++){ 1571mqs[mqs.length]=_13.mediaQuery(qts[i],o); 1572} 1573var rts=s.match(_3.BLOCKS_INSIDE); 1574if(rts!==null){ 1575for(i=0;i<rts.length;i++){ 1576rs[rs.length]=_13.rule(rts[i],o); 1577} 1578} 1579o.getMediaQueries=function(){ 1580return mqs; 1581}; 1582o.getRules=function(){ 1583return rs; 1584}; 1585o.getListText=function(){ 1586return lt; 1587}; 1588o.getCssText=function(){ 1589return s; 1590}; 1591return o; 1592},mediaQuery:function(s,mql){ 1593s=s||""; 1594var not=false,_14; 1595var exp=[]; 1596var _15=true; 1597var _16=s.match(_3.NOT_WHITESPACE); 1598for(var i=0;i<_16.length;i++){ 1599var _17=_16[i]; 1600if(!_14&&(_17==="not"||_17==="only")){ 1601if(_17==="not"){ 1602not=true; 1603} 1604}else{ 1605if(!_14){ 1606_14=_17; 1607}else{ 1608if(_17.charAt(0)==="("){ 1609var _18=_17.substring(1,_17.length-1).split(":"); 1610exp[exp.length]={mediaFeature:_18[0],value:_18[1]||null}; 1611} 1612} 1613} 1614} 1615return {getList:function(){ 1616return mql||null; 1617},getValid:function(){ 1618return _15; 1619},getNot:function(){ 1620return not; 1621},getMediaType:function(){ 1622return _14; 1623},getExpressions:function(){ 1624return exp; 1625}}; 1626},rule:function(s,mql){ 1627var o={}; 1628var idx=s.indexOf("{"); 1629var st=s.substring(0,idx); 1630var ss=st.split(","); 1631var ds=[]; 1632var dts=s.substring(idx+1,s.length-1).split(";"); 1633for(var i=0;i<dts.length;i++){ 1634ds[ds.length]=_13.declaration(dts[i],o); 1635} 1636o.getMediaQueryList=function(){ 1637return mql||null; 1638}; 1639o.getSelectors=function(){ 1640return ss; 1641}; 1642o.getSelectorText=function(){ 1643return st; 1644}; 1645o.getDeclarations=function(){ 1646return ds; 1647}; 1648o.getPropertyValue=function(n){ 1649for(var i=0;i<ds.length;i++){ 1650if(ds[i].getProperty()===n){ 1651return ds[i].getValue(); 1652} 1653} 1654return null; 1655}; 1656return o; 1657},declaration:function(s,r){ 1658var idx=s.indexOf(":"); 1659var p=s.substring(0,idx); 1660var v=s.substring(idx+1); 1661return {getRule:function(){ 1662return r||null; 1663},getProperty:function(){ 1664return p; 1665},getValue:function(){ 1666return v; 1667}}; 1668}}; 1669var _19=function(el){ 1670if(typeof el.cssHelperText!=="string"){ 1671return; 1672} 1673var o={mediaQueryLists:[],rules:[],selectors:{},declarations:[],properties:{}}; 1674var _1a=o.mediaQueryLists; 1675var ors=o.rules; 1676var _1b=el.cssHelperText.match(_3.BLOCKS); 1677if(_1b!==null){ 1678for(var i=0;i<_1b.length;i++){ 1679if(_1b[i].substring(0,7)==="@media "){ 1680_1a[_1a.length]=_13.mediaQueryList(_1b[i]); 1681ors=o.rules=ors.concat(_1a[_1a.length-1].getRules()); 1682}else{ 1683ors[ors.length]=_13.rule(_1b[i]); 1684} 1685} 1686} 1687var oss=o.selectors; 1688var _1c=function(r){ 1689var ss=r.getSelectors(); 1690for(var i=0;i<ss.length;i++){ 1691var n=ss[i]; 1692if(!oss[n]){ 1693oss[n]=[]; 1694} 1695oss[n][oss[n].length]=r; 1696} 1697}; 1698for(i=0;i<ors.length;i++){ 1699_1c(ors[i]); 1700} 1701var ods=o.declarations; 1702for(i=0;i<ors.length;i++){ 1703ods=o.declarations=ods.concat(ors[i].getDeclarations()); 1704} 1705var ops=o.properties; 1706for(i=0;i<ods.length;i++){ 1707var n=ods[i].getProperty(); 1708if(!ops[n]){ 1709ops[n]=[]; 1710} 1711ops[n][ops[n].length]=ods[i]; 1712} 1713el.cssHelperParsed=o; 1714_4[_4.length]=el; 1715return o; 1716};
1717var _1d=function(el,s){ 1718el.cssHelperText=_11(s||el.innerHTML); 1719return _19(el); 1720}; 1721var _1e=function(){ 1722_5=true; 1723_4=[]; 1724var _1f=[]; 1725var _20=function(){ 1726for(var i=0;i<_1f.length;i++){ 1727_19(_1f[i]); 1728} 1729var _21=document.getElementsByTagName("style"); 1730for(i=0;i<_21.length;i++){ 1731_1d(_21[i]); 1732} 1733_5=false; 1734_8(); 1735}; 1736var _22=document.getElementsByTagName("link"); 1737for(var i=0;i<_22.length;i++){ 1738var _23=_22[i]; 1739if(_23.getAttribute("rel").indexOf("style")>-1&&_23.href&&_23.href.length!==0&&!_23.disabled){ 1740_1f[_1f.length]=_23; 1741} 1742} 1743if(_1f.length>0){ 1744var c=0; 1745var _24=function(){ 1746c++; 1747if(c===_1f.length){ 1748_20(); 1749} 1750}; 1751var _25=function(_26){ 1752var _27=_26.href; 1753_c(_27,function(_28){ 1754_28=_11(_28).replace(_3.RELATIVE_URLS,"url("+_27.substring(0,_27.lastIndexOf("/"))+"/$1)"); 1755_26.cssHelperText=_28; 1756_24(); 1757},_24); 1758}; 1759for(i=0;i<_1f.length;i++){ 1760_25(_1f[i]); 1761} 1762}else{ 1763_20(); 1764} 1765}; 1766var _29={mediaQueryLists:"array",rules:"array",selectors:"object",declarations:"array",properties:"object"}; 1767var _2a={mediaQueryLists:null,rules:null,selectors:null,declarations:null,properties:null}; 1768var _2b=function(_2c,v){ 1769if(_2a[_2c]!==null){ 1770if(_29[_2c]==="array"){ 1771return (_2a[_2c]=_2a[_2c].concat(v)); 1772}else{ 1773var c=_2a[_2c]; 1774for(var n in v){ 1775if(v.hasOwnProperty(n)){ 1776if(!c[n]){ 1777c[n]=v[n]; 1778}else{ 1779c[n]=c[n].concat(v[n]); 1780} 1781} 1782} 1783return c; 1784} 1785} 1786}; 1787var _2d=function(_2e){ 1788_2a[_2e]=(_29[_2e]==="array")?[]:{}; 1789for(var i=0;i<_4.length;i++){ 1790_2b(_2e,_4[i].cssHelperParsed[_2e]); 1791} 1792return _2a[_2e]; 1793}; 1794domReady(function(){ 1795var els=document.body.getElementsByTagName("*"); 1796for(var i=0;i<els.length;i++){ 1797els[i].checkedByCssHelper=true; 1798} 1799if(document.implementation.hasFeature("MutationEvents","2.0")||window.MutationEvent){ 1800document.body.addEventListener("DOMNodeInserted",function(e){ 1801var el=e.target; 1802if(el.nodeType===1){ 1803_a("DOMElementInserted",el); 1804el.checkedByCssHelper=true; 1805} 1806},false); 1807}else{ 1808setInterval(function(){ 1809var els=document.body.getElementsByTagName("*"); 1810for(var i=0;i<els.length;i++){ 1811if(!els[i].checkedByCssHelper){ 1812_a("DOMElementInserted",els[i]); 1813els[i].checkedByCssHelper=true; 1814} 1815} 1816},1000); 1817} 1818}); 1819var _2f=function(d){ 1820if(typeof window.innerWidth!="undefined"){ 1821return window["inner"+d]; 1822}else{ 1823if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){ 1824return document.documentElement["client"+d]; 1825} 1826} 1827}; 1828return {addStyle:function(s,_30){ 1829var el=document.createElement("style"); 1830el.setAttribute("type","text/css"); 1831document.getElementsByTagName("head")[0].appendChild(el); 1832if(el.styleSheet){ 1833el.styleSheet.cssText=s; 1834}else{ 1835el.appendChild(document.createTextNode(s)); 1836} 1837el.addedWithCssHelper=true; 1838if(typeof _30==="undefined"||_30===true){ 1839cssHelper.parsed(function(_31){ 1840var o=_1d(el,s); 1841for(var n in o){ 1842if(o.hasOwnProperty(n)){ 1843_2b(n,o[n]); 1844} 1845} 1846_a("newStyleParsed",el); 1847}); 1848}else{ 1849el.parsingDisallowed=true; 1850} 1851return el; 1852},removeStyle:function(el){ 1853return el.parentNode.removeChild(el); 1854},parsed:function(fn){ 1855if(_5){ 1856_7(fn); 1857}else{ 1858if(typeof _4!=="undefined"){ 1859if(typeof fn==="function"){ 1860fn(_4); 1861} 1862}else{ 1863_7(fn); 1864_1e(); 1865} 1866} 1867},mediaQueryLists:function(fn){ 1868cssHelper.parsed(function(_32){ 1869fn(_2a.mediaQueryLists||_2d("mediaQueryLists")); 1870}); 1871},rules:function(fn){ 1872cssHelper.parsed(function(_33){ 1873fn(_2a.rules||_2d("rules")); 1874}); 1875},selectors:function(fn){ 1876cssHelper.parsed(function(_34){ 1877fn(_2a.selectors||_2d("selectors")); 1878}); 1879},declarations:function(fn){ 1880cssHelper.parsed(function(_35){ 1881fn(_2a.declarations||_2d("declarations")); 1882}); 1883},properties:function(fn){ 1884cssHelper.parsed(function(_36){ 1885fn(_2a.properties||_2d("properties")); 1886}); 1887},broadcast:_a,addListener:function(n,fn){ 1888if(typeof fn==="function"){ 1889if(!_9[n]){ 1890_9[n]={listeners:[]}; 1891} 1892_9[n].listeners[_9[n].listeners.length]=fn; 1893} 1894},removeListener:function(n,fn){ 1895if(typeof fn==="function"&&_9[n]){ 1896var ls=_9[n].listeners; 1897for(var i=0;i<ls.length;i++){ 1898if(ls[i]===fn){ 1899ls.splice(i,1); 1900i-=1; 1901} 1902} 1903} 1904},getViewportWidth:function(){ 1905return _2f("Width"); 1906}
vendor: 4,435 bytes, lines 1906-2117
1906,getViewportHeight:function(){ 1907return _2f("Height"); 1908}}; 1909}(); 1910domReady(function enableCssMediaQueries(){ 1911var _37; 1912var _38={LENGTH_UNIT:/[0-9]+(em|ex|px|in|cm|mm|pt|pc)$/,RESOLUTION_UNIT:/[0-9]+(dpi|dpcm)$/,ASPECT_RATIO:/^[0-9]+\/[0-9]+$/,ABSOLUTE_VALUE:/^[0-9]*(\.[0-9]+)*$/}; 1913var _39=[]; 1914var _3a=function(){ 1915var id="css3-mediaqueries-test"; 1916var el=document.createElement("div"); 1917el.id=id; 1918var _3b=cssHelper.addStyle("@media all and (width) { #"+id+" { width: 1px !important; } }",false); 1919document.body.appendChild(el); 1920var ret=el.offsetWidth===1; 1921_3b.parentNode.removeChild(_3b); 1922el.parentNode.removeChild(el); 1923_3a=function(){ 1924return ret; 1925}; 1926return ret; 1927}; 1928var _3c=function(){ 1929_37=document.createElement("div"); 1930_37.style.cssText="position:absolute;top:-9999em;left:-9999em;"+"margin:0;border:none;padding:0;width:1em;font-size:1em;"; 1931document.body.appendChild(_37); 1932if(_37.offsetWidth!==16){ 1933_37.style.fontSize=16/_37.offsetWidth+"em"; 1934} 1935_37.style.width=""; 1936}; 1937var _3d=function(_3e){ 1938_37.style.width=_3e; 1939var _3f=_37.offsetWidth; 1940_37.style.width=""; 1941return _3f; 1942}; 1943var _40=function(_41,_42){ 1944var l=_41.length; 1945var min=(_41.substring(0,4)==="min-"); 1946var max=(!min&&_41.substring(0,4)==="max-"); 1947if(_42!==null){ 1948var _43; 1949var _44; 1950if(_38.LENGTH_UNIT.exec(_42)){ 1951_43="length"; 1952_44=_3d(_42); 1953}else{ 1954if(_38.RESOLUTION_UNIT.exec(_42)){ 1955_43="resolution"; 1956_44=parseInt(_42,10); 1957var _45=_42.substring((_44+"").length); 1958}else{ 1959if(_38.ASPECT_RATIO.exec(_42)){ 1960_43="aspect-ratio"; 1961_44=_42.split("/"); 1962}else{ 1963if(_38.ABSOLUTE_VALUE){ 1964_43="absolute"; 1965_44=_42; 1966}else{ 1967_43="unknown"; 1968} 1969} 1970} 1971} 1972} 1973var _46,_47; 1974if("device-width"===_41.substring(l-12,l)){ 1975_46=screen.width; 1976if(_42!==null){ 1977if(_43==="length"){ 1978return ((min&&_46>=_44)||(max&&_46<_44)||(!min&&!max&&_46===_44)); 1979}else{ 1980return false; 1981} 1982}else{ 1983return _46>0; 1984} 1985}else{ 1986if("device-height"===_41.substring(l-13,l)){ 1987_47=screen.height; 1988if(_42!==null){ 1989if(_43==="length"){ 1990return ((min&&_47>=_44)||(max&&_47<_44)||(!min&&!max&&_47===_44)); 1991}else{ 1992return false; 1993} 1994}else{ 1995return _47>0; 1996} 1997}else{ 1998if("width"===_41.substring(l-5,l)){ 1999_46=document.documentElement.clientWidth||document.body.clientWidth; 2000if(_42!==null){ 2001if(_43==="length"){ 2002return ((min&&_46>=_44)||(max&&_46<_44)||(!min&&!max&&_46===_44)); 2003}else{ 2004return false; 2005} 2006}else{ 2007return _46>0; 2008} 2009}else{ 2010if("height"===_41.substring(l-6,l)){ 2011_47=document.documentElement.clientHeight||document.body.clientHeight; 2012if(_42!==null){ 2013if(_43==="length"){ 2014return ((min&&_47>=_44)||(max&&_47<_44)||(!min&&!max&&_47===_44)); 2015}else{ 2016return false; 2017} 2018}else{ 2019return _47>0; 2020} 2021}else{ 2022if("device-aspect-ratio"===_41.substring(l-19,l)){ 2023return _43==="aspect-ratio"&&screen.width*_44[1]===screen.height*_44[0]; 2024}else{ 2025if("color-index"===_41.substring(l-11,l)){ 2026var _48=Math.pow(2,screen.colorDepth); 2027if(_42!==null){ 2028if(_43==="absolute"){ 2029return ((min&&_48>=_44)||(max&&_48<_44)||(!min&&!max&&_48===_44)); 2030}else{ 2031return false; 2032} 2033}else{ 2034return _48>0; 2035} 2036}else{ 2037if("color"===_41.substring(l-5,l)){ 2038var _49=screen.colorDepth; 2039if(_42!==null){ 2040if(_43==="absolute"){ 2041return ((min&&_49>=_44)||(max&&_49<_44)||(!min&&!max&&_49===_44)); 2042}else{ 2043return false; 2044} 2045}else{ 2046return _49>0; 2047} 2048}else{ 2049if("resolution"===_41.substring(l-10,l)){ 2050var res; 2051if(_45==="dpcm"){ 2052res=_3d("1cm"); 2053}else{ 2054res=_3d("1in"); 2055} 2056if(_42!==null){ 2057if(_43==="resolution"){ 2058return ((min&&res>=_44)||(max&&res<_44)||(!min&&!max&&res===_44)); 2059}else{ 2060return false; 2061} 2062}else{ 2063return res>0; 2064} 2065}else{ 2066return false; 2067} 2068} 2069} 2070} 2071} 2072} 2073} 2074} 2075}; 2076var _4a=function(mq){ 2077var _4b=mq.getValid(); 2078var _4c=mq.getExpressions(); 2079var l=_4c.length; 2080if(l>0){ 2081for(var i=0;i<l&&_4b;i++){ 2082_4b=_40(_4c[i].mediaFeature,_4c[i].value); 2083} 2084var not=mq.getNot(); 2085return (_4b&&!not||not&&!_4b); 2086} 2087}; 2088var _4d=function(mql){ 2089var mqs=mql.getMediaQueries(); 2090var t={}; 2091for(var i=0;i<mqs.length;i++){ 2092if(_4a(mqs[i])){ 2093t[mqs[i].getMediaType()]=true; 2094} 2095} 2096var s=[],c=0; 2097for(var n in t){ 2098if(t.hasOwnProperty(n)){ 2099if(c>0){ 2100s[c++]=","; 2101} 2102s[c++]=n; 2103} 2104} 2105if(s.length>0){ 2106_39[_39.length]=cssHelper.addStyle("@media "+s.join("")+"{"+mql.getCssText()+"}",false); 2107} 2108}; 2109var _4e=function(_4f){ 2110for(var i=0;i<_4f.length;i++){ 2111_4d(_4f[i]); 2112} 2113if(ua.ie){ 2114document.documentElement.style.display="block"; 2115setTimeout(function(){ 2116document.documentElement.style.display=""; 2117}
2117,0); 2118setTimeout(function(){ 2119cssHelper.broadcast("cssMediaQueriesTested"); 2120},100); 2121}else{ 2122cssHelper.broadcast("cssMediaQueriesTested"); 2123} 2124}; 2125var _50=function(){ 2126for(var i=0;i<_39.length;i++){ 2127cssHelper.removeStyle(_39[i]); 2128} 2129_39=[]; 2130cssHelper.mediaQueryLists(_4e); 2131}; 2132var _51=0; 2133var _52=function(){ 2134var _53=cssHelper.getViewportWidth(); 2135var _54=cssHelper.getViewportHeight(); 2136if(ua.ie){ 2137var el=document.createElement("div"); 2138el.style.position="absolute"; 2139el.style.top="-9999em"; 2140el.style.overflow="scroll"; 2141document.body.appendChild(el); 2142_51=el.offsetWidth-el.clientWidth; 2143document.body.removeChild(el); 2144} 2145var _55; 2146var _56=function(){ 2147var vpw=cssHelper.getViewportWidth(); 2148var vph=cssHelper.getViewportHeight(); 2149if(Math.abs(vpw-_53)>_51||Math.abs(vph-_54)>_51){ 2150_53=vpw; 2151_54=vph; 2152clearTimeout(_55); 2153_55=setTimeout(function(){ 2154if(!_3a()){ 2155_50(); 2156}else{ 2157cssHelper.broadcast("cssMediaQueriesTested"); 2158} 2159},500); 2160} 2161}; 2162window.onresize=function(){ 2163var x=window.onresize||function(){ 2164}; 2165return function(){ 2166x(); 2167_56(); 2168}; 2169}(); 2170}; 2171var _57=document.documentElement; 2172_57.style.marginLeft="-32767px"; 2173setTimeout(function(){ 2174_57.style.marginTop=""; 2175},20000); 2176return function(){ 2177if(!_3a()){ 2178cssHelper.addListener("newStyleParsed",function(el){ 2179_4e(el.cssHelperParsed.mediaQueryLists); 2180}); 2181cssHelper.addListener("cssMediaQueriesTested",function(){ 2182if(ua.ie){ 2183_57.style.width="1px"; 2184} 2185setTimeout(function(){ 2186_57.style.width=""; 2187_57.style.marginLeft=""; 2188},0); 2189cssHelper.removeListener("cssMediaQueriesTested",arguments.callee); 2190}); 2191_3c(); 2192_50(); 2193}else{ 2194_57.style.marginLeft=""; 2195} 2196_52(); 2197}; 2198}()); 2199try{ 2200document.execCommand("BackgroundImageCache",false,true); 2201} 2202catch(e){ 2203} 2204 2205 2206 2207 2208/* 2209 * jQuery carouFredSel 6.0.3 2210 * Demo's and documentation: 2211 * caroufredsel.frebsite.nl 2212 * 2213 * Copyright (c) 2012 Fred Heusschen 2214 * www.frebsite.nl 2215 * 2216 * Dual licensed under the MIT and GPL licenses. 2217 * http://en.wikipedia.org/wiki/MIT_License 2218 * http://en.wikipedia.org/wiki/GNU_General_Public_License 2219 */ 2220 2221 2222eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(C($){8($.1r.1v){G}$.1r.6o=$.1r.1v=C(u,w){8(1k.S==0){18(I,\'6p 53 7P 1j "\'+1k.4k+\'".\');G 1k}8(1k.S>1){G 1k.1W(C(){$(1k).1v(u,w)})}E y=1k,$14=1k[0],54=K;8(y.1p(\'55\')){54=y.1Q(\'3o\',\'4l\');y.R(\'3o\',[\'4m\',I])}y.56=C(o,a,b){o=3R($14,o);o.D=6q($14,o.D);o.1M=6r($14,o.1M);o.M=6s($14,o.M);o.V=57($14,o.V);o.X=57($14,o.X);o.1a=6t($14,o.1a);o.1q=6u($14,o.1q);o.1h=6v($14,o.1h);8(a){2Z=$.1N(I,{},$.1r.1v.59,o)}7=$.1N(I,{},$.1r.1v.59,o);7.d=6w(7);z.2b=(7.2b==\'4n\'||7.2b==\'1m\')?\'X\':\'V\';E c=y.13(),2v=5a($1s,7,\'N\');8(3p(7.25)){7.25=\'7Q\'+F.3S}7.4o=5b(7,2v);7.D=6x(7.D,7,c,b);7[7.d[\'N\']]=6y(7[7.d[\'N\']],7,c);7[7.d[\'1d\']]=6z(7[7.d[\'1d\']],7,c);8(7.2l){8(!3T(7[7.d[\'N\']])){7[7.d[\'N\']]=\'2I%\'}}8(3T(7[7.d[\'N\']])){z.6A=I;z.4p=7[7.d[\'N\']];7[7.d[\'N\']]=4q(2v,z.4p);8(!7.D.L){7.D.T.1c=I}}8(7.2l){7.1R=K;7.1i=[0,0,0,0];7.1A=K;7.D.T.1c=K}O{8(!7.D.L){7=6B(7,2v)}8(!7[7.d[\'N\']]){8(!7.D.T.1c&&Y(7.D[7.d[\'N\']])&&7.D.1t==\'*\'){7[7.d[\'N\']]=7.D.L*7.D[7.d[\'N\']];7.1A=K}O{7[7.d[\'N\']]=\'1c\'}}8(1G(7.1A)){7.1A=(Y(7[7.d[\'N\']]))?\'5c\':K}8(7.D.T.1c){7.D.L=31(c,7,0)}}8(7.D.1t!=\'*\'&&!7.D.T.1c){7.D.T.4r=7.D.L;7.D.L=3U(c,7,0)}7.D.L=32(7.D.L,7,7.D.T.2w,$14);7.D.T.1Z=7.D.L;8(7.2l){8(!7.D.T.34){7.D.T.34=7.D.L}8(!7.D.T.1X){7.D.T.1X=7.D.L}7=5d(7,c,2v)}O{7.1i=6C(7.1i);8(7.1A==\'3q\'){7.1A=\'1m\'}O 8(7.1A==\'5e\'){7.1A=\'35\'}1B(7.1A){Q\'5c\':Q\'1m\':Q\'35\':8(7[7.d[\'N\']]!=\'1c\'){7=5f(7,c);7.1R=I}16;2x:7.1A=K;7.1R=(7.1i[0]==0&&7.1i[1]==0&&7.1i[2]==0&&7.1i[3]==0)?K:I;16}}8(!Y(7.1M.1C)){7.1M.1C=6D}8(1G(7.1M.D)){7.1M.D=(7.2l||7.D.T.1c||7.D.1t!=\'*\')?\'L\':7.D.L}7.M=$.1N(I,{},7.1M,7.M);7.V=$.1N(I,{},7.1M,7.V);7.X=$.1N(I,{},7.1M,7.X);7.1a=$.1N(I,{},7.1M,7.1a);7.M=6E($14,7.M);7.V=5g($14,7.V);7.X=5g($14,7.X);
22227.1a=6F($14,7.1a);7.1q=6G($14,7.1q);7.1h=6H($14,7.1h);8(7.2m){7.2m=5h(7.2m)}8(7.M.5i){7.M.4s=7.M.5i;2J(\'M.5i\',\'M.4s\')}8(7.M.5j){7.M.4t=7.M.5j;2J(\'M.5j\',\'M.4t\')}8(7.M.5k){7.M.4u=7.M.5k;2J(\'M.5k\',\'M.4u\')}8(7.M.5l){7.M.2K=7.M.5l;2J(\'M.5l\',\'M.2K\')}};y.6I=C(){y.1p(\'55\',I);E a=y.13(),3V=5m(y,[\'6J\',\'6K\',\'3W\',\'3q\',\'35\',\'5e\',\'1m\',\'5n\',\'N\',\'1d\',\'6L\',\'1S\',\'5o\',\'6M\']),5p=\'7R\';1B(3V.3W){Q\'6N\':Q\'7S\':5p=3V.3W;16}$1s.11(3V).11({\'7T\':\'3r\',\'3W\':5p});y.1p(\'6O\',3V).11({\'6J\':\'1m\',\'6K\':\'3X\',\'3W\':\'6N\',\'3q\':0,\'35\':\'M\',\'5e\':\'M\',\'1m\':0,\'5n\':1,\'6L\':0,\'1S\':0,\'5o\':0,\'6M\':0});4v(a,7);5q(a,7);8(7.2l){5r(7,a)}};y.6P=C(){y.5s();y.12(H(\'5t\',F),C(e,a){e.1f();8(!z.2c){8(7.M.W){7.M.W.36(2y(\'4w\',F))}}z.2c=I;8(7.M.1H){7.M.1H=K;y.R(H(\'3a\',F),a)}G I});y.12(H(\'5u\',F),C(e){e.1f();8(z.20){3Y(U)}G I});y.12(H(\'3a\',F),C(e,a,b){e.1f();1u=3s(1u);8(a&&z.20){U.2c=I;E c=2n()-U.2L;U.1C-=c;8(U.3t){U.3t.1C-=c}8(U.3u){U.3u.1C-=c}3Y(U,K)}8(!z.26&&!z.20){8(b){1u.3v+=2n()-1u.2L}}8(!z.26){8(7.M.W){7.M.W.36(2y(\'6Q\',F))}}z.26=I;8(7.M.4t){E d=7.M.2K-1u.3v,3b=2I-1I.2z(d*2I/7.M.2K);7.M.4t.1g($14,3b,d)}G I});y.12(H(\'1H\',F),C(e,b,c,d){e.1f();1u=3s(1u);E v=[b,c,d],t=[\'2M\',\'27\',\'3c\'],a=3d(v,t);b=a[0];c=a[1];d=a[2];8(b!=\'V\'&&b!=\'X\'){b=z.2b}8(!Y(c)){c=0}8(!1l(d)){d=K}8(d){z.2c=K;7.M.1H=I}8(!7.M.1H){e.2d();G 18(F,\'3w 4w: 2o 3e.\')}8(z.26){8(7.M.W){7.M.W.2N(2y(\'4w\',F));7.M.W.2N(2y(\'6Q\',F))}}z.26=K;1u.2L=2n();E f=7.M.2K+c;3Z=f-1u.3v;3b=2I-1I.2z(3Z*2I/f);8(7.M.1e){1u.1e=7U(C(){E a=2n()-1u.2L+1u.3v,3b=1I.2z(a*2I/f);7.M.1e.4x.1g(7.M.1e.2p[0],3b)},7.M.1e.5v)}1u.M=7V(C(){8(7.M.1e){7.M.1e.4x.1g(7.M.1e.2p[0],2I)}8(7.M.4u){7.M.4u.1g($14,3b,3Z)}8(z.20){y.R(H(\'1H\',F),b)}O{y.R(H(b,F),7.M)}},3Z);8(7.M.4s){7.M.4s.1g($14,3b,3Z)}G I});y.12(H(\'3f\',F),C(e){e.1f();8(U.2c){U.2c=K;z.26=K;z.20=I;U.2L=2n();2O(U)}O{y.R(H(\'1H\',F))}G I});y.12(H(\'V\',F)+\' \'+H(\'X\',F),C(e,b,f,g,h){e.1f();8(z.2c||y.2e(\':3r\')){e.2d();G 18(F,\'3w 4w 7W 3r: 2o 3e.\')}E i=(Y(7.D.4y))?7.D.4y:7.D.L+1;8(i>J.P){e.2d();G 18(F,\'2o 6R D (\'+J.P+\' P, \'+i+\' 6S): 2o 3e.\')}E v=[b,f,g,h],t=[\'2f\',\'27/2M\',\'C\',\'3c\'],a=3d(v,t);b=a[0];f=a[1];g=a[2];h=a[3];E k=e.5w.17(F.3x.41.S);8(!1D(b)){b={}}8(1n(g)){b.3g=g}8(1l(h)){b.3y=h}b=$.1N(I,{},7[k],b);8(b.5x&&!b.5x.1g($14,k)){e.2d();G 18(F,\'7X "5x" 7Y K.\')}8(!Y(f)){8(7.D.1t!=\'*\'){f=\'L\'}O{E m=[f,b.D,7[k].D];1j(E a=0,l=m.S;a<l;a++){8(Y(m[a])||m[a]==\'6T\'||m[a]==\'L\'){f=m[a];16}}}1B(f){Q\'6T\':e.2d();G y.1Q(H(k+\'7Z\',F),[b,g]);16;Q\'L\':8(!7.D.T.1c&&7.D.1t==\'*\'){f=7.D.L}16}}8(U.2c){y.R(H(\'3f\',F));y.R(H(\'3y\',F),[k,[b,f,g]]);e.2d();G 18(F,\'3w 80 3e.\')}8(b.1C>0){8(z.20){8(b.3y){y.R(H(\'3y\',F),[k,[b,f,g]])}e.2d();G 18(F,\'3w 81 3e.\')}}1u.3v=0;y.R(H(\'6U\'+k,F),[b,f]);8(7.2m){E s=7.2m,c=[b,f];1j(E j=0,l=s.S;j<l;j++){E d=k;8(!s[j][2]){d=(d==\'V\')?\'X\':\'V\'}8(!s[j][1]){c[0]=s[j][0].1Q(\'3o\',[\'4z\',d])}c[1]=f+s[j][3];s[j][0].R(\'3o\',[\'6U\'+d,c])}}G I});y.12(H(\'82\',F),C(e,b,c){e.1f();E d=y.13();8(!7.1T){8(J.Z==0){8(7.3z){y.R(H(\'X\',F),J.P-1)}G e.2d()}}1U(d,7);8(!Y(c)){8(7.D.T.1c){c=4A(d,7,J.P-1)}O 8(7.D.1t!=\'*\'){E f=(Y(b.D))?b.D:5y(y,7);c=6V(d,7,J.P-1,f)}O{c=7.D.L}c=4B(c,7,b.D,$14)}8(!7.1T){8(J.P-c<J.Z){c=J.P-J.Z}}7.D.T.1Z=7.D.L;8(7.D.T.1c){E g=31(d,7,J.P-c);8(7.D.L+c<=g&&c<J.P){c++;g=31(d,7,J.P-c)}7.D.L=32(g,7,7.D.T.2w,$14)}O 8(7.D.1t!=\'*\'){E g=3U(d,7,J.P-c);7.D.L=32(g,7,7.D.T.2w,$14)}1U(d,7,I);8(c==0){e.2d();G 18(F,\'0 D 4C 1M: 2o 3e.\')}18(F,\'6W \'+c+\' D 5z.\');J.Z+=c;2g(J.Z>=J.P){J.Z-=J.P}8(!7.1T){8(J.Z==0&&b.4D){b.4D.1g($14,\'V\')}8(!7.3z){3A(7,J.Z,F)}}y.13().17(J.P-c,J.P).83(y);8(J.P<7.D.L+c){y.13().17(0,(7.D.L+c)-J.P).4E(I).42(y)}E d=y.13(),3h=6X(d,7,c),2h=6Y(d,7),1Y=d.1O(c-1),21=3h.3i(),2q=2h.3i();1U(d,7);E h=0,2A=0;8(7.1A){E p=4F(2h,7);h=p[0];2A=p[1]}E i=(h<0)?7.1i[7.d[3]]:0;E j=K,2P=$();8(7.D.L<c){2P=d.17(7.D.T.1Z,c);8(b.1V==\'6Z\'){E k=7.D[7.d[\'N\']];j=2P;1Y=2q;5A(j);7.D[7.d[\'N\']]=\'1c\'}}E l=K,3B=2Q(d.17(0,c),7,\'N\'),2i=4G(4H(2h,7,I),7,!7.1R),3C=0,28={},4I={},2r={},2R={},4J={},2S={},5B={},2T=5C(b,7,c,3B);1B(b.1V){Q\'1J\':Q\'1J-1w\':3C=2Q(d.17(0,7.D.L),7,\'N\');16}8(j){7.D[7.d[\'N\']]=k}1U(d,7,I);8(2A>=0){1U(21,7,7.1i[7.d[1]])}8(h>=0){1U(1Y,7,7.1i[7.d[3]])}8(7.1A){7.1i[7.d[1]]=2A;7.1i[7.d[3]]=h}2S[7.d[\'1m\']]=-(3B-i);5B[7.d[\'1m\']]=-(3C-i);4I[7.d[\'1m\']]=2i[7.d[\'N\']];E m=C(){}
2222,1P=C(){},1E=C(){},3D=C(){},2B=C(){},5D=C(){},1F=C(){},3E=C(){},1x=C(){},1y=C(){},1K=C(){};1B(b.1V){Q\'3j\':Q\'1J\':Q\'1J-1w\':Q\'22\':Q\'22-1w\':l=y.4E(I).42($1s);16}1B(b.1V){Q\'3j\':Q\'22\':Q\'22-1w\':l.13().17(0,c).2s();l.13().17(7.D.T.1Z).2s();16;Q\'1J\':Q\'1J-1w\':l.13().17(7.D.L).2s();l.11(5B);16}y.11(2S);U=43(2T,b.2j);28[7.d[\'1m\']]=(7.1R)?7.1i[7.d[3]]:0;8(7[7.d[\'N\']]==\'1c\'||7[7.d[\'1d\']]==\'1c\'){m=C(){$1s.11(2i)};1P=C(){U.19.1b([$1s,2i])}}8(7.1R){8(2q.5E(1Y).S){2r[7.d[\'1S\']]=1Y.1p(\'29\');8(h<0){1Y.11(2r)}O{1F=C(){1Y.11(2r)};3E=C(){U.19.1b([1Y,2r])}}}1B(b.1V){Q\'1J\':Q\'1J-1w\':l.13().1O(c-1).11(2r);16}8(2q.5E(21).S){2R[7.d[\'1S\']]=21.1p(\'29\');1E=C(){21.11(2R)};3D=C(){U.19.1b([21,2R])}}8(2A>=0){4J[7.d[\'1S\']]=2q.1p(\'29\')+7.1i[7.d[1]];2B=C(){2q.11(4J)};5D=C(){U.19.1b([2q,4J])}}}1K=C(){y.11(28)};E n=7.D.L+c-J.P;1y=C(){8(n>0){y.13().17(J.P).2s();3h=$(y.13().17(J.P-(7.D.L-n)).3F().70(y.13().17(0,n).3F()))}5F(j);8(7.1R){E a=y.13().1O(7.D.L+c-1);a.11(7.d[\'1S\'],a.1p(\'29\'))}};E o=5G(3h,2P,2h,c,\'V\',2T,2i);1x=C(){5H(y,l,b);z.20=K;2a.3g=44($14,b,\'3g\',o,2a);2C=5I(y,2C,F);8(!z.26){y.R(H(\'1H\',F))}};z.20=I;1u=3s(1u);2a.3G=44($14,b,\'3G\',o,2a);1B(b.1V){Q\'3X\':y.11(28);m();1E();2B();1F();1K();1y();1x();16;Q\'1w\':U.19.1b([y,{\'1L\':0},C(){m();1E();2B();1F();1K();1y();U=43(2T,b.2j);U.19.1b([y,{\'1L\':1},1x]);2O(U)}]);16;Q\'3j\':y.11({\'1L\':0});U.19.1b([l,{\'1L\':0}]);U.19.1b([y,{\'1L\':1},1x]);1P();1E();2B();1F();1K();1y();16;Q\'1J\':U.19.1b([l,28,C(){1E();2B();1F();1K();1y();1x()}]);1P();16;Q\'1J-1w\':U.19.1b([y,{\'1L\':0}]);U.19.1b([l,28,C(){y.11({\'1L\':1});1E();2B();1F();1K();1y();1x()}]);1P();16;Q\'22\':U.19.1b([l,4I,1x]);1P();1E();2B();1F();1K();1y();16;Q\'22-1w\':y.11({\'1L\':0});U.19.1b([y,{\'1L\':1}]);U.19.1b([l,4I,1x]);1P();1E();2B();1F();1K();1y();16;2x:U.19.1b([y,28,C(){1y();1x()}]);1P();3D();5D();3E();16}2O(U);5J(7.25,y,F);y.R(H(\'3H\',F),[K,2i]);G I});y.12(H(\'84\',F),C(e,c,d){e.1f();E f=y.13();8(!7.1T){8(J.Z==7.D.L){8(7.3z){y.R(H(\'V\',F),J.P-1)}G e.2d()}}1U(f,7);8(!Y(d)){8(7.D.1t!=\'*\'){E g=(Y(c.D))?c.D:5y(y,7);d=71(f,7,0,g)}O{d=7.D.L}d=4B(d,7,c.D,$14)}E h=(J.Z==0)?J.P:J.Z;8(!7.1T){8(7.D.T.1c){E i=31(f,7,d),g=4A(f,7,h-1)}O{E i=7.D.L,g=7.D.L}8(d+i>h){d=h-g}}7.D.T.1Z=7.D.L;8(7.D.T.1c){E i=5K(f,7,d,h);2g(7.D.L-d>=i&&d<J.P){d++;i=5K(f,7,d,h)}7.D.L=32(i,7,7.D.T.2w,$14)}O 8(7.D.1t!=\'*\'){E i=3U(f,7,d);7.D.L=32(i,7,7.D.T.2w,$14)}1U(f,7,I);8(d==0){e.2d();G 18(F,\'0 D 4C 1M: 2o 3e.\')}18(F,\'6W \'+d+\' D 72.\');J.Z-=d;2g(J.Z<0){J.Z+=J.P}8(!7.1T){8(J.Z==7.D.L&&c.4D){c.4D.1g($14,\'X\')}8(!7.3z){3A(7,J.Z,F)}}8(J.P<7.D.L+d){y.13().17(0,(7.D.L+d)-J.P).4E(I).42(y)}E f=y.13(),3h=73(f,7),2h=74(f,7,d),1Y=f.1O(d-1),21=3h.3i(),2q=2h.3i();1U(f,7);E j=0,2A=0;8(7.1A){E p=4F(2h,7);j=p[0];2A=p[1]}E k=K,2P=$();8(7.D.T.1Z<d){2P=f.17(7.D.T.1Z,d);8(c.1V==\'6Z\'){E l=7.D[7.d[\'N\']];k=2P;1Y=21;5A(k);7.D[7.d[\'N\']]=\'1c\'}}E m=K,3B=2Q(f.17(0,d),7,\'N\'),2i=4G(4H(2h,7,I),7,!7.1R),3C=0,28={},4K={},2r={},2R={},2S={},2T=5C(c,7,d,3B);1B(c.1V){Q\'22\':Q\'22-1w\':3C=2Q(f.17(0,7.D.T.1Z),7,\'N\');16}8(k){7.D[7.d[\'N\']]=l}8(7.1A){8(7.1i[7.d[1]]<0){7.1i[7.d[1]]=0}}1U(f,7,I);1U(21,7,7.1i[7.d[1]]);8(7.1A){7.1i[7.d[1]]=2A;7.1i[7.d[3]]=j}2S[7.d[\'1m\']]=(7.1R)?7.1i[7.d[3]]:0;E n=C(){},1P=C(){},1E=C(){},3D=C(){},1F=C(){},3E=C(){},1x=C(){},1y=C(){},1K=C(){};1B(c.1V){Q\'3j\':Q\'1J\':Q\'1J-1w\':Q\'22\':Q\'22-1w\':m=y.4E(I).42($1s);m.13().17(7.D.T.1Z).2s();16}1B(c.1V){Q\'3j\':Q\'1J\':Q\'1J-1w\':m.11(\'5n\',0);16}U=43(2T,c.2j);28[7.d[\'1m\']]=-3B;4K[7.d[\'1m\']]=-3C;8(j<0){28[7.d[\'1m\']]+=j}8(7[7.d[\'N\']]==\'1c\'||7[7.d[\'1d\']]==\'1c\'){n=C(){$1s.11(2i)};1P=C(){U.19.1b([$1s,2i])}}8(7.1R){E o=2q.1p(\'29\');8(2A>=0){o+=7.1i[7.d[1]]}2q.11(7.d[\'1S\'],o);8(1Y.5E(21).S){2R[7.d[\'1S\']]=21.1p(\'29\')}1E=C(){21.11(2R)};3D=C(){U.19.1b([21,2R])};E q=1Y.1p(\'29\');8(j>0){q+=7.1i[7.d[3]]}2r[7.d[\'1S\']]=q;1F=C(){1Y.11(2r)};3E=C(){U.19.1b([1Y,2r])}}1K=C(){y.11(2S)};E r=7.D.L+d-J.P;1y=C(){8(r>0){y.13().17(J.P).2s()}E a=y.13().17(0,d).42(y).3i();8(r>0){2h=3I(f,7)}5F(k);8(7.1R){8(J.P<7.D.L+d){E b=y.13().1O(7.D.L-1);b.11(7.d[\'1S\'],b.1p(\'29\')+7.1i[7.d[3]])}a.11(7.d[\'1S\'],a.1p(\'29\'))}};E s=5G(3h,2P,2h,d,\'X\',2T,2i);1x=C(){5H(y,m,c);z.20=K;2a.3g=44($14,c,\'3g\',s,2a);2C=5I(y,2C,F);8(!z.26){y.R(H(\'1H\',F))}};z.20=I;1u=3s(1u);2a.3G=44($14,c,\'3G\',s,2a);1B(c.1V){Q\'3X\':y.11(28);n();1E();1F();1K();1y();1x();16;Q\'1w\':U.19.1b([y,{\'1L\':0},C(){n();1E();1F();1K();1y();U=43(2T,c.2j);U.19.1b([y,{\'1L\':1},1x]);2O(U)}]);16;Q\'3j\':y.11({\'1L\':0});U.19.1b([m,{\'1L\':0}]);U.19.1b([y,{\'1L\':1},1x]);1P();1E();1F();1K();1y();16;Q\'1J\':y.11(7.d[\'1m\'],$1s[7.d[\'N\']]());U.19.1b([y,2S,1x]);1P();1E();1F();1y();16;Q\'1J-1w\':y.11(7.d[\'1m\'],$1s[7.d[\'N\']]());U.19.1b([m,{\'1L\':0}]);U.19.1b([y,2S,1x]);1P();1E();1F();1y();16;Q\'22\':U.19.1b([m,4K,1x]);1P();1E();1F();1K();1y();16;Q\'22-1w\':y.11({\'1L\':0});U.19.1b([y,{\'1L\':1}]);U.19.1b([m,4K,1x]);1P();1E();1F();1K();1y();16;2x:U.19.1b([y,28,C(){1K();1y();1x()}]);1P();3D();3E();16}2O(U);5J(7.25,y,F);
2222y.R(H(\'3H\',F),[K,2i]);G I});y.12(H(\'3k\',F),C(e,b,c,d,f,g,h){e.1f();E v=[b,c,d,f,g,h],t=[\'2M/27/2f\',\'27\',\'3c\',\'2f\',\'2M\',\'C\'],a=3d(v,t);f=a[3];g=a[4];h=a[5];b=3J(a[0],a[1],a[2],J,y);8(b==0){G K}8(!1D(f)){f=K}8(z.20){8(!1D(f)||f.1C>0){G K}}8(g!=\'V\'&&g!=\'X\'){8(7.1T){g=(b<=J.P/2)?\'X\':\'V\'}O{g=(J.Z==0||J.Z>b)?\'X\':\'V\'}}8(g==\'V\'){b=J.P-b}y.R(H(g,F),[f,b,h]);G I});y.12(H(\'85\',F),C(e,a,b){e.1f();E c=y.1Q(H(\'45\',F));G y.1Q(H(\'5L\',F),[c-1,a,\'V\',b])});y.12(H(\'86\',F),C(e,a,b){e.1f();E c=y.1Q(H(\'45\',F));G y.1Q(H(\'5L\',F),[c+1,a,\'X\',b])});y.12(H(\'5L\',F),C(e,a,b,c,d){e.1f();8(!Y(a)){a=y.1Q(H(\'45\',F))}E f=7.1a.D||7.D.L,1X=1I.2z(J.P/f)-1;8(a<0){a=1X}8(a>1X){a=0}G y.1Q(H(\'3k\',F),[a*f,0,I,b,c,d])});y.12(H(\'75\',F),C(e,s){e.1f();8(s){s=3J(s,0,I,J,y)}O{s=0}s+=J.Z;8(s!=0){8(D.P>0){2g(s>J.P){s-=J.P}}y.87(y.13().17(s,J.P))}G I});y.12(H(\'2m\',F),C(e,s){e.1f();8(s){s=5h(s)}O 8(7.2m){s=7.2m}O{G 18(F,\'6p 88 4C 2m.\')}E n=y.1Q(H(\'4l\',F)),x=I;1j(E j=0,l=s.S;j<l;j++){8(!s[j][0].1Q(H(\'3k\',F),[n,s[j][3],I])){x=K}}G x});y.12(H(\'3y\',F),C(e,a,b){e.1f();8(1n(a)){a.1g($14,2C)}O 8(2U(a)){2C=a}O 8(!1G(a)){2C.1b([a,b])}G 2C});y.12(H(\'89\',F),C(e,b,c,d,f){e.1f();E v=[b,c,d,f],t=[\'2M/2f\',\'2M/27/2f\',\'3c\',\'27\'],a=3d(v,t);b=a[0];c=a[1];d=a[2];f=a[3];8(1D(b)&&!2t(b)){b=$(b)}O 8(1o(b)){b=$(b)}8(!2t(b)||b.S==0){G 18(F,\'2o a 5M 2f.\')}8(1G(c)){c=\'4L\'}4v(b,7);5q(b,7);E g=c,46=\'46\';8(c==\'4L\'){8(d){8(J.Z==0){c=J.P-1;46=\'76\'}O{c=J.Z;J.Z+=b.S}8(c<0){c=0}}O{c=J.P-1;46=\'76\'}}O{c=3J(c,f,d,J,y)}8(g!=\'4L\'&&!d){8(c<J.Z){J.Z+=b.S}}8(J.Z>=J.P){J.Z-=J.P}E h=y.13().1O(c);8(h.S){h[46](b)}O{y.77(b)}J.P=y.13().S;y.R(H(\'4M\',F));y.R(H(\'5N\',F));G I});y.12(H(\'78\',F),C(e,c,d,f){e.1f();E v=[c,d,f],t=[\'2M/27/2f\',\'3c\',\'27\'],a=3d(v,t);c=a[0];d=a[1];f=a[2];E g=K;8(c 2V $&&c.S>1){h=$();c.1W(C(i,a){E b=y.R(H(\'78\',F),[$(1k),d,f]);8(b)h=h.8a(b)});G h}8(1G(c)||c==\'4L\'){h=y.13().3i()}O{c=3J(c,f,d,J,y);E h=y.13().1O(c);
22228(h.S){8(c<J.Z)J.Z-=h.S}}8(h&&h.S){h.8b();J.P=y.13().S;y.R(H(\'4M\',F))}G h});y.12(H(\'3G\',F)+\' \'+H(\'3g\',F),C(e,a){e.1f();E b=e.5w.17(F.3x.41.S);8(2U(a)){2a[b]=a}8(1n(a)){2a[b].1b(a)}G 2a[b]});y.12(H(\'4l\',F),C(e,a){e.1f();8(J.Z==0){E b=0}O{E b=J.P-J.Z}8(1n(a)){a.1g($14,b)}G b});y.12(H(\'45\',F),C(e,a){e.1f();E b=7.1a.D||7.D.L,1X=1I.2z(J.P/b-1),2k;8(J.Z==0){2k=0}O 8(J.Z<J.P%b){2k=0}O 8(J.Z==b&&!7.1T){2k=1X}O{2k=1I.79((J.P-J.Z)/b)}8(2k<0){2k=0}8(2k>1X){2k=1X}8(1n(a)){a.1g($14,2k)}G 2k});y.12(H(\'8c\',F),C(e,a){e.1f();E b=3I(y.13(),7);8(1n(a)){a.1g($14,b)}G b});y.12(H(\'17\',F),C(e,f,l,b){e.1f();8(J.P==0){G K}E v=[f,l,b],t=[\'27\',\'27\',\'C\'],a=3d(v,t);f=(Y(a[0]))?a[0]:0;l=(Y(a[1]))?a[1]:J.P;b=a[2];f+=J.Z;l+=J.Z;8(D.P>0){2g(f>J.P){f-=J.P}2g(l>J.P){l-=J.P}2g(f<0){f+=J.P}2g(l<0){l+=J.P}}E c=y.13(),$i;8(l>f){$i=c.17(f,l)}O{$i=$(c.17(f,J.P).3F().70(c.17(0,l).3F()))}8(1n(b)){b.1g($14,$i)}G $i});y.12(H(\'26\',F)+\' \'+H(\'2c\',F)+\' \'+H(\'20\',F),C(e,a){e.1f();E b=e.5w.17(F.3x.41.S),5O=z[b];8(1n(a)){a.1g($14,5O)}G 5O});y.12(H(\'4z\',F),C(e,a,b,c){e.1f();E d=K;8(1n(a)){a.1g($14,7)}O 8(1D(a)){2Z=$.1N(I,{},2Z,a);8(b!==K)d=I;O 7=$.1N(I,{},7,a)}O 8(!1G(a)){8(1n(b)){E f=4N(\'7.\'+a);8(1G(f)){f=\'\'}b.1g($14,f)}O 8(!1G(b)){8(2W c!==\'3c\')c=I;4N(\'2Z.\'+a+\' = b\');8(c!==K)d=I;O 4N(\'7.\'+a+\' = b\')}O{G 4N(\'7.\'+a)}}8(d){1U(y.13(),7);y.56(2Z);y.5P();E g=4O(y,7);y.R(H(\'3H\',F),[I,g])}G 7});y.12(H(\'5N\',F),C(e,a,b){e.1f();8(1G(a)){a=$(\'8d\')}
2222O 8(1o(a)){a=$(a)}8(!2t(a)||a.S==0){G 18(F,\'2o a 5M 2f.\')}8(!1o(b)){b=\'a.6o\'}a.8e(b).1W(C(){E h=1k.7a||\'\';8(h.S>0&&y.13().7b($(h))!=-1){$(1k).23(\'5Q\').5Q(C(e){e.2D();y.R(H(\'3k\',F),h)})}});G I});y.12(H(\'3H\',F),C(e,b,c){e.1f();8(!7.1a.1z){G}E d=7.1a.D||7.D.L,4P=1I.2z(J.P/d);8(b){8(7.1a.3K){7.1a.1z.13().2s();7.1a.1z.1W(C(){1j(E a=0;a<4P;a++){E i=y.13().1O(3J(a*d,0,I,J,y));$(1k).77(7.1a.3K.1g(i[0],a+1))}})}7.1a.1z.1W(C(){$(1k).13().23(7.1a.3L).1W(C(a){$(1k).12(7.1a.3L,C(e){e.2D();y.R(H(\'3k\',F),[a*d,-7.1a.4Q,I,7.1a])})})})}E f=y.1Q(H(\'45\',F))+7.1a.4Q;8(f>=4P){f=0}8(f<0){f=4P-1}7.1a.1z.1W(C(){$(1k).13().2N(2y(\'7c\',F)).1O(f).36(2y(\'7c\',F))});G I});y.12(H(\'4M\',F),C(e){E a=7.D.L,2E=y.13(),2v=5a($1s,7,\'N\');J.P=2E.S;7.4o=5b(7,2v);8(z.4p){7[7.d[\'N\']]=4q(2v,z.4p)}8(7.2l){7.D.N=7.D.3M.N;7.D.1d=7.D.3M.1d;7=5d(7,2E,2v);a=7.D.L;5r(7,2E)}O 8(7.D.T.1c){a=31(2E,7,0)}O 8(7.D.1t!=\'*\'){a=3U(2E,7,0)}8(!7.1T&&J.Z!=0&&a>J.Z){8(7.D.T.1c){E b=4A(2E,7,J.Z)-J.Z}O 8(7.D.1t!=\'*\'){E b=7d(2E,7,J.Z)-J.Z}O{E b=7.D.L-J.Z}18(F,\'8f 8g-1T: 8h \'+b+\' D 5z.\');y.R(H(\'V\',F),b)}7.D.L=32(a,7,7.D.T.2w,$14);7.D.T.1Z=7.D.L;7=5f(7,2E);E c=4O(y,7);y.R(H(\'3H\',F),[I,c]);4R(7,J.P,F);3A(7,J.Z,F);G c});y.12(H(\'4m\',F),C(e,a){e.1f();1u=3s(1u);y.1p(\'55\',K);y.R(H(\'5u\',F));8(a){y.R(H(\'75\',F))}1U(y.13(),7);8(7.2l){y.13().1W(C(){$(1k).11($(1k).1p(\'7e\'))})}y.11(y.1p(\'6O\'));y.5s();y.5R();$1s.8i(y);G I});y.12(H(\'18\',F),C(e){18(F,\'3w N: \'+7.N);18(F,\'3w 1d: \'+7.1d);18(F,\'7f 8j: \'+7.D.N);18(F,\'7f 8k: \'+7.D.1d);18(F,\'47 48 D L: \'+7.D.L);8(7.M.1H){18(F,\'47 48 D 5S 8l: \'+7.M.D)}8(7.V.W){18(F,\'47 48 D 5S 5z: \'+7.V.D)}8(7.X.W){18(F,\'47 48 D 5S 72: \'+7.X.D)}G F.18});y.12(\'3o\',C(e,n,o){e.1f();G y.1Q(H(n,F),o)})};y.5s=C(){y.23(H(\'\',F));y.23(H(\'\',F,K));y.23(\'3o\')};y.5P=C(){y.5R();4R(7,J.P,F);3A(7,J.Z,F);8(7.M.2F){E b=3N(7.M.2F);$1s.12(H(\'4S\',F,K),C(){y.R(H(\'3a\',F),b)}).12(H(\'4T\',F,K),C(){y.R(H(\'3f\',F))})}8(7.M.W){7.M.W.12(H(7.M.3L,F,K),C(e){e.2D();E a=K,b=2G;8(z.26){a=\'1H\'}O 8(7.M.4U){a=\'3a\';b=3N(7.M.4U)}8(a){y.R(H(a,F),b)}})}8(7.V.W){7.V.W.12(H(7.V.3L,F,K),C(e){e.2D();y.R(H(\'V\',F))});8(7.V.2F){E b=3N(7.V.2F);7.V.W.12(H(\'4S\',F,K),C(){y.R(H(\'3a\',F),b)}).12(H(\'4T\',F,K),C(){y.R(H(\'3f\',F))})}}8(7.X.W){7.X.W.12(H(7.X.3L,F,K),C(e){e.2D();y.R(H(\'X\',F))});8(7.X.2F){E b=3N(7.X.2F);7.X.W.12(H(\'4S\',F,K),C(){y.R(H(\'3a\',F),b)}).12(H(\'4T\',F,K),C(){y.R(H(\'3f\',F))})}}8(7.1a.1z){8(7.1a.2F){E b=3N(7.1a.2F);7.1a.1z.12(H(\'4S\',F,K),C(){y.R(H(\'3a\',F),b)}).12(H(\'4T\',F,K),C(){y.R(H(\'3f\',F))})}}8(7.V.2X||7.X.2X){$(4a).12(H(\'7g\',F,K,I,I),C(e){E k=e.7h;8(k==7.X.2X){e.2D();y.R(H(\'X\',F))}8(k==7.V.2X){e.2D();y.R(H(\'V\',F))}})}8(7.1a.4V){$(4a).12(H(\'7g\',F,K,I,I),C(e){E k=e.7h;8(k>=49&&k<58){k=(k-49)*7.D.L;8(k<=J.P){e.2D();y.R(H(\'3k\',F),[k,0,I,7.1a])}}})}8(7.V.4W||7.X.4W){2J(\'4b 4c-7i\',\'4b 8m-7i\');8($.1r.4c){E c=(7.V.4W)?C(){y.R(H(\'V\',F))}:2G,4d=(7.X.4W)?C(){y.R(H(\'X\',F))}:2G;8(4d||4d){8(!z.4c){z.4c=I;E d={\'8n\':30,\'8o\':30,\'8p\':I};1B(7.2b){Q\'4n\':Q\'5T\':d.8q=c;d.8r=4d;16;2x:d.8s=4d;d.8t=c}$1s.4c(d)}}}}8($.1r.1q){E f=\'8u\'8v 3l;8((f&&7.1q.4e)||(!f&&7.1q.5U)){E g=$.1N(I,{},7.V,7.1q),7j=$.1N(I,{},7.X,7.1q),5V=C(){y.R(H(\'V\',F),[g])},5W=C(){y.R(H(\'X\',F),[7j])};1B(7.2b){Q\'4n\':Q\'5T\':7.1q.2H.8w=5W;7.1q.2H.8x=5V;16;2x:7.1q.2H.8y=5W;7.1q.2H.8z=5V}8(z.1q){y.1q(\'4m\')}$1s.1q(7.1q.2H);$1s.11(\'7k\',\'8A\');z.1q=I}}8($.1r.1h){8(7.V.1h){2J(\'7l V.1h 7m\',\'4b 1h 4z 2f\');7.V.1h=2G;7.1h={D:5X(7.V.1h)}}8(7.X.1h){2J(\'7l X.1h 7m\',\'4b 1h 4z 2f\');7.X.1h=2G;7.1h={D:5X(7.X.1h)}}8(7.1h){E h=$.1N(I,{},7.V,7.1h),7n=$.1N(I,{},7.X,7.1h);8(z.1h){$1s.23(H(\'1h\',F,K))}$1s.12(H(\'1h\',F,K),C(e,a){e.2D();8(a>0){y.R(H(\'V\',F),[h])}O{y.R(H(\'X\',F),[7n])}});z.1h=I}}8(7.M.1H){y.R(H(\'1H\',F),7.M.5Y)}8(z.6A){E i=$(3l),5Z=0,61=0;i.12(H(\'8B\',F,K,I,I),C(e){E a=i.N(),62=i.1d();8(a!=5Z||62!=61){y.R(H(\'5u\',F));8(7.M.63&&!z.26){y.R(H(\'1H\',F))}1U(y.13(),7);y.R(H(\'4M\',F));5Z=a;61=62}})}};y.5R=C(){E a=H(\'\',F),3O=H(\'\',F,K);64=H(\'\',F,K,I,I);$(4a).23(64);$(3l).23(64);$1s.23(3O);8(7.M.W){7.M.W.23(3O)}8(7.V.W){7.V.W.23(3O)}8(7.X.W){7.X.W.23(3O)}8(7.1a.1z){7.1a.1z.23(3O);8(7.1a.3K){7.1a.1z.13().2s()}}8(z.1q){y.1q(\'4m\');$1s.11(\'7k\',\'2x\');z.1q=K}8(z.1h){z.1h=K}4R(7,\'4f\',F);3A(7,\'2N\',F)};8(1l(w)){w={\'18\':w}}E z={\'2b\':\'X\',\'26\':I,\'20\':K,\'2c\':K,\'1h\':K,\'1q\':K},J={\'P\':y.13().S,\'Z\':0},1u={\'M\':2G,\'1e\':2G,\'2L\':2n(),\'3v\':0},U={\'2c\':K,\'1C\':0,\'2L\':0,\'2j\':\'\',\'19\':[]},2a={\'3G\':[],\'3g\':[]},2C=[],F=$.1N(I,{},$.1r.1v.7o,w),7={},2Z=$.1N(I,{},u),$1s=y.8C(\'<\'+F.65.53+\' 8D="\'+F.65.7p+\'" />\').66();F.4k=y.4k;F.3S=$.1r.1v.3S++;y.56(2Z,I,54);y.6I();
2222y.6P();y.5P();8(2U(7.D.3m)){E A=7.D.3m}O{E A=[];8(7.D.3m!=0){A.1b(7.D.3m)}}8(7.25){A.8E(4g(7q(7.25),10))}8(A.S>0){1j(E a=0,l=A.S;a<l;a++){E s=A[a];8(s==0){68}8(s===I){s=3l.8F.7a;8(s.S<1){68}}O 8(s===\'7r\'){s=1I.4h(1I.7r()*J.P)}8(y.1Q(H(\'3k\',F),[s,0,I,{1V:\'3X\'}])){16}}}E B=4O(y,7),7s=3I(y.13(),7);8(7.7t){7.7t.1g($14,{\'N\':B.N,\'1d\':B.1d,\'D\':7s})}y.R(H(\'3H\',F),[I,B]);y.R(H(\'5N\',F));8(F.18){y.R(H(\'18\',F))}G y};$.1r.1v.3S=1;$.1r.1v.59={\'2m\':K,\'3z\':I,\'1T\':I,\'2l\':K,\'2b\':\'1m\',\'D\':{\'3m\':0},\'1M\':{\'2j\':\'8G\',\'1C\':6D,\'2F\':K,\'3L\':\'5Q\',\'3y\':K}};$.1r.1v.7o={\'18\':K,\'3x\':{\'41\':\'\',\'7u\':\'8H\'},\'65\':{\'53\':\'8I\',\'7p\':\'8J\'},\'69\':{}};$.1r.1v.7v=C(a){G\'<a 8K="#"><7w>\'+a+\'</7w></a>\'};$.1r.1v.7x=C(a){$(1k).11(\'N\',a+\'%\')};$.1r.1v.25={3F:C(n){n+=\'=\';E b=4a.25.3P(\';\');1j(E a=0,l=b.S;a<l;a++){E c=b[a];2g(c.8L(0)==\' \'){c=c.17(1)}8(c.3Q(n)==0){G c.17(n.S)}}G 0},6a:C(n,v,d){E e="";8(d){E a=6b 7y();a.8M(a.2n()+(d*24*60*60*8N));e="; 8O="+a.8P()}4a.25=n+\'=\'+v+e+\'; 8Q=/\'},2s:C(n){$.1r.1v.25.6a(n,"",-1)}};C 43(d,e){G{19:[],1C:d,8R:d,2j:e,2L:2n()}}C 2O(s){8(1D(s.3t)){2O(s.3t)}1j(E a=0,l=s.19.S;a<l;a++){E b=s.19[a];8(!b){68}8(b[3]){b[0].5t()}b[0].8S(b[1],{8T:b[2],1C:s.1C,2j:s.2j})}8(1D(s.3u)){2O(s.3u)}}C 3Y(s,c){8(!1l(c)){c=I}8(1D(s.3t)){3Y(s.3t,c)}1j(E a=0,l=s.19.S;a<l;a++){E b=s.19[a];b[0].5t(I);8(c){b[0].11(b[1]);8(1n(b[2])){b[2]()}}}8(1D(s.3u)){3Y(s.3u,c)}}C 5H(a,b,o){8(b){b.2s()}1B(o.1V){Q\'1w\':Q\'3j\':Q\'1J-1w\':Q\'22-1w\':a.11(\'1t\',\'\');16}}C 44(d,o,b,a,c){8(o[b]){o[b].1g(d,a)}8(c[b].S){1j(E i=0,l=c[b].S;i<l;i++){c[b][i].1g(d,a)}}G[]}C 5I(a,q,c){8(q.S){a.R(H(q[0][0],c),q[0][1]);q.8U()}G q}C 5A(b){b.1W(C(){E a=$(1k);a.1p(\'7z\',a.2e(\':3r\')).4f()})}C 5F(b){8(b){b.1W(C(){E a=$(1k);8(!a.1p(\'7z\')){a.4i()}})}}C 3s(t){8(t.M){8V(t.M)}8(t.1e){8W(t.1e)}G t}C 5G(a,b,c,d,e,f,g){G{\'N\':g.N,\'1d\':g.1d,\'D\':{\'1Z\':a,\'8X\':b,\'6b\':c,\'L\':c},\'1M\':{\'D\':d,\'2b\':e,\'1C\':f}}}C 5C(a,o,b,c){E d=a.1C;8(a.1V==\'3X\'){G 0}8(d==\'M\'){d=o.1M.1C/o.1M.D*b}O 8(d<10){d=c/d}8(d<1){G 0}8(a.1V==\'1w\'){d=d/2}G 1I.79(d)}C 4R(o,t,c){E a=(Y(o.D.4y))?o.D.4y:o.D.L+1;8(t==\'4i\'||t==\'4f\'){E f=t}O 8(a>t){18(c,\'2o 6R D (\'+t+\' P, \'+a+\' 6S): 8Y 8Z.\');E f=\'4f\'}O{E f=\'4i\'}E s=(f==\'4i\')?\'2N\':\'36\',h=2y(\'3r\',c);8(o.M.W){o.M.W[f]()[s](h)}8(o.V.W){o.V.W[f]()[s](h)}8(o.X.W){o.X.W[f]()[s](h)}8(o.1a.1z){o.1a.1z[f]()[s](h)}}C 3A(o,f,c){8(o.1T||o.3z)G;E a=(f==\'2N\'||f==\'36\')?f:K,4X=2y(\'90\',c);8(o.M.W&&a){o.M.W[a](4X)}8(o.V.W){E b=a||(f==0)?\'36\':\'2N\';o.V.W[b](4X)}8(o.X.W){E b=a||(f==o.D.L)?\'36\':\'2N\';o.X.W[b](4X)}}C 3R(a,b){8(1n(b)){b=b.1g(a)}O 8(1G(b)){b={}}G b}C 6q(a,b){b=3R(a,b);8(Y(b)){b={\'L\':b}}O 8(b==\'1c\'){b={\'L\':b,\'N\':b,\'1d\':b}}O 8(!1D(b)){b={}}G b}C 6r(a,b){b=3R(a,b);8(Y(b)){8(b<=50){b={\'D\':b}}O{b={\'1C\':b}}}O 8(1o(b)){b={\'2j\':b}}O 8(!1D(b)){b={}}G b}C 4Y(a,b){b=3R(a,b);8(1o(b)){E c=6c(b);8(c==-1){b=$(b)}O{b=c}}G b}C 6s(a,b){b=4Y(a,b);8(2t(b)){b={\'W\':b}}O 8(1l(b)){b={\'1H\':b}}O 8(Y(b)){b={\'2K\':b}}8(b.1e){8(1o(b.1e)||2t(b.1e)){b.1e={\'2p\':b.1e}}}G b}C 6E(a,b){8(1n(b.W)){b.W=b.W.1g(a)}8(1o(b.W)){b.W=$(b.W)}8(!1l(b.1H)){b.1H=I}8(!Y(b.5Y)){b.5Y=0}8(1G(b.4U)){b.4U=I}8(!1l(b.63)){b.63=I}8(!Y(b.2K)){b.2K=(b.1C<10)?91:b.1C*5}8(b.1e){8(1n(b.1e.2p)){b.1e.2p=b.1e.2p.1g(a)}8(1o(b.1e.2p)){b.1e.2p=$(b.1e.2p)}8(b.1e.2p){8(!1n(b.1e.4x)){b.1e.4x=$.1r.1v.7x}8(!Y(b.1e.5v)){b.1e.5v=50}}O{b.1e=K}}G b}C 57(a,b){b=4Y(a,b);8(2t(b)){b={\'W\':b}}O 8(Y(b)){b={\'2X\':b}}G b}C 5g(a,b){8(1n(b.W)){b.W=b.W.1g(a)}8(1o(b.W)){b.W=$(b.W)}8(1o(b.2X)){b.2X=6c(b.2X)}G b}C 6t(a,b){b=4Y(a,b);8(2t(b)){b={\'1z\':b}}O 8(1l(b)){b={\'4V\':b}}G b}C 6F(a,b){8(1n(b.1z)){b.1z=b.1z.1g(a)}8(1o(b.1z)){b.1z=$(b.1z)}8(!Y(b.D)){b.D=K}8(!1l(b.4V)){b.4V=K}8(!1n(b.3K)&&!4Z(b.3K)){b.3K=$.1r.1v.7v}8(!Y(b.4Q)){b.4Q=0}G b}C 6u(a,b){8(1n(b)){b=b.1g(a)}8(1G(b)){b={\'4e\':K}}8(3p(b)){b={\'4e\':b}}O 8(Y(b)){b={\'D\':b}}G b}C 6G(a,b){8(!1l(b.4e)){b.4e=I}8(!1l(b.5U)){b.5U=K}8(!1D(b.2H)){b.2H={}}8(!1l(b.2H.7A)){b.2H.7A=K}G b}C 6v(a,b){8(1n(b)){b=b.1g(a)}8(3p(b)){b={}}O 8(Y(b)){b={\'D\':b}}O 8(1G(b)){b=K}G b}C 6H(a,b){G b}C 3J(a,b,c,d,e){8(1o(a)){a=$(a,e)}8(1D(a)){a=$(a,e)}8(2t(a)){a=e.13().7b(a);8(!1l(c)){c=K}}O{8(!1l(c)){c=I}}8(!Y(a)){a=0}8(!Y(b)){b=0}8(c){a+=d.Z}a+=b;8(d.P>0){2g(a>=d.P){a-=d.P}2g(a<0){a+=d.P}}G a}C 4A(i,o,s){E t=0,x=0;1j(E a=s;a>=0;a--){E j=i.1O(a);t+=(j.2e(\':L\'))?j[o.d[\'2u\']](I):0;8(t>o.4o){G x}8(a==0){a=i.S}x++}}C 7d(i,o,s){G 6d(i,o.D.1t,o.D.T.4r,s)}C 6V(i,o,s,m){G 6d(i,o.D.1t,m,s)}C 6d(i,f,m,s){E t=0,x=0;1j(E a=s,l=i.S;a>=0;a--){x++;8(x==l){G x}E j=i.1O(a);8(j.2e(f)){t++;8(t==m){G x}}8(a==0){a=l}}}C 5y(a,o){G o.D.T.4r||a.13().17(0,o.D.L).1t(o.D.1t).S}C 31(i,o,s){E t=0,x=0;1j(E a=s,l=i.S-1;a<=l;a++){E j=i.1O(a);t+=(j.2e(\':L\'))?j[o.d[\'2u\']](I):0;8(t>o.4o){G x}x++;8(x==l+1){G x}8(a==l){a=-1}}}C 5K(i,o,s,l){E v=31(i,o,s);8(!o.1T){8(s+v>l){v=l-s}}G v}C 3U(i,o,s){G 6e(i,o.D.1t,o.D.T.4r,s,o.1T)}C 71(i,o,s,m){G 6e(i,o.D.1t,m+1,s,o.1T)-1}C 6e(i,f,m,s,c){E t=0,x=0;1j(E a=s,l=i.S-1;a<=l;a++){x++;8(x>=l){G x}E j=i.1O(a);8(j.2e(f)){t++;8(t==m){G x}}8(a==l){a=-1}}}C 3I(i,o){G i.17(0,o.D.L)}C 6X(i,o,n){G i.17(n,o.D.T.1Z+n)}C 6Y(i,o){G i.17(0,o.D.L)}C 73(i,o){G i.17(0,o.D.T.1Z)}C 74(i,o,n){G i.17(n,o.D.L+n)}C 4v(i,o,d){8(o.1R){8(!1o(d)){d=\'29\'}i.1W(C(){E j=$(1k),m=4g(j.11(o.d[\'1S\']),10);8(!Y(m)){m=0}j.1p(d,m)})}}C 1U(i,o,m){8(o.1R){E x=(1l(m))?m:K;8(!Y(m)){m=0}4v(i,o,\'7B\');i.1W(C(){E j=$(1k);j.11(o.d[\'1S\'],((x)?j.1p(\'7B\'):m+j.1p(\'29\')))})}}C 5q(i,o){8(o.2l){i.1W(C(){E j=$(1k),s=5m(j,[\'N\',\'1d\']);j.1p(\'7e\',s)})}}C 5r(o,b){E c=o.D.L,7C=o.D[o.d[\'N\']],6f=o[o.d[\'1d\']],7D=3T(6f);b.1W(C(){E a=$(1k),6g=7C-7E(a,o,\'92\');a[o.d[\'N\']](6g);8(7D){a[o.d[\'1d\']](4q(6g,6f))}})}C 4O(a,o){E b=a.66(),$i=a.13(),$v=3I($i,o),51=4G(4H($v,o,I),o,K);b.11(51);8(o.1R){E p=o.1i,r=p[o.d[1]];8(o.1A&&r<0){r=0}E c=$v.3i();c.11(o.d[\'1S\'],c.1p(\'29\')+r);a.11(o.d[\'3q\'],p[o.d[0]]);a.11(o.d[\'1m\'],p[o.d[3]])}a.11(o.d[\'N\'],51[o.d[\'N\']]+(2Q($i,o,\'N\')*2));a.11(o.d[\'1d\'],6h($i,o,\'1d\'));G 51}C 4H(i,o,a){G[2Q(i,o,\'N\',a),6h(i,o,\'1d\',a)]}C 6h(i,o,a,b){8(!1l(b)){b=K}8(Y(o[o.d[a]])&&b){G o[o.d[a]]}8(Y(o.D[o.d[a]])){G o.D[o.d[a]]}a=(a.6i().3Q(\'N\')>-1)?\'2u\':\'3n\';G 4j(i,o,a)}C 4j(i,o,b){E s=0;1j(E a=0,l=i.S;a<l;a++){E j=i.1O(a);E m=(j.2e(\':L\'))?j[o.d[b]](I):0;8(s<m){s=m}}G s}C 2Q(i,o,b,c){8(!1l(c)){c=K}8(Y(o[o.d[b]])&&c){G o[o.d[b]]}8(Y(o.D[o.d[b]])){G o.D[o.d[b]]*i.S}E d=(b.6i().3Q(\'N\')>-1)?\'2u\':\'3n\',s=0;1j(E a=0,l=i.S;a<l;a++){E j=i.1O(a);s+=(j.2e(\':L\'))?j[o.d[d]](I):0}G s}C 5a(a,o,d){E b=a.2e(\':L\');8(b){a.4f()}E s=a.66()[o.d[d]]();8(b){a.4i()}G s}C 5b(o,a){G(Y(o[o.d[\'N\']]))?o[o.d[\'N\']]:a}C 6j(i,o,b){E s=K,v=K;1j(E a=0,l=i.S;a<l;a++){E j=i.1O(a);E c=(j.2e(\':L\'))?j[o.d[b]](I):0;8(s===K){s=c}O 8(s!=c){v=I}8(s==0){v=I}}G v}C 7E(i,o,d){G i[o.d[\'93\'+d]](I)-i[o.d[d.6i()]]()}C 4q(s,o){8(3T(o)){o=4g(o.17(0,-1),10);8(!Y(o)){G s}s*=o/2I}G s}C H(n,c,a,b,d){8(!1l(a)){a=I}8(!1l(b)){b=I}8(!1l(d)){d=K}8(a){n=c.3x.41+n}8(b){n=n+\'.\'+c.3x.7u}8(b&&d){n+=c.3S}G n}
2222C 2y(n,c){G(1o(c.69[n]))?c.69[n]:n}C 4G(a,o,p){8(!1l(p)){p=I}E b=(o.1R&&p)?o.1i:[0,0,0,0];E c={};c[o.d[\'N\']]=a[0]+b[1]+b[3];c[o.d[\'1d\']]=a[1]+b[0]+b[2];G c}C 3d(c,d){E e=[];1j(E a=0,7F=c.S;a<7F;a++){1j(E b=0,7G=d.S;b<7G;b++){8(d[b].3Q(2W c[a])>-1&&1G(e[b])){e[b]=c[a];16}}}G e}C 6C(p){8(1G(p)){G[0,0,0,0]}8(Y(p)){G[p,p,p,p]}8(1o(p)){p=p.3P(\'94\').7H(\'\').3P(\'95\').7H(\'\').3P(\' \')}8(!2U(p)){G[0,0,0,0]}1j(E i=0;i<4;i++){p[i]=4g(p[i],10)}1B(p.S){Q 0:G[0,0,0,0];Q 1:G[p[0],p[0],p[0],p[0]];Q 2:G[p[0],p[1],p[0],p[1]];Q 3:G[p[0],p[1],p[2],p[1]];2x:G[p[0],p[1],p[2],p[3]]}}C 4F(a,o){E x=(Y(o[o.d[\'N\']]))?1I.2z(o[o.d[\'N\']]-2Q(a,o,\'N\')):0;1B(o.1A){Q\'1m\':G[0,x];Q\'35\':G[x,0];Q\'5c\':2x:G[1I.2z(x/2),1I.4h(x/2)]}}C 6w(o){E a=[[\'N\',\'7I\',\'2u\',\'1d\',\'7J\',\'3n\',\'1m\',\'3q\',\'1S\',0,1,2,3],[\'1d\',\'7J\',\'3n\',\'N\',\'7I\',\'2u\',\'3q\',\'1m\',\'5o\',3,2,1,0]];E b=a[0].S,7K=(o.2b==\'35\'||o.2b==\'1m\')?0:1;E c={};1j(E d=0;d<b;d++){c[a[0][d]]=a[7K][d]}G c}C 4B(x,o,a,b){E v=x;8(1n(a)){v=a.1g(b,v)}O 8(1o(a)){E p=a.3P(\'+\'),m=a.3P(\'-\');8(m.S>p.S){E c=I,6k=m[0],2Y=m[1]}O{E c=K,6k=p[0],2Y=p[1]}1B(6k){Q\'96\':v=(x%2==1)?x-1:x;16;Q\'97\':v=(x%2==0)?x-1:x;16;2x:v=x;16}2Y=4g(2Y,10);8(Y(2Y)){8(c){2Y=-2Y}v+=2Y}}8(!Y(v)||v<1){v=1}G v}C 32(x,o,a,b){G 6l(4B(x,o,a,b),o.D.T)}C 6l(v,i){8(Y(i.34)&&v<i.34){v=i.34}8(Y(i.1X)&&v>i.1X){v=i.1X}8(v<1){v=1}G v}C 5h(s){8(!2U(s)){s=[[s]]}8(!2U(s[0])){s=[s]}1j(E j=0,l=s.S;j<l;j++){8(1o(s[j][0])){s[j][0]=$(s[j][0])}8(!1l(s[j][1])){s[j][1]=I}8(!1l(s[j][2])){s[j][2]=I}8(!Y(s[j][3])){s[j][3]=0}}G s}C 6c(k){8(k==\'35\'){G 39}8(k==\'1m\'){G 37}8(k==\'4n\'){G 38}8(k==\'5T\'){G 40}G-1}C 5J(n,a,c){8(n){E v=a.1Q(H(\'4l\',c));$.1r.1v.25.6a(n,v)}}C 7q(n){E c=$.1r.1v.25.3F(n);G(c==\'\')?0:c}C 5m(a,b){E c={},52;1j(E p=0,l=b.S;p<l;p++){52=b[p];c[52]=a.11(52)}G c}C 6x(a,b,c,d){8(!1D(a.T)){a.T={}}8(!1D(a.3M)){a.3M={}}8(a.3m==0&&Y(d)){a.3m=d}8(1D(a.L)){a.T.34=a.L.34;a.T.1X=a.L.1X;a.L=K}O 8(1o(a.L)){8(a.L==\'1c\'){a.T.1c=I}O{a.T.2w=a.L}a.L=K}O 8(1n(a.L)){a.T.2w=a.L;a.L=K}8(!1o(a.1t)){a.1t=(c.1t(\':3r\').S>0)?\':L\':\'*\'}8(!a[b.d[\'N\']]){8(b.2l){18(I,\'7L a \'+b.d[\'N\']+\' 1j 4b D!\');a[b.d[\'N\']]=4j(c,b,\'2u\')}O{a[b.d[\'N\']]=(6j(c,b,\'2u\'))?\'1c\':c[b.d[\'2u\']](I)}}8(!a[b.d[\'1d\']]){a[b.d[\'1d\']]=(6j(c,b,\'3n\'))?\'1c\':c[b.d[\'3n\']](I)}a.3M.N=a.N;a.3M.1d=a.1d;G a}C 6B(a,b){8(a.D[a.d[\'N\']]==\'1c\'){a.D.T.1c=I}8(!a.D.T.1c){8(Y(a[a.d[\'N\']])){a.D.L=1I.4h(a[a.d[\'N\']]/a.D[a.d[\'N\']])}O{a.D.L=1I.4h(b/a.D[a.d[\'N\']]);a[a.d[\'N\']]=a.D.L*a.D[a.d[\'N\']];8(!a.D.T.2w){a.1A=K}}8(a.D.L==\'98\'||a.D.L<1){18(I,\'2o a 5M 27 48 L D: 7L 4C "1c".\');a.D.T.1c=I}}G a}C 6y(a,b,c){8(a==\'M\'){a=4j(c,b,\'2u\')}G a}C 6z(a,b,c){8(a==\'M\'){a=4j(c,b,\'3n\')}8(!a){a=b.D[b.d[\'1d\']]}G a}C 5f(o,a){E p=4F(3I(a,o),o);o.1i[o.d[1]]=p[1];o.1i[o.d[3]]=p[0];G o}C 5d(o,a,b){E c=6l(1I.2z(o[o.d[\'N\']]/o.D[o.d[\'N\']]),o.D.T);8(c>a.S){c=a.S}E d=1I.4h(o[o.d[\'N\']]/c);o.D.L=c;o.D[o.d[\'N\']]=d;o[o.d[\'N\']]=c*d;G o}C 3N(p){8(1o(p)){E i=(p.3Q(\'99\')>-1)?I:K,r=(p.3Q(\'3f\')>-1)?I:K}O{E i=r=K}G[i,r]}C 5X(a){G(Y(a))?a:2G}C 6m(a){G(a===2G)}C 1G(a){G(6m(a)||2W a==\'7M\'||a===\'\'||a===\'7M\')}C 2U(a){G(a 2V 9a)}C 2t(a){G(a 2V 7N)}C 1D(a){G((a 2V 9b||2W a==\'2f\')&&!6m(a)&&!2t(a)&&!2U(a))}C Y(a){G((a 2V 47||2W a==\'27\')&&!9c(a))}C 1o(a){G((a 2V 9d||2W a==\'2M\')&&!1G(a)&&!3p(a)&&!4Z(a))}C 1n(a){G(a 2V 9e||2W a==\'C\')}C 1l(a){G(a 2V 9f||2W a==\'3c\'||3p(a)||4Z(a))}C 3p(a){G(a===I||a===\'I\')}C 4Z(a){G(a===K||a===\'K\')}C 3T(x){G(1o(x)&&x.17(-1)==\'%\')}C 2n(){G 6b 7y().2n()}C 2J(o,n){18(I,o+\' 2e 9g, 9h 1j 9i 9j 9k 9l. 9m \'+n+\' 9n.\')}C 18(d,m){8(1D(d)){E s=\' (\'+d.4k+\')\';d=d.18}O{E s=\'\'}8(!d){G K}8(1o(m)){m=\'1v\'+s+\': \'+m}O{m=[\'1v\'+s+\':\',m]}8(3l.6n&&3l.6n.7O){3l.6n.7O(m)}G K}$.1N($.2j,{\'9o\':C(t){E a=t*t;G t*(-a*t+4*a-6*t+4)},\'9p\':C(t){G t*(4*t*t-9*t+6)},\'9q\':C(t){E a=t*t;G t*(33*a*a-9r*a*t+9s*a-67*t+15)}})})(7N);',62,587,'|||||||opts|if||||||||||||||||||||||||||||||function|items|var|conf|return|cf_e|true|itms|false|visible|auto|width|else|total|case|trigger|length|visibleConf|scrl|prev|button|next|is_number|first||css|bind|children|tt0||break|slice|debug|anims|pagination|push|variable|height|progress|stopPropagation|call|mousewheel|padding|for|this|is_boolean|left|is_function|is_string|data|swipe|fn|wrp|filter|tmrs|carouFredSel|fade|_onafter|_moveitems|container|align|switch|duration|is_object|_s_paddingold|_s_paddingcur|is_undefined|play|Math|cover|_position|opacity|scroll|extend|eq|_a_wrapper|triggerHandler|usePadding|marginRight|circular|sz_resetMargin|fx|each|max|i_cur_l|old|isScrolling|i_old_l|uncover|unbind||cookie|isPaused|number|a_cfs|_cfs_origCssMargin|clbk|direction|isStopped|stopImmediatePropagation|is|object|while|i_new|w_siz|easing|nr|responsive|synchronise|getTime|Not|bar|i_new_l|a_cur|remove|is_jquery|outerWidth|avail_primary|adjust|default|cf_c|ceil|pR|_s_paddingnew|queu|preventDefault|a_itm|pauseOnHover|null|options|100|deprecated|timeoutDuration|startTime|str
2222ing|removeClass|sc_startScroll|i_skp|ms_getTotalSize|a_old|a_lef|a_dur|is_array|instanceof|typeof|key|adj|opts_orig||gn_getVisibleItemsNext|cf_getItemsAdjust||min|right|addClass||||pause|perc|boolean|cf_sortParams|scrolling|resume|onAfter|i_old|last|crossfade|slideTo|window|start|outerHeight|_cfs_triggerEvent|is_true|top|hidden|sc_clearTimers|pre|post|timePassed|Carousel|events|queue|infinite|nv_enableNavi|i_siz|i_siz_vis|_a_paddingold|_a_paddingcur|get|onBefore|updatePageStatus|gi_getCurrentItems|gn_getItemIndex|anchorBuilder|event|sizesConf|bt_pauseOnHoverConfig|ns2|split|indexOf|go_getObject|serialNumber|is_percentage|gn_getVisibleItemsNextFilter|orgCSS|position|none|sc_stopScroll|dur2||prefix|appendTo|sc_setScroll|sc_fireCallbacks|currentPage|before|Number|of||document|the|touchwipe|wN|onTouch|hide|parseInt|floor|show|ms_getTrueLargestSize|selector|currentPosition|destroy|up|maxDimension|primarySizePercentage|ms_getPercentage|org|onTimeoutStart|onTimeoutPause|onTimeoutEnd|sz_storeMargin|stopped|updater|minimum|configuration|gn_getVisibleItemsPrev|cf_getAdjust|to|onEnd|clone|cf_getAlignPadding|cf_mapWrapperSizes|ms_getSizes|a_wsz|a_new|a_cfs_vis|end|updateSizes|eval|sz_setSizes|pgs|deviation|nv_showNavi|mouseenter|mouseleave|pauseOnEvent|keys|wipe|di|go_getNaviObject|is_false||sz|prop|element|starting_position|_cfs_isCarousel|_cfs_init|go_getPrevNextObject||defaults|ms_getParentSize|ms_getMaxDimension|center|in_getResponsiveValues|bottom|in_getAlignPadding|go_complementPrevNextObject|cf_getSynchArr|onPauseStart|onPausePause|onPauseEnd|pauseDuration|in_mapCss|zIndex|marginBottom|newPosition|sz_storeSizes|sz_setResponsiveSizes|_cfs_unbind_events|stop|finish|interval|type|conditions|gn_getVisibleOrg|backward|sc_hideHiddenItems|a_lef_vis|sc_getDuration|_a_paddingnew|not|sc_showHiddenItems|sc_mapCallbackArguments|sc_afterScroll|sc_fireQueue|cf_setCookie|gn_getVisibleItemsNextTestCircular|slideToPage|valid|linkAnchors|value|_cfs_bind_buttons|click|_cfs_unbind_buttons|scrolled|down|onMouse|swP|swN|bt_mousesheelNumber|delay|_windowWidth||_windowHeight|nh|pauseOnResize|ns3|wrapper|parent||continue|classnames|set|new|cf_getKeyCode|gn_getItemsPrevFilter|gn_getItemsNextFilter|seco|nw|ms_getLargestSize|toLowerCase|ms_hasVariableSizes|sta|cf_getItemAdjustMinMax|is_null|console|caroufredsel|No|go_getItemsObject|go_getScrollObject|go_getAutoObject|go_getPaginationObject|go_getSwipeObject|go_getMousewheelObject|cf_getDimensions|in_complementItems|in_complementPrimarySize|in_complementSecondarySize|upDateOnWindowResize|in_complementVisibleItems|cf_getPadding|500|go_complementAutoObject|go_complementPaginationObject|go_complementSwipeObject|go_complementMousewheelObject|_cfs_build|textAlign|float|marginTop|marginLeft|absolute|_cfs_origCss|_cfs_bind_events|paused|enough|needed|page|slide_|gn_getScrollItemsPrevFilter|Scrolling|gi_getOldItemsPrev|gi_getNewItemsPrev|directscroll|concat|gn_getScrollItemsNextFilter|forward|gi_getOldItemsNext|gi_getNewItemsNext|jumpToStart|after|append|removeItem|round|hash|index|selected|gn_getVisibleItemsPrevFilter|_cfs_origCssSizes|Item|keyup|keyCode|plugin|scN|cursor|The|option|mcN|configs|classname|cf_getCookie|random|itm|onCreate|namespace|pageAnchorBuilder|span|progressbarUpdater|Date|_cfs_isHidden|triggerOnTouchEnd|_cfs_tempCssMargin|newS|secp|ms_getPaddingBorderMargin|l1|l2|join|innerWidth|innerHeight|dx|Set|undefined|jQuery|log|found|caroufredsel_cookie_|relative|fixed|overflow|setInterval|setTimeout|or|Callback|returned|Page|resumed|currently|slide_prev|prependTo|slide_next|prevPage|nextPage|prepend|carousel|insertItem|add|detach|currentVisible|body|find|Preventing|non|sliding|replaceWith|widths|heights|automatically|touchSwipe|min_move_x|min_move_y|preventDefaultEvents|wipeUp|wipeDown|wipeLeft|wipeRight|ontouchstart|in|swipeUp|swipeDown|swipeLeft|swipeRight|move|resize|wrap|class|unshift|location|swing|cfs|div|caroufredsel_wrapper|href|charAt|setTime|1000|expires|toGMTString|path|orgDuration|animate|complete|shift|clearTimeout|clearInterval|skipped|Hiding|navigation|disabled|2500|Width|outer|px|em|even|odd|Infinity|immediate|Array|Object|isNaN|String|Function|Boolean|DEPRECATED|support|it|will|be|removed|Use|instead|quadratic|cubic|elastic|106|126'.split('|'),0,{}))
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.