(function(e){function t(t){if("object"===e.type(t))return t
var i=/^(((([^:\/#\?]+:)?(?:\/\/((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?]+)(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/.exec(t)
return i?{href:i[0]||"",hrefNoHash:i[1]||"",hrefNoSearch:i[2]||"",domain:i[3]||"",protocol:i[4]||"",authority:i[5]||"",username:i[7]||"",password:i[8]||"",host:i[9]||"",hostname:i[10]||"",port:i[11]||"",pathname:i[12]||"",directory:i[13]||"",filename:i[14]||"",search:i[15]||"",hash:i[16]||""}:{}}var e=jQuery,i="__jquery_xdomain__",s="SESSION_COOKIE_NAME",a=function(e){if(e===void 0)return!0
if(e.vars===void 0)return!0
if(e.vars.xml_location===void 0)return!0
var t=window.location,i=document.createElement("a")
return i.href=e.vars.xml_location,i.hostname==t.hostname&&i.port==t.port&&i.protocol==t.protocol}
if(jQuery.browser.msie&&"XDomainRequest"in window&&!(i in e)&&!a(e.fn.cu3erOptions)){e[i]=e.support.cors=!0
var r=e.ajaxSettings.xhr,n=s in window?window[s]:"jsessionid",o=t(document.location.href).domain
e.ajaxSettings.xhr=function(){var i=t(this.url).domain
if(""===i||i===o)return r.call(e.ajaxSettings)
try{var s=new XDomainRequest
if(s.setRequestHeader||(s.setRequestHeader=e.noop),s.getAllResponseHeaders||(s.getAllResponseHeaders=e.noop),n){var a=s.open
s.open=function(){var e=RegExp("(?:^|; )"+n+"=([^;]*)","i").exec(document.cookie)
if(e=e&&e[1]){var t=arguments[1].indexOf("?");-1==t?arguments[1]+=";"+n+"="+e:arguments[1]=arguments[1].substring(0,t)+";"+n+"="+e+arguments[1].substring(t)}return a.apply(this,arguments)}}return s.onload=function(){"function"==typeof s.onreadystatechange&&(s.readyState=4,s.status=200,s.onreadystatechange.call(s,null,!1))},s.onerror=s.ontimeout=function(){"function"==typeof s.onreadystatechange&&(s.readyState=4,s.status=500,s.onreadystatechange.call(s,null,!1))},s}catch(l){}}}})(jQuery),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutSine",swing:function(e,t,i,s,a){return jQuery.easing[jQuery.easing.def](e,t,i,s,a)},easeInSine:function(e,t,i,s,a){return-s*Math.cos(t/a*(Math.PI/2))+s+i},easeOutSine:function(e,t,i,s,a){return s*Math.sin(t/a*(Math.PI/2))+i},easeInOutSine:function(e,t,i,s,a){return-s/2*(Math.cos(Math.PI*t/a)-1)+i},easeInExpo:function(e,t,i,s,a){return 0==t?i:s*Math.pow(2,10*(t/a-1))+i},easeOutExpo:function(e,t,i,s,a){return t==a?i+s:s*(-Math.pow(2,-10*t/a)+1)+i},easeInOutExpo:function(e,t,i,s,a){return 0==t?i:t==a?i+s:1>(t/=a/2)?s/2*Math.pow(2,10*(t-1))+i:s/2*(-Math.pow(2,-10*--t)+2)+i},easeInElastic:function(e,t,i,s,a){var r=1.70158,n=0,o=s
if(0==t)return i
if(1==(t/=a))return i+s
if(n||(n=.3*a),Math.abs(s)>o){o=s
var r=n/4}else var r=n/(2*Math.PI)*Math.asin(s/o)
return-(o*Math.pow(2,10*(t-=1))*Math.sin((t*a-r)*2*Math.PI/n))+i},easeOutElastic:function(e,t,i,s,a){var r=1.70158,n=0,o=s
if(0==t)return i
if(1==(t/=a))return i+s
if(n||(n=.3*a),Math.abs(s)>o){o=s
var r=n/4}else var r=n/(2*Math.PI)*Math.asin(s/o)
return o*Math.pow(2,-10*t)*Math.sin((t*a-r)*2*Math.PI/n)+s+i},easeInOutElastic:function(e,t,i,s,a){var r=1.70158,n=0,o=s
if(0==t)return i
if(2==(t/=a/2))return i+s
if(n||(n=a*.3*1.5),Math.abs(s)>o){o=s
var r=n/4}else var r=n/(2*Math.PI)*Math.asin(s/o)
return 1>t?-.5*o*Math.pow(2,10*(t-=1))*Math.sin((t*a-r)*2*Math.PI/n)+i:.5*o*Math.pow(2,-10*(t-=1))*Math.sin((t*a-r)*2*Math.PI/n)+s+i},easeInBounce:function(e,t,i,s,a){return s-jQuery.easing.easeOutBounce(e,a-t,0,s,a)+i},easeOutBounce:function(e,t,i,s,a){return 1/2.75>(t/=a)?s*7.5625*t*t+i:2/2.75>t?s*(7.5625*(t-=1.5/2.75)*t+.75)+i:2.5/2.75>t?s*(7.5625*(t-=2.25/2.75)*t+.9375)+i:s*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(e,t,i,s,a){return a/2>t?.5*jQuery.easing.easeInBounce(e,2*t,0,s,a)+i:.5*jQuery.easing.easeOutBounce(e,2*t-a,0,s,a)+.5*s+i}}),function(e){e.fn.swipe=function(t){if(!this)return!1
var i={fingers:1,threshold:75,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,click:null,triggerOnTouchEnd:!0,allowPageScroll:"auto"},s="left",a="right",r="up",n="down",o="none",l="horizontal",d="vertical",c="auto",h="start",p="move",u="end",f="cancel",g="start"
return void 0!=t.allowPageScroll||void 0==t.swipe&&void 0==t.swipeStatus||(t.allowPageScroll=o),t&&e.extend(i,t),this.each(function(){function t(e){g=h,w=e.touches.length,distance=0,direction=null,w==i.fingers?(x.x=I.x=e.touches[0].pageX,x.y=I.y=e.touches[0].pageY,i.swipeStatus&&v(e,g)):C(e)}function m(e){g!=u&&g!=f&&(I.x=e.touches[0].pageX,I.y=e.touches[0].pageY,direction=E(),w=e.touches.length,g=p,R(e,direction),w==i.fingers?(distance=j(),i.swipeStatus&&v(e,g,direction,distance),i.triggerOnTouchEnd||distance>=i.threshold&&(g=u,v(e,g),C(e))):(g=f,v(e,g),C(e)))}function b(e){e.preventDefault(),distance=j(),direction=E(),i.triggerOnTouchEnd?(g=u,w==i.fingers&&0!=I.x?distance>=i.threshold?(v(e,g),C(e)):(g=f,v(e,g),C(e)):(g=f,v(e,g),C(e))):g==p&&(g=f,v(e,g),C(e))}function C(){w=0,x.x=0,x.y=0,I.x=0,I.y=0,Q.x=0,Q.y=0}function v(e,t){if(i.swipeStatus&&i.swipeStatus.call(U,e,t,direction||null,distance||0),t==f&&i.click&&1==w&&(isNaN(distance)||0==distance)&&i.click.call(U,e,e.target),t==u)switch(i.swipe&&i.swipe.call(U,e,direction,distance),direction){case s:i.swipeLeft&&i.swipeLeft.call(U,e,direction,distance)
break
case a:i.swipeRight&&i.swipeRight.call(U,e,direction,distance)
break
case r:i.swipeUp&&i.swipeUp.call(U,e,direction,distance)
break
case n:i.swipeDown&&i.swipeDown.call(U,e,direction,distance)}}function R(e,t){if(i.allowPageScroll==o)e.preventDefault()
else{var h=i.allowPageScroll==c
switch(t){case s:(i.swipeLeft&&h||!h&&i.allowPageScroll!=l)&&e.preventDefault()
break
case a:(i.swipeRight&&h||!h&&i.allowPageScroll!=l)&&e.preventDefault()
break
case r:(i.swipeUp&&h||!h&&i.allowPageScroll!=d)&&e.preventDefault()
break
case n:(i.swipeDown&&h||!h&&i.allowPageScroll!=d)&&e.preventDefault()}}}function j(){return Math.round(Math.sqrt(Math.pow(I.x-x.x,2)+Math.pow(I.y-x.y,2)))}function y(){var e=x.x-I.x,t=I.y-x.y,i=Math.atan2(t,e),s=Math.round(180*i/Math.PI)
return 0>s&&(s=360-Math.abs(s)),s}function E(){var e=y()
return 45>=e&&e>=0?s:360>=e&&e>=315?s:e>=135&&225>=e?a:e>45&&135>e?n:r}var U=e(this),w=0,x={x:0,y:0},I={x:0,y:0},Q={x:0,y:0}
try{this.addEventListener("touchstart",t,!1),this.addEventListener("touchmove",m,!1),this.addEventListener("touchend",b,!1),this.addEventListener("touchcancel",C,!1)}catch(k){}})}}(jQuery),jQuery.browser.msie||eval(function(e,t,i,s,a,r){if(a=function(e){return(t>e?"":a(parseInt(e/t)))+((e%=t)>35?String.fromCharCode(e+29):e.toString(36))},!"".replace(/^/,String)){for(;i--;)r[a(i)]=s[i]||a(i)
s=[function(e){return r[e]}],a=function(){return"\\w+"},i=1}for(;i--;)s[i]&&(e=e.replace(RegExp("\\b"+a(i)+"\\b","g"),s[i]))
return e}("9 17={3i:'0.1.3',16:1e-6};l v(){}v.23={e:l(i){8(i<1||i>7.4.q)?w:7.4[i-1]},2R:l(){8 7.4.q},1u:l(){8 F.1x(7.2u(7))},24:l(a){9 n=7.4.q;9 V=a.4||a;o(n!=V.q){8 1L}J{o(F.13(7.4[n-1]-V[n-1])>17.16){8 1L}}H(--n);8 2x},1q:l(){8 v.u(7.4)},1b:l(a){9 b=[];7.28(l(x,i){b.19(a(x,i))});8 v.u(b)},28:l(a){9 n=7.4.q,k=n,i;J{i=k-n;a(7.4[i],i+1)}H(--n)},2q:l(){9 r=7.1u();o(r===0){8 7.1q()}8 7.1b(l(x){8 x/r})},1C:l(a){9 V=a.4||a;9 n=7.4.q,k=n,i;o(n!=V.q){8 w}9 b=0,1D=0,1F=0;7.28(l(x,i){b+=x*V[i-1];1D+=x*x;1F+=V[i-1]*V[i-1]});1D=F.1x(1D);1F=F.1x(1F);o(1D*1F===0){8 w}9 c=b/(1D*1F);o(c<-1){c=-1}o(c>1){c=1}8 F.37(c)},1m:l(a){9 b=7.1C(a);8(b===w)?w:(b<=17.16)},34:l(a){9 b=7.1C(a);8(b===w)?w:(F.13(b-F.1A)<=17.16)},2k:l(a){9 b=7.2u(a);8(b===w)?w:(F.13(b)<=17.16)},2j:l(a){9 V=a.4||a;o(7.4.q!=V.q){8 w}8 7.1b(l(x,i){8 x+V[i-1]})},2C:l(a){9 V=a.4||a;o(7.4.q!=V.q){8 w}8 7.1b(l(x,i){8 x-V[i-1]})},22:l(k){8 7.1b(l(x){8 x*k})},x:l(k){8 7.22(k)},2u:l(a){9 V=a.4||a;9 i,2g=0,n=7.4.q;o(n!=V.q){8 w}J{2g+=7.4[n-1]*V[n-1]}H(--n);8 2g},2f:l(a){9 B=a.4||a;o(7.4.q!=3||B.q!=3){8 w}9 A=7.4;8 v.u([(A[1]*B[2])-(A[2]*B[1]),(A[2]*B[0])-(A[0]*B[2]),(A[0]*B[1])-(A[1]*B[0])])},2A:l(){9 m=0,n=7.4.q,k=n,i;J{i=k-n;o(F.13(7.4[i])>F.13(m)){m=7.4[i]}}H(--n);8 m},2Z:l(x){9 a=w,n=7.4.q,k=n,i;J{i=k-n;o(a===w&&7.4[i]==x){a=i+1}}H(--n);8 a},3g:l(){8 S.2X(7.4)},2d:l(){8 7.1b(l(x){8 F.2d(x)})},2V:l(x){8 7.1b(l(y){8(F.13(y-x)<=17.16)?x:y})},1o:l(a){o(a.K){8 a.1o(7)}9 V=a.4||a;o(V.q!=7.4.q){8 w}9 b=0,2b;7.28(l(x,i){2b=x-V[i-1];b+=2b*2b});8 F.1x(b)},3a:l(a){8 a.1h(7)},2T:l(a){8 a.1h(7)},1V:l(t,a){9 V,R,x,y,z;2S(7.4.q){27 2:V=a.4||a;o(V.q!=2){8 w}R=S.1R(t).4;x=7.4[0]-V[0];y=7.4[1]-V[1];8 v.u([V[0]+R[0][0]*x+R[0][1]*y,V[1]+R[1][0]*x+R[1][1]*y]);1I;27 3:o(!a.U){8 w}9 C=a.1r(7).4;R=S.1R(t,a.U).4;x=7.4[0]-C[0];y=7.4[1]-C[1];z=7.4[2]-C[2];8 v.u([C[0]+R[0][0]*x+R[0][1]*y+R[0][2]*z,C[1]+R[1][0]*x+R[1][1]*y+R[1][2]*z,C[2]+R[2][0]*x+R[2][1]*y+R[2][2]*z]);1I;2P:8 w}},1t:l(a){o(a.K){9 P=7.4.2O();9 C=a.1r(P).4;8 v.u([C[0]+(C[0]-P[0]),C[1]+(C[1]-P[1]),C[2]+(C[2]-(P[2]||0))])}1d{9 Q=a.4||a;o(7.4.q!=Q.q){8 w}8 7.1b(l(x,i){8 Q[i-1]+(Q[i-1]-x)})}},1N:l(){9 V=7.1q();2S(V.4.q){27 3:1I;27 2:V.4.19(0);1I;2P:8 w}8 V},2n:l(){8'['+7.4.2K(', ')+']'},26:l(a){7.4=(a.4||a).2O();8 7}};v.u=l(a){9 V=25 v();8 V.26(a)};v.i=v.u([1,0,0]);v.j=v.u([0,1,0]);v.k=v.u([0,0,1]);v.2J=l(n){9 a=[];J{a.19(F.2F())}H(--n);8 v.u(a)};v.1j=l(n){9 a=[];J{a.19(0)}H(--n);8 v.u(a)};l S(){}S.23={e:l(i,j){o(i<1||i>7.4.q||j<1||j>7.4[0].q){8 w}8 7.4[i-1][j-1]},33:l(i){o(i>7.4.q){8 w}8 v.u(7.4[i-1])},2E:l(j){o(j>7.4[0].q){8 w}9 a=[],n=7.4.q,k=n,i;J{i=k-n;a.19(7.4[i][j-1])}H(--n);8 v.u(a)},2R:l(){8{2D:7.4.q,1p:7.4[0].q}},2D:l(){8 7.4.q},1p:l(){8 7.4[0].q},24:l(a){9 M=a.4||a;o(1g(M[0][0])=='1f'){M=S.u(M).4}o(7.4.q!=M.q||7.4[0].q!=M[0].q){8 1L}9 b=7.4.q,15=b,i,G,10=7.4[0].q,j;J{i=15-b;G=10;J{j=10-G;o(F.13(7.4[i][j]-M[i][j])>17.16){8 1L}}H(--G)}H(--b);8 2x},1q:l(){8 S.u(7.4)},1b:l(a){9 b=[],12=7.4.q,15=12,i,G,10=7.4[0].q,j;J{i=15-12;G=10;b[i]=[];J{j=10-G;b[i][j]=a(7.4[i][j],i+1,j+1)}H(--G)}H(--12);8 S.u(b)},2i:l(a){9 M=a.4||a;o(1g(M[0][0])=='1f'){M=S.u(M).4}8(7.4.q==M.q&&7.4[0].q==M[0].q)},2j:l(a){9 M=a.4||a;o(1g(M[0][0])=='1f'){M=S.u(M).4}o(!7.2i(M)){8 w}8 7.1b(l(x,i,j){8 x+M[i-1][j-1]})},2C:l(a){9 M=a.4||a;o(1g(M[0][0])=='1f'){M=S.u(M).4}o(!7.2i(M)){8 w}8 7.1b(l(x,i,j){8 x-M[i-1][j-1]})},2B:l(a){9 M=a.4||a;o(1g(M[0][0])=='1f'){M=S.u(M).4}8(7.4[0].q==M.q)},22:l(a){o(!a.4){8 7.1b(l(x){8 x*a})}9 b=a.1u?2x:1L;9 M=a.4||a;o(1g(M[0][0])=='1f'){M=S.u(M).4}o(!7.2B(M)){8 w}9 d=7.4.q,15=d,i,G,10=M[0].q,j;9 e=7.4[0].q,4=[],21,20,c;J{i=15-d;4[i]=[];G=10;J{j=10-G;21=0;20=e;J{c=e-20;21+=7.4[i][c]*M[c][j]}H(--20);4[i][j]=21}H(--G)}H(--d);9 M=S.u(4);8 b?M.2E(1):M},x:l(a){8 7.22(a)},32:l(a,b,c,d){9 e=[],12=c,i,G,j;9 f=7.4.q,1p=7.4[0].q;J{i=c-12;e[i]=[];G=d;J{j=d-G;e[i][j]=7.4[(a+i-1)%f][(b+j-1)%1p]}H(--G)}H(--12);8 S.u(e)},31:l(){9 a=7.4.q,1p=7.4[0].q;9 b=[],12=1p,i,G,j;J{i=1p-12;b[i]=[];G=a;J{j=a-G;b[i][j]=7.4[j][i]}H(--G)}H(--12);8 S.u(b)},1y:l(){8(7.4.q==7.4[0].q)},2A:l(){9 m=0,12=7.4.q,15=12,i,G,10=7.4[0].q,j;J{i=15-12;G=10;J{j=10-G;o(F.13(7.4[i][j])>F.13(m)){m=7.4[i][j]}}H(--G)}H(--12);8 m},2Z:l(x){9 a=w,12=7.4.q,15=12,i,G,10=7.4[0].q,j;J{i=15-12;G=10;J{j=10-G;o(7.4[i][j]==x){8{i:i+1,j:j+1}}}H(--G)}H(--12);8 w},30:l(){o(!7.1y){8 w}9 a=[],n=7.4.q,k=n,i;J{i=k-n;a.19(7.4[i][i])}H(--n);8 v.u(a)},1K:l(){9 M=7.1q(),1c;9 n=7.4.q,k=n,i,1s,1n=7.4[0].q,p;J{i=k-n;o(M.4[i][i]==0){2e(j=i+1;j<k;j++){o(M.4[j][i]!=0){1c=[];1s=1n;J{p=1n-1s;1c.19(M.4[i][p]+M.4[j][p])}H(--1s);M.4[i]=1c;1I}}}o(M.4[i][i]!=0){2e(j=i+1;j<k;j++){9 a=M.4[j][i]/M.4[i][i];1c=[];1s=1n;J{p=1n-1s;1c.19(p<=i?0:M.4[j][p]-M.4[i][p]*a)}H(--1s);M.4[j]=1c}}}H(--n);8 M},3h:l(){8 7.1K()},2z:l(){o(!7.1y()){8 w}9 M=7.1K();9 a=M.4[0][0],n=M.4.q-1,k=n,i;J{i=k-n+1;a=a*M.4[i][i]}H(--n);8 a},3f:l(){8 7.2z()},2y:l(){8(7.1y()&&7.2z()===0)},2Y:l(){o(!7.1y()){8 w}9 a=7.4[0][0],n=7.4.q-1,k=n,i;J{i=k-n+1;a+=7.4[i][i]}H(--n);8 a},3e:l(){8 7.2Y()},1Y:l(){9 M=7.1K(),1Y=0;9 a=7.4.q,15=a,i,G,10=7.4[0].q,j;J{i=15-a;G=10;J{j=10-G;o(F.13(M.4[i][j])>17.16){1Y++;1I}}H(--G)}H(--a);8 1Y},3d:l(){8 7.1Y()},2W:l(a){9 M=a.4||a;o(1g(M[0][0])=='1f'){M=S.u(M).4}9 T=7.1q(),1p=T.4[0].q;9 b=T.4.q,15=b,i,G,10=M[0].q,j;o(b!=M.q){8 w}J{i=15-b;G=10;J{j=10-G;T.4[i][1p+j]=M[i][j]}H(--G)}H(--b);8 T},2w:l(){o(!7.1y()||7.2y()){8 w}9 a=7.4.q,15=a,i,j;9 M=7.2W(S.I(a)).1K();9 b,1n=M.4[0].q,p,1c,2v;9 c=[],2c;J{i=a-1;1c=[];b=1n;c[i]=[];2v=M.4[i][i];J{p=1n-b;2c=M.4[i][p]/2v;1c.19(2c);o(p>=15){c[i].19(2c)}}H(--b);M.4[i]=1c;2e(j=0;j<i;j++){1c=[];b=1n;J{p=1n-b;1c.19(M.4[j][p]-M.4[i][p]*M.4[j][i])}H(--b);M.4[j]=1c}}H(--a);8 S.u(c)},3c:l(){8 7.2w()},2d:l(){8 7.1b(l(x){8 F.2d(x)})},2V:l(x){8 7.1b(l(p){8(F.13(p-x)<=17.16)?x:p})},2n:l(){9 a=[];9 n=7.4.q,k=n,i;J{i=k-n;a.19(v.u(7.4[i]).2n())}H(--n);8 a.2K('\\n')},26:l(a){9 i,4=a.4||a;o(1g(4[0][0])!='1f'){9 b=4.q,15=b,G,10,j;7.4=[];J{i=15-b;G=4[i].q;10=G;7.4[i]=[];J{j=10-G;7.4[i][j]=4[i][j]}H(--G)}H(--b);8 7}9 n=4.q,k=n;7.4=[];J{i=k-n;7.4.19([4[i]])}H(--n);8 7}};S.u=l(a){9 M=25 S();8 M.26(a)};S.I=l(n){9 a=[],k=n,i,G,j;J{i=k-n;a[i]=[];G=k;J{j=k-G;a[i][j]=(i==j)?1:0}H(--G)}H(--n);8 S.u(a)};S.2X=l(a){9 n=a.q,k=n,i;9 M=S.I(n);J{i=k-n;M.4[i][i]=a[i]}H(--n);8 M};S.1R=l(b,a){o(!a){8 S.u([[F.1H(b),-F.1G(b)],[F.1G(b),F.1H(b)]])}9 d=a.1q();o(d.4.q!=3){8 w}9 e=d.1u();9 x=d.4[0]/e,y=d.4[1]/e,z=d.4[2]/e;9 s=F.1G(b),c=F.1H(b),t=1-c;8 S.u([[t*x*x+c,t*x*y-s*z,t*x*z+s*y],[t*x*y+s*z,t*y*y+c,t*y*z-s*x],[t*x*z-s*y,t*y*z+s*x,t*z*z+c]])};S.3b=l(t){9 c=F.1H(t),s=F.1G(t);8 S.u([[1,0,0],[0,c,-s],[0,s,c]])};S.39=l(t){9 c=F.1H(t),s=F.1G(t);8 S.u([[c,0,s],[0,1,0],[-s,0,c]])};S.38=l(t){9 c=F.1H(t),s=F.1G(t);8 S.u([[c,-s,0],[s,c,0],[0,0,1]])};S.2J=l(n,m){8 S.1j(n,m).1b(l(){8 F.2F()})};S.1j=l(n,m){9 a=[],12=n,i,G,j;J{i=n-12;a[i]=[];G=m;J{j=m-G;a[i][j]=0}H(--G)}H(--12);8 S.u(a)};l 14(){}14.23={24:l(a){8(7.1m(a)&&7.1h(a.K))},1q:l(){8 14.u(7.K,7.U)},2U:l(a){9 V=a.4||a;8 14.u([7.K.4[0]+V[0],7.K.4[1]+V[1],7.K.4[2]+(V[2]||0)],7.U)},1m:l(a){o(a.W){8 a.1m(7)}9 b=7.U.1C(a.U);8(F.13(b)<=17.16||F.13(b-F.1A)<=17.16)},1o:l(a){o(a.W){8 a.1o(7)}o(a.U){o(7.1m(a)){8 7.1o(a.K)}9 N=7.U.2f(a.U).2q().4;9 A=7.K.4,B=a.K.4;8 F.13((A[0]-B[0])*N[0]+(A[1]-B[1])*N[1]+(A[2]-B[2])*N[2])}1d{9 P=a.4||a;9 A=7.K.4,D=7.U.4;9 b=P[0]-A[0],2a=P[1]-A[1],29=(P[2]||0)-A[2];9 c=F.1x(b*b+2a*2a+29*29);o(c===0)8 0;9 d=(b*D[0]+2a*D[1]+29*D[2])/c;9 e=1-d*d;8 F.13(c*F.1x(e<0?0:e))}},1h:l(a){9 b=7.1o(a);8(b!==w&&b<=17.16)},2T:l(a){8 a.1h(7)},1v:l(a){o(a.W){8 a.1v(7)}8(!7.1m(a)&&7.1o(a)<=17.16)},1U:l(a){o(a.W){8 a.1U(7)}o(!7.1v(a)){8 w}9 P=7.K.4,X=7.U.4,Q=a.K.4,Y=a.U.4;9 b=X[0],1z=X[1],1B=X[2],1T=Y[0],1S=Y[1],1M=Y[2];9 c=P[0]-Q[0],2s=P[1]-Q[1],2r=P[2]-Q[2];9 d=-b*c-1z*2s-1B*2r;9 e=1T*c+1S*2s+1M*2r;9 f=b*b+1z*1z+1B*1B;9 g=1T*1T+1S*1S+1M*1M;9 h=b*1T+1z*1S+1B*1M;9 k=(d*g/f+h*e)/(g-h*h);8 v.u([P[0]+k*b,P[1]+k*1z,P[2]+k*1B])},1r:l(a){o(a.U){o(7.1v(a)){8 7.1U(a)}o(7.1m(a)){8 w}9 D=7.U.4,E=a.U.4;9 b=D[0],1l=D[1],1k=D[2],1P=E[0],1O=E[1],1Q=E[2];9 x=(1k*1P-b*1Q),y=(b*1O-1l*1P),z=(1l*1Q-1k*1O);9 N=v.u([x*1Q-y*1O,y*1P-z*1Q,z*1O-x*1P]);9 P=11.u(a.K,N);8 P.1U(7)}1d{9 P=a.4||a;o(7.1h(P)){8 v.u(P)}9 A=7.K.4,D=7.U.4;9 b=D[0],1l=D[1],1k=D[2],1w=A[0],18=A[1],1a=A[2];9 x=b*(P[1]-18)-1l*(P[0]-1w),y=1l*((P[2]||0)-1a)-1k*(P[1]-18),z=1k*(P[0]-1w)-b*((P[2]||0)-1a);9 V=v.u([1l*x-1k*z,1k*y-b*x,b*z-1l*y]);9 k=7.1o(P)/V.1u();8 v.u([P[0]+V.4[0]*k,P[1]+V.4[1]*k,(P[2]||0)+V.4[2]*k])}},1V:l(t,a){o(1g(a.U)=='1f'){a=14.u(a.1N(),v.k)}9 R=S.1R(t,a.U).4;9 C=a.1r(7.K).4;9 A=7.K.4,D=7.U.4;9 b=C[0],1E=C[1],1J=C[2],1w=A[0],18=A[1],1a=A[2];9 x=1w-b,y=18-1E,z=1a-1J;8 14.u([b+R[0][0]*x+R[0][1]*y+R[0][2]*z,1E+R[1][0]*x+R[1][1]*y+R[1][2]*z,1J+R[2][0]*x+R[2][1]*y+R[2][2]*z],[R[0][0]*D[0]+R[0][1]*D[1]+R[0][2]*D[2],R[1][0]*D[0]+R[1][1]*D[1]+R[1][2]*D[2],R[2][0]*D[0]+R[2][1]*D[1]+R[2][2]*D[2]])},1t:l(a){o(a.W){9 A=7.K.4,D=7.U.4;9 b=A[0],18=A[1],1a=A[2],2N=D[0],1l=D[1],1k=D[2];9 c=7.K.1t(a).4;9 d=b+2N,2h=18+1l,2o=1a+1k;9 Q=a.1r([d,2h,2o]).4;9 e=[Q[0]+(Q[0]-d)-c[0],Q[1]+(Q[1]-2h)-c[1],Q[2]+(Q[2]-2o)-c[2]];8 14.u(c,e)}1d o(a.U){8 7.1V(F.1A,a)}1d{9 P=a.4||a;8 14.u(7.K.1t([P[0],P[1],(P[2]||0)]),7.U)}},1Z:l(a,b){a=v.u(a);b=v.u(b);o(a.4.q==2){a.4.19(0)}o(b.4.q==2){b.4.19(0)}o(a.4.q>3||b.4.q>3){8 w}9 c=b.1u();o(c===0){8 w}7.K=a;7.U=v.u([b.4[0]/c,b.4[1]/c,b.4[2]/c]);8 7}};14.u=l(a,b){9 L=25 14();8 L.1Z(a,b)};14.X=14.u(v.1j(3),v.i);14.Y=14.u(v.1j(3),v.j);14.Z=14.u(v.1j(3),v.k);l 11(){}11.23={24:l(a){8(7.1h(a.K)&&7.1m(a))},1q:l(){8 11.u(7.K,7.W)},2U:l(a){9 V=a.4||a;8 11.u([7.K.4[0]+V[0],7.K.4[1]+V[1],7.K.4[2]+(V[2]||0)],7.W)},1m:l(a){9 b;o(a.W){b=7.W.1C(a.W);8(F.13(b)<=17.16||F.13(F.1A-b)<=17.16)}1d o(a.U){8 7.W.2k(a.U)}8 w},2k:l(a){9 b=7.W.1C(a.W);8(F.13(F.1A/2-b)<=17.16)},1o:l(a){o(7.1v(a)||7.1h(a)){8 0}o(a.K){9 A=7.K.4,B=a.K.4,N=7.W.4;8 F.13((A[0]-B[0])*N[0]+(A[1]-B[1])*N[1]+(A[2]-B[2])*N[2])}1d{9 P=a.4||a;9 A=7.K.4,N=7.W.4;8 F.13((A[0]-P[0])*N[0]+(A[1]-P[1])*N[1]+(A[2]-(P[2]||0))*N[2])}},1h:l(a){o(a.W){8 w}o(a.U){8(7.1h(a.K)&&7.1h(a.K.2j(a.U)))}1d{9 P=a.4||a;9 A=7.K.4,N=7.W.4;9 b=F.13(N[0]*(A[0]-P[0])+N[1]*(A[1]-P[1])+N[2]*(A[2]-(P[2]||0)));8(b<=17.16)}},1v:l(a){o(1g(a.U)=='1f'&&1g(a.W)=='1f'){8 w}8!7.1m(a)},1U:l(a){o(!7.1v(a)){8 w}o(a.U){9 A=a.K.4,D=a.U.4,P=7.K.4,N=7.W.4;9 b=(N[0]*(P[0]-A[0])+N[1]*(P[1]-A[1])+N[2]*(P[2]-A[2]))/(N[0]*D[0]+N[1]*D[1]+N[2]*D[2]);8 v.u([A[0]+D[0]*b,A[1]+D[1]*b,A[2]+D[2]*b])}1d o(a.W){9 c=7.W.2f(a.W).2q();9 N=7.W.4,A=7.K.4,O=a.W.4,B=a.K.4;9 d=S.1j(2,2),i=0;H(d.2y()){i++;d=S.u([[N[i%3],N[(i+1)%3]],[O[i%3],O[(i+1)%3]]])}9 e=d.2w().4;9 x=N[0]*A[0]+N[1]*A[1]+N[2]*A[2];9 y=O[0]*B[0]+O[1]*B[1]+O[2]*B[2];9 f=[e[0][0]*x+e[0][1]*y,e[1][0]*x+e[1][1]*y];9 g=[];2e(9 j=1;j<=3;j++){g.19((i==j)?0:f[(j+(5-i)%3)%3])}8 14.u(g,c)}},1r:l(a){9 P=a.4||a;9 A=7.K.4,N=7.W.4;9 b=(A[0]-P[0])*N[0]+(A[1]-P[1])*N[1]+(A[2]-(P[2]||0))*N[2];8 v.u([P[0]+N[0]*b,P[1]+N[1]*b,(P[2]||0)+N[2]*b])},1V:l(t,a){9 R=S.1R(t,a.U).4;9 C=a.1r(7.K).4;9 A=7.K.4,N=7.W.4;9 b=C[0],1E=C[1],1J=C[2],1w=A[0],18=A[1],1a=A[2];9 x=1w-b,y=18-1E,z=1a-1J;8 11.u([b+R[0][0]*x+R[0][1]*y+R[0][2]*z,1E+R[1][0]*x+R[1][1]*y+R[1][2]*z,1J+R[2][0]*x+R[2][1]*y+R[2][2]*z],[R[0][0]*N[0]+R[0][1]*N[1]+R[0][2]*N[2],R[1][0]*N[0]+R[1][1]*N[1]+R[1][2]*N[2],R[2][0]*N[0]+R[2][1]*N[1]+R[2][2]*N[2]])},1t:l(a){o(a.W){9 A=7.K.4,N=7.W.4;9 b=A[0],18=A[1],1a=A[2],2M=N[0],2L=N[1],2Q=N[2];9 c=7.K.1t(a).4;9 d=b+2M,2p=18+2L,2m=1a+2Q;9 Q=a.1r([d,2p,2m]).4;9 e=[Q[0]+(Q[0]-d)-c[0],Q[1]+(Q[1]-2p)-c[1],Q[2]+(Q[2]-2m)-c[2]];8 11.u(c,e)}1d o(a.U){8 7.1V(F.1A,a)}1d{9 P=a.4||a;8 11.u(7.K.1t([P[0],P[1],(P[2]||0)]),7.W)}},1Z:l(a,b,c){a=v.u(a);a=a.1N();o(a===w){8 w}b=v.u(b);b=b.1N();o(b===w){8 w}o(1g(c)=='1f'){c=w}1d{c=v.u(c);c=c.1N();o(c===w){8 w}}9 d=a.4[0],18=a.4[1],1a=a.4[2];9 e=b.4[0],1W=b.4[1],1X=b.4[2];9 f,1i;o(c!==w){9 g=c.4[0],2l=c.4[1],2t=c.4[2];f=v.u([(1W-18)*(2t-1a)-(1X-1a)*(2l-18),(1X-1a)*(g-d)-(e-d)*(2t-1a),(e-d)*(2l-18)-(1W-18)*(g-d)]);1i=f.1u();o(1i===0){8 w}f=v.u([f.4[0]/1i,f.4[1]/1i,f.4[2]/1i])}1d{1i=F.1x(e*e+1W*1W+1X*1X);o(1i===0){8 w}f=v.u([b.4[0]/1i,b.4[1]/1i,b.4[2]/1i])}7.K=a;7.W=f;8 7}};11.u=l(a,b,c){9 P=25 11();8 P.1Z(a,b,c)};11.2I=11.u(v.1j(3),v.k);11.2H=11.u(v.1j(3),v.i);11.2G=11.u(v.1j(3),v.j);11.36=11.2I;11.35=11.2H;11.3j=11.2G;9 $V=v.u;9 $M=S.u;9 $L=14.u;9 $P=11.u;",62,206,"||||elements|||this|return|var||||||||||||function|||if||length||||create|Vector|null|||||||||Math|nj|while||do|anchor||||||||Matrix||direction||normal||||kj|Plane|ni|abs|Line|ki|precision|Sylvester|A2|push|A3|map|els|else||undefined|typeof|contains|mod|Zero|D3|D2|isParallelTo|kp|distanceFrom|cols|dup|pointClosestTo|np|reflectionIn|modulus|intersects|A1|sqrt|isSquare|X2|PI|X3|angleFrom|mod1|C2|mod2|sin|cos|break|C3|toRightTriangular|false|Y3|to3D|E2|E1|E3|Rotation|Y2|Y1|intersectionWith|rotate|v12|v13|rank|setVectors|nc|sum|multiply|prototype|eql|new|setElements|case|each|PA3|PA2|part|new_element|round|for|cross|product|AD2|isSameSizeAs|add|isPerpendicularTo|v22|AN3|inspect|AD3|AN2|toUnitVector|PsubQ3|PsubQ2|v23|dot|divisor|inverse|true|isSingular|determinant|max|canMultiplyFromLeft|subtract|rows|col|random|ZX|YZ|XY|Random|join|N2|N1|D1|slice|default|N3|dimensions|switch|liesIn|translate|snapTo|augment|Diagonal|trace|indexOf|diagonal|transpose|minor|row|isAntiparallelTo|ZY|YX|acos|RotationZ|RotationY|liesOn|RotationX|inv|rk|tr|det|toDiagonalMatrix|toUpperTriangular|version|XZ".split("|"),0,{})),eval(function(e,t,i,s,a,r){if(a=function(e){return(t>e?"":a(parseInt(e/t)))+((e%=t)>35?String.fromCharCode(e+29):e.toString(36))},!"".replace(/^/,String)){for(;i--;)r[a(i)]=s[i]||a(i)
s=[function(e){return r[e]}],a=function(){return"\\w+"},i=1}for(;i--;)s[i]&&(e=e.replace(RegExp("\\b"+a(i)+"\\b","g"),s[i]))
return e}(";5(10.M)(w($){$.N({11:w(j,k){5(!j)t{};w B(d,e){5(!d)t y;6 f='',2=y,E=y;6 g=d.x,12=l(d.O||d.P);6 h=d.v||d.F||'';5(d.G){5(d.G.7>0){$.Q(d.G,w(n,a){6 b=a.x,u=l(a.O||a.P);6 c=a.v||a.F||'';5(b==8){t}z 5(b==3||b==4||!u){5(c.13(/^\\s+$/)){t};f+=c.H(/^\\s+/,'').H(/\\s+$/,'')}z{2=2||{};5(2[u]){5(!2[u].7)2[u]=p(2[u]);2[u][2[u].7]=B(a,R);2[u].7=2[u].7}z{2[u]=B(a)}}})}};5(d.I){5(d.I.7>0){E={};2=2||{};$.Q(d.I,w(a,b){6 c=l(b.14),C=b.15;E[c]=C;5(2[c]){5(!2[c].7)2[c]=p(2[c]);2[c][2[c].7]=C;2[c].7=2[c].7}z{2[c]=C}})}};5(2){2=$.N((f!=''?A J(f):{}),2||{});f=(2.v)?(D(2.v)=='16'?2.v:[2.v||'']).17([f]):f;5(f)2.v=f;f=''};6 i=2||f;5(k){5(f)i={};f=i.v||f||'';5(f)i.v=f;5(!e)i=p(i)};t i};6 l=w(s){t J(s||'').H(/-/g,\"18\")};6 m=w(s){t(D s==\"19\")||J((s&&D s==\"K\")?s:'').1a(/^((-)?([0-9]*)((\\.{0,1})([0-9]+))?$)/)};6 p=w(o){5(!o.7)o=[o];o.7=o.7;t o};5(D j=='K')j=$.S(j);5(!j.x)t;5(j.x==3||j.x==4)t j.F;6 q=(j.x==9)?j.1b:j;6 r=B(q,R);j=y;q=y;t r},S:w(a){6 b;T{6 c=($.U.V)?A 1c(\"1d.1e\"):A 1f();c.1g=W}X(e){Y A L(\"Z 1h 1i 1j 1k 1l\")};T{5($.U.V)b=(c.1m(a))?c:W;z b=c.1n(a,\"v/1o\")}X(e){Y A L(\"L 1p Z K\")};t b}})})(M);",62,88,"||obj|||if|var|length||||||||||||||||||||||return|cnn|text|function|nodeType|null|else|new|parseXML|atv|typeof|att|nodeValue|childNodes|replace|attributes|String|string|Error|jQuery|extend|localName|nodeName|each|true|text2xml|try|browser|msie|false|catch|throw|XML|window|xml2json|nn|match|name|value|object|concat|_|number|test|documentElement|ActiveXObject|Microsoft|XMLDOM|DOMParser|async|Parser|could|not|be|instantiated|loadXML|parseFromString|xml|parsing".split("|"),0,{}))
var imgLogo="0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11e1c387,90f1ca95,e0f2c791,61efc088,0,0,0,0,0,0,0,0,11e1b487,90f1bf8a,e0f0b982,61efb279,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,71f3d2a2,f0f3cf9d,fff5cd99,fff5c992,fff5c38c,c0f2bd83,31eab67d,0,0,0,0,0,71f3d4a5,f0f3ce9b,fff5c892,fff4c088,fff3b97e,c0efaf74,31eaa668,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,41f3d8ad,d0f3d7aa,fff7d6a6,fff6d29f,fff5cd99,fff5c992,fff5c38c,fff4bf86,fff3bb80,a0efb479,11e1a569,0,41f3e0b4,d0f5e0b6,fff7dcaf,fff7d5a4,fff5cd99,fff5c48e,fff3bd84,fff3b67a,fff1af71,a0edac6c,11e1965a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,81d38477,fff8dfb3,fff7daac,fff7d6a6,fff6d29f,fff5cd99,fff5c992,fff5c38c,fff4bf86,fff3bb80,fff3b67b,f0efb074,b0da9177,fff8e5bb,fff8e5bb,fff8e1b6,fff7d9aa,fff6d29f,fff5ca94,fff4c28a,fff3ba80,fff2b376,fff1ae6f,f0eeac6d,51e68e5e,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0b12a38,ffc04d4f,ffe6ae8f,fff7d6a6,fff6d29f,fff5cd99,fff5c992,fff5c38c,fff4bf86,fff3bb80,fff0a772,ffdf5845,ffba2b36,ffc04f51,ffe7b69b,fff8e4ba,fff8deb1,fff7d6a6,fff6cf9b,fff5c790,fff4bf86,fff3b77c,ffefa26b,ffdf5643,81ce262b,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0b12a38,ffb32c39,ffb32c39,ffc9615b,ffeebc92,fff5cd99,fff5c992,fff5c38c,fff3b982,fff0865e,ffe34938,ffd7302f,ffba2b36,ffb32c39,ffb32c39,ffc96662,fff0cba7,fff7dbad,fff6d3a1,fff5cb96,fff4bd88,fff0875e,ffe34938,ffd7302f,81ce262b,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0b12a38,ffb32c39,ffb32c39,ffb32c39,ffb7363f,ffd57c68,fff1be8d,fff4ad7e,fff37453,ffee543c,ffe24234,ffd7302f,ffba2b36,ffb32c39,ffb32c39,ffb32c39,ffb73741,ffd68475,fff3cda1,fff5b589,fff37555,ffee543c,ffe24234,ffd7302f,81ce262b,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0b12a38,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffd56157,fff47f62,fff36a4d,ffee543c,ffe24234,ffd7302f,ffba2b36,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffd56259,fff47f62,fff36a4d,ffee543c,ffe24234,ffd7302f,81ce262b,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0b12a38,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffd55d55,fff47f62,fff36a4d,ffee543c,ffe24234,ffd7302f,ffba2b36,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffd55d55,fff47f62,fff36a4d,ffee543c,ffe24234,ffd7302f,81ce262b,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0b12a38,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffd55d55,fff47f62,fff36a4d,ffee543c,ffe24234,ffd7302f,ffba2b36,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffd55d55,fff47f62,fff36a4d,ffee543c,ffe24234,ffd7302f,81ce262b,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11d25a4b,d0bb383d,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffd55d55,fff47f62,fff36a4d,ffee543c,ffe24234,ffd7302f,ffba2b36,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffd55d55,fff47f62,fff36a4d,ffee543c,ffe24234,ffd7302f,71cd242b,0,0,0,0,0,0,0,0,0,0,0,0,0,61e77e61,f0e57559,ffe56c54,ffd65648,ffb8323b,ffb32c39,ffb32c39,ffb32c39,ffd55d55,fff47f62,fff36a4d,ffee543c,f0e04133,61d52f2d,11a51e2d,90af2a37,ffb32c39,ffb32c39,ffb32c39,ffb32c39,ffd55d55,fff47f62,fff36a4d,ffee543c,f0e04133,61d52f2d,0,0,0,0,0,0,0,0,0,0,0,0,31ef8c72,c0f08b70,ffef8469,ffeb7b60,ffe77258,ffe36850,ffe05e49,ffcb433e,ffb52e39,ffb32c39,ffd55d55,fff47f62,fff36a4d,81eb533b,11d23c2d,0,0,0,31ac2a34,c0b12a38,ffb32c39,ffb32c39,ffd55d55,fff47f62,fff36a4d,81eb533b,11d23c2d,0,0,0,0,0,0,0,0,0,0,0,11e18769,a0f29376,fff69578,fff59276,fff18a6d,ffed8065,ffe9775d,ffe56e55,ffe2644d,ffde5945,ffd84d3e,ffc03639,ffd55d55,c0f27f61,21e8644d,0,0,0,0,0,0,0,61b02a37,e0b02b38,ffd55d55,c0f27f61,21e8644d,0,0,0,0,0,0,0,0,0,0,0,0,0,c0ab304a,ffdb7068,fff69578,fff69578,fff38f72,ffef856a,ffeb7c61,ffe77359,ffe46951,ffe05f4a,ffdc5542,ffd4483b,90b83939,0,0,0,0,0,0,0,0,0,0,11a51e2d,31c14949,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0870035,ff8a0036,ffb2374f,ffef8c74,fff59376,fff28b6f,ffed8166,ffe9785e,ffe66f56,ffe2654e,ffc0413c,ffa12732,819a242f,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0870035,ff8a0036,ff8a0036,ff91093a,ffbf4a57,fff49073,fff0876b,ffec7d62,ffdc6453,ffb5353b,ffa62934,ff9f2632,819a242f,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0870035,ff8a0036,ff8a0036,ff8a0036,ff8a0036,ff97123e,ffda675f,ffd3504d,ffbc343d,ffb3303a,ffaa2b36,ffa22833,819a242f,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0870035,ff8a0036,ff8a0036,ff8a0036,ff8a0036,ff8a0036,ffae203e,ffcc3c43,ffc1373f,ffb7323b,ffae2d38,ffa62934,819e2631,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0870035,ff8a0036,ff8a0036,ff8a0036,ff8a0036,ff8a0036,ffb1223f,ffd03f45,ffc73a41,ffbc343d,ffb32f3a,ffaa2b36,81a22831,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0870035,ff8a0036,ff8a0036,ff8a0036,ff8a0036,ff8a0036,ffb42340,ffd64247,ffcb3c43,ffc0373f,ffb7323b,ffae2d38,81a62a33,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,81880035,ff8a0036,ff8a0036,ff8a0036,ff8a0036,ff8a0036,ffb72441,ffdc4549,ffd03f44,ffc53940,ffbb343d,ffb16a7c,d0a9afcc,31a1c1e0,0,0,0,0,0,0,0,0,0,71abc9e6,b0a8c7e6,41a1c4e3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,41850033,d0880035,ff8a0036,ff8a0036,ff8a0036,ffba2642,ffe1484b,ffd54246,ffc7616d,ffb7b2cc,ffb0cdec,ffabcaea,ffa6c7e9,909fbfe4,1187b4d2,0,0,0,0,0,41b4cce7,d0b3cde8,ffb0cdec,ffabcaea,ffa6c7e9,a09ec1e5,1187b4d2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,61860034,f0880035,ff8a0036,ffbc2743,ffe35d62,ffca9fb0,ffbad3ee,ffb5d0ed,ffb0cdec,ffabcaea,ffa6c7e9,ffa1c3e8,f09abee3,7195bbe1,0,0,21b9d1e8,b0bcd3ec,ffbad3ee,ffb5d0ed,ffb0cdec,ffabcaea,ffa6c7e9,ffa1c3e8,f09abee3,7195bbe1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1178002d,90880035,ffa05a78,ffc8d1e7,ffbfd6f0,ffbad3ee,ffb5d0ed,ffb0cdec,ffabcaea,ffa6c7e9,ffa1c3e8,ff9cc0e6,ff98bee5,d090bae2,908eacc6,f0c2d8ee,ffbfd6f0,ffbad3ee,ffb5d0ed,ffb0cdec,ffabcaea,ffa6c7e9,ffa1c3e8,ff9cc0e6,ff98bee5,e091b9e2,318cb1db,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0033249,ff3f677e,ffa8c1db,ffbad3ee,ffb5d0ed,ffb0cdec,ffabcaea,ffa6c7e9,ffa1c3e8,ff9cc0e6,ff98bee5,ff4988ba,ff0c4161,ff3f677e,ffa8c1db,ffbad3ee,ffb5d0ed,ffb0cdec,ffabcaea,ffa6c7e9,ffa1c3e8,ff9cc0e6,ff8eb8e0,ff4988ba,81004d8a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0033249,ff04334b,ff103d55,ff5e829c,ffb5d0ed,ffb0cdec,ffabcaea,ffa6c7e9,ffa1c3e8,ff6ea4d0,ff1369a0,ff005591,ff033a5b,ff04334b,ff04334b,ff5e829c,ffaac5e2,ffb0cdec,ffabcaea,ffa6c7e9,ffa1c3e8,ff6ea4d0,ff1369a0,ff005591,81004d8a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0033249,ff04334b,ff04334b,ff04334b,ff19465f,ff7a9cb9,ffabcaea,ff99bce1,ff4985b5,ff10669e,ff005d97,ff005591,ff033a5b,ff04334b,ff04334b,ff04334b,ff19465f,ff7a9cb9,ffabcaea,ff93b7dd,ff4985b5,ff10669e,ff005d97,ff005591,81004d8a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0033249,ff04334b,ff04334b,ff04334b,ff04334b,ff04334b,ff447092,ff4279ac,ff2d71a5,ff10669e,ff005d97,ff005591,ff033a5b,ff04334b,ff04334b,ff04334b,ff04334b,ff04334b,ff3e6b8e,ff4279ac,ff2d71a5,ff10669e,ff005d97,ff005591,81004d8a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0033249,ff04334b,ff04334b,ff04334b,ff04334b,ff04334b,ff28597e,ff4279ac,ff2d71a5,ff10669e,ff005d97,ff005591,ff033a5b,ff04334b,ff04334b,ff04334b,ff04334b,ff04334b,ff28597e,ff4279ac,ff2d71a5,ff10669e,ff005d97,ff005591,81004d8a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0033249,ff04334b,ff04334b,ff04334b,ff04334b,ff04334b,ff28597e,ff4279ac,ff2d71a5,ff10669e,ff005d97,ff005591,ff033a5b,ff04334b,ff04334b,ff04334b,ff04334b,ff04334b,ff28597e,ff4279ac,ff2d71a5,ff10669e,ff005d97,ff005591,81004d8a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c0033249,ff04334b,ff04334b,ff04334b,ff04334b,ff04334b,ff28597e,ff4279ac,ff2d71a5,ff10669e,ff005d97,ff005591,ff033a5b,ff04334b,ff04334b,ff04334b,ff04334b,ff04334b,ff28597e,ff4279ac,ff2d71a5,ff10669e,ff005d97,ff005591,81004d8a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31002f49,c0033249,ff04334b,ff04334b,ff04334b,ff04334b,ff28597e,ff4279ac,ff2d71a5,ff10669e,ff005d97,8100558e,41003756,c0033249,ff04334b,ff04334b,ff04334b,ff04334b,ff28597e,ff4279ac,ff2d71a5,ff10669e,ff005d97,8100558e,11004b78,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,61033249,e003324a,ff04334b,ff04334b,ff28597e,ff4279ac,ff2d71a5,c011659d,21005593,0,0,0,51032f48,e003324a,ff04334b,ff04334b,ff28597e,ff4279ac,ff2d71a5,b011659c,21005593,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11002d3c,81043149,ff04334b,ff28597e,e04277a9,512f6ea0,0,0,0,0,0,0,11002d3c,81043149,f003324a,ff28597e,e04277a9,412f6ea1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21002e46,71225173,0,0,0,0,0,0,0,0,0,0,21002e46,71225173,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0",CU3ERPlayer={stage:"#cu3er",slides:".CU3ERslides",json:null,jsonOriginal:null,slidesTotal:0,imgFallbackFolder:null,no:0,xml:null,current:0,nextSlide:0,rnd:null,transition:null,originalJSONelements:null,elements:null,tempTimeout:Array(),randomise:"false",a:0,licenceEncoded:null,globald:"",slicesDirections:{},totalInd:3,images:null,autoplay:!1,loop:0,doCheck:!0,licd:Array(),mOver:!1,currentLoop:1,debugMode:!1,canvasSupported:!1,paused:!1,pauseType:0,inTransition:!0,directionReverse:!1,keyboardControls:!0,rollOverPause:!1,disable3d:!1,touchable:!1,displayVersion:null,pauseStartTimer:null,autoscrollThumbs:!0,time:null,licenseStr:"",level:2,devices_2d:["CPU OS 3_2","CPU OS 3_3","CPU OS 3_4","CPU OS 3_5","CPU OS 3_6","CPU OS 3_7","CPU OS 3_8","CPU OS 3_9","CPU OS 4_0","CPU OS 4_1","CPU OS 4_2","Fennec","Android"],simple_devices:["Android 2.1","Android 1.6","Android 1.5","Apple-iPhone1C2","Apple-iPhone/50"," Apple-iPhone/701"," Apple-iPhone/703"],nextFlag:!0,verySlow:!1,force_simple:!1,timerShader:1,scrollOptions:Object(),easingValues:{"Sine.easeInOut":"easeInOutSine","Sine.easeOut":"easeOutSine","Sine.easeIn":"easeInSine","Bounce.easeOut":"easeOutBounce","Bounce.easeInOut":"easeInOutBounce","Bounce.easeIn":"easeInBounce","Elastic.easeOut":"easeOutElastic","Elastic.easeInOut":"easeInOutElastic","Elastic.easeIn":"easeInElastic","Expo.easeOut":"easeOutExpo","Expo.easeInOut":"easeInOutExpo","Expo.easeIn":"easeInExpo","Sine.easeIn.3d":"cubic-bezier(0.42, 0, 1, 1)","Sine.easeOut.3d":"cubic-bezier(0, 0, 0.58, 1)","Sine.easeInOut.3d":"cubic-bezier(0.42, 0, 0.58, 1)","Elastic.easeIn.3d":"cubic-bezier(0.5, 0, 1, 0)","Elastic.easeOut.3d":"cubic-bezier(1, 0, 0.5, 1)","Elastic.easeInOut.3d":"cubic-bezier(1, 0, 0.7, 1)","Bounce.easeIn.3d":"cubic-bezier(0, 0.35, .5, 1)","Bounce.easeOut.3d":"cubic-bezier(0, 0.5, 0.35, 1)","Bounce.easeInOut.3d":"cubic-bezier(0, 0.7, 0, 1)","Expo.easeIn.3d":"cubic-bezier(0.5, 0, 0.7, 0)","Expo.easeOut.3d":"cubic-bezier(1, 0, 0.5, 1)","Expo.easeInOut.3d":"cubic-bezier(1, 0.3, 0, 1)"},initJS:function(e){var t=this.id
this.el
var s=jQuery("script"),a=RegExp(/jquery\.cu3er\.js/gi),r=null
s.each(function(){a.test(jQuery(this).attr("src"))&&(r=jQuery(this))})
var n,o,l,d,c,h,p=new Date,u=""
if(n=p.getDate,o=n.call(p),u=CU3ER[t].addDigit(o+""),l=p.getMonth,d=l.call(p),u=CU3ER[t].addDigit(d+1+"")+u,c=p.getFullYear,h=c.call(p),u=h+""+u,CU3ER[t].globald=u,e.vars.css_location!==void 0&&""!=e.vars.css_location)var f=e.vars.css_location
else var f=r.attr("src").replace(/js\/jquery\.cu3er\.js/,"")+"css/CU3ER.css"
var g=document.createElement("link")
if(g.setAttribute("rel","stylesheet"),g.setAttribute("type","text/css"),g.setAttribute("href",f),document.getElementsByTagName("head")[0].appendChild(g),e.vars.js_font_links!==void 0)for(i in e.vars.js_font_links){var g=document.createElement("link")
g.setAttribute("rel","stylesheet"),g.setAttribute("type","text/css"),g.setAttribute("href",e.vars.js_font_links[i]),document.getElementsByTagName("head")[0].appendChild(g)}if(jQuery.browser.msie){if(e.vars.css_location!==void 0&&""!=e.vars.css_location)var f=e.vars.css_location.replace(/\.css/,"ieFix.css")
else var f=r.attr("src").replace(/js\/jquery\.cu3er\.js/,"")+"css/CU3ERieFix.css"
var g=document.createElement("link")
g.setAttribute("rel","stylesheet"),g.setAttribute("type","text/css"),g.setAttribute("href",f),document.getElementsByTagName("head")[0].appendChild(g)}this.debugMode=e.vars.debug!==void 0?e.vars.debug:!1,this.stage="#"+t,this.slides=this.stage+" .CU3ERslides",this.disable3d=e.vars.js_disable_3d!==void 0&&1==e.vars.js_disable_3d?!0:!1,this.checkTouch(),this.keyboardControls=e.vars.keyboard_controls!==void 0&&0==e.vars.keyboard_controls?!1:!0,this.checkCanvas(),jQuery(this.stage).css("margin","0 auto").empty().append('<div class="CU3ERlayer"></div><div class="CU3ERslides"><div class="CU3ERbox-holder"><div class="CU3ERbox"></div></div><div class="CU3ERslides-holder"></div><div class="CU3ERtransition-holder"></div></div>').css({"z-index":400}),jQuery(this.stage+" .CU3ERlayer").css({position:"absolute",top:0,left:0,width:"100%",height:"100%","z-index":1e3,display:"block"}),"object"==typeof e.vars.force_2d_devices&&(this.devices_2d=jQuery.extend(!0,{},this.devices_2d,e.vars.force_2d_devices))
for(i in this.devices_2d)-1!=navigator.userAgent.toLowerCase().indexOf((this.devices_2d[i]+"").toLowerCase())&&-1==navigator.userAgent.toLowerCase().indexOf(("Android 4"+"").toLowerCase())&&(CU3ER[t].level=1,CU3ER[t].support3d=!1)
"object"==typeof e.vars.force_simple_devices&&(this.simple_devices=jQuery.extend(!0,{},this.simple_devices,e.vars.force_simple_devices))
for(i in this.simple_devices)-1!=navigator.userAgent.toLowerCase().indexOf((this.simple_devices[i]+"").toLowerCase())&&(CU3ER[t].level=0,CU3ER[t].support3d=!1,CU3ER[t].force_simple=!0)
if(e.vars.force_2d!==void 0&&1==e.vars.force_2d&&(CU3ER[t].level=1,this.support3d=!1),e.vars.force_simple!==void 0&&1==e.vars.force_simple&&(CU3ER[t].level=0,this.support3d=!1,this.force_simple=!0),-1!=navigator.userAgent.toLowerCase().indexOf(("iPhone"+"").toLowerCase())){for(var m=(new Date).getTime(),b=0;20>(new Date).getTime()-m;)Math.random(),b++
this.force_simple=1300>b,this.force_simple&&(CU3ER[t].level=0,CU3ER[t].support3d=!1,CU3ER[t].verySlow=!0)}if(e.vars.xml_location!==void 0&&""!=e.vars.xml_location)jQuery.get(e.vars.xml_location,function(i){setTimeout(function(){CU3ER[t].initPlayer(i,e)},75)})
else{var C=this.decodeXML(e.vars.xml_encoded),v=RegExp(/\+/g)
C=C.replace(v," "),setTimeout(function(){CU3ER[t].initPlayer(C,e)},75)}},decodeXML:function(e){this.id,this.el,arr=e.split("%3C%21%5BCDATA%5B"),arrFinal=Array(),arrFinal.push(decodeURIComponent(arr[0]))
for(var t=function(e){arrPerc=e.split("%25")
for(var t=0;arrPerc.length>t;t++)arrPerc[t]=decodeURIComponent(arrPerc[t])
return arrPerc.join("%")},i=1;arr.length>i;i++)arr2=arr[i].split("%5D%5D%3E"),arrFinal.push(t(arr2[0])+"]]>"+decodeURIComponent(arr2[1]))
return strFinal=arrFinal.join("<![CDATA[")},initPlayer:function(e,t){var s=this.id
switch(this.el,CU3ER[s].xml=e,json=jQuery.xml2json(e),json2=jQuery.xml2json(e,!0),json.settings.width=t.vars.width!==void 0?t.vars.width:json.project_settings.width,json.settings.height=t.vars.height!==void 0?t.vars.height:json.project_settings.height,t.vars.folder_images!==void 0&&(json.settings.folder_images=t.vars.folder_images),CU3ER[s].json=json,CU3ER[s].json.custom=t.custom!==void 0?t.custom:{},json.slides.transition=null,json.slides.transition=json2.slides[0].transition,json.fonts_html!==void 0&&(json.fonts_html=json2.fonts_html[0]),this.level){case 2:CU3ER[s].displayVersion=CU3ER[s].support3d?"JS-3D":CU3ER[s].isCameraFlat()?"JS-Slicing":"JS-Simple"
break
case 1:CU3ER[s].displayVersion=CU3ER[s].isCameraFlat()?"JS-Slicing":"JS-Simple"
break
case 0:CU3ER[s].displayVersion="JS-Simple"}if(this.onSliderInit(),t.vars.xml_encoded!==void 0&&""!=t.vars.xml_encoded&&t.vars.xml_location!==void 0&&""!=t.vars.xml_location){var a=this.decodeXML(t.vars.xml_encoded),r=RegExp(/\+/g)
a=a.replace(r," ")
var n=jQuery.xml2json(a,!0),o=jQuery.xml2json(a)
o.licence!==void 0&&(CU3ER[s].licenseStr=o.licence),o.settings!==void 0&&(o.settings.folder_images!==void 0&&(json.settings.folder_images=o.settings.folder_images),o.settings.background!==void 0&&(json.settings.background=o.settings.background),o.settings.auto_play!==void 0&&(json.settings.auto_play=o.settings.auto_play),o.settings.start_slide!==void 0&&(json.settings.start_slide=o.settings.start_slide),o.settings.randomize_slides!==void 0&&(json.settings.randomize_slides=o.settings.randomize_slides),o.settings.loop!==void 0&&(json.settings.loop=o.settings.loop),o.settings.branding!==void 0&&(json.settings.branding=o.settings.branding),o.settings.camera!==void 0&&(json.settings.camera=o.settings.camera),o.settings.shadow!==void 0&&(json.settings.shadow=o.settings.shadow)),o.slides!==void 0&&(o.slides.slide!==void 0&&(json.slides.slide=o.slides.slide),n.slides[0].transition!==void 0&&(json.slides.transition=n.slides[0].transition),o.slides.width!==void 0&&(json.slides.width=o.slides.width),o.slides.height!==void 0&&(json.slides.height=o.slides.height),o.slides.align_pos!==void 0&&(json.slides.align_pos=o.slides.align_pos),o.slides.x!==void 0&&(json.slides.x=o.slides.x),o.slides.y!==void 0&&(json.slides.y=o.slides.y)),o.defaults!==void 0&&(o.defaults.slide!==void 0&&(json.defaults.slide=o.defaults.slide),n.defaults[0].transition!==void 0&&(json.defaults.transition=n.defaults[0].transition[0])),n.preloader!==void 0&&(o.preloader.image!==void 0&&(json.preloader.image=o.preloader.image),o.preloader.background!==void 0&&(json.preloader.background=o.preloader.background),o.preloader.loader!==void 0&&(json.preloader.loader=o.preloader.loader)),n.controls!==void 0&&(o.controls.next_button!==void 0&&(json.controls.next_button=o.controls.next_button),o.controls.prev_button!==void 0&&(json.controls.prev_button=o.controls.prev_button),o.controls.auto_play_indicator!==void 0&&(json.controls.auto_play_indicator=o.controls.auto_play_indicator)),o.description!==void 0&&(json.description=o.description),n.thumbnails!==void 0&&(json.thumbnails=n.thumbnails)}if(n!==void 0&&n.licence!==void 0&&(this.licenceEncoded=n.licence),t.vars.images!==void 0&&""!=t.vars.images){var l=t.vars.images.split(",")
for(i in l)json.slides.slide[i]!==void 0?json.slides.slide[i].url=l[i]:(json.slides.slide[i]=jQuery.extend(!0,{},json.slides.slide[i-1]),json.slides.transition[i]=jQuery.extend(!0,{},json.slides.transition[i-1]),json.slides.slide[i].url=l[i])}if(json2=null,CU3ER[s].imgFallbackFolder=t.vars.folder_images_fallback!==void 0?t.vars.folder_images_fallback:json.settings.folder_images,CU3ER[s].jsonOriginal=jQuery.extend(!0,{},json),CU3ER[s].randomise=json.settings.randomize_slides,CU3ER[s].autoplay=json.settings.auto_play!==void 0?json.settings.auto_play:CU3ER[s].autoplay,CU3ER[s].loop=json.settings.loop!==void 0?json.settings.loop:CU3ER[s].loop,CU3ER[s].current=json.settings.start_slide!==void 0?parseInt(json.settings.start_slide)-1:CU3ER[s].current,CU3ER[s].current=t.vars.start_slide!==void 0?parseInt(t.vars.start_slide)-1:CU3ER[s].current,CU3ER[s].nextSlide=CU3ER[s].current,(1==t.vars.pause_on_rollover||json.settings.pause_on_rollover!==void 0&&"true"==json.settings.pause_on_rollover)&&(CU3ER[s].isTouch()||(CU3ER[s].rollOverPause=!0)),CU3ER[s].isTouch()&&jQuery(CU3ER[s].stage).swipe({swipeLeft:function(){CU3ER[s].inTransition||(CU3ER[s].inTransition=!0,CU3ER[s].doCheck=!1,setTimeout(function(){CU3ER[s].next()},50))},swipeRight:function(){CU3ER[s].inTransition||(CU3ER[s].inTransition=!0,CU3ER[s].doCheck=!1,setTimeout(function(){CU3ER[s].prev()},50))},threshold:50}),t.vars.autoscroll_thumbs!==void 0&&(CU3ER[s].autoscrollThumbs=t.vars.autoscroll_thumbs),CU3ER[s].currSlideNo=CU3ER[s].current+1,(json.settings.width+"").indexOf("%")>-1||(json.settings.width+"").indexOf("p")>-1){if(json.settings.width=json.settings.width.replace("p","%"),0==jQuery(CU3ER[s].stage).parent().width()){jQuery(CU3ER[s].stage).css({width:json.settings.width})
var d=jQuery(CU3ER[s].stage).parent().width()}else var d=jQuery(CU3ER[s].stage).parent().width()*parseInt(json.settings.width)/100
CU3ER[s].json.settings.width=d,json.settings.width=d}else var d=parseFloat(json.settings.width)+"px"
if((json.settings.height+"").indexOf("%")>-1||(json.settings.height+"").indexOf("p")>-1){if(json.settings.height=json.settings.height.replace("p","%"),0==jQuery(CU3ER[s].stage).parent().height()){jQuery(CU3ER[s].stage).css({height:json.settings.height})
var c=jQuery(CU3ER[s].stage).parent().height()}else var c=jQuery(CU3ER[s].stage).parent().height()*parseInt(json.settings.height)/100
CU3ER[s].json.settings.height=c,json.settings.height=c}else var c=parseFloat(json.settings.height)+"px"
if(json.controls.prev_button!==void 0&&(json.controls.prev_button.symbol!==void 0&&CU3ER[s].totalInd++,json.controls.prev_button.type="prev",json.controls.prev_button.type1="Prev",CU3ER[s].drawButtons(json.controls.prev_button,json.slides.width,json.slides.height,json.settings.width,json.settings.height)),json.controls.next_button!==void 0&&(json.controls.next_button.symbol!==void 0&&CU3ER[s].totalInd++,json.controls.next_button.type="next",json.controls.next_button.type1="Next",CU3ER[s].drawButtons(json.controls.next_button,json.slides.width,json.slides.height,json.settings.width,json.settings.height)),json.fonts_html!==void 0)if(json.fonts_html.url.length!==void 0)for(i in json.fonts_html.url){var h=document.createElement("link")
h.setAttribute("rel","stylesheet"),h.setAttribute("type","text/css"),h.setAttribute("href",json.fonts_html.url[i].text),document.getElementsByTagName("head")[0].appendChild(h)}else{var h=document.createElement("link")
h.setAttribute("rel","stylesheet"),h.setAttribute("type","text/css"),h.setAttribute("href",json.fonts_html.url.text),document.getElementsByTagName("head")[0].appendChild(h)}jQuery(CU3ER[s].stage).css({width:d,height:c,position:"relative",overflow:"hidden",outline:"none","font-size":0}),jQuery(CU3ER[s].slides).css({width:Math.round(parseFloat(json.slides.width))+"px",height:Math.round(parseFloat(json.slides.height))+"px",outline:"none"})
var p=null,u=null
if(CU3ER[s].json.preloader.image!==void 0){var f=CU3ER[s].json.preloader.image.scaleX!==void 0?parseFloat(CU3ER[s].json.preloader.image.scaleX):1
CU3ER[s].json.preloader.image.scaleY!==void 0?parseFloat(CU3ER[s].json.preloader.image.scaleY):1
var g={type:"sliderLoad",width:Math.round(parseFloat(CU3ER[s].json.preloader.image.width)*f),height:Math.round(parseFloat(CU3ER[s].json.preloader.image.height)*f),loaderTweenShowTint:CU3ER[s].json.preloader.loader.tweenShow.tint,loaderTreenOverTint:CU3ER[s].json.preloader.loader.tweenOver.tint,loaderTweenShowAlpha:CU3ER[s].json.preloader.image.alpha_loader,loaderTweenOverAlpha:CU3ER[s].json.preloader.image.alpha_loader,bgTweenShowAlpha:CU3ER[s].json.preloader.image.alpha_bg,bgTweenOverAlpha:CU3ER[s].json.preloader.image.alpha_bg,bgTweenShowTint:CU3ER[s].json.preloader.background.tweenShow.tint,bgTweenOverTint:CU3ER[s].json.preloader.background.tweenOver.tint,image:CU3ER[s].imgFallbackFolder+"/fallback/preloader_image.png",posX:CU3ER[s].json.preloader.image.x,posY:CU3ER[s].json.preloader.image.y,align_pos:CU3ER[s].json.preloader.image.align_pos,align_to:CU3ER[s].json.preloader.image.align_to,padding:0,shape:CU3ER[s].json.preloader.type,radius:CU3ER[s].json.preloader.radius!==void 0?CU3ER[s].json.preloader.radius:null}}else var g={type:"sliderLoad",width:CU3ER[s].json.preloader.width!==void 0?CU3ER[s].json.preloader.width:u,height:CU3ER[s].json.preloader.height!==void 0?CU3ER[s].json.preloader.height:p,loaderTweenShowTint:CU3ER[s].json.preloader.loader.tweenShow.tint,loaderTreenOverTint:CU3ER[s].json.preloader.loader.tweenOver.tint,loaderTweenShowAlpha:CU3ER[s].json.preloader.loader.tweenShow.alpha,loaderTweenOverAlpha:CU3ER[s].json.preloader.loader.tweenOver.alpha,bgTweenShowAlpha:CU3ER[s].json.preloader.background.tweenShow.alpha,bgTweenOverAlpha:CU3ER[s].json.preloader.background.tweenOver.alpha,bgTweenShowTint:CU3ER[s].json.preloader.background.tweenShow.tint,bgTweenOverTint:CU3ER[s].json.preloader.background.tweenOver.tint,image:CU3ER[s].json.preloader.image!==void 0?CU3ER[s].imgFallbackFolder+"/fallback/preloader_image.png":null,posX:CU3ER[s].json.preloader.x,posY:CU3ER[s].json.preloader.y,align_pos:CU3ER[s].json.preloader.align_pos,align_to:"stage"==CU3ER[s].json.preloader.align_to?"stage":"slides",padding:CU3ER[s].json.preloader.background.padding,shape:CU3ER[s].json.preloader.type,radius:CU3ER[s].json.preloader.radius!==void 0?CU3ER[s].json.preloader.radius:null}
CU3ER[s].drawProgressBar(g),CU3ER[s].updateIndicator(++CU3ER[s].a,CU3ER[s].totalInd,CU3ER[s].stage+" .CU3ERindicator",!0),(1==t.vars.pause_on_rollover||json.settings.pause_onrollover!==void 0&&"true"==json.settings.pause_on_rollover)&&(CU3ER[s].rollOverPause=!0),CU3ER[s].debug("xml loaded"),CU3ER[s].is3D()?json.settings.background.image!==void 0&&"true"==json.settings.background.image.use_image?("false"==json.settings.background.color.transparent&&jQuery(CU3ER[s].stage).css("backgroundColor",json.settings.background.color.text.replace("0x","#")),jQuery(CU3ER[s].stage).prepend('<div class="CU3ERbackground"></div>'),CU3ER[s].drawBackground(json.settings.background)):(CU3ER[s].updateIndicator(++CU3ER[s].a,CU3ER[s].totalInd,CU3ER[s].stage+" .CU3ERindicator",!0),json.settings.background.color.transparent!==void 0&&"true"==json.settings.background.color.transparent?jQuery(CU3ER[s].stage).css("backgroundColor","transparent"):jQuery(CU3ER[s].stage).css("backgroundColor",json.settings.background.color.text.replace("0x","#")),CU3ER[s].debug("background loaded")):(jQuery(CU3ER[s].stage).prepend('<div class="CU3ERbackground"></div>'),CU3ER[s].drawBackground(json.settings.background)),CU3ER[s].drawSlides(json.slides,json.defaults,json.settings,json.thumbnails,t),json.description!==void 0&&CU3ER[s].drawDescription(json.description)},drawBackground:function(e){var t=this.id,i=this.el
if(CU3ER[t].is3D()){var s=/https?:\/\/([-\w\.]+)+(:\d+)?(\/([\w/_\.]*(\?\S+)?)?)?/
if(s.test(CU3ER[t].json.settings.background.image.url))var a=CU3ER[t].json.settings.background.image.url
else var a=CU3ER[t].json.settings.folder_images+"/"+CU3ER[t].json.settings.background.image.url
var r=new Image
jQuery(r).attr("src",a).bind("load",function(){CU3ER[t].updateIndicator(++CU3ER[t].a,CU3ER[t].totalInd,CU3ER[t].stage+" .CU3ERindicator",!0)
var s=Array()
s[0]=e.image.scaleX!==void 0?parseFloat(e.image.scaleX):1,s[1]=e.image.scaleY!==void 0?parseFloat(e.image.scaleY):1
var n=r.width*s[0],o=r.height*s[1],l={align_pos:e.image.align_pos!==void 0?e.image.align_pos:"TL",x:e.image.x!==void 0?e.image.x:0,y:e.image.y!==void 0?e.image.y:0,width:n,height:o,fullWidth:CU3ER[t].json.settings.width,fullHeight:CU3ER[t].json.settings.height}
cssBgd=CU3ER[t].calculatePosition(l),cssBgdFixed={width:n+"px",height:o+"px",position:"absolute",backgroundColor:e.color.transparent!==void 0&&"true"==e.color.transparent?"transparent":e.color.text.replace("0x","#"),zIndex:"-1",display:"none"},cssBgd=jQuery.extend(cssBgdFixed,cssBgd),jQuery(".CU3ERbackground",i).css(cssBgd).append('<img src="'+a+'" />').find("img").css({WebkitTransform:"scaleX("+s[0]+") scaleY("+s[1]+")",MozTransform:"scaleX("+s[0]+") scaleY("+s[1]+")","WebkitTransform-origin":"top left","MozTransform-origin":"top left"}),CU3ER[t].debug("background loaded")}).error(function(){null==CU3ER[t].transition&&(CU3ER[t].updateIndicator(++CU3ER[t].a,CU3ER[t].totalInd,CU3ER[t].stage+" .CU3ERindicator",!0),CU3ER[t].debug("ERROR: background not exist"))})}else{var a=CU3ER[t].imgFallbackFolder+"/fallback/bg.png",r=new Image
jQuery(r).attr("src",a).bind("load",function(){CU3ER[t].updateIndicator(++CU3ER[t].a,CU3ER[t].totalInd,CU3ER[t].stage+" .CU3ERindicator",!0)
var e={align_pos:"TL",x:0,y:0,width:r.width,height:r.height,fullWidth:CU3ER[t].json.settings.width,fullHeight:CU3ER[t].json.settings.height}
cssBgd=CU3ER[t].calculatePosition(e),cssBgdFixed={width:r.width+"px",height:r.height+"px",position:"absolute",background:'url("'+a+'") top left no-repeat',zIndex:"-1",display:"none"},cssBgd=jQuery.extend(cssBgdFixed,cssBgd),jQuery(".CU3ERbackground",i).css(cssBgd),CU3ER[t].debug("background loaded")}).error(function(){null==CU3ER[t].transition&&(CU3ER[t].updateIndicator(++CU3ER[t].a,CU3ER[t].totalInd,CU3ER[t].stage+" .CU3ERindicator",!0),CU3ER[t].debug("ERROR: background not exist"))})}},createSlices3DcssAnimation:function(e,t){var i=this.id
this.el
var s="",a="",r="",n="",o=e.flipDirection.split(","),l=parseInt(e.rows)*parseInt(e.columns)
this.slicesDirections[t]=[]
for(var d=0;l>d;d++){var c=1==o.length?0:Math.floor(Math.random()*o.length)
if(CU3ER[i].slicesDirections[t].push(o[c]),"180"==e.flipAngle)switch(o[c]){case"left":var h={to:-180,type:"rotateY"}
break
case"right":var h={to:180,type:"rotateY"}
break
case"down":var h={to:-180,type:"rotateX"}
break
case"up":var h={to:180,type:"rotateX"}}else if("90"==e.flipAngle)switch(o[c]){case"left":var h={to:-90,type:"rotateY"}
break
case"right":var h={to:90,type:"rotateY"}
break
case"down":var h={to:-90,type:"rotateX"}
break
case"up":var h={to:90,type:"rotateX"}}half=e.half,half1=e.half,"up"!=o[c]&&"down"!=o[c]||"90"!=e.flipAngle?"left"!=o[c]&&"right"!=o[c]||"90"!=e.flipAngle||(half1=half=e.sliceWidth/2):half1=half=e.sliceHeight/2,r="@-webkit-keyframes translateSliceHolder"+t+" { 0% { -webkit-transform: translateZ(0px); } 50% { -webkit-transform: translateZ("+-parseInt(e.flipDepth)+"px); } 100% { -webkit-transform: translateZ(0px); } }",n="@-moz-keyframes translateSliceHolder"+t+" { 0%{ -moz-transform: translateZ(0px); } 50%{ -moz-transform: translateZ("+-parseInt(e.flipDepth)+"px); } 100%{ -moz-transform: translateZ("+-parseInt(half1)+"px); } }",s+="@-webkit-keyframes sliceAnimation"+t+"_"+d+" { 0% { -webkit-transform: translateZ(-"+half+"px) "+h.type+"(0deg)  ;  } 100% { -webkit-transform: translateZ(-"+half+"px) "+h.type+"("+h.to+"deg) ; } }"+"\n"+"@-webkit-keyframes sliceAnimation"+t+"_"+d+"_reverse { 0% { -webkit-transform: translateZ(-"+half+"px) "+h.type+"(0deg)  ;  } 100% { -webkit-transform: translateZ(-"+half+"px) "+h.type+"("+-h.to+"deg) ; } }"+"\n",a+="@-moz-keyframes sliceAnimation"+t+"_"+d+" { 0% { -moz-transform: "+h.type+"(0deg) translateZ(-"+half+"px); } 100% { -moz-transform: "+h.type+"("+h.to+"deg) translateZ(0px); } }"+"\n"+"@-moz-keyframes sliceAnimation"+t+"_"+d+"_reverse { 0% { -moz-transform: "+h.type+"(0deg) translateZ(-"+half+"px); } 100% { -moz-transform: "+h.type+"("+-h.to+"deg) translateZ(0px); } }"+"\n"}return r+"\n"+n+"\n"+s+"\n"+a+"\n"+"@-webkit-keyframes sliceAnimationFront { 0% { opacity:1; } 49% { opacity:1; } 51% { opacity:0; } 100% { opacity:0; } }"+"\n"+"@-webkit-keyframes sliceAnimationBack { 0% { opacity:0; } 49% { opacity:0; } 51% { opacity:1; } 100% { opacity:1; } }"},createSlideBoxDepth:function(e){var t=this.id
this.el
var i=parseInt(e.flipBoxDepth),s=e.flipColor.replace("0x","#")
e.width=this.json.slides.width,e.height=this.json.slides.height
var a=1==this.directionReverse?0==CU3ER[t].current?CU3ER[t].slidesTotal-1:CU3ER[t].current-1:CU3ER[t].current
a=1==CU3ER[t].slidesTotal?0:a
var r=CU3ER[t].slicesDirections[a][0],n=jQuery.extend(!0,{},CU3ER[t].jsonOriginal.defaults.slide,CU3ER[t].jsonOriginal.slides.slide[this.current]),o=jQuery.extend(!0,{},CU3ER[t].jsonOriginal.defaults.slide,CU3ER[t].jsonOriginal.slides.slide[this.nextSlide]);("undefined"!=n.transparent&&"true"==n.transparent||"undefined"!=o.transparent&&"true"==o.transparent)&&(i=1,s="transparent !important")
var l=i,d=i,c=calcTop=parseInt(l)/2,h=calcLeft=-(parseInt(l)/2)
"90"==e.flipAngle&&("left"==r||"right"==r?(i=parseInt(e.width),l=i,d=i,c=calcTop=parseInt(i)/2,h=calcLeft=parseInt(i)/2):(i=parseInt(e.height),l=i,d=i,c=calcTop=-(parseInt(e.height)/2),h=calcLeft=-(parseInt(e.height)/2)))
var n=jQuery("#CU3ERSlide_"+this.current)
"transparent !important"!=s&&(jQuery(n).css({"-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"hidden","-webkit-animation-timing-function":"ease-in-out","-moz-transform-style":"preserve-3d","-moz-backface-visibility":"hidden","-moz-animation-timing-function":"ease-in-out","-webkit-transform-origin":"50% 50%","-moz-transform-origin":"50% 50%","-webkit-transform":"translateZ(-"+i/2+"px)","-moz-transform":"translateZ(-"+i/2+"px)",position:"relative",overflow:"visible"}),jQuery(".CU3ERslideImage",jQuery(n)).css({"-webkit-transform":"translateZ("+i/2+"px)","-webkit-transform-style":"preserve-3d","-moz-transform":"translateZ("+i/2+"px)","-moz-transform-style":"preserve-3d","-webkit-transform-origin":"50% 50%","-moz-transform-origin":"50% 50%",width:CU3ER[t].jsonOriginal.slides.width+"px",height:CU3ER[t].jsonOriginal.slides.height+"px"}),jQuery(".CU3ERbox").css({"-moz-transform":"translateZ(-"+i/2+"px)","-webkit-transform":"translateZ(-"+i/2+"px)"}).empty(),jQuery(".CU3ERbox").append(jQuery("<div />").css({width:e.width+"px",height:l+"px",position:"absolute","background-color":s,"-webkit-transform-origin":"50% 50%","-moz-transform-origin":"50% 50%","-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"visible","-webkit-animation-timing-function":"ease-in-out","-moz-transform-style":"preserve-3d","-moz-backface-visibility":"visible","-moz-animation-timing-function":"ease-in-out",top:0,left:0,"-webkit-transform":"rotateX(90deg) translateZ("+calcTop+"px)","-moz-transform":"rotateX(90deg) translateZ("+calcTop+"px)"})),jQuery(".CU3ERbox").append(jQuery("<div />").css({width:e.width+"px",height:i+"px",position:"absolute","background-color":s,"-webkit-transform-origin":"50% 50%","-moz-transform-origin":"50% 50%","-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"visible","-webkit-animation-timing-function":"ease-in-out","-moz-transform-style":"preserve-3d","-moz-backface-visibility":"visible","-moz-animation-timing-function":"ease-in-out",bottom:0,left:0,top:"auto","-webkit-transform":"rotateX(-90deg) translateZ("+c+"px)","-moz-transform":"rotateX(-90deg) translateZ("+c+"px)"})),jQuery(".CU3ERbox").append(jQuery("<div />").css({width:d+"px",height:e.height+"px",position:"absolute","background-color":s,"-webkit-transform-origin":"50% 50%","-moz-transform-origin":"50% 50%","-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"visible","-webkit-animation-timing-function":"ease-in-out","-moz-transform-style":"preserve-3d","-moz-backface-visibility":"visible","-moz-animation-timing-function":"ease-in-out",top:0,left:0,"-webkit-transform":"rotateY(90deg) translateZ("+calcLeft+"px)","-moz-transform":"rotateY(90deg) translateZ("+calcLeft+"px)"})),jQuery(".CU3ERbox").append(jQuery("<div />").css({width:d+"px",height:e.height+"px",position:"absolute","background-color":s,"-webkit-transform-origin":"50% 50%","-moz-transform-origin":"50% 50%","-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"visible","-webkit-animation-timing-function":"ease-in-out","-moz-transform-style":"preserve-3d","-moz-backface-visibility":"visible","-moz-animation-timing-function":"ease-in-out",top:0,right:0,left:"auto","-webkit-transform":"rotateY(-90deg) translateZ("+h+"px)","-moz-transform":"rotateY(-90deg) translateZ("+h+"px)"})))},drawSlides:function(e,t,s,a,r){var n=this.id,o=this.el,l=!1
if(e.slide.length===void 0){var d=e.slide
e.slide=Array(),e.slide[0]=d}var c={title:{x:0,y:0,width:90,height:62,font:"Arial",text_size:12,text_bold:"false",text_italic:"false",text_align:"left",text_leading:0,text_letterspacing:0,use_caption:"false",use_heading:"false",use_numbering:"false",use_numbering_separator:".",tweenShow:{tint:"#ffffff",alpha:.75},tweenOver:{tint:"#ffffff",alpha:1},tweenSelected:{tint:"#fffff0",alpha:.75}}},h={flipDepth:"300",flipBoxDepth:"500",flipAngle:"180",flipOrder:"90"},p={time:5,color:"0x000000",transparent:"false",image:{align_pos:"TL",x:0,y:0,scaleX:1,scaleY:1}}
if(CU3ER[n].is3D()){slides1=jQuery.extend(!0,{},t,e),e=jQuery.extend(t,e),this.originalJSONelements=e
for(i in CU3ER[n].json.slides.slide)"number"!=typeof i&&isNaN(i)||(CU3ER[n].json.slides.slide[i].originalPosition=i)
"true"==CU3ER[n].randomise&&(CU3ER[n].json.slides.slide=jQuery.shuffle(CU3ER[n].json.slides.slide)),(r!==void 0&&1==r.vars.reverse||"true"==e.reverse)&&(CU3ER[n].json.slides.slide=CU3ER[n].json.slides.slide.reverse(),CU3ER[n].json.slides.transition=CU3ER[n].json.slides.transition.reverse())
for(i in CU3ER[n].json.slides.slide)"number"!=typeof i&&isNaN(i)||(CU3ER[n].slidesOrder[i]=parseInt(CU3ER[n].json.slides.slide[i].originalPosition)+1)
if(a!==void 0&&(a=jQuery.extend(c,a)),a!==void 0){var u="stage"==a.align_to?this.stage:this.slides
jQuery(u).append('<div class="CU3ERthumbs"><div class="CU3ERThumbsScroll"><div class="CU3ERthumbsBG"></div><div class="CU3ERthumbs-holder"></div></div></div>')}if(CU3ER[n].json.settings.camera===void 0){var f={camera:{x:0,y:0,z:0,angleX:0,angleY:0,angleZ:0,lend:8}}
CU3ER[n].json.settings=jQuery.extend(f,CU3ER[n].json.settings)}var g=CU3ER[n].json.custom.x!==void 0?CU3ER[n].json.custom.x:CU3ER[n].json.settings.camera.x,m=CU3ER[n].json.custom.y!==void 0?CU3ER[n].json.custom.y:-parseFloat(CU3ER[n].json.settings.camera.y),b=CU3ER[n].json.custom.z!==void 0?CU3ER[n].json.custom.z:CU3ER[n].json.settings.camera.z,C=CU3ER[n].json.custom.angleX!==void 0?CU3ER[n].json.custom.angleX:CU3ER[n].json.settings.camera.angleX,v=CU3ER[n].json.custom.angleY!==void 0?CU3ER[n].json.custom.angleY:parseFloat(CU3ER[n].json.settings.camera.angleY),R=CU3ER[n].json.custom.angleZ!==void 0?CU3ER[n].json.custom.angleZ:CU3ER[n].json.settings.camera.angleZ,j=CU3ER[n].json.custom.lens!==void 0?CU3ER[n].json.custom.lens:100*parseInt(CU3ER[n].json.settings.camera.lens)
g=g===void 0||isNaN(g)?0:g,m=m===void 0||isNaN(m)?0:m,b=b===void 0||isNaN(b)?0:b,C=C===void 0||isNaN(C)?0:C,v=v===void 0||isNaN(v)?0:v,R=R===void 0||isNaN(R)?0:R,j=j===void 0||isNaN(j)?800:j
var y,E,U,w,x
y=Math.PI/180,E=-C,U=v,w=R,x=1
var I,Q,k,S,_,T,M
I=$M([[1,0,0,0],[0,Math.cos(E*y),Math.sin(-E*y),0],[0,Math.sin(E*y),Math.cos(E*y),0],[0,0,0,1]]),Q=$M([[Math.cos(U*y),0,Math.sin(U*y),0],[0,1,0,0],[Math.sin(-U*y),0,Math.cos(U*y),0],[0,0,0,1]]),k=$M([[Math.cos(w*y),Math.sin(-w*y),0,0],[Math.sin(w*y),Math.cos(w*y),0,0],[0,0,1,0],[0,0,0,1]]),S=x,_=$M([[S,0,0,0],[0,S,0,0],[0,0,S,0],[0,0,0,1]]),M=$M([[1,0,0,0],[0,1,0,0],[0,0,1,0],[g,m,b,1]]),T=I.x(Q).x(k).x(_).x(M),S="matrix3d(",S+=T.e(1,1).toFixed(10)+","+T.e(1,2).toFixed(10)+","+T.e(1,3)+","+T.e(1,4).toFixed(10)+",",S+=T.e(2,1).toFixed(10)+","+T.e(2,2).toFixed(10)+","+T.e(2,3)+","+T.e(2,4).toFixed(10)+",",S+=T.e(3,1).toFixed(10)+","+T.e(3,2).toFixed(10)+","+T.e(3,3)+","+T.e(3,4).toFixed(10)+",",S+=T.e(4,1).toFixed(10)+","+T.e(4,2).toFixed(10)+","+T.e(4,3)+","+T.e(4,4).toFixed(10),S+=")"
var P="@-webkit-keyframes translateHolder { from { -webkit-transform: translateX("+g+"px) translateY("+m+"px) translateZ("+b+"px) rotate3d("+C+", "+v+", "+R+", "+v+"deg); } 50% {-webkit-transform: translateX("+g+"px) translateY("+m+"px) translateZ(-250px) rotate3d("+C+", "+v+", "+R+", "+v+"deg); } to {-webkit-transform: translateX("+g+"px) translateY("+m+"px) translateZ("+b+"px) rotate3d("+C+", "+v+", "+R+", "+0+"deg);} } @-moz-keyframes translateHolder { from { -moz-transform: translateX("+g+"px) translateY("+m+"px) translateZ("+b+"px) rotate3d("+C+", "+v+", "+R+", "+v+"deg); } 50% {-moz-transform: translateX("+g+"px) translateY("+m+"px) translateZ(-250px) rotate3d("+C+", "+v+", "+R+", "+v+"deg); } to {-moz-transform: translateX("+g+"px) translateY("+m+"px) translateZ("+b+"px) rotate3d("+C+", "+v+", "+R+", "+0+"deg);} }"
try{var O=document.styleSheets,F=O.length,z=O[F-1],B=z.cssRules.length
z.cssRules[B]=P,B++}catch(A){var z=""}jQuery(".CU3ERslides",o).css({"-webkit-perspective":j+"px","-moz-perspective":j+"px"}).find(".CU3ERslides-holder").css({"-webkit-transform":S,"-moz-transform":S}).parent().css({"-webkit-perspective-origin":"50% 50%","-moz-perspective-origin":"50% 50%"}).find(".CU3ERtransition-holder").css({"-webkit-transform":S,"-moz-transform":S}).parent().find(".CU3ERbox").css({width:e.width+"px",height:e.height+"px","-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"visible","-webkit-animation-timing-function":"ease-in-out","-moz-transform-style":"preserve-3d","-moz-backface-visibility":"visible","-moz-animation-timing-function":"ease-in-out"}).parent().css({"-webkit-transform":S,"-moz-transform":S,width:e.width+"px",height:e.height+"px","-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"visible","-webkit-animation-timing-function":"ease-in-out","-moz-transform-style":"preserve-3d","-moz-backface-visibility":"visible","-moz-animation-timing-function":"ease-in-out"}),Array()
var D=document.createElement("style")
for(i in e.slide)if("number"==typeof i||!isNaN(i)){if(CU3ER[n].jsonOriginal.slides.slide.length===void 0)var X=jQuery.extend(!0,{},p,CU3ER[n].jsonOriginal.defaults.slide,CU3ER[n].jsonOriginal.slides.slide,CU3ER[n].json.slides.slide),H=jQuery.extend(!0,{},h,CU3ER[n].jsonOriginal.defaults.transition,CU3ER[n].jsonOriginal.slides.transition,CU3ER[n].json.slides.transition)
else var X=jQuery.extend(!0,{},p,CU3ER[n].jsonOriginal.defaults.slide,CU3ER[n].jsonOriginal.slides.slide[i],CU3ER[n].json.slides.slide[i]),H=jQuery.extend(!0,{},h,CU3ER[n].jsonOriginal.defaults.transition,CU3ER[n].jsonOriginal.slides.transition[i],CU3ER[n].json.slides.transition[i])
H.width=CU3ER[n].jsonOriginal.slides.width,H.height=CU3ER[n].jsonOriginal.slides.height
var N=parseInt(H.flipBoxDepth)
"90"!=H.flipAngle||"left"!=H.flipDirection&&"right"!=H.flipDirection?"90"!=H.flipAngle||"up"!=H.flipDirection&&"down"!=H.flipDirection||(N=H.height):N=H.width,H.half=N/2,H.sliceWidth=parseInt(H.width)/parseInt(H.columns),H.sliceHeight=parseInt(H.height)/parseInt(H.rows)
var L=CU3ER[n].createSlices3DcssAnimation(H,i)
try{D.innerHTML+=L+"\n",z.insertRule(slicesHolderAnimation,z.cssRules.length)}catch(A){}var Y=/https?:\/\/([-\w\.]+)+(:\d+)?(\/([\w/_\.]*(\?\S+)?)?)?/
if(Y.test(e.slide[i].url))var q=e.slide[i].url
else var q=s.folder_images+"/"+e.slide[i].url
var W=parseFloat(X.image.scaleX),Z=parseFloat(X.image.scaleY),G=""
if(e.slide[i].color!==void 0?G=' style="background-color:'+e.slide[i].color.replace("0x","#")+';"':slides1.slide.color!==void 0&&(G=' style="background-color:'+slides1.slide.color.replace("0x","#")+';"'),"true"==e.slide[i].transparent?G=' style="background-color: transparent;"':"true"==slides1.slide.transparent&&(G=' style="background-color: transparent;"'),void 0===e.slide[i].link||"string"!=typeof e.slide[i].link&&void 0===e.slide[i].link.text)if(CU3ER[n].jsonOriginal.defaults.slide.link!==void 0&&CU3ER[n].jsonOriginal.defaults.slide.link.text!==void 0)var V=CU3ER[n].jsonOriginal.defaults.slide.link.text
else var V="#"
else var V=e.slide[i].link.text!==void 0?e.slide[i].link.text:e.slide[i].link
if(e.slide[i].link!==void 0&&e.slide[i].link.target!==void 0&&"#"!=V)var J=' target="'+e.slide[i].link.target+'"'
else if(CU3ER[n].jsonOriginal.defaults.slide.link!==void 0&&CU3ER[n].jsonOriginal.defaults.slide.link.target!==void 0&&"#"!=V)var J=' target="'+CU3ER[n].jsonOriginal.defaults.slide.link.target+'"'
else var J=""
if("#"!=V)var K=' style="width:'+e.width+"px;height:"+e.height+'px;display:block;"'
else var K=' style="cursor:default !important;"'
e.slide[i].use_image!==void 0&&"false"==e.slide[i].use_image?jQuery(".CU3ERslides-holder",o).append('<div id="CU3ERSlide_'+i+'" class="CU3ERslide"'+G+'><div class="CU3ERslideImage"'+G+'><a href="'+V+'"'+J+K+"><img /></a></div></div>"):jQuery(".CU3ERslides-holder",o).append('<div id="CU3ERSlide_'+i+'" class="CU3ERslide notLoaded"'+G+'><div class="CU3ERslideImage"'+G+'><a href="'+V+'"'+J+K+'><img src="'+q+'" rel="'+W+":"+Z+":"+X.image.x+":"+X.image.y+":"+X.image.align_pos+":"+X.image.fit+'" /></a></div></div>').find("#CU3ERSlide_"+i+" img").bind("load",function(){var t=this.width,i=this.height,s=jQuery(this)[0],a=jQuery(s).attr("rel").split(":")
jQuery("<img/>").attr("src",jQuery(s).attr("src")).load(function(){var r=a[5]
if("inside"==a[5]){a[0]=a[1]=1/Math.max(t/parseInt(e.width),i/parseInt(e.height))
var o=parseFloat(a[0])*t,d=parseFloat(a[1])*i}else if("outside"==a[5]){a[0]=a[1]=1/Math.min(t/parseInt(e.width),i/parseInt(e.height))
var o=parseFloat(a[0])*t,d=parseFloat(a[1])*i}else{if(t==this.width)var o=t*parseFloat(a[0])
else{a[0]=Math.round(100*(this.width*a[0]/t))/100
var o=t*parseFloat(a[0])}if(i==this.height)var d=i*parseFloat(a[1])
else{a[1]=Math.round(100*(this.height*a[1]/i))/100
var d=i*parseFloat(a[1])}}o=Math.round(o),d=Math.round(d),optionsImage={align_pos:a[4],x:a[2],y:a[3],fullWidth:e.width,fullHeight:e.height,width:o,height:d},a[5]=this.width,a[6]=this.height,a[7]=r
var c=CU3ER[n].calculatePosition(optionsImage)
if(c.position="relative",1!=a[0]){var h=Math.round((a[0]+.004)*Math.pow(10,2))/Math.pow(10,2)
a[0]=isNaN(h)?a[0]:h}if(1!=a[1]){var p=Math.round((a[1]+.004)*Math.pow(10,2))/Math.pow(10,2)
a[1]=isNaN(p)?a[1]:p}var u=a.join(":")
jQuery(s).css({WebkitTransform:"scaleX("+a[0]+") scaleY("+a[1]+")","WebkitTransform-origin":"top left",MozTransform:"scaleX("+a[0]+") scaleY("+a[1]+")","MozTransform-origin":"top left"}).css(c).attr("rel",u).parent().parent().parent().removeClass("notLoaded").trigger("classChanged")
var f=jQuery(s).parent().parent().parent().attr("id").split("_")
f[1]==CU3ER[n].no&&(l=!0,CU3ER[n].updateIndicator(++CU3ER[n].a,CU3ER[n].totalInd,CU3ER[n].stage+" .CU3ERindicator",!0),CU3ER[n].debug("first slide loaded"))})})
var $={}
if(a!==void 0){var et=""
if(a.thumb!==void 0&&a.thumb.title!==void 0&&(a.thumb.title.use_numbering!==void 0&&"true"==a.thumb.title.use_numbering&&(et+=parseInt(i)+1+a.thumb.title.use_numbering_separator+" "),a.thumb.title.use_heading!==void 0&&"true"==a.thumb.title.use_heading&&e.slide[i].description!==void 0&&(et+="[object String]"==Object.prototype.toString.call(e.slide[i].description.heading)?e.slide[i].description.heading+" ":""),a.thumb.title.use_caption!==void 0&&"true"==a.thumb.title.use_caption&&e.slide[i].caption!==void 0&&(et+="[object String]"==Object.prototype.toString.call(e.slide[i].caption)?e.slide[i].caption+" ":""),""!=et&&(et='<div class="CU3ERtitle">'+et+"</div>",$.position="absolute",$.left=parseInt(a.thumb.title.x)+"px",$.top=parseInt(a.thumb.title.y)+"px",$.width=a.thumb.title.width+"px",$.height=a.thumb.title.height+"px",$.opacity=a.thumb.title.tweenShow.alpha,$.color=a.thumb.title.tweenShow.tint.replace("0x","#"),$.fontSize=a.thumb.title.text_size+"px",$.fontFamily='"'+a.thumb.title.font+'"',$.fontWeight="true"==a.thumb.title.text_bold?"bold":"normal",$.fontStyle="true"==a.thumb.title.text_italic?"italic":"normal",$.textAlign=a.thumb.title.text_align,et.textDecoration="none",$.overflow="hidden",$.lineHeight=a.thumb.title.text_leading!==void 0&&a.thumb.title.text_leading>0?parseInt(a.thumb.title.text_leading)+parseInt(a.thumb.title.text_size)+"px":a.thumb.title.text_size+"px",a.thumb.title.text_letterspacing!==void 0&&a.thumb.title.text_letterspacing>0&&($.letterSpacing=a.thumb.title.text_letterspacing+"px"))),a.thumb!==void 0&&a.thumb.image!==void 0){var tt=q
jQuery(".CU3ERthumbs-holder",o).append('<div class="CU3ERThumb"><div class="CU3ERThumbBG"></div><a href="#" title=""><div width="'+a.thumb.width+'" height="'+a.thumb.height+'"><img src="'+tt+'" width="'+a.thumb.width+'" height="'+a.thumb.height+'" /></div>'+et+"</a></div>")}else jQuery(".CU3ERthumbs-holder",o).append('<div class="CU3ERThumb"><div class="CU3ERThumbBG"></div><a href="#" title="">'+et+"</a></div>")
jQuery(".CU3ERtitle",o).css($).hover(function(){jQuery(this).css({color:a.thumb.title.tweenOver.tint.replace("0x","#")})},function(){jQuery(this).css({color:a.thumb.title.tweenShow.tint.replace("0x","#")})})}}document.body.appendChild(D),this.slidesTotal=e.slide.length,a!==void 0&&this.drawThumbnails(a),images=jQuery(".CU3ERslides-holder div.CU3ERslide img",o),optionsSlides={align_pos:e.align_pos,x:e.x,y:e.y,width:e.width,height:e.height,fullWidth:jQuery(CU3ER[n].stage).width(),fullHeight:jQuery(CU3ER[n].stage).height()},cssSlides=this.calculatePosition(optionsSlides),jQuery(CU3ER[n].slides).css(cssSlides).css("z-index",415).find(".CU3ERbox-holder").css({width:e.width+"px",height:e.height+"px",position:"absolute",top:0,left:0}).parent().find(".CU3ERtransition-holder").css({width:e.width+"px",height:e.height+"px",position:"absolute",top:0,left:0}).parent().find(".CU3ERslides-holder").css({width:e.width+"px",height:e.height+"px",position:"absolute",top:0,left:0}).find(".CU3ERslide").css({width:e.width+"px",height:e.height+"px",display:"block",overflow:"hidden"}).find(".CU3ERSlideImage").css({width:e.width+"px",height:e.height+"px",overflow:"hidden"})}else{e=jQuery.extend(t,e),this.originalJSONelements=e
for(i in CU3ER[n].json.slides.slide)CU3ER[n].json.slides.slide[i].originalPosition=i
"true"==CU3ER[n].randomise&&(CU3ER[n].json.slides.slide=jQuery.shuffle(CU3ER[n].json.slides.slide)),(r!==void 0&&1==r.vars.reverse||"true"==e.reverse)&&(CU3ER[n].json.slides.slide=CU3ER[n].json.slides.slide.reverse(),CU3ER[n].json.slides.transition=CU3ER[n].json.slides.transition.reverse())
for(i in CU3ER[n].json.slides.slide)CU3ER[n].slidesOrder[i]=parseInt(CU3ER[n].json.slides.slide[i].originalPosition)+1
if(a!==void 0&&(a=jQuery.extend(c,a)),a!==void 0){var u="stage"==a.align_to?this.stage:this.slides
jQuery(u).append('<div class="CU3ERthumbs"><div class="CU3ERThumbsScroll"><div class="CU3ERthumbsBG"></div><div class="CU3ERthumbs-holder"></div></div></div>')}for(i in e.slide)if("number"==typeof i||!isNaN(i)){if(CU3ER[n].isCameraFlat()){if(CU3ER[n].jsonOriginal.slides.slide.length===void 0)var X=jQuery.extend(!0,{},p,CU3ER[n].jsonOriginal.defaults.slide,CU3ER[n].jsonOriginal.slides.slide),H=jQuery.extend(!0,{},h,CU3ER[n].jsonOriginal.defaults.transition,CU3ER[n].jsonOriginal.slides.transition)
else var X=jQuery.extend(!0,{},p,CU3ER[n].jsonOriginal.defaults.slide,CU3ER[n].jsonOriginal.slides.slide[i],CU3ER[n].json.slides.slide[i]),H=jQuery.extend(!0,{},h,CU3ER[n].jsonOriginal.defaults.transition,CU3ER[n].jsonOriginal.slides.transition[i],CU3ER[n].json.slides.transition[i])
var q="slide"+(parseInt(i)+1)+".png",tt=CU3ER[n].imgFallbackFolder+"/fallback/thumb_slide"+(parseInt(i)+1)+".png",G=""}else{e.slide[i].url="slide"+(parseInt(i)+1)+".png"
var q=CU3ER[n].imgFallbackFolder+"/fallback/"+e.slide[i].url,tt=CU3ER[n].imgFallbackFolder+"/fallback/thumb_"+e.slide[i].url}if(e.slide[i].link!==void 0){if(e.slide[i].link===void 0||"string"!=typeof e.slide[i].link&&e.slide[i].link.text===void 0)if(CU3ER[n].jsonOriginal.defaults.slide.link!==void 0&&CU3ER[n].jsonOriginal.defaults.slide.link.text!==void 0)var V=CU3ER[n].jsonOriginal.defaults.slide.link.text
else var V="#"
else var V=e.slide[i].link.text!==void 0?e.slide[i].link.text:e.slide[i].link
if(e.slide[i].link.target!==void 0)var J=' target="'+e.slide[i].link.target+'"'
else if(CU3ER[n].jsonOriginal.defaults.slide.link.target!==void 0)var J=' target="'+CU3ER[n].jsonOriginal.defaults.slide.link.target+'"'
else var J=""}else var V="#",J=""
if(CU3ER[n].isCameraFlat()){slides1=jQuery.extend(!0,{},t,e)
var W=parseFloat(X.image.scaleX),Z=parseFloat(X.image.scaleY)
if(G=e.slide[i].color!==void 0?' style="background-color:'+e.slide[i].color.replace("0x","#")+"; width:"+e.width+"px; height:"+e.height+'px;"':slides1.slide.color!==void 0?' style="background-color:'+slides1.slide.color.replace("0x","#")+"; width:"+e.width+"px; height:"+e.height+'px;"':X.color!==void 0?' style="background-color: '+X.color.replace("0x","#")+"; width:"+e.width+"px; height:"+e.height+'px;"':' style="background-color: #000; width:'+e.width+"px; height:"+e.height+'px;"',"true"==e.slide[i].transparent?G=' style="background-color: transparent;"':"true"==slides1.slide.transparent?G=' style="background-color: transparent;"':"true"==X.transparent&&(G=' style="background-color: transparent;"'),"#"!=V)var K=' style="width:'+e.width+"px;height:"+e.height+'px;display:block;"'
else var K=' style="cursor:default !important;"'
if(e.slide[i].use_image!==void 0&&"false"==e.slide[i].use_image)jQuery(".CU3ERslides-holder",o).append('<div id="CU3ERSlide_'+i+'" class="CU3ERslide"'+G+'><a href="'+V+'"'+J+K+"><img /></a></div>")
else{var Y=/https?:\/\/([-\w\.]+)+(:\d+)?(\/([\w/_\.]*(\?\S+)?)?)?/
if(Y.test(e.slide[i].url))var q=e.slide[i].url
else var q=s.folder_images+"/"+e.slide[i].url
jQuery(".CU3ERslides-holder",o).append('<div id="CU3ERSlide_'+i+'" class="CU3ERslide notLoaded"'+G+'><a href="'+V+'"'+J+K+'><img rel="'+W+":"+Z+":"+X.image.x+":"+X.image.y+":"+X.image.align_pos+":"+X.image.fit+'" /></a></div>').find("#CU3ERSlide_"+i+" img").bind("load",function(){var t=this.width,i=this.height,s=jQuery(this)[0],a=jQuery(s).attr("rel").split(":")
if(jQuery("<img>").attr("src",jQuery(s).attr("src")).load(function(){var r=a[5]
if("inside"==a[5]){a[0]=a[1]=1/Math.max(t/parseInt(e.width),i/parseInt(e.height))
var o=a[0]*t,l=a[0]*i}else if("outside"==a[5]){a[0]=a[1]=1/Math.min(t/parseInt(e.width),i/parseInt(e.height))
var o=a[0]*t,l=a[0]*i}else{if(t==this.width)var o=t*parseFloat(a[0])
else{a[0]=Math.round(100*(this.width*a[0]/t))/100
var o=t*parseFloat(a[0])}if(i==this.height)var l=i*parseFloat(a[1])
else{a[1]=Math.round(100*(this.height*a[1]/i))/100
var l=i*parseFloat(a[1])}}optionsImage={align_pos:a[4],x:a[2],y:a[3],fullWidth:e.width,fullHeight:e.height,width:o,height:l},isNaN(this.width)||isNaN(this.height)||(a[5]=this.width,a[6]=this.height,a[7]=r)
var d=CU3ER[n].calculatePosition(optionsImage)
d.position="relative"
var c=a.join(":")
jQuery(s).css({width:o+"px",height:l+"px"}).css(d).attr("rel",c),jQuery(s).parent().parent().removeClass("notLoaded").trigger("classChanged")}),jQuery.browser.msie){var r=a[5]
if("inside"==a[5]){a[0]=a[1]=1/Math.max(t/parseInt(e.width),i/parseInt(e.height))
var o=a[0]*t,l=a[0]*i}else if("outside"==a[5]){a[0]=a[1]=1/Math.min(t/parseInt(e.width),i/parseInt(e.height))
var o=a[0]*t,l=a[0]*i}else{if(jQuery(this).width()==this.width)var o=t*parseFloat(a[0])
else{a[0]=Math.round(this.width*a[0]/t*Math.pow(10,2))/Math.pow(10,2)
var o=t*parseFloat(a[0])}if(jQuery(this).height()==this.height)var l=i*parseFloat(a[1])
else{a[1]=Math.round(this.height*a[1]/i*Math.pow(10,2))/Math.pow(10,2)
var l=i*parseFloat(a[1])}}o=Math.round((o+.004)*Math.pow(10,2))/Math.pow(10,2),l=Math.round((l+.004)*Math.pow(10,2))/Math.pow(10,2),optionsImage={align_pos:a[4],x:a[2],y:a[3],fullWidth:e.width,fullHeight:e.height,width:o,height:l},isNaN(this.width)||isNaN(this.height)||(a[5]=this.width,a[6]=this.height,a[7]=r)
var d=CU3ER[n].calculatePosition(optionsImage)
d.position="relative"
var c=a.join(":")
jQuery(s).css({width:o+"px",height:l+"px"}).css(d).attr("rel",c),jQuery(s).parent().parent().removeClass("notLoaded")}jQuery(this).parent().parent().removeClass("notLoaded")}).attr("src",q)}}else if("#"!=V){var J=e.slide[i].link.target===void 0?"_blank":e.slide[i].link.target
jQuery(".CU3ERslides-holder",o).append('<div id="CU3ERSlide_'+i+'" class="CU3ERslide notLoaded"><a href="'+V+'" target="'+J+'"><img src="'+q+'" alt="" /></a></div>').find(".CU3ERslide img").bind("load",function(){jQuery(this).parent().parent().removeClass("notLoaded").trigger("classChanged")
var e=jQuery(this).parent().parent().attr("id").split("_")
e[1]==CU3ER[n].no&&(l=!0,CU3ER[n].updateIndicator(++CU3ER[n].a,CU3ER[n].totalInd,CU3ER[n].stage+" .CU3ERindicator",!0),CU3ER[n].debug("first slide loaded"))})}else jQuery(".CU3ERslides-holder",o).append('<div id="CU3ERSlide_'+i+'" class="CU3ERslide notLoaded"><img src="'+q+'" alt="" /></div>').find(".CU3ERslide img").bind("load",function(){jQuery(this).parent().removeClass("notLoaded").trigger("classChanged")
var e=jQuery(this).parent().attr("id").split("_")
e[1]==CU3ER[n].no&&(l=!0,CU3ER[n].updateIndicator(++CU3ER[n].a,CU3ER[n].totalInd,CU3ER[n].stage+" .CU3ERindicator",!0),CU3ER[n].debug("first slide loaded"))})
var $={}
if(a!==void 0){var et=""
a.thumb!==void 0&&a.thumb.title!==void 0&&(a.thumb.title.use_numbering!==void 0&&"true"==a.thumb.title.use_numbering&&(et+=parseInt(i)+1+a.thumb.title.use_numbering_separator+" "),a.thumb.title.use_heading!==void 0&&"true"==a.thumb.title.use_heading&&"[object String]"==Object.prototype.toString.call(e.slide[i].description.heading)&&(et+=e.slide[i].description.heading!==void 0?e.slide[i].description.heading+" ":""),a.thumb.title.use_caption!==void 0&&"true"==a.thumb.title.use_caption&&"[object String]"==Object.prototype.toString.call(e.slide[i].caption)&&(et+=e.slide[i].caption!==void 0?e.slide[i].caption+" ":""),""!=et&&(et='<div class="CU3ERtitle">'+et+"</div>",$.position="absolute",$.left=parseInt(a.thumb.title.x)+"px",$.top=parseInt(a.thumb.title.y)+"px",$.width=a.thumb.title.width+"px",$.height=a.thumb.title.height+"px",$.opacity=a.thumb.title.tweenShow.alpha,$.color=a.thumb.title.tweenShow.tint.replace("0x","#"),$.fontSize=a.thumb.title.text_size+"px",$.fontFamily='"'+a.thumb.title.font+'"',$.fontWeight="true"==a.thumb.title.text_bold?"bold":"normal",$.fontStyle="true"==a.thumb.title.text_italic?"italic":"normal",$.textAlign=a.thumb.title.text_align,et.textDecoration="none",$.overflow="hidden",$.lineHeight=a.thumb.title.text_leading!==void 0&&a.thumb.title.text_leading>0?parseInt(a.thumb.title.text_leading)+parseInt(a.thumb.title.text_size)+"px":a.thumb.title.text_size+"px",a.thumb.title.text_letterspacing!==void 0&&a.thumb.title.text_letterspacing>0&&($.letterSpacing=a.thumb.title.text_letterspacing+"px"))),a.thumb!==void 0&&a.thumb.image!==void 0?jQuery(".CU3ERthumbs-holder",o).append('<div class="CU3ERThumb"><div class="CU3ERThumbBG"></div><a href="#" title=""><div class="CU3ERThumbImage" width="'+a.thumb.width+'" height="'+a.thumb.height+'"><img src="'+tt+'"  width="'+a.thumb.width+'" height="'+a.thumb.height+'" /></div>'+et+"</a></div>"):jQuery(".CU3ERthumbs-holder",o).append('<div class="CU3ERThumb"><div class="CU3ERThumbBG"></div><a href="#" title="">'+et+"</a></div>"),jQuery(".CU3ERtitle",o).css($).hover(function(){jQuery(this).css({color:a.thumb.title.tweenOver.tint.replace("0x","#")})},function(){jQuery(this).css({color:a.thumb.title.tweenShow.tint.replace("0x","#")})})}}this.slidesTotal=e.slide.length,a!==void 0&&this.drawThumbnails(a),images=jQuery(".CU3ERslides-holder div.CU3ERslide img",o),jQuery(images[CU3ER[n].current]).bind("load",function(){l=!0,CU3ER[n].updateIndicator(++CU3ER[n].a,CU3ER[n].totalInd,CU3ER[n].stage+" .CU3ERindicator",!0),CU3ER[n].debug("first slide loaded")}),optionsSlides={align_pos:e.align_pos,x:e.x,y:e.y,width:e.width,height:e.height,fullWidth:CU3ER[n].json.settings.width,fullHeight:CU3ER[n].json.settings.height},cssSlides=this.calculatePosition(optionsSlides),jQuery(CU3ER[n].slides).css(cssSlides).find(".CU3ERslides-holder").css({width:e.width+"px",height:e.height+"px",position:"absolute",top:0,left:0}).parent().find(".CU3ERtransition-holder").css({width:e.width+"px",height:e.height+"px",position:"absolute",top:0,left:0})}var it=jQuery(".CU3ERslide",o)
jQuery(it[CU3ER[n].current]).hasClass("notLoaded")||0!=l||(l=!0,CU3ER[n].updateIndicator(++CU3ER[n].a,CU3ER[n].totalInd,CU3ER[n].stage+" .CU3ERindicator",!0),CU3ER[n].debug("first slide loaded")),jQuery(".CU3ERslide a",o).bind("mouseover",function(){jQuery(this).css("backgroundColor","transparent")}),jQuery(".CU3ERSlideImage",o).css({width:e.width+"px",height:e.height+"px"})},drawCircularProgressBar:function(e){var t=this.id,i=this.el
this.stopFlag=!1,clearTimeout(this.circularPBOptions.tempTimeout)
var s="stage"==e.align_to?this.stage:this.slides,a=2*parseInt(this.circularPBOptions.radius)+parseInt(this.circularPBOptions.padding)
jQuery(".CU3ERindicator",i).remove(),jQuery(s).append('<div class="CU3ERindicator"><canvas id="CU3ERprogressbar" width="'+(a+3)+'" height="'+(a+3)+'"></canvas></div>')
var r=this.circularPBOptions.color1.replace("0x",""),n=this.circularPBOptions.color2.replace("0x","")
this.circularPBOptions.opacity1
var o=this.circularPBOptions.opacity2,l=document.getElementById("CU3ERprogressbar").getContext("2d")
l.beginPath(),l.lineWidth=this.circularPBOptions.radius
var d=parseInt(r.substr(0,2),16),c=parseInt(r.substr(2,2),16),h=parseInt(r.substr(4,2),16)
l.strokeStyle="rgba("+d+", "+c+", "+h+", "+this.circularPBOptions.opacity1+")",l.arc(this.circularPBOptions.radius,this.circularPBOptions.radius,this.circularPBOptions.radius/2,2*Math.PI,0,!0),l.stroke(),l.closePath(),l.beginPath()
var p=this.circularPBOptions.radius-this.circularPBOptions.padding
p=0>p?-p:p,l.lineWidth=p
var u=parseInt(n.substr(0,2),16),f=parseInt(n.substr(2,2),16),g=parseInt(n.substr(4,2),16)
if(l.strokeStyle="rgba("+u+", "+f+", "+g+", "+o+")",l.arc(this.circularPBOptions.radius,this.circularPBOptions.radius,p/2,2*Math.PI,0,!1),l.stroke(),l.closePath(),clearTimeout(this.circularPBOptions.tempTimeout),this.startCircularProgressbar(this.circularPBOptions),"stage"==e.align_to)var m=this.json.settings.width,b=this.json.settings.height
else var m=this.json.slides.width,b=this.json.slides.height
optionsProgress={align_pos:e.align_pos,x:e.posX,y:e.posY,width:a-3,height:a,fullWidth:m,fullHeight:b},cssProgress=this.calculatePosition(optionsProgress),jQuery(".CU3ERindicator",i).css({width:2*parseInt(e.radius)+parseInt(e.padding)+"px",height:2*parseInt(e.radius)+parseInt(e.padding)+"px",position:"absolute",background:"transparent","z-index":470,opacity:1,cursor:"pointer","-webkit-transform":"rotateZ(-90deg) translateZ(3px)","-moz-transform":"rotate(-90deg)","-moz-transform":"rotateZ(-90deg) translateZ(3px)",transform:"rotate(-90deg)","-o-transform":"rotate(-90deg)"}).css(cssProgress).hover(function(){CU3ER[t].circularPBOptions.color2=e.colorLoaderHover.replace("0x",""),CU3ER[t].circularPBOptions.opacity1=e.hoverAlpha,CU3ER[t].changeColorOnCircularProgressbar(CU3ER[t].circularPBOptions)},function(){CU3ER[t].circularPBOptions.color2=e.colorLoader.replace("0x",""),CU3ER[t].circularPBOptions.opacity1=e.bgAlpha,CU3ER[t].changeColorOnCircularProgressbar(CU3ER[t].circularPBOptions)})},startCircularProgressbar:function(e){var t=this.id
this.el
var i=arguments[1]!==void 0?arguments[1]:!1,s=Math.ceil(this.sleepDuration/35)
this.degMovement=Math.ceil(360/s)
var a=e.startPoint*Math.PI/180,r=e.endPoint*Math.PI/180,n=this.circularPBOptions.color1.replace("0x",""),o=this.circularPBOptions.color2.replace("0x",""),l=this.circularPBOptions.opacity1,d=this.circularPBOptions.opacity2,c=document.getElementById("CU3ERprogressbar").getContext("2d"),h=2*parseInt(this.circularPBOptions.radius)+parseInt(this.circularPBOptions.padding)
c.clearRect(0,0,h+3,h+3),c.beginPath(),c.width=2*e.radius,c.height=2*e.radius,c.lineWidth=e.radius
var p=parseInt(n.substr(0,2),16),u=parseInt(n.substr(2,2),16),f=parseInt(n.substr(4,2),16)
c.strokeStyle="rgba("+p+", "+u+", "+f+", "+l+")",c.arc(e.radius,e.radius,e.radius/2,2*Math.PI,0,!0),c.stroke(),c.closePath(),c.beginPath(),c.lineWidth=e.radius-e.padding
var g=parseInt(o.substr(0,2),16),m=parseInt(o.substr(2,2),16),b=parseInt(o.substr(4,2),16),C=e.radius-e.padding
C=0>C?-C:C,c.strokeStyle="rgba("+g+", "+m+", "+b+", "+d+")",c.arc(e.radius,e.radius,C/2,a,r,!1),c.stroke(),c.closePath(),this.circularPBOptions.endPoint=e.endPoint+this.degMovement,365>=this.circularPBOptions.endPoint?0==this.stopFlag&&(this.circularPBOptions.tempTimeout=setTimeout(function(){CU3ER[t].startCircularProgressbar(CU3ER[t].circularPBOptions,i)},30)):(CU3ER[t].circularPBOptions.endPoint=0,i&&CU3ER[t].skipTo(CU3ER[t].calculateNext(CU3ER[t].current),!0,!0))},animateCircularProgressbarTo:function(e){this.id,this.el
var t=e.startPoint*Math.PI/180,i=e.endDeg*Math.PI/180,s=this.circularPBOptions.color1.replace("0x",""),a=this.circularPBOptions.color2.replace("0x",""),r=this.circularPBOptions.opacity1,n=this.circularPBOptions.opacity2,o=document.getElementById("CU3ERprogressbar").getContext("2d"),l=2*parseInt(this.circularPBOptions.radius)+parseInt(this.circularPBOptions.padding)
o.clearRect(0,0,l+3,l+3),o.beginPath()
var d=this.circularPBOptions.radius-this.circularPBOptions.padding
d=0>d?-d:d,o.width=2*e.radius,o.height=2*e.radius,o.lineWidth=e.radius
var c=parseInt(s.substr(0,2),16),h=parseInt(s.substr(2,2),16),p=parseInt(s.substr(4,2),16)
o.strokeStyle="rgba("+c+", "+h+", "+p+", "+r+")",o.arc(e.radius,e.radius,e.radius/2,2*Math.PI,0,!0),o.stroke(),o.closePath(),o.beginPath(),o.lineWidth=e.radius-e.padding
var u=parseInt(a.substr(0,2),16),f=parseInt(a.substr(2,2),16),g=parseInt(a.substr(4,2),16),d=e.radius-e.padding
d=0>d?-d:d,o.strokeStyle="rgba("+u+", "+f+", "+g+", "+n+")",o.arc(e.radius,e.radius,d/2,t,i,!1),o.stroke(),o.closePath()},stopCircularProgressbar:function(){this.id,this.el,clearTimeout(this.circularPBOptions.tempTimeout),clearTimeout(this.tempTimeout[this.current]),this.stopFlag=!0,this.circularPBOptions.endPoint=this.circularPBOptions.endPoint-this.degMovement,clearTimeout(this.circularPBOptions.tempTimeout)},changeColorOnCircularProgressbar:function(e){this.id,this.el
var t=e.startPoint*Math.PI/180,i=e.endPoint*Math.PI/180,s=this.circularPBOptions.color1.replace("0x",""),a=this.circularPBOptions.color2.replace("0x",""),r=this.circularPBOptions.opacity1,n=this.circularPBOptions.opacity2,o=document.getElementById("CU3ERprogressbar").getContext("2d")
o.beginPath(),o.width=2*e.radius,o.height=2*e.radius,o.lineWidth=e.radius
var l=parseInt(s.substr(0,2),16),d=parseInt(s.substr(2,2),16),c=parseInt(s.substr(4,2),16)
o.strokeStyle="rgba("+l+", "+d+", "+c+", "+r+")",o.arc(e.radius,e.radius,e.radius/2,2*Math.PI,0,!0),o.stroke(),o.beginPath(),o.lineWidth=e.radius-e.padding
var h=parseInt(a.substr(0,2),16),p=parseInt(a.substr(2,2),16),u=parseInt(a.substr(4,2),16),f=e.radius-e.padding
f=0>f?-f:f,o.strokeStyle="rgba("+h+", "+p+", "+u+", "+n+")",o.arc(e.radius,e.radius,f/2,t,i,!1),o.stroke()},addDigit:function(e){return 1==e.length?"0"+e:e},drawProgressBar:function(e){var t=this.id,i=this.el,s="stage"==e.align_to?this.stage:this.slides
jQuery(".CU3ERindicator",i).remove(),jQuery(s).append('<div class="CU3ERindicator"></div>'),jQuery(".CU3ERindicator",i).append('<div class="CU3ERprogressAlpha"></div><div class="CU3ERprogress"></div>')
var a={loaderTweenShowTint:"#ff0000",loaderTweenOverTint:"#ff0000",loaderTweenShowAlpha:.75,loaderTweenOverAlpha:1,bgTweenShowAlpha:.75,bgTweenOverAlpha:1,bgTweenShowTint:"#ff0000",bgTweenOverTint:"#ff0000",padding:5,width:120,height:20,x:0,y:0,imageScaleX:1,imageScaleY:1,preloaderImage:"http://getcu3er.com/CU3ER-images/CU3ER.png",preloaderWidth:80,preloaderHeight:122,preloaderAlign_pos:"MC",preloaderX:0,preloaderY:0}
e=jQuery.extend(a,e)
var r,n=!1,o=CU3ER[t].xml
try{r=window.ActiveXObject&&10>parseInt(jQuery.browser.version)?o.xml:(new XMLSerializer).serializeToString(o)}catch(d){r=o}(r===void 0||""==r)&&(r=o)
var c=(r+"").match(/(<licence>(.)*<\/licence>)+/gi)
if((c+"").indexOf("</licence>")>-1&&(c=(c+"").split("</licence>")),null!=c?c.push(CU3ER[t].licenseStr):c=Array(CU3ER[t].licenseStr),null!=this.licenceEncoded)for(var h=0;this.licenceEncoded.length>h;h++)CU3ER[t].licenceEncoded[h].text!==void 0&&(null!=c?c.push(CU3ER[t].licenceEncoded[h].text):c=Array(CU3ER[t].licenceEncoded[h].text))
if(null!=c){for(var h=0;c.length>h;h++)c[h]=c[h].split("<licence>").join("").split("</licence>").join(""),c[h]=c[h].split("<![CDATA[").join("").split("]]>").join("")
CU3ER[t].licd=Array(),CU3ER[t].licd.push("")
for(var p=0;c.length>p;p++){var u=c[p]+""
if(u.length>32){for(var f="",g="",m=0;u.length>m;)16>m&&(f+=u.charAt(m),m++),g+=u.charAt(m),m++
var b=""
for(m=0;f.length>m;m++)b+=(f.charCodeAt(m)-65)/3
b>=CU3ER[t].globald&&(c[p]=g,CU3ER[t].licd.push(b+"|"))}}var C=!1,v=!1
if(0!=c.length){var R=document.location.href.toLowerCase()
R=R.split("https://").join("").split("http://").join("").split("www.").join(""),R=R.split("/")[0],"file:"==R&&(R="localdrive")
for(var j=R.split(".");j.length>4;)j.splice(0,1)
var y=j
R=j.join(".")
var h,E,U,w,x,I,Q=R
for(I=0;CU3ER[t].licd.length>I;I++){R=CU3ER[t].licd[I]+Q,x=""
var k=["","join","www.","split","http://","https://","/","charCodeAt","length","fromCharCode"]
for(R=R[k[3]](k[5])[k[1]](k[0])[k[3]](k[4])[k[1]](k[0])[k[3]](k[2])[k[1]](k[0]),R=R[k[3]](k[6])[0],h=0;32>h;h++){for(E=h%2+1,U=0,w=0;R[k[8]]>w;)U+=(R[k[7]](w)+3)%(h+1)*(R[k[7]](w)+2),w+=E
U=U%94+33,60==U&&(U=58),62==U&&(U=59),x+=String[k[9]](U)}for(l=0;c.length>l;l++)v=v||x==""+c[l]
for(x=x.split("+").join(" "),l=0;c.length>l;l++)v=v||x==""+c[l]}if(j.length>3)for(x="",j=j.slice(1),R=j.join("."),Q=R,I=0;CU3ER[t].licd.length>I;I++){for(R=CU3ER[t].licd[I]+Q,x="",k=["","join","www.","split","http://","https://","/","charCodeAt","length","fromCharCode"],R=R[k[3]](k[5])[k[1]](k[0])[k[3]](k[4])[k[1]](k[0])[k[3]](k[2])[k[1]](k[0]),R=R[k[3]](k[6])[0],h=0;32>h;h++){for(E=h%2+1,U=0,w=0;R[k[8]]>w;)U+=(R[k[7]](w)+3)%(h+1)*(R[k[7]](w)+2),w+=E
U=U%94+33,60==U&&(U=58),62==U&&(U=59),x+=String[k[9]](U)}for(l=0;c.length>l;l++)v=v||x==""+c[l]
for(x=x.split("+").join(" "),l=0;c.length>l;l++)v=v||x==""+c[l]}if(j=y,j.length>2)for(j=j.slice(1),R=j.join("."),Q=R,I=0;CU3ER[t].licd.length>I;I++){for(R=CU3ER[t].licd[I]+Q,x="",k=["","join","www.","split","http://","https://","/","charCodeAt","length","fromCharCode"],R=R[k[3]](k[5])[k[1]](k[0])[k[3]](k[4])[k[1]](k[0])[k[3]](k[2])[k[1]](k[0]),R=R[k[3]](k[6])[0],h=0;32>h;h++){for(E=h%2+1,U=0,w=0;R[k[8]]>w;)U+=(R[k[7]](w)+3)%(h+1)*(R[k[7]](w)+2),w+=E
U=U%94+33,60==U&&(U=58),62==U&&(U=59),x+=String[k[9]](U)}for(l=0;c.length>l;l++)v=v||x==""+c[l]
for(x=x.split("+").join(" "),l=0;c.length>l;l++)v=v||x==""+c[l]}C=v?!0:!1}else C=!1}else C=!1
if("sliderLoad"==e.type){if(1==this.responsiveSlider&&this.responsivelyResizeSlider(),CU3ER[t].json.settings.branding!==void 0)var S=CU3ER[t].json.settings.branding.remove_logo_loader!==void 0?CU3ER[t].json.settings.branding.remove_logo_loader:"false"
else var S="false"
if(C&&"true"==S)if(e.image===void 0||null==e.image){if(jQuery(".CU3ERprogress",i).css({"background-color":e.loaderTweenShowTint.replace("0x","#")}).hover(function(){jQuery(this).css({"background-color":e.loaderTweenOverTint.replace("0x","#"),opacity:e.loaderTweenOverAlpha,cursor:"pointer"})},function(){jQuery(this).css({"background-color":e.loaderTweenShowTint.replace("0x","#"),opacity:e.loaderTweenShowAlpha})}),"circular"==e.shape){if(this.supportCanvas())return this.circularPBOptions={color1:e.bgTweenShowTint.replace("0x",""),color2:e.loaderTweenShowTint.replace("0x",""),opacity1:e.bgTweenShowAlpha,opacity2:e.loaderTweenShowAlpha,padding:e.padding,radius:e.radius,startPoint:0,endPoint:0,tempTimeout:null,shape:"circular",startSlider:!0},this.drawCircularProgressBar(e),!1
e.width=2*parseInt(CU3ER[t].json.preloader.radius),e.height=10>parseInt(CU3ER[t].json.preloader.radius)/4?10:parseInt(CU3ER[t].json.preloader.radius)/4}}else jQuery(".CU3ERprogress, .CU3ERprogressAlpha",i).css({background:'transparent url("'+e.image+'") no-repeat top left',"background-size":e.width+"px "+e.height+"px"})
else e.image=a.preloaderImage,e.width=a.preloaderWidth,e.height=a.preloaderHeight,e.align_pos=a.preloaderAlign_pos,e.posX=a.preloaderX,e.posY=a.preloaderY,e.loaderTreenOverTint="transparent",e.loaderTweenShowTint="transparent",e.bgTweenShowTint="transparent",e.bgTweenOverTint="transparent",e.loaderTweenShowAlpha=.5,e.loaderTweenOverAlpha=.5,e.bgTweenShowAlpha=.5,e.bgTweenOverAlpha=.5,jQuery(".CU3ERprogress, .CU3ERprogressAlpha",i).css({background:'transparent url("'+e.image+'") no-repeat top left'}),n=!0}else if(jQuery(".CU3ERprogress",i).css("backgroundColor",e.loaderTweenShowTint.replace("0x","#")).hover(function(){jQuery(this).css({backgroundColor:e.loaderTweenOverTint.replace("0x","#"),opacity:e.loaderTweenOverAlpha,cursor:"pointer"})},function(){jQuery(this).css({backgroundColor:e.loaderTweenShowTint.replace("0x","#"),opacity:e.loaderTweenShowAlpha})}),"circular"==e.shape){if(this.supportCanvas())return this.circularPBOptions={color1:e.bgTweenShowTint.replace("0x",""),color2:e.loaderTweenShowTint.replace("0x",""),opacity1:e.bgTweenShowAlpha>0?e.bgTweenShowAlpha:"0.75",opacity2:e.loaderTweenShowAlpha>0?e.loaderTweenShowAlpha:"0.75",padding:e.padding,radius:e.radius,startPoint:0,endPoint:0,tempTimeout:null,shape:"circular"},this.drawCircularProgressBar(e),!1
e.width=2*parseInt(CU3ER[t].json.controls.auto_play_indicator.radius),e.height=10>parseInt(CU3ER[t].json.controls.auto_play_indicator.radius)/4?10:parseInt(CU3ER[t].json.controls.auto_play_indicator.radius)/4}if("stage"==e.align_to||1==n)var _=this.json.settings.width,T=this.json.settings.height
else var _=this.json.slides.width,T=this.json.slides.height
if(optionsProgress={align_pos:e.align_pos,x:e.posX,y:e.posY,width:e.width,height:e.height,fullWidth:_,fullHeight:T},cssProgress=this.calculatePosition(optionsProgress),jQuery(".CU3ERindicator",i).css({width:parseInt(e.width)-parseInt(e.padding)+"px",height:parseInt(e.height)+"px",position:"absolute",background:"transparent","z-index":450,opacity:1,cursor:"pointer","line-height":"1px"}).css(cssProgress),jQuery(".CU3ERprogressAlpha",i).css({width:parseInt(e.width)-parseInt(e.padding)+"px",height:parseInt(e.height)+"px"}),"sliderLoad"==e.type&&jQuery(".CU3ERindicator",i).css({opacity:1,cursor:"default",background:"transparent"}).unbind(),0==e.height%2)var M=2
else var M=1
var P=1>parseInt(e.height)-2*parseInt(e.padding)?M:+(parseInt(e.height)-2*parseInt(e.padding)),O={top:parseInt(e.padding),left:parseInt(e.padding),maxWidth:parseInt(e.width)-parseInt(e.padding)-2*parseInt(e.padding)+"px",height:P+"px","line-height":"1px"}
if(jQuery.browser.msie){var F=jQuery("<div>").css({top:0,left:0,width:parseInt(e.width)-parseInt(e.padding)-2*parseInt(e.padding)+"px",height:P+"px",position:"absolute","line-height":"1px"})
jQuery(".CU3ERprogress",i).wrap(F)}jQuery(".CU3ERprogress",i).css({width:0,height:parseInt(e.height),position:"absolute","z-index":451,opacity:e.loaderTweenShowAlpha,padding:0,margin:0,left:0,top:0,"line-height":"1px"}),jQuery(".CU3ERprogress",i).css("z-index",452),(e.image===void 0||null==e.image)&&jQuery(".CU3ERprogress",i).css(O),jQuery(".CU3ERprogressAlpha",i).css({opacity:e.bgTweenShowAlpha,width:parseInt(e.width)-parseInt(e.padding)+"px",height:parseInt(e.height)+"px",background:e.image===void 0||null==e.image?e.bgTweenShowTint.replace("0x","#"):'transparent url("'+e.image+'") no-repeat top left',"background-size":e.image===void 0||null==e.image?"":e.width+"px "+e.height+"px",padding:0,margin:0,left:0,top:0,"line-height":"1px"}),jQuery(".CU3ERprogress",i).css({opacity:e.loaderTweenShowAlpha}),n&&(jQuery(".CU3ERprogress",i).css({opacity:1}),jQuery(".CU3ERindicator",i).css({opacity:1,cursor:"pointer","z-index":1001}).bind("click",function(){var e=CU3ER[t].json.referral!==void 0?"?cu3er="+CU3ER[t].json.referral:""
window.open("http://getcu3er.com/"+e,"CU3ER")}),n=!1)},drawButtons:function(e,t,i,s,a){var r=this.id,n=this.el,o={align_to:"slides",align_pos:"TL",x:"0",y:"0",width:40,height:40,background:{tweenShow:{tint:"#ffffff",alpha:.85,x:0,y:0,scaleX:1,scaleY:1},tweenOver:{tint:"#ffffff",alpha:1,x:0,y:0,scaleX:1,scaleY:1},tweenHide:{tint:"#ffffff",alpha:0,x:0,y:0,scaleX:1,scaleY:1}}},l=jQuery.extend(!0,{},o)
e=jQuery.extend(!0,l,e)
var d="stage"==e.align_to?this.stage:this.slides
jQuery(d).append('<div class="CU3ERbutton'+e.type1+'"><div class="CU3ERshowBtn"><div class="CU3ERButton'+e.type1+'BG"></div></div><div class="CU3ERoverBtn"><div class="CU3ERButton'+e.type1+'BG"></div></div></div>'),e.symbol!==void 0&&(jQuery(".CU3ERbutton"+e.type1+" .CU3ERshowBtn",n).append('<img src="'+CU3ER[r].imgFallbackFolder+"/fallback/"+e.type+'_symbol_show.png" />').find("img").css({"z-index":451,position:"absolute",top:0,left:0}).load(function(){null==CU3ER[r].transition&&(CU3ER[r].updateIndicator(++CU3ER[r].a,CU3ER[r].totalInd,CU3ER[r].stage+" .CU3ERindicator",!0),CU3ER[r].debug(e.type1+" button loaded"))}).error(function(){null==CU3ER[r].transition&&(CU3ER[r].updateIndicator(++CU3ER[r].a,CU3ER[r].totalInd,CU3ER[r].stage+" .CU3ERindicator",!0),CU3ER[r].debug(e.type1+" button not exist"))}),jQuery(".CU3ERbutton"+e.type1+" .CU3ERoverBtn",n).append('<img src="'+CU3ER[r].imgFallbackFolder+"/fallback/"+e.type+'_symbol_over.png" />').find("img").css({"z-index":451,position:"absolute",top:0,left:0})),optionsButton={align_pos:e.align_pos,x:Math.round(parseFloat(e.x)),y:Math.round(parseFloat(e.y)),width:Math.round(parseFloat(e.width)),height:Math.round(parseFloat(e.height)),fullWidth:"slides"==e.align_to?parseInt(t):parseInt(s),fullHeight:"slides"==e.align_to?parseInt(i):parseInt(a)}
var c=this.calculatePosition(optionsButton)
optionsButtonHover={align_pos:e.align_pos,x:parseInt(e.x)+parseInt(e.background.tweenOver.x),y:parseInt(e.y)+parseInt(e.background.tweenOver.y),width:Math.round(parseFloat(e.width)*parseFloat(e.background.tweenOver.scaleX)),height:Math.round(parseFloat(e.height)*parseFloat(e.background.tweenOver.scaleY)),fullWidth:"slides"==e.align_to?parseInt(t):parseInt(s),fullHeight:"slides"==e.align_to?parseInt(i):parseInt(a)}
var h=this.calculatePosition(optionsButtonHover)
jQuery(".CU3ERbutton"+e.type1+" .CU3ERoverBtn",n).css("display","none").find(".CU3ERButton"+e.type1+"BG").css({opacity:e.background.tweenOver.alpha,backgroundColor:e.background.tweenOver.tint.replace("0x","#"),width:Math.round(parseInt(e.width)*parseFloat(e.background.tweenOver.scaleX))+"px",height:Math.round(parseInt(e.height)*parseFloat(e.background.tweenOver.scaleY))+"px",position:"absolute",top:0,left:0}).borderRadius(e.background.round_corners),jQuery(".CU3ERbutton"+e.type1,n).css({width:Math.round(parseFloat(e.width))+"px",height:Math.round(parseFloat(e.height))+"px",position:"absolute",cursor:"pointer",zIndex:451,"-webkit-transform":"translateZ(1px)","-moz-transform":"translateZ(1px)",display:"none"}).css(c).hover(function(){var t=jQuery(this)
jQuery(t).css(h).css({width:Math.round(parseInt(e.width)*parseFloat(e.background.tweenOver.scaleX))+"px",height:Math.round(parseInt(e.height)*parseFloat(e.background.tweenOver.scaleY))+"px"}),jQuery(".CU3ERshowBtn",jQuery(this)).css("display","none"),jQuery(".CU3ERoverBtn",jQuery(this)).css("display","block")},function(){var t=jQuery(this)
jQuery(t).css(c).css({width:parseInt(e.width)+"px",height:parseInt(e.height)+"px"}),jQuery(".CU3ERoverBtn",jQuery(this)).css("display","none"),jQuery(".CU3ERshowBtn",jQuery(this)).css("display","block")}).borderRadius(e.background.round_corners).bind("click touchstart",function(){return"prev"==e.type?CU3ER[r].inTransition||(CU3ER[r].inTransition=!0,CU3ER[r].doCheck=!1,setTimeout(function(){CU3ER[r].prev()},50)):CU3ER[r].inTransition||(CU3ER[r].inTransition=!0,CU3ER[r].doCheck=!1,setTimeout(function(){CU3ER[r].next()},50)),!1}).find(".CU3ERshowBtn .CU3ERButton"+e.type1+"BG").css({width:Math.round(parseFloat(e.width))+"px",height:Math.round(parseFloat(e.height))+"px",backgroundColor:e.background.tweenShow.tint.replace("0x","#"),position:"absolute",opacity:e.background.tweenShow.alpha,top:0,left:0}).borderRadius(e.background.round_corners)},drawDescription:function(e){this.id
var t=this.el,i={align_to:"slides",align_pos:"TL",x:0,y:0,width:400,height:100,background:{tweenShow:{tint:"#ff0000",alpha:"0.85",scaleX:1,scaleY:1,x:0,y:0},tweenOver:{tint:"#ff0000",alpha:"1",scaleX:1,scaleY:1,x:0,y:0},tweenHide:{tint:"#ff0000",alpha:"0",scaleX:1,scaleY:1,x:0,y:0}}}
e=jQuery.extend(!0,i,e),e.x=parseInt(e.x)+parseInt(e.background.tweenShow.x),e.y=parseInt(e.y)+parseInt(e.background.tweenShow.y)
var s="stage"==e.align_to?this.stage:this.slides
if("stage"==e.align_to)var a=this.json.settings.width,r=this.json.settings.height
else var a=this.json.slides.width,r=this.json.slides.height
e.fullWidth=a,e.fullHeight=r,e.height=Math.round(parseInt(e.height)*parseFloat(e.background.tweenShow.scaleY)),e.width=Math.round(parseInt(e.width)*parseFloat(e.background.tweenShow.scaleX))
var n=jQuery.extend({},i,e)
n.x=parseInt(e.x)+parseInt(e.background.tweenOver.x),n.y=parseInt(e.y)+parseInt(e.background.tweenOver.y),n.fullWidth=a,n.fullHeight=r,n.height=Math.round(parseInt(e.height)*parseFloat(e.background.tweenOver.scaleY)),n.width=Math.round(parseInt(e.width)*parseFloat(e.background.tweenOver.scaleX)),jQuery(s).append('<div class="CU3ERdescription"></div>')
var o=this.calculatePosition(e),l=this.calculatePosition(n)
jQuery(".CU3ERdescription",t).css({position:"absolute",width:Math.round(parseInt(e.width)*parseFloat(e.background.tweenShow.scaleX))+"px",height:Math.round(parseInt(e.height)*parseFloat(e.background.tweenShow.scaleY))+"px",opacity:1,background:"transparent",zIndex:450,"-webkit-transform":"translateZ(1px)","-moz-transform":"translateZ(1px)",display:"none"}).css(o).append('<div class="CU3ERDescBG"></div><div class="CU3ERDescriptionText"></div>').hover(function(){jQuery(".CU3ERdescription",t).css({width:Math.round(parseInt(e.width)*parseFloat(e.background.tweenOver.scaleX))+"px",height:Math.round(parseInt(e.height)*parseFloat(e.background.tweenOver.scaleY))+"px"}).css(l),jQuery(this).find(".CU3ERDescBG").css({opacity:e.background.tweenOver.alpha,background:e.background.tweenOver.tint.replace("0x","#"),width:Math.round(parseInt(e.width)*parseFloat(e.background.tweenOver.scaleX))+"px",height:Math.round(parseInt(e.height)*parseFloat(e.background.tweenOver.scaleY))+"px"}),e.heading!==void 0&&jQuery(this).find("h2").css({opacity:e.heading.tweenOver.alpha,color:e.heading.tweenOver.tint.replace("0x","#")}).find("a").css({opacity:e.heading.tweenOver.alpha,color:e.heading.tweenOver.tint.replace("0x","#")}),e.paragraph!==void 0&&jQuery(this).find("p").css({opacity:e.paragraph.tweenOver.alpha,color:e.paragraph.tweenOver.tint.replace("0x","#")}).find("a").css({opacity:e.paragraph.tweenOver.alpha,color:e.paragraph.tweenOver.tint.replace("0x","#")})},function(){jQuery(".CU3ERdescription",t).css({width:Math.round(parseInt(e.width)*parseFloat(e.background.tweenShow.scaleX))+"px",height:Math.round(parseInt(e.height)*parseFloat(e.background.tweenShow.scaleY))+"px"}).css(o),jQuery(this).find(".CU3ERDescBG").css({opacity:e.background.tweenShow.alpha,background:e.background.tweenShow.tint.replace("0x","#"),width:Math.round(parseInt(e.width)*parseFloat(e.background.tweenShow.scaleX))+"px",height:Math.round(parseInt(e.height)*parseFloat(e.background.tweenShow.scaleY))+"px"}),e.heading!==void 0&&jQuery(this).find("h2").css({opacity:e.heading.tweenShow.alpha,color:e.heading.tweenShow.tint.replace("0x","#")}).find("a").css({opacity:e.heading.tweenShow.alpha,color:e.heading.tweenShow.tint.replace("0x","#")}),e.paragraph!==void 0&&jQuery(this).find("p").css({opacity:e.paragraph.tweenShow.alpha,color:e.paragraph.tweenShow.tint.replace("0x","#")}).find("a").css({opacity:e.paragraph.tweenShow.alpha,color:e.paragraph.tweenShow.tint.replace("0x","#")})}).find(".CU3ERDescBG").css({position:"relative",top:0,left:0,width:parseInt(e.width)+"px",height:parseInt(e.height)+"px",opacity:e.background.tweenShow.alpha,background:e.background.tweenShow.tint.replace("0x","#"),"z-index":451}).borderRadius(e.background.round_corners).parent().find(".CU3ERDescriptionText").css({position:"absolute",top:0,left:0,display:"block",width:parseInt(e.width)+"px","z-index":452})},drawThumbnails:function(e){var t=this.id,i=this.el
CU3ER[t].debug("creating css for thumbnails"),"stage"==e.align_to?this.stage:this.slides
var s={x:0,y:0,align_pos:"TL",thumb:{background:{tweenShow:{x:0,y:0,tint:"0x000000",alpha:.75},tweenOver:{x:0,y:0,tint:"0x000000",alpha:1},tweenHide:{x:0,y:0,tint:"0x000000",alpha:0},tweenSelected:{x:0,y:0,tint:"0x000000",alpha:.5}},title:{tweenShow:{x:0,y:0,tint:"0xFFFFFF",alpha:.75},tweenOver:{x:0,y:0,tint:"0xFFFFFF",alpha:1},tweenHide:{x:0,y:0,tint:"0xFFFFFF",alpha:0},tweenSelected:{x:0,y:0,tint:"0xFFFFF0",alpha:.5}},image:{tweenShow:{x:0,y:0,alpha:.75},tweenOver:{x:0,y:0,alpha:1},tweenHide:{x:0,y:0,alpha:0},tweenSelected:{x:0,y:0,alpha:.5},x:0,y:0,width:30,height:30,round_corners:"0,0,0,0"},x:0,y:0}},a=0,r=0,n=0
if(e=jQuery.extend(!0,{},s,e),"stage"==e.align_to)var o=this.json.settings.width,l=this.json.settings.height
else var o=this.json.slides.width,l=this.json.slides.height
var d={x:Math.round(parseFloat(e.x)),y:Math.round(parseFloat(e.y)),align_pos:e.align_pos,width:parseInt(e.width),height:parseInt(e.height),fullWidth:o,fullHeight:l}
if(cssThumbs=this.calculatePosition(d),"horizontal"==e.scroll){var c=parseInt(e.width),h=parseInt(this.slidesTotal*parseInt(parseInt(e.thumb.width)+parseInt(e.thumb.spacing_x))),p=Math.floor(parseInt(e.width)/(parseInt(e.thumb.width)+parseInt(e.thumb.spacing_x)))
p*(parseInt(e.thumb.width)+parseInt(e.thumb.spacing_x))+parseInt(e.thumb.width)<e.width&&p++
var u=Math.floor(parseInt(e.height)/(parseInt(e.thumb.height)+parseInt(e.thumb.spacing_y)))
u*(parseInt(e.thumb.height)+parseInt(e.thumb.spacing_y))+parseInt(e.thumb.height)<e.height&&u++,u=0==u?1:u,p=0==p?1:p
var f=h-parseInt(p)*parseInt(u)*parseInt(parseInt(e.thumb.width)+parseInt(e.thumb.spacing_x))
f=f>0?parseInt(e.width)+parseInt(e.padding_x)+parseInt(f):e.width
var g=h/parseInt(p*parseInt(parseInt(e.thumb.width)+parseInt(e.thumb.spacing_x)))
g=Math.ceil(g)>parseInt(u)?parseInt(u):Math.ceil(g),g=parseInt(g)*parseInt(parseInt(e.thumb.height)+parseInt(e.thumb.spacing_y))
var m=parseInt(e.width)-parseInt(e.padding_x)+"px",b=parseInt(e.height)+parseInt(e.padding_y)+"px",C=Math.ceil(this.slidesTotal/p),v=Math.ceil(this.slidesTotal/u)
C=u>=C?C:u,cssThumbHolderScroll=this.calculatePosition({x:0,y:0,align_pos:"TL",width:parseInt(e.width),height:Math.floor(C)*parseInt(e.thumb.height)+Math.floor(u)*parseInt(e.thumb.spacing_y)+parseInt(e.thumb.y)+parseInt(e.padding_y),fullWidth:m,fullHeight:b}),cssThumbHolder=this.calculatePosition({x:parseInt(e.padding_x),y:parseInt(e.padding_y),align_pos:"ML",width:parseInt(e.width),height:Math.floor(C)*parseInt(e.thumb.height)+Math.floor(u)*parseInt(e.thumb.spacing_y)+parseInt(e.thumb.y)+parseInt(e.padding_y)-parseInt(e.thumb.spacing_y),fullWidth:m,fullHeight:b})
var R=!1,j=jQuery(".CU3ERThumb",i)
if(p>=this.slidesTotal)var y=this.slidesTotal
else var y=Math.ceil(this.slidesTotal/Math.floor(u))
var E,U
j.each(function(){a==y&&y>r+1&&(a=0,r++,R=!0),E=a*parseInt(e.thumb.width)+a*parseInt(e.thumb.spacing_x)+parseInt(e.thumb.x),U=r*parseInt(e.thumb.height)+r*parseInt(e.thumb.spacing_y)+parseInt(e.thumb.y)
var i=CU3ER[t].calculatePosition({x:E,y:U,width:parseInt(e.thumb.width),height:Math.floor(u)*parseInt(e.thumb.height),fullWidth:parseInt(m),fullHeight:parseInt(b),align_pos:"TL"})
jQuery(this).css(i).css({position:"absolute"}),a++,n=a>n?a:n})
var w=p>=n?!1:!0
jQuery(".CU3ERthumbs-holder",i).css({width:n*parseInt(e.thumb.width)+(n-1)*parseInt(e.thumb.spacing_x)+"px",height:(r+1)*parseInt(e.thumb.height)+r*parseInt(e.thumb.spacing_y)+"px"})}else{var c=parseInt(e.height)-parseInt(e.padding_y),h=parseInt(this.slidesTotal*parseInt(parseInt(e.thumb.height)+parseInt(e.thumb.spacing_y))+parseInt(e.thumb.y)+parseInt(e.padding_y)),u=Math.floor((parseInt(e.height)+parseInt(e.thumb.spacing_y))/(parseInt(e.thumb.height)+parseInt(e.thumb.spacing_y)))
u*(parseInt(e.thumb.height)+parseInt(e.thumb.spacing_y))+parseInt(e.thumb.height)<e.height&&u++
var p=Math.floor(parseInt(e.width)/(parseInt(e.thumb.width)+parseInt(e.thumb.spacing_x)))
p*(parseInt(e.thumb.width)+parseInt(e.thumb.spacing_x))+parseInt(e.thumb.width)<e.width&&p++,u=0==u?1:u,p=0==p?1:p
var g=h-parseInt(u)*parseInt(p)*parseInt(parseInt(e.thumb.height)+parseInt(e.thumb.spacing_y))
g=g>0?parseInt(e.height)+parseInt(g):e.height
var x=u*(parseInt(e.thumb.height)+parseInt(e.thumb.spacing_y))-parseInt(e.thumb.spacing_y),I=h/parseInt(u*parseInt(parseInt(e.thumb.height)+parseInt(e.thumb.spacing_y)))
f=Math.ceil(I)>parseInt(p)?parseInt(p):Math.ceil(I),f=parseInt(f)*parseInt(parseInt(e.thumb.width)+parseInt(e.thumb.spacing_x)),totalH1=I/p
var m=parseInt(e.width)+parseInt(e.padding_x)+"px",b=parseInt(e.height)-parseInt(e.padding_y)+"px",v=Math.ceil(this.slidesTotal/u),C=Math.ceil(this.slidesTotal/p)
v=p>=v?v:p,cssThumbHolderScroll=this.calculatePosition({x:0,y:0,align_pos:"TL",width:Math.floor(v)*parseInt(e.thumb.width)+Math.floor(p)*parseInt(e.thumb.spacing_x)+parseInt(e.thumb.x)+parseInt(e.padding_x),height:parseInt(e.height),fullWidth:parseInt(m),fullHeight:parseInt(b)})
var Q=Math.floor(v)*parseInt(e.thumb.width)+Math.floor(p)*parseInt(e.thumb.spacing_x)+parseInt(e.thumb.x)+parseInt(e.padding_x)-parseInt(e.thumb.spacing_x),k=p>=v?Q>f?Q:f:m
cssThumbHolder=this.calculatePosition({x:parseInt(e.padding_x),y:parseInt(e.padding_y),align_pos:"TC",width:Q,height:parseInt(e.height),fullWidth:k,fullHeight:u>=v?x:b})
var j=jQuery(".CU3ERThumb",i),R=!1,a=r=0,S=0
j.each(function(){var i=a*parseInt(e.thumb.width)+a*parseInt(e.thumb.spacing_x)+parseInt(e.thumb.x),s=r*parseInt(e.thumb.height)+r*parseInt(e.thumb.spacing_y)+parseInt(e.thumb.y)
S=r
var o=CU3ER[t].calculatePosition({x:i,y:s,width:Math.floor(p)*parseInt(e.thumb.width),height:parseInt(e.thumb.height),fullWidth:parseInt(m),fullHeight:parseInt(b),align_pos:"TL"})
jQuery(this).css(o).css({position:"absolute"}),a++,a>=p&&(a>1&&(R=!0),a=0,r++,n=r>n?r:n)})
var w=u>=n?!1:!0
jQuery(".CU3ERthumbs-holder",i).css({width:p*parseInt(e.thumb.width)+(p-1)*parseInt(e.thumb.spacing_x)+"px",height:(S+1)*parseInt(e.thumb.height)+S*parseInt(e.thumb.spacing_y)+"px"})}if(this.scrollOptions.maximumWidth=p,this.scrollOptions.maximumHeight=u,e.background!==void 0&&jQuery(".CU3ERthumbsBG",i).css({background:e.background.color.replace("0x","#"),opacity:e.background.alpha,width:parseInt(e.width)+"px",height:parseInt(e.height)+"px",position:"absolute",top:0,left:0,outline:"none"}).borderRadius(e.background.round_corners),this.isTouch()?jQuery(".CU3ERthumbs",i).wrap(jQuery("<div />").attr("class","CU3ERtouchPadFix").css({overflow:"hidden",position:"absolute",width:parseInt(e.width)+"px",height:parseInt(e.height)+"px"}).css(cssThumbs)):jQuery(".CU3ERthumbs",i).css(cssThumbs),jQuery(".CU3ERthumbs",i).css({width:parseInt(e.width),height:parseInt(e.height),position:"absolute",visibility:"hidden",zIndex:415,outline:"none","-webkit-transform":"translateZ(0px)","-moz-transform":"translateZ(0px)"}).find(".CU3ERThumbsScroll").css({width:parseInt(e.width),height:parseInt(e.height),outline:"none",overflow:"hidden",position:"absolute"}).css(cssThumbHolderScroll).find(".CU3ERthumbs-holder").css({position:"relative",outline:"none"}).css(cssThumbHolder).find(".CU3ERThumbBG").css({position:"absolute",top:0,left:0,background:e.thumb.background.tweenShow.tint.replace("0x","#"),opacity:e.thumb.background.tweenShow.alpha,width:e.thumb.width+"px",height:e.thumb.height+"px",outline:"none"}).borderRadius(e.thumb.background.round_corners).parent().css({cursor:"pointer",width:e.thumb.width+"px",height:e.thumb.height+"px",border:"none",padding:0,background:"none"}).hover(function(){var t=jQuery(this)
jQuery(".CU3ERThumbBG",i).each(function(){jQuery(this).css({background:jQuery(this).parent().hasClass("current")?e.thumb.background.tweenSelected.tint.replace("0x","#"):e.thumb.background.tweenShow.tint.replace("0x","#"),opacity:jQuery(this).parent().hasClass("current")?e.thumb.background.tweenSelected.alpha:e.thumb.background.tweenShow.alpha})}),jQuery(this).find(".CU3ERThumbBG").css({background:jQuery(t).hasClass("current")?e.thumb.background.tweenSelected.tint.replace("0x","#"):e.thumb.background.tweenOver.tint.replace("0x","#"),opacity:jQuery(t).hasClass("current")?e.thumb.background.tweenSelected.alpha:e.thumb.background.tweenOver.alpha}),jQuery(this).find("a").css({"background-image":"none","background-color":"transparent"}),e.thumb.title!==void 0&&jQuery(this).find(".CU3ERtitle").css({color:jQuery(t).hasClass("current")?e.thumb.title.tweenSelected.tint.replace("0x","#"):e.thumb.title.tweenOver.tint.replace("0x","#"),opacity:jQuery(t).hasClass("current")?e.thumb.background.tweenSelected.alpha:e.thumb.background.tweenOver.alpha}),e.thumb.image!==void 0&&(jQuery(".CU3ERThumb img",i).each(function(){jQuery(this).parent().css({opacity:jQuery(this).hasClass("current")?e.thumb.image.tweenSelected.alpha:e.thumb.image.tweenShow.alpha})}),jQuery(this).find("img").parent().css({opacity:jQuery(this).parent().hasClass("current")?e.thumb.image.tweenSelected.alpha:e.thumb.image.tweenOver.alpha}))},function(){var t=jQuery(this)
jQuery(".CU3ERThumbBG",i).each(function(){jQuery(this).css({background:jQuery(this).parent().hasClass("current")?e.thumb.background.tweenSelected.tint.replace("0x","#"):e.thumb.background.tweenShow.tint.replace("0x","#"),opacity:jQuery(this).parent().hasClass("current")?e.thumb.background.tweenSelected.alpha:e.thumb.background.tweenShow.alpha})}),e.thumb.title!==void 0&&jQuery(this).find(".CU3ERtitle").css({color:jQuery(t).hasClass("current")?e.thumb.title.tweenSelected.tint.replace("0x","#"):e.thumb.title.tweenShow.tint.replace("0x","#"),opacity:jQuery(t).hasClass("current")?e.thumb.title.tweenSelected.alpha:e.thumb.title.tweenShow.alpha}),e.thumb.image!==void 0&&jQuery(".CU3ERThumb img",i).each(function(){jQuery(this).parent().css({opacity:jQuery(this).parent().parent().parent().hasClass("current")?e.thumb.image.tweenSelected.alpha:e.thumb.image.tweenShow.alpha})})}).bind("classChanged",function(){e.thumb.background!==void 0&&(jQuery(".CU3ERThumbBG",i).css({background:e.thumb.background.tweenShow.tint.replace("0x","#"),opacity:e.thumb.background.tweenShow.alpha}),jQuery(this).find(".CU3ERThumbBG").css({background:e.thumb.background.tweenSelected.tint.replace("0x","#"),opacity:e.thumb.background.tweenSelected.alpha})),e.thumb.title!==void 0&&(jQuery(".CU3ERtitle",i).css({color:e.thumb.title.tweenShow.tint.replace("0x","#"),opacity:e.thumb.title.tweenShow.alpha}),jQuery(this).find(".CU3ERtitle").css({color:e.thumb.title.tweenSelected.tint.replace("0x","#"),opacity:e.thumb.title.tweenSelected.alpha})),e.thumb.image!==void 0&&(jQuery(".CU3ERThumb img",i).each(function(){jQuery(this).parent().css({opacity:e.thumb.image.tweenShow.alpha})}),jQuery(this).find("img").parent().css({opacity:e.thumb.image.tweenSelected.alpha}))}).borderRadius(e.thumb.background.round_corners).find(".CU3ERThumbBG").css({position:"absolute",top:0,left:0,background:e.thumb.background.tweenShow.tint.replace("0x","#"),opacity:e.thumb.background.tweenShow.alpha,width:e.thumb.width+"px",height:e.thumb.height+"px",outline:"none"}).borderRadius(e.thumb.background.round_corners).parent().find("a").css({outline:"none",width:e.thumb.width+"px",height:e.thumb.height+"px"}).find("div:first").css({width:e.thumb.width+"px",height:e.thumb.height+"px",position:"relative",cursor:"pointer",overflow:"hidden",outline:"none"}),e.thumb.image!==void 0&&jQuery(".CU3ERthumbs .CU3ERthumbs-holder .CU3ERThumb a img",i).css({width:e.thumb.image.width+"px",height:e.thumb.image.height+"px",outline:"none"}).borderRadius(e.thumb.image.round_corners).parent().css({overflow:"hidden",width:e.thumb.image.width+"px",height:e.thumb.image.height+"px",left:e.thumb.image.x+"px",top:e.thumb.image.y+"px",position:"relative"}).borderRadius(e.thumb.image.round_corners),e.scroller!==void 0){if("horizontal"==e.scroll){var c=parseInt(e.width)
u=0==u?1:u
var _=(this.slidesTotal-Math.floor(u)*Math.floor(p))/Math.floor(u)
_=_>0?_:0,e.scroller.maximum=h=Math.ceil(this.slidesTotal/Math.floor(u))*(parseInt(e.thumb.width)+parseInt(e.thumb.spacing_x))+parseInt(e.padding_x)+parseInt(e.thumb.x),e.scroller.slider.width=Math.round(100*(c/h)),e.scroller.scroll="horizontal"}else{var c=parseInt(e.height)
p=0==p?1:p
var _=(this.slidesTotal-u*p)/p
_=_>0?_:0,e.scroller.maximum=h=Math.ceil(this.slidesTotal/Math.floor(p))*(parseInt(e.thumb.height)+parseInt(e.thumb.spacing_y))+parseInt(e.padding_y)+parseInt(e.thumb.y),e.scroller.slider.width=Math.round(100*(c/h)),e.scroller.scroll="vertical"}100>e.scroller.slider.width&&(e.scroller.thumb=e.thumb,e.scroller.scroller=!0,this.drawScrollBar(e.scroller))}else{var T="horizontal"==e.scroll?parseInt(e.thumb.spacing_x):parseInt(e.thumb.spacing_y)
p=p>=this.slidesTotal?this.slidesTotal:p
var M="horizontal"==e.scroll?u:p
"horizontal"==e.scroll?p:u
var P="horizontal"==e.scroll?parseInt(e.thumb.width):parseInt(e.thumb.height)
e.maximum=Math.ceil(this.slidesTotal/Math.floor(p))*(parseInt(e.thumb.height)+parseInt(T))-Math.floor(M)*parseInt(T)+parseInt(e.padding_x),100>Math.round(100*(e.maximum/h))&&(R?e.maximim=Math.ceil(this.slidesTotal/Math.floor(M))*P+T:e.maximum=h-P+T,w!==void 0&&1==w&&this.attachScrollBehavior(e))}if(!this.isTouch()){var j=jQuery(".CU3ERthumbs .CU3ERthumbs-holder .CU3ERThumb",i)
j.each(function(e){jQuery(j[e]).bind("click",function(){return CU3ER[t].current!=e&&(CU3ER[t].inTransition||(CU3ER[t].inTransition=!0,CU3ER[t].doCheck=!1,setTimeout(function(){CU3ER[t].skipTo(e,!0,!0)},50))),!1})})}},drawScrollBar:function(e){var t=this.id,i=this.el
CU3ER[t].debug("drawing scrollbar and attaching scroll behavior")
var s={align_pos:"TL",x:0,y:0,width:10,height:10,round_corners:"5,5,5,5",bar:{color:"0x777777",alpha:.9},slider:{thickness:6,color:"0xbbbbbb",alpha:1},thumb:{spacing_x:0,spacing_y:0}},e=jQuery.extend(!0,s,e),a=!1,r=0,n=0,o=0,l=0,d=jQuery(".CU3ERthumbsBG",i).outerWidth(),c=jQuery(".CU3ERthumbsBG",i).outerHeight(),h={width:parseInt(e.width),height:parseInt(e.height),x:parseInt(e.x),y:parseInt(e.y),align_pos:e.align_pos,fullWidth:d,fullHeight:c},p=this.calculatePosition(h)
jQuery(".CU3ERthumbs",i).append('<div class="CU3ERscroll-holder"><div class="CU3ERscroll"></div></div>'),jQuery(".CU3ERthumbs",i).bind("mouseover",function(s){var a=jQuery(s.currentTarget).offset(),r=jQuery(".CU3ERThumbsScroll",i).width(),n=jQuery(".CU3ERthumbs-holder",i).width()
if("horizontal"==e.scroll){var o=Math.round(a.left+jQuery(s.currentTarget).width()/3),l=Math.round(a.left+2*(jQuery(s.currentTarget).width()/3))
if(jQuery(".CU3ERscroll-holder",i))var d=jQuery(".CU3ERscroll-holder",i).width()
else var d=jQuery(".CU3ERThumbsScroll",i).width()
var c=jQuery(".CU3ERscroll",i).width(),h=Math.round((parseInt(e.height)-parseInt(e.slider.thickness))/2),p=jQuery(".CU3ERscroll-holder",i).width()-h,u=100*(d-c-2*h)/p,f=n-r,g=p-c,m=parseInt(s.clientX)
if(o>m){var b=-parseInt(jQuery(".CU3ERthumbs-holder",i).css("marginLeft"))
scrollPXMovement=50*Math.round((o-m)*(o-m)/(o+b)),scrollPX=b-scrollPXMovement>0?b-scrollPXMovement:0,scrollPercentage=parseInt(100*(scrollPX/e.maximum)),m=h+Math.ceil(scrollPercentage*parseInt(d)/100),m=m>h?m:h,CU3ER[t].scrollTo(m,scrollPX,"LR",!0)}else if(m>l){var b=-parseInt(jQuery(".CU3ERthumbs-holder",i).css("marginLeft"))
scrollPXMovement=50*Math.round((l-m)*(l-m)/(l+b)),scrollPX2=b+scrollPXMovement,scrollPX2>f&&(scrollPX2=f),scrollPercentage=parseInt(100*(scrollPX2/e.maximum)),m=h+Math.ceil(scrollPercentage*parseInt(d)/100),m>g&&(m=g),CU3ER[t].scrollTo(m,scrollPX2,"LR",!0)}}else{var C=Math.round(a.top+jQuery(s.currentTarget).height()/3),v=Math.round(a.top+2*(jQuery(s.currentTarget).height()/3))
if(jQuery(".CU3ERscroll-holder",i))var d=jQuery(".CU3ERscroll-holder",i).height()
else var d=jQuery(".CU3ERThumbsScroll",i).height()
var c=jQuery(".CU3ERscroll",i).height(),h=Math.round((parseInt(e.width)-parseInt(e.slider.thickness))/2),R=d-c-h,j=100*R/parseInt(d),y=j*e.maximum/100,E=d-c,u=100*E/parseInt(d),g=u*e.maximum/100,m=parseInt(s.clientY)
if(C>m){var b=-parseInt(jQuery(".CU3ERthumbs-holder",i).css("marginTop"))
scrollPXMovement=50*Math.round((C-m)*(C-m)/(C+b)),scrollPX=b-scrollPXMovement>0?b-scrollPXMovement:0,scrollPercentage=100*(scrollPX/e.maximum),m=Math.ceil(scrollPercentage*parseInt(d)/100),m=m>h?m:h,CU3ER[t].scrollTo(m,scrollPX,"TB",!0)}else if(m>v){var b=-parseInt(jQuery(".CU3ERthumbs-holder",i).css("marginTop"))
scrollPXMovement=50*Math.round((v-m)*(v-m)/(v+b)),scrollPX=y>b+scrollPXMovement?b+scrollPXMovement:y,scrollPX2=g>b+scrollPXMovement?b+scrollPXMovement:g,scrollPercentage=100*(scrollPX/e.maximum),m=Math.ceil(scrollPercentage*parseInt(d)/100),CU3ER[t].scrollTo(m,scrollPX2,"TB",!0)}}}),jQuery(".CU3ERscroll-holder",i).css(p).css({width:e.width+"px",height:e.height+"px",position:"absolute",background:e.bar.color.replace("0x","#"),opacity:e.bar.alpha,"z-index":1e7,outline:"none",lineHeight:"1px"}).borderRadius(e.round_corners).find(".CU3ERscroll").css({background:e.slider.color.replace("0x","#"),opacity:e.slider.alpha,height:"horizontal"==e.scroll?e.slider.thickness+"px":Math.floor(e.slider.width)+"%",width:"horizontal"==e.scroll?Math.floor(e.slider.width)+"%":e.slider.thickness+"px",position:"absolute",top:"horizontal"==e.scroll?Math.round((parseInt(e.height)-parseInt(e.slider.thickness))/2):Math.round((parseInt(e.width)-parseInt(e.slider.thickness))/2),left:"horizontal"==e.scroll?Math.round((parseInt(e.height)-parseInt(e.slider.thickness))/2):Math.round((parseInt(e.width)-parseInt(e.slider.thickness))/2),cursor:"pointer","z-index":10000001,outline:"none",lineHeight:"1px"}).borderRadius(e.round_corners).bind("mousedown",function(e){a=!0,e.preventDefault(),r=e.clientX,n=e.clientY,o=parseFloat(jQuery(".CU3ERscroll",i).css("left")),l=parseFloat(jQuery(".CU3ERscroll",i).css("top"))}),jQuery(document).bind("mousemove",function(s){if(a)if("horizontal"==e.scroll){var d=jQuery(".CU3ERscroll-holder",i).width(),c=jQuery(".CU3ERscroll",i).width(),h=d-c,p=100*h/parseInt(d),u=Math.ceil(p*e.maximum/100),f=parseInt(s.clientX-r)+o
f>h?(f=h-Math.round((parseInt(e.height)-parseInt(e.slider.thickness))/2),scrollPX=u):0>f?(f=Math.round((parseInt(e.height)-parseInt(e.slider.thickness))/2),scrollPX=0):(scrollPercentage=100*f/parseInt(d),scrollPX=Math.ceil(scrollPercentage*e.maximum/100)),CU3ER[t].scrollTo(f,scrollPX,"LR",!1)}else{var d=jQuery(".CU3ERscroll-holder",i).height(),c=jQuery(".CU3ERscroll",i).height(),h=d-c,p=100*h/parseInt(d),u=Math.ceil(p*e.maximum/100),f=parseInt(s.clientY-n)+l
f>h?(f=h-Math.round((parseInt(e.width)-parseInt(e.slider.thickness))/2),scrollPX=u):0>f?(f=Math.round((parseInt(e.width)-parseInt(e.slider.thickness))/2),scrollPX=0):(scrollPercentage=100*f/parseInt(d),scrollPX=Math.ceil(scrollPercentage*e.maximum/100)),CU3ER[t].scrollTo(f,scrollPX,"TB",!1)}}).bind("mouseup",function(){a=!1}),this.scrollOptions.options=e,CU3ER[t].isTouch()&&this.attachTouchScreenScrollBehavior(e)},updateIndicator:function(e,t,i,s){var a=this.id,r=this.el,n="none"!=jQuery(i).find(".CU3ERprogress").css("max-width")?jQuery(i).find(".CU3ERprogress").css("max-width"):jQuery(i).css("width")
if(e==t)this.circularPBOptions!==void 0&&this.circularPBOptions.startSlider!==void 0&&1==this.circularPBOptions.startSlider?(this.circularPBOptions.endDeg=360,this.animateCircularProgressbarTo(this.circularPBOptions),CU3ER[a].initSlider()):jQuery(i).find(".CU3ERprogress").animate({width:"string"==typeof e?e:n},"normal",function(){1==s?(jQuery(".CU3ERindicator",r).fadeOut(400,function(){jQuery(this).remove()}),setTimeout(function(){CU3ER[a].initSlider()},400)):jQuery(i).fadeOut("fast").css("display","block").remove()})
else{var o=jQuery(i).find(".CU3ERprogress").css("width"),l=Math.round(100/t*e)/100*parseInt(n),d=Math.round(100/t*e)
this.circularPBOptions!==void 0&&this.circularPBOptions.startSlider!==void 0&&1==this.circularPBOptions.startSlider?(this.circularPBOptions.endDeg=360*d/100,this.animateCircularProgressbarTo(this.circularPBOptions)):l>parseInt(o)&&jQuery(i).find(".CU3ERprogress").animate({width:"string"==typeof e?e:l+"px"})}},initSlider:function(){var e=this.id,t=this.el
this.keyboardControls&&jQuery(document).bind("keydown",function(t){"37"==t.which&&(CU3ER[e].inTransition||(CU3ER[e].inTransition=!0,CU3ER[e].doCheck=!1,setTimeout(function(){CU3ER[e].prev()},50))),"39"==t.which&&(CU3ER[e].inTransition||(CU3ER[e].inTransition=!0,CU3ER[e].doCheck=!1,setTimeout(function(){CU3ER[e].next()},50)))})
var i,s=CU3ER[e].xml
try{i=window.ActiveXObject&&10>parseInt(jQuery.browser.version)?s.xml:(new XMLSerializer).serializeToString(s)}catch(a){i=s}(i===void 0||""==i)&&(i=s)
var r=(i+"").match(/(<licence>(.)*<\/licence>)+/gi)
if((r+"").indexOf("</licence>")>-1&&(r=(r+"").split("</licence>")),null!=r?r.push(CU3ER[e].licenseStr):r=Array(CU3ER[e].licenseStr),null!=this.licenceEncoded)for(var n=0;this.licenceEncoded.length>n;n++)CU3ER[e].licenceEncoded[n].text!==void 0&&(null!=r?r.push(CU3ER[e].licenceEncoded[n].text):r=Array(CU3ER[e].licenceEncoded[n].text))
if(null!=r){for(var n=0;r.length>n;n++)r[n]=r[n].split("<licence>").join("").split("</licence>").join(""),r[n]=r[n].split("<![CDATA[").join("").split("]]>").join("")
var o=!1,d=!1
if(0!=r.length){var c=document.location.href.toLowerCase()
c=c.split("https://").join("").split("http://").join("").split("www.").join(""),c=c.split("/")[0],"file:"==c&&(c="localdrive"),CU3ER[e].licd=Array(),CU3ER[e].licd.push("")
for(var h=0;r.length>h;h++){var p=r[h]+""
if(p.length>32){for(var u="",f="",g=0;p.length>g;)16>g&&(u+=p.charAt(g),g++),f+=p.charAt(g),g++
var m=""
for(g=0;u.length>g;g++)m+=(u.charCodeAt(g)-65)/3
m>=CU3ER[e].globald&&(r[h]=f,CU3ER[e].licd.push(m+"|"))}}for(var b=c.split(".");b.length>4;)b.splice(0,1)
var C=b
c=b.join(".")
var n,v,R,j,y,E,U=c
for(E=0;CU3ER[e].licd.length>E;E++){c=CU3ER[e].licd[E]+U,y=""
var w=["","join","www.","split","http://","https://","/","charCodeAt","length","fromCharCode"]
for(c=c[w[3]](w[5])[w[1]](w[0])[w[3]](w[4])[w[1]](w[0])[w[3]](w[2])[w[1]](w[0]),c=c[w[3]](w[6])[0],n=0;32>n;n++){for(v=n%2+1,R=0,j=0;c[w[8]]>j;)R+=(c[w[7]](j)+3)%(n+1)*(c[w[7]](j)+2),j+=v
R=R%94+33,60==R&&(R=58),62==R&&(R=59),y+=String[w[9]](R)}for(l=0;r.length>l;l++)d=d||y==""+r[l]
for(y=y.split("+").join(" "),l=0;r.length>l;l++)d=d||y==""+r[l]}if(b.length>3)for(y="",b=b.slice(1),c=b.join("."),U=c,E=0;CU3ER[e].licd.length>E;E++){for(c=CU3ER[e].licd[E]+U,y="",w=["","join","www.","split","http://","https://","/","charCodeAt","length","fromCharCode"],c=c[w[3]](w[5])[w[1]](w[0])[w[3]](w[4])[w[1]](w[0])[w[3]](w[2])[w[1]](w[0]),c=c[w[3]](w[6])[0],n=0;32>n;n++){for(v=n%2+1,R=0,j=0;c[w[8]]>j;)R+=(c[w[7]](j)+3)%(n+1)*(c[w[7]](j)+2),j+=v
R=R%94+33,60==R&&(R=58),62==R&&(R=59),y+=String[w[9]](R)}for(l=0;r.length>l;l++)d=d||y==""+r[l]
for(y=y.split("+").join(" "),l=0;r.length>l;l++)d=d||y==""+r[l]}if(b=C,b.length>2)for(b=b.slice(1),c=b.join("."),U=c,E=0;CU3ER[e].licd.length>E;E++){for(c=CU3ER[e].licd[E]+U,y="",w=["","join","www.","split","http://","https://","/","charCodeAt","length","fromCharCode"],c=c[w[3]](w[5])[w[1]](w[0])[w[3]](w[4])[w[1]](w[0])[w[3]](w[2])[w[1]](w[0]),c=c[w[3]](w[6])[0],n=0;32>n;n++){for(v=n%2+1,R=0,j=0;c[w[8]]>j;)R+=(c[w[7]](j)+3)%(n+1)*(c[w[7]](j)+2),j+=v
R=R%94+33,60==R&&(R=58),62==R&&(R=59),y+=String[w[9]](R)}for(l=0;r.length>l;l++)d=d||y==""+r[l]
for(y=y.split("+").join(" "),l=0;r.length>l;l++)d=d||y==""+r[l]}o=d?!0:!1}else o=!1}else o=!1
if(jQuery(".CU3ERbackground",t).css({display:"block"}),jQuery(".CU3ERslides-holder div.CU3ERslide, .CU3ERthumbs",t).css("visibility","visible"),!o){null!=CU3ER[e].rnd&&CU3ER[e].rnd.remove()
for(var x="";16>x.length;)x+=String.fromCharCode(65+Math.floor(25*Math.random()))
var I="stage"==json.settings.branding.align_to?this.stage:this.slides
if(this.supportCanvas()){jQuery(I).append('<div class="'+x+'"><canvas id="l-'+x+'"/></div>'),CU3ER[e].rnd=jQuery("."+x),cssBrandingFixed={position:"absolute",width:"40px",height:"40px",display:"none",cursor:"pointer","z-index":1e3}
var Q=document.getElementById("l-"+x)
Q.width=Q.height=40
var k,S,_,T,M=Q.getContext("2d"),P=M.getImageData(0,0,Q.width,Q.height),O=imgLogo.split(",")
for(n=0;Q.height>n;n++)for(j=0;Q.width>j;j++){var F=4*(j+40*n),z=parseInt(O[j+40*n],16)
k=255&z>>24,S=255&z>>16,_=255&z>>8,T=255&z,P.data[F+0]=S,P.data[F+1]=_,P.data[F+2]=T,P.data[F+3]=k}M.putImageData(P,0,0)}else jQuery(I).append('<div class="'+x+'"></div>'),CU3ER[e].rnd=jQuery("."+x),CU3ER[e].rnd=jQuery("."+x,t),cssBrandingFixed={position:"absolute",width:"40px",height:"40px",cursor:"pointer",background:'transparent url("http://getcu3er.com/CU3ER-images/cu3er_logo.png") no-repeat top right',display:"none","z-index":1e3}
optionsBranding={align_pos:CU3ER[e].json.settings.branding.align_pos,x:CU3ER[e].json.settings.branding.x,y:CU3ER[e].json.settings.branding.y,width:40,height:40,fullWidth:CU3ER[e].json.settings.width,fullheight:CU3ER[e].json.settings.height},cssBranding=this.calculatePosition(optionsBranding),cssBranding.bottom===void 0&&(cssBranding.top="5px"),cssBranding.left===void 0&&(cssBranding.right="5px"),cssBranding=jQuery.extend(cssBrandingFixed,cssBranding),CU3ER[e].rnd.css(cssBranding),this.verySlow===!0?CU3ER[e].rnd.css("display","block").bind("click",function(){var t=CU3ER[e].json.referral!==void 0?"?cu3er="+CU3ER[e].json.referral:""
window.open("http://getcu3er.com/"+t,"CU3ER")}):CU3ER[e].rnd.fadeIn("slow").bind("click",function(){var t=CU3ER[e].json.referral!==void 0?"?cu3er="+CU3ER[e].json.referral:""
window.open("http://getcu3er.com/"+t,"CU3ER")})}this.circularPBOptions={color1:null,color2:null,opacity1:null,opacity2:null,padding:null,radius:null,startPoint:null,endPoint:null,tempTimeout:null,shape:"linear"},this.elements=jQuery(".CU3ERslide",t)
var B=this.elements,A=B.length
B.each(function(){jQuery(this).css({display:"none","z-index":A}),A--})
var D={prev_button:CU3ER[e].json.controls.prev_button,next_button:CU3ER[e].json.controls.next_button}
if(CU3ER[e].handleAutoHide(D,CU3ER[e].json.controls.auto_play_indicator,CU3ER[e].json.description,CU3ER[e].json.thumbnails),this.transition=jQuery.extend(!0,{},CU3ER[e].jsonOriginal.defaults.transition,CU3ER[e].jsonOriginal.slides.transition[CU3ER[e].current]),this.transition.scaleX=this.json.slides.slide[this.current].image!==void 0?this.json.slides.slide[this.current].image.scaleX:1,this.transition.scaleY=this.json.slides.slide[this.current].image!==void 0?this.json.slides.slide[this.current].image.scaleY:1,1==B.length){jQuery(".CU3ERslides-holder",t).append(jQuery(B[0]).clone()),this.elements=jQuery(".CU3ERslides-holder div.CU3ERslide",t)
var B=this.elements}CU3ER[e].current="number"!=typeof CU3ER[e].current?0:CU3ER[e].current,jQuery(B[CU3ER[e].current]).css("display","block"),jQuery(CU3ER[e].stage).find("a").css({"text-decoration":"none"}),jQuery(CU3ER[e].stage).find("img").css({border:"none"}),jQuery(".CU3ERbuttonNext, .CU3ERbuttonPrev",t).fadeIn("fast"),this.rollOverPause&&jQuery(this.stage).hover(function(){2!=CU3ER[e].pauseType&&(CU3ER[e].pauseType=1,CU3ER[e].mOver=!0,CU3ER[e].pause())},function(){2!=CU3ER[e].pauseType&&(CU3ER[e].mOver=!1,CU3ER[e].paused&&(CU3ER[e].pauseType=1,CU3ER[e].pause()))}),jQuery(".CU3ERindicator",t).fadeOut("fast"),this.switchThumbnailClass(this.current),this.onLoadComplete(this.slidesOrder),this.onTransitionComplete()},calculatePosition:function(e){this.id,this.el
var t={}
switch(e.align_pos){case"TL":t={top:parseFloat(e.y)+"px",left:parseFloat(e.x)+"px"}
break
case"TC":t={top:parseFloat(e.y)+"px",left:Math.round(Math.floor(parseFloat(e.fullWidth)/2)-Math.floor(parseFloat(e.width)/2)+parseFloat(e.x))+"px"}
break
case"TR":t={top:parseFloat(e.y)+"px",left:Math.round(Math.floor(parseFloat(e.fullWidth)-parseFloat(e.width)+parseFloat(e.x)))+"px"}
break
case"BL":t={top:Math.round(Math.floor(parseFloat(e.fullHeight)-parseFloat(e.height))+parseFloat(e.y))+"px",left:parseFloat(e.x)+"px"}
break
case"BC":t={top:Math.round(Math.floor(parseFloat(e.fullHeight)-parseFloat(e.height))+parseFloat(e.y))+"px",left:Math.round(Math.floor(parseFloat(e.fullWidth)/2)-Math.floor(parseFloat(e.width)/2)+parseFloat(e.x))+"px"}
break
case"BR":t={top:Math.round(Math.floor(parseFloat(e.fullHeight)-parseFloat(e.height))+parseFloat(e.y))+"px",left:Math.round(Math.floor(parseFloat(e.fullWidth)-parseFloat(e.width)+parseFloat(e.x)))+"px"}
break
case"ML":t={top:Math.round(Math.floor(parseFloat(e.fullHeight)/2)-Math.floor(parseFloat(e.height)/2)+parseFloat(e.y))+"px",left:parseFloat(e.x)+"px"}
break
case"MC":t={top:Math.round(Math.floor(parseFloat(e.fullHeight)/2)-Math.floor(parseFloat(e.height)/2)+parseFloat(e.y))+"px",left:Math.round(Math.floor(parseFloat(e.fullWidth)/2)-Math.floor(parseFloat(e.width)/2)+parseFloat(e.x))+"px"}
break
case"MR":t={top:Math.round(Math.floor(parseFloat(e.fullHeight)/2)-Math.floor(parseFloat(e.height)/2)+parseFloat(e.y))+"px",left:Math.round(Math.floor(parseFloat(e.fullWidth)-parseFloat(e.width)+parseFloat(e.x)))+"px"}}return t},attachTouchScreenScrollBehavior:function(e){var t=this.id,i=this.el,s=0,a=0,r=0,n=0
CU3ER[t].debug("attaching scroll behavior to thumbs for touch screen"),jQuery(".CU3ERthumbs",i).data("binded","")
var o=jQuery(".CU3ERthumbs .CU3ERthumbs-holder .CU3ERThumb",i),l=!1
jQuery(".CU3ERthumbs",i).bind("touchend",function(){jQuery(".CU3ERthumbs",i).data("binded","")}),jQuery(".CU3ERthumbs",i).bind("touchstart",function(){jQuery(".CU3ERthumbs",i).data("binded",""),l=!0}),jQuery(".CU3ERthumbs",i).bind("touchmove",function(o){o.preventDefault()
var d=o.originalEvent.touches[0]||o.originalEvent.changedTouches[0]
""==jQuery(".CU3ERthumbs",i).data("binded")&&(s=d.pageX,a=d.pageY,startMarginX=parseInt(jQuery(".CU3ERthumbs-holder",i).css("margin-left")),startMarginY=parseInt(jQuery(".CU3ERthumbs-holder",i).css("margin-top")),r=d.pageX,n=d.pageY),jQuery(".CU3ERthumbs",i).data("binded","touchmove")
var c=jQuery(".CU3ERThumbsScroll",i).width(),h=jQuery(".CU3ERthumbs-holder",i).width()
moveX=d.pageX-r,d.pageX-s
var p=d.pageY-n
if(d.pageY-a,r=d.pageX,n=d.pageY,"horizontal"==e.scroll){if(10>Math.abs(moveX))return
l=!1,scrollPXMovement=-(parseInt(e.thumb.width)+Math.abs(parseInt(e.thumb.spacing_x)))
var u=parseInt(jQuery(".CU3ERthumbs-holder",i).css("margin-left"))
if(scrollPX=0>moveX?u+scrollPXMovement:u-scrollPXMovement,e.scroller!==void 0){if(jQuery(".CU3ERscroll-holder",i))var f=jQuery(".CU3ERscroll-holder",i).width()
else var f=jQuery(".CU3ERThumbsScroll",i).width()
var g=jQuery(".CU3ERscroll",i).width(),m=f-g,b=100*m/parseInt(f),C=b*e.maximum/100}else{parseInt(e.maximum)-parseInt(e.width)+CU3ER[t].slidesTotal*Math.abs(e.thumb.spacing_x)
var C=h-c}if(scrollPX=0>scrollPX?scrollPX:0,scrollPX=-C>scrollPX?-C:scrollPX,Math.abs(scrollPX)<Math.abs(scrollPXMovement)/2)return
if(e.scroller!==void 0){var v=Math.round((parseInt(e.height)-parseInt(e.slider.thickness))/2)
scrollPercentage=100*(Math.abs(scrollPX)/e.maximum),scrollIt=Math.ceil(scrollPercentage*parseInt(f)/100),scrollIt=scrollIt>v?scrollIt:v}else scrollIt=0
CU3ER[t].scrollTo(scrollIt,-scrollPX,"LR",!0)}else{if(10>Math.abs(p))return
l=!1,scrollPXMovement=-(parseInt(e.thumb.height)+Math.abs(parseInt(e.thumb.spacing_y)))
var u=parseInt(jQuery(".CU3ERthumbs-holder",i).css("margin-top"))
if(scrollPX=0>moveX?u+scrollPXMovement:u-scrollPXMovement,e.scroller!==void 0){if(jQuery(".CU3ERscroll-holder",i))var f=jQuery(".CU3ERscroll-holder",i).height()
else var f=jQuery(".CU3ERThumbsScroll",i).height()
var g=jQuery(".CU3ERscroll",i).height(),m=f-g,b=100*m/parseInt(f),C=b*e.maximum/100}else var C=parseInt(e.maximum)-parseInt(e.height)+CU3ER[t].slidesTotal*Math.abs(e.thumb.spacing_y)
if(scrollPX=0>scrollPX?scrollPX:0,scrollPX=-C>scrollPX?-C:scrollPX,Math.abs(scrollPX)<Math.abs(scrollPXMovement)/2)return
if(e.scroller!==void 0){var v=Math.round((parseInt(e.width)-parseInt(e.slider.thickness))/2)
scrollPercentage=100*(Math.abs(scrollPX)/e.maximum),scrollIt=Math.ceil(scrollPercentage*parseInt(f)/100),scrollIt=scrollIt>v?scrollIt:v}else scrollIt=0
CU3ER[t].scrollTo(scrollIt,-scrollPX,"TB",!0)}})
var o=jQuery(".CU3ERthumbs .CU3ERthumbs-holder .CU3ERThumb",i)
o.each(function(e){jQuery(o[e]).bind("touchend",function(){return l&&(l=!1,CU3ER[t].current!=e&&(CU3ER[t].inTransition||(CU3ER[t].inTransition=!0,CU3ER[t].doCheck=!1,setTimeout(function(){CU3ER[t].skipTo(e,!0,!0)},50)))),!1})})},repositionThumbs:function(){{var e=this.id,t=this.el,i=jQuery(".CU3ERThumbsScroll",t).width()
jQuery(".CU3ERthumbs-holder",t).width()}jQuery(".CU3ERthumbs-holder",t).height()
var s=CU3ER[e].scrollOptions.options,a=function(s){if("horizontal"==CU3ER[e].scrollOptions.options.scroll){var a=parseInt(CU3ER[e].scrollOptions.options.thumb.width)+parseInt(CU3ER[e].scrollOptions.options.thumb.spacing_x)
parseInt(CU3ER[e].scrollOptions.maximumWidth)
var r=-parseInt(jQuery(".CU3ERthumbs-holder",t).css("margin-left"))}else{i=jQuery(".CU3ERThumbsScroll",t).height()
var n=parseInt(CU3ER[e].scrollOptions.options.thumb.height)+parseInt(CU3ER[e].scrollOptions.options.thumb.spacing_y)
parseInt(CU3ER[e].scrollOptions.maximumHeight)
var r=-parseInt(jQuery(".CU3ERthumbs-holder",t).css("margin-top"))}var o=jQuery(".CU3ERThumb",jQuery(".CU3ERthumbs-holder",t)),s=jQuery(o[s]),l=0,d=s.position().left,c=s.position().top,h=!0
return"horizontal"==CU3ER[e].scrollOptions.options.scroll?r>d?(l=d,h=!1):d+a-r>i&&(l=d+a-i,h=!1):r>c?(l=c,h=!1):c+n-r>i&&(l=c+n-i,h=!1),[h,l]}
if(this.scrollOptions.maximumWidth!==void 0&&this.scrollOptions.options!==void 0){var r=a(this.current)
if(!r[0]){var n="horizontal"==CU3ER[e].scrollOptions.options.scroll?"LR":"TB"
if(CU3ER[e].scrollOptions.options.scroller!==void 0){if("horizontal"==CU3ER[e].scrollOptions.options.scroll){if(-parseInt(jQuery(".CU3ERthumbs-holder",t).css("marginLeft")),jQuery(".CU3ERscroll-holder",t))var o=jQuery(".CU3ERscroll-holder",t).width()
else var o=jQuery(".CU3ERThumbsScroll",t).width()
var l=jQuery(".CU3ERscroll",t).width(),l=jQuery(".CU3ERscroll",t).width(),d=Math.round((parseInt(s.height)-parseInt(s.slider.thickness))/2),c=jQuery(".CU3ERscroll-holder",t).width()-d,h=c-l}else{if(jQuery(".CU3ERscroll-holder",t))var o=jQuery(".CU3ERscroll-holder",t).height()
else var o=jQuery(".CU3ERThumbsScroll",t).height()
var d=Math.round((parseInt(CU3ER[e].scrollOptions.options.width)-parseInt(CU3ER[e].scrollOptions.options.slider.thickness))/2),l=jQuery(".CU3ERscroll",t).height(),d=Math.round((parseInt(s.width)-parseInt(s.slider.thickness))/2),p=jQuery(".CU3ERscroll-holder",t).height()-d,h=p-l}scrollPercentage=100*(Math.abs(r[1])/CU3ER[e].scrollOptions.options.maximum),scrollIt=d+Math.ceil(scrollPercentage*parseInt(o)/100),scrollIt=d>scrollIt?d:scrollIt,scrollIt>h&&(scrollIt=h)}else scrollIt=0
this.scrollTo(scrollIt,r[1],n,!0)}}},attachScrollBehavior:function(e){var t=this.id,i=this.el
jQuery(".CU3ERthumbs",i).bind("mouseover",function(s){var a,r,n,o=jQuery(s.currentTarget).offset()
if("horizontal"==e.scroll){a=jQuery(".CU3ERThumbsScroll",i).width(),r=jQuery(".CU3ERthumbs-holder",i).width()
var l=jQuery(".CU3ERthumbs-holder .CU3ERThumb",i),d=(jQuery(l[0]).width()+parseInt(jQuery(l[0]).css("left")))*l.length
if(d>a){var c=Math.round(o.left+parseInt(e.width)/3),h=Math.round(o.left+2*(parseInt(e.width)/3)),p=parseInt(s.clientX)
parseInt(e.maximum)-parseInt(e.width)+CU3ER[t].slidesTotal*Math.abs(e.thumb.spacing_x)
var u=r-a
if(c>p){var f=-parseInt(jQuery(".CU3ERthumbs-holder",i).css("margin-left"))
scrollPXMovement=50*Math.floor((c-p)*(c-p)/(c+f)),scrollPX=f-scrollPXMovement>0?f-scrollPXMovement:0,CU3ER[t].scrollTo(0,scrollPX,"LR",!0)}else if(p>h){var f=-parseInt(jQuery(".CU3ERthumbs-holder",i).css("margin-left"))
scrollPXMovement=50*Math.floor((h-p)*(h-p)/(h+f)),scrollPX=u>f+scrollPXMovement&&f+scrollPXMovement>=0?f+scrollPXMovement:u,CU3ER[t].scrollTo(0,scrollPX,"LR",!0)}}}else{a=jQuery(".CU3ERThumbsScroll",i).height(),n=jQuery(".CU3ERthumbs-holder",i).height()
var l=jQuery(".CU3ERthumbs-holder .CU3ERThumb",i),d=(jQuery(l[0]).height()+parseInt(jQuery(l[0]).css("top")))*l.length
if(d>a){var g=Math.round(o.top+parseInt(e.height)/3),m=Math.round(o.top+2*(parseInt(e.height)/3)),p=parseInt(s.clientY)
parseInt(e.maximum)-parseInt(e.height)+CU3ER[t].slidesTotal*e.thumb.spacing_y
var u=n-a
if(g>p){var f=-parseInt(jQuery(".CU3ERthumbs-holder",i).css("margin-top"))
scrollPXMovement=50*Math.floor((g-p)*(g-p)/(g+f)),scrollPX=f-scrollPXMovement>0?f-scrollPXMovement:0,CU3ER[t].scrollTo(0,scrollPX,"TB",!0)}else if(p>m){var f=-parseInt(jQuery(".CU3ERthumbs-holder",i).css("margin-top"))
scrollPXMovement=50*Math.floor((m-p)*(m-p)/(m+f)),scrollPX=u>f+scrollPXMovement?f+scrollPXMovement:u,CU3ER[t].scrollTo(0,scrollPX,"TB",!0)}}}}),this.scrollOptions.options=e,CU3ER[t].isTouch()&&this.attachTouchScreenScrollBehavior(e)},scrollTo:function(e,t,i,s){this.id
var a=this.el
s===!1?"TB"==i?(jQuery(".CU3ERscroll",a).stop().css({top:e}),jQuery(".CU3ERthumbs-holder",a).stop().css({marginTop:-t+"px"})):(jQuery(".CU3ERscroll",a).stop().css({left:e}),jQuery(".CU3ERthumbs-holder",a).stop().css({marginLeft:-t+"px"})):"TB"==i?(jQuery(".CU3ERscroll",a).stop().animate({top:e},"slow"),jQuery(".CU3ERthumbs-holder",a).stop().animate({marginTop:-t+"px"},"noramal")):(jQuery(".CU3ERscroll",a).stop().animate({left:e},"slow"),jQuery(".CU3ERthumbs-holder",a).stop().animate({marginLeft:-t+"px"},"normal"))},next:function(){this.id,this.el,this.isFlash?(this.registerFlash(),this.swf.next()):(this.inTransition!==!0||this.doCheck===!1)&&(this.stopFlag=!0,clearTimeout(this.circularPBOptions.tempTimeout),this.nextFlag=!0,this.skipTo(this.calculateNext(this.current),!0,!1))},prev:function(){this.id,this.el,this.isFlash?(this.registerFlash(),this.swf.prev()):(this.inTransition!==!0||this.doCheck===!1)&&(this.stopFlag=!0,clearTimeout(this.circularPBOptions.tempTimeout),this.nextFlag=!1,this.skipTo(this.calculatePrevious(this.current),!0,!1))},skipTo:function(e){var t=this.id,i=this.el
if(this.isFlash)this.registerFlash(),this.swf.skipTo(e-1)
else if(this.inTransition!==!0||0==this.doCheck){this.doCheck=!0
var e=arguments[1]!==void 0&&arguments[1]===!0?e:e-1,s=arguments[2]!==void 0?arguments[2]:!0
this.inTransition=!0,clearTimeout(this.tempTimeout[this.current]),clearTimeout(this.tempTimeout[e]),clearTimeout(this.circularPBOptions.tempTimeout),this.stopFlag=!0
var a=this.elements
jQuery(a[e]).hasClass("notLoaded")?(jQuery(a[CU3ER[t].current]).parent().append('<div class="CU3ERpreloader"></div>'),loaderCSS={width:50,height:50,align_pos:"MC",x:0,y:0,fullWidth:CU3ER[t].json.slides.width,fullHeight:CU3ER[t].json.slides.height},preloaderCSSFinal=CU3ER[t].calculatePosition(loaderCSS),jQuery(".CU3ERpreloader",i).css(preloaderCSSFinal).css({"z-index":1e3}),jQuery(a[CU3ER[t].calculateNext(CU3ER[t].current)]).bind("classChanged",function(){CU3ER[t].skipTo(e,!0,!0)})):(jQuery(".CU3ERpreloader",i).remove(),this.nextSlide=e,this.startTransition(s))
var r,n=CU3ER[t].xml
try{r=window.ActiveXObject&&10>parseInt(jQuery.browser.version)?n.xml:(new XMLSerializer).serializeToString(n)}catch(o){r=n}(r===void 0||""==r)&&(r=n)
var d=(r+"").match(/(<licence>(.)*<\/licence>)+/gi)
if((d+"").indexOf("</licence>")>-1&&(d=(d+"").split("</licence>")),null!=d?d.push(CU3ER[t].licenseStr):d=Array(CU3ER[t].licenseStr),null!=this.licenceEncoded)for(var c=0;this.licenceEncoded.length>c;c++)CU3ER[t].licenceEncoded[c].text!==void 0&&(null!=d?d.push(CU3ER[t].licenceEncoded[c].text):d=Array(CU3ER[t].licenceEncoded[c].text))
if(null!=d){for(var c=0;d.length>c;c++)d[c]=d[c].split("<licence>").join("").split("</licence>").join(""),d[c]=d[c].split("<![CDATA[").join("").split("]]>").join("")
var h=!1,p=!1
if(0!=d.length){var u=document.location.href.toLowerCase()
u=u.split("https://").join("").split("http://").join("").split("www.").join(""),u=u.split("/")[0],"file:"==u&&(u="localdrive"),CU3ER[t].licd=Array(),CU3ER[t].licd.push("")
for(var f=0;d.length>f;f++){var g=d[f]+""
if(g.length>32){for(var m="",b="",C=0;g.length>C;)16>C&&(m+=g.charAt(C),C++),b+=g.charAt(C),C++
var v=""
for(C=0;m.length>C;C++)v+=(m.charCodeAt(C)-65)/3
v>=CU3ER[t].globald&&(d[f]=b,CU3ER[t].licd.push(v+"|"))}}for(var R=u.split(".");R.length>4;)R.splice(0,1)
var j=R
u=R.join(".")
var c,y,e,E,U,w,x=u
for(w=0;CU3ER[t].licd.length>w;w++){u=CU3ER[t].licd[w]+x,U=""
var I=["","join","www.","split","http://","https://","/","charCodeAt","length","fromCharCode"]
for(u=u[I[3]](I[5])[I[1]](I[0])[I[3]](I[4])[I[1]](I[0])[I[3]](I[2])[I[1]](I[0]),u=u[I[3]](I[6])[0],c=0;32>c;c++){for(y=c%2+1,e=0,E=0;u[I[8]]>E;)e+=(u[I[7]](E)+3)%(c+1)*(u[I[7]](E)+2),E+=y
e=e%94+33,60==e&&(e=58),62==e&&(e=59),U+=String[I[9]](e)}for(l=0;d.length>l;l++)p=p||U==""+d[l]
for(U=U.split("+").join(" "),l=0;d.length>l;l++)p=p||U==""+d[l]}if(R.length>3)for(U="",R=R.slice(1),u=R.join("."),x=u,w=0;CU3ER[t].licd.length>w;w++){for(u=CU3ER[t].licd[w]+x,U="",I=["","join","www.","split","http://","https://","/","charCodeAt","length","fromCharCode"],u=u[I[3]](I[5])[I[1]](I[0])[I[3]](I[4])[I[1]](I[0])[I[3]](I[2])[I[1]](I[0]),u=u[I[3]](I[6])[0],c=0;32>c;c++){for(y=c%2+1,e=0,E=0;u[I[8]]>E;)e+=(u[I[7]](E)+3)%(c+1)*(u[I[7]](E)+2),E+=y
e=e%94+33,60==e&&(e=58),62==e&&(e=59),U+=String[I[9]](e)}for(l=0;d.length>l;l++)p=p||U==""+d[l]
for(U=U.split("+").join(" "),l=0;d.length>l;l++)p=p||U==""+d[l]}if(R=j,R.length>2)for(R=R.slice(1),u=R.join("."),x=u,w=0;CU3ER[t].licd.length>w;w++){for(u=CU3ER[t].licd[w]+x,U="",I=["","join","www.","split","http://","https://","/","charCodeAt","length","fromCharCode"],u=u[I[3]](I[5])[I[1]](I[0])[I[3]](I[4])[I[1]](I[0])[I[3]](I[2])[I[1]](I[0]),u=u[I[3]](I[6])[0],c=0;32>c;c++){for(y=c%2+1,e=0,E=0;u[I[8]]>E;)e+=(u[I[7]](E)+3)%(c+1)*(u[I[7]](E)+2),E+=y
e=e%94+33,60==e&&(e=58),62==e&&(e=59),U+=String[I[9]](e)}for(l=0;d.length>l;l++)p=p||U==""+d[l]
for(U=U.split("+").join(" "),l=0;d.length>l;l++)p=p||U==""+d[l]}h=p?!0:!1}else h=!1}else h=!1
if(!h){null!=CU3ER[t].rnd&&CU3ER[t].rnd.remove()
for(var Q="";16>Q.length;)Q+=String.fromCharCode(65+Math.floor(25*Math.random()))
var k="stage"==json.settings.branding.align_to?this.stage:this.slides
if(this.supportCanvas()){jQuery(k).append('<div class="'+Q+'"><canvas id="l-'+Q+'"/></div>'),CU3ER[t].rnd=jQuery("."+Q),cssBrandingFixed={position:"absolute",width:"40px",height:"40px",cursor:"pointer","z-index":1e3}
var S=document.getElementById("l-"+Q)
S.width=S.height=40
var _,T,M,P,O=S.getContext("2d"),F=O.getImageData(0,0,S.width,S.height),z=imgLogo.split(",")
for(c=0;S.height>c;c++)for(E=0;S.width>E;E++){var B=4*(E+40*c),A=parseInt(z[E+40*c],16)
_=255&A>>24,T=255&A>>16,M=255&A>>8,P=255&A,F.data[B+0]=T,F.data[B+1]=M,F.data[B+2]=P,F.data[B+3]=_}O.putImageData(F,0,0)}else jQuery(k).append('<div class="'+Q+'"></div>'),CU3ER[t].rnd=jQuery("."+Q),CU3ER[t].rnd=jQuery("."+Q,i),cssBrandingFixed={position:"absolute",width:"40px",height:"40px",cursor:"pointer",background:'transparent url("http://getcu3er.com/CU3ER-images/cu3er_logo.png") no-repeat top right',"z-index":1e3}
optionsBranding={align_pos:CU3ER[t].json.settings.branding.align_pos,x:CU3ER[t].json.settings.branding.x,y:CU3ER[t].json.settings.branding.y,width:40,height:40,fullWidth:CU3ER[t].json.settings.width,fullheight:CU3ER[t].json.settings.height},cssBranding=this.calculatePosition(optionsBranding),cssBranding.bottom===void 0&&(cssBranding.top="5px"),cssBranding.left===void 0&&(cssBranding.right="5px"),cssBranding=jQuery.extend(cssBrandingFixed,cssBranding),CU3ER[t].rnd.css(cssBranding),CU3ER[t].rnd.bind("click",function(){var e=CU3ER[t].json.referral!==void 0?"?cu3er="+CU3ER[t].json.referral:""
window.open("http://getcu3er.com/"+e,"CU3ER")})}}},clearTimeouts:function(){var e=this.id
this.el,clearTimeout(this.tempTimeout[this.nextSlide]),clearTimeout(this.tempTimeout[this.current])
for(i in this.tempTimeout)clearTimeout(CU3ER[e].tempTimeout[i]),delete CU3ER[e].tempTimeout[i]
clearTimeout(this.tempTimeout)},destroy:function(){var e=this.id
this.el,this.paused=!0,clearTimeout(this.tempTimeout[this.nextSlide]),clearTimeout(this.tempTimeout[this.current])
for(i in this.tempTimeout)clearTimeout(CU3ER[e].tempTimeout[i]),delete CU3ER[e].tempTimeout[i]
clearTimeout(this.tempTimeout),CU3ER[e]=null},destroyAll:function(){this.id,this.el
for(i in CU3ER){CU3ER[i].paused=!0,clearTimeout(CU3ER[i].tempTimeout[this.nextSlide]),clearTimeout(CU3ER[i].tempTimeout[this.current])
for(a in CU3ER[i].tempTimeout)clearTimeout(CU3ER[i].tempTimeout[a]),delete CU3ER[i].tempTimeout[a]
clearTimeout(CU3ER[i].tempTimeout)}},startTransition:function(e){var t=this.id,i=this.el
jQuery(".CU3ERbackground",i).css("display","block")
var s={type:"3D",columns:"3",rows:"3",type2D:"slide",flipAngle:"180",flipOrder:"315",flipShader:"none",flipOrderFromCenter:"false",flipDirection:"right",flipColor:"0x878787",flipBoxDepth:"10",flipDepth:"250",flipEasing:"Sine.easeOut",flipDuration:".6",flipDelay:".15"}
if(this.clearTimeouts(),jQuery(".CU3ERtransition",i).remove(),this.last=!1,this.first=!1,1==this.json.slides.slide.length)var a=0,r=0
else if(1==e){if(this.current==parseInt(this.slidesTotal-1)&&0==this.nextSlide){this.directionReverse=!1,this.last=!0
var a=this.json.slides.slide[this.current].originalPosition,r=this.current}else if(0==this.current&&this.nextSlide==parseInt(this.slidesTotal-1)){this.directionReverse=!0,this.first=!0
var a=this.json.slides.slide[this.nextSlide].originalPosition,r=this.nextSlide}else if(this.current>this.nextSlide){this.directionReverse=!0
var a=this.json.slides.slide[this.nextSlide].originalPosition,r=this.nextSlide}else if(this.current<this.nextSlide){this.directionReverse=!1
var a=this.json.slides.slide[this.current].originalPosition,r=this.current}}else if(1==this.nextFlag){this.directionReverse=!1
var a=this.json.slides.slide[this.current].originalPosition,r=this.current}else{this.directionReverse=!0
var a=this.json.slides.slide[this.nextSlide].originalPosition,r=this.nextSlide}if(a=a!==void 0?a:0,r=r!==void 0?r:0,"true"==CU3ER[t].randomise)var n=r
else var n=a
if(this.onTransition(parseInt(a)+1),this.transition=jQuery.extend(!0,{},s,CU3ER[t].jsonOriginal.defaults.transition,CU3ER[t].jsonOriginal.slides.transition[n]),this.transition.position3d=r,this.transition.classNo=a,this.transition.scaleX=this.json.slides.slide[a].image!==void 0?this.json.slides.slide[a].image.scaleX:1,this.transition.scaleY=this.json.slides.slide[a].image!==void 0?this.json.slides.slide[a].image.scaleY:1,"90"==this.transition.flipOrder||"270"==this.transition.flipOrder)var o=parseInt(this.transition.rows)
else if("0"==this.transition.flipOrder||"180"==this.transition.flipOrder)var o=parseInt(this.transition.columns)
else var o=parseInt(this.transition.rows)*parseInt(this.transition.columns)
this.transition.time=parseFloat(parseFloat(this.transition.flipDuration)+parseFloat(this.transition.flipDelay)*(o-1))
var l=this.elements
this.switchThumbnailClass(this.nextSlide),l.each(function(e){e!=CU3ER[t].current&&e!=CU3ER[t].nextSlide&&jQuery(this).css("display","none")}),jQuery(".CU3ERlayer",i).css("display","block"),2==l.length?jQuery(l[0]).trigger("startTransition"):jQuery(l[CU3ER[t].current]).trigger("startTransition"),(this.is3D()||this.isCameraFlat())&&this.force_simple!==!0?"3D"==this.transition.type||parseInt(this.transition.rows)>1||parseInt(this.transition.columns)>1?this.transitionSlices():this.transition.type2D!==void 0||"slide"==this.transition.type2D?this.transitionSlices():this.transitionFade():this.transitionFade()},transitionFade:function(){var e=this.id
this.el
var t=this.elements
if(jQuery(t).css({"z-index":1,opacity:1}),t.each(function(t){t!=CU3ER[e].current&&jQuery(this).css({display:"none"})}),"2D"==this.transition.type&&"fade"==this.transition.type2D)var i=1e3*parseFloat(CU3ER[e].transition.time)
else var i=1e3*parseFloat(this.transition.flipDuration)
var s=CU3ER[e].transition.flipEasing!==void 0?CU3ER[e].transition.flipEasing:"Sine.easeInOut"
this.nextSlide<this.current?this.verySlow===!0?(jQuery(t[CU3ER[e].nextSlide]).css({display:"block","z-index":1}),jQuery(t[this.current]).css({"z-index":2,display:"none"}),timeout=Math.min(1e3,i),setTimeout(function(){CU3ER[e].onTransitionComplete()},timeout)):(jQuery(t[CU3ER[e].nextSlide]).css({display:"block","z-index":1,"-wekbit-transform":"translateZ(2px)"}),jQuery(t[this.current]).css({"z-index":2,opacity:1,"-webkit-animation":"","-wekbit-transform":"translateZ(1px)","-moz-animation":"","-moz-transform":"translateZ(1px)"}).fadeOut({duration:i,easing:CU3ER[e].easingValues[s],complete:function(){CU3ER[e].onTransitionComplete()}})):this.verySlow===!0?(jQuery(t[this.nextSlide]).css({"z-index":2,display:"block"}),jQuery(t[this.current]).css({"z-index":1,display:"none"}),timeout=Math.min(1e3,i),setTimeout(function(){CU3ER[e].onTransitionComplete()},timeout)):(jQuery(t[this.current]).css({"z-index":1,"-webkit-transform":"translateZ(2px)","-moz-transform":"translateZ(2px)"}),jQuery(t[this.nextSlide]).css({"z-index":2,"-webkit-transform":"translateZ(1px)","-moz-transform":"translateZ(1px)"}).fadeIn({duration:i,easing:CU3ER[e].easingValues[s],complete:function(){jQuery(t[CU3ER[e].current]).css({opacity:1,display:"none"}),CU3ER[e].onTransitionComplete()}}))},transitionSlices:function(){var e=this.id,t=this.el
jQuery(".CU3ERtransition-holder",t).css("display","block")
var i={fade:1,up:2,down:3,left:4,right:5,random:6},s=this.is3D()?this.transition.type:"2D",r=Array(),n=this.transition.flipDirection.split(",")
if("fade"==this.transition.type2D&&"2D"==s)var o=1
else if(n.length>1){for(I=0;n.length>I;I++)r[I]=i[n[I]]
var o=6}else var o=i[n[0]]
var l=this.directionReverse,d=this.setDirections(this.transition,o,r),c=parseInt(this.transition.rows)*parseInt(this.transition.columns),h=this.elements,p="",u=0,f=0,g=Math.ceil(jQuery(".CU3ERslides-holder",t).width()/parseInt(this.transition.columns)),m=Math.ceil(jQuery(".CU3ERslides-holder",t).height()/parseInt(this.transition.rows)),b=jQuery(".CU3ERslides-holder",t).width(),C=jQuery(".CU3ERslides-holder",t).height()
jQuery.browser.msie&&(jQuery(h[CU3ER[e].current]).css("display","none"),jQuery(h[CU3ER[e].nextSlide]).css("display","block")),jQuery(".CU3ERtransition-holder",t).append('<div class="CU3ERtransition"></div>').find(".CU3ERtransition").css({position:"absolute",top:0,left:0,margin:0,padding:0,width:b+"px",height:C+"px","z-index":400})
var v=function(i){var s=jQuery(".CU3ERslides-holder",t),a=s.width(),r=s.height()
i.el.width=a,i.el.height=r
var n=i.el.getContext("2d")
if(null!=i.bgcolor&&"transparent"!=i.bgcolor){for(var o=i.bgcolor.replace("0x","").match(/(.{2})/g),l=3;l--;)o[l]=parseInt(o[l],16)
var d="rgba("+o.join(", ")+", 100)"
i.bgcolor=d,n.fillStyle=d,n.fillRect(0,0,a,r)}else n.fillStyle="rgba(255, 255, 255, 0)",n.fillRect(0,0,a,r)
if(jQuery(i.image).attr("src")!==void 0){var c=jQuery(i.image)[0]
if(jQuery(i.image).attr("rel")!==void 0&&""!=jQuery(i.image).attr("rel")){var h=jQuery(i.image).attr("rel").split(":")
h[0]!=i.scaleX&&h[5]!=c.width&&(i.scaleX=h[0]),h[1]!=i.scaleY&&h[6]!=c.height&&(i.scaleY=h[1]),"inside"==h[7]?i.scaleX=i.scaleY=1/Math.max(c.width/parseInt(a),c.height/parseInt(r)):"outside"==h[7]&&(i.scaleX=i.scaleY=1/Math.min(c.width/parseInt(a),c.height/parseInt(r)))}var p,u,f,g,m=isNaN(parseInt(jQuery(i.image).css("left")))?0:parseInt(jQuery(i.image).css("left")),b=isNaN(parseInt(jQuery(i.image).css("top")))?0:parseInt(jQuery(i.image).css("top"))
0>m?(f=m,p=0):(p=m,f=0),0>b?(g=b,u=0):(u=b,g=0)
var C=jQuery("<canvas>")[0]
if(CU3ER[e].isCameraFlat()&&!CU3ER[e].is3D())if(jQuery.browser.mozilla)var v=parseInt(jQuery(c).css("width"))!=h[5]?parseInt(jQuery(c).css("width")):h[5],R=parseInt(jQuery(c).css("height"))!=h[6]?parseInt(jQuery(c).css("height")):h[6]
else var v=h[5],R=h[6]
else var v=c.width*parseFloat(i.scaleX),R=c.height*parseFloat(i.scaleY)
C.width=Math.max(c.width,v),C.height=Math.max(c.height,R)
var j=C.getContext("2d")
null!=i.bgcolor&&(j.fillStyle=i.bgcolor,j.fillRect(0,0,Math.max(c.width,v),Math.max(c.height,R)))
try{j.drawImage(c,f,g,v,R)}catch(y){CU3ER[e].debug(f,g,v,R)}try{a=parseFloat(i.scaleX)>1?parseInt(Math.min(v,a)):parseInt(Math.min(c.width,a)),r=parseFloat(i.scaleY)>1?parseInt(Math.min(R,r)):parseInt(Math.min(c.height,r)),n.drawImage(C,0,0,a,r,Math.max(0,m),Math.max(0,b),a,r)}catch(y){CU3ER[e].debug(a,r,Math.max(0,m),Math.max(0,b),v,R)}}}
if(this.supportCanvas()){if(CU3ER[e].jsonOriginal.slides.slide.length===void 0)var R=jQuery.extend(!0,{},CU3ER[e].jsonOriginal.defaults.slide,CU3ER[e].jsonOriginal.slides.slide),j=jQuery.extend(!0,{},CU3ER[e].jsonOriginal.defaults.slide,CU3ER[e].jsonOriginal.slides.slide)
else var R=jQuery.extend(!0,{},CU3ER[e].jsonOriginal.defaults.slide,CU3ER[e].json.slides.slide[this.current]),j=jQuery.extend(!0,{},CU3ER[e].jsonOriginal.defaults.slide,CU3ER[e].json.slides.slide[this.nextSlide])
var y=jQuery("<canvas>"),E=R.color!==void 0?R.color:null
null==E&&(E=CU3ER[e].json.settings.background.color!==void 0?CU3ER[e].json.settings.background.color:null),E=R.transparent!==void 0&&"true"==R.transparent?"transparent":E,v({scaleX:"2D"!=s||CU3ER[e].is3D()||CU3ER[e].isCameraFlat()?R.image!==void 0?R.image.scaleX:1:1,scaleY:"2D"!=s||CU3ER[e].is3D()||CU3ER[e].isCameraFlat()?R.image!==void 0?R.image.scaleY:1:1,bgcolor:E,image:jQuery(h[CU3ER[e].current]).find("img")[0],el:y[0]})
var U=jQuery("<canvas>"),E=j.color!==void 0?j.color:null
null==E&&(E=CU3ER[e].json.settings.background.color!==void 0?CU3ER[e].json.settings.background.color:null),E=j.transparent!==void 0&&"true"==j.transparent?"transparent":E,v({scaleX:"2D"!=s||CU3ER[e].is3D()||CU3ER[e].isCameraFlat()?j.image!==void 0?j.image.scaleX:1:1,scaleY:"2D"!=s||CU3ER[e].is3D()||CU3ER[e].isCameraFlat()?j.image!==void 0?j.image.scaleY:1:1,bgcolor:E,image:jQuery(h[CU3ER[e].nextSlide]).find("img")[0],el:U[0]})}for(var w=1,x=0,I=0;c>I;I++){var Q=7>parseInt(CU3ER[e].transition.rows)*parseInt(CU3ER[e].transition.columns)?"visible":"hidden",k="visible",S=u*g,_=f*m
if(1==CU3ER[e].transition.columns){if(S=0,_=f*m,f==c-1){var T=jQuery(".CU3ERtransition-holder",t).height()-(c-1)*m
_=f*m-(m-T)}f++,Q="visible"}else if(1==CU3ER[e].transition.rows){if(_=0,S=u*g,u==c-1){var M=jQuery(".CU3ERtransition-holder",t).width()-(c-1)*g
S=u*g-(g-M)}u++,Q="visible"}else if(0==u%(parseInt(CU3ER[e].transition.columns)-1))if(u>0&&parseInt(CU3ER[e].transition.columns)>0){var M=jQuery(".CU3ERtransition-holder",t).width()-(parseInt(CU3ER[e].transition.columns)-1)*g
if(S=u*g-(g-M),f==parseInt(CU3ER[e].transition.rows)-1){var T=jQuery(".CU3ERtransition-holder",t).height()-(parseInt(CU3ER[e].transition.rows)-1)*m
_=f*m-(m-T)}u=0,f++}else{if(f==parseInt(CU3ER[e].transition.rows)-1){var T=jQuery(".CU3ERtransition-holder",t).height()-(parseInt(CU3ER[e].transition.rows)-1)*m
_=f*m-(m-T)}u++}else{if(f==parseInt(CU3ER[e].transition.rows)-1){var T=jQuery(".CU3ERtransition-holder",t).height()-(parseInt(CU3ER[e].transition.rows)-1)*m
_=f*m-(m-T)}u++}x++,w==parseInt(CU3ER[e].transition.rows)&&(Q="visible"),x==parseInt(CU3ER[e].transition.columns)&&(Q="visible",x=0,w++)
var P=_,O=S
if(l){var F=Array()
for(a=0;d.length>a;a++){switch(d[a]){case 1:var z=1
break
case 2:var z=3
break
case 3:var z=2
break
case 4:var z=5
break
case 5:var z=4
break
default:var z=2}F[a]=z}}else var F=d
switch(F[I]){case 1:var B={top:0,position:"absolute",left:0,display:"none"},A={top:0,position:"absolute",left:0}
break
case 3:if(jQuery.browser.msie)var B={top:m+"px",position:"absolute",left:0},A={top:0,position:"absolute",left:0}
else var B={top:m+"px",position:"absolute"},A={}
break
case 2:if(jQuery.browser.msie)var B={top:-parseInt(m)+"px",position:"absolute",left:0,"margin-top":0},A={top:0,position:"absolute",left:0}
else var B={"margin-top":-(2*parseInt(m))+"px",position:"absolute"},A={}
break
case 4:if(jQuery.browser.msie)var B={"margin-left":parseInt(g+3)+"px","float":"left",top:0,left:0},A={"float":"left",top:0,left:0}
else var B={"margin-left":parseInt(g+3)+"px","float":"left"},A={"float":"left"}
break
case 5:if(jQuery.browser.msie)var B={"margin-left":-parseInt(g+3)+"px","float":"left",top:0,left:0},A={"float":"left"}
else var B={"margin-left":-parseInt(g+3)+"px","float":"left"},A={"float":"left"}
break
default:if(jQuery.browser.msie)var B={top:m+"px",position:"absolute",left:0},A={top:0,position:"absolute",left:0}
else var B={top:m+"px",position:"absolute"},A={}}if("2D"==s){if(this.supportCanvas()){var p=jQuery("<div>").attr("class","CU3ERtrans").css({position:"absolute",left:O+"px",top:P+"px",width:parseInt(g)+2+"px",height:parseInt(m)+1+"px","z-index":400,overflow:"hidden"}).append('<div class="CU3ERsliceHolder"><div class="CU3ERcurrentSlice" style="width: '+g+"px; height: "+m+'px;"></div><div class="CU3ERnextSlice"></div></div>')
jQuery(p).find(".CU3ERsliceHolder").css({width:"5000px",height:"5000px",position:"relative",top:0,left:0}).find(".CU3ERcurrentSlice").css({width:parseFloat(g)+"px",height:parseFloat(m)+"px",overflow:"hidden"}).css(A).append(jQuery(h[CU3ER[e].current]).find("img").clone()).find("img").replaceWith("<canvas>"),jQuery(p).find(".CU3ERnextSlice").css({width:parseFloat(g)+"px",height:parseFloat(m)+"px",postion:"absolute",overflow:"hidden",position:"absolute"}).css(B).append(jQuery(h[CU3ER[e].nextSlide]).find("img").clone()).find("img").replaceWith("<canvas>"),jQuery(p).find(".CU3ERcurrentSlice").find("canvas").each(function(){var t=y[0]
this.width=g,this.height=m
var i=this.getContext("2d"),s=S,a=_
try{i.drawImage(t,s,a,g,m,0,0,g,m)}catch(r){CU3ER[e].debug(s,a,g,m,r)}}),jQuery(p).find(".CU3ERnextSlice").find("canvas").each(function(){var t=U[0]
this.width=g,this.height=m
var i=this.getContext("2d"),s=S,a=_
try{i.drawImage(t,s,a,g,m,0,0,g,m)}catch(r){CU3ER[e].debug(s,a,g,m,r)}})}else{var p=jQuery("<div>").attr("class","CU3ERtrans").css({position:"absolute",left:O+"px",top:P+"px",width:parseInt(g)+2+"px",height:parseInt(m)+1+"px","z-index":400,overflow:"hidden"}).append('<div class="CU3ERsliceHolder"><div class="CU3ERcurrentSlice" style="width: '+g+"px; height: "+m+'px;"></div><div class="CU3ERnextSlice" style="width: '+g+"px; height: "+m+'px;"></div></div>')
jQuery(p).find(".CU3ERsliceHolder").css({width:"700px",height:"700px",position:"relative",top:0,left:0}).find(".CU3ERcurrentSlice").css({width:parseFloat(g)+2+"px",height:parseFloat(m)+1+"px",overflow:"hidden",position:"relative","background-color":""!=jQuery(h[CU3ER[e].current]).css("backgroundColor")?jQuery(h[CU3ER[e].current]).css("backgroundColor"):"transparent"}).css(A).append(jQuery(h[CU3ER[e].current]).find("img").clone()).find("img").css({position:"absolute",left:CU3ER[e].isCameraFlat()&&!isNaN(parseInt(jQuery(h[CU3ER[e].current]).find("img").css("left")))?-S+parseInt(jQuery(h[CU3ER[e].current]).find("img").css("left")):-S+"px",top:CU3ER[e].isCameraFlat()&&!isNaN(parseInt(jQuery(h[CU3ER[e].current]).find("img").css("top")))?-_+parseInt(jQuery(h[CU3ER[e].current]).find("img").css("top")):-_+"px"}),jQuery(p).find(".CU3ERnextSlice").css({width:parseFloat(g)+2+"px",height:parseFloat(m)+1+"px",overflow:"hidden",position:"absolute","background-color":""!=jQuery(h[CU3ER[e].nextSlide]).css("backgroundColor")?jQuery(h[CU3ER[e].nextSlide]).css("backgroundColor"):"transparent"}).css(B).append(jQuery(h[CU3ER[e].nextSlide]).find("img").clone()).find("img").css({position:"absolute",left:CU3ER[e].isCameraFlat()&&!isNaN(parseInt(jQuery(h[CU3ER[e].nextSlide]).find("img").css("left")))?-S+parseInt(jQuery(h[CU3ER[e].nextSlide]).find("img").css("left")):-S+"px",top:CU3ER[e].isCameraFlat()&&!isNaN(parseInt(jQuery(h[CU3ER[e].nextSlide]).find("img").css("top")))?-_+parseInt(jQuery(h[CU3ER[e].nextSlide]).find("img").css("top")):-_+"px"})}jQuery(".CU3ERtransition",t).append(p),jQuery(".CU3ERtransition-holder",t).css({overflow:"hidden"})}else{var D=CU3ER[e].transition,X=D.position3d,H=CU3ER[e].slicesDirections[X][I],N=boxDepthHolder=parseInt(D.flipBoxDepth),L=CU3ER[e].transition.flipColor.replace("0x","#"),Y=1
this.transition.transparent=!1
var q=jQuery.extend(!0,{},CU3ER[e].jsonOriginal.defaults.slide,CU3ER[e].jsonOriginal.slides.slide[this.current]),W=jQuery.extend(!0,{},CU3ER[e].jsonOriginal.defaults.slide,CU3ER[e].jsonOriginal.slides.slide[this.nextSlide]);("undefined"!=q.transparent&&"true"==q.transparent||"undefined"!=W.transparent&&"true"==W.transparent)&&(L="transparent",Q=k="hidden",Y=1,this.transition.transparent=!0),"90"!=D.flipAngle||"left"!=H&&"right"!=H?"90"!=D.flipAngle||"up"!=H&&"down"!=H?(calcHeight=N,calcWidth=N,calcTopBottom=-Math.round(parseInt(calcHeight)/2+.5),calcLeftRight=-Math.round(parseInt(calcHeight)/2+.5)):(N=m,calcHeight=N,calcWidth=N,k="visible",calcTopBottom=-Math.round(parseInt(m)/2+.5),calcLeftRight=-Math.round(parseInt(m)/2+.5)):(N=g,calcHeight=N,calcWidth=N,k="visible",calcTopBottom=Math.round(parseInt(m)/2+.5),calcLeftRight=Math.round(parseInt(N)/2+.5))
var p=jQuery("<div>").attr("class","CU3ERtrans").css({position:"absolute",left:O+"px",top:P+"px",width:parseInt(g)+1+"px",height:parseInt(m)+1+"px","-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"hidden","-webkit-animation-timing-function":"ease-in-out","-moz-transform-style":"preserve-3d","-moz-backface-visibility":"hidden","-moz-animation-timing-function":"ease-in-out","z-index":1e3}).append('<div class="CU3ERsliceHolder"><div class="CU3ERcurrentSlice"></div><div class="CU3ERnextSlice"></div></div>')
jQuery(p).find(".CU3ERsliceHolder").css({width:parseInt(g)+"px",height:parseInt(m)+"px","-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"hidden","-webkit-animation-timing-function":"ease-in-out","-moz-transform-style":"preserve-3d","-moz-backface-visibility":"hidden","-moz-animation-timing-function":"ease-in-out","-webkit-transform":"translateZ(-"+Math.round(N/2+.5)+"px)","-moz-transform":"translateZ(-"+Math.round(N/2+.5)+"px)",overflow:"visible",position:"relative"}).find(".CU3ERcurrentSlice").css({width:parseInt(g)+"px",height:parseInt(m)+"px","-webkit-transform":"translateZ("+Math.round(N/2+.5)+"px)","-webkit-transform-style":"preserve-3d","-moz-transform":"translateZ("+Math.round(N/2+.5)+"px)","-moz-transform-style":"preserve-3d","-webkit-backface-visibility":"hidden","-moz-backface-visibility":"hidden",top:0,left:0,overflow:"hidden"}).append(jQuery(h[CU3ER[e].current]).find("img").clone()).find("img").replaceWith("<canvas>")
var Z="180"!=D.flipAngle||"up"!=H&&"down"!=H?"rotateY(180deg) translateZ("+Math.round(N/2+.5)+"px)":"rotateY(180deg) translateZ("+Math.round(N/2+.5)+"px) rotate(180deg)"
jQuery(p).find(".CU3ERnextSlice").css({width:parseInt(g)+"px",height:parseInt(m)+"px","-webkit-transform-style":"preserve-3d","-webkit-transform":Z,"-moz-transform-style":"preserve-3d","-moz-transform":Z,"-webkit-backface-visibility":"hidden","-moz-backface-visibility":"hidden",overflow:"hidden",position:"absolute",top:0,left:0,opacity:Y}).append(jQuery(h[CU3ER[e].nextSlide]).find("img").clone()).find("img").replaceWith("<canvas>"),jQuery(p).find(".CU3ERcurrentSlice").find("canvas").each(function(){var t=y[0]
this.width=g,this.height=m
var i=this.getContext("2d"),s=S,a=_
try{i.drawImage(t,s,a,g,m,0,0,g,m)}catch(r){CU3ER[e].debug(s,a,g,m,r)}}),jQuery(p).find(".CU3ERnextSlice").find("canvas").each(function(){var t=U[0]
this.width=g,this.height=m
var i=this.getContext("2d"),s=S,a=_
try{i.drawImage(t,s,a,g,m,0,0,g,m)}catch(r){CU3ER[e].debug(s,a,g,m,r)}}),jQuery(".CU3ERtransition",t).css({"-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"hidden","-moz-transform-style":"preserve-3d","-moz-backface-visibility":"hidden"}).append(p),jQuery(".CU3ERtransition-holder",t).css({overflow:"visible","-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"hidden","-moz-transform-style":"preserve-3d","-moz-backface-visibility":"hidden"}),jQuery(h[CU3ER[e].nextSlide]).css("display","none"),jQuery(p).find(".CU3ERsliceHolder").append(jQuery("<div />").attr("class","CU3ERside CU3ERtopSide").css({width:g+"px",height:calcHeight+"px",position:"absolute","background-color":L,visibility:k,"-webkit-transform-origin":"50% 50%","-moz-transform-origin":"50% 50%","-webkit-backface-visibility":Q,"-moz-backface-visibility":Q,top:0,left:0,"-webkit-transform":"rotateX(90deg) translateZ("+N/2+"px)","-moz-transform":"rotateX(90deg) translateZ("+N/2+"px)"})),jQuery(p).find(".CU3ERsliceHolder").append(jQuery("<div />").attr("class","CU3ERside CU3ERbottomSide").css({width:g+"px",height:N+"px",position:"absolute","background-color":L,visibility:k,"-webkit-backface-visibility":Q,"-moz-backface-visibility":Q,bottom:0,left:0,"-webkit-transform":"rotateX(-90deg) translateZ("+N/2+"px)","-moz-transform":"rotateX(-90deg) translateZ("+N/2+"px)"})),jQuery(p).find(".CU3ERsliceHolder").append(jQuery("<div />").attr("class","CU3ERside CU3ERleftSide").css({width:calcWidth+"px",height:m+"px",position:"absolute","background-color":L,visibility:k,"-webkit-backface-visibility":Q,"-moz-backface-visibility":Q,top:0,left:0,"-webkit-transform":"rotateY(90deg) translateZ("+calcLeftRight+"px)","-moz-transform":"rotateY(90deg) translateZ("+calcLeftRight+"px)"})),jQuery(p).find(".CU3ERsliceHolder").append(jQuery("<div />").attr("class","CU3ERside CU3ERrightSide").css({width:calcWidth+"px",height:m+"px",position:"absolute","background-color":L,visibility:k,"-webkit-backface-visibility":Q,"-moz-backface-visibility":Q,top:0,right:0,"-webkit-transform":"rotateY(-90deg) translateZ("+calcLeftRight+"px)","-moz-transform":"rotateY(-90deg) translateZ("+calcLeftRight+"px)"}))
var G="up"
if(1==l)switch(H){case"up":G="top"
break
case"down":G="bottom"
break
case"left":G="right"
break
case"right":G="left"}else switch(H){case"up":G="bottom"
break
case"down":G="top"
break
case"left":G="left"
break
case"right":G="right"}if("90"==D.flipAngle){var V=jQuery(".CU3ERnextSlice",jQuery(p)).css("background-color","transparent").find("canvas")
jQuery(".CU3ERnextSlice",jQuery(p)).parent().find(".CU3ER"+G+"Side").append(V),jQuery(".CU3ERnextSlice",jQuery(p)).css("background-color",L)}}}setTimeout(function(){CU3ER[e].animationSlices(F,l)},50)},animationSlices:function(e,t){var s=this.id,a=this.el,e=e,r=this.elements,n=jQuery(".CU3ERtrans",a),o={}
o.rows=parseFloat(this.transition.rows),o.columns=parseFloat(this.transition.columns),o.flipOrder=parseFloat(this.transition.flipOrder),o.flipDuration=parseFloat(this.transition.flipDuration),o.flipDelay=parseFloat(this.transition.flipDelay),o.flipOrderFromCenter=this.transition.flipOrderFromCenter
var l=!1
if(1==this.directionReverse){switch(parseInt(o.flipOrder)){case 0:o.flipOrder=180
break
case 45:o.flipOrder=225
break
case 90:o.flipOrder=270
break
case 135:o.flipOrder=315
break
case 180:o.flipOrder=0
break
case 225:o.flipOrder=45
break
case 270:o.flipOrder=90
break
case 315:o.flipOrder=135}l=!0}var d=this.getOrder(o),c=d[0],h=d[1]
o.flipRandomize=0,this.transition.flipDelayRandomize!==void 0?(o.flipRandomize=parseFloat(this.transition.flipDelayRandomize),o.hasFlipRandomizeNew=!1):this.transition.flipRandomize!==void 0&&(o.flipRandomize=parseFloat(this.transition.flipRandomize),o.hasFlipRandomizeNew=!0)
var p=this.getOrderRandomized(o,c,h),u=p[0],f=p[1],t=parseInt(o.rows)*parseInt(o.columns),g=this.is3D()?this.transition.type:"2D",m=function(t){var i=e[t],r=CU3ER[s].easingValues["Sine.easeOut.3d"],o=CU3ER[s].easingValues[CU3ER[s].transition.flipEasing]
if("2D"==g){var d=1e3*CU3ER[s].transition.flipDuration
switch(i){case 1:jQuery(".CU3ERcurrentSlice",jQuery(n[t])).css({"z-index":500,display:"block"}),jQuery(".CU3ERnextSlice",jQuery(n[t])).css({"z-index":501,display:"none"}).fadeIn(d,o)
break
case 3:jQuery.browser.msie?(jQuery(".CU3ERnextSlice",jQuery(n[t])).animate({top:0},d-30,o),jQuery(".CU3ERcurrentSlice",jQuery(n[t])).animate({top:"-"+jQuery(".CU3ERcurrentSlice",n[t]).height()+"px"},d,o)):(jQuery(".CU3ERnextSlice",jQuery(n[t])).animate({top:jQuery(".CU3ERnextSlice",n[t]).height()+"px"},d-30,o),jQuery(".CU3ERcurrentSlice",jQuery(n[t])).animate({"margin-top":"-"+jQuery(".CU3ERcurrentSlice",n[t]).height()+"px"},d,o))
break
case 2:jQuery.browser.msie?(jQuery(".CU3ERnextSlice",jQuery(n[t])).animate({top:0},d-30,o),jQuery(".CU3ERcurrentSlice",jQuery(n[t])).animate({top:jQuery(".CU3ERcurrentSlice",n[t]).height()+"px"},d,o)):(jQuery(".CU3ERnextSlice",jQuery(n[t])).animate({"margin-top":jQuery(".CU3ERnextSlice",jQuery(n[t])).css("margin-top")},d-30,o),jQuery(".CU3ERcurrentSlice",jQuery(n[t])).animate({"margin-top":jQuery(".CU3ERcurrentSlice",n[t]).height()+"px"},d,o))
break
case 4:jQuery(".CU3ERnextSlice",jQuery(n[t])).animate({"margin-left":"0px"},d-30,o),jQuery(".CU3ERcurrentSlice",jQuery(n[t])).animate({"margin-left":-jQuery(".CU3ERcurrentSlice",n[t]).width()+"px"},d,o)
break
case 5:jQuery(".CU3ERnextSlice",jQuery(n[t])).animate({"margin-left":"0px"},d-30,o),jQuery(".CU3ERcurrentSlice",jQuery(n[t])).animate({"margin-left":jQuery(".CU3ERcurrentSlice",n[t]).width()+"px"},d,o)
break
default:jQuery(".CU3ERcurrentSlice",jQuery(n[t])).animate({"margin-top":"-"+jQuery(".CU3ERcurrentSlice",n[t]).height()+"px"},d,o),jQuery(".CU3ERnextSlice",jQuery(n[t])).animate({"margin-top":0},d,o)}}else{jQuery(".CU3ERbox-holder",a).css("display","none")
var d=CU3ER[s].transition.flipDuration,c=1==l?"_reverse":""
jQuery(n[t]).css({"-webkit-animation":"translateSliceHolder"+CU3ER[s].transition.position3d+" "+(parseFloat(d)-.05)+"s "+r,"-moz-animation-fill-mode":"forwards","-moz-animation-name":"translateSliceHolder"+CU3ER[s].transition.position3d,"-moz-animation-duration":parseFloat(d)-.05+"s","-moz-animation-iteration-count":1,"-moz-animation-delay":0}),jQuery(".CU3ERsliceHolder",jQuery(n[t])).css({"-webkit-animation-fill-mode":"forwards","-webkit-animation-name":"sliceAnimation"+CU3ER[s].transition.position3d+"_"+t+c,"-webkit-animation-duration":d+"s","-webkit-animation-iteration-count":1,"-webkit-animation-delay":0,"-moz-animation-fill-mode":"forwards","-moz-animation-name":"sliceAnimation"+CU3ER[s].transition.position3d+"_"+t+c,"-moz-animation-duration":d+"s","-moz-animation-iteration-count":1,"-moz-animation-delay":0})}},b=function(e){setTimeout(function(){m(e)},f[e])}
for(i=0;t>i;i++){var C=i
b(C)}jQuery(".CU3ERslides-holder",a).css("display","none"),jQuery(r[CU3ER[s].current]).css("display","none"),jQuery(r[CU3ER[s].nextSlide]).css("display","block"),setTimeout(function(){if("3D"==g){var e=CU3ER[s].elements
jQuery(e[CU3ER[s].nextSlide]).css({display:"block","-webkit-transform":"translateZ(1px)","-moz-transform":"translateZ(1px)"})}CU3ER[s].onTransitionComplete()},1e3*(u+parseFloat(CU3ER[s].transition.flipDuration)+.05))
try{if(CU3ER[s].json.slides.slide[CU3ER[s].current].transparent!==void 0&&"true"==CU3ER[s].json.slides.slide[CU3ER[s].current].transparent||CU3ER[s].json.slides.slide[CU3ER[s].nextSlide].transparent!==void 0&&"true"==CU3ER[s].json.slides.slide[CU3ER[s].nextSlide].transparent)var v=!0
else var v=!1}catch(R){var v=!1}!v&&CU3ER[s].is3D()&&(CU3ER[s].timerShader=setTimeout(CU3ER[s].updateShader,50,CU3ER[s]))},updateShader:function(e){for(var t=this.el,i=jQuery(".CU3ERsliceHolder",t),s=e.transition.flipColor.split("0x").join(""),a=parseInt(s.substr(0,2),16),r=parseInt(s.substr(2,2),16),n=parseInt(s.substr(4,2),16),o=0;i.length>o;o++)jQuery("div",i[o]).each(function(){if(jQuery(this).hasClass("CU3ERside")){var e=jQuery(this).parent().parent().css("-webkit-transform")
if(-1!=e.indexOf("matrix3d")){e=e.split(",")
var t=Math.floor(parseInt(e[14])/15),i=a+t>0?Math.min(255,a+t):Math.max(0,a+t),s=r+t>0?Math.min(255,r+t):Math.max(0,r+t),o=n+t>0?Math.min(255,n+t):Math.max(0,n+t)
jQuery(this).css("backgroundColor","rgb("+i+","+s+","+o+")")}}})
e.timerShader=setTimeout(e.updateShader,50,e)},onTransitionComplete:function(){var e=this.id,t=this.el
clearTimeout(CU3ER[e].timerShader)
var i=this.elements
if(jQuery.browser.msie||jQuery(".CU3ERbackground",t).css("display","block"),this.current=this.nextSlide,this.currSlideNo=parseInt(this.current)+1,this.autoscrollThumbs&&this.repositionThumbs(),this.onSlide(this.currSlideNo),defaults=jQuery.extend(!0,{},CU3ER[e].jsonOriginal.defaults.slide,CU3ER[e].jsonOriginal.slides.slide[CU3ER[e].current]),defaults.time=1e3*parseFloat(defaults.time),this.sleepDuration=defaults.time,this.is3D()&&CU3ER[e].createSlideBoxDepth(this.transition),jQuery(".CU3ERslides-holder",t).css("display","block"),jQuery(".CU3ERbox-holder",t)&&jQuery(".CU3ERbox-holder",t).css("display","block"),setTimeout(function(){jQuery(".CU3ERtransition-holder",t).css("display","none"),jQuery(".CU3ERtransition",t).remove(),CU3ER[e].inTransition=!1},50),jQuery.browser.msie&&(CU3ER[e].inTransition=!1),jQuery(".CU3ERlayer",t).css({display:"none"}),++CU3ER[e].currentLoop,CU3ER[e].destroyDescription(),CU3ER[e].json.description!==void 0){if(1==CU3ER[e].json.slides.slide.length)var s=0
else var s=CU3ER[t.attr("id")].current
if("[object Object]"==Object.prototype.toString.call(CU3ER[e].json.slides.slide[s].description)&&("[object String]"==Object.prototype.toString.call(CU3ER[e].json.slides.slide[s].description.heading)&&""!=CU3ER[e].json.slides.slide[s].description.heading||"[object String]"==Object.prototype.toString.call(CU3ER[e].json.slides.slide[s].description.paragraph)&&""!=CU3ER[e].json.slides.slide[s].description.paragraph)){if(CU3ER[e].jsonOriginal.defaults.slide.description!==void 0)var a=jQuery.extend(!0,{},CU3ER[e].jsonOriginal.defaults.slide.description,CU3ER[e].json.slides.slide[s].description)
else var a=CU3ER[e].json.slides.slide[s].description
CU3ER[e].populateDescription(a),jQuery(".CU3ERdescription",t).css("display","block")}}if(2==i.length?jQuery(i[0]).trigger("endTransition"):jQuery(i[CU3ER[e].current]).trigger("endTransition"),0==CU3ER[e].mOver&&1==CU3ER[e].paused&&1==CU3ER[e].rollOverPause)CU3ER[e].continueTimers()
else if(1==CU3ER[e].mOver&&0==CU3ER[e].paused&&1==CU3ER[e].rollOverPause)CU3ER[e].stopTimers()
else if(0==this.paused&&(this.time=null,this.pauseStartTimer=(new Date).getTime(),CU3ER[e].json.settings.auto_play!==void 0&&"true"==CU3ER[e].json.settings.auto_play&&(0==CU3ER[e].loop||CU3ER[e].currentLoop<=CU3ER[e].loop*CU3ER[e].slidesTotal))){if(CU3ER[e].json.controls.auto_play_indicator!==void 0){var r={type:"autoPlay",width:CU3ER[e].json.controls.auto_play_indicator.width,height:CU3ER[e].json.controls.auto_play_indicator.height,loaderTweenShowTint:CU3ER[e].json.controls.auto_play_indicator.loader.tweenShow.tint,loaderTreenOverTint:CU3ER[e].json.controls.auto_play_indicator.loader.tweenOver.tint,loaderTweenShowAlpha:CU3ER[e].json.controls.auto_play_indicator.loader.tweenShow.alpha,loaderTweenOverAlpha:CU3ER[e].json.controls.auto_play_indicator.loader.tweenOver.alpha,bgTweenShowAlpha:CU3ER[e].json.controls.auto_play_indicator.background.tweenShow.alpha,bgTweenOverAlpha:CU3ER[e].json.controls.auto_play_indicator.background.tweenOver.alpha,bgTweenShowTint:CU3ER[e].json.controls.auto_play_indicator.background.tweenShow.tint,bgTweenOverTint:CU3ER[e].json.controls.auto_play_indicator.background.tweenOver.tint,image:null,posX:CU3ER[e].json.controls.auto_play_indicator.x,posY:CU3ER[e].json.controls.auto_play_indicator.y,align_pos:CU3ER[e].json.controls.auto_play_indicator.align_pos,align_to:"stage"==CU3ER[e].json.controls.auto_play_indicator.align_to?"stage":"slides",padding:CU3ER[e].json.controls.auto_play_indicator.background.padding,shape:CU3ER[e].json.controls.auto_play_indicator.type,radius:CU3ER[e].json.controls.auto_play_indicator.radius};(0==CU3ER[e].loop||CU3ER[e].currentLoop<=CU3ER[e].loop*CU3ER[e].slidesTotal)&&(jQuery(".CU3ERindicator",t).stop().remove(),CU3ER[e].drawProgressBar(r),jQuery(".CU3ERprogress",t).animate({width:"100%"},defaults.time,function(){jQuery(".CU3ERprogress",t).css("width","0%")}),jQuery(".CU3ERindicator",t).bind("click",function(){CU3ER[e].pauseType=2,CU3ER[e].pause()}))}CU3ER[e].tempTimeout[CU3ER[e].current]=setTimeout(function(){CU3ER[e].next()},defaults.time)}},isCameraFlat:function(){this.id,this.el
var e=!0
return this.json.settings.camera!==void 0&&(this.json.settings.camera.x!==void 0&&0!=this.json.settings.camera.x&&(e=!1),this.json.settings.camera.y!==void 0&&0!=this.json.settings.camera.y&&(e=!1),this.json.settings.camera.z!==void 0&&0!=this.json.settings.camera.z&&(e=!1),this.json.settings.camera.angleX!==void 0&&0!=this.json.settings.camera.angleX&&(e=!1),this.json.settings.camera.angleY!==void 0&&0!=this.json.settings.camera.angleY&&(e=!1),this.json.settings.camera.angleZ!==void 0&&0!=this.json.settings.camera.angleZ&&(e=!1),this.json.settings.camera.lens!==void 0&&8!=this.json.settings.camera.lens&&(e=!1)),1==this.force_simple&&(e=!1),e},setDirections:function(e,t,i){this.id,this.el
var s=parseInt(e.rows)*parseInt(e.columns),a=Array()
if(6==t)for(var r=0;s>r;r++){var n=jQuery.shuffle(i)
a[r]=n[0]}else for(var r=0;s>r;r++)a[r]=t
return a},continueTimers:function(){var e=this.id,t=this.el
this.paused=!1,this.pauseType=0
var i={time:5}
if(i=jQuery.extend(!0,i,CU3ER[e].json.defaults.slide,CU3ER[e].json.slides[this.current]),i.time=1e3*parseInt(i.time),jQuery(".CU3ERindicator").length>0)if(this.supportCanvas()&&"circular"==this.circularPBOptions.shape)this.stopFlag=!1,this.startCircularProgressbar(this.circularPBOptions,!0)
else if(jQuery(".CU3ERprogress").length>0){if(jQuery.browser.msie)var s=100,a=jQuery(".CU3ERprogress",t).css("width"),r=100-parseInt(a)
else var s=jQuery(".CU3ERprogress",t).css("maxWidth"),a=jQuery(".CU3ERprogress",t).width(),r=100-100*parseInt(a)/parseInt(s)
var n=parseInt(r)*i.time/100
jQuery(".CU3ERprogress",t).animate({width:"100%"},n,function(){jQuery(".CU3ERprogress",t).css("width","0%"),CU3ER[e].skipTo(CU3ER[e].calculateNext(CU3ER[e].current),!0,!0)})}else null!=this.time&&this.time>0&&(i.time=this.time),this.pauseStartTimer=(new Date).getTime(),CU3ER[e].tempTimeout[CU3ER[e].current]=setTimeout(function(){CU3ER[e].skipTo(CU3ER[e].calculateNext(CU3ER[e].current),!0,!0)},i.time)
else null!=this.time&&this.time>0&&(i.time=this.time),this.pauseStartTimer=(new Date).getTime(),CU3ER[e].tempTimeout[CU3ER[e].current]=setTimeout(function(){CU3ER[e].skipTo(CU3ER[e].calculateNext(CU3ER[e].current),!0,!0)},i.time)},stopTimers:function(){var e=this.id,t=this.el
if(this.paused=!0,jQuery(".CU3ERindicator").length>0)this.supportCanvas()&&"circular"==this.circularPBOptions.shape?(clearTimeout(this.circularPBOptions.tempTimeout),this.stopCircularProgressbar()):jQuery(".CU3ERprogress",t).stop()
else{if(defaults=jQuery.extend(!0,defaults,CU3ER[e].json.defaults.slide,CU3ER[e].json.slides[this.current]),null!=this.time){var i=this.time-((new Date).getTime()-this.pauseStartTimer)
this.time=i>0?i:defaults.time}else this.time=defaults.time-((new Date).getTime()-this.pauseStartTimer)
clearTimeout(this.tempTimeout[CU3ER[e].current])}this.clearTimeouts()},handleAutoHide:function(e,t,i,s){var a=this.id,r=this.el
CU3ER[a].debug("attaching auto hide behavior")
var n=this.elements,o=null,l=null,d=null,c=null
e!==void 0&&e.next_button!==void 0&&"true"==e.next_button.hide_on_transition&&jQuery(n).bind("endTransition",function(){clearTimeout(o),jQuery(".CU3ERbuttonNext",r).fadeIn("fast")}).bind("startTransition",function(){jQuery(".CU3ERbuttonNext",r).fadeOut("fast")}),e!==void 0&&e.prev_button!==void 0&&"true"==e.prev_button.hide_on_transition&&jQuery(n).bind("endTransition",function(){clearTimeout(l),jQuery(".CU3ERbuttonPrev",r).fadeIn("fast")}).bind("startTransition",function(){jQuery(".CU3ERbuttonPrev",r).fadeOut("fast")}),t!==void 0&&"true"==t.hide_on_transition&&jQuery(n).bind("endTransition",function(){jQuery(".CU3ERindicator",r).fadeIn("fast")}).bind("startTransition",function(){jQuery(".CU3ERindicator",r).fadeOut("fast")}),void 0===i||"true"!=i.hide_on_transition&&"true"!=i.bake_on_transition||jQuery(n).bind("endTransition",function(){""!=jQuery(".CU3ERDescriptionLinkHolder",r).html()&&null!=jQuery(".CU3ERDescriptionLinkHolder",r).html()&&(clearTimeout(d),jQuery(".CU3ERdescription",r).fadeIn("fast"))}).bind("startTransition",function(){CU3ER[a].destroyDescription(),jQuery(".CU3ERdescription",r).fadeOut("fast")}),s!==void 0&&"true"==s.hide_on_transition&&jQuery(n).bind("endTransition",function(){clearTimeout(c),jQuery(".CU3ERthumbs",r).fadeIn("fast")}).bind("startTransition",function(){jQuery(".CU3ERthumbs",r).fadeOut("fast")}),this.isTouch()||(e!==void 0&&e.next_button!==void 0&&"true"==e.next_button.auto_hide.text&&(jQuery(r).bind("mouseover",function(){clearTimeout(o),jQuery(".CU3ERbuttonNext",r).fadeIn("fast")}).bind("mouseout",function(){bntNext=setTimeout(function(){jQuery(".CU3ERbuttonNext",r).fadeOut("fast")},1e3*parseInt(e.next_button.auto_hide.time))}),jQuery(n).bind("endTransition",function(){bntNext=setTimeout(function(){jQuery(".CU3ERbuttonNext",r).fadeOut("fast")},1e3*parseInt(e.next_button.auto_hide.time))})),e!==void 0&&e.prev_button!==void 0&&"true"==e.prev_button.auto_hide.text&&(jQuery(r).bind("mouseover",function(){clearTimeout(l),jQuery(".CU3ERbuttonPrev",r).fadeIn("fast")}).bind("mouseout",function(){bntPrev=setTimeout(function(){jQuery(".CU3ERbuttonPrev",r).fadeOut("fast")},1e3*parseInt(e.prev_button.auto_hide.time))}),jQuery(n).bind("endTransition",function(){bntPrev=setTimeout(function(){jQuery(".CU3ERbuttonPrev",r).fadeOut("fast")},1e3*parseInt(e.prev_button.auto_hide.time))})),s!==void 0&&"true"==s.auto_hide&&(jQuery(r).bind("mouseover",function(){clearTimeout(c),jQuery(".CU3ERthumbs",r).fadeIn("fast")}).bind("mouseout",function(){c=setTimeout(function(){jQuery(".CU3ERthumbs",r).fadeOut("fast")},1e3*parseInt(s.auto_hide.time))}),jQuery(n).bind("endTransition",function(){c=setTimeout(function(){jQuery(".CU3ERthumbs",r).fadeOut("fast")},1e3*parseInt(s.auto_hide.time))})),i!==void 0&&"true"==i.auto_hide&&(jQuery(r).bind("mouseover",function(){""!=jQuery(".CU3ERDescriptionLinkHolder",r).html()&&null!=jQuery(".CU3ERDescriptionLinkHolder",r).html()&&(clearTimeout(d),jQuery(".CU3ERdescription",r).fadeIn("fast"))}).bind("mouseout",function(){clearTimeout(d),d=setTimeout(function(){jQuery(".CU3ERdescription",r).fadeOut("fast")},1e3*parseInt(i.auto_hide.time))}),jQuery(n).bind("endTransition",function(){clearTimeout(d),d=setTimeout(function(){jQuery(".CU3ERdescription",r).fadeOut("fast")},1e3*parseInt(i.auto_hide.time))})))},calculateNext:function(e){this.id,this.el
var t=this.elements
return t.length-1==e?0:++e},calculatePrevious:function(e){this.id,this.el
var t=this.elements
return 0==e?t.length-1:--e},switchThumbnailClass:function(e){this.id
var t=this.el,i=jQuery(".CU3ERthumbs .CU3ERthumbs-holder .CU3ERThumb a",t)
i.parent().removeClass("current"),jQuery(i[e]).parent().addClass("current").trigger("classChanged")},populateDescription:function(e){var t=this.id,i=this.el,s=CU3ER[t].json.description.width+"px",a=CU3ER[t].json.description.height+"px"
jQuery(".CU3ERDescriptionText",i).append('<div class="CU3ERDescriptionLinkHolder"></div>').find(".CU3ERDescriptionLinkHolder").css({width:s,height:a})
var r=function(e){return e.split(String.fromCharCode(10)).join("<br />").split(String.fromCharCode(13)).join("<br />").replace("\\'","'")}
if("[object String]"==Object.prototype.toString.call(e.heading)){if(headingCSS={},CU3ER[t].json.description.heading.margin!==void 0?(margins=CU3ER[t].json.description.heading.margin.split(","),headingCSS.marginTop=parseInt(margins[0])+"px",headingCSS.marginRight=parseInt(margins[1])+"px",headingCSS.marginBottom=parseInt(margins[2])+"px",headingCSS.marginLeft=parseInt(margins[3])+"px",headingCSS.position="relative"):(headingCSS.marginTop="5px",headingCSS.marginRight="5px",headingCSS.marginBottom="5px",headingCSS.marginLeft="5px",headingCSS.position="relative"),headingCSS.fontFamily=CU3ER[t].json.description.heading.font!==void 0?'"'+decodeURI(CU3ER[t].json.description.heading.font)+'"':"Georgia",headingCSS.fontWeight="true"==CU3ER[t].json.description.heading.text_bold?"bold":"normal",headingCSS.fontStyle="true"==CU3ER[t].json.description.heading.text_italic?"italic":"normal",headingCSS.textAlign=CU3ER[t].json.description.heading.text_align!==void 0?CU3ER[t].json.description.heading.text_align:"left",headingCSS.opacity=CU3ER[t].json.description.heading.tweenShow.opacity!==void 0?CU3ER[t].json.description.heading.tweenShow.opacity:"1",headingCSS.lineHeight=CU3ER[t].json.description.heading.text_leading!==void 0&&CU3ER[t].json.description.heading.text_leading>0?parseInt(CU3ER[t].json.description.heading.text_size)+parseInt(CU3ER[t].json.description.heading.text_leading)+"px":CU3ER[t].json.description.heading.text_size+"px",CU3ER[t].json.description.heading.text_letterspacing!==void 0&&CU3ER[t].json.description.heading.text_letterspacing>0&&(headingCSS.letterSpacing=CU3ER[t].json.description.heading.text_letterspacing+"px"),e.link!==void 0)var n=e.link.text!==void 0?e.link.text:e.link
if(e.link!==void 0&&"string"==typeof n){var o=e.link.target===void 0?CU3ER[t].jsonOriginal.defaults.slide.description.link.target===void 0?"_self":CU3ER[t].jsonOriginal.defaults.slide.description.link.target:e.link.target
jQuery(".CU3ERDescriptionLinkHolder",i).append('<h2><a href="'+n+'" target="'+o+'">'+r(e.heading)+"</a></h2>").find("h2").css({fontSize:CU3ER[t].json.description.heading.text_size+"px",color:CU3ER[t].json.description.heading.tweenShow.tint.replace("0x","#")}).css(headingCSS).find("a").css({fontSize:CU3ER[t].json.description.heading.text_size+"px",color:CU3ER[t].json.description.heading.tweenShow.tint.replace("0x","#"),"line-height":headingCSS.lineHeight,"font-family":headingCSS.fontFamily,opacity:headingCSS.opacity})}else jQuery(".CU3ERDescriptionLinkHolder",i).append("<h2>"+r(e.heading)+"</h2>").find("h2").css({fontSize:CU3ER[t].json.description.heading.text_size+"px",color:CU3ER[t].json.description.heading.tweenShow.tint.replace("0x","#")}).css(headingCSS)}if("[object String]"==Object.prototype.toString.call(e.paragraph)){if(descCSS={},CU3ER[t].json.description.paragraph.margin!==void 0?(margins=CU3ER[t].json.description.paragraph.margin.split(","),descCSS.marginTop=parseInt(margins[0])+"px",descCSS.marginRight=parseInt(margins[1])+"px",descCSS.marginBottom=parseInt(margins[2])+"px",descCSS.marginLeft=parseInt(margins[3])+"px",descCSS.position="relative"):(descCSS.marginTop="0px",descCSS.marginRight="5px",descCSS.marginBottom="5px",descCSS.marginLeft="5px",descCSS.position="relative"),descCSS.fontFamily=CU3ER[t].json.description.paragraph.font!==void 0?'"'+decodeURI(CU3ER[t].json.description.paragraph.font)+'"':"Arial",descCSS.fontWeight="true"==CU3ER[t].json.description.paragraph.text_bold?"bold":"normal",descCSS.fontStyle="true"==CU3ER[t].json.description.paragraph.text_italic?"italic":"normal",descCSS.textAlign=CU3ER[t].json.description.paragraph.text_align!==void 0?CU3ER[t].json.description.paragraph.text_align:"left",descCSS.opacity=CU3ER[t].json.description.paragraph.tweenShow.opacity!==void 0?CU3ER[t].json.description.paragraph.tweenShow.opacity:"1",descCSS.lineHeight=CU3ER[t].json.description.paragraph.text_leading!==void 0&&CU3ER[t].json.description.paragraph.text_leading>0?parseInt(CU3ER[t].json.description.paragraph.text_size)+parseInt(CU3ER[t].json.description.paragraph.text_leading)+"px":CU3ER[t].json.description.paragraph.text_size+"px",CU3ER[t].json.description.paragraph.text_letterspacing!==void 0&&CU3ER[t].json.description.paragraph.text_letterspacing>0&&(descCSS.letterSpacing=CU3ER[t].json.description.paragraph.text_letterspacing+"px"),e.link!==void 0)var n=e.link.text!==void 0?e.link.text:e.link
if(e.link!==void 0&&"string"==typeof n){var o=e.link.target===void 0?CU3ER[t].jsonOriginal.defaults.slide.description.link.target===void 0?"_self":CU3ER[t].jsonOriginal.defaults.slide.description.link.target:e.link.target
jQuery(".CU3ERDescriptionLinkHolder",i).append('<p><a href="'+n+'" target="'+o+'">'+r(e.paragraph)+"</a></p>").find("p").css({fontSize:CU3ER[t].json.description.paragraph.text_size+"px",color:CU3ER[t].json.description.paragraph.tweenShow.tint.replace("0x","#")}).css(descCSS).find("a").css({fontSize:CU3ER[t].json.description.paragraph.text_size+"px",color:CU3ER[t].json.description.paragraph.tweenShow.tint.replace("0x","#"),"line-height":descCSS.lineHeight,"font-family":descCSS.fontFamily,opacity:descCSS.opacity})}else jQuery(".CU3ERDescriptionLinkHolder",i).append("<p>"+r(e.paragraph)+"</p>").find("p").css({fontSize:CU3ER[t].json.description.paragraph.text_size+"px",color:CU3ER[t].json.description.paragraph.tweenShow.tint.replace("0x","#")}).css(descCSS)}if(e.link!==void 0)var n=e.link.text!==void 0?e.link.text:e.link
e.link!==void 0&&"string"==typeof n&&jQuery(".CU3ERDescriptionLinkHolder",i).wrap('<a href="'+n+'" target="'+o+'" />'),jQuery(".CU3ERdescription",i).find("a").css({"text-decoration":"none"}),CU3ER[t].json.description.heading!==void 0&&jQuery(".CU3ERdescription",i).find("h2").css({opacity:CU3ER[t].json.description.heading.tweenShow.alpha,color:CU3ER[t].json.description.heading.tweenShow.tint.replace("0x","#")}).find("a").css({opacity:CU3ER[t].json.description.heading.tweenShow.alpha,color:CU3ER[t].json.description.heading.tweenShow.tint.replace("0x","#")}).bind("mouseover",function(){jQuery(this).css({"background-color":"transparent"})}),CU3ER[t].json.description.paragraph!==void 0&&jQuery(".CU3ERdescription",i).find("p").css({opacity:CU3ER[t].json.description.paragraph.tweenShow.alpha,color:CU3ER[t].json.description.paragraph.tweenShow.tint.replace("0x","#")}).find("a").css({opacity:CU3ER[t].json.description.paragraph.tweenShow.alpha,color:CU3ER[t].json.description.paragraph.tweenShow.tint.replace("0x","#")}).bind("mouseover",function(){jQuery(this).css({"background-color":"transparent"})})},destroyDescription:function(){this.id
var e=this.el
jQuery(".CU3ERDescriptionText",e).empty().parent().css("display","none")},checkCanvas:function(){var e=document.createElement("canvas"),t=e.getContext&&e.getContext("2d")
this.canvasSupported=t},supportCanvas:function(){return jQuery.browser.opera||jQuery.browser.msie?!1:this.canvasSupported},responsivelyResizeSlider:function(){var e=this.id
this.el,clearTimeout(this.delay),this.delay=setTimeout(function(){CU3ER[e].resize()},50)},delayedResize:function(e){var t=this.id
CU3ER[t].resize(e)},resize:function(e){this.id,this.el
var t=parseInt(this.options.vars.width),i=jQuery("#CU3ER100Perc").innerWidth()
if(i>=t)var e=1
else var e=i/t
var s=e*parseInt(this.options.vars.width)-parseInt(this.options.vars.width)+5,a=e*parseInt(this.options.vars.height)-parseInt(this.options.vars.height)+5
jQuery(this.stage).parent().css("overflow","hidden"),jQuery.browser.msie&&9>parseInt(jQuery.browser.version,10)?(jQuery(this.stage)[0].style.filter="progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11="+e+", M12=0, M21=0, M22="+e+")",1==e&&(jQuery(this.stage)[0].style.filter="")):jQuery(this.stage).css({"-ms-transform":"scale("+e+")",transform:"scale("+e+")","-moz-transform":"scale("+e+")","-webkit-transform":"scale("+e+")","-ms-transform-origin":"0 0","-moz-transform-origin":"0 0","-webkit-transform-origin":"0 0","transform-origin":"0 0"}),jQuery.browser.msie&&jQuery("body").css("overflow-x","hidden"),jQuery(this.stage).css({"margin-bottom":a+"px","margin-right":s+"px"})},inArray:function(e){for(var t={},i=0;e.length>i;i++)t[e[i]]=""
return t},getOrder:function(e){this.id,this.el,e.flipOrder=parseInt(e.flipOrder),e.rows=parseInt(e.rows),e.columns=parseInt(e.columns),e.flipDelay=parseFloat(e.flipDelay)
var t,s=0,a=Array(),r=Array(),n=Array()
for(i=0;e.rows>i;i++)for(j=0;e.columns>j;j++){if("false"==e.flipOrderFromCenter)switch(e.flipOrder){case 0:a[s]=j*e.flipDelay,t=j
break
case 45:a[s]=(e.rows-1-i+j)*e.flipDelay,t=e.rows-1-i+j
break
case 90:a[s]=(e.rows-1-i)*e.flipDelay,t=e.rows-1-i
break
case 135:a[s]=(e.rows-1-i+e.columns-1-j)*e.flipDelay,t=e.rows-1-i+e.columns-1-j
break
case 180:a[s]=(e.columns-1-j)*e.flipDelay,t=e.columns-1-j
break
case 225:a[s]=(e.columns-1-j+i)*e.flipDelay,t=e.columns-1-j+i
break
case 270:a[s]=i*e.flipDelay,t=i
break
case 315:a[s]=(i+j)*e.flipDelay,t=i+j}else switch(e.flipOrder){case 0:case 180:a[s]=Math.abs(Math.floor((e.columns-1)/2-j))*e.flipDelay,t=Math.abs(Math.floor((e.columns-1)/2-j))
break
case 90:case 270:a[s]=Math.abs(Math.floor((e.rows-1)/2-i))*e.flipDelay,t=Math.abs(Math.floor((e.rows-1)/2-i))
break
case 135:case 315:a[s]=Math.abs(i+j-Math.floor((e.rows+e.columns-2)/2))*e.flipDelay,t=Math.abs(i+j-Math.floor((e.rows+e.columns-2)/2))
break
case 45:case 225:a[s]=Math.abs(i+(e.columns-j)-Math.floor((e.rows+e.columns-2)/2))*e.flipDelay,t=Math.abs(i+(e.columns-j)-Math.floor((e.rows+e.columns-2)/2))}r[j+i*e.columns]=t,n[j+i*e.columns]=-1}return[n,r]},getOrderRandomized:function(e,t,s){this.id,this.el
var a,r=Array(),n=0
for(i=0;e.rows>i;i++)for(j=0;e.columns>j;j++){if(e.hasFlipRandomizeNew){if(-1==t[j+i*e.columns]){var o=Math.max(e.columns-j,j),l=Math.round(j+o*(2*Math.random()*e.flipRandomize-e.flipRandomize))
l=Math.max(0,Math.min(e.columns-1,l))
var d=Math.max(e.rows-i,i),c=Math.round(i+d*(2*Math.random()*e.flipRandomize-e.flipRandomize))
c=Math.max(0,Math.min(e.rows-1,c)),a=s[l+c*e.columns],t[l+c*e.columns]=j+i*e.columns}else a=s[t[j+i*e.columns]]
var h=Math.min(1,2*e.flipRandomize)*Math.max(0,2*e.flipDelay*Math.random()-e.flipDelay)
flipDelay=a*e.flipDelay+h}else a=s[j+i*e.columns],flipDelay=a*e.flipDelay*(1-e.flipRandomize)
r[j+i*e.columns]=1e3*flipDelay,flipDelay>n&&(n=flipDelay)}return[n,r]},getDelayOrder:function(e){this.id,this.el,e.flipOrder=parseInt(e.flipOrder),e.rows=parseInt(e.rows),e.columns=parseInt(e.columns),e.flipDelay=parseFloat(e.flipDelay)
var t=0,s=Array()
for(i=0;e.rows>i;i++)for(j=0;e.columns>j;j++)if(t=j+i*e.columns,"false"==e.flipOrderFromCenter)switch(e.flipOrder){case 0:s[t]=j
break
case 45:s[t]=e.rows-1-i+j
break
case 90:s[t]=e.rows-1-i
break
case 135:s[t]=e.rows-1-i+e.columns-1-j
break
case 180:s[t]=e.columns-1-j
break
case 225:s[t]=e.columns-1-j+i
break
case 270:s[t]=i
break
case 315:s[t]=i+j}else switch(e.flipOrder){case 0:case 180:s[t]=Math.abs(Math.floor((e.columns-1)/2-j))
break
case 90:case 270:s[t]=Math.abs(Math.floor((e.rows-1)/2-i))
break
case 135:case 315:s[t]=Math.abs(i+j-Math.floor((e.rows+e.columns-2)/2))
break
case 45:case 225:s[t]=Math.abs(i+(e.columns-j)-Math.floor((e.rows+e.columns-2)/2))}return s},pause:function(){this.id,this.el,this.isFlash?(this.registerFlash(),this.swf.pauseCU3ER()):this.paused===!0?this.inTransition||this.continueTimers():this.inTransition||this.stopTimers()},is3D:function(){return this.disable3d?!1:this.support3d},checkTouch:function(){var e=document.createElement("div"),t=document.documentElement,i=document.head||document.getElementsByTagName("head")[0],s=!1
if(e.setAttribute("ongesturestart","return;"),"function"==typeof e.ongesturestart)this.touchable=!0
else{var s,a=document.createElement("style"),r=document.createElement("div")
a.textContent="@media (touch-enabled), (-webkit-touch-enabled), (-moz-touch-enabled), (-o-touch-enabled), (-ms-touch-enabled), (-khtml-touch-enabled), (cu3er3d){#cu3ertouch{height:3px}}",i.appendChild(a),r.id="cu3ertouch",t.appendChild(r),s=3===r.offsetHeight,a.parentNode.removeChild(a),r.parentNode.removeChild(r),this.touchable="ontouchstart"in window||s}},isTouch:function(){return this.touchable},debug:function(){1==this.debugMode&&console.log(arguments)}}
jQuery.fn.borderRadius=function(e){return e===void 0&&(e="0, 0, 0, 0"),e=e.split(","),this.each(function(){jQuery(this).css({"-moz-border-radius-topleft":e[0]+"px","-moz-border-radius-topright":e[1]+"px","-moz-border-radius-bottomright":e[2]+"px","-moz-border-radius-bottomleft":e[3]+"px","-webkit-border-top-left-radius":e[0]+"px","-webkit-border-top-right-radius":e[1]+"px","-webkit-border-bottom-right-radius":e[2]+"px","-webkit-border-bottom-left-radius":e[3]+"px","border-top-left-radius":e[0]+"px","border-top-right-radius":e[1]+"px","border-bottom-right-radius":e[2]+"px","border-bottom-left-radius":e[3]+"px"})})},jQuery.shuffle=function(e){for(var t,i,s=e.length;s;t=parseInt(Math.random()*s),i=e[--s],e[s]=e[t],e[t]=i);return e}