');var s=0;"undefined"==typeof o.IN&&0==s?(s=1,function(){var t=i.createElement("script");t.type="text/javascript",t.async=!0,t.src="//platform.linkedin.com/in.js";var e=i.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}()):o.IN.init()},pinterest:function(e){var o=e.options.buttons.pinterest;t(e.element).find(".buttons").append('
Pin It
'),function(){var t=i.createElement("script");t.type="text/javascript",t.async=!0,t.src="//assets.pinterest.com/js/pinit.js";var e=i.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}()}},h={googlePlus:function(){},facebook:function(){fb=o.setInterval(function(){"undefined"!=typeof FB&&(FB.Event.subscribe("edge.create",function(t){_gaq.push(["_trackSocial","facebook","like",t])}),FB.Event.subscribe("edge.remove",function(t){_gaq.push(["_trackSocial","facebook","unlike",t])}),FB.Event.subscribe("message.send",function(t){_gaq.push(["_trackSocial","facebook","send",t])}),clearInterval(fb))},1e3)},twitter:function(){tw=o.setInterval(function(){"undefined"!=typeof twttr&&(twttr.events.bind("tweet",function(t){t&&_gaq.push(["_trackSocial","twitter","tweet"])}),clearInterval(tw))},1e3)},digg:function(){},delicious:function(){},stumbleupon:function(){},linkedin:function(){},pinterest:function(){}},p={googlePlus:function(t){o.open("https://plus.google.com/share?hl="+t.buttons.googlePlus.lang+"&url="+encodeURIComponent(""!==t.buttons.googlePlus.url?t.buttons.googlePlus.url:t.url),"","toolbar=0, status=0, width=900, height=500")},facebook:function(t){o.open("http://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(""!==t.buttons.facebook.url?t.buttons.facebook.url:t.url)+"&t="+t.text,"","toolbar=0, status=0, width=900, height=500")},twitter:function(t){o.open("https://twitter.com/intent/tweet?text="+encodeURIComponent(t.text)+"&url="+encodeURIComponent(""!==t.buttons.twitter.url?t.buttons.twitter.url:t.url)+(""!==t.buttons.twitter.via?"&via="+t.buttons.twitter.via:""),"","toolbar=0, status=0, width=650, height=360")},digg:function(t){o.open("http://digg.com/tools/diggthis/submit?url="+encodeURIComponent(""!==t.buttons.digg.url?t.buttons.digg.url:t.url)+"&title="+t.text+"&related=true&style=true","","toolbar=0, status=0, width=650, height=360")},delicious:function(t){o.open("http://www.delicious.com/save?v=5&noui&jump=close&url="+encodeURIComponent(""!==t.buttons.delicious.url?t.buttons.delicious.url:t.url)+"&title="+t.text,"delicious","toolbar=no,width=550,height=550")},stumbleupon:function(t){o.open("http://www.stumbleupon.com/badge/?url="+encodeURIComponent(""!==t.buttons.delicious.url?t.buttons.delicious.url:t.url),"stumbleupon","toolbar=no,width=550,height=550")},linkedin:function(t){o.open("https://www.linkedin.com/cws/share?url="+encodeURIComponent(""!==t.buttons.delicious.url?t.buttons.delicious.url:t.url)+"&token=&isFramed=true","linkedin","toolbar=no,width=550,height=550")},pinterest:function(t){o.open("http://pinterest.com/pin/create/button/?url="+encodeURIComponent(""!==t.buttons.pinterest.url?t.buttons.pinterest.url:t.url)+"&media="+encodeURIComponent(t.buttons.pinterest.media)+"&description="+t.buttons.pinterest.description,"pinterest","toolbar=no,width=700,height=300")}};r.prototype.init=function(){var e=this;""!==this.options.urlCurl&&(c.googlePlus=this.options.urlCurl+"?url={url}&type=googlePlus",c.stumbleupon=this.options.urlCurl+"?url={url}&type=stumbleupon"),t(this.element).addClass(this.options.className),"undefined"!=typeof t(this.element).data("title")&&(this.options.title=t(this.element).attr("data-title")),"undefined"!=typeof t(this.element).data("url")&&(this.options.url=t(this.element).data("url")),"undefined"!=typeof t(this.element).data("text")&&(this.options.text=t(this.element).data("text")),t.each(this.options.share,function(t,o){o===!0&&e.options.shareTotal++}),e.options.enableCounter===!0?t.each(this.options.share,function(t,o){if(o===!0)try{e.getSocialJson(t)}catch(i){}}):""!==e.options.template?this.options.render(this,this.options):this.loadButtons(),t(this.element).hover(function(){0===t(this).find(".buttons").length&&e.options.enableHover===!0&&e.loadButtons(),e.options.hover(e,e.options)},function(){e.options.hide(e,e.options)}),t(this.element).click(function(){return e.options.click(e,e.options),!1})},r.prototype.loadButtons=function(){var e=this;t(this.element).append('
'),t.each(e.options.share,function(t,o){1==o&&(d[t](e),e.options.enableTracking===!0&&h[t]())})},r.prototype.getSocialJson=function(e){var o=this,i=0,n=c[e].replace("{url}",encodeURIComponent(this.options.url));this.options.buttons[e].urlCount===!0&&""!==this.options.buttons[e].url&&(n=c[e].replace("{url}",this.options.buttons[e].url)),""!=n&&""!==o.options.urlCurl?t.getJSON(n,function(t){if("undefined"!=typeof t.count){var n=t.count+"";n=n.replace(" ",""),i+=parseInt(n,10)}else t.data&&t.data.length>0&&"undefined"!=typeof t.data[0].total_count?i+=parseInt(t.data[0].total_count,10):"undefined"!=typeof t[0]?i+=parseInt(t[0].total_posts,10):"undefined"!=typeof t[0];o.options.count[e]=i,o.options.total+=i,o.renderer(),o.rendererPerso()}).error(function(){o.options.count[e]=0,o.rendererPerso()}):(o.renderer(),o.options.count[e]=0,o.rendererPerso())},r.prototype.rendererPerso=function(){var t=0;for(e in this.options.count)t++;t===this.options.shareTotal&&this.options.render(this,this.options)},r.prototype.renderer=function(){var e=this.options.total,o=this.options.template;this.options.shorterTotal===!0&&(e=this.shorterTotal(e)),""!==o?(o=o.replace("{total}",e),t(this.element).html(o)):t(this.element).html('
'+e+""+(""!==this.options.title?''+this.options.title+"":"")+"
")},r.prototype.shorterTotal=function(t){return t>=1e6?t=(t/1e6).toFixed(2)+"M":t>=1e3&&(t=(t/1e3).toFixed(1)+"k"),t},r.prototype.openPopup=function(t){if(p[t](this.options),this.options.enableTracking===!0){var e={googlePlus:{site:"Google",action:"+1"},facebook:{site:"facebook",action:"like"},twitter:{site:"twitter",action:"tweet"},digg:{site:"digg",action:"add"},delicious:{site:"delicious",action:"add"},stumbleupon:{site:"stumbleupon",action:"add"},linkedin:{site:"linkedin",action:"share"},pinterest:{site:"pinterest",action:"pin"}};_gaq.push(["_trackSocial",e[t].site,e[t].action])}},r.prototype.simulateClick=function(){var e=t(this.element).html();t(this.element).html(e.replace(this.options.total,this.options.total+1))},r.prototype.update=function(t,e){""!==t&&(this.options.url=t),""!==e&&(this.options.text=e)},t.fn[l]=function(e){var o=arguments;return e===n||"object"==typeof e?this.each(function(){t.data(this,"plugin_"+l)||t.data(this,"plugin_"+l,new r(this,e))}):"string"==typeof e&&"_"!==e[0]&&"init"!==e?this.each(function(){var i=t.data(this,"plugin_"+l);i instanceof r&&"function"==typeof i[e]&&i[e].apply(i,Array.prototype.slice.call(o,1))}):void 0}}(jQuery,window,document),function(t){var e=!1,o=!1,i=5e3,n=2e3,s=0,r=function(){var t=document.getElementsByTagName("script"),t=t[t.length-1].src.split("?")[0];return 0o;++o)t.call(e,this[o],o,this)});var l=window.requestAnimationFrame||!1,c=window.cancelAnimationFrame||!1;["ms","moz","webkit","o"].forEach(function(t){l||(l=window[t+"RequestAnimationFrame"]),c||(c=window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"])});var d=window.MutationObserver||window.WebKitMutationObserver||!1,h={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,horizrailenabled:!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:.3,rtlmode:!1,cursordragontouch:!1},p=!1,u=function(){if(p)return p;var t=document.createElement("DIV"),e={haspointerlock:"pointerLockElement"in document||"mozPointerLockElement"in document||"webkitPointerLockElement"in document};e.isopera="opera"in window,e.isopera12=e.isopera&&"getUserMedia"in navigator,e.isie="all"in document&&"attachEvent"in t&&!e.isopera,e.isieold=e.isie&&!("msInterpolationMode"in t.style),e.isie7=e.isie&&!e.isieold&&(!("documentMode"in document)||7==document.documentMode),e.isie8=e.isie&&"documentMode"in document&&8==document.documentMode,e.isie9=e.isie&&"performance"in window&&9<=document.documentMode,e.isie10=e.isie&&"performance"in window&&10<=document.documentMode,e.isie9mobile=/iemobile.9/i.test(navigator.userAgent),e.isie9mobile&&(e.isie9=!1),e.isie7mobile=!e.isie9mobile&&e.isie7&&/iemobile/i.test(navigator.userAgent),e.ismozilla="MozAppearance"in t.style,e.iswebkit="WebkitAppearance"in t.style,e.ischrome="chrome"in window,e.ischrome22=e.ischrome&&e.haspointerlock,e.ischrome26=e.ischrome&&"transition"in t.style,e.cantouch="ontouchstart"in document.documentElement||"ontouchstart"in window,e.hasmstouch=window.navigator.msPointerEnabled||!1,e.ismac=/^mac$/i.test(navigator.platform),e.isios=e.cantouch&&/iphone|ipad|ipod/i.test(navigator.platform),e.isios4=e.isios&&!("seal"in Object),e.isandroid=/android/i.test(navigator.userAgent),e.trstyle=!1,e.hastransform=!1,e.hastranslate3d=!1,e.transitionstyle=!1,e.hastransition=!1,e.transitionend=!1;for(var o=["transform","msTransform","webkitTransform","MozTransform","OTransform"],i=0;in){if(y.getScrollTop()>=y.page.maxh)return!0}else if(0>=y.getScrollTop())return!0;y.scrollmom&&y.scrollmom.stop(),y.lastdeltay+=n,y.debounced("mousewheely",function(){var t=y.lastdeltay;y.lastdeltay=0,y.rail.drag||y.doScrollBy(t)},120)}return t.stopImmediatePropagation(),t.preventDefault()}var y=this;if(this.version="3.4.0",this.name="nicescroll",this.me=p,this.opt={doc:t("body"),win:!1},t.extend(this.opt,h),this.opt.snapbackspeed=80,a)for(var b in y.opt)"undefined"!=typeof a[b]&&(y.opt[b]=a[b]);this.iddoc=(this.doc=y.opt.doc)&&this.doc[0]?this.doc[0].id||"":"",this.ispage=/BODY|HTML/.test(y.opt.win?y.opt.win[0].nodeName:this.doc[0].nodeName),this.haswrapper=!1!==y.opt.win,this.win=y.opt.win||(this.ispage?t(window):this.doc),this.docscroll=this.ispage&&!this.haswrapper?t(window):this.win,this.body=t("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"!=y.opt.autohidemode,this.page=this.view=this.onzoomout=this.onzoomin=this.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"+n++;while(document.getElementById(this.id));this.hasmousefocus=this.hasfocus=this.zoomactive=this.zoom=this.selectiondrag=this.cursorfreezed=this.cursor=this.rail=!1,this.visibility=!0,this.hidden=this.locked=!1,this.cursoractive=!0,this.overflowx=y.opt.overflowx,this.overflowy=y.opt.overflowy,this.nativescrollingarea=!1, this.checkarea=0,this.events=[],this.saved={},this.delaylist={},this.synclist={},this.lastdeltay=this.lastdeltax=0,this.detected=u();var z=t.extend({},this.detected);if(this.ishwscroll=(this.canhwscroll=z.hastransform&&y.opt.hwacceleration)&&y.haswrapper,this.istouchcapable=!1,z.cantouch&&z.ischrome&&!z.isios&&!z.isandroid&&(this.istouchcapable=!0,z.cantouch=!1),z.cantouch&&z.ismozilla&&!z.isios&&(this.istouchcapable=!0,z.cantouch=!1),y.opt.enablemouselockapi||(z.hasmousecapture=!1,z.haspointerlock=!1),this.delayed=function(t,e,o,i){var n=y.delaylist[t],s=(new Date).getTime();return!i&&n&&n.tt?!1:(n&&n.tt&&clearTimeout(n.tt),void(n&&n.last+o>s&&!n.tt?y.delaylist[t]={last:s+o,tt:setTimeout(function(){y.delaylist[t].tt=0,e.call()},o)}:n&&n.tt||(y.delaylist[t]={last:s,tt:0},setTimeout(function(){e.call()},0))))},this.debounced=function(t,e,o){var i=y.delaylist[t];(new Date).getTime(),y.delaylist[t]=e,i||setTimeout(function(){var e=y.delaylist[t];y.delaylist[t]=!1,e.call()},o)},this.synched=function(t,e){return y.synclist[t]=e,function(){y.onsync||(l(function(){y.onsync=!1;for(t in y.synclist){var e=y.synclist[t];e&&e.call(y),y.synclist[t]=!1}}),y.onsync=!0)}(),t},this.unsynched=function(t){y.synclist[t]&&(y.synclist[t]=!1)},this.css=function(t,e){for(var o in e)y.saved.css.push([t,o,t.css(o)]),t.css(o,e[o])},this.scrollTop=function(t){return"undefined"==typeof t?y.getScrollTop():y.setScrollTop(t)},this.scrollLeft=function(t){return"undefined"==typeof t?y.getScrollLeft():y.setScrollLeft(t)},BezierClass=function(t,e,o,i,n,s,r){this.st=t,this.ed=e,this.spd=o,this.p1=i||0,this.p2=n||1,this.p3=s||0,this.p4=r||1,this.ts=(new Date).getTime(),this.df=this.ed-this.st},BezierClass.prototype={B2:function(t){return 3*t*t*(1-t)},B3:function(t){return 3*t*(1-t)*(1-t)},B4:function(t){return(1-t)*(1-t)*(1-t)},getNow:function(){var t=1-((new Date).getTime()-this.ts)/this.spd,e=this.B2(t)+this.B3(t)+this.B4(t);return 0>t?this.ed:this.st+Math.round(this.df*e)},update:function(t,e){return this.st=this.getNow(),this.ed=t,this.spd=e,this.ts=(new Date).getTime(),this.df=this.ed-this.st,this}},this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"},z.hastranslate3d&&z.isios&&this.doc.css("-webkit-backface-visibility","hidden");var x=function(){var t=y.doc.css(z.trstyle);return t&&"matrix"==t.substr(0,6)?t.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/):!1};this.getScrollTop=function(t){if(!t){if(t=x())return 16==t.length?-t[13]:-t[5];if(y.timerscroll&&y.timerscroll.bz)return y.timerscroll.bz.getNow()}return y.doc.translate.y},this.getScrollLeft=function(t){if(!t){if(t=x())return 16==t.length?-t[12]:-t[4];if(y.timerscroll&&y.timerscroll.bh)return y.timerscroll.bh.getNow()}return y.doc.translate.x},this.notifyScrollEvent=document.createEvent?function(t){var e=document.createEvent("UIEvents");e.initUIEvent("scroll",!1,!0,window,1),t.dispatchEvent(e)}:document.fireEvent?function(t){var e=document.createEventObject();t.fireEvent("onscroll"),e.cancelBubble=!0}:function(t,e){},z.hastranslate3d&&y.opt.enabletranslate3d?(this.setScrollTop=function(t,e){y.doc.translate.y=t,y.doc.translate.ty=-1*t+"px",y.doc.css(z.trstyle,"translate3d("+y.doc.translate.tx+","+y.doc.translate.ty+",0px)"),e||y.notifyScrollEvent(y.win[0])},this.setScrollLeft=function(t,e){y.doc.translate.x=t,y.doc.translate.tx=-1*t+"px",y.doc.css(z.trstyle,"translate3d("+y.doc.translate.tx+","+y.doc.translate.ty+",0px)"),e||y.notifyScrollEvent(y.win[0])}):(this.setScrollTop=function(t,e){y.doc.translate.y=t,y.doc.translate.ty=-1*t+"px",y.doc.css(z.trstyle,"translate("+y.doc.translate.tx+","+y.doc.translate.ty+")"),e||y.notifyScrollEvent(y.win[0])},this.setScrollLeft=function(t,e){y.doc.translate.x=t,y.doc.translate.tx=-1*t+"px",y.doc.css(z.trstyle,"translate("+y.doc.translate.tx+","+y.doc.translate.ty+")"),e||y.notifyScrollEvent(y.win[0])})}else this.getScrollTop=function(){return y.docscroll.scrollTop()},this.setScrollTop=function(t){return y.docscroll.scrollTop(t)},this.getScrollLeft=function(){return y.docscroll.scrollLeft()},this.setScrollLeft=function(t){return y.docscroll.scrollLeft(t)};this.getTarget=function(t){return t?t.target?t.target:t.srcElement?t.srcElement:!1:!1},this.hasParent=function(t,e){if(!t)return!1;for(var o=t.target||t.srcElement||t||!1;o&&o.id!=e;)o=o.parentNode||!1;return!1!==o};var T={thin:1,medium:3,thick:5};this.getOffset=function(){if(y.isfixed)return{top:parseFloat(y.win.css("top")),left:parseFloat(y.win.css("left"))};if(!y.viewport)return y.win.offset();var t=y.win.offset(),e=y.viewport.offset();return{top:t.top-e.top+y.viewport.scrollTop(),left:t.left-e.left+y.viewport.scrollLeft()}},this.updateScrollBar=function(t){if(y.ishwscroll)y.rail.css({height:y.win.innerHeight()}),y.railh&&y.railh.css({width:y.win.innerWidth()});else{var e=y.getOffset(),o=e.top,i=e.left,o=o+g(y.win,"border-top-width",!0);y.win.outerWidth(),y.win.innerWidth();var i=i+(y.rail.align?y.win.outerWidth()-g(y.win,"border-right-width")-y.rail.width:g(y.win,"border-left-width")),n=y.opt.railoffset;n&&(n.top&&(o+=n.top),y.rail.align&&n.left&&(i+=n.left)),y.locked||y.rail.css({top:o,left:i,height:t?t.h:y.win.innerHeight()}),y.zoom&&y.zoom.css({top:o+1,left:1==y.rail.align?i-20:i+y.rail.width+4}),y.railh&&!y.locked&&(o=e.top,i=e.left,t=y.railh.align?o+g(y.win,"border-top-width",!0)+y.win.innerHeight()-y.railh.height:o+g(y.win,"border-top-width",!0),i+=g(y.win,"border-left-width"),y.railh.css({top:t,left:i,width:y.railh.width}))}},this.doRailClick=function(t,e,o){var i;y.locked||(y.cancelEvent(t),e?(e=o?y.doScrollLeft:y.doScrollTop,i=o?(t.pageX-y.railh.offset().left-y.cursorwidth/2)*y.scrollratio.x:(t.pageY-y.rail.offset().top-y.cursorheight/2)*y.scrollratio.y,e(i)):(e=o?y.doScrollLeftBy:y.doScrollBy,i=o?y.scroll.x:y.scroll.y,t=o?t.pageX-y.railh.offset().left:t.pageY-y.rail.offset().top,o=o?y.view.w:y.view.h,e(i>=t?o:-o)))},y.hasanimationframe=l,y.hascancelanimationframe=c,y.hasanimationframe?y.hascancelanimationframe||(c=function(){y.cancelAnimationFrame=!0}):(l=function(t){return setTimeout(t,15-Math.floor(+new Date/1e3)%16)},c=clearInterval),this.init=function(){if(y.saved.css=[],z.isie7mobile)return!0;if(z.hasmstouch&&y.css(y.ispage?t("html"):y.win,{"-ms-touch-action":"none"}),y.zindex="auto",y.zindex=y.ispage||"auto"!=y.opt.zindex?y.opt.zindex:m()||"auto",!y.ispage&&"auto"!=y.zindex&&y.zindex>s&&(s=y.zindex),y.isie&&0==y.zindex&&"auto"==y.opt.zindex&&(y.zindex="auto"),!y.ispage||!z.cantouch&&!z.isieold&&!z.isie9mobile){var n=y.docscroll;y.ispage&&(n=y.haswrapper?y.win:y.doc),z.isie9mobile||y.css(n,{"overflow-y":"hidden"}),y.ispage&&z.isie7&&("BODY"==y.doc[0].nodeName?y.css(t("html"),{"overflow-y":"hidden"}):"HTML"==y.doc[0].nodeName&&y.css(t("body"),{"overflow-y":"hidden"})),z.isios&&!y.ispage&&!y.haswrapper&&y.css(t("body"),{"-webkit-overflow-scrolling":"touch"});var l=t(document.createElement("div"));l.css({position:"relative",top:0,"float":"right",width:y.opt.cursorwidth,height:"0px","background-color":y.opt.cursorcolor,border:y.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":y.opt.cursorborderradius,"-moz-border-radius":y.opt.cursorborderradius,"border-radius":y.opt.cursorborderradius}),l.hborder=parseFloat(l.outerHeight()-l.innerHeight()),y.cursor=l;var a=t(document.createElement("div"));a.attr("id",y.id),a.addClass("nicescroll-rails");var c,h,p,u=["left","right"];for(p in u)h=u[p],(c=y.opt.railpadding[h])?a.css("padding-"+h,c+"px"):y.opt.railpadding[h]=0;if(a.append(l),a.width=Math.max(parseFloat(y.opt.cursorwidth),l.outerWidth())+y.opt.railpadding.left+y.opt.railpadding.right,a.css({width:a.width+"px",zIndex:y.zindex,background:y.opt.background,cursor:"default"}),a.visibility=!0,a.scrollable=!0,a.align="left"==y.opt.railalign?0:1,y.rail=a,l=y.rail.drag=!1,y.opt.boxzoom&&!y.ispage&&!z.isieold&&(l=document.createElement("div"),y.bind(l,"click",y.doZoom),y.zoom=t(l),y.zoom.css({cursor:"pointer","z-index":y.zindex,backgroundImage:"url("+r+"zoomico.png)",height:18,width:18,backgroundPosition:"0px 0px"}),y.opt.dblclickzoom&&y.bind(y.win,"dblclick",y.doZoom),z.cantouch&&y.opt.gesturezoom&&(y.ongesturezoom=function(t){return 1.5t.scale&&y.doZoomOut(t),y.cancelEvent(t)},y.bind(y.win,"gestureend",y.ongesturezoom))),y.railh=!1,y.opt.horizrailenabled){y.css(n,{"overflow-x":"hidden"}),l=t(document.createElement("div")),l.css({position:"relative",top:0,height:y.opt.cursorwidth,width:"0px","background-color":y.opt.cursorcolor,border:y.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":y.opt.cursorborderradius,"-moz-border-radius":y.opt.cursorborderradius,"border-radius":y.opt.cursorborderradius}),l.wborder=parseFloat(l.outerWidth()-l.innerWidth()),y.cursorh=l;var g=t(document.createElement("div"));g.attr("id",y.id+"-hr"),g.addClass("nicescroll-rails"),g.height=Math.max(parseFloat(y.opt.cursorwidth),l.outerHeight()),g.css({height:g.height+"px",zIndex:y.zindex,background:y.opt.background}),g.append(l),g.visibility=!0,g.scrollable=!0,g.align="top"==y.opt.railvalign?0:1,y.railh=g,y.railh.drag=!1}if(y.ispage?(a.css({position:"fixed",top:"0px",height:"100%"}),a.align?a.css({right:"0px"}):a.css({left:"0px"}),y.body.append(a),y.railh&&(g.css({position:"fixed",left:"0px",width:"100%"}),g.align?g.css({bottom:"0px"}):g.css({top:"0px"}),y.body.append(g))):(y.ishwscroll?("static"==y.win.css("position")&&y.css(y.win,{position:"relative"}),n="HTML"==y.win[0].nodeName?y.body:y.win,y.zoom&&(y.zoom.css({position:"absolute",top:1,right:0,"margin-right":a.width+4}),n.append(y.zoom)),a.css({position:"absolute",top:0}),a.align?a.css({right:0}):a.css({left:0}),n.append(a),g&&(g.css({position:"absolute",left:0,bottom:0}),g.align?g.css({bottom:0}):g.css({top:0}),n.append(g))):(y.isfixed="fixed"==y.win.css("position"),n=y.isfixed?"fixed":"absolute",y.isfixed||(y.viewport=y.getViewport(y.win[0])),y.viewport&&(y.body=y.viewport,0==/relative|absolute/.test(y.viewport.css("position"))&&y.css(y.viewport,{position:"relative"})),a.css({position:n}),y.zoom&&y.zoom.css({position:n}),y.updateScrollBar(),y.body.append(a),y.zoom&&y.body.append(y.zoom),y.railh&&(g.css({position:n}),y.body.append(g))),z.isios&&y.css(y.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),z.isie&&y.opt.disableoutline&&y.win.attr("hideFocus","true"),z.iswebkit&&y.opt.disableoutline&&y.win.css({outline:"none"})),!1===y.opt.autohidemode?(y.autohidedom=!1,y.rail.css({opacity:y.opt.cursoropacitymax}),y.railh&&y.railh.css({opacity:y.opt.cursoropacitymax})):!0===y.opt.autohidemode?(y.autohidedom=t().add(y.rail),z.isie8&&(y.autohidedom=y.autohidedom.add(y.cursor)),y.railh&&(y.autohidedom=y.autohidedom.add(y.railh)),y.railh&&z.isie8&&(y.autohidedom=y.autohidedom.add(y.cursorh))):"scroll"==y.opt.autohidemode?(y.autohidedom=t().add(y.rail),y.railh&&(y.autohidedom=y.autohidedom.add(y.railh))):"cursor"==y.opt.autohidemode?(y.autohidedom=t().add(y.cursor),y.railh&&(y.autohidedom=y.autohidedom.add(y.cursorh))):"hidden"==y.opt.autohidemode&&(y.autohidedom=!1,y.hide(),y.locked=!1),z.isie9mobile)y.scrollmom=new f(y),y.onmangotouch=function(t){t=y.getScrollTop();var e=y.getScrollLeft();if(t==y.scrollmom.lastscrolly&&e==y.scrollmom.lastscrollx)return!0;var o=t-y.mangotouch.sy,i=e-y.mangotouch.sx;if(0!=Math.round(Math.sqrt(Math.pow(i,2)+Math.pow(o,2)))){var n=0>o?-1:1,s=0>i?-1:1,r=+new Date;y.mangotouch.lazy&&clearTimeout(y.mangotouch.lazy),802&&(y.mangotouch.lazy=setTimeout(function(){y.mangotouch.lazy=!1,y.mangotouch.dry=0,y.mangotouch.drx=0,y.mangotouch.tm=0,y.scrollmom.doMomentum(30)},100)))}},a=y.getScrollTop(),g=y.getScrollLeft(),y.mangotouch={sy:a,ly:a,dry:0,sx:g,lx:g,drx:0,lazy:!1,tm:0},y.bind(y.docscroll,"scroll",y.onmangotouch);else{if(z.cantouch||y.istouchcapable||y.opt.touchbehavior||z.hasmstouch){y.scrollmom=new f(y),y.ontouchstart=function(e){if(e.pointerType&&2!=e.pointerType)return!1;if(!y.locked){if(z.hasmstouch)for(var o=e.target?e.target:!1;o;){var i=t(o).getNiceScroll();if(00?"v":!1:y.rail.scrollable&&!y.railh.scrollable&&i>0?"h":!1,y.rail.drag.ck||(y.rail.drag.dl="f")}if(y.opt.touchbehavior&&y.isiframe&&z.isie&&(i=y.win.position(),y.rail.drag.x+=i.left,y.rail.drag.y+=i.top),y.hasmoving=!1,y.lastmouseup=!1,y.scrollmom.reset(e.clientX,e.clientY),!z.cantouch&&!this.istouchcapable&&!z.hasmstouch){if(!o||!/INPUT|SELECT|TEXTAREA/i.test(o.nodeName))return!y.ispage&&z.hasmousecapture&&o.setCapture(),y.cancelEvent(e);/SUBMIT|CANCEL|BUTTON/i.test(t(o).attr("type"))&&(pc={tg:o,click:!1},y.preventclick=pc)}}},y.ontouchend=function(t){return t.pointerType&&2!=t.pointerType?!1:y.rail.drag&&2==y.rail.drag.pt&&(y.scrollmom.doMomentum(),y.rail.drag=!1,y.hasmoving&&(y.hasmoving=!1,y.lastmouseup=!0,y.hideCursor(),z.hasmousecapture&&document.releaseCapture(),!z.cantouch))?y.cancelEvent(t):void 0};var w=y.opt.touchbehavior&&y.isiframe&&!z.hasmousecapture;y.ontouchmove=function(e,o){if(e.pointerType&&2!=e.pointerType)return!1;if(y.rail.drag&&2==y.rail.drag.pt){if(z.cantouch&&"undefined"==typeof e.original)return!0;if(y.hasmoving=!0,y.preventclick&&!y.preventclick.click&&(y.preventclick.click=y.preventclick.tg.onclick||!1,y.preventclick.tg.onclick=y.onpreventclick),e=t.extend({original:e},e),"changedTouches"in e&&(e.clientX=e.changedTouches[0].clientX,e.clientY=e.changedTouches[0].clientY),y.forcescreen){var i=e;e={original:e.original?e.original:e},e.clientX=i.screenX,e.clientY=i.screenY}if(i=ofy=0,w&&!o){var n=y.win.position(),i=-n.left;ofy=-n.top}var s=e.clientY+ofy,n=s-y.rail.drag.y,r=e.clientX+i,l=r-y.rail.drag.x,a=y.rail.drag.st-n;if(y.ishwscroll&&y.opt.bouncescroll?0>a?a=Math.round(a/2):a>y.page.maxh&&(a=y.page.maxh+Math.round((a-y.page.maxh)/2)):(0>a&&(s=a=0),a>y.page.maxh&&(a=y.page.maxh,s=0)),y.railh&&y.railh.scrollable){var c=y.rail.drag.sl-l;y.ishwscroll&&y.opt.bouncescroll?0>c?c=Math.round(c/2):c>y.page.maxw&&(c=y.page.maxw+Math.round((c-y.page.maxw)/2)):(0>c&&(r=c=0),c>y.page.maxw&&(c=y.page.maxw,r=0))}if(i=!1,y.rail.drag.dl)i=!0,"v"==y.rail.drag.dl?c=y.rail.drag.sl:"h"==y.rail.drag.dl&&(a=y.rail.drag.st);else{var n=Math.abs(n),l=Math.abs(l),d=y.opt.directionlockdeadzone;if("v"==y.rail.drag.ck){if(n>d&&.3*n>=l)return y.rail.drag=!1,!0;l>d&&(y.rail.drag.dl="f",t("body").scrollTop(t("body").scrollTop()))}else if("h"==y.rail.drag.ck){if(l>d&&n<=.3*az)return y.rail.drag=!1,!0;n>d&&(y.rail.drag.dl="f",t("body").scrollLeft(t("body").scrollLeft()))}}if(y.synched("touchmove",function(){y.rail.drag&&2==y.rail.drag.pt&&(y.prepareTransition&&y.prepareTransition(0),y.rail.scrollable&&y.setScrollTop(a),y.scrollmom.update(r,s),y.railh&&y.railh.scrollable?(y.setScrollLeft(c),y.showCursor(a,c)):y.showCursor(a),z.isie10&&document.selection.clear())}),z.ischrome&&y.istouchcapable&&(i=!1),i)return y.cancelEvent(e)}}}if(y.onmousedown=function(t,e){if(!y.rail.drag||1==y.rail.drag.pt){if(y.locked)return y.cancelEvent(t);y.cancelScroll(),y.rail.drag={x:t.clientX,y:t.clientY,sx:y.scroll.x,sy:y.scroll.y,pt:1,hr:!!e};var o=y.getTarget(t);return!y.ispage&&z.hasmousecapture&&o.setCapture(),y.isiframe&&!z.hasmousecapture&&(y.saved.csspointerevents=y.doc.css("pointer-events"),y.css(y.doc,{"pointer-events":"none"})),y.cancelEvent(t)}},y.onmouseup=function(t){return y.rail.drag&&(z.hasmousecapture&&document.releaseCapture(),y.isiframe&&!z.hasmousecapture&&y.doc.css("pointer-events",y.saved.csspointerevents),1==y.rail.drag.pt)?(y.rail.drag=!1,y.cancelEvent(t)):void 0},y.onmousemove=function(t){if(y.rail.drag&&1==y.rail.drag.pt){if(z.ischrome&&0==t.which)return y.onmouseup(t);if(y.cursorfreezed=!0,y.rail.drag.hr){y.scroll.x=y.rail.drag.sx+(t.clientX-y.rail.drag.x),0>y.scroll.x&&(y.scroll.x=0);var e=y.scrollvaluemaxw;y.scroll.x>e&&(y.scroll.x=e)}else y.scroll.y=y.rail.drag.sy+(t.clientY-y.rail.drag.y),0>y.scroll.y&&(y.scroll.y=0),e=y.scrollvaluemax,y.scroll.y>e&&(y.scroll.y=e);return y.synched("mousemove",function(){y.rail.drag&&1==y.rail.drag.pt&&(y.showCursor(),y.rail.drag.hr?y.doScrollLeft(Math.round(y.scroll.x*y.scrollratio.x),y.opt.cursordragspeed):y.doScrollTop(Math.round(y.scroll.y*y.scrollratio.y),y.opt.cursordragspeed))}),y.cancelEvent(t)}},z.cantouch||y.opt.touchbehavior)y.onpreventclick=function(t){return y.preventclick?(y.preventclick.tg.onclick=y.preventclick.click,y.preventclick=!1,y.cancelEvent(t)):void 0},y.bind(y.win,"mousedown",y.ontouchstart),y.onclick=z.isios?!1:function(t){return y.lastmouseup?(y.lastmouseup=!1,y.cancelEvent(t)):!0},y.opt.grabcursorenabled&&z.cursorgrabvalue&&(y.css(y.ispage?y.doc:y.win,{cursor:z.cursorgrabvalue}),y.css(y.rail,{cursor:z.cursorgrabvalue}));else{var v=function(t){if(y.selectiondrag){if(t){var e=y.win.outerHeight();t=t.pageY-y.selectiondrag.top,t>0&&e>t&&(t=0),t>=e&&(t-=e),y.selectiondrag.df=t}0!=y.selectiondrag.df&&(y.doScrollBy(2*-Math.floor(y.selectiondrag.df/6)),y.debounced("doselectionscroll",function(){v()},50))}};y.hasTextSelected="getSelection"in document?function(){return 0y.page.maxh?y.doScrollTop(y.page.maxh):(y.scroll.y=Math.round(y.getScrollTop()*(1/y.scrollratio.y)),y.scroll.x=Math.round(y.getScrollLeft()*(1/y.scrollratio.x)),y.cursoractive&&y.noticeCursor()),y.scroll.y&&0==y.getScrollTop()&&y.doScrollTo(Math.floor(y.scroll.y*y.scrollratio.y)),y)},this.resize=y.onResize,this.lazyResize=function(t){return t=isNaN(t)?30:t,y.delayed("resize",y.resize,t),y},this._bind=function(t,e,o,i){y.events.push({e:t,n:e,f:o,b:i,q:!1}),t.addEventListener?t.addEventListener(e,o,i||!1):t.attachEvent?t.attachEvent("on"+e,o):t["on"+e]=o},this.jqbind=function(e,o,i){y.events.push({e:e,n:o,f:i,q:!0}),t(e).bind(o,i)},this.bind=function(t,e,o,i){var n="jquery"in t?t[0]:t;"mousewheel"==e?"onwheel"in y.win?y._bind(n,"wheel",o,i||!1):(t="undefined"!=typeof document.onmousewheel?"mousewheel":"DOMMouseScroll",w(n,t,o,i||!1),"DOMMouseScroll"==t&&w(n,"MozMousePixelScroll",o,i||!1)):n.addEventListener?(z.cantouch&&/mouseup|mousedown|mousemove/.test(e)&&y._bind(n,"mousedown"==e?"touchstart":"mouseup"==e?"touchend":"touchmove",function(t){if(t.touches){if(2>t.touches.length){var e=t.touches.length?t.touches[0]:t;e.original=t,o.call(this,e)}}else t.changedTouches&&(e=t.changedTouches[0],e.original=t,o.call(this,e))},i||!1),y._bind(n,e,o,i||!1),z.cantouch&&"mouseup"==e&&y._bind(n,"touchcancel",o,i||!1)):y._bind(n,e,function(t){return(t=t||window.event||!1)&&t.srcElement&&(t.target=t.srcElement),"pageY"in t||(t.pageX=t.clientX+document.documentElement.scrollLeft,t.pageY=t.clientY+document.documentElement.scrollTop),!1===o.call(n,t)||!1===i?y.cancelEvent(t):!0})},this._unbind=function(t,e,o,i){t.removeEventListener?t.removeEventListener(e,o,i):t.detachEvent?t.detachEvent("on"+e,o):t["on"+e]=!1},this.unbindAll=function(){for(var t=0;t20?t:0},y.opt.smoothscroll?y.ishwscroll&&z.hastransition&&y.opt.usetransition?(this.prepareTransition=function(t,e){var o=e?t>20?t:0:y.getTransitionSpeed(t),i=o?z.prefixstyle+"transform "+o+"ms ease-out":"";return y.lasttransitionstyle&&y.lasttransitionstyle==i||(y.lasttransitionstyle=i,y.doc.css(z.transitionstyle,i)),o},this.doScrollLeft=function(t,e){var o=y.scrollrunning?y.newscrolly:y.getScrollTop();y.doScrollPos(t,o,e)},this.doScrollTop=function(t,e){var o=y.scrollrunning?y.newscrollx:y.getScrollLeft();y.doScrollPos(o,t,e)},this.doScrollPos=function(t,e,o){var i=y.getScrollTop(),n=y.getScrollLeft();return(0>(y.newscrolly-i)*(e-i)||0>(y.newscrollx-n)*(t-n))&&y.cancelScroll(),0==y.opt.bouncescroll&&(0>e?e=0:e>y.page.maxh&&(e=y.page.maxh),0>t?t=0:t>y.page.maxw&&(t=y.page.maxw)),y.scrollrunning&&t==y.newscrollx&&e==y.newscrolly?!1:(y.newscrolly=e,y.newscrollx=t,y.newscrollspeed=o||!1,y.timer?!1:void(y.timer=setTimeout(function(){var o,i,n=y.getScrollTop(),s=y.getScrollLeft();o=t-s,i=e-n,o=Math.round(Math.sqrt(Math.pow(o,2)+Math.pow(i,2))),o=y.newscrollspeed&&1=y.newscrollspeed&&(o*=y.newscrollspeed),y.prepareTransition(o,!0),y.timerscroll&&y.timerscroll.tm&&clearInterval(y.timerscroll.tm),o>0&&(!y.scrollrunning&&y.onscrollstart&&y.onscrollstart.call(y,{type:"scrollstart",current:{x:s,y:n},request:{x:t,y:e},end:{x:y.newscrollx,y:y.newscrolly},speed:o}),z.transitionend?y.scrollendtrapped||(y.scrollendtrapped=!0,y.bind(y.doc,z.transitionend,y.onScrollEnd,!1)):(y.scrollendtrapped&&clearTimeout(y.scrollendtrapped),y.scrollendtrapped=setTimeout(y.onScrollEnd,o)),y.timerscroll={bz:new BezierClass(n,y.newscrolly,o,0,0,.58,1),bh:new BezierClass(s,y.newscrollx,o,0,0,.58,1)},y.cursorfreezed||(y.timerscroll.tm=setInterval(function(){y.showCursor(y.getScrollTop(),y.getScrollLeft())},60))),y.synched("doScroll-set",function(){y.timer=0,y.scrollendtrapped&&(y.scrollrunning=!0),y.setScrollTop(y.newscrolly),y.setScrollLeft(y.newscrollx),y.scrollendtrapped||y.onScrollEnd()})},50)))},this.cancelScroll=function(){if(!y.scrollendtrapped)return!0;var t=y.getScrollTop(),e=y.getScrollLeft();return y.scrollrunning=!1,z.transitionend||clearTimeout(z.transitionend),y.scrollendtrapped=!1,y._unbind(y.doc,z.transitionend,y.onScrollEnd),y.prepareTransition(0),y.setScrollTop(t),y.railh&&y.setScrollLeft(e),y.timerscroll&&y.timerscroll.tm&&clearInterval(y.timerscroll.tm),y.timerscroll=!1,y.cursorfreezed=!1,y.showCursor(t,e),y},this.onScrollEnd=function(){y.scrollendtrapped&&y._unbind(y.doc,z.transitionend,y.onScrollEnd),y.scrollendtrapped=!1,y.prepareTransition(0),y.timerscroll&&y.timerscroll.tm&&clearInterval(y.timerscroll.tm),y.timerscroll=!1;var t=y.getScrollTop(),e=y.getScrollLeft();return y.setScrollTop(t),y.railh&&y.setScrollLeft(e),y.noticeCursor(!1,t,e),y.cursorfreezed=!1,0>t?t=0:t>y.page.maxh&&(t=y.page.maxh),0>e?e=0:e>y.page.maxw&&(e=y.page.maxw),t!=y.newscrolly||e!=y.newscrollx?y.doScrollPos(e,t,y.opt.snapbackspeed):(y.onscrollend&&y.scrollrunning&&y.onscrollend.call(y,{type:"scrollend",current:{x:e,y:t},end:{x:y.newscrollx,y:y.newscrolly}}),void(y.scrollrunning=!1))}):(this.doScrollLeft=function(t,e){var o=y.scrollrunning?y.newscrolly:y.getScrollTop();y.doScrollPos(t,o,e)},this.doScrollTop=function(t,e){var o=y.scrollrunning?y.newscrollx:y.getScrollLeft();y.doScrollPos(o,t,e)},this.doScrollPos=function(t,e,o){function i(){if(y.cancelAnimationFrame)return!0;if(y.scrollrunning=!0,h=1-h)return y.timer=l(i)||1;var t=0,e=sy=y.getScrollTop();if(y.dst.ay){var e=y.bzscroll?y.dst.py+y.bzscroll.getNow()*y.dst.ay:y.newscrolly,o=e-sy;(0>o&&e0&&e>y.newscrolly)&&(e=y.newscrolly),y.setScrollTop(e),e==y.newscrolly&&(t=1)}else t=1;var n=sx=y.getScrollLeft();y.dst.ax?(n=y.bzscroll?y.dst.px+y.bzscroll.getNow()*y.dst.ax:y.newscrollx,o=n-sx,(0>o&&n0&&n>y.newscrollx)&&(n=y.newscrollx),y.setScrollLeft(n),n==y.newscrollx&&(t+=1)):t+=1,2==t?(y.timer=0,y.cursorfreezed=!1,y.bzscroll=!1,y.scrollrunning=!1,0>e?e=0:e>y.page.maxh&&(e=y.page.maxh),0>n?n=0:n>y.page.maxw&&(n=y.page.maxw),n!=y.newscrollx||e!=y.newscrolly?y.doScrollPos(n,e):y.onscrollend&&y.onscrollend.call(y,{type:"scrollend",current:{x:sx,y:sy},end:{x:y.newscrollx,y:y.newscrolly}})):y.timer=l(i)||1}if(e="undefined"==typeof e||!1===e?y.getScrollTop(!0):e,y.timer&&y.newscrolly==e&&y.newscrollx==t)return!0;y.timer&&c(y.timer),y.timer=0;var n=y.getScrollTop(),s=y.getScrollLeft();(0>(y.newscrolly-n)*(e-n)||0>(y.newscrollx-s)*(t-s))&&y.cancelScroll(),y.newscrolly=e,y.newscrollx=t,y.bouncescroll&&y.rail.visibility||(0>y.newscrolly?y.newscrolly=0:y.newscrolly>y.page.maxh&&(y.newscrolly=y.page.maxh)),y.bouncescroll&&y.railh.visibility||(0>y.newscrollx?y.newscrollx=0:y.newscrollx>y.page.maxw&&(y.newscrollx=y.page.maxw)),y.dst={},y.dst.x=t-s,y.dst.y=e-n,y.dst.px=s,y.dst.py=n;var r=Math.round(Math.sqrt(Math.pow(y.dst.x,2)+Math.pow(y.dst.y,2)));y.dst.ax=y.dst.x/r,y.dst.ay=y.dst.y/r;var a=0,d=r;if(0==y.dst.x?(a=n,d=e,y.dst.ay=1,y.dst.py=0):0==y.dst.y&&(a=s,d=t,y.dst.ax=1,y.dst.px=0),r=y.getTransitionSpeed(r),o&&1>=o&&(r*=o),y.bzscroll=r>0?y.bzscroll?y.bzscroll.update(d,r):new BezierClass(a,d,r,0,1,0,1):!1,!y.timer){(n==y.page.maxh&&e>=y.page.maxh||s==y.page.maxw&&t>=y.page.maxw)&&y.checkContentSize();var h=1;y.cancelAnimationFrame=!1,y.timer=1,y.onscrollstart&&!y.scrollrunning&&y.onscrollstart.call(y,{type:"scrollstart",current:{x:s,y:n},request:{x:t,y:e},end:{x:y.newscrollx,y:y.newscrolly},speed:r}),i(),(n==y.page.maxh&&e>=n||s==y.page.maxw&&t>=s)&&y.checkContentSize(),y.noticeCursor()}},this.cancelScroll=function(){return y.timer&&c(y.timer),y.timer=0,y.bzscroll=!1,y.scrollrunning=!1,y}):(this.doScrollLeft=function(t,e){var o=y.getScrollTop();y.doScrollPos(t,o,e)},this.doScrollTop=function(t,e){var o=y.getScrollLeft();y.doScrollPos(o,t,e)},this.doScrollPos=function(t,e,o){var i=t>y.page.maxw?y.page.maxw:t;0>i&&(i=0);var n=e>y.page.maxh?y.page.maxh:e;0>n&&(n=0),y.synched("scroll",function(){y.setScrollTop(n),y.setScrollLeft(i)})},this.cancelScroll=function(){}),this.doScrollBy=function(t,e){var o=0,o=e?Math.floor((y.scroll.y-t)*y.scrollratio.y):(y.timer?y.newscrolly:y.getScrollTop(!0))-t;if(y.bouncescroll){var i=Math.round(y.view.h/2);-i>o?o=-i:o>y.page.maxh+i&&(o=y.page.maxh+i)}return y.cursorfreezed=!1,py=y.getScrollTop(!0),0>o&&0>=py?y.noticeCursor():o>y.page.maxh&&py>=y.page.maxh?(y.checkContentSize(),y.noticeCursor()):void y.doScrollTop(o)},this.doScrollLeftBy=function(t,e){var o=0,o=e?Math.floor((y.scroll.x-t)*y.scrollratio.x):(y.timer?y.newscrollx:y.getScrollLeft(!0))-t;if(y.bouncescroll){var i=Math.round(y.view.w/2);-i>o?o=-i:o>y.page.maxw+i&&(o=y.page.maxw+i)}return y.cursorfreezed=!1,px=y.getScrollLeft(!0),0>o&&0>=px||o>y.page.maxw&&px>=y.page.maxw?y.noticeCursor():void y.doScrollLeft(o)},this.doScrollTo=function(t,e){e&&Math.round(t*y.scrollratio.y),y.cursorfreezed=!1,y.doScrollTop(t)},this.checkContentSize=function(){var t=y.getContentSize();(t.h!=y.page.h||t.w!=y.page.w)&&y.resize(!1,t)},y.onscroll=function(t){y.rail.drag||y.cursorfreezed||y.synched("scroll",function(){y.scroll.y=Math.round(y.getScrollTop()*(1/y.scrollratio.y)),y.railh&&(y.scroll.x=Math.round(y.getScrollLeft()*(1/y.scrollratio.x))),y.noticeCursor()})},y.bind(y.docscroll,"scroll",y.onscroll),this.doZoomIn=function(e){if(!y.zoomactive){y.zoomactive=!0,y.zoomrestore={style:{}};var o,i="position top left zIndex backgroundColor marginTop marginBottom marginLeft marginRight".split(" "),n=y.win[0].style;for(o in i){var r=i[o];y.zoomrestore.style[r]="undefined"!=typeof n[r]?n[r]:""}return y.zoomrestore.style.width=y.win.css("width"),y.zoomrestore.style.height=y.win.css("height"),y.zoomrestore.padding={w:y.win.outerWidth()-y.win.width(),h:y.win.outerHeight()-y.win.height()},z.isios4&&(y.zoomrestore.scrollTop=t(window).scrollTop(),t(window).scrollTop(0)),y.win.css({position:z.isios4?"absolute":"fixed",top:0,left:0,"z-index":s+100,margin:"0px"}),i=y.win.css("backgroundColor"),(""==i||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(i))&&y.win.css("backgroundColor","#fff"),y.rail.css({"z-index":s+101}),y.zoom.css({"z-index":s+102}),y.zoom.css("backgroundPosition","0px -18px"),y.resizeZoom(),y.onzoomin&&y.onzoomin.call(y),y.cancelEvent(e)}},this.doZoomOut=function(e){return y.zoomactive?(y.zoomactive=!1,y.win.css("margin",""),y.win.css(y.zoomrestore.style),z.isios4&&t(window).scrollTop(y.zoomrestore.scrollTop),y.rail.css({"z-index":y.zindex}),y.zoom.css({"z-index":y.zindex}),y.zoomrestore=!1,y.zoom.css("backgroundPosition","0px 0px"),y.onResize(),y.onzoomout&&y.onzoomout.call(y),y.cancelEvent(e)):void 0},this.doZoom=function(t){return y.zoomactive?y.doZoomOut(t):y.doZoomIn(t)},this.resizeZoom=function(){if(y.zoomactive){var e=y.getScrollTop();y.win.css({width:t(window).width()-y.zoomrestore.padding.w+"px",height:t(window).height()-y.zoomrestore.padding.h+"px"}),y.onResize(),y.setScrollTop(Math.min(y.page.maxh,e))}},this.init(),t.nicescroll.push(this)},f=function(t){var e=this;this.nc=t,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(t,o){e.stop();var i=e.time();e.steptime=0,e.lasttime=i,e.speedx=0,e.speedy=0,e.lastx=t,e.lasty=o,e.lastscrollx=-1,e.lastscrolly=-1},this.update=function(t,o){var i=e.time();e.steptime=i-e.lasttime,e.lasttime=i;var i=o-e.lasty,n=t-e.lastx,s=e.nc.getScrollTop(),r=e.nc.getScrollLeft(),s=s+i,r=r+n;e.snapx=0>r||r>e.nc.page.maxw,e.snapy=0>s||s>e.nc.page.maxh,e.speedx=n,e.speedy=i,e.lastx=t,e.lasty=o},this.stop=function(){e.nc.unsynched("domomentum2d"),e.timer&&clearTimeout(e.timer),e.timer=0,e.lastscrollx=-1,e.lastscrolly=-1},this.doSnapy=function(t,o){var i=!1;0>o?(o=0,i=!0):o>e.nc.page.maxh&&(o=e.nc.page.maxh,i=!0),0>t?(t=0,i=!0):t>e.nc.page.maxw&&(t=e.nc.page.maxw,i=!0),i&&e.nc.doScrollPos(t,o,e.nc.opt.snapbackspeed)},this.doMomentum=function(t){var o=e.time(),i=t?o+t:e.lasttime;t=e.nc.getScrollLeft();var n=e.nc.getScrollTop(),s=e.nc.page.maxh,r=e.nc.page.maxw;if(e.speedx=r>0?Math.min(60,e.speedx):0,e.speedy=s>0?Math.min(60,e.speedy):0,i=i&&50>=o-i,(0>n||n>s||0>t||t>r)&&(i=!1),t=e.speedx&&i?e.speedx:!1,e.speedy&&i&&e.speedy||t){var l=Math.max(16,e.steptime);l>50&&(t=l/50,e.speedx*=t,e.speedy*=t,l=50),e.demulxy=0,e.lastscrollx=e.nc.getScrollLeft(),e.chkx=e.lastscrollx,e.lastscrolly=e.nc.getScrollTop(),e.chky=e.lastscrolly;var a=e.lastscrollx,c=e.lastscrolly,d=function(){var t=600a||a>r)&&(t=.1),e.speedy&&(c=Math.floor(e.lastscrolly-e.speedy*(1-e.demulxy)),e.lastscrolly=c,0>c||c>s)&&(t=.1),e.demulxy=Math.min(1,e.demulxy+t),e.nc.synched("domomentum2d",function(){e.speedx&&(e.nc.getScrollLeft()!=e.chkx&&e.stop(),e.chkx=a,e.nc.setScrollLeft(a)),e.speedy&&(e.nc.getScrollTop()!=e.chky&&e.stop(),e.chky=c,e.nc.setScrollTop(c)),e.timer||(e.nc.hideCursor(),e.doSnapy(a,c))}),1>e.demulxy?e.timer=setTimeout(d,l):(e.stop(),e.nc.hideCursor(),e.doSnapy(a,c))};d()}else e.doSnapy(e.nc.getScrollLeft(),e.nc.getScrollTop())}},g=t.fn.scrollTop;t.cssHooks.pageYOffset={get:function(e,o,i){return(o=t.data(e,"__nicescroll")||!1)&&o.ishwscroll?o.getScrollTop():g.call(e)},set:function(e,o){var i=t.data(e,"__nicescroll")||!1;return i&&i.ishwscroll?i.setScrollTop(parseInt(o)):g.call(e,o),this}},t.fn.scrollTop=function(e){if("undefined"==typeof e){var o=this[0]?t.data(this[0],"__nicescroll")||!1:!1;return o&&o.ishwscroll?o.getScrollTop():g.call(this)}return this.each(function(){var o=t.data(this,"__nicescroll")||!1;o&&o.ishwscroll?o.setScrollTop(parseInt(e)):g.call(t(this),e)})};var w=t.fn.scrollLeft;t.cssHooks.pageXOffset={get:function(e,o,i){return(o=t.data(e,"__nicescroll")||!1)&&o.ishwscroll?o.getScrollLeft():w.call(e)},set:function(e,o){var i=t.data(e,"__nicescroll")||!1;return i&&i.ishwscroll?i.setScrollLeft(parseInt(o)):w.call(e,o),this}},t.fn.scrollLeft=function(e){if("undefined"==typeof e){var o=this[0]?t.data(this[0],"__nicescroll")||!1:!1;return o&&o.ishwscroll?o.getScrollLeft():w.call(this)}return this.each(function(){var o=t.data(this,"__nicescroll")||!1;o&&o.ishwscroll?o.setScrollLeft(parseInt(e)):w.call(t(this),e)})};var v=function(e){var o=this;if(this.length=0,this.name="nicescrollarray",this.each=function(t){for(var e=0;e'),e.$elem.css("position","absolute")),e.zoomLock=1,e.scrollingLock=!1,e.changeBgSize=!1,e.currentZoomLevel=e.options.zoomLevel,e.nzOffset=e.$elem.offset(),e.widthRatio=e.largeWidth/e.currentZoomLevel/e.nzWidth,e.heightRatio=e.largeHeight/e.currentZoomLevel/e.nzHeight,"window"==e.options.zoomType&&(e.zoomWindowStyle="overflow: hidden;background-position: 0px 0px;text-align:center;background-color: "+String(e.options.zoomWindowBgColour)+";width: "+String(e.options.zoomWindowWidth)+"px;height: "+String(e.options.zoomWindowHeight)+"px;float: left;background-size: "+e.largeWidth/e.currentZoomLevel+"px "+e.largeHeight/e.currentZoomLevel+"px;display: none;z-index:100;border: "+String(e.options.borderSize)+"px solid "+e.options.borderColour+";background-repeat: no-repeat;position: absolute;"),"inner"==e.options.zoomType){var o=e.$elem.css("border-left-width");e.zoomWindowStyle="overflow: hidden;margin-left: "+String(o)+";margin-top: "+String(o)+";background-position: 0px 0px;width: "+String(e.nzWidth)+"px;height: "+String(e.nzHeight)+"px;float: left;display: none;cursor:"+e.options.cursor+";px solid "+e.options.borderColour+";background-repeat: no-repeat;position: absolute;"}"window"==e.options.zoomType&&(lensHeight=e.nzHeight'),t("body").append(e.zoomContainer),e.options.containLensZoom&&"lens"==e.options.zoomType&&e.zoomContainer.css("overflow","hidden"),"inner"!=e.options.zoomType&&(e.zoomLens=t("
 
").appendTo(e.zoomContainer).click(function(){e.$elem.trigger("click")}),e.options.tint&&(e.tintContainer=t("
").addClass("tintContainer"),e.zoomTint=t("
"),e.zoomLens.wrap(e.tintContainer),e.zoomTintcss=e.zoomLens.after(e.zoomTint),e.zoomTintImage=t('').appendTo(e.zoomLens).click(function(){e.$elem.trigger("click")}))),isNaN(e.options.zoomWindowPosition)?e.zoomWindow=t("
 
").appendTo("body").click(function(){e.$elem.trigger("click")}):e.zoomWindow=t("
 
").appendTo(e.zoomContainer).click(function(){e.$elem.trigger("click")}),e.zoomWindowContainer=t("
").addClass("zoomWindowContainer").css("width",e.options.zoomWindowWidth),e.zoomWindow.wrap(e.zoomWindowContainer),"lens"==e.options.zoomType&&e.zoomLens.css({backgroundImage:"url('"+e.imageSrc+"')"}),"window"==e.options.zoomType&&e.zoomWindow.css({backgroundImage:"url('"+e.imageSrc+"')"}),"inner"==e.options.zoomType&&e.zoomWindow.css({backgroundImage:"url('"+e.imageSrc+"')"}),e.$elem.bind("touchmove",function(t){t.preventDefault(),e.setPosition(t.originalEvent.touches[0]||t.originalEvent.changedTouches[0])}),e.zoomContainer.bind("touchmove",function(t){"inner"==e.options.zoomType&&e.showHideWindow("show"),t.preventDefault(),e.setPosition(t.originalEvent.touches[0]||t.originalEvent.changedTouches[0])}),e.zoomContainer.bind("touchend",function(t){e.showHideWindow("hide"),e.options.showLens&&e.showHideLens("hide"),e.options.tint&&"inner"!=e.options.zoomType&&e.showHideTint("hide")}),e.$elem.bind("touchend",function(t){e.showHideWindow("hide"),e.options.showLens&&e.showHideLens("hide"),e.options.tint&&"inner"!=e.options.zoomType&&e.showHideTint("hide")}),e.options.showLens&&(e.zoomLens.bind("touchmove",function(t){t.preventDefault(),e.setPosition(t.originalEvent.touches[0]||t.originalEvent.changedTouches[0])}),e.zoomLens.bind("touchend",function(t){e.showHideWindow("hide"),e.options.showLens&&e.showHideLens("hide"),e.options.tint&&"inner"!=e.options.zoomType&&e.showHideTint("hide")})),e.$elem.bind("mousemove",function(t){0==e.overWindow&&e.setElements("show"),(e.lastX!==t.clientX||e.lastY!==t.clientY)&&(e.setPosition(t),e.currentLoc=t),e.lastX=t.clientX,e.lastY=t.clientY}),e.zoomContainer.bind("mousemove",function(t){0==e.overWindow&&e.setElements("show"),(e.lastX!==t.clientX||e.lastY!==t.clientY)&&(e.setPosition(t),e.currentLoc=t),e.lastX=t.clientX,e.lastY=t.clientY}),"inner"!=e.options.zoomType&&e.zoomLens.bind("mousemove",function(t){(e.lastX!==t.clientX||e.lastY!==t.clientY)&&(e.setPosition(t),e.currentLoc=t),e.lastX=t.clientX,e.lastY=t.clientY}),e.options.tint&&"inner"!=e.options.zoomType&&e.zoomTint.bind("mousemove",function(t){(e.lastX!==t.clientX||e.lastY!==t.clientY)&&(e.setPosition(t),e.currentLoc=t),e.lastX=t.clientX,e.lastY=t.clientY}),"inner"==e.options.zoomType&&e.zoomWindow.bind("mousemove",function(t){(e.lastX!==t.clientX||e.lastY!==t.clientY)&&(e.setPosition(t),e.currentLoc=t),e.lastX=t.clientX,e.lastY=t.clientY}),e.zoomContainer.add(e.$elem).mouseenter(function(){0==e.overWindow&&e.setElements("show")}).mouseleave(function(){e.scrollLock||e.setElements("hide")}),"inner"!=e.options.zoomType&&e.zoomWindow.mouseenter(function(){e.overWindow=!0,e.setElements("hide")}).mouseleave(function(){e.overWindow=!1}),e.minZoomLevel=e.options.minZoomLevel?e.options.minZoomLevel:2*e.options.scrollZoomIncrement,e.options.scrollZoom&&e.zoomContainer.add(e.$elem).bind("mousewheel DOMMouseScroll MozMousePixelScroll",function(o){e.scrollLock=!0,clearTimeout(t.data(this,"timer")),t.data(this,"timer",setTimeout(function(){e.scrollLock=!1},250));var i=o.originalEvent.wheelDelta||-1*o.originalEvent.detail;return o.stopImmediatePropagation(),o.stopPropagation(),o.preventDefault(),i/120>0?e.currentZoomLevel>=e.minZoomLevel&&e.changeZoomLevel(e.currentZoomLevel-e.options.scrollZoomIncrement):e.options.maxZoomLevel?e.currentZoomLevel<=e.options.maxZoomLevel&&e.changeZoomLevel(parseFloat(e.currentZoomLevel)+e.options.scrollZoomIncrement):e.changeZoomLevel(parseFloat(e.currentZoomLevel)+e.options.scrollZoomIncrement),!1})},setElements:function(t){return this.options.zoomEnabled?("show"==t&&this.isWindowSet&&("inner"==this.options.zoomType&&this.showHideWindow("show"),"window"==this.options.zoomType&&this.showHideWindow("show"),this.options.showLens&&this.showHideLens("show"),this.options.tint&&"inner"!=this.options.zoomType&&this.showHideTint("show")),void("hide"==t&&("window"==this.options.zoomType&&this.showHideWindow("hide"),this.options.tint||this.showHideWindow("hide"),this.options.showLens&&this.showHideLens("hide"),this.options.tint&&this.showHideTint("hide")))):!1},setPosition:function(t){return this.options.zoomEnabled?(this.nzHeight=this.$elem.height(),this.nzWidth=this.$elem.width(),this.nzOffset=this.$elem.offset(),this.options.tint&&"inner"!=this.options.zoomType&&(this.zoomTint.css({top:0}),this.zoomTint.css({left:0})),this.options.responsive&&!this.options.scrollZoom&&this.options.showLens&&(lensHeight=this.nzHeightthis.nzHeight-this.zoomLens.height()/2-2*this.options.lensBorderSize,this.Eloppos=this.mouseLeft<0+this.zoomLens.width()/2,this.Eroppos=this.mouseLeft>this.nzWidth-this.zoomLens.width()/2-2*this.options.lensBorderSize),"inner"==this.options.zoomType&&(this.Etoppos=this.mouseTopthis.nzHeight-this.nzHeight/2/this.heightRatio,this.Eloppos=this.mouseLeft<0+this.nzWidth/2/this.widthRatio,this.Eroppos=this.mouseLeft>this.nzWidth-this.nzWidth/2/this.widthRatio-2*this.options.lensBorderSize),void(0>=this.mouseLeft||0>this.mouseTop||this.mouseLeft>this.nzWidth||this.mouseTop>this.nzHeight?this.setElements("hide"):(this.options.showLens&&(this.lensLeftPos=String(this.mouseLeft-this.zoomLens.width()/2),this.lensTopPos=String(this.mouseTop-this.zoomLens.height()/2)),this.Etoppos&&(this.lensTopPos=0),this.Eloppos&&(this.tintpos=this.lensLeftPos=this.windowLeftPos=0),"window"==this.options.zoomType&&(this.Eboppos&&(this.lensTopPos=Math.max(this.nzHeight-this.zoomLens.height()-2*this.options.lensBorderSize,0)),this.Eroppos&&(this.lensLeftPos=this.nzWidth-this.zoomLens.width()-2*this.options.lensBorderSize)),"inner"==this.options.zoomType&&(this.Eboppos&&(this.lensTopPos=Math.max(this.nzHeight-2*this.options.lensBorderSize,0)),this.Eroppos&&(this.lensLeftPos=this.nzWidth-this.nzWidth-2*this.options.lensBorderSize)),"lens"==this.options.zoomType&&(this.windowLeftPos=String(-1*((t.pageX-this.nzOffset.left)*this.widthRatio-this.zoomLens.width()/2)),this.windowTopPos=String(-1*((t.pageY-this.nzOffset.top)*this.heightRatio-this.zoomLens.height()/2)),this.zoomLens.css({backgroundPosition:this.windowLeftPos+"px "+this.windowTopPos+"px"}),this.changeBgSize&&(this.nzHeight>this.nzWidth?("lens"==this.options.zoomType&&this.zoomLens.css({"background-size":this.largeWidth/this.newvalueheight+"px "+this.largeHeight/this.newvalueheight+"px"}),this.zoomWindow.css({"background-size":this.largeWidth/this.newvalueheight+"px "+this.largeHeight/this.newvalueheight+"px"})):("lens"==this.options.zoomType&&this.zoomLens.css({"background-size":this.largeWidth/this.newvaluewidth+"px "+this.largeHeight/this.newvaluewidth+"px"}),this.zoomWindow.css({"background-size":this.largeWidth/this.newvaluewidth+"px "+this.largeHeight/this.newvaluewidth+"px"})),this.changeBgSize=!1),this.setWindowPostition(t)),this.options.tint&&"inner"!=this.options.zoomType&&this.setTintPosition(t),"window"==this.options.zoomType&&this.setWindowPostition(t),"inner"==this.options.zoomType&&this.setWindowPostition(t),this.options.showLens&&(this.fullwidth&&"lens"!=this.options.zoomType&&(this.lensLeftPos=0),this.zoomLens.css({left:this.lensLeftPos+"px",top:this.lensTopPos+"px"}))))):!1},showHideWindow:function(t){"show"!=t||this.isWindowActive||(this.options.zoomWindowFadeIn?this.zoomWindow.stop(!0,!0,!1).fadeIn(this.options.zoomWindowFadeIn):this.zoomWindow.show(),this.isWindowActive=!0),"hide"==t&&this.isWindowActive&&(this.options.zoomWindowFadeOut?this.zoomWindow.stop(!0,!0).fadeOut(this.options.zoomWindowFadeOut):this.zoomWindow.hide(),this.isWindowActive=!1)},showHideLens:function(t){"show"!=t||this.isLensActive||(this.options.lensFadeIn?this.zoomLens.stop(!0,!0,!1).fadeIn(this.options.lensFadeIn):this.zoomLens.show(), this.isLensActive=!0),"hide"==t&&this.isLensActive&&(this.options.lensFadeOut?this.zoomLens.stop(!0,!0).fadeOut(this.options.lensFadeOut):this.zoomLens.hide(),this.isLensActive=!1)},showHideTint:function(t){"show"!=t||this.isTintActive||(this.options.zoomTintFadeIn?this.zoomTint.css({opacity:this.options.tintOpacity}).animate().stop(!0,!0).fadeIn("slow"):(this.zoomTint.css({opacity:this.options.tintOpacity}).animate(),this.zoomTint.show()),this.isTintActive=!0),"hide"==t&&this.isTintActive&&(this.options.zoomTintFadeOut?this.zoomTint.stop(!0,!0).fadeOut(this.options.zoomTintFadeOut):this.zoomTint.hide(),this.isTintActive=!1)},setLensPostition:function(t){},setWindowPostition:function(e){var o=this;if(isNaN(o.options.zoomWindowPosition))o.externalContainer=t("#"+o.options.zoomWindowPosition),o.externalContainerWidth=o.externalContainer.width(),o.externalContainerHeight=o.externalContainer.height(),o.externalContainerOffset=o.externalContainer.offset(),o.windowOffsetTop=o.externalContainerOffset.top,o.windowOffsetLeft=o.externalContainerOffset.left;else switch(o.options.zoomWindowPosition){case 1:o.windowOffsetTop=o.options.zoomWindowOffety,o.windowOffsetLeft=+o.nzWidth;break;case 2:o.options.zoomWindowHeight>o.nzHeight&&(o.windowOffsetTop=-1*(o.options.zoomWindowHeight/2-o.nzHeight/2),o.windowOffsetLeft=o.nzWidth);break;case 3:o.windowOffsetTop=o.nzHeight-o.zoomWindow.height()-2*o.options.borderSize,o.windowOffsetLeft=o.nzWidth;break;case 4:o.windowOffsetTop=o.nzHeight,o.windowOffsetLeft=o.nzWidth;break;case 5:o.windowOffsetTop=o.nzHeight,o.windowOffsetLeft=o.nzWidth-o.zoomWindow.width()-2*o.options.borderSize;break;case 6:o.options.zoomWindowHeight>o.nzHeight&&(o.windowOffsetTop=o.nzHeight,o.windowOffsetLeft=-1*(o.options.zoomWindowWidth/2-o.nzWidth/2+2*o.options.borderSize));break;case 7:o.windowOffsetTop=o.nzHeight,o.windowOffsetLeft=0;break;case 8:o.windowOffsetTop=o.nzHeight,o.windowOffsetLeft=-1*(o.zoomWindow.width()+2*o.options.borderSize);break;case 9:o.windowOffsetTop=o.nzHeight-o.zoomWindow.height()-2*o.options.borderSize,o.windowOffsetLeft=-1*(o.zoomWindow.width()+2*o.options.borderSize);break;case 10:o.options.zoomWindowHeight>o.nzHeight&&(o.windowOffsetTop=-1*(o.options.zoomWindowHeight/2-o.nzHeight/2),o.windowOffsetLeft=-1*(o.zoomWindow.width()+2*o.options.borderSize));break;case 11:o.windowOffsetTop=o.options.zoomWindowOffety,o.windowOffsetLeft=-1*(o.zoomWindow.width()+2*o.options.borderSize);break;case 12:o.windowOffsetTop=-1*(o.zoomWindow.height()+2*o.options.borderSize),o.windowOffsetLeft=-1*(o.zoomWindow.width()+2*o.options.borderSize);break;case 13:o.windowOffsetTop=-1*(o.zoomWindow.height()+2*o.options.borderSize),o.windowOffsetLeft=0;break;case 14:o.options.zoomWindowHeight>o.nzHeight&&(o.windowOffsetTop=-1*(o.zoomWindow.height()+2*o.options.borderSize),o.windowOffsetLeft=-1*(o.options.zoomWindowWidth/2-o.nzWidth/2+2*o.options.borderSize));break;case 15:o.windowOffsetTop=-1*(o.zoomWindow.height()+2*o.options.borderSize),o.windowOffsetLeft=o.nzWidth-o.zoomWindow.width()-2*o.options.borderSize;break;case 16:o.windowOffsetTop=-1*(o.zoomWindow.height()+2*o.options.borderSize),o.windowOffsetLeft=o.nzWidth;break;default:o.windowOffsetTop=o.options.zoomWindowOffety,o.windowOffsetLeft=o.nzWidth}o.isWindowSet=!0,o.windowOffsetTop+=o.options.zoomWindowOffety,o.windowOffsetLeft+=o.options.zoomWindowOffetx,o.zoomWindow.css({top:o.windowOffsetTop}),o.zoomWindow.css({left:o.windowOffsetLeft}),"inner"==o.options.zoomType&&(o.zoomWindow.css({top:0}),o.zoomWindow.css({left:0})),o.windowLeftPos=String(-1*((e.pageX-o.nzOffset.left)*o.widthRatio-o.zoomWindow.width()/2)),o.windowTopPos=String(-1*((e.pageY-o.nzOffset.top)*o.heightRatio-o.zoomWindow.height()/2)),o.Etoppos&&(o.windowTopPos=0),o.Eloppos&&(o.windowLeftPos=0),o.Eboppos&&(o.windowTopPos=-1*(o.largeHeight/o.currentZoomLevel-o.zoomWindow.height())),o.Eroppos&&(o.windowLeftPos=-1*(o.largeWidth/o.currentZoomLevel-o.zoomWindow.width())),o.fullheight&&(o.windowTopPos=0),o.fullwidth&&(o.windowLeftPos=0),("window"==o.options.zoomType||"inner"==o.options.zoomType)&&(1==o.zoomLock&&(1>=o.widthRatio&&(o.windowLeftPos=0),1>=o.heightRatio&&(o.windowTopPos=0)),o.largeHeighto.nzWidth?("lens"==o.options.zoomType&&o.zoomLens.css({"background-size":o.largeWidth/o.newvalueheight+"px "+o.largeHeight/o.newvalueheight+"px"}),o.zoomWindow.css({"background-size":o.largeWidth/o.newvalueheight+"px "+o.largeHeight/o.newvalueheight+"px"})):("lens"!=o.options.zoomType&&o.zoomLens.css({"background-size":o.largeWidth/o.newvaluewidth+"px "+o.largeHeight/o.newvalueheight+"px"}),o.zoomWindow.css({"background-size":o.largeWidth/o.newvaluewidth+"px "+o.largeHeight/o.newvaluewidth+"px"})),o.changeBgSize=!1),o.zoomWindow.css({backgroundPosition:o.windowLeftPos+"px "+o.windowTopPos+"px"}),o.scrollingLock=!1,o.loop=!1):(o.changeBgSize&&(o.nzHeight>o.nzWidth?("lens"==o.options.zoomType&&o.zoomLens.css({"background-size":o.largeWidth/o.newvalueheight+"px "+o.largeHeight/o.newvalueheight+"px"}),o.zoomWindow.css({"background-size":o.largeWidth/o.newvalueheight+"px "+o.largeHeight/o.newvalueheight+"px"})):("lens"!=o.options.zoomType&&o.zoomLens.css({"background-size":o.largeWidth/o.newvaluewidth+"px "+o.largeHeight/o.newvaluewidth+"px"}),o.zoomWindow.css({"background-size":o.largeWidth/o.newvaluewidth+"px "+o.largeHeight/o.newvaluewidth+"px"})),o.changeBgSize=!1),o.zoomWindow.css({backgroundPosition:o.xp+"px "+o.yp+"px"}))},16))):(o.changeBgSize&&(o.nzHeight>o.nzWidth?("lens"==o.options.zoomType&&o.zoomLens.css({"background-size":o.largeWidth/o.newvalueheight+"px "+o.largeHeight/o.newvalueheight+"px"}),o.zoomWindow.css({"background-size":o.largeWidth/o.newvalueheight+"px "+o.largeHeight/o.newvalueheight+"px"})):("lens"==o.options.zoomType&&o.zoomLens.css({"background-size":o.largeWidth/o.newvaluewidth+"px "+o.largeHeight/o.newvaluewidth+"px"}),o.largeHeight/o.newvaluewidth
'),i.$elem.after(i.spinner)),i.options.onImageSwap(i.$elem),n.onload=function(){i.largeWidth=n.width,i.largeHeight=n.height,i.zoomImage=o,i.zoomWindow.css({"background-size":i.largeWidth+"px "+i.largeHeight+"px"}),i.zoomWindow.css({"background-size":i.largeWidth+"px "+i.largeHeight+"px"}),i.swapAction(e,o)},n.src=o},swapAction:function(e,o){var i=this,n=new Image;if(n.onload=function(){i.nzHeight=n.height,i.nzWidth=n.width,i.options.onImageSwapComplete(i.$elem),i.doneCallback()},n.src=e,i.currentZoomLevel=i.options.zoomLevel,i.options.maxZoomLevel=!1,"lens"==i.options.zoomType&&i.zoomLens.css({backgroundImage:"url('"+o+"')"}),"window"==i.options.zoomType&&i.zoomWindow.css({backgroundImage:"url('"+o+"')"}),"inner"==i.options.zoomType&&i.zoomWindow.css({backgroundImage:"url('"+o+"')"}),i.currentImage=o,i.options.imageCrossfade){var s=i.$elem,r=s.clone();i.$elem.attr("src",e),i.$elem.after(r),r.stop(!0).fadeOut(i.options.imageCrossfade,function(){t(this).remove()}),i.$elem.width("auto").removeAttr("width"),i.$elem.height("auto").removeAttr("height"),s.fadeIn(i.options.imageCrossfade),i.options.tint&&"inner"!=i.options.zoomType&&(s=i.zoomTintImage,r=s.clone(),i.zoomTintImage.attr("src",o),i.zoomTintImage.after(r),r.stop(!0).fadeOut(i.options.imageCrossfade,function(){t(this).remove()}),s.fadeIn(i.options.imageCrossfade),i.zoomTint.css({height:i.$elem.height()}),i.zoomTint.css({width:i.$elem.width()})),i.zoomContainer.css("height",i.$elem.height()),i.zoomContainer.css("width",i.$elem.width()),"inner"!=i.options.zoomType||i.options.constrainType||(i.zoomWrap.parent().css("height",i.$elem.height()),i.zoomWrap.parent().css("width",i.$elem.width()),i.zoomWindow.css("height",i.$elem.height()),i.zoomWindow.css("width",i.$elem.width()))}else i.$elem.attr("src",e),i.options.tint&&(i.zoomTintImage.attr("src",o),i.zoomTintImage.attr("height",i.$elem.height()),i.zoomTintImage.css({height:i.$elem.height()}),i.zoomTint.css({height:i.$elem.height()})),i.zoomContainer.css("height",i.$elem.height()),i.zoomContainer.css("width",i.$elem.width());i.options.imageCrossfade&&(i.zoomWrap.css("height",i.$elem.height()),i.zoomWrap.css("width",i.$elem.width())),i.options.constrainType&&("height"==i.options.constrainType&&(i.zoomContainer.css("height",i.options.constrainSize),i.zoomContainer.css("width","auto"),i.options.imageCrossfade?(i.zoomWrap.css("height",i.options.constrainSize),i.zoomWrap.css("width","auto"),i.constwidth=i.zoomWrap.width()):(i.$elem.css("height",i.options.constrainSize),i.$elem.css("width","auto"),i.constwidth=i.$elem.width()),"inner"==i.options.zoomType&&(i.zoomWrap.parent().css("height",i.options.constrainSize),i.zoomWrap.parent().css("width",i.constwidth),i.zoomWindow.css("height",i.options.constrainSize),i.zoomWindow.css("width",i.constwidth)),i.options.tint&&(i.tintContainer.css("height",i.options.constrainSize),i.tintContainer.css("width",i.constwidth),i.zoomTint.css("height",i.options.constrainSize),i.zoomTint.css("width",i.constwidth),i.zoomTintImage.css("height",i.options.constrainSize),i.zoomTintImage.css("width",i.constwidth))),"width"==i.options.constrainType&&(i.zoomContainer.css("height","auto"),i.zoomContainer.css("width",i.options.constrainSize),i.options.imageCrossfade?(i.zoomWrap.css("height","auto"),i.zoomWrap.css("width",i.options.constrainSize),i.constheight=i.zoomWrap.height()):(i.$elem.css("height","auto"),i.$elem.css("width",i.options.constrainSize),i.constheight=i.$elem.height()),"inner"==i.options.zoomType&&(i.zoomWrap.parent().css("height",i.constheight),i.zoomWrap.parent().css("width",i.options.constrainSize),i.zoomWindow.css("height",i.constheight),i.zoomWindow.css("width",i.options.constrainSize)),i.options.tint&&(i.tintContainer.css("height",i.constheight),i.tintContainer.css("width",i.options.constrainSize),i.zoomTint.css("height",i.constheight),i.zoomTint.css("width",i.options.constrainSize),i.zoomTintImage.css("height",i.constheight),i.zoomTintImage.css("width",i.options.constrainSize))))},doneCallback:function(){this.options.loadingIcon&&this.spinner.hide(),this.nzOffset=this.$elem.offset(),this.nzWidth=this.$elem.width(),this.nzHeight=this.$elem.height(),this.currentZoomLevel=this.options.zoomLevel,this.widthRatio=this.largeWidth/this.nzWidth,this.heightRatio=this.largeHeight/this.nzHeight,"window"==this.options.zoomType&&(lensHeight=this.nzHeightmaxheightnewvalue&&(newvalue=maxheightnewvalue),newvalue>maxwidthtnewvalue&&(newvalue=maxwidthtnewvalue),maxheightnewvalue<=newvalue?(this.heightRatio=this.largeHeight/newvalue/this.nzHeight,this.newvalueheight=newvalue>maxheightnewvalue?maxheightnewvalue:newvalue,this.fullheight=!0):(this.heightRatio=this.largeHeight/newvalue/this.nzHeight,this.newvalueheight=newvalue>maxheightnewvalue?maxheightnewvalue:newvalue,this.fullheight=!1),maxwidthtnewvalue<=newvalue?(this.widthRatio=this.largeWidth/newvalue/this.nzWidth,this.newvaluewidth=newvalue>maxwidthtnewvalue?maxwidthtnewvalue:newvalue,this.fullwidth=!0):(this.widthRatio=this.largeWidth/newvalue/this.nzWidth,this.newvaluewidth=newvalue,this.fullwidth=!1)),scrcontinue=!1,"inner"==this.options.zoomType&&(this.nzWidth>this.nzHeight&&(this.newvaluewidth<=maxwidthtnewvalue?scrcontinue=!0:(scrcontinue=!1,this.fullwidth=this.fullheight=!0)),this.nzHeight>this.nzWidth&&(this.newvaluewidth<=maxwidthtnewvalue?scrcontinue=!0:(scrcontinue=!1,this.fullwidth=this.fullheight=!0))),"inner"!=this.options.zoomType&&(scrcontinue=!0),scrcontinue&&(this.zoomLock=0,this.changeZoom=!0,this.options.zoomWindowHeight/this.heightRatio<=this.nzHeight&&(this.currentZoomLevel=this.newvalueheight,"lens"!=this.options.zoomType&&"inner"!=this.options.zoomType&&(this.changeBgSize=!0,this.zoomLens.css({height:String(this.options.zoomWindowHeight/this.heightRatio)+"px"})),"lens"==this.options.zoomType||"inner"==this.options.zoomType)&&(this.changeBgSize=!0),this.options.zoomWindowWidth/this.widthRatio<=this.nzWidth&&("inner"!=this.options.zoomType&&this.newvaluewidth>this.newvalueheight&&(this.currentZoomLevel=this.newvaluewidth),"lens"!=this.options.zoomType&&"inner"!=this.options.zoomType&&(this.changeBgSize=!0,this.zoomLens.css({width:String(this.options.zoomWindowWidth/this.widthRatio)+"px"})),"lens"==this.options.zoomType||"inner"==this.options.zoomType)&&(this.changeBgSize=!0),"inner"==this.options.zoomType&&(this.changeBgSize=!0,this.nzWidth>this.nzHeight&&(this.currentZoomLevel=this.newvaluewidth),this.nzHeight>this.nzWidth&&(this.currentZoomLevel=this.newvaluewidth))),this.setPosition(this.currentLoc)},closeAll:function(){self.zoomWindow&&self.zoomWindow.hide(),self.zoomLens&&self.zoomLens.hide(),self.zoomTint&&self.zoomTint.hide()},changeState:function(t){"enable"==t&&(this.options.zoomEnabled=!0),"disable"==t&&(this.options.zoomEnabled=!1)}};t.fn.elevateZoom=function(e){return this.each(function(){var o=Object.create(n);o.init(e,this),t.data(this,"elevateZoom",o)})},t.fn.elevateZoom.options={zoomActivation:"hover",zoomEnabled:!0,preloading:1,zoomLevel:1,scrollZoom:!1,scrollZoomIncrement:.1,minZoomLevel:!1,maxZoomLevel:!1,easing:!1,easingAmount:12,lensSize:200,zoomWindowWidth:400,zoomWindowHeight:400,zoomWindowOffetx:0,zoomWindowOffety:0,zoomWindowPosition:1,zoomWindowBgColour:"#fff",lensFadeIn:!1,lensFadeOut:!1,debug:!1,zoomWindowFadeIn:!1,zoomWindowFadeOut:!1,zoomWindowAlwaysShow:!1,zoomTintFadeIn:!1,zoomTintFadeOut:!1,borderSize:4,showLens:!0,borderColour:"#888",lensBorderSize:1,lensBorderColour:"#000",lensShape:"square",zoomType:"window",containLensZoom:!1,lensColour:"white",lensOpacity:.4,lenszoom:!1,tint:!1,tintColour:"#333",tintOpacity:.4,gallery:!1,galleryActiveClass:"zoomGalleryActive",imageCrossfade:!1,constrainType:!1,constrainSize:!1,loadingIcon:!1,cursor:"default",responsive:!0,onComplete:t.noop,onZoomedImageLoaded:function(){},onImageSwap:t.noop,onImageSwapComplete:t.noop}}(jQuery,window,document),function(t){function e(){var t=location.href;return hashtag=-1!==t.indexOf("#prettyPhoto")?decodeURI(t.substring(t.indexOf("#prettyPhoto")+1,t.length)):!1,hashtag}function o(){"undefined"!=typeof theRel&&(location.hash=theRel+"/"+rel_index+"/")}function i(){-1!==location.href.indexOf("#prettyPhoto")&&(location.hash="prettyPhoto")}function n(t,e){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var o="[\\?&]"+t+"=([^&#]*)",i=new RegExp(o),n=i.exec(e);return null==n?"":n[1]}t.prettyPhoto={version:"3.1.5"},t.fn.prettyPhoto=function(s){function r(){t(".pp_loaderIcon").hide(),projectedTop=scroll_pos.scrollTop+(_/2-w.containerHeight/2),projectedTop<0&&(projectedTop=0),$ppt.fadeTo(settings.animation_speed,1),$pp_pic_holder.find(".pp_content").animate({height:w.contentHeight,width:w.contentWidth},settings.animation_speed),$pp_pic_holder.animate({top:projectedTop,left:C/2-w.containerWidth/2<0?0:C/2-w.containerWidth/2,width:w.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(w.height).width(w.width),$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed),isSet&&"image"==h(pp_images[set_position])?$pp_pic_holder.find(".pp_hoverContainer").show():$pp_pic_holder.find(".pp_hoverContainer").hide(),settings.allow_expand&&(w.resized?t("a.pp_expand,a.pp_contract").show():t("a.pp_expand").hide()),!settings.autoplay_slideshow||T||v||t.prettyPhoto.startSlideshow(),settings.changepicturecallback(),v=!0}),f(),s.ajaxcallback()}function l(e){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden"),$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){t(".pp_loaderIcon").show(),e()})}function a(e){e>1?t(".pp_nav").show():t(".pp_nav").hide()}function c(t,e){if(resized=!1,d(t,e),imageWidth=t,imageHeight=e,(x>C||z>_)&&doresize&&settings.allow_resize&&!S){for(resized=!0,fitting=!1;!fitting;)x>C?(imageWidth=C-200,imageHeight=e/t*imageWidth):z>_?(imageHeight=_-200,imageWidth=t/e*imageHeight):fitting=!0,z=imageHeight,x=imageWidth;(x>C||z>_)&&c(x,z),d(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(z),containerWidth:Math.floor(x)+2*settings.horizontal_padding,contentHeight:Math.floor(y),contentWidth:Math.floor(b),resized:resized}}function d(e,o){e=parseFloat(e),o=parseFloat(o),$pp_details=$pp_pic_holder.find(".pp_details"),$pp_details.width(e),detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom")),$pp_details=$pp_details.clone().addClass(settings.theme).width(e).appendTo(t("body")).css({position:"absolute",top:-1e4}),detailsHeight+=$pp_details.height(),detailsHeight=detailsHeight<=34?36:detailsHeight,$pp_details.remove(),$pp_title=$pp_pic_holder.find(".ppt"),$pp_title.width(e),titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom")),$pp_title=$pp_title.clone().appendTo(t("body")).css({position:"absolute",top:-1e4}),titleHeight+=$pp_title.height(),$pp_title.remove(),y=o+detailsHeight,b=e,z=y+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height(),x=e}function h(t){return t.match(/youtube\.com\/watch/i)||t.match(/youtu\.be/i)?"youtube":t.match(/vimeo\.com/i)?"vimeo":t.match(/\b.mov\b/i)?"quicktime":t.match(/\b.swf\b/i)?"flash":t.match(/\biframe=true\b/i)?"iframe":t.match(/\bajax=true\b/i)?"ajax":t.match(/\bcustom=true\b/i)?"custom":"#"==t.substr(0,1)?"inline":"image"}function p(){if(doresize&&"undefined"!=typeof $pp_pic_holder){if(scroll_pos=u(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width(),projectedTop=_/2+scroll_pos.scrollTop-contentHeight/2,projectedTop<0&&(projectedTop=0),contentHeight>_)return;$pp_pic_holder.css({top:projectedTop,left:C/2+scroll_pos.scrollLeft-contentwidth/2})}}function u(){return self.pageYOffset?{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}:document.documentElement&&document.documentElement.scrollTop?{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}:document.body?{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}:void 0}function m(){_=t(window).height(),C=t(window).width(),"undefined"!=typeof $pp_overlay&&$pp_overlay.height(t(document).height()).width(C)}function f(){isSet&&settings.overlay_gallery&&"image"==h(pp_images[set_position])?(itemWidth=57,navWidth="facebook"==settings.theme||"pp_default"==settings.theme?50:30,itemsPerPage=Math.floor((w.containerWidth-100-navWidth)/itemWidth),itemsPerPage=itemsPerPage";toInject=settings.gallery_markup.replace(/{gallery}/g,toInject),$pp_pic_holder.find("#pp_full_res").after(toInject),$pp_gallery=t(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li"),$pp_gallery.find(".pp_arrow_next").click(function(){return t.prettyPhoto.changeGalleryPage("next"),t.prettyPhoto.stopSlideshow(),!1}),$pp_gallery.find(".pp_arrow_previous").click(function(){return t.prettyPhoto.changeGalleryPage("previous"),t.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()}),itemWidth=57,$pp_gallery_li.each(function(e){t(this).find("a").click(function(){return t.prettyPhoto.changePage(e),t.prettyPhoto.stopSlideshow(),!1})})}settings.slideshow&&($pp_pic_holder.find(".pp_nav").prepend('Play'),$pp_pic_holder.find(".pp_nav .pp_play").click(function(){return t.prettyPhoto.startSlideshow(),!1})),$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme),$pp_overlay.css({opacity:0,height:t(document).height(),width:t(window).width()}).bind("click",function(){settings.modal||t.prettyPhoto.close()}),t("a.pp_close").bind("click",function(){return t.prettyPhoto.close(),!1}),settings.allow_expand&&t("a.pp_expand").bind("click",function(e){return t(this).hasClass("pp_expand")?(t(this).removeClass("pp_expand").addClass("pp_contract"),doresize=!1):(t(this).removeClass("pp_contract").addClass("pp_expand"),doresize=!0),l(function(){t.prettyPhoto.open()}),!1}),$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){return t.prettyPhoto.changePage("previous"),t.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){return t.prettyPhoto.changePage("next"),t.prettyPhoto.stopSlideshow(),!1}),p()}s=jQuery.extend({hook:"data-gal",animation_speed:"fast",ajaxcallback:function(){},slideshow:5e3,autoplay_slideshow:!1,opacity:.8,show_title:!0,allow_resize:!0,allow_expand:!0,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,deeplinking:!0,overlay_gallery:!0,overlay_gallery_max:30,keyboard_shortcuts:!0,changepicturecallback:function(){},callback:function(){},ie6_fallback:!0,markup:'
 
',gallery_markup:'',image_markup:'',flash_markup:'',quicktime_markup:'',iframe_markup:'',inline_markup:'
{content}
',custom_markup:"",social_tools:''},s);var w,v,y,b,z,x,T,k=this,S=!1,_=t(window).height(),C=t(window).width();return doresize=!0,scroll_pos=u(),t(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){p(),m()}),s.keyboard_shortcuts&&t(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(e){if("undefined"!=typeof $pp_pic_holder&&$pp_pic_holder.is(":visible"))switch(e.keyCode){case 37:t.prettyPhoto.changePage("previous"),e.preventDefault();break;case 39:t.prettyPhoto.changePage("next"),e.preventDefault();break;case 27:settings.modal||t.prettyPhoto.close(),e.preventDefault()}}),t.prettyPhoto.initialize=function(){return settings=s,"pp_default"==settings.theme&&(settings.horizontal_padding=16),theRel=t(this).attr(settings.hook),galleryRegExp=/\[(?:.*)\]/,isSet=galleryRegExp.exec(theRel)?!0:!1,pp_images=isSet?jQuery.map(k,function(e,o){return-1!=t(e).attr(settings.hook).indexOf(theRel)?t(e).attr("href"):void 0}):t.makeArray(t(this).attr("href")),pp_titles=isSet?jQuery.map(k,function(e,o){return-1!=t(e).attr(settings.hook).indexOf(theRel)?t(e).find("img").attr("alt")?t(e).find("img").attr("alt"):"":void 0}):t.makeArray(t(this).find("img").attr("alt")),pp_descriptions=isSet?jQuery.map(k,function(e,o){return-1!=t(e).attr(settings.hook).indexOf(theRel)?t(e).attr("title")?t(e).attr("title"):"":void 0}):t.makeArray(t(this).attr("title")),pp_images.length>settings.overlay_gallery_max&&(settings.overlay_gallery=!1),set_position=jQuery.inArray(t(this).attr("href"),pp_images),rel_index=isSet?set_position:t("a["+settings.hook+"^='"+theRel+"']").index(t(this)),g(this),settings.allow_resize&&t(window).bind("scroll.prettyphoto",function(){p()}),t.prettyPhoto.open(),!1},t.prettyPhoto.open=function(e){return"undefined"==typeof settings&&(settings=s,pp_images=t.makeArray(arguments[0]),pp_titles=arguments[1]?t.makeArray(arguments[1]):t.makeArray(""),pp_descriptions=arguments[2]?t.makeArray(arguments[2]):t.makeArray(""),isSet=pp_images.length>1?!0:!1,set_position=arguments[3]?arguments[3]:0,g(e.target)),settings.hideflash&&t("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden"),a(t(pp_images).size()),t(".pp_loaderIcon").show(),settings.deeplinking&&o(),settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href)),$pp_pic_holder.find(".pp_social").html(facebook_like_link)),$ppt.is(":hidden")&&$ppt.css("opacity",0).show(),$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity),$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+t(pp_images).size()), "undefined"!=typeof pp_descriptions[set_position]&&""!=pp_descriptions[set_position]?$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])):$pp_pic_holder.find(".pp_description").hide(),movie_width=parseFloat(n("width",pp_images[set_position]))?n("width",pp_images[set_position]):settings.default_width.toString(),movie_height=parseFloat(n("height",pp_images[set_position]))?n("height",pp_images[set_position]):settings.default_height.toString(),S=!1,-1!=movie_height.indexOf("%")&&(movie_height=parseFloat(t(window).height()*parseFloat(movie_height)/100-150),S=!0),-1!=movie_width.indexOf("%")&&(movie_width=parseFloat(t(window).width()*parseFloat(movie_width)/100-150),S=!0),$pp_pic_holder.fadeIn(function(){switch(settings.show_title&&""!=pp_titles[set_position]&&"undefined"!=typeof pp_titles[set_position]?$ppt.html(unescape(pp_titles[set_position])):$ppt.html(" "),imgPreloader="",skipInjection=!1,h(pp_images[set_position])){case"image":imgPreloader=new Image,nextImage=new Image,isSet&&set_position0&&(movie_id=movie_id.substr(0,movie_id.indexOf("?"))),movie_id.indexOf("&")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("&")))),movie="http://www.youtube.com/embed/"+movie_id,n("rel",pp_images[set_position])?movie+="?rel="+n("rel",pp_images[set_position]):movie+="?rel=1",settings.autoplay&&(movie+="&autoplay=1"),toInject=settings.iframe_markup.replace(/{width}/g,w.width).replace(/{height}/g,w.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":w=c(movie_width,movie_height),movie_id=pp_images[set_position];var e=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/,o=movie_id.match(e);movie="http://player.vimeo.com/video/"+o[3]+"?title=0&byline=0&portrait=0",settings.autoplay&&(movie+="&autoplay=1;"),vimeo_width=w.width+"/embed/?moog_width="+w.width,toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,w.height).replace(/{path}/g,movie);break;case"quicktime":w=c(movie_width,movie_height),w.height+=15,w.contentHeight+=15,w.containerHeight+=15,toInject=settings.quicktime_markup.replace(/{width}/g,w.width).replace(/{height}/g,w.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":w=c(movie_width,movie_height),flash_vars=pp_images[set_position],flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length),filename=pp_images[set_position],filename=filename.substring(0,filename.indexOf("?")),toInject=settings.flash_markup.replace(/{width}/g,w.width).replace(/{height}/g,w.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":w=c(movie_width,movie_height),frame_url=pp_images[set_position],frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1),toInject=settings.iframe_markup.replace(/{width}/g,w.width).replace(/{height}/g,w.height).replace(/{path}/g,frame_url);break;case"ajax":doresize=!1,w=c(movie_width,movie_height),doresize=!0,skipInjection=!0,t.get(pp_images[set_position],function(t){toInject=settings.inline_markup.replace(/{content}/g,t),$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,r()});break;case"custom":w=c(movie_width,movie_height),toInject=settings.custom_markup;break;case"inline":myClone=t(pp_images[set_position]).clone().append('
').css({width:settings.default_width}).wrapInner('
').appendTo(t("body")).show(),doresize=!1,w=c(t(myClone).width(),t(myClone).height()),doresize=!0,t(myClone).remove(),toInject=settings.inline_markup.replace(/{content}/g,t(pp_images[set_position]).html())}imgPreloader||skipInjection||($pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,r())}),!1},t.prettyPhoto.changePage=function(e){currentGalleryPage=0,"previous"==e?(set_position--,set_position<0&&(set_position=t(pp_images).size()-1)):"next"==e?(set_position++,set_position>t(pp_images).size()-1&&(set_position=0)):set_position=e,rel_index=set_position,doresize||(doresize=!0),settings.allow_expand&&t(".pp_contract").removeClass("pp_contract").addClass("pp_expand"),l(function(){t.prettyPhoto.open()})},t.prettyPhoto.changeGalleryPage=function(t){"next"==t?(currentGalleryPage++,currentGalleryPage>totalPage&&(currentGalleryPage=0)):"previous"==t?(currentGalleryPage--,currentGalleryPage<0&&(currentGalleryPage=totalPage)):currentGalleryPage=t,slide_speed="next"==t||"previous"==t?settings.animation_speed:0,slide_to=currentGalleryPage*itemsPerPage*itemWidth,$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)},t.prettyPhoto.startSlideshow=function(){"undefined"==typeof T?($pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){return t.prettyPhoto.stopSlideshow(),!1}),T=setInterval(t.prettyPhoto.startSlideshow,settings.slideshow)):t.prettyPhoto.changePage("next")},t.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){return t.prettyPhoto.startSlideshow(),!1}),clearInterval(T),T=void 0},t.prettyPhoto.close=function(){$pp_overlay.is(":animated")||(t.prettyPhoto.stopSlideshow(),$pp_pic_holder.stop().find("object,embed").css("visibility","hidden"),t("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){t(this).remove()}),$pp_overlay.fadeOut(settings.animation_speed,function(){settings.hideflash&&t("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible"),t(this).remove(),t(window).unbind("scroll.prettyphoto"),i(),settings.callback(),doresize=!0,v=!1,delete settings}))},!pp_alreadyInitialized&&e()&&(pp_alreadyInitialized=!0,hashIndex=e(),hashRel=hashIndex,hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1),hashRel=hashRel.substring(0,hashRel.indexOf("/")),setTimeout(function(){t("a["+s.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)),this.unbind("click.prettyphoto").bind("click.prettyphoto",t.prettyPhoto.initialize)}}(jQuery);var pp_alreadyInitialized=!1;!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){"use strict";function e(t){if(t instanceof Date)return t;if(String(t).match(l))return String(t).match(/^[0-9]*$/)&&(t=Number(t)),String(t).match(/\-/)&&(t=String(t).replace(/\-/g,"/")),new Date(t);throw new Error("Couldn't cast `"+t+"` to a date object.")}function o(t){var e=t.toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");return new RegExp(e)}function i(t){return function(e){var i=e.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(i)for(var s=0,r=i.length;r>s;++s){var l=i[s].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),c=o(l[0]),d=l[1]||"",h=l[3]||"",p=null;l=l[2],a.hasOwnProperty(l)&&(p=a[l],p=Number(t[p])),null!==p&&("!"===d&&(p=n(h,p)),""===d&&10>p&&(p="0"+p.toString()),e=e.replace(c,p.toString()))}return e=e.replace(/%%/,"%")}}function n(t,e){var o="s",i="";return t&&(t=t.replace(/(:|;|\s)/gi,"").split(/\,/),1===t.length?o=t[0]:(i=t[0],o=t[1])),1===Math.abs(e)?i:o}var s=100,r=[],l=[];l.push(/^[0-9]*$/.source),l.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),l.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),l=new RegExp(l.join("|"));var a={Y:"years",m:"months",w:"weeks",d:"days",D:"totalDays",H:"hours",M:"minutes",S:"seconds"},c=function(e,o,i){this.el=e,this.$el=t(e),this.interval=null,this.offset={},this.instanceNumber=r.length,r.push(this),this.$el.data("countdown-instance",this.instanceNumber),i&&(this.$el.on("update.countdown",i),this.$el.on("stoped.countdown",i),this.$el.on("finish.countdown",i)),this.setFinalDate(o),this.start()};t.extend(c.prototype,{start:function(){null!==this.interval&&clearInterval(this.interval);var t=this;this.update(),this.interval=setInterval(function(){t.update.call(t)},s)},stop:function(){clearInterval(this.interval),this.interval=null,this.dispatchEvent("stoped")},toggle:function(){this.interval?this.stop():this.start()},pause:function(){this.stop()},resume:function(){this.start()},remove:function(){this.stop.call(this),r[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(t){this.finalDate=e(t)},update:function(){return 0===this.$el.closest("html").length?void this.remove():(this.totalSecsLeft=this.finalDate.getTime()-(new Date).getTime(),this.totalSecsLeft=Math.ceil(this.totalSecsLeft/1e3),this.totalSecsLeft=this.totalSecsLeft<0?0:this.totalSecsLeft,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,totalDays:Math.floor(this.totalSecsLeft/60/60/24),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),months:Math.floor(this.totalSecsLeft/60/60/24/30),years:Math.floor(this.totalSecsLeft/60/60/24/365)},void(0===this.totalSecsLeft?(this.stop(),this.dispatchEvent("finish")):this.dispatchEvent("update")))},dispatchEvent:function(e){var o=t.Event(e+".countdown");o.finalDate=this.finalDate,o.offset=t.extend({},this.offset),o.strftime=i(this.offset),this.$el.trigger(o)}}),t.fn.countdown=function(){var e=Array.prototype.slice.call(arguments,0);return this.each(function(){var o=t(this).data("countdown-instance");if(void 0!==o){var i=r[o],n=e[0];c.prototype.hasOwnProperty(n)?i[n].apply(i,e.slice(1)):null===String(n).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(i.setFinalDate.call(i,n),i.start()):t.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,n))}else new c(this,e[0],e[1])})}}),!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){"use strict";var e=window.Slick||{};e=function(){function e(e,i){var n,s,r=this;if(r.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(e),appendDots:t(e),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return'"},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",onBeforeChange:null,onAfterChange:null,onInit:null,onReInit:null,onSetPosition:null,pauseOnHover:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rtl:!1,slide:"div",slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0},r.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1},t.extend(r,r.initials),r.activeBreakpoint=null,r.animType=null,r.animProp=null,r.breakpoints=[],r.breakpointSettings=[],r.cssTransitions=!1,r.paused=!1,r.positionProp=null,r.respondTo=null,r.shouldClick=!0,r.$slider=t(e),r.$slidesCache=null,r.transformType=null,r.transitionType=null,r.windowWidth=0,r.windowTimer=null,r.options=t.extend({},r.defaults,i),r.currentSlide=r.options.initialSlide,r.originalSettings=r.options,n=r.options.responsive||null,n&&n.length>-1){r.respondTo=r.options.respondTo||"window";for(s in n)n.hasOwnProperty(s)&&(r.breakpoints.push(n[s].breakpoint),r.breakpointSettings[n[s].breakpoint]=n[s].settings);r.breakpoints.sort(function(t,e){return e-t})}r.autoPlay=t.proxy(r.autoPlay,r),r.autoPlayClear=t.proxy(r.autoPlayClear,r),r.changeSlide=t.proxy(r.changeSlide,r),r.clickHandler=t.proxy(r.clickHandler,r),r.selectHandler=t.proxy(r.selectHandler,r),r.setPosition=t.proxy(r.setPosition,r),r.swipeHandler=t.proxy(r.swipeHandler,r),r.dragHandler=t.proxy(r.dragHandler,r),r.keyHandler=t.proxy(r.keyHandler,r),r.autoPlayIterator=t.proxy(r.autoPlayIterator,r),r.instanceUid=o++,r.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,r.init(),r.checkResponsive()}var o=0;return e}(),e.prototype.addSlide=function(e,o,i){var n=this;if("boolean"==typeof o)i=o,o=null;else if(0>o||o>=n.slideCount)return!1;n.unload(),"number"==typeof o?0===o&&0===n.$slides.length?t(e).appendTo(n.$slideTrack):i?t(e).insertBefore(n.$slides.eq(o)):t(e).insertAfter(n.$slides.eq(o)):i===!0?t(e).prependTo(n.$slideTrack):t(e).appendTo(n.$slideTrack),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slides.each(function(e,o){t(o).attr("index",e)}),n.$slidesCache=n.$slides,n.reinit()},e.prototype.animateSlide=function(e,o){var i={},n=this;if(1===n.options.slidesToShow&&n.options.adaptiveHeight===!0&&n.options.vertical===!1){var s=n.$slides.eq(n.currentSlide).outerHeight(!0);n.$list.animate({height:s},n.options.speed)}n.options.rtl===!0&&n.options.vertical===!1&&(e=-e),n.transformsEnabled===!1?n.options.vertical===!1?n.$slideTrack.animate({left:e},n.options.speed,n.options.easing,o):n.$slideTrack.animate({top:e},n.options.speed,n.options.easing,o):n.cssTransitions===!1?t({animStart:n.currentLeft}).animate({animStart:e},{duration:n.options.speed,easing:n.options.easing,step:function(t){n.options.vertical===!1?(i[n.animType]="translate("+t+"px, 0px)",n.$slideTrack.css(i)):(i[n.animType]="translate(0px,"+t+"px)",n.$slideTrack.css(i))},complete:function(){o&&o.call()}}):(n.applyTransition(),i[n.animType]=n.options.vertical===!1?"translate3d("+e+"px, 0px, 0px)":"translate3d(0px,"+e+"px, 0px)",n.$slideTrack.css(i),o&&setTimeout(function(){n.disableTransition(),o.call()},n.options.speed))},e.prototype.asNavFor=function(e){var o=this,i=null!=o.options.asNavFor?t(o.options.asNavFor).getSlick():null;null!=i&&i.slideHandler(e,!0)},e.prototype.applyTransition=function(t){var e=this,o={};o[e.transitionType]=e.options.fade===!1?e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:"opacity "+e.options.speed+"ms "+e.options.cssEase,e.options.fade===!1?e.$slideTrack.css(o):e.$slides.eq(t).css(o)},e.prototype.autoPlay=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer),t.slideCount>t.options.slidesToShow&&t.paused!==!0&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this;t.options.infinite===!1?1===t.direction?(t.currentSlide+1===t.slideCount-1&&(t.direction=0),t.slideHandler(t.currentSlide+t.options.slidesToScroll)):(0===t.currentSlide-1&&(t.direction=1),t.slideHandler(t.currentSlide-t.options.slidesToScroll)):t.slideHandler(t.currentSlide+t.options.slidesToScroll)},e.prototype.buildArrows=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow=t(e.options.prevArrow),e.$nextArrow=t(e.options.nextArrow),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.appendTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),e.options.infinite!==!0&&e.$prevArrow.addClass("slick-disabled"))},e.prototype.buildDots=function(){var e,o,i=this;if(i.options.dots===!0&&i.slideCount>i.options.slidesToShow){for(o='
    ',e=0;e<=i.getDotCount();e+=1)o+="
  • "+i.options.customPaging.call(this,i,e)+"
  • ";o+="
",i.$dots=t(o).appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,o){t(o).attr("index",e)}),e.$slidesCache=e.$slides,e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('
').appendTo(e.$slider):e.$slides.wrapAll('
').parent(),e.$list=e.$slideTrack.wrap('
').parent(),e.$slideTrack.css("opacity",0),e.options.centerMode===!0&&(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.options.accessibility===!0&&e.$list.prop("tabIndex",0),e.setSlideClasses("number"==typeof this.currentSlide?this.currentSlide:0),e.options.draggable===!0&&e.$list.addClass("draggable")},e.prototype.checkResponsive=function(){var e,o,i,n=this,s=n.$slider.width(),r=window.innerWidth||t(window).width();if("window"===n.respondTo?i=r:"slider"===n.respondTo?i=s:"min"===n.respondTo&&(i=Math.min(r,s)),n.originalSettings.responsive&&n.originalSettings.responsive.length>-1&&null!==n.originalSettings.responsive){o=null;for(e in n.breakpoints)n.breakpoints.hasOwnProperty(e)&&ia.options.slidesToShow&&a.slideHandler(a.currentSlide-n,!1,o);break;case"next":n=0===i?a.options.slidesToScroll:i,a.slideCount>a.options.slidesToShow&&a.slideHandler(a.currentSlide+n,!1,o);break;case"index":var d=0===e.data.index?0:e.data.index||t(e.target).parent().index()*a.options.slidesToScroll;if(r=a.getNavigableIndexes(),l=0,r[d]&&r[d]===d)if(d>r[r.length-1])d=r[r.length-1];else for(var h in r){if(dn.options.slidesToShow&&(n.slideOffset=-1*n.slideWidth*n.options.slidesToShow,s=-1*o*n.options.slidesToShow),0!==n.slideCount%n.options.slidesToScroll&&t+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(t>n.slideCount?(n.slideOffset=-1*(n.options.slidesToShow-(t-n.slideCount))*n.slideWidth,s=-1*(n.options.slidesToShow-(t-n.slideCount))*o):(n.slideOffset=-1*n.slideCount%n.options.slidesToScroll*n.slideWidth,s=-1*n.slideCount%n.options.slidesToScroll*o))):t+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(t+n.options.slidesToShow-n.slideCount)*n.slideWidth,s=(t+n.options.slidesToShow-n.slideCount)*o),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,s=0),n.options.centerMode===!0&&n.options.infinite===!0?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:n.options.centerMode===!0&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=n.options.vertical===!1?-1*t*n.slideWidth+n.slideOffset:-1*t*o+s,n.options.variableWidth===!0&&(i=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(".slick-slide").eq(t):n.$slideTrack.children(".slick-slide").eq(t+n.options.slidesToShow),e=i[0]?-1*i[0].offsetLeft:0,n.options.centerMode===!0&&(i=n.options.infinite===!1?n.$slideTrack.children(".slick-slide").eq(t):n.$slideTrack.children(".slick-slide").eq(t+n.options.slidesToShow+1),e=i[0]?-1*i[0].offsetLeft:0,e+=(n.$list.width()-i.outerWidth())/2)),e},e.prototype.getNavigableIndexes=function(){for(var t=this,e=0,o=0,i=[];e-1*o.swipeLeft?(i=n,!1):void 0}),e=Math.abs(t(i).attr("index")-o.currentSlide)}return o.options.slidesToScroll},e.prototype.init=function(){var e=this;t(e.$slider).hasClass("slick-initialized")||(t(e.$slider).addClass("slick-initialized"),e.buildOut(),e.setProps(),e.startLoad(),e.loadSlider(),e.initializeEvents(),e.updateArrows(),e.updateDots()),null!==e.options.onInit&&e.options.onInit.call(this,e)},e.prototype.initArrowEvents=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.on("click.slick",{message:"next"},t.changeSlide))},e.prototype.initDotEvents=function(){var e=this;e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),e.options.dots===!0&&e.options.pauseOnDotsHover===!0&&e.options.autoplay===!0&&t("li",e.$dots).on("mouseenter.slick",function(){e.paused=!0,e.autoPlayClear()}).on("mouseleave.slick",function(){e.paused=!1,e.autoPlay()})},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),e.options.pauseOnHover===!0&&e.options.autoplay===!0&&(e.$list.on("mouseenter.slick",function(){e.paused=!0,e.autoPlayClear()}),e.$list.on("mouseleave.slick",function(){e.paused=!1,e.autoPlay()})),e.options.accessibility===!0&&e.$list.on("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&t(e.options.slide,e.$slideTrack).on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,function(){e.checkResponsive(),e.setPosition()}),t(window).on("resize.slick.slick-"+e.instanceUid,function(){t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.setPosition()},50))}),t("*[draggable!=true]",e.$slideTrack).on("dragstart",function(t){t.preventDefault()}),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(document).on("ready.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.initUI=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.show(),t.options.autoplay===!0&&t.autoPlay()},e.prototype.keyHandler=function(t){var e=this;37===t.keyCode&&e.options.accessibility===!0?e.changeSlide({data:{message:"previous"}}):39===t.keyCode&&e.options.accessibility===!0&&e.changeSlide({data:{message:"next"}})},e.prototype.lazyLoad=function(){function e(e){t("img[data-lazy]",e).each(function(){var e=t(this),o=t(this).attr("data-lazy");e.load(function(){e.animate({opacity:1},200)}).css({opacity:0}).attr("src",o).removeAttr("data-lazy").removeClass("slick-loading")})}var o,i,n,s,r=this;r.options.centerMode===!0?r.options.infinite===!0?(n=r.currentSlide+(r.options.slidesToShow/2+1),s=n+r.options.slidesToShow+2):(n=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),s=2+(r.options.slidesToShow/2+1)+r.currentSlide):(n=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,s=n+r.options.slidesToShow,r.options.fade===!0&&(n>0&&n--,s<=r.slideCount&&s++)),o=r.$slider.find(".slick-slide").slice(n,s),e(o),r.slideCount<=r.options.slidesToShow?(i=r.$slider.find(".slick-slide"),e(i)):r.currentSlide>=r.slideCount-r.options.slidesToShow?(i=r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow),e(i)):0===r.currentSlide&&(i=r.$slider.find(".slick-cloned").slice(-1*r.options.slidesToShow),e(i))},e.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},e.prototype.postSlide=function(t){var e=this;null!==e.options.onAfterChange&&e.options.onAfterChange.call(this,e,t),e.animating=!1,e.setPosition(),e.swipeLeft=null,e.options.autoplay===!0&&e.paused===!1&&e.autoPlay()},e.prototype.progressiveLazyLoad=function(){var e,o,i=this;e=t("img[data-lazy]",i.$slider).length,e>0&&(o=t("img[data-lazy]",i.$slider).first(),o.attr("src",o.attr("data-lazy")).removeClass("slick-loading").load(function(){o.removeAttr("data-lazy"),i.progressiveLazyLoad()}).error(function(){o.removeAttr("data-lazy"),i.progressiveLazyLoad()}))},e.prototype.refresh=function(){var e=this,o=e.currentSlide;e.destroy(),t.extend(e,e.initials),e.init(),e.changeSlide({data:{message:"index",index:o}},!0)},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.options.focusOnSelect===!0&&t(e.options.slide,e.$slideTrack).on("click.slick",e.selectHandler),e.setSlideClasses(0),e.setPosition(),null!==e.options.onReInit&&e.options.onReInit.call(this,e)},e.prototype.removeSlide=function(t,e,o){var i=this;return"boolean"==typeof t?(e=t,t=e===!0?0:i.slideCount-1):t=e===!0?--t:t,i.slideCount<1||0>t||t>i.slideCount-1?!1:(i.unload(),o===!0?i.$slideTrack.children().remove():i.$slideTrack.children(this.options.slide).eq(t).remove(),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slidesCache=i.$slides,void i.reinit())},e.prototype.setCSS=function(t){var e,o,i=this,n={};i.options.rtl===!0&&(t=-t),e="left"==i.positionProp?t+"px":"0px",o="top"==i.positionProp?t+"px":"0px",n[i.positionProp]=t,i.transformsEnabled===!1?i.$slideTrack.css(n):(n={},i.cssTransitions===!1?(n[i.animType]="translate("+e+", "+o+")",i.$slideTrack.css(n)):(n[i.animType]="translate3d("+e+", "+o+", 0px)",i.$slideTrack.css(n)))},e.prototype.setDimensions=function(){var e=this;if(e.options.vertical===!1?e.options.centerMode===!0&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),e.options.centerMode===!0&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),e.options.vertical===!1&&e.options.variableWidth===!1)e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length));else if(e.options.variableWidth===!0){var o=0;e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.children(".slick-slide").each(function(){o+=Math.ceil(t(this).outerWidth(!0))}),e.$slideTrack.width(Math.ceil(o)+1)}else e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length));var i=e.$slides.first().outerWidth(!0)-e.$slides.first().width();e.options.variableWidth===!1&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-i)},e.prototype.setFade=function(){var e,o=this;o.$slides.each(function(i,n){e=-1*o.slideWidth*i,o.options.rtl===!0?t(n).css({position:"relative",right:e,top:0,zIndex:800,opacity:0}):t(n).css({position:"relative",left:e,top:0,zIndex:800,opacity:0})}),o.$slides.eq(o.currentSlide).css({zIndex:900,opacity:1})},e.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&t.options.adaptiveHeight===!0&&t.options.vertical===!1){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},e.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),t.options.fade===!1?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),null!==t.options.onSetPosition&&t.options.onSetPosition.call(this,t)},e.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=t.options.vertical===!0?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),(void 0!==e.WebkitTransition||void 0!==e.MozTransition||void 0!==e.msTransition)&&t.options.useCSS===!0&&(t.cssTransitions=!0),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition", void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&t.animType!==!1&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=null!==t.animType&&t.animType!==!1},e.prototype.setSlideClasses=function(t){var e,o,i,n,s=this;s.$slider.find(".slick-slide").removeClass("slick-active").removeClass("slick-center"),o=s.$slider.find(".slick-slide"),s.options.centerMode===!0?(e=Math.floor(s.options.slidesToShow/2),s.options.infinite===!0&&(t>=e&&t<=s.slideCount-1-e?s.$slides.slice(t-e,t+e+1).addClass("slick-active"):(i=s.options.slidesToShow+t,o.slice(i-e+1,i+e+2).addClass("slick-active")),0===t?o.eq(o.length-1-s.options.slidesToShow).addClass("slick-center"):t===s.slideCount-1&&o.eq(s.options.slidesToShow).addClass("slick-center")),s.$slides.eq(t).addClass("slick-center")):t>=0&&t<=s.slideCount-s.options.slidesToShow?s.$slides.slice(t,t+s.options.slidesToShow).addClass("slick-active"):o.length<=s.options.slidesToShow?o.addClass("slick-active"):(n=s.slideCount%s.options.slidesToShow,i=s.options.infinite===!0?s.options.slidesToShow+t:t,s.options.slidesToShow==s.options.slidesToScroll&&s.slideCount-tn.options.slidesToShow)){for(i=n.options.centerMode===!0?n.options.slidesToShow+1:n.options.slidesToShow,e=n.slideCount;e>n.slideCount-i;e-=1)o=e-1,t(n.$slides[o]).clone(!0).attr("id","").attr("index",o-n.slideCount).prependTo(n.$slideTrack).addClass("slick-cloned");for(e=0;i>e;e+=1)o=e,t(n.$slides[o]).clone(!0).attr("id","").attr("index",o+n.slideCount).appendTo(n.$slideTrack).addClass("slick-cloned");n.$slideTrack.find(".slick-cloned").find("[id]").each(function(){t(this).attr("id","")})}},e.prototype.selectHandler=function(e){var o=this,i=parseInt(t(e.target).parents(".slick-slide").attr("index"));return i||(i=0),o.slideCount<=o.options.slidesToShow?(o.$slider.find(".slick-slide").removeClass("slick-active"),o.$slides.eq(i).addClass("slick-active"),o.options.centerMode===!0&&(o.$slider.find(".slick-slide").removeClass("slick-center"),o.$slides.eq(i).addClass("slick-center")),void o.asNavFor(i)):void o.slideHandler(i)},e.prototype.slideHandler=function(t,e,o){var i,n,s,r,l=null,a=this;return e=e||!1,a.animating===!0&&a.options.waitForAnimate===!0||a.options.fade===!0&&a.currentSlide===t||a.slideCount<=a.options.slidesToShow?void 0:(e===!1&&a.asNavFor(t),i=t,l=a.getLeft(i),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,a.options.infinite===!1&&a.options.centerMode===!1&&(0>t||t>a.getDotCount()*a.options.slidesToScroll)?void(a.options.fade===!1&&(i=a.currentSlide,o!==!0?a.animateSlide(r,function(){a.postSlide(i)}):a.postSlide(i))):a.options.infinite===!1&&a.options.centerMode===!0&&(0>t||t>a.slideCount-a.options.slidesToScroll)?void(a.options.fade===!1&&(i=a.currentSlide,o!==!0?a.animateSlide(r,function(){a.postSlide(i)}):a.postSlide(i))):(a.options.autoplay===!0&&clearInterval(a.autoPlayTimer),n=0>i?0!==a.slideCount%a.options.slidesToScroll?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+i:i>=a.slideCount?0!==a.slideCount%a.options.slidesToScroll?0:i-a.slideCount:i,a.animating=!0,null!==a.options.onBeforeChange&&t!==a.currentSlide&&a.options.onBeforeChange.call(this,a,a.currentSlide,n),s=a.currentSlide,a.currentSlide=n,a.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),a.options.fade===!0?void(o!==!0?a.fadeSlide(s,n,function(){a.postSlide(n)}):a.postSlide(n)):void(o!==!0?a.animateSlide(l,function(){a.postSlide(n)}):a.postSlide(n))))},e.prototype.startLoad=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,e,o,i,n=this;return t=n.touchObject.startX-n.touchObject.curX,e=n.touchObject.startY-n.touchObject.curY,o=Math.atan2(e,t),i=Math.round(180*o/Math.PI),0>i&&(i=360-Math.abs(i)),45>=i&&i>=0?n.options.rtl===!1?"left":"right":360>=i&&i>=315?n.options.rtl===!1?"left":"right":i>=135&&225>=i?n.options.rtl===!1?"right":"left":"vertical"},e.prototype.swipeEnd=function(){var t=this;if(t.dragging=!1,t.shouldClick=t.touchObject.swipeLength>10?!1:!0,void 0===t.touchObject.curX)return!1;if(t.touchObject.swipeLength>=t.touchObject.minSwipe)switch(t.swipeDirection()){case"left":t.slideHandler(t.currentSlide+t.getSlideCount()),t.currentDirection=0,t.touchObject={};break;case"right":t.slideHandler(t.currentSlide-t.getSlideCount()),t.currentDirection=1,t.touchObject={}}else t.touchObject.startX!==t.touchObject.curX&&(t.slideHandler(t.currentSlide),t.touchObject={})},e.prototype.swipeHandler=function(t){var e=this;if(!(e.options.swipe===!1||"ontouchend"in document&&e.options.swipe===!1||e.options.draggable===!1&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},e.prototype.swipeMove=function(t){var e,o,i,n,s=this;return n=void 0!==t.originalEvent?t.originalEvent.touches:null,!s.dragging||n&&1!==n.length?!1:(e=s.getLeft(s.currentSlide),s.touchObject.curX=void 0!==n?n[0].pageX:t.clientX,s.touchObject.curY=void 0!==n?n[0].pageY:t.clientY,s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curX-s.touchObject.startX,2))),o=s.swipeDirection(),"vertical"!==o?(void 0!==t.originalEvent&&s.touchObject.swipeLength>4&&t.preventDefault(),i=(s.options.rtl===!1?1:-1)*(s.touchObject.curX>s.touchObject.startX?1:-1),s.swipeLeft=s.options.vertical===!1?e+s.touchObject.swipeLength*i:e+s.touchObject.swipeLength*(s.$list.height()/s.listWidth)*i,s.options.fade===!0||s.options.touchMove===!1?!1:s.animating===!0?(s.swipeLeft=null,!1):void s.setCSS(s.swipeLeft)):void 0)},e.prototype.swipeStart=function(t){var e,o=this;return 1!==o.touchObject.fingerCount||o.slideCount<=o.options.slidesToShow?(o.touchObject={},!1):(void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),o.touchObject.startX=o.touchObject.curX=void 0!==e?e.pageX:t.clientX,o.touchObject.startY=o.touchObject.curY=void 0!==e?e.pageY:t.clientY,void(o.dragging=!0))},e.prototype.unfilterSlides=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},e.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&"object"!=typeof e.options.prevArrow&&e.$prevArrow.remove(),e.$nextArrow&&"object"!=typeof e.options.nextArrow&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible").css("width","")},e.prototype.updateArrows=function(){var t,e=this;t=Math.floor(e.options.slidesToShow/2),e.options.arrows===!0&&e.options.infinite!==!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.removeClass("slick-disabled"),e.$nextArrow.removeClass("slick-disabled"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled"),e.$nextArrow.removeClass("slick-disabled")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&e.options.centerMode===!1?(e.$nextArrow.addClass("slick-disabled"),e.$prevArrow.removeClass("slick-disabled")):e.currentSlide>e.slideCount-e.options.slidesToShow+t&&e.options.centerMode===!0&&(e.$nextArrow.addClass("slick-disabled"),e.$prevArrow.removeClass("slick-disabled")))},e.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active"),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},t.fn.slick=function(t){var o=this;return o.each(function(o,i){i.slick=new e(i,t)})},t.fn.slickAdd=function(t,e,o){var i=this;return i.each(function(i,n){n.slick.addSlide(t,e,o)})},t.fn.slickCurrentSlide=function(){var t=this;return t.get(0).slick.getCurrent()},t.fn.slickFilter=function(t){var e=this;return e.each(function(e,o){o.slick.filterSlides(t)})},t.fn.slickGoTo=function(t,e){var o=this;return o.each(function(o,i){i.slick.changeSlide({data:{message:"index",index:parseInt(t)}},e)})},t.fn.slickNext=function(){var t=this;return t.each(function(t,e){e.slick.changeSlide({data:{message:"next"}})})},t.fn.slickPause=function(){var t=this;return t.each(function(t,e){e.slick.autoPlayClear(),e.slick.paused=!0})},t.fn.slickPlay=function(){var t=this;return t.each(function(t,e){e.slick.paused=!1,e.slick.autoPlay()})},t.fn.slickPrev=function(){var t=this;return t.each(function(t,e){e.slick.changeSlide({data:{message:"previous"}})})},t.fn.slickRemove=function(t,e){var o=this;return o.each(function(o,i){i.slick.removeSlide(t,e)})},t.fn.slickRemoveAll=function(){var t=this;return t.each(function(t,e){e.slick.removeSlide(null,null,!0)})},t.fn.slickGetOption=function(t){var e=this;return e.get(0).slick.options[t]},t.fn.slickSetOption=function(t,e,o){var i=this;return i.each(function(i,n){n.slick.options[t]=e,o===!0&&(n.slick.unload(),n.slick.reinit())})},t.fn.slickUnfilter=function(){var t=this;return t.each(function(t,e){e.slick.unfilterSlides()})},t.fn.unslick=function(){var t=this;return t.each(function(t,e){e.slick&&e.slick.destroy()})},t.fn.getSlick=function(){var t=null,e=this;return e.each(function(e,o){t=o.slick}),t}}),function(t){t.fn.videoBG=function(e,o){if(void 0===o&&(o={}),"object"==typeof e)o=t.extend({},t.fn.videoBG.defaults,e);else{if(e)return t(e).videoBG(o);o=t.fn.videoBG.defaults}var i=t(this);if(i.length){"static"!=i.css("position")&&i.css("position")||i.css("position","relative"),0===o.width&&(o.width=i.width()),0===o.height&&(o.height=i.height());var n=t.fn.videoBG.wrapper();n.height(o.height).width(o.width),o.textReplacement?(o.scale=!0,i.width(o.width).height(o.height).css("text-indent","-9999px")):n.css("z-index",o.zIndex+1),n.html(i.clone(!0));var s=t.fn.videoBG.video(o);return o.scale&&(n.height(o.height).width(o.width),s.height(o.height).width(o.width)),i.html(n),i.append(s),s.find("video")[0]}},t.fn.videoBG.setFullscreen=function(e){var o=t(window).width(),i=t(window).height();e.css("min-height",0).css("min-width",0),e.parent().width(o).height(i);var n=0;if(o/i>e.aspectRatio){e.width(o).height("auto");var s=e.height();n=(s-i)/2,0>n&&(n=0),e.css("top",-n)}else{e.width("auto").height(i);var r=e.width();if(n=(r-o)/2,0>n&&(n=0),e.css("left",-n),0===n){setTimeout(function(){t.fn.videoBG.setFullscreen(e)},500)}}t("body > .videoBG_wrapper").width(o).height(i)},t.fn.videoBG.video=function(e){t("html, body").scrollTop(-1);var o=t("
");o.addClass("videoBG").css("position",e.position).css("z-index",e.zIndex).css("top",0).css("left",0).css("height",e.height).css("width",e.width).css("opacity",e.opacity).css("overflow","hidden");var i=t("