jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutSine",swing:function(b,f,c,e,g){return jQuery.easing[jQuery.easing.def](b,f,c,e,g)},easeInSine:function(b,f,c,e,g){return-e*Math.cos(f/g*(Math.PI/2))+e+c},easeOutSine:function(b,f,c,e,g){return e*Math.sin(f/g*(Math.PI/2))+c},easeInOutSine:function(b,f,c,e,g){return-e/2*(Math.cos(Math.PI*f/g)-1)+c},easeInExpo:function(b,f,c,e,g){return f==0?c:e*Math.pow(2,10*(f/g-1))+c},easeOutExpo:function(b,f,c,e,g){return f==g?c+e:e*(-Math.pow(2,-10*f/g)+1)+c},easeInOutExpo:function(b,
f,c,e,g){return f==0?c:f==g?c+e:(f/=g/2)<1?e/2*Math.pow(2,10*(f-1))+c:e/2*(-Math.pow(2,-10*--f)+2)+c},easeInElastic:function(b,f,c,e,g){var b=1.70158,d=0,h=e;if(f==0)return c;if((f/=g)==1)return c+e;d||(d=g*0.3);h<Math.abs(e)?(h=e,b=d/4):b=d/(2*Math.PI)*Math.asin(e/h);return-(h*Math.pow(2,10*(f-=1))*Math.sin((f*g-b)*2*Math.PI/d))+c},easeOutElastic:function(b,f,c,e,g){var b=1.70158,d=0,h=e;if(f==0)return c;if((f/=g)==1)return c+e;d||(d=g*0.3);h<Math.abs(e)?(h=e,b=d/4):b=d/(2*Math.PI)*Math.asin(e/h);
return h*Math.pow(2,-10*f)*Math.sin((f*g-b)*2*Math.PI/d)+e+c},easeInOutElastic:function(b,f,c,e,g){var b=1.70158,d=0,h=e;if(f==0)return c;if((f/=g/2)==2)return c+e;d||(d=g*0.3*1.5);h<Math.abs(e)?(h=e,b=d/4):b=d/(2*Math.PI)*Math.asin(e/h);return f<1?-0.5*h*Math.pow(2,10*(f-=1))*Math.sin((f*g-b)*2*Math.PI/d)+c:h*Math.pow(2,-10*(f-=1))*Math.sin((f*g-b)*2*Math.PI/d)*0.5+e+c},easeInBounce:function(b,f,c,e,g){return e-jQuery.easing.easeOutBounce(b,g-f,0,e,g)+c},easeOutBounce:function(b,f,c,e,g){return(f/=
g)<1/2.75?e*7.5625*f*f+c:f<2/2.75?e*(7.5625*(f-=1.5/2.75)*f+0.75)+c:f<2.5/2.75?e*(7.5625*(f-=2.25/2.75)*f+0.9375)+c:e*(7.5625*(f-=2.625/2.75)*f+0.984375)+c},easeInOutBounce:function(b,f,c,e,g){return f<g/2?jQuery.easing.easeInBounce(b,f*2,0,e,g)*0.5+c:jQuery.easing.easeOutBounce(b,f*2-g,0,e,g)*0.5+e*0.5+c}});
(function(b){b.fn.swipe=function(f){if(!this)return!1;var c={fingers:1,threshold:75,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,click:null,triggerOnTouchEnd:!0,allowPageScroll:"auto"},e="left",g="right",d="up",h="down",k="none",o="horizontal",p="vertical",r="auto",n="start",m="move",s="end",t="cancel",q="start";if(f.allowPageScroll==void 0&&(f.swipe!=void 0||f.swipeStatus!=void 0))f.allowPageScroll=k;f&&b.extend(c,f);return this.each(function(){var f,u,w,
y;function x(b){q=n;z=b.touches.length;distance=0;direction=null;z==c.fingers?(w=f=b.touches[0].pageX,y=u=b.touches[0].pageY,c.swipeStatus&&B(b,q)):C(b)}function D(b){if(!(q==s||q==t)){f=b.touches[0].pageX;u=b.touches[0].pageY;direction=E();z=b.touches.length;q=m;var n=direction;if(c.allowPageScroll==k)b.preventDefault();else{var w=c.allowPageScroll==r;switch(n){case e:(c.swipeLeft&&w||!w&&c.allowPageScroll!=o)&&b.preventDefault();break;case g:(c.swipeRight&&w||!w&&c.allowPageScroll!=o)&&b.preventDefault();
break;case d:(c.swipeUp&&w||!w&&c.allowPageScroll!=p)&&b.preventDefault();break;case h:(c.swipeDown&&w||!w&&c.allowPageScroll!=p)&&b.preventDefault()}}z==c.fingers?(distance=F(),c.swipeStatus&&B(b,q,direction,distance),!c.triggerOnTouchEnd&&distance>=c.threshold&&(q=s,B(b,q),C(b))):(q=t,B(b,q),C(b))}}function G(b){b.preventDefault();distance=F();direction=E();c.triggerOnTouchEnd?(q=s,z==c.fingers&&f!=0?distance>=c.threshold||(q=t):q=t,B(b,q),C(b)):q==m&&(q=t,B(b,q),C(b))}function C(){u=f=y=w=z=0}
function B(b,f){c.swipeStatus&&c.swipeStatus.call(A,b,f,direction||null,distance||0);f==t&&c.click&&z==1&&(isNaN(distance)||distance==0)&&c.click.call(A,b,b.target);if(f==s)switch(c.swipe&&c.swipe.call(A,b,direction,distance),direction){case e:c.swipeLeft&&c.swipeLeft.call(A,b,direction,distance);break;case g:c.swipeRight&&c.swipeRight.call(A,b,direction,distance);break;case d:c.swipeUp&&c.swipeUp.call(A,b,direction,distance);break;case h:c.swipeDown&&c.swipeDown.call(A,b,direction,distance)}}function F(){return Math.round(Math.sqrt(Math.pow(f-
w,2)+Math.pow(u-y,2)))}function E(){var b;b=Math.atan2(u-y,w-f);b=Math.round(b*180/Math.PI);b<0&&(b=360-Math.abs(b));return b<=45&&b>=0?e:b<=360&&b>=315?e:b>=135&&b<=225?g:b>45&&b<135?h:d}var A=b(this),z=0;w=0;y=0;f=0;u=0;try{this.addEventListener("touchstart",x,!1),this.addEventListener("touchmove",D,!1),this.addEventListener("touchend",G,!1),this.addEventListener("touchcancel",C,!1)}catch(H){}})}})(jQuery);
jQuery.browser.msie||eval(function(b,f,c,e,g,d){g=function(b){return(b<f?"":g(parseInt(b/f)))+((b%=f)>35?String.fromCharCode(b+29):b.toString(36))};if(!"".replace(/^/,String)){for(;c--;)d[g(c)]=e[c]||g(c);e=[function(b){return d[b]}];g=function(){return"\\w+"};c=1}for(;c--;)e[c]&&(b=b.replace(RegExp("\\b"+g(c)+"\\b","g"),e[c]));return b}("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(b,f,c,e,g,d){g=function(b){return(b<f?"":g(parseInt(b/f)))+((b%=f)>35?String.fromCharCode(b+29):b.toString(36))};if(!"".replace(/^/,String)){for(;c--;)d[g(c)]=e[c]||g(c);e=[function(b){return d[b]}];g=function(){return"\\w+"};c=1}for(;c--;)e[c]&&(b=b.replace(RegExp("\\b"+g(c)+"\\b","g"),e[c]));return b}(";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:[],randomise:"false",a:0,totalInd:3,images:null,autoplay:!1,loop:0,doCheck:!0,mOver:!1,currentLoop:1,debugMode:!1,canvasSupported:!1,paused:!1,pauseType:0,inTransition:!0,directionReverse:!1,keyboardControlls:!0,rollOverPause:!1,support3d:!1,disable3d:!1,touchable:!1,displayVersion:null,
pauseStartTimer:null,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".split(","),simple_devices:"Android 2.1,Android 1.6,Android 1.5,Apple-iPhone1C2,Apple-iPhone/50, Apple-iPhone/701, Apple-iPhone/703".split(","),nextFlag:!0,force_simple:!1,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(b){var f=this.id;this.check3D();var c=jQuery("script"),e=RegExp(/jquery\.cu3er\.js/ig),g=null;c.each(function(){e.test(jQuery(this).attr("src"))&&(g=jQuery(this))});var c=typeof b.vars.css_location!=
"undefined"&&b.vars.css_location!=""?b.vars.css_location:g.attr("src").replace(/js\/jquery\.cu3er\.js/,"")+"css/CU3ER.css",d=document.createElement("link");d.setAttribute("rel","stylesheet");d.setAttribute("type","text/css");d.setAttribute("href",c);document.getElementsByTagName("head")[0].appendChild(d);if(typeof b.vars.js_font_links!="undefined")for(i in b.vars.js_font_links)d=document.createElement("link"),d.setAttribute("rel","stylesheet"),d.setAttribute("type","text/css"),d.setAttribute("href",
b.vars.js_font_links[i]),document.getElementsByTagName("head")[0].appendChild(d);jQuery.browser.msie&&(c=typeof b.vars.css_location!="undefined"&&b.vars.css_location!=""?b.vars.css_location.replace(/\.css/,"ieFix.css"):g.attr("src").replace(/js\/jquery\.cu3er\.js/,"")+"css/CU3ERieFix.css",d=document.createElement("link"),d.setAttribute("rel","stylesheet"),d.setAttribute("type","text/css"),d.setAttribute("href",c),document.getElementsByTagName("head")[0].appendChild(d));this.debugMode=typeof b.vars.debug!=
"undefined"?b.vars.debug:!1;this.stage="#"+f;this.slides=this.stage+" .CU3ERslides";this.disable3d=typeof b.vars.js_disable_3d!="undefined"&&b.vars.js_disable_3d==!0?!0:!1;this.checkTouch();this.keyboardControlls=typeof b.vars.keyboard_controlls!="undefined"&&b.vars.keyboard_controlls==!1?!1:!0;this.checkCanvas();jQuery(this.stage).css("margin","0 auto").empty().append('<div class="CU3ERlayer"></div><div class="CU3ERslides"><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"});if(typeof b.vars.force_2d_devices=="object")this.devices_2d=jQuery.extend(!0,{},this.devices_2d,b.vars.force_2d_devices);for(i in this.devices_2d)if(navigator.userAgent.toLowerCase().indexOf(String(this.devices_2d[i]).toLowerCase())!=-1)CU3ER[f].level=1,this.support3d=!1;if(typeof b.vars.force_simple_devices=="object")this.simple_devices=jQuery.extend(!0,{},this.simple_devices,
b.vars.force_simple_devices);for(i in this.simple_devices)if(navigator.userAgent.toLowerCase().indexOf(String(this.simple_devices[i]).toLowerCase())!=-1)CU3ER[f].level=0,this.support3d=!1,this.force_simple=!0;if(typeof b.vars.force_2d!="undefined"&&b.vars.force_2d==!0)CU3ER[f].level=1,this.support3d=!1;if(typeof b.vars.force_simple!="undefined"&&b.vars.force_simple==!0)CU3ER[f].level=0,this.support3d=!1,this.force_simple=!0;if(typeof b.vars.xml_location!="undefined"&&b.vars.xml_location!="")jQuery.get(b.vars.xml_location,
function(c){setTimeout(function(){CU3ER[f].initPlayer(c,b)},75)});else{var h=this.decodeXML(b.vars.xml_encoded),h=h.replace(RegExp(/\+/g)," ");setTimeout(function(){CU3ER[f].initPlayer(h,b)},75)}},decodeXML:function(b){arr=b.split("%3C%21%5BCDATA%5B");arrFinal=[];arrFinal.push(decodeURIComponent(arr[0]));for(var b=function(b){arrPerc=b.split("%25");for(b=0;b<arrPerc.length;b++)arrPerc[b]=decodeURIComponent(arrPerc[b]);return arrPerc.join("%")},f=1;f<arr.length;f++)arr2=arr[f].split("%5D%5D%3E"),arrFinal.push(b(arr2[0])+
"]]\>"+decodeURIComponent(arr2[1]));return strFinal=arrFinal.join("<![CDATA[")},initPlayer:function(b,f){var c=this.id;CU3ER[c].xml=b;json=jQuery.xml2json(b);json2=jQuery.xml2json(b,!0);json.settings.width=typeof f.vars.width!="undefined"?f.vars.width:json.project_settings.width;json.settings.height=typeof f.vars.height!="undefined"?f.vars.height:json.project_settings.height;if(typeof f.vars.folder_images!="undefined")json.settings.folder_images=f.vars.folder_images;CU3ER[c].json=json;CU3ER[c].json.custom=
typeof f.custom!="undefined"?f.custom:{};json.slides.transition=null;json.slides.transition=json2.slides[0].transition;if(typeof json.fonts_html!="undefined")json.fonts_html=json2.fonts_html[0];switch(this.level){case 2:CU3ER[c].displayVersion=CU3ER[c].support3d?"JS-3D":CU3ER[c].isCameraFlat()?"JS-Slicing":"JS-Simple";break;case 1:CU3ER[c].displayVersion=CU3ER[c].isCameraFlat()?"JS-Slicing":"JS-Simple";break;case 0:CU3ER[c].displayVersion="JS-Simple"}this.onSliderInit();if(typeof f.vars.xml_encoded!=
"undefined"&&f.vars.xml_encoded!=""&&typeof f.vars.xml_location!="undefined"&&f.vars.xml_location!=""){var e=this.decodeXML(f.vars.xml_encoded),e=e.replace(RegExp(/\+/g)," "),g=jQuery.xml2json(e,!0),e=jQuery.xml2json(e);if(typeof e.licence!="undefined")CU3ER[c].licenseStr=e.licence;if(typeof e.settings!="undefined"){if(typeof e.settings.folder_images!="undefined")json.settings.folder_images=e.settings.folder_images;if(typeof e.settings.background!="undefined")json.settings.background=e.settings.background;
if(typeof e.settings.auto_play!="undefined")json.settings.auto_play=e.settings.auto_play;if(typeof e.settings.start_slide!="undefined")json.settings.start_slide=e.settings.start_slide;if(typeof e.settings.randomize_slides!="undefined")json.settings.randomize_slides=e.settings.randomize_slides;if(typeof e.settings.loop!="undefined")json.settings.loop=e.settings.loop;if(typeof e.settings.branding!="undefined")json.settings.branding=e.settings.branding;if(typeof e.settings.camera!="undefined")json.settings.camera=
e.settings.camera;if(typeof e.settings.shadow!="undefined")json.settings.shadow=e.settings.shadow}if(typeof e.slides!="undefined"){if(typeof e.slides.slide!="undefined")json.slides.slide=e.slides.slide;if(typeof g.slides[0].transition!="undefined")json.slides.transition=g.slides[0].transition}if(typeof e.defaults!="undefined"){if(typeof e.defaults.slide!="undefined")json.defaults.slide=e.defaults.slide;if(typeof g.defaults.transition!="undefined")json.defaults.transition=g.defaults.transition}if(typeof g.preloader!=
"undefined"){if(typeof e.preloader.image!="undefined")json.preloader.image=e.preloader.image;if(typeof e.preloader.background!="undefined")json.preloader.background=e.preloader.background;if(typeof e.preloader.loader!="undefined")json.preloader.loader=e.preloader.loader}if(typeof g.controls!="undefined"){if(typeof e.controls.next_button!="undefined")json.controls.next_button=e.controls.next_button;if(typeof e.controls.prev_button!="undefined")json.controls.prev_button=e.controls.prev_button;if(typeof e.controls.auto_play_indicator!=
"undefined")json.controls.auto_play_indicator=e.controls.auto_play_indicator}if(typeof e.description!="undefined")json.description=e.description;if(typeof g.thumbnails!="undefined")json.thumbnails=g.thumbnails}json2=null;CU3ER[c].imgFallbackFolder=typeof f.vars.folder_images_fallback!="undefined"?f.vars.folder_images_fallback:json.settings.folder_images;CU3ER[c].jsonOriginal=jQuery.extend(!0,{},json);CU3ER[c].randomise=json.settings.randomize_slides;CU3ER[c].autoplay=typeof json.settings.auto_play!=
"undefined"?json.settings.auto_play:CU3ER[c].autoplay;CU3ER[c].loop=typeof json.settings.loop!="undefined"?json.settings.loop:CU3ER[c].loop;CU3ER[c].current=typeof json.settings.start_slide!="undefined"?parseInt(json.settings.start_slide)-1:CU3ER[c].current;CU3ER[c].current=typeof f.vars.start_slide!="undefined"?parseInt(f.vars.start_slide)-1:CU3ER[c].current;CU3ER[c].nextSlide=CU3ER[c].current;if((f.vars.pause_on_rollover==!0||typeof json.settings.pause_on_rollover!="undefined"&&json.settings.pause_on_rollover==
"true")&&!CU3ER[c].isTouch())CU3ER[c].rollOverPause=!0;CU3ER[c].isTouch()&&jQuery(CU3ER[c].stage).swipe({swipeLeft:function(){if(!CU3ER[c].inTransition)CU3ER[c].inTransition=!0,CU3ER[c].doCheck=!1,setTimeout(function(){CU3ER[c].next()},50)},swipeRight:function(){if(!CU3ER[c].inTransition)CU3ER[c].inTransition=!0,CU3ER[c].doCheck=!1,setTimeout(function(){CU3ER[c].prev()},50)},threshold:50});if(typeof json.controls.prev_button!="undefined")typeof json.controls.prev_button.symbol!="undefined"&&CU3ER[c].totalInd++,
json.controls.prev_button.type="prev",json.controls.prev_button.type1="Prev",CU3ER[c].drawButtons(json.controls.prev_button,json.slides.width,json.slides.height,json.settings.width,json.settings.height);if(typeof json.controls.next_button!="undefined")typeof json.controls.next_button.symbol!="undefined"&&CU3ER[c].totalInd++,json.controls.next_button.type="next",json.controls.next_button.type1="Next",CU3ER[c].drawButtons(json.controls.next_button,json.slides.width,json.slides.height,json.settings.width,
json.settings.height);if(typeof json.fonts_html!="undefined")if(typeof json.fonts_html.url.length!="undefined")for(i in json.fonts_html.url)g=document.createElement("link"),g.setAttribute("rel","stylesheet"),g.setAttribute("type","text/css"),g.setAttribute("href",json.fonts_html.url[i].text),document.getElementsByTagName("head")[0].appendChild(g);else g=document.createElement("link"),g.setAttribute("rel","stylesheet"),g.setAttribute("type","text/css"),g.setAttribute("href",json.fonts_html.url.text),
document.getElementsByTagName("head")[0].appendChild(g);CU3ER[c].currSlideNo=CU3ER[c].current+1;jQuery(CU3ER[c].stage).css({width:parseInt(json.settings.width)+"px",height:parseInt(json.settings.height)+"px",position:"relative",overflow:"hidden",outline:"none","font-size":0});jQuery(CU3ER[c].slides).css({width:Math.round(parseFloat(json.slides.width))+"px",height:Math.round(parseFloat(json.slides.height))+"px",outline:"none"});CU3ER[c].drawProgressBar(typeof CU3ER[c].json.preloader.image!="undefined"?
{type:"sliderLoad",width:CU3ER[c].json.preloader.image.width,height:CU3ER[c].json.preloader.image.height,loaderTweenShowTint:CU3ER[c].json.preloader.loader.tweenShow.tint,loaderTreenOverTint:CU3ER[c].json.preloader.loader.tweenOver.tint,loaderTweenShowAlpha:CU3ER[c].json.preloader.image.alpha_loader,loaderTweenOverAlpha:CU3ER[c].json.preloader.image.alpha_loader,bgTweenShowAlpha:CU3ER[c].json.preloader.image.alpha_bg,bgTweenOverAlpha:CU3ER[c].json.preloader.image.alpha_bg,bgTweenShowTint:CU3ER[c].json.preloader.background.tweenShow.tint,
bgTweenOverTint:CU3ER[c].json.preloader.background.tweenOver.tint,image:CU3ER[c].imgFallbackFolder+"/fallback/preloader_image.png",posX:CU3ER[c].json.preloader.image.x,posY:CU3ER[c].json.preloader.image.y,align_pos:CU3ER[c].json.preloader.image.align_pos,align_to:CU3ER[c].json.preloader.image.align_to,padding:0,shape:CU3ER[c].json.preloader.type,radius:typeof CU3ER[c].json.preloader.radius!="undefined"?CU3ER[c].json.preloader.radius:null}:{type:"sliderLoad",width:typeof CU3ER[c].json.preloader.width!=
"undefined"?CU3ER[c].json.preloader.width:null,height:typeof CU3ER[c].json.preloader.height!="undefined"?CU3ER[c].json.preloader.height:null,loaderTweenShowTint:CU3ER[c].json.preloader.loader.tweenShow.tint,loaderTreenOverTint:CU3ER[c].json.preloader.loader.tweenOver.tint,loaderTweenShowAlpha:CU3ER[c].json.preloader.loader.tweenShow.alpha,loaderTweenOverAlpha:CU3ER[c].json.preloader.loader.tweenOver.alpha,bgTweenShowAlpha:CU3ER[c].json.preloader.background.tweenShow.alpha,bgTweenOverAlpha:CU3ER[c].json.preloader.background.tweenOver.alpha,
bgTweenShowTint:CU3ER[c].json.preloader.background.tweenShow.tint,bgTweenOverTint:CU3ER[c].json.preloader.background.tweenOver.tint,image:typeof CU3ER[c].json.preloader.image!="undefined"?CU3ER[c].imgFallbackFolder+"/fallback/preloader_image.png":null,posX:CU3ER[c].json.preloader.x,posY:CU3ER[c].json.preloader.y,align_pos:CU3ER[c].json.preloader.align_pos,align_to:CU3ER[c].json.preloader.align_to=="stage"?"stage":"slides",padding:CU3ER[c].json.preloader.background.padding,shape:CU3ER[c].json.preloader.type,
radius:typeof CU3ER[c].json.preloader.radius!="undefined"?CU3ER[c].json.preloader.radius:null});CU3ER[c].updateIndicator(++CU3ER[c].a,CU3ER[c].totalInd,CU3ER[c].stage+" .CU3ERindicator",!0);if(f.vars.pause_on_rollover==!0||typeof json.settings.pause_onrollover!="undefined"&&json.settings.pause_on_rollover=="true")CU3ER[c].rollOverPause=!0;CU3ER[c].debug("xml loaded");CU3ER[c].is3D()?typeof json.settings.background.image!="undefined"&&json.settings.background.image.use_image=="true"?(json.settings.background.color.transparent==
"false"&&jQuery(CU3ER[c].stage).css("backgroundColor",json.settings.background.color.text.replace("0x","#")),jQuery(CU3ER[c].stage).prepend('<div class="CU3ERbackground"></div>'),CU3ER[c].drawBackground(json.settings.background)):(CU3ER[c].updateIndicator(++CU3ER[c].a,CU3ER[c].totalInd,CU3ER[c].stage+" .CU3ERindicator",!0),typeof json.settings.background.color.transparent!="undefined"&&json.settings.background.color.transparent=="true"?jQuery(CU3ER[c].stage).css("backgroundColor","transparent"):jQuery(CU3ER[c].stage).css("backgroundColor",
json.settings.background.color.text.replace("0x","#")),CU3ER[c].debug("background loaded")):(jQuery(CU3ER[c].stage).prepend('<div class="CU3ERbackground"></div>'),CU3ER[c].drawBackground(json.settings.background));CU3ER[c].drawSlides(json.slides,json.defaults,json.settings,json.thumbnails,f);typeof json.description!="undefined"&&CU3ER[c].drawDescription(json.description)},drawBackground:function(b){var f=this.id,c=this.el;if(CU3ER[f].is3D()){var e=/https?:\/\/([-\w\.]+)+(:\d+)?(\/([\w/_\.]*(\?\S+)?)?)?/.test(CU3ER[f].json.settings.background.image.url)?
CU3ER[f].json.settings.background.image.url:CU3ER[f].json.settings.folder_images+"/"+CU3ER[f].json.settings.background.image.url,g=new Image;jQuery(g).attr("src",e).bind("load",function(){CU3ER[f].updateIndicator(++CU3ER[f].a,CU3ER[f].totalInd,CU3ER[f].stage+" .CU3ERindicator",!0);var d=[];d[0]=typeof b.image.scaleX!="undefined"?parseFloat(b.image.scaleX):1;d[1]=typeof b.image.scaleY!="undefined"?parseFloat(b.image.scaleY):1;var h=g.width*d[0],k=g.height*d[1];cssBgd=CU3ER[f].calculatePosition({align_pos:typeof b.image.align_pos!=
"undefined"?b.image.align_pos:"TL",x:typeof b.image.x!="undefined"?b.image.x:0,y:typeof b.image.y!="undefined"?b.image.y:0,width:h,height:k,fullWidth:CU3ER[f].json.settings.width,fullHeight:CU3ER[f].json.settings.height});cssBgdFixed={width:h+"px",height:k+"px",position:"absolute",backgroundColor:typeof b.color.transparent!="undefined"&&b.color.transparent=="true"?"transparent":b.color.text.replace("0x","#"),zIndex:"-1",display:"none"};cssBgd=jQuery.extend(cssBgdFixed,cssBgd);jQuery(".CU3ERbackground",
c).css(cssBgd).append('<img src="'+e+'" />').find("img").css({WebkitTransform:"scaleX("+d[0]+") scaleY("+d[1]+")","WebkitTransform-origin":"top left"});CU3ER[f].debug("background loaded")}).error(function(){CU3ER[f].transition==null&&(CU3ER[f].updateIndicator(++CU3ER[f].a,CU3ER[f].totalInd,CU3ER[f].stage+" .CU3ERindicator",!0),CU3ER[f].debug("ERROR: background not exist"))})}else e=CU3ER[f].imgFallbackFolder+"/fallback/bg.png",g=new Image,jQuery(g).attr("src",e).bind("load",function(){CU3ER[f].updateIndicator(++CU3ER[f].a,
CU3ER[f].totalInd,CU3ER[f].stage+" .CU3ERindicator",!0);cssBgd=CU3ER[f].calculatePosition({align_pos:"TL",x:0,y:0,width:g.width,height:g.height,fullWidth:CU3ER[f].json.settings.width,fullHeight:CU3ER[f].json.settings.height});cssBgdFixed={width:g.width+"px",height:g.height+"px",position:"absolute",background:'url("'+e+'") top left no-repeat',zIndex:"-1",display:"none"};cssBgd=jQuery.extend(cssBgdFixed,cssBgd);jQuery(".CU3ERbackground",c).css(cssBgd);CU3ER[f].debug("background loaded")}).error(function(){CU3ER[f].transition==
null&&(CU3ER[f].updateIndicator(++CU3ER[f].a,CU3ER[f].totalInd,CU3ER[f].stage+" .CU3ERindicator",!0),CU3ER[f].debug("ERROR: background not exist"))})},drawSlides:function(b,f,c,e,g){var d=this.id,h=this.el,k=!1;if(typeof b.slide.length=="undefined"){var o=b.slide;b.slide=[];b.slide[0]=o}var p={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:0.75},tweenOver:{tint:"#ffffff",alpha:1},tweenSelected:{tint:"#fffff0",alpha:0.75}}},o={flipDepth:"300"},r={time:5,color:"0x000000",transparent:"false",image:{align_pos:"TL",x:0,y:0,scaleX:1,scaleY:1}};if(CU3ER[d].is3D()){slides1=jQuery.extend(!0,{},f,b);this.originalJSONelements=b=jQuery.extend(f,b);for(i in CU3ER[d].json.slides.slide)if(typeof i=="number"||!isNaN(i))CU3ER[d].json.slides.slide[i].originalPosition=i;if(CU3ER[d].randomise==
"true")CU3ER[d].json.slides.slide=jQuery.shuffle(CU3ER[d].json.slides.slide);if(typeof g!="undefined"&&g.vars.reverse==!0||b.reverse=="true")CU3ER[d].json.slides.slide=CU3ER[d].json.slides.slide.reverse(),CU3ER[d].json.slides.transition=CU3ER[d].json.slides.transition.reverse();for(i in CU3ER[d].json.slides.slide)if(typeof i=="number"||!isNaN(i))CU3ER[d].slidesOrder[i]=parseInt(CU3ER[d].json.slides.slide[i].originalPosition)+1;typeof e!="undefined"&&(e=jQuery.extend(p,e));typeof e!="undefined"&&(g=
e.align_to=="stage"?this.stage:this.slides,jQuery(g).append('<div class="CU3ERthumbs"><div class="CU3ERThumbsScroll"><div class="CU3ERthumbsBG"></div><div class="CU3ERthumbs-holder"></div></div></div>'));if(typeof CU3ER[d].json.settings.camera=="undefined")CU3ER[d].json.settings=jQuery.extend({camera:{x:0,y:0,z:0,angleX:0,angleY:0,angleZ:0,lend:8}},CU3ER[d].json.settings);var f=typeof CU3ER[d].json.custom.x!="undefined"?CU3ER[d].json.custom.x:CU3ER[d].json.settings.camera.x,g=typeof CU3ER[d].json.custom.y!=
"undefined"?CU3ER[d].json.custom.y:-parseFloat(CU3ER[d].json.settings.camera.y),p=typeof CU3ER[d].json.custom.z!="undefined"?CU3ER[d].json.custom.z:CU3ER[d].json.settings.camera.z,n=typeof CU3ER[d].json.custom.angleX!="undefined"?CU3ER[d].json.custom.angleX:CU3ER[d].json.settings.camera.angleX,m=typeof CU3ER[d].json.custom.angleY!="undefined"?CU3ER[d].json.custom.angleY:parseFloat(CU3ER[d].json.settings.camera.angleY),s=typeof CU3ER[d].json.custom.angleZ!="undefined"?CU3ER[d].json.custom.angleZ:CU3ER[d].json.settings.camera.angleZ,
t=typeof CU3ER[d].json.custom.lens!="undefined"?CU3ER[d].json.custom.lens:parseInt(CU3ER[d].json.settings.camera.lens)*100,f=typeof f=="undefined"||isNaN(f)?0:f,g=typeof g=="undefined"||isNaN(g)?0:g,p=typeof p=="undefined"||isNaN(p)?0:p,n=typeof n=="undefined"||isNaN(n)?0:n,m=typeof m=="undefined"||isNaN(m)?0:m,s=typeof s=="undefined"||isNaN(s)?0:s,t=typeof t=="undefined"||isNaN(t)?800:t,q,v,u,w;q=Math.PI/180;v=-n;u=m;w=s;var y;v=$M([[1,0,0,0],[0,Math.cos(v*q),Math.sin(-v*q),0],[0,Math.sin(v*q),Math.cos(v*
q),0],[0,0,0,1]]);u=$M([[Math.cos(u*q),0,Math.sin(u*q),0],[0,1,0,0],[Math.sin(-u*q),0,Math.cos(u*q),0],[0,0,0,1]]);q=$M([[Math.cos(w*q),Math.sin(-w*q),0,0],[Math.sin(w*q),Math.cos(w*q),0,0],[0,0,1,0],[0,0,0,1]]);w=1;w=$M([[w,0,0,0],[0,w,0,0],[0,0,w,0],[0,0,0,1]]);y=$M([[1,0,0,0],[0,1,0,0],[0,0,1,0],[f,g,p,1]]);v=v.x(u).x(q).x(w).x(y);w="matrix3d(";w+=v.e(1,1).toFixed(10)+","+v.e(1,2).toFixed(10)+","+v.e(1,3)+","+v.e(1,4).toFixed(10)+",";w+=v.e(2,1).toFixed(10)+","+v.e(2,2).toFixed(10)+","+v.e(2,3)+
","+v.e(2,4).toFixed(10)+",";w+=v.e(3,1).toFixed(10)+","+v.e(3,2).toFixed(10)+","+v.e(3,3)+","+v.e(3,4).toFixed(10)+",";w+=v.e(4,1).toFixed(10)+","+v.e(4,2).toFixed(10)+","+v.e(4,3)+","+v.e(4,4).toFixed(10);w+=")";f="@-webkit-keyframes translateHolder { from { -webkit-transform: translateX("+f+"px) translateY("+g+"px) translateZ("+p+"px) rotate3d("+n+", "+m+", "+s+", "+m+"deg); } 50% {-webkit-transform: translateX("+f+"px) translateY("+g+"px) translateZ(-250px) rotate3d("+n+", "+m+", "+s+", "+m+"deg); } to {-webkit-transform: translateX("+
f+"px) translateY("+g+"px) translateZ("+p+"px) rotate3d("+n+", "+m+", "+s+", 0deg);} }";try{var x=document.styleSheets[document.styleSheets.length-1];x.insertRule(f,x.cssRules.length)}catch(D){x=""}jQuery(".CU3ERslides",h).css("-webkit-perspective",t+"px").find(".CU3ERslides-holder").css("-webkit-transform",w).parent().css("-webkit-perspective-origin","50% 50%").find(".CU3ERtransition-holder").css("-webkit-transform",w);for(i in b.slide)if(typeof i=="number"||!isNaN(i)){typeof CU3ER[d].jsonOriginal.slides.slide.length==
"undefined"?(t=jQuery.extend(!0,{},r,CU3ER[d].jsonOriginal.defaults.slide,CU3ER[d].jsonOriginal.slides.slide),g=jQuery.extend(!0,{},o,CU3ER[d].jsonOriginal.defaults.transition,CU3ER[d].jsonOriginal.slides.transition)):(t=jQuery.extend(!0,{},r,CU3ER[d].jsonOriginal.defaults.slide,CU3ER[d].jsonOriginal.slides.slide[i]),g=jQuery.extend(!0,{},o,CU3ER[d].jsonOriginal.defaults.transition,CU3ER[d].jsonOriginal.slides.transition[i]));f="@-webkit-keyframes translateSliceHolder"+i+" { 0% { -webkit-transform: translateZ(0px); } 50% { -webkit-transform: translateZ("+
-parseInt(g.flipDepth)+"px); } 100% { -webkit-transform: translateZ(0px); } }";try{x.insertRule(f,x.cssRules.length)}catch(G){}q=/https?:\/\/([-\w\.]+)+(:\d+)?(\/([\w/_\.]*(\?\S+)?)?)?/;q=q.test(b.slide[i].url)?b.slide[i].url:c.folder_images+"/"+b.slide[i].url;p=parseFloat(t.image.scaleX);n=parseFloat(t.image.scaleY);m="";typeof b.slide[i].color!="undefined"?m=' style="background-color:'+b.slide[i].color.replace("0x","#")+';"':typeof slides1.slide.color!="undefined"&&(m=' style="background-color:'+
slides1.slide.color.replace("0x","#")+';"');b.slide[i].transparent=="true"?m=' style="background-color: transparent;"':slides1.slide.transparent=="true"&&(m=' style="background-color: transparent;"');s=typeof b.slide[i].link!="undefined"&&typeof b.slide[i].link.text!="undefined"?b.slide[i].link.text:typeof CU3ER[d].jsonOriginal.defaults.slide.link!="undefined"&&typeof CU3ER[d].jsonOriginal.defaults.slide.link.text!="undefined"?CU3ER[d].jsonOriginal.defaults.slide.link.text:"#";v=typeof b.slide[i].link!=
"undefined"&&typeof b.slide[i].link.target!="undefined"&&s!="#"?' target="'+b.slide[i].link.target+'"':typeof CU3ER[d].jsonOriginal.defaults.slide.link!="undefined"&&typeof CU3ER[d].jsonOriginal.defaults.slide.link.target!="undefined"&&s!="#"?' target="'+CU3ER[d].jsonOriginal.defaults.slide.link.target+'"':"";u=s!="#"?' style="width:'+b.width+"px;height:"+b.height+'px;display:block;"':' style="cursor:default !important;"';typeof b.slide[i].use_image!="undefined"&&b.slide[i].use_image=="false"?jQuery(".CU3ERslides-holder",
h).append('<div id="CU3ERSlide_'+i+'" class="CU3ERslide"'+m+'><div class="CU3ERslideImage"'+m+'><a href="'+s+'"'+v+u+"><img /></a></div></div>"):jQuery(".CU3ERslides-holder",h).append('<div id="CU3ERSlide_'+i+'" class="CU3ERslide notLoaded"'+m+'><div class="CU3ERslideImage"'+m+'><a href="'+s+'"'+v+u+'><img src="'+q+'" rel="'+p+":"+n+":"+t.image.x+":"+t.image.y+":"+t.image.align_pos+'" /></a></div></div>').find("#CU3ERSlide_"+i+" img").bind("load",function(){var c=this.width,e=this.height,f=jQuery(this)[0],
g=jQuery(f).attr("rel").split(":");jQuery("<img/>").attr("src",jQuery(f).attr("src")).load(function(){if(c==this.width)var h=c*parseFloat(g[0]);else g[0]=Math.round(this.width*g[0]/c*Math.pow(10,2))/Math.pow(10,2),h=c*parseFloat(g[0]);if(e==this.height)var m=e*parseFloat(g[1]);else g[1]=Math.round(this.height*g[1]/e*Math.pow(10,2))/Math.pow(10,2),m=e*parseFloat(g[1]);optionsImage={align_pos:g[4],x:g[2],y:g[3],fullWidth:b.width,fullHeight:b.height,width:h,height:m};g[5]=this.width;g[6]=this.height;
h=CU3ER[d].calculatePosition(optionsImage);h.position="relative";m=g.join(":");jQuery(f).css({WebkitTransform:"scaleX("+g[0]+") scaleY("+g[1]+")","WebkitTransform-origin":"top left"}).css(h).attr("rel",m).parent().parent().parent().removeClass("notLoaded").trigger("classChanged");jQuery(f).parent().parent().parent().attr("id").split("_")[1]==CU3ER[d].no&&(k=!0,CU3ER[d].updateIndicator(++CU3ER[d].a,CU3ER[d].totalInd,CU3ER[d].stage+" .CU3ERindicator",!0),CU3ER[d].debug("first slide loaded"))})});p=
{};if(typeof e!="undefined"){n="";if(typeof e.thumb!="undefined"&&typeof e.thumb.title!="undefined"&&(typeof e.thumb.title.use_numbering!="undefined"&&e.thumb.title.use_numbering=="true"&&(n+=parseInt(i)+1+e.thumb.title.use_numbering_separator+" "),typeof e.thumb.title.use_heading!="undefined"&&e.thumb.title.use_heading=="true"&&typeof b.slide[i].description!="undefined"&&(n+=typeof b.slide[i].description.heading!="undefined"?b.slide[i].description.heading+" ":""),typeof e.thumb.title.use_caption!=
"undefined"&&e.thumb.title.use_caption=="true"&&typeof b.slide[i].caption!="undefined"&&(n+=typeof b.slide[i].caption!="undefined"?b.slide[i].caption+" ":""),n!="")){n='<div class="CU3ERtitle">'+n+"</div>";p.position="absolute";p.left=parseInt(e.thumb.title.x)+"px";p.top=parseInt(e.thumb.title.y)+"px";p.width=e.thumb.title.width+"px";p.height=e.thumb.title.height+"px";p.opacity=e.thumb.title.tweenShow.alpha;p.color=e.thumb.title.tweenShow.tint.replace("0x","#");p.fontSize=e.thumb.title.text_size+
"px";p.fontFamily='"'+e.thumb.title.font+'"';p.fontWeight=e.thumb.title.text_bold=="true"?"bold":"normal";p.fontStyle=e.thumb.title.text_italic=="true"?"italic":"normal";p.textAlign=e.thumb.title.text_align;n.textDecoration="none";p.overflow="hidden";if(typeof e.thumb.title.text_leading!="undefined"&&e.thumb.title.text_leading>0)p.lineHeight=e.thumb.title.text_leading+"px";if(typeof e.thumb.title.text_letterspacing!="undefined"&&e.thumb.title.text_letterspacing>0)p.letterSpacing=e.thumb.title.text_letterspacing+
"px"}typeof e.thumb!="undefined"&&typeof e.thumb.image!="undefined"?(g=CU3ER[d].imgFallbackFolder+"/fallback/thumb_slide"+(parseInt(b.slide[i].originalPosition)+1)+".png",jQuery(".CU3ERthumbs-holder",h).append('<div class="CU3ERThumb"><div class="CU3ERThumbBG"></div><a href="#" title=""><div width="'+e.thumb.width+'" height="'+e.thumb.height+'" style="background: url(\''+g+'\') no-repeat top left;"><img src="'+g+'" /></div>'+n+"</a></div>")):jQuery(".CU3ERthumbs-holder",h).append('<div class="CU3ERThumb"><div class="CU3ERThumbBG"></div><a href="#" title="">'+
n+"</a></div>");jQuery(".CU3ERtitle",h).css(p).hover(function(){jQuery(this).css({color:e.thumb.title.tweenOver.tint.replace("0x","#")})},function(){jQuery(this).css({color:e.thumb.title.tweenShow.tint.replace("0x","#")})})}}this.slidesTotal=b.slide.length;typeof e!="undefined"&&this.drawThumbnails(e);images=jQuery(".CU3ERslides-holder div.CU3ERslide img",h);optionsSlides={align_pos:b.align_pos,x:b.x,y:b.y,width:b.width,height:b.height,fullWidth:jQuery(CU3ER[d].stage).width(),fullHeight:jQuery(CU3ER[d].stage).height()};
cssSlides=this.calculatePosition(optionsSlides);jQuery(CU3ER[d].slides).css(cssSlides).css("z-index",415).find(".CU3ERtransition-holder").css({width:b.width+"px",height:b.height+"px",position:"absolute",top:0,left:0}).parent().find(".CU3ERslides-holder").css({width:b.width+"px",height:b.height+"px",position:"absolute",top:0,left:0}).find(".CU3ERslide").css({width:b.width+"px",height:b.height+"px",display:"block",overflow:"hidden"}).find(".CU3ERSlideImage").css({width:b.width+"px",height:b.height+
"px",overflow:"hidden"})}else{this.originalJSONelements=b=jQuery.extend(f,b);for(i in CU3ER[d].json.slides.slide)CU3ER[d].json.slides.slide[i].originalPosition=i;if(CU3ER[d].randomise=="true")CU3ER[d].json.slides.slide=jQuery.shuffle(CU3ER[d].json.slides.slide);if(typeof g!="undefined"&&g.vars.reverse==!0||b.reverse=="true")CU3ER[d].json.slides.slide=CU3ER[d].json.slides.slide.reverse(),CU3ER[d].json.slides.transition=CU3ER[d].json.slides.transition.reverse();for(i in CU3ER[d].json.slides.slide)CU3ER[d].slidesOrder[i]=
parseInt(CU3ER[d].json.slides.slide[i].originalPosition)+1;typeof e!="undefined"&&(e=jQuery.extend(p,e));typeof e!="undefined"&&(g=e.align_to=="stage"?this.stage:this.slides,jQuery(g).append('<div class="CU3ERthumbs"><div class="CU3ERThumbsScroll"><div class="CU3ERthumbsBG"></div><div class="CU3ERthumbs-holder"></div></div></div>'));for(i in b.slide)if(typeof i=="number"||!isNaN(i))if(CU3ER[d].isCameraFlat()?(typeof CU3ER[d].jsonOriginal.slides.slide.length=="undefined"?(t=jQuery.extend(!0,{},r,CU3ER[d].jsonOriginal.defaults.slide,
CU3ER[d].jsonOriginal.slides.slide),g=jQuery.extend(!0,{},o,CU3ER[d].jsonOriginal.defaults.transition,CU3ER[d].jsonOriginal.slides.transition)):(t=jQuery.extend(!0,{},r,CU3ER[d].jsonOriginal.defaults.slide,CU3ER[d].jsonOriginal.slides.slide[i]),g=jQuery.extend(!0,{},o,CU3ER[d].jsonOriginal.defaults.transition,CU3ER[d].jsonOriginal.slides.transition[i])),q="slide"+(parseInt(i)+1)+".png",g=CU3ER[d].imgFallbackFolder+"/fallback/thumb_slide"+(parseInt(i)+1)+".png",m=""):(b.slide[i].url="slide"+(parseInt(i)+
1)+".png",q=CU3ER[d].imgFallbackFolder+"/fallback/"+b.slide[i].url,g=CU3ER[d].imgFallbackFolder+"/fallback/thumb_"+b.slide[i].url),typeof b.slide[i].link!="undefined"?(s=typeof b.slide[i].link!="undefined"&&typeof b.slide[i].link.text!="undefined"?b.slide[i].link.text:typeof CU3ER[d].jsonOriginal.defaults.slide.link!="undefined"&&typeof CU3ER[d].jsonOriginal.defaults.slide.link.text!="undefined"?CU3ER[d].jsonOriginal.defaults.slide.link.text:"#",v=typeof b.slide[i].link.target!="undefined"?' target="'+
b.slide[i].link.target+'"':typeof CU3ER[d].jsonOriginal.defaults.slide.link.target!="undefined"?' target="'+CU3ER[d].jsonOriginal.defaults.slide.link.target+'"':""):(s="#",v=""),CU3ER[d].isCameraFlat()?(slides1=jQuery.extend(!0,{},f,b),p=parseFloat(t.image.scaleX),n=parseFloat(t.image.scaleY),m="",m=typeof b.slide[i].color!="undefined"?' style="background-color:'+b.slide[i].color.replace("0x","#")+"; width:"+b.width+"px; height:"+b.height+'px;"':typeof slides1.slide.color!="undefined"?' style="background-color:'+
slides1.slide.color.replace("0x","#")+"; width:"+b.width+"px; height:"+b.height+'px;"':typeof t.color!="undefined"?' style="background-color: '+t.color.replace("0x","#")+"; width:"+b.width+"px; height:"+b.height+'px;"':' style="background-color: #000; width:'+b.width+"px; height:"+b.height+'px;"',b.slide[i].transparent=="true"?m=' style="background-color: transparent;"':slides1.slide.transparent=="true"?m=' style="background-color: transparent;"':t.transparent=="true"&&(m=' style="background-color: transparent;"'),
u=s!="#"?' style="width:'+b.width+"px;height:"+b.height+'px;display:block;"':' style="cursor:default !important;"',typeof b.slide[i].use_image!="undefined"&&b.slide[i].use_image=="false"?jQuery(".CU3ERslides-holder",h).append('<div id="CU3ERSlide_'+i+'" class="CU3ERslide"'+m+'><a href="'+s+'"'+v+u+"><img /></a></div>"):(q=/https?:\/\/([-\w\.]+)+(:\d+)?(\/([\w/_\.]*(\?\S+)?)?)?/,q=q.test(b.slide[i].url)?b.slide[i].url:c.folder_images+"/"+b.slide[i].url,jQuery(".CU3ERslides-holder",h).append('<div id="CU3ERSlide_'+
i+'" class="CU3ERslide notLoaded"'+m+'><a href="'+s+'"'+v+u+'><img rel="'+p+":"+n+":"+t.image.x+":"+t.image.y+":"+t.image.align_pos+'" /></a></div>').find("#CU3ERSlide_"+i+" img").bind("load",function(){var c=this.width,e=this.height,f=jQuery(this)[0],g=jQuery(f).attr("rel").split(":");jQuery("<img>").attr("src",jQuery(f).attr("src")).load(function(){if(c==this.width)var h=c*parseFloat(g[0]);else g[0]=Math.round(this.width*g[0]/c*Math.pow(10,2))/Math.pow(10,2),h=c*parseFloat(g[0]);if(e==this.height)var m=
e*parseFloat(g[1]);else g[1]=Math.round(this.height*g[1]/e*Math.pow(10,2))/Math.pow(10,2),m=e*parseFloat(g[1]);optionsImage={align_pos:g[4],x:g[2],y:g[3],fullWidth:b.width,fullHeight:b.height,width:h,height:m};if(!isNaN(this.width)&&!isNaN(this.height))g[5]=this.width,g[6]=this.height;var k=CU3ER[d].calculatePosition(optionsImage);k.position="relative";var n=g.join(":");jQuery(f).css({width:h+"px",height:m+"px"}).css(k).attr("rel",n);jQuery(f).parent().parent().removeClass("notLoaded").trigger("classChanged")});
if(jQuery.browser.msie){if(jQuery(this).width()==this.width)var h=c*parseFloat(g[0]);else g[0]=Math.round(this.width*g[0]/c*Math.pow(10,2))/Math.pow(10,2),h=c*parseFloat(g[0]);if(jQuery(this).height()==this.height)var m=e*parseFloat(g[1]);else g[1]=Math.round(this.height*g[1]/e*Math.pow(10,2))/Math.pow(10,2),m=e*parseFloat(g[1]);optionsImage={align_pos:g[4],x:g[2],y:g[3],fullWidth:b.width,fullHeight:b.height,width:h,height:m};if(!isNaN(this.width)&&!isNaN(this.height))g[5]=this.width,g[6]=this.height;
var k=CU3ER[d].calculatePosition(optionsImage);k.position="relative";var n=g.join(":");jQuery(f).css({width:h+"px",height:m+"px"}).css(k).attr("rel",n);jQuery(f).parent().parent().removeClass("notLoaded")}jQuery(this).parent().parent().removeClass("notLoaded")}).attr("src",q))):s!="#"?(v=typeof b.slide[i].link.target=="undefined"?"_blank":b.slide[i].link.target,jQuery(".CU3ERslides-holder",h).append('<div id="CU3ERSlide_'+i+'" class="CU3ERslide notLoaded"><a href="'+s+'" target="'+v+'"><img src="'+
q+'" alt="" /></a></div>').find(".CU3ERslide img").bind("load",function(){jQuery(this).parent().parent().removeClass("notLoaded").trigger("classChanged");jQuery(this).parent().parent().attr("id").split("_")[1]==CU3ER[d].no&&(k=!0,CU3ER[d].updateIndicator(++CU3ER[d].a,CU3ER[d].totalInd,CU3ER[d].stage+" .CU3ERindicator",!0),CU3ER[d].debug("first slide loaded"))})):jQuery(".CU3ERslides-holder",h).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");jQuery(this).parent().attr("id").split("_")[1]==CU3ER[d].no&&(k=!0,CU3ER[d].updateIndicator(++CU3ER[d].a,CU3ER[d].totalInd,CU3ER[d].stage+" .CU3ERindicator",!0),CU3ER[d].debug("first slide loaded"))}),p={},typeof e!="undefined"){n="";if(typeof e.thumb!="undefined"&&typeof e.thumb.title!="undefined"&&(typeof e.thumb.title.use_numbering!="undefined"&&e.thumb.title.use_numbering=="true"&&(n+=parseInt(i)+1+e.thumb.title.use_numbering_separator+
" "),typeof e.thumb.title.use_heading!="undefined"&&e.thumb.title.use_heading=="true"&&typeof b.slide[i].description!="undefined"&&(n+=typeof b.slide[i].description.heading!="undefined"?b.slide[i].description.heading+" ":""),typeof e.thumb.title.use_caption!="undefined"&&e.thumb.title.use_caption=="true"&&typeof b.slide[i].caption!="undefined"&&(n+=typeof b.slide[i].caption!="undefined"?b.slide[i].caption+" ":""),n!="")){n='<div class="CU3ERtitle">'+n+"</div>";p.position="absolute";p.left=parseInt(e.thumb.title.x)+
"px";p.top=parseInt(e.thumb.title.y)+"px";p.width=e.thumb.title.width+"px";p.height=e.thumb.title.height+"px";p.opacity=e.thumb.title.tweenShow.alpha;p.color=e.thumb.title.tweenShow.tint.replace("0x","#");p.fontSize=e.thumb.title.text_size+"px";p.fontFamily='"'+e.thumb.title.font+'"';p.fontWeight=e.thumb.title.text_bold=="true"?"bold":"normal";p.fontStyle=e.thumb.title.text_italic=="true"?"italic":"normal";p.textAlign=e.thumb.title.text_align;n.textDecoration="none";p.overflow="hidden";if(typeof e.thumb.title.text_leading!=
"undefined"&&e.thumb.title.text_leading>0)p.lineHeight=e.thumb.title.text_leading+"px";if(typeof e.thumb.title.text_letterspacing!="undefined"&&e.thumb.title.text_letterspacing>0)p.letterSpacing=e.thumb.title.text_letterspacing+"px"}typeof e.thumb!="undefined"&&typeof e.thumb.image!="undefined"?jQuery(".CU3ERthumbs-holder",h).append('<div class="CU3ERThumb"><div class="CU3ERThumbBG"></div><a href="#" title=""><div class="CU3ERThumbImage" width="'+e.thumb.width+'" height="'+e.thumb.height+'" style="background: url(\''+
g+'\') no-repeat top left;"><img src="'+g+'" /></div>'+n+"</a></div>"):jQuery(".CU3ERthumbs-holder",h).append('<div class="CU3ERThumb"><div class="CU3ERThumbBG"></div><a href="#" title="">'+n+"</a></div>");jQuery(".CU3ERtitle",h).css(p).hover(function(){jQuery(this).css({color:e.thumb.title.tweenOver.tint.replace("0x","#")})},function(){jQuery(this).css({color:e.thumb.title.tweenShow.tint.replace("0x","#")})})}this.slidesTotal=b.slide.length;typeof e!="undefined"&&this.drawThumbnails(e);images=jQuery(".CU3ERslides-holder div.CU3ERslide img",
h);jQuery(images[CU3ER[d].current]).bind("load",function(){k=!0;CU3ER[d].updateIndicator(++CU3ER[d].a,CU3ER[d].totalInd,CU3ER[d].stage+" .CU3ERindicator",!0);CU3ER[d].debug("first slide loaded")});optionsSlides={align_pos:b.align_pos,x:b.x,y:b.y,width:b.width,height:b.height,fullWidth:CU3ER[d].json.settings.width,fullHeight:CU3ER[d].json.settings.height};cssSlides=this.calculatePosition(optionsSlides);jQuery(CU3ER[d].slides).css(cssSlides).find(".CU3ERslides-holder").css({width:b.width+"px",height:b.height+
"px",position:"absolute",top:0,left:0}).parent().find(".CU3ERtransition-holder").css({width:b.width+"px",height:b.height+"px",position:"absolute",top:0,left:0})}c=jQuery(".CU3ERslide",h);!jQuery(c[CU3ER[d].current]).hasClass("notLoaded")&&k==!1&&(k=!0,CU3ER[d].updateIndicator(++CU3ER[d].a,CU3ER[d].totalInd,CU3ER[d].stage+" .CU3ERindicator",!0),CU3ER[d].debug("first slide loaded"))},drawCircularProgressBar:function(b){var f=this.id,c=this.el;this.stopFlag=!1;clearTimeout(this.circularPBOptions.tempTimeout);
var e=b.align_to=="stage"?this.stage:this.slides,g=parseInt(this.circularPBOptions.radius)*2+parseInt(this.circularPBOptions.padding);jQuery(".CU3ERindicator",c).remove();jQuery(e).append('<div class="CU3ERindicator"><canvas id="CU3ERprogressbar" width="'+(g+3)+'" height="'+(g+3)+'"></canvas></div>');var d=this.circularPBOptions.color1.replace("0x",""),h=this.circularPBOptions.color2.replace("0x",""),e=this.circularPBOptions.opacity2,k=document.getElementById("CU3ERprogressbar").getContext("2d");
k.beginPath();k.lineWidth=this.circularPBOptions.radius;var o=parseInt(d.substr(0,2),16),p=parseInt(d.substr(2,2),16),d=parseInt(d.substr(4,2),16);k.strokeStyle="rgba("+o+", "+p+", "+d+", "+this.circularPBOptions.opacity1+")";k.arc(this.circularPBOptions.radius,this.circularPBOptions.radius,this.circularPBOptions.radius/2,Math.PI*2,0,!0);k.stroke();k.closePath();k.beginPath();o=this.circularPBOptions.radius-this.circularPBOptions.padding;k.lineWidth=o;p=parseInt(h.substr(0,2),16);d=parseInt(h.substr(2,
2),16);h=parseInt(h.substr(4,2),16);k.strokeStyle="rgba("+p+", "+d+", "+h+", "+e+")";k.arc(this.circularPBOptions.radius,this.circularPBOptions.radius,o/2,Math.PI*2,0,!1);k.stroke();k.closePath();clearTimeout(this.circularPBOptions.tempTimeout);this.startCircularProgressbar(this.circularPBOptions);b.align_to=="stage"?(e=this.json.settings.width,k=this.json.settings.height):(e=this.json.slides.width,k=this.json.slides.height);optionsProgress={align_pos:b.align_pos,x:b.posX,y:b.posY,width:g-3,height:g,
fullWidth:e,fullHeight:k};cssProgress=this.calculatePosition(optionsProgress);jQuery(".CU3ERindicator",c).css({width:parseInt(b.radius)*2+parseInt(b.padding)+"px",height:parseInt(b.radius)*2+parseInt(b.padding)+"px",position:"absolute",background:"transparent","z-index":470,opacity:1,cursor:"pointer","-webkit-transform":"rotateZ(-90deg) translateZ(3px)","-moz-transform":"rotate(-90deg)",transform:"rotate(-90deg)","-o-transform":"rotate(-90deg)"}).css(cssProgress).hover(function(){CU3ER[f].circularPBOptions.color2=
b.colorLoaderHover.replace("0x","");CU3ER[f].circularPBOptions.opacity1=b.hoverAlpha;CU3ER[f].changeColorOnCircularProgressbar(CU3ER[f].circularPBOptions)},function(){CU3ER[f].circularPBOptions.color2=b.colorLoader.replace("0x","");CU3ER[f].circularPBOptions.opacity1=b.bgAlpha;CU3ER[f].changeColorOnCircularProgressbar(CU3ER[f].circularPBOptions)})},startCircularProgressbar:function(b,f){var c=this.id,e=typeof f!="undefined"?f:!1,g=Math.ceil(this.sleepDuration/35);this.degMovement=Math.ceil(360/g);
var g=b.startPoint*Math.PI/180,d=b.endPoint*Math.PI/180,h=this.circularPBOptions.color1.replace("0x",""),k=this.circularPBOptions.color2.replace("0x",""),o=this.circularPBOptions.opacity1,p=this.circularPBOptions.opacity2,r=document.getElementById("CU3ERprogressbar").getContext("2d"),n=parseInt(this.circularPBOptions.radius)*2+parseInt(this.circularPBOptions.padding);r.clearRect(0,0,n+3,n+3);r.beginPath();r.width=b.radius*2;r.height=b.radius*2;r.lineWidth=b.radius;var n=parseInt(h.substr(0,2),16),
m=parseInt(h.substr(2,2),16),h=parseInt(h.substr(4,2),16);r.strokeStyle="rgba("+n+", "+m+", "+h+", "+o+")";r.arc(b.radius,b.radius,b.radius/2,Math.PI*2,0,!0);r.stroke();r.closePath();r.beginPath();r.lineWidth=b.radius-b.padding;o=parseInt(k.substr(0,2),16);h=parseInt(k.substr(2,2),16);k=parseInt(k.substr(4,2),16);n=b.radius-b.padding;r.strokeStyle="rgba("+o+", "+h+", "+k+", "+p+")";r.arc(b.radius,b.radius,n/2,g,d,!1);r.stroke();r.closePath();this.circularPBOptions.endPoint=b.endPoint+this.degMovement;
if(this.circularPBOptions.endPoint<=365){if(this.stopFlag==!1)this.circularPBOptions.tempTimeout=setTimeout(function(){CU3ER[c].startCircularProgressbar(CU3ER[c].circularPBOptions,e)},30)}else CU3ER[c].circularPBOptions.endPoint=0,e&&CU3ER[c].skipTo(CU3ER[c].calculateNext(CU3ER[c].current),!0,!0)},animateCircularProgressbarTo:function(b){var f=b.startPoint*Math.PI/180,c=b.endDeg*Math.PI/180,e=this.circularPBOptions.color1.replace("0x",""),g=this.circularPBOptions.color2.replace("0x",""),d=this.circularPBOptions.opacity1,
h=this.circularPBOptions.opacity2,k=document.getElementById("CU3ERprogressbar").getContext("2d"),o=parseInt(this.circularPBOptions.radius)*2+parseInt(this.circularPBOptions.padding);k.clearRect(0,0,o+3,o+3);k.beginPath();o=this.circularPBOptions.radius-this.circularPBOptions.padding;k.width=b.radius*2;k.height=b.radius*2;k.lineWidth=b.radius;var o=parseInt(e.substr(0,2),16),p=parseInt(e.substr(2,2),16),e=parseInt(e.substr(4,2),16);k.strokeStyle="rgba("+o+", "+p+", "+e+", "+d+")";k.arc(b.radius,b.radius,
b.radius/2,Math.PI*2,0,!0);k.stroke();k.closePath();k.beginPath();k.lineWidth=b.radius-b.padding;d=parseInt(g.substr(0,2),16);e=parseInt(g.substr(2,2),16);g=parseInt(g.substr(4,2),16);o=b.radius-b.padding;k.strokeStyle="rgba("+d+", "+e+", "+g+", "+h+")";k.arc(b.radius,b.radius,o/2,f,c,!1);k.stroke();k.closePath()},stopCircularProgressbar:function(){clearTimeout(this.circularPBOptions.tempTimeout);clearTimeout(this.tempTimeout[this.current]);this.stopFlag=!0;this.circularPBOptions.endPoint-=this.degMovement;
clearTimeout(this.circularPBOptions.tempTimeout)},changeColorOnCircularProgressbar:function(b){var f=b.startPoint*Math.PI/180,c=b.endPoint*Math.PI/180,e=this.circularPBOptions.color1.replace("0x",""),g=this.circularPBOptions.color2.replace("0x",""),d=this.circularPBOptions.opacity1,h=this.circularPBOptions.opacity2,k=document.getElementById("CU3ERprogressbar").getContext("2d");k.beginPath();k.width=b.radius*2;k.height=b.radius*2;k.lineWidth=b.radius;var o=parseInt(e.substr(0,2),16),p=parseInt(e.substr(2,
2),16),e=parseInt(e.substr(4,2),16);k.strokeStyle="rgba("+o+", "+p+", "+e+", "+d+")";k.arc(b.radius,b.radius,b.radius/2,Math.PI*2,0,!0);k.stroke();k.beginPath();k.lineWidth=b.radius-b.padding;d=parseInt(g.substr(0,2),16);o=parseInt(g.substr(2,2),16);g=parseInt(g.substr(4,2),16);p=b.radius-b.padding;k.strokeStyle="rgba("+d+", "+o+", "+g+", "+h+")";k.arc(b.radius,b.radius,p/2,f,c,!1);k.stroke()},drawProgressBar:function(b){var f=this.id,c=this.el,e=b.align_to=="stage"?this.stage:this.slides;jQuery(".CU3ERindicator",
c).remove();jQuery(e).append('<div class="CU3ERindicator"></div>');jQuery(".CU3ERindicator",c).append('<div class="CU3ERprogressAlpha"></div><div class="CU3ERprogress"></div>');var g={loaderTweenShowTint:"#ff0000",loaderTweenOverTint:"#ff0000",loaderTweenShowAlpha:0.75,loaderTweenOverAlpha:1,bgTweenShowAlpha:0.75,bgTweenOverAlpha:1,bgTweenShowTint:"#ff0000",bgTweenOverTint:"#ff0000",padding:5,width:120,height:20,x:0,y:0,preloaderImage:"http://getcu3er.com/CU3ER-images/CU3ER.png",preloaderWidth:80,
preloaderHeight:122,preloaderAlign_pos:"MC",preloaderX:0,preloaderY:0},b=jQuery.extend(g,b),e=!1,d=CU3ER[f].xml,h;try{h=window.ActiveXObject?d.xml:(new XMLSerializer).serializeToString(d)}catch(k){h=d}if(typeof h=="undefined"||h=="")h=d;h=h.match(/(<licence>(.)*<\/licence>)+/gi);h!=null?h.push(CU3ER[f].licenseStr):h=Array(CU3ER[f].licenseStr);if(h!=null){for(d=0;d<h.length;d++)h[d]=h[d].split("<licence>").join("").split("</licence>").join(""),h[d]=h[d].split("<![CDATA[").join("").split("]]\>").join("");
d=!1;if(h.length!=0){var o=document.location.href.toLowerCase(),o=o.split("https://").join("").split("http://").join("").split("www.").join(""),o=o.split("/")[0];o=="file:"&&(o="localdrive");for(var p=o.split(".");p.length>4;)p.splice(0,1);for(var r=p,n,m,s,t="",q=",join,www.,split,http://,https://,/,charCodeAt,length,fromCharCode".split(","),o=o[q[3]](q[5])[q[1]](q[0])[q[3]](q[4])[q[1]](q[0])[q[3]](q[2])[q[1]](q[0]),o=o[q[3]](q[6])[0],d=0;d<32;d++){n=d%2+1;for(s=m=0;s<o[q[8]];)m+=(o[q[7]](s)+3)%
(d+1)*(o[q[7]](s)+2),s+=n;m=m%94+33;m==60&&(m=58);m==62&&(m=59);t+=String[q[9]](m)}var v=!1;for(l=0;l<h.length;l++)v=v||t==h[l].toString();t=t.split("+").join(" ");for(l=0;l<h.length;l++)v=v||t==h[l].toString();if(p.length>3){t="";p=p.slice(1);p=p.slice(1);o=p.join(".");q=",join,www.,split,http://,https://,/,charCodeAt,length,fromCharCode".split(",");o=o[q[3]](q[5])[q[1]](q[0])[q[3]](q[4])[q[1]](q[0])[q[3]](q[2])[q[1]](q[0]);o=o[q[3]](q[6])[0];for(d=0;d<32;d++){n=d%2+1;for(s=m=0;s<o[q[8]];)m+=(o[q[7]](s)+
3)%(d+1)*(o[q[7]](s)+2),s+=n;m=m%94+33;m==60&&(m=58);m==62&&(m=59);t+=String[q[9]](m)}for(l=0;l<h.length;l++)v=v||t==h[l].toString();t=t.split("+").join(" ");for(l=0;l<h.length;l++)v=v||t==h[l].toString()}p=r;if(p.length>2){t="";p=p.slice(1);o=p.join(".");q=",join,www.,split,http://,https://,/,charCodeAt,length,fromCharCode".split(",");o=o[q[3]](q[5])[q[1]](q[0])[q[3]](q[4])[q[1]](q[0])[q[3]](q[2])[q[1]](q[0]);o=o[q[3]](q[6])[0];for(d=0;d<32;d++){n=d%2+1;for(s=m=0;s<o[q[8]];)m+=(o[q[7]](s)+3)%(d+
1)*(o[q[7]](s)+2),s+=n;m=m%94+33;m==60&&(m=58);m==62&&(m=59);t+=String[q[9]](m)}for(l=0;l<h.length;l++)v=v||t==h[l].toString();t=t.split("+").join(" ");for(l=0;l<h.length;l++)v=v||t==h[l].toString()}d=v?!0:!1}else d=!1}else d=!1;if(b.type=="sliderLoad")if(h=typeof CU3ER[f].json.settings.branding!="undefined"?typeof CU3ER[f].json.settings.branding.remove_logo_loader!="undefined"?CU3ER[f].json.settings.branding.remove_logo_loader:"false":"false",d&&h=="true")if(typeof b.image=="undefined"||b.image==
null){if(jQuery(".CU3ERprogress",c).css("backgroundColor",b.loaderTweenShowTint.replace("0x","#")).hover(function(){jQuery(this).css({backgroundColor:b.loaderTweenOverTint.replace("0x","#"),opacity:b.loaderTweenOverAlpha,cursor:"pointer"})},function(){jQuery(this).css({backgroundColor:b.loaderTweenShowTint.replace("0x","#"),opacity:b.loaderTweenShowAlpha})}),b.shape=="circular")if(this.supportCanvas())return this.circularPBOptions={color1:b.bgTweenShowTint.replace("0x",""),color2:b.loaderTweenShowTint.replace("0x",
""),opacity1:b.bgTweenShowAlpha,opacity2:b.loaderTweenShowAlpha,padding:b.padding,radius:b.radius,startPoint:0,endPoint:0,tempTimeout:null,shape:"circular",startSlider:!0},this.drawCircularProgressBar(b),!1;else b.width=parseInt(CU3ER[f].json.preloader.radius)*2,b.height=parseInt(CU3ER[f].json.preloader.radius)/4<10?10:parseInt(CU3ER[f].json.preloader.radius)/4}else jQuery(".CU3ERprogress, .CU3ERprogressAlpha",c).css("background",'transparent url("'+b.image+'") no-repeat top left');else b.image=g.preloaderImage,
b.width=g.preloaderWidth,b.height=g.preloaderHeight,b.align_pos=g.preloaderAlign_pos,b.posX=g.preloaderX,b.posY=g.preloaderY,b.loaderTreenOverTint="transparent",b.loaderTweenShowTint="transparent",b.bgTweenShowTint="transparent",b.bgTweenOverTint="transparent",b.loaderTweenShowAlpha=0.5,b.loaderTweenOverAlpha=0.5,b.bgTweenShowAlpha=0.5,b.bgTweenOverAlpha=0.5,jQuery(".CU3ERprogress, .CU3ERprogressAlpha",c).css({background:'transparent url("'+b.image+'") no-repeat top left'}),e=!0;else if(jQuery(".CU3ERprogress",
c).css("backgroundColor",b.loaderTweenShowTint.replace("0x","#")).hover(function(){jQuery(this).css({backgroundColor:b.loaderTweenOverTint.replace("0x","#"),opacity:b.loaderTweenOverAlpha,cursor:"pointer"})},function(){jQuery(this).css({backgroundColor:b.loaderTweenShowTint.replace("0x","#"),opacity:b.loaderTweenShowAlpha})}),b.shape=="circular")if(this.supportCanvas())return this.circularPBOptions={color1:b.bgTweenShowTint.replace("0x",""),color2:b.loaderTweenShowTint.replace("0x",""),opacity1:b.bgTweenShowAlpha>
0?b.bgTweenShowAlpha:"0.75",opacity2:b.loaderTweenShowAlpha>0?b.loaderTweenShowAlpha:"0.75",padding:b.padding,radius:b.radius,startPoint:0,endPoint:0,tempTimeout:null,shape:"circular"},this.drawCircularProgressBar(b),!1;else b.width=parseInt(CU3ER[f].json.controls.auto_play_indicator.radius)*2,b.height=parseInt(CU3ER[f].json.controls.auto_play_indicator.radius)/4<10?10:parseInt(CU3ER[f].json.controls.auto_play_indicator.radius)/4;b.align_to=="stage"?(g=this.json.settings.width,h=this.json.settings.height):
(g=this.json.slides.width,h=this.json.slides.height);optionsProgress={align_pos:b.align_pos,x:b.posX,y:b.posY,width:b.width,height:b.height,fullWidth:g,fullHeight:h};cssProgress=this.calculatePosition(optionsProgress);jQuery(".CU3ERindicator",c).css({width:parseInt(b.width)-parseInt(b.padding)+"px",height:parseInt(b.height)+"px",position:"absolute",background:"transparent","z-index":450,opacity:1,cursor:"pointer","line-height":"1px"}).css(cssProgress);jQuery(".CU3ERprogressAlpha",c).css({width:parseInt(b.width)-
parseInt(b.padding)+"px",height:parseInt(b.height)+"px"});b.type=="sliderLoad"&&jQuery(".CU3ERindicator",c).css({opacity:1,cursor:"default",background:"transparent"}).unbind();g=b.height%2==0?2:1;h=parseInt(b.height)-2*parseInt(b.padding)<1?g:+(parseInt(b.height)-2*parseInt(b.padding));g={top:parseInt(b.padding),left:parseInt(b.padding),maxWidth:parseInt(b.width)-parseInt(b.padding)-parseInt(b.padding)*2+"px",height:h+"px","line-height":"1px"};jQuery.browser.msie&&(h=jQuery("<div>").css({top:0,left:0,
width:parseInt(b.width)-parseInt(b.padding)-parseInt(b.padding)*2+"px",height:h+"px",position:"absolute","line-height":"1px"}),jQuery(".CU3ERprogress",c).wrap(h));jQuery(".CU3ERprogress",c).css({width:0,height:parseInt(b.height),position:"absolute","z-index":451,opacity:b.loaderTweenShowAlpha,padding:0,margin:0,left:0,top:0,"line-height":"1px"});jQuery(".CU3ERprogress",c).css("z-index",452);(typeof b.image=="undefined"||b.image==null)&&jQuery(".CU3ERprogress",c).css(g);jQuery(".CU3ERprogressAlpha",
c).css({opacity:b.bgTweenShowAlpha,width:parseInt(b.width)-parseInt(b.padding)+"px",height:parseInt(b.height)+"px",background:typeof b.image=="undefined"||b.image==null?b.bgTweenShowTint.replace("0x","#"):'transparent url("'+b.image+'") no-repeat top left',padding:0,margin:0,left:0,top:0,"line-height":"1px"});jQuery(".CU3ERprogress",c).css({opacity:b.loaderTweenShowAlpha});e&&(jQuery(".CU3ERprogress",c).css({opacity:1}),jQuery(".CU3ERindicator",c).css({opacity:1,cursor:"pointer","z-index":1001}).bind("click",
function(){window.open("http://getcu3er.com/"+(typeof CU3ER[f].json.referral!="undefined"?"?cu3er="+CU3ER[f].json.referral:""),"CU3ER")}),e=!1)},drawButtons:function(b,f,c,e,g){var d=this.id,h=this.el,k=jQuery.extend(!0,{},{align_to:"slides",align_pos:"TL",x:"0",y:"0",width:40,height:40,background:{tweenShow:{tint:"#ffffff",alpha:0.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}}}),b=jQuery.extend(!0,
k,b);jQuery(b.align_to=="stage"?this.stage:this.slides).append('<div class="CU3ERbutton'+b.type1+'"><div class="CU3ERshowBtn"><div class="CU3ERButton'+b.type1+'BG"></div></div><div class="CU3ERoverBtn"><div class="CU3ERButton'+b.type1+'BG"></div></div></div>');typeof b.symbol!="undefined"&&(jQuery(".CU3ERbutton"+b.type1+" .CU3ERshowBtn",h).append('<img src="'+CU3ER[d].imgFallbackFolder+"/fallback/"+b.type+'_symbol_show.png" />').find("img").css({"z-index":451,position:"absolute",top:0,left:0}).load(function(){CU3ER[d].transition==
null&&(CU3ER[d].updateIndicator(++CU3ER[d].a,CU3ER[d].totalInd,CU3ER[d].stage+" .CU3ERindicator",!0),CU3ER[d].debug(b.type1+" button loaded"))}).error(function(){CU3ER[d].transition==null&&(CU3ER[d].updateIndicator(++CU3ER[d].a,CU3ER[d].totalInd,CU3ER[d].stage+" .CU3ERindicator",!0),CU3ER[d].debug(b.type1+" button not exist"))}),jQuery(".CU3ERbutton"+b.type1+" .CU3ERoverBtn",h).append('<img src="'+CU3ER[d].imgFallbackFolder+"/fallback/"+b.type+'_symbol_over.png" />').find("img").css({"z-index":451,
position:"absolute",top:0,left:0}));optionsButton={align_pos:b.align_pos,x:Math.round(parseFloat(b.x)),y:Math.round(parseFloat(b.y)),width:Math.round(parseFloat(b.width)),height:Math.round(parseFloat(b.height)),fullWidth:b.align_to=="slides"?parseInt(f):parseInt(e),fullHeight:b.align_to=="slides"?parseInt(c):parseInt(g)};var o=this.calculatePosition(optionsButton);optionsButtonHover={align_pos:b.align_pos,x:parseInt(b.x)+parseInt(b.background.tweenOver.x),y:parseInt(b.y)+parseInt(b.background.tweenOver.y),
width:Math.round(parseFloat(b.width)*parseFloat(b.background.tweenOver.scaleX)),height:Math.round(parseFloat(b.height)*parseFloat(b.background.tweenOver.scaleY)),fullWidth:b.align_to=="slides"?parseInt(f):parseInt(e),fullHeight:b.align_to=="slides"?parseInt(c):parseInt(g)};var p=this.calculatePosition(optionsButtonHover);jQuery(".CU3ERbutton"+b.type1+" .CU3ERoverBtn",h).css("display","none").find(".CU3ERButton"+b.type1+"BG").css({opacity:b.background.tweenOver.alpha,backgroundColor:b.background.tweenOver.tint.replace("0x",
"#"),width:Math.round(parseInt(b.width)*parseFloat(b.background.tweenOver.scaleX))+"px",height:Math.round(parseInt(b.height)*parseFloat(b.background.tweenOver.scaleY))+"px",position:"absolute",top:0,left:0}).borderRadius(b.background.round_corners);jQuery(".CU3ERbutton"+b.type1,h).css({width:Math.round(parseFloat(b.width))+"px",height:Math.round(parseFloat(b.height))+"px",position:"absolute",cursor:"pointer",zIndex:451,"-webkit-transform":"translateZ(1px)",display:"none"}).css(o).hover(function(){var c=
jQuery(this);jQuery(c).css(p).css({width:Math.round(parseInt(b.width)*parseFloat(b.background.tweenOver.scaleX))+"px",height:Math.round(parseInt(b.height)*parseFloat(b.background.tweenOver.scaleY))+"px"});jQuery(".CU3ERshowBtn",jQuery(this)).css("display","none");jQuery(".CU3ERoverBtn",jQuery(this)).css("display","block")},function(){var c=jQuery(this);jQuery(c).css(o).css({width:parseInt(b.width)+"px",height:parseInt(b.height)+"px"});jQuery(".CU3ERoverBtn",jQuery(this)).css("display","none");jQuery(".CU3ERshowBtn",
jQuery(this)).css("display","block")}).borderRadius(b.background.round_corners).bind("click touchstart",function(){if(b.type=="prev"){if(!CU3ER[d].inTransition)CU3ER[d].inTransition=!0,CU3ER[d].doCheck=!1,setTimeout(function(){CU3ER[d].prev()},50)}else if(!CU3ER[d].inTransition)CU3ER[d].inTransition=!0,CU3ER[d].doCheck=!1,setTimeout(function(){CU3ER[d].next()},50);return!1}).find(".CU3ERshowBtn .CU3ERButton"+b.type1+"BG").css({width:Math.round(parseFloat(b.width))+"px",height:Math.round(parseFloat(b.height))+
"px",backgroundColor:b.background.tweenShow.tint.replace("0x","#"),position:"absolute",opacity:b.background.tweenShow.alpha,top:0,left:0}).borderRadius(b.background.round_corners)},drawDescription:function(b){var f=this.el,c={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}}},b=jQuery.extend(c,
b);b.x=parseInt(b.x)+parseInt(b.background.tweenShow.x);b.y=parseInt(b.y)+parseInt(b.background.tweenShow.y);var e=b.align_to=="stage"?this.stage:this.slides;if(b.align_to=="stage")var g=this.json.settings.width,d=this.json.settings.height;else g=this.json.slides.width,d=this.json.slides.height;b.fullWidth=g;b.fullHeight=d;b.height=Math.round(parseInt(b.height)*parseFloat(b.background.tweenShow.scaleY));b.width=Math.round(parseInt(b.width)*parseFloat(b.background.tweenShow.scaleX));c=jQuery.extend({},
c,b);c.x=parseInt(b.x)+parseInt(b.background.tweenOver.x);c.y=parseInt(b.y)+parseInt(b.background.tweenOver.y);c.fullWidth=g;c.fullHeight=d;c.height=Math.round(parseInt(b.height)*parseFloat(b.background.tweenOver.scaleY));c.width=Math.round(parseInt(b.width)*parseFloat(b.background.tweenOver.scaleX));jQuery(e).append('<div class="CU3ERdescription"></div>');var h=this.calculatePosition(b),k=this.calculatePosition(c);jQuery(".CU3ERdescription",f).css({position:"absolute",width:Math.round(parseInt(b.width)*
parseFloat(b.background.tweenShow.scaleX))+"px",height:Math.round(parseInt(b.height)*parseFloat(b.background.tweenShow.scaleY))+"px",opacity:1,background:"transparent",zIndex:450,"-webkit-transform":"translateZ(1px)",display:"none"}).css(h).append('<div class="CU3ERDescBG"></div><div class="CU3ERDescriptionText"></div>').hover(function(){jQuery(".CU3ERdescription",f).css({width:Math.round(parseInt(b.width)*parseFloat(b.background.tweenOver.scaleX))+"px",height:Math.round(parseInt(b.height)*parseFloat(b.background.tweenOver.scaleY))+
"px"}).css(k);jQuery(this).find(".CU3ERDescBG").css({opacity:b.background.tweenOver.alpha,background:b.background.tweenOver.tint.replace("0x","#"),width:Math.round(parseInt(b.width)*parseFloat(b.background.tweenOver.scaleX))+"px",height:Math.round(parseInt(b.height)*parseFloat(b.background.tweenOver.scaleY))+"px"});typeof b.heading!="undefined"&&jQuery(this).find("h2").css({opacity:b.heading.tweenOver.alpha,color:b.heading.tweenOver.tint.replace("0x","#")}).find("a").css({opacity:b.heading.tweenOver.alpha,
color:b.heading.tweenOver.tint.replace("0x","#")});typeof b.paragraph!="undefined"&&jQuery(this).find("p").css({opacity:b.paragraph.tweenOver.alpha,color:b.paragraph.tweenOver.tint.replace("0x","#")}).find("a").css({opacity:b.paragraph.tweenOver.alpha,color:b.paragraph.tweenOver.tint.replace("0x","#")})},function(){jQuery(".CU3ERdescription",f).css({width:Math.round(parseInt(b.width)*parseFloat(b.background.tweenShow.scaleX))+"px",height:Math.round(parseInt(b.height)*parseFloat(b.background.tweenShow.scaleY))+
"px"}).css(h);jQuery(this).find(".CU3ERDescBG").css({opacity:b.background.tweenShow.alpha,background:b.background.tweenShow.tint.replace("0x","#"),width:Math.round(parseInt(b.width)*parseFloat(b.background.tweenShow.scaleX))+"px",height:Math.round(parseInt(b.height)*parseFloat(b.background.tweenShow.scaleY))+"px"});typeof b.heading!="undefined"&&jQuery(this).find("h2").css({opacity:b.heading.tweenShow.alpha,color:b.heading.tweenShow.tint.replace("0x","#")}).find("a").css({opacity:b.heading.tweenShow.alpha,
color:b.heading.tweenShow.tint.replace("0x","#")});typeof b.paragraph!="undefined"&&jQuery(this).find("p").css({opacity:b.paragraph.tweenShow.alpha,color:b.paragraph.tweenShow.tint.replace("0x","#")}).find("a").css({opacity:b.paragraph.tweenShow.alpha,color:b.paragraph.tweenShow.tint.replace("0x","#")})}).find(".CU3ERDescBG").css({position:"relative",top:0,left:0,width:parseInt(b.width)+"px",height:parseInt(b.height)+"px",opacity:b.background.tweenShow.alpha,background:b.background.tweenShow.tint.replace("0x",
"#"),"z-index":451}).borderRadius(b.background.round_corners).parent().find(".CU3ERDescriptionText").css({position:"absolute",top:0,left:0,display:"block",width:parseInt(b.width)+"px","z-index":452})},drawThumbnails:function(b){var f=this.id,c=this.el;CU3ER[f].debug("creating css for thumbnails");var e=0,g=0,b=jQuery.extend(!0,{},{x:0,y:0,align_pos:"TL",thumb:{background:{tweenShow:{x:0,y:0,tint:"0x000000",alpha:0.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:0.5}},title:{tweenShow:{x:0,y:0,tint:"0xFFFFFF",alpha:0.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:0.5}},image:{tweenShow:{x:0,y:0,alpha:0.75},tweenOver:{x:0,y:0,alpha:1},tweenHide:{x:0,y:0,alpha:0},tweenSelected:{x:0,y:0,alpha:0.5},x:0,y:0,width:30,height:30,round_corners:"0,0,0,0"},x:0,y:0}},b);if(b.align_to=="stage")var d=this.json.settings.width,h=
this.json.settings.height;else d=this.json.slides.width,h=this.json.slides.height;cssThumbs=this.calculatePosition({x:Math.round(parseFloat(b.x)),y:Math.round(parseFloat(b.y)),align_pos:b.align_pos,width:parseInt(b.width),height:parseInt(b.height),fullWidth:d,fullHeight:h});if(b.scroll=="horizontal"){var h=parseInt(b.width),d=parseInt(this.slidesTotal*parseInt(parseInt(b.thumb.width)+parseInt(b.thumb.spacing_x))),k=Math.floor(parseInt(b.width)/(parseInt(b.thumb.width)+parseInt(b.thumb.spacing_x)));
k*(parseInt(b.thumb.width)+parseInt(b.thumb.spacing_x))+parseInt(b.thumb.width)<b.width&&k++;var o=Math.floor(parseInt(b.height)/(parseInt(b.thumb.height)+parseInt(b.thumb.spacing_y)));o*(parseInt(b.thumb.height)+parseInt(b.thumb.spacing_y))+parseInt(b.thumb.height)<b.height&&o++;var o=o==0?1:o,k=k==0?1:k,h=d-parseInt(k)*parseInt(o)*parseInt(parseInt(b.thumb.width)+parseInt(b.thumb.spacing_x)),h=h>0?parseInt(b.width)+parseInt(b.padding_x)+parseInt(h):b.width,h=d/parseInt(k*parseInt(parseInt(b.thumb.width)+
parseInt(b.thumb.spacing_x))),h=Math.ceil(h)>parseInt(o)?parseInt(o):Math.ceil(h),h=parseInt(h)*parseInt(parseInt(b.thumb.height)+parseInt(b.thumb.spacing_y)),p=parseInt(b.width)-parseInt(b.padding_x)+"px",r=parseInt(b.height)+parseInt(b.padding_y)+"px",h=Math.ceil(this.slidesTotal/k),h=h<=o?h:o;cssThumbHolderScroll=this.calculatePosition({x:0,y:0,align_pos:"TL",width:parseInt(b.width),height:Math.floor(h)*parseInt(b.thumb.height)+Math.floor(o)*parseInt(b.thumb.spacing_y)+parseInt(b.thumb.y)+parseInt(b.padding_y),
fullWidth:p,fullHeight:r});cssThumbHolder=this.calculatePosition({x:parseInt(b.padding_x),y:0,align_pos:"ML",width:parseInt(b.width),height:Math.floor(h)*parseInt(b.thumb.height)+Math.floor(o)*parseInt(b.thumb.spacing_y)+parseInt(b.thumb.y)+parseInt(b.padding_y)-parseInt(b.thumb.spacing_y),fullWidth:p,fullHeight:r});var n=!1,m=jQuery(".CU3ERThumb",c),s=this.slidesTotal<=k?this.slidesTotal:Math.ceil(this.slidesTotal/Math.floor(o));m.each(function(){e==s&&g+1<s&&(e=0,g++,n=!0);var c=e*parseInt(b.thumb.width)+
e*parseInt(b.thumb.spacing_x)+parseInt(b.thumb.x),d=g*parseInt(b.thumb.height)+g*parseInt(b.thumb.spacing_y)+parseInt(b.thumb.y),c=CU3ER[f].calculatePosition({x:c,y:d,width:parseInt(b.thumb.width),height:Math.floor(o)*parseInt(b.thumb.height),fullWidth:parseInt(p),fullHeight:parseInt(r),align_pos:"TL"});jQuery(this).css(c).css({position:"absolute"});e++})}else{h=parseInt(b.height)-parseInt(b.padding_y);d=parseInt(this.slidesTotal*parseInt(parseInt(b.thumb.height)+parseInt(b.thumb.spacing_y))+parseInt(b.thumb.y)+
parseInt(b.padding_y));o=Math.floor(parseInt(b.height)/(parseInt(b.thumb.height)+parseInt(b.thumb.spacing_y)));o*(parseInt(b.thumb.height)+parseInt(b.thumb.spacing_y))+parseInt(b.thumb.height)<b.height&&o++;k=Math.floor(parseInt(b.width)/(parseInt(b.thumb.width)+parseInt(b.thumb.spacing_x)));k*(parseInt(b.thumb.width)+parseInt(b.thumb.spacing_x))+parseInt(b.thumb.width)<b.width&&k++;var o=o==0?1:o,k=k==0?1:k,h=d-parseInt(o)*parseInt(k)*parseInt(parseInt(b.thumb.height)+parseInt(b.thumb.spacing_y)),
h=h>0?parseInt(b.height)+parseInt(h):b.height,t=d/parseInt(o*parseInt(parseInt(b.thumb.height)+parseInt(b.thumb.spacing_y))),h=Math.ceil(t)>parseInt(k)?parseInt(k):Math.ceil(t),h=parseInt(h)*parseInt(parseInt(b.thumb.width)+parseInt(b.thumb.spacing_x));totalH1=t/k;p=parseInt(b.width)+parseInt(b.padding_x)+"px";r=parseInt(b.height)-parseInt(b.padding_y)+"px";h=Math.ceil(this.slidesTotal/o);h=h<=k?h:k;cssThumbHolderScroll=this.calculatePosition({x:0,y:0,align_pos:"TL",width:Math.floor(h)*parseInt(b.thumb.width)+
Math.floor(k)*parseInt(b.thumb.spacing_x)+parseInt(b.thumb.x)+parseInt(b.padding_x),height:parseInt(b.height),fullWidth:p,fullHeight:r});cssThumbHolder=this.calculatePosition({x:0,y:parseInt(b.padding_y),align_pos:"TC",width:Math.floor(h)*parseInt(b.thumb.width)+Math.floor(k)*parseInt(b.thumb.spacing_x)+parseInt(b.thumb.x)+parseInt(b.padding_x)-parseInt(b.thumb.spacing_x),height:parseInt(b.height),fullWidth:p,fullHeight:r});m=jQuery(".CU3ERThumb",c);n=!1;e=g=0;m.each(function(){var c=e*parseInt(b.thumb.width)+
e*parseInt(b.thumb.spacing_x)+parseInt(b.thumb.x),d=g*parseInt(b.thumb.height)+g*parseInt(b.thumb.spacing_y)+parseInt(b.thumb.y),c=CU3ER[f].calculatePosition({x:c,y:d,width:Math.floor(k)*parseInt(b.thumb.width),height:parseInt(b.thumb.height),fullWidth:parseInt(p),fullHeight:parseInt(r),align_pos:"TL"});jQuery(this).css(c).css({position:"absolute"});e++;e>=k&&(e>1&&(n=!0),e=0,g++)})}typeof b.background!="undefined"&&jQuery(".CU3ERthumbsBG",c).css({background:b.background.color.replace("0x","#"),opacity:b.background.alpha,
width:parseInt(b.width)+"px",height:parseInt(b.height)+"px",position:"absolute",top:0,left:0,outline:"none"}).borderRadius(b.background.round_corners);jQuery(".CU3ERthumbs",c).css(cssThumbs).css({width:parseInt(b.width),height:parseInt(b.height),position:"absolute",visibility:"hidden",zIndex:415,outline:"none","-webkit-transform":"translateZ(4px)"}).find(".CU3ERThumbsScroll").css({width:parseInt(b.width),height:parseInt(b.height),outline:"none",overflow:"hidden",position:"absolute"}).css(cssThumbHolderScroll).find(".CU3ERthumbs-holder").css({width:"1000px",
height:"1000px",position:"relative",outline:"none"}).css(cssThumbHolder).find(".CU3ERThumbBG").css({position:"absolute",top:0,left:0,background:b.thumb.background.tweenShow.tint.replace("0x","#"),opacity:b.thumb.background.tweenShow.alpha,width:b.thumb.width+"px",height:b.thumb.height+"px",outline:"none"}).borderRadius(b.thumb.background.round_corners).parent().css({cursor:"pointer",width:b.thumb.width+"px",height:b.thumb.height+"px"}).hover(function(){var e=jQuery(this);jQuery(".CU3ERThumbBG",c).each(function(){jQuery(this).css({background:jQuery(this).parent().hasClass("current")?
b.thumb.background.tweenSelected.tint.replace("0x","#"):b.thumb.background.tweenShow.tint.replace("0x","#"),opacity:jQuery(this).parent().hasClass("current")?b.thumb.background.tweenSelected.alpha:b.thumb.background.tweenShow.alpha})});jQuery(this).find(".CU3ERThumbBG").css({background:jQuery(e).hasClass("current")?b.thumb.background.tweenSelected.tint.replace("0x","#"):b.thumb.background.tweenOver.tint.replace("0x","#"),opacity:jQuery(e).hasClass("current")?b.thumb.background.tweenSelected.alpha:
b.thumb.background.tweenOver.alpha});typeof b.thumb.title!="undefined"&&jQuery(this).find(".CU3ERtitle").css({color:jQuery(e).hasClass("current")?b.thumb.title.tweenSelected.tint.replace("0x","#"):b.thumb.title.tweenOver.tint.replace("0x","#"),opacity:jQuery(e).hasClass("current")?b.thumb.background.tweenSelected.alpha:b.thumb.background.tweenOver.alpha});typeof b.thumb.image!="undefined"&&(jQuery(".CU3ERThumb img",c).each(function(){jQuery(this).parent().css({opacity:jQuery(this).hasClass("current")?
b.thumb.image.tweenSelected.alpha:b.thumb.image.tweenShow.alpha})}),jQuery(this).find("img").parent().css({opacity:jQuery(this).parent().hasClass("current")?b.thumb.image.tweenSelected.alpha:b.thumb.image.tweenOver.alpha}))},function(){var e=jQuery(this);jQuery(".CU3ERThumbBG",c).each(function(){jQuery(this).css({background:jQuery(this).parent().hasClass("current")?b.thumb.background.tweenSelected.tint.replace("0x","#"):b.thumb.background.tweenShow.tint.replace("0x","#"),opacity:jQuery(this).parent().hasClass("current")?
b.thumb.background.tweenSelected.alpha:b.thumb.background.tweenShow.alpha})});typeof b.thumb.title!="undefined"&&jQuery(this).find(".CU3ERtitle").css({color:jQuery(e).hasClass("current")?b.thumb.title.tweenSelected.tint.replace("0x","#"):b.thumb.title.tweenShow.tint.replace("0x","#"),opacity:jQuery(e).hasClass("current")?b.thumb.title.tweenSelected.alpha:b.thumb.title.tweenShow.alpha});typeof b.thumb.image!="undefined"&&jQuery(".CU3ERThumb img",c).each(function(){jQuery(this).parent().css({opacity:jQuery(this).parent().parent().parent().hasClass("current")?
b.thumb.image.tweenSelected.alpha:b.thumb.image.tweenShow.alpha})})}).bind("classChanged",function(){typeof b.thumb.background!="undefined"&&(jQuery(".CU3ERThumbBG",c).css({background:b.thumb.background.tweenShow.tint.replace("0x","#"),opacity:b.thumb.background.tweenShow.alpha}),jQuery(this).find(".CU3ERThumbBG").css({background:b.thumb.background.tweenSelected.tint.replace("0x","#"),opacity:b.thumb.background.tweenSelected.alpha}));typeof b.thumb.title!="undefined"&&(jQuery(".CU3ERtitle",c).css({color:b.thumb.title.tweenShow.tint.replace("0x",
"#"),opacity:b.thumb.title.tweenShow.alpha}),jQuery(this).find(".CU3ERtitle").css({color:b.thumb.title.tweenSelected.tint.replace("0x","#"),opacity:b.thumb.title.tweenSelected.alpha}));typeof b.thumb.image!="undefined"&&(jQuery(".CU3ERThumb img",c).each(function(){jQuery(this).parent().css({opacity:b.thumb.image.tweenShow.alpha})}),jQuery(this).find("img").parent().css({opacity:b.thumb.image.tweenSelected.alpha}))}).borderRadius(b.thumb.background.round_corners).find(".CU3ERThumbBG").css({position:"absolute",
top:0,left:0,background:b.thumb.background.tweenShow.tint.replace("0x","#"),opacity:b.thumb.background.tweenShow.alpha,width:b.thumb.width+"px",height:b.thumb.height+"px",outline:"none"}).borderRadius(b.thumb.background.round_corners).parent().find("a").css({outline:"none",width:b.thumb.width+"px",height:b.thumb.height+"px"}).find("div:first").css({width:b.thumb.width+"px",height:b.thumb.height+"px",position:"relative",cursor:"pointer",overflow:"hidden",outline:"none"});typeof b.thumb.image!="undefined"&&
jQuery(".CU3ERthumbs .CU3ERthumbs-holder .CU3ERThumb a img",c).css({width:b.thumb.image.width+"px",height:b.thumb.image.height+"px",outline:"none",opacity:0}).borderRadius(b.thumb.image.round_corners).parent().css({overflow:"hidden",width:b.thumb.image.width+"px",height:b.thumb.image.height+"px",left:b.thumb.image.x+"px",top:b.thumb.image.y+"px",position:"relative"}).borderRadius(b.thumb.image.round_corners);if(typeof b.scroller!="undefined")b.scroll=="horizontal"?(h=parseInt(b.width),o=o==0?1:o,
b.scroller.maximum=d=Math.ceil(this.slidesTotal/Math.floor(o))*(parseInt(b.thumb.width)+parseInt(b.thumb.spacing_x))+parseInt(b.padding_x)+parseInt(b.thumb.x),b.scroller.slider.width=Math.round(h/d*100),b.scroller.scroll="horizontal"):(h=parseInt(b.height),k=k==0?1:k,b.scroller.maximum=d=Math.ceil(this.slidesTotal/Math.floor(k))*(parseInt(b.thumb.height)+parseInt(b.thumb.spacing_y))+parseInt(b.padding_y)+parseInt(b.thumb.y),b.scroller.slider.width=Math.round(h/d*100),b.scroller.scroll="vertical"),
b.scroller.slider.width<100&&this.drawScrollBar(b.scroller);else{var h=b.scroll=="horizontal"?parseInt(b.thumb.spacing_x):parseInt(b.thumb.spacing_y),k=this.slidesTotal<=k?this.slidesTotal:k,t=b.scroll=="horizontal"?o:k,q=b.scroll=="horizontal"?parseInt(b.thumb.width):parseInt(b.thumb.height);b.maximum=Math.ceil(this.slidesTotal/Math.floor(k))*(parseInt(b.thumb.height)+parseInt(h))-Math.floor(t)*parseInt(h)+parseInt(b.padding_x);if(Math.round(b.maximum/d*100)<100)n?b.maximim=Math.ceil(this.slidesTotal/
Math.floor(t))*q+h:b.maximum=d-q+h,this.attachScrollBehavior(b)}m=jQuery(".CU3ERthumbs .CU3ERthumbs-holder .CU3ERThumb",c);m.each(function(b){jQuery(m[b]).bind("click touchstart",function(){if(CU3ER[f].current!=b&&!CU3ER[f].inTransition)CU3ER[f].inTransition=!0,CU3ER[f].doCheck=!1,setTimeout(function(){CU3ER[f].skipTo(b,!0,!1)},50);return!1})})},drawScrollBar:function(b){var f=this.id,c=this.el;CU3ER[f].debug("drawing scrollbar and attaching scroll behavior");var b=jQuery.extend(!0,{align_pos:"TL",
x:0,y:0,width:10,height:10,round_corners:"5,5,5,5",bar:{color:"0x777777",alpha:0.9},slider:{thickness:6,color:"0xbbbbbb",alpha:1}},b),e=!1,g=0,d=0,h=0,k=0,o=jQuery(".CU3ERthumbsBG",c).outerWidth(),p=jQuery(".CU3ERthumbsBG",c).outerHeight(),o=this.calculatePosition({width:parseInt(b.width),height:parseInt(b.height),x:parseInt(b.x),y:parseInt(b.y),align_pos:b.align_pos,fullWidth:o,fullHeight:p});jQuery(".CU3ERthumbs",c).append('<div class="CU3ERscroll-holder"><div class="CU3ERscroll"></div></div>');
jQuery(".CU3ERthumbs",c).bind("mouseover",function(e){var d=jQuery(e.currentTarget).offset();if(b.scroll=="horizontal"){var g=Math.round(d.left+jQuery(e.currentTarget).width()/3),h=Math.round(d.left+jQuery(e.currentTarget).width()/3*2),d=jQuery(".CU3ERThumbsScroll",c).width(),k=jQuery(".CU3ERscroll",c).width(),p=Math.round((parseInt(b.height)-parseInt(b.slider.thickness))/2),o=(d-k-p)*100/parseInt(d),o=o*b.maximum/100,k=(d-k)*100/parseInt(d),k=k*b.maximum/100,e=parseInt(e.clientX);if(e<g){var u=-parseInt(jQuery(".CU3ERthumbs-holder",
c).css("marginLeft"));scrollPXMovement=Math.round((g-e)*(g-e)/(g+u))*50;scrollPX=u-scrollPXMovement>0?u-scrollPXMovement:0;scrollPercentage=parseInt(scrollPX/b.maximum*100);e=Math.ceil(scrollPercentage*parseInt(d)/100);CU3ER[f].scrollTo(e>p?e:p,scrollPX,"LR",!0)}else e>h&&(u=-parseInt(jQuery(".CU3ERthumbs-holder",c).css("marginLeft")),scrollPXMovement=Math.round((h-e)*(h-e)/(h+u))*50,scrollPX=u+scrollPXMovement<o?u+scrollPXMovement:o,scrollPX2=u+scrollPXMovement<k?u+scrollPXMovement:k,scrollPercentage=
parseInt(scrollPX/b.maximum*100),e=Math.ceil(scrollPercentage*parseInt(d)/100),CU3ER[f].scrollTo(e,scrollPX2,"LR",!0))}else g=Math.round(d.top+jQuery(e.currentTarget).height()/3),h=Math.round(d.top+jQuery(e.currentTarget).height()/3*2),d=jQuery(".CU3ERscroll-holder",c).height(),k=jQuery(".CU3ERscroll",c).height(),p=Math.round((parseInt(b.width)-parseInt(b.slider.thickness))/2),o=(d-k-p)*100/parseInt(d),o=o*b.maximum/100,k=(d-k)*100/parseInt(d),k=k*b.maximum/100,e=parseInt(e.clientY),e<g?(u=-parseInt(jQuery(".CU3ERthumbs-holder",
c).css("marginTop")),scrollPXMovement=Math.round((g-e)*(g-e)/(g+u))*50,scrollPX=u-scrollPXMovement>0?u-scrollPXMovement:0,scrollPercentage=scrollPX/b.maximum*100,e=Math.ceil(scrollPercentage*parseInt(d)/100),CU3ER[f].scrollTo(e>p?e:p,scrollPX,"TB",!0)):e>h&&(u=-parseInt(jQuery(".CU3ERthumbs-holder",c).css("marginTop")),scrollPXMovement=Math.round((h-e)*(h-e)/(h+u))*50,scrollPX=u+scrollPXMovement<o?u+scrollPXMovement:o,scrollPX2=u+scrollPXMovement<k?u+scrollPXMovement:k,scrollPercentage=scrollPX/b.maximum*
100,e=Math.ceil(scrollPercentage*parseInt(d)/100),CU3ER[f].scrollTo(e,scrollPX2,"TB",!0))});jQuery(".CU3ERscroll-holder",c).css(o).css({width:b.width+"px",height:b.height+"px",position:"absolute",background:b.bar.color.replace("0x","#"),opacity:b.bar.alpha,"z-index":1E7,outline:"none",lineHeight:"1px"}).borderRadius(b.round_corners).find(".CU3ERscroll").css({background:b.slider.color.replace("0x","#"),opacity:b.slider.alpha,height:b.scroll=="horizontal"?b.slider.thickness+"px":Math.floor(b.slider.width)+
"%",width:b.scroll=="horizontal"?Math.floor(b.slider.width)+"%":b.slider.thickness+"px",position:"absolute",top:b.scroll=="horizontal"?Math.round((parseInt(b.height)-parseInt(b.slider.thickness))/2):Math.round((parseInt(b.width)-parseInt(b.slider.thickness))/2),left:b.scroll=="horizontal"?Math.round((parseInt(b.height)-parseInt(b.slider.thickness))/2):Math.round((parseInt(b.width)-parseInt(b.slider.thickness))/2),cursor:"pointer","z-index":10000001,outline:"none",lineHeight:"1px"}).borderRadius(b.round_corners).bind("mousedown",
function(b){e=!0;b.preventDefault();g=b.clientX;d=b.clientY;h=parseFloat(jQuery(".CU3ERscroll",c).css("left"));k=parseFloat(jQuery(".CU3ERscroll",c).css("top"))});jQuery(document).bind("mousemove",function(p){if(e)if(b.scroll=="horizontal"){var n=jQuery(".CU3ERscroll-holder",c).width(),m=jQuery(".CU3ERscroll",c).width(),m=n-m,o=m*100/parseInt(n),o=Math.ceil(o*b.maximum/100),p=parseInt(p.clientX-g)+h;p>m?(p=m-Math.round((parseInt(b.height)-parseInt(b.slider.thickness))/2),scrollPX=o):p<0?(p=Math.round((parseInt(b.height)-
parseInt(b.slider.thickness))/2),scrollPX=0):(scrollPercentage=p*100/parseInt(n),scrollPX=Math.ceil(scrollPercentage*b.maximum/100));CU3ER[f].scrollTo(p,scrollPX,"LR",!1)}else n=jQuery(".CU3ERscroll-holder",c).height(),m=jQuery(".CU3ERscroll",c).height(),m=n-m,o=m*100/parseInt(n),o=Math.ceil(o*b.maximum/100),p=parseInt(p.clientY-d)+k,p>m?(p=m-Math.round((parseInt(b.width)-parseInt(b.slider.thickness))/2),scrollPX=o):p<0?(p=Math.round((parseInt(b.width)-parseInt(b.slider.thickness))/2),scrollPX=0):
(scrollPercentage=p*100/parseInt(n),scrollPX=Math.ceil(scrollPercentage*b.maximum/100)),CU3ER[f].scrollTo(p,scrollPX,"TB",!1)}).bind("mouseup",function(){e=!1})},updateIndicator:function(b,f,c,e){var g=this.id,d=this.el;if(b==f)typeof this.circularPBOptions!="undefined"&&typeof this.circularPBOptions.startSlider!="undefined"&&this.circularPBOptions.startSlider==!0?(this.circularPBOptions.endDeg=360,this.animateCircularProgressbarTo(this.circularPBOptions),CU3ER[g].initSlider()):jQuery(c).find(".CU3ERprogress").animate({width:typeof b==
"string"?b:"100%"},"normal",function(){e==!0?(jQuery(".CU3ERindicator",d).fadeOut(400,function(){jQuery(this).remove()}),setTimeout(function(){CU3ER[g].initSlider()},400)):jQuery(c).fadeOut("fast").css("display","block").remove()});else{var h=jQuery(c).find(".CU3ERprogress").css("width"),k=Math.round(100/f*b);typeof this.circularPBOptions!="undefined"&&typeof this.circularPBOptions.startSlider!="undefined"&&this.circularPBOptions.startSlider==!0?(this.circularPBOptions.endDeg=360*k/100,this.animateCircularProgressbarTo(this.circularPBOptions)):
k>parseInt(h)&&jQuery(c).find(".CU3ERprogress").animate({width:typeof b=="string"?b:Math.round(100/f*b)+"%"})}},initSlider:function(){var b=this.id,f=this.el;this.keyboardControlls&&jQuery(document).bind("keydown",function(c){if(c.which=="37"&&!CU3ER[b].inTransition)CU3ER[b].inTransition=!0,CU3ER[b].doCheck=!1,setTimeout(function(){CU3ER[b].prev()},50);if(c.which=="39"&&!CU3ER[b].inTransition)CU3ER[b].inTransition=!0,CU3ER[b].doCheck=!1,setTimeout(function(){CU3ER[b].next()},50)});var c=CU3ER[b].xml,
e;try{e=window.ActiveXObject?c.xml:(new XMLSerializer).serializeToString(c)}catch(g){e=c}if(typeof e=="undefined"||e=="")e=c;var d=e.match(/(<licence>(.)*<\/licence>)+/gi);d!=null?d.push(CU3ER[b].licenseStr):d=Array(CU3ER[b].licenseStr);if(d!=null){for(c=0;c<d.length;c++)d[c]=d[c].split("<licence>").join("").split("</licence>").join(""),d[c]=d[c].split("<![CDATA[").join("").split("]]\>").join("");c=!1;if(d.length!=0){var h=document.location.href.toLowerCase(),h=h.split("https://").join("").split("http://").join("").split("www.").join(""),
h=h.split("/")[0];h=="file:"&&(h="localdrive");for(var k=h.split(".");k.length>4;)k.splice(0,1);for(var o=k,p,r,n="",m=",join,www.,split,http://,https://,/,charCodeAt,length,fromCharCode".split(","),h=h[m[3]](m[5])[m[1]](m[0])[m[3]](m[4])[m[1]](m[0])[m[3]](m[2])[m[1]](m[0]),h=h[m[3]](m[6])[0],c=0;c<32;c++){p=c%2+1;for(e=r=0;e<h[m[8]];)r+=(h[m[7]](e)+3)%(c+1)*(h[m[7]](e)+2),e+=p;r=r%94+33;r==60&&(r=58);r==62&&(r=59);n+=String[m[9]](r)}var s=!1;for(l=0;l<d.length;l++)s=s||n==d[l].toString();n=n.split("+").join(" ");
for(l=0;l<d.length;l++)s=s||n==d[l].toString();if(k.length>3){n="";k=k.slice(1);k=k.slice(1);h=k.join(".");m=",join,www.,split,http://,https://,/,charCodeAt,length,fromCharCode".split(",");h=h[m[3]](m[5])[m[1]](m[0])[m[3]](m[4])[m[1]](m[0])[m[3]](m[2])[m[1]](m[0]);h=h[m[3]](m[6])[0];for(c=0;c<32;c++){p=c%2+1;for(e=r=0;e<h[m[8]];)r+=(h[m[7]](e)+3)%(c+1)*(h[m[7]](e)+2),e+=p;r=r%94+33;r==60&&(r=58);r==62&&(r=59);n+=String[m[9]](r)}for(l=0;l<d.length;l++)s=s||n==d[l].toString();n=n.split("+").join(" ");
for(l=0;l<d.length;l++)s=s||n==d[l].toString()}k=o;if(k.length>2){n="";k=k.slice(1);h=k.join(".");m=",join,www.,split,http://,https://,/,charCodeAt,length,fromCharCode".split(",");h=h[m[3]](m[5])[m[1]](m[0])[m[3]](m[4])[m[1]](m[0])[m[3]](m[2])[m[1]](m[0]);h=h[m[3]](m[6])[0];for(c=0;c<32;c++){p=c%2+1;for(e=r=0;e<h[m[8]];)r+=(h[m[7]](e)+3)%(c+1)*(h[m[7]](e)+2),e+=p;r=r%94+33;r==60&&(r=58);r==62&&(r=59);n+=String[m[9]](r)}for(l=0;l<d.length;l++)s=s||n==d[l].toString();n=n.split("+").join(" ");for(l=
0;l<d.length;l++)s=s||n==d[l].toString()}c=s?!0:!1}else c=!1}else c=!1;jQuery(".CU3ERbackground",f).css({display:"block"});jQuery(".CU3ERslides-holder div.CU3ERslide, .CU3ERthumbs",f).css("visibility","visible");if(!c){CU3ER[b].rnd!=null&&CU3ER[b].rnd.remove();for(c="";c.length<16;)c+=String.fromCharCode(65+Math.floor(Math.random()*25));e=json.settings.branding.align_to=="stage"?this.stage:this.slides;if(this.supportCanvas()){jQuery(e).append('<div class="'+c+'"><canvas id="l-'+c+'"/></div>');CU3ER[b].rnd=
jQuery("."+c);cssBrandingFixed={position:"absolute",width:"40px",height:"40px",display:"none",cursor:"pointer","z-index":1E3};d=document.getElementById("l-"+c);d.width=d.height=40;h=d.getContext("2d");k=h.getImageData(0,0,d.width,d.height);o=imgLogo.split(",");for(c=0;c<d.height;c++)for(e=0;e<d.width;e++)m=(e+c*40)*4,s=parseInt(o[e+c*40],16),p=s>>24&255,r=s>>16&255,n=s>>8&255,s&=255,k.data[m+0]=r,k.data[m+1]=n,k.data[m+2]=s,k.data[m+3]=p;h.putImageData(k,0,0)}else jQuery(e).append('<div class="'+
c+'"></div>'),CU3ER[b].rnd=jQuery("."+c),CU3ER[b].rnd=jQuery("."+c,f),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[b].json.settings.branding.align_pos,x:CU3ER[b].json.settings.branding.x,y:CU3ER[b].json.settings.branding.y,width:40,height:40,fullWidth:CU3ER[b].json.settings.width,fullheight:CU3ER[b].json.settings.height};
cssBranding=this.calculatePosition(optionsBranding);if(typeof cssBranding.bottom=="undefined")cssBranding.top="5px";if(typeof cssBranding.left=="undefined")cssBranding.right="5px";cssBranding=jQuery.extend(cssBrandingFixed,cssBranding);CU3ER[b].rnd.css(cssBranding);CU3ER[b].rnd.fadeIn("slow").bind("click",function(){window.open("http://getcu3er.com/"+(typeof CU3ER[b].json.referral!="undefined"?"?cu3er="+CU3ER[b].json.referral:""),"CU3ER")})}this.circularPBOptions={color1:null,color2:null,opacity1:null,
opacity2:null,padding:null,radius:null,startPoint:null,endPoint:null,tempTimeout:null,shape:"linear"};var c=this.elements=jQuery(".CU3ERslide",f),t=c.length;c.each(function(){jQuery(this).css({display:"none","z-index":t});t--});CU3ER[b].handleAutoHide({prev_button:CU3ER[b].json.controls.prev_button,next_button:CU3ER[b].json.controls.next_button},CU3ER[b].json.controls.auto_play_indicator,CU3ER[b].json.description,CU3ER[b].json.thumbnails);this.transition=jQuery.extend(!0,{},CU3ER[b].jsonOriginal.defaults.transition,
CU3ER[b].jsonOriginal.slides.transition[CU3ER[b].current]);this.transition.scaleX=typeof this.json.slides.slide[this.current].image!="undefined"?this.json.slides.slide[this.current].image.scaleX:1;this.transition.scaleY=typeof this.json.slides.slide[this.current].image!="undefined"?this.json.slides.slide[this.current].image.scaleY:1;if(c.length==1)jQuery(".CU3ERslides-holder",f).append(jQuery(c[0]).clone()),c=this.elements=jQuery(".CU3ERslides-holder div.CU3ERslide",f);CU3ER[b].current=typeof CU3ER[b].current!=
"number"?0:CU3ER[b].current;jQuery(c[CU3ER[b].current]).css("display","block");jQuery(CU3ER[b].stage).find("a").css({"text-decoration":"none"});jQuery(CU3ER[b].stage).find("img").css({border:"none"});jQuery(".CU3ERbuttonNext, .CU3ERbuttonPrev",f).fadeIn("fast");this.rollOverPause&&jQuery(this.stage).hover(function(){if(CU3ER[b].pauseType!=2)CU3ER[b].pauseType=1,CU3ER[b].mOver=!0,CU3ER[b].pause()},function(){if(CU3ER[b].pauseType!=2&&(CU3ER[b].mOver=!1,CU3ER[b].paused))CU3ER[b].pauseType=1,CU3ER[b].pause()});
jQuery(".CU3ERindicator",f).fadeOut("fast");this.switchThumbnailClass(this.current);this.onLoadComplete(this.slidesOrder);this.onTransitionComplete()},calculatePosition:function(b){var f={};switch(b.align_pos){case "TL":f={top:parseFloat(b.y)+"px",left:parseFloat(b.x)+"px"};break;case "TC":f={top:parseFloat(b.y)+"px",left:Math.round(Math.floor(parseFloat(b.fullWidth)/2)-Math.floor(parseFloat(b.width)/2)+parseFloat(b.x))+"px"};break;case "TR":f={top:parseFloat(b.y)+"px",left:Math.round(Math.floor(parseFloat(b.fullWidth)-
parseFloat(b.width)+parseFloat(b.x)))+"px"};break;case "BL":f={top:Math.round(Math.floor(parseFloat(b.fullHeight)-parseFloat(b.height))+parseFloat(b.y))+"px",left:parseFloat(b.x)+"px"};break;case "BC":f={top:Math.round(Math.floor(parseFloat(b.fullHeight)-parseFloat(b.height))+parseFloat(b.y))+"px",left:Math.round(Math.floor(parseFloat(b.fullWidth)/2)-Math.floor(parseFloat(b.width)/2)+parseFloat(b.x))+"px"};break;case "BR":f={top:Math.round(Math.floor(parseFloat(b.fullHeight)-parseFloat(b.height))+
parseFloat(b.y))+"px",left:Math.round(Math.floor(parseFloat(b.fullWidth)-parseFloat(b.width)+parseFloat(b.x)))+"px"};break;case "ML":f={top:Math.round(Math.floor(parseFloat(b.fullHeight)/2)-Math.floor(parseFloat(b.height)/2)+parseFloat(b.y))+"px",left:parseFloat(b.x)+"px"};break;case "MC":f={top:Math.round(Math.floor(parseFloat(b.fullHeight)/2)-Math.floor(parseFloat(b.height)/2)+parseFloat(b.y))+"px",left:Math.round(Math.floor(parseFloat(b.fullWidth)/2)-Math.floor(parseFloat(b.width)/2)+parseFloat(b.x))+
"px"};break;case "MR":f={top:Math.round(Math.floor(parseFloat(b.fullHeight)/2)-Math.floor(parseFloat(b.height)/2)+parseFloat(b.y))+"px",left:Math.round(Math.floor(parseFloat(b.fullWidth)-parseFloat(b.width)+parseFloat(b.x)))+"px"}}return f},attachScrollBehavior:function(b){var f=this.id,c=this.el;CU3ER[f].debug("attaching scroll behavior to thumbs since there is no scroller");jQuery(".CU3ERthumbs",c).bind("mouseover",function(e){var g=jQuery(e.currentTarget).offset();if(b.scroll=="horizontal"){var d=
jQuery(".CU3ERThumbsScroll",c).width(),h=jQuery(".CU3ERthumbs-holder .CU3ERThumb",c),h=(jQuery(h[0]).width()+parseInt(jQuery(h[0]).css("left")))*h.length;if(h>d){var d=Math.round(g.left+parseInt(b.width)/3),k=Math.round(g.left+parseInt(b.width)/3*2),e=parseInt(e.clientX),g=parseInt(b.maximum)-parseInt(b.width)+CU3ER[f].slidesTotal*b.thumb.spacing_x;e<d?(h=-parseInt(jQuery(".CU3ERthumbs-holder",c).css("margin-left")),scrollPXMovement=Math.floor((d-e)*(d-e)/(d+h))*50,scrollPX=h-scrollPXMovement>0?h-
scrollPXMovement:0,CU3ER[f].scrollTo(0,scrollPX,"LR",!0)):e>k&&(h=-parseInt(jQuery(".CU3ERthumbs-holder",c).css("margin-left")),scrollPXMovement=Math.floor((k-e)*(k-e)/(k+h))*50,scrollPX=h+scrollPXMovement<g?h+scrollPXMovement:g,CU3ER[f].scrollTo(0,scrollPX,"LR",!0))}}else d=jQuery(".CU3ERThumbsScroll",c).height(),h=jQuery(".CU3ERthumbs-holder .CU3ERThumb",c),h=(jQuery(h[0]).height()+parseInt(jQuery(h[0]).css("top")))*h.length,h>d&&(d=Math.round(g.top+parseInt(b.height)/3),k=Math.round(g.top+parseInt(b.height)/
3*2),e=parseInt(e.clientY),g=parseInt(b.maximum)-parseInt(b.height)+CU3ER[f].slidesTotal*b.thumb.spacing_y,e<d?(h=-parseInt(jQuery(".CU3ERthumbs-holder",c).css("margin-top")),scrollPXMovement=Math.floor((d-e)*(d-e)/(d+h))*50,scrollPX=h-scrollPXMovement>0?h-scrollPXMovement:0,CU3ER[f].scrollTo(0,scrollPX,"TB",!0)):e>k&&(h=-parseInt(jQuery(".CU3ERthumbs-holder",c).css("margin-top")),scrollPXMovement=Math.floor((k-e)*(k-e)/(k+h))*50,scrollPX=h+scrollPXMovement<g?h+scrollPXMovement:g,CU3ER[f].scrollTo(0,
scrollPX,"TB",!0)))})},scrollTo:function(b,f,c,e){var g=this.el;e===!1?c=="TB"?(jQuery(".CU3ERscroll",g).stop().css({top:b}),jQuery(".CU3ERthumbs-holder",g).stop().css({marginTop:-f+"px"})):(jQuery(".CU3ERscroll",g).stop().css({left:b}),jQuery(".CU3ERthumbs-holder",g).stop().css({marginLeft:-f+"px"})):c=="TB"?(jQuery(".CU3ERscroll",g).stop().animate({top:b},"slow"),jQuery(".CU3ERthumbs-holder",g).stop().animate({marginTop:-f+"px"},"noramal")):(jQuery(".CU3ERscroll",g).stop().animate({left:b},"slow"),
jQuery(".CU3ERthumbs-holder",g).stop().animate({marginLeft:-f+"px"},"normal"))},next:function(){if(this.isFlash)this.registerFlash(),this.swf.next();else if(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(){if(this.isFlash)this.registerFlash(),this.swf.prev();else if(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(b,f,c){var e=this.id,g=this.el;if(this.isFlash)this.registerFlash(),this.swf.skipTo(b-1);else if(this.inTransition!==!0||this.doCheck==!1){this.doCheck=!0;b=typeof f!="undefined"&&f===!0?b:b-1;f=typeof c!="undefined"?c:!0;this.inTransition=!0;clearTimeout(this.tempTimeout[this.current]);clearTimeout(this.tempTimeout[b]);clearTimeout(this.circularPBOptions.tempTimeout);this.stopFlag=!0;c=this.elements;jQuery(c[b]).hasClass("notLoaded")?
(jQuery(c[CU3ER[e].current]).parent().append('<div class="CU3ERpreloader"></div>'),loaderCSS={width:50,height:50,align_pos:"MC",x:0,y:0,fullWidth:CU3ER[e].json.slides.width,fullHeight:CU3ER[e].json.slides.height},preloaderCSSFinal=CU3ER[e].calculatePosition(loaderCSS),jQuery(".CU3ERpreloader",g).css(preloaderCSSFinal).css({"z-index":1E3}),jQuery(c[CU3ER[e].calculateNext(CU3ER[e].current)]).bind("classChanged",function(){CU3ER[e].skipTo(b,!0,!0)})):(jQuery(".CU3ERpreloader",g).remove(),this.nextSlide=
b,this.startTransition(f));var f=CU3ER[e].xml,d;try{d=window.ActiveXObject?f.xml:(new XMLSerializer).serializeToString(f)}catch(h){d=f}if(typeof d=="undefined"||d=="")d=f;c=d.match(/(<licence>(.)*<\/licence>)+/gi);c!=null?c.push(CU3ER[e].licenseStr):c=Array(CU3ER[e].licenseStr);if(c!=null){for(d=0;d<c.length;d++)c[d]=c[d].split("<licence>").join("").split("</licence>").join(""),c[d]=c[d].split("<![CDATA[").join("").split("]]\>").join("");d=!1;if(c.length!=0){var k=document.location.href.toLowerCase(),
k=k.split("https://").join("").split("http://").join("").split("www.").join(""),k=k.split("/")[0];k=="file:"&&(k="localdrive");for(var o=k.split(".");o.length>4;)o.splice(0,1);var p=o,r,n="",m=",join,www.,split,http://,https://,/,charCodeAt,length,fromCharCode".split(","),k=k[m[3]](m[5])[m[1]](m[0])[m[3]](m[4])[m[1]](m[0])[m[3]](m[2])[m[1]](m[0]),k=k[m[3]](m[6])[0];for(d=0;d<32;d++){r=d%2+1;for(f=b=0;f<k[m[8]];)b+=(k[m[7]](f)+3)%(d+1)*(k[m[7]](f)+2),f+=r;b=b%94+33;b==60&&(b=58);b==62&&(b=59);n+=String[m[9]](b)}var s=
!1;for(l=0;l<c.length;l++)s=s||n==c[l].toString();n=n.split("+").join(" ");for(l=0;l<c.length;l++)s=s||n==c[l].toString();if(o.length>3){n="";o=o.slice(1);o=o.slice(1);k=o.join(".");m=",join,www.,split,http://,https://,/,charCodeAt,length,fromCharCode".split(",");k=k[m[3]](m[5])[m[1]](m[0])[m[3]](m[4])[m[1]](m[0])[m[3]](m[2])[m[1]](m[0]);k=k[m[3]](m[6])[0];for(d=0;d<32;d++){r=d%2+1;for(f=b=0;f<k[m[8]];)b+=(k[m[7]](f)+3)%(d+1)*(k[m[7]](f)+2),f+=r;b=b%94+33;b==60&&(b=58);b==62&&(b=59);n+=String[m[9]](b)}for(l=
0;l<c.length;l++)s=s||n==c[l].toString();n=n.split("+").join(" ");for(l=0;l<c.length;l++)s=s||n==c[l].toString()}o=p;if(o.length>2){n="";o=o.slice(1);k=o.join(".");m=",join,www.,split,http://,https://,/,charCodeAt,length,fromCharCode".split(",");k=k[m[3]](m[5])[m[1]](m[0])[m[3]](m[4])[m[1]](m[0])[m[3]](m[2])[m[1]](m[0]);k=k[m[3]](m[6])[0];for(d=0;d<32;d++){r=d%2+1;for(f=b=0;f<k[m[8]];)b+=(k[m[7]](f)+3)%(d+1)*(k[m[7]](f)+2),f+=r;b=b%94+33;b==60&&(b=58);b==62&&(b=59);n+=String[m[9]](b)}for(l=0;l<c.length;l++)s=
s||n==c[l].toString();n=n.split("+").join(" ");for(l=0;l<c.length;l++)s=s||n==c[l].toString()}d=s?!0:!1}else d=!1}else d=!1;if(!d){CU3ER[e].rnd!=null&&CU3ER[e].rnd.remove();for(d="";d.length<16;)d+=String.fromCharCode(65+Math.floor(Math.random()*25));f=json.settings.branding.align_to=="stage"?this.stage:this.slides;if(this.supportCanvas()){jQuery(f).append('<div class="'+d+'"><canvas id="l-'+d+'"/></div>');CU3ER[e].rnd=jQuery("."+d);cssBrandingFixed={position:"absolute",width:"40px",height:"40px",
cursor:"pointer","z-index":1E3};g=document.getElementById("l-"+d);g.width=g.height=40;c=g.getContext("2d");k=c.getImageData(0,0,g.width,g.height);o=imgLogo.split(",");for(d=0;d<g.height;d++)for(f=0;f<g.width;f++)m=(f+d*40)*4,s=parseInt(o[f+d*40],16),p=s>>24&255,r=s>>16&255,n=s>>8&255,s&=255,k.data[m+0]=r,k.data[m+1]=n,k.data[m+2]=s,k.data[m+3]=p;c.putImageData(k,0,0)}else jQuery(f).append('<div class="'+d+'"></div>'),CU3ER[e].rnd=jQuery("."+d),CU3ER[e].rnd=jQuery("."+d,g),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[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);if(typeof cssBranding.bottom=="undefined")cssBranding.top=
"5px";if(typeof cssBranding.left=="undefined")cssBranding.right="5px";cssBranding=jQuery.extend(cssBrandingFixed,cssBranding);CU3ER[e].rnd.css(cssBranding);CU3ER[e].rnd.bind("click",function(){window.open("http://getcu3er.com/"+(typeof CU3ER[e].json.referral!="undefined"?"?cu3er="+CU3ER[e].json.referral:""),"CU3ER")})}}},clearTimeouts:function(){var b=this.id;clearTimeout(this.tempTimeout[this.nextSlide]);clearTimeout(this.tempTimeout[this.current]);for(i in this.tempTimeout)clearTimeout(CU3ER[b].tempTimeout[i]),
delete CU3ER[b].tempTimeout[i];clearTimeout(this.tempTimeout)},destroy:function(){var b=this.id;this.paused=!0;clearTimeout(this.tempTimeout[this.nextSlide]);clearTimeout(this.tempTimeout[this.current]);for(i in this.tempTimeout)clearTimeout(CU3ER[b].tempTimeout[i]),delete CU3ER[b].tempTimeout[i];clearTimeout(this.tempTimeout);CU3ER[b]=null},destroyAll:function(){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(b){var f=this.id,c=this.el;this.clearTimeouts();jQuery(".CU3ERtransition",c).remove();this.first=this.last=!1;if(this.json.slides.slide.length==1)var e=0;else if(b==!0)if(this.current==parseInt(this.slidesTotal-1)&&this.nextSlide==0)this.directionReverse=!1,this.last=!0,e=this.json.slides.slide[this.current].originalPosition;else if(this.current==
0&&this.nextSlide==parseInt(this.slidesTotal-1))this.first=this.directionReverse=!0,e=this.json.slides.slide[this.nextSlide].originalPosition;else if(this.current>this.nextSlide)this.directionReverse=!0,e=this.json.slides.slide[this.nextSlide].originalPosition;else{if(this.current<this.nextSlide)this.directionReverse=!1,e=this.json.slides.slide[this.current].originalPosition}else this.nextFlag==!0?(this.directionReverse=!1,e=this.json.slides.slide[this.current].originalPosition):(this.directionReverse=
!0,e=this.json.slides.slide[this.nextSlide].originalPosition);e=typeof e!="undefined"?e:0;this.onTransition(parseInt(e)+1);this.transition=jQuery.extend(!0,{},{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"},CU3ER[f].jsonOriginal.defaults.transition,CU3ER[f].jsonOriginal.slides.transition[e]);
this.transition.classNo=e;this.transition.scaleX=typeof this.json.slides.slide[e].image!="undefined"?this.json.slides.slide[e].image.scaleX:1;this.transition.scaleY=typeof this.json.slides.slide[e].image!="undefined"?this.json.slides.slide[e].image.scaleY:1;b=this.transition.flipOrder=="90"||this.transition.flipOrder=="270"?parseInt(this.transition.rows):this.transition.flipOrder=="0"||this.transition.flipOrder=="180"?parseInt(this.transition.columns):parseInt(this.transition.rows)*parseInt(this.transition.columns);
this.transition.time=parseFloat(parseFloat(this.transition.flipDuration)+parseFloat(this.transition.flipDelay)*(b-1));b=this.elements;this.switchThumbnailClass(this.nextSlide);b.each(function(b){b!=CU3ER[f].current&&b!=CU3ER[f].nextSlide&&jQuery(this).css("display","none")});jQuery(".CU3ERlayer",c).css("display","block");b.length==2?jQuery(b[0]).trigger("startTransition"):jQuery(b[CU3ER[f].current]).trigger("startTransition");this.is3D()||this.isCameraFlat()?this.transition.type=="3D"||parseInt(this.transition.rows)>
1||parseInt(this.transition.columns)>1?this.transitionSlices():typeof this.transition.type2D!="undefined"||this.transition.type2D=="slide"?this.transitionSlices():this.transitionFade():this.transitionFade()},transitionFade:function(){var b=this.id,f=this.elements;jQuery(f).css({"z-index":1,opacity:1});f.each(function(c){c!=CU3ER[b].current&&jQuery(this).css({display:"none"})});if(!this.is3D())var c=this.transition.type=="2D"&&this.transition.type2D=="fade"?parseFloat(CU3ER[b].transition.time)*1E3:
parseFloat(this.transition.flipDuration)*1E3;var e=typeof CU3ER[b].transition.flipEasing!="undefined"?CU3ER[b].transition.flipEasing:"Sine.easeInOut";this.nextSlide<this.current?(jQuery(f[CU3ER[b].nextSlide]).css({display:"block","z-index":1,"-wekbit-transform":"translateZ(2px)"}),jQuery(f[this.current]).css({"z-index":2,opacity:1,"-webkit-animation":"","-wekbit-transform":"translateZ(1px)"}).fadeOut({duration:c,easing:CU3ER[b].easingValues[e],complete:function(){CU3ER[b].onTransitionComplete()}})):
(jQuery(f[this.current]).css({"z-index":1,"-webkit-transform":"translateZ(2px)"}),jQuery(f[this.nextSlide]).css({"z-index":2,"-webkit-transform":"translateZ(1px)"}).fadeIn({duration:c,easing:CU3ER[b].easingValues[e],complete:function(){jQuery(f[CU3ER[b].current]).css({opacity:1,display:"none"});CU3ER[b].onTransitionComplete()}}))},transitionSlices:function(){var b=this.id,f=this.el;jQuery(".CU3ERtransition-holder",f).css("display","block");var c={fade:1,up:2,down:3,left:4,right:5,random:6},e=this.is3D()?
this.transition.type:"2D",g=[],d=this.transition.flipDirection.split(",");if(this.transition.type2D=="fade"&&e=="2D")c=1;else if(d.length>1){for(m=0;m<d.length;m++)g[m]=c[d[m]];c=6}else c=c[d[0]];var h=this.directionReverse,g=this.setDirections(this.transition,c,g),c=parseInt(this.transition.rows)*parseInt(this.transition.columns),d=this.elements,k="",o=0,p=0,r=Math.ceil(jQuery(".CU3ERslides-holder",f).width()/parseInt(this.transition.columns)),n=Math.ceil(jQuery(".CU3ERslides-holder",f).height()/
parseInt(this.transition.rows)),m=jQuery(".CU3ERslides-holder",f).width(),k=jQuery(".CU3ERslides-holder",f).height();jQuery(d[CU3ER[b].current]).css("display","none");jQuery(d[CU3ER[b].nextSlide]).css("display","block");jQuery(".CU3ERtransition-holder",f).append('<div class="CU3ERtransition"></div>').find(".CU3ERtransition").css({position:"absolute",top:0,left:0,margin:0,padding:0,width:m+"px",height:k+"px","z-index":400});m=function(c){var e=jQuery(".CU3ERslides-holder",f),d=e.width(),e=e.height();
c.el.width=d;c.el.height=e;var g=c.el.getContext("2d");if(c.bgcolor!=null&&c.bgcolor!="transparent"){for(var h=c.bgcolor.replace("0x","").match(/(.{2})/g),k=3;k--;)h[k]=parseInt(h[k],16);h="rgba("+h.join(", ")+", 100)";c.bgcolor=h;g.fillStyle=h}else g.fillStyle="rgba(255, 255, 255, 0)";g.fillRect(0,0,d,e);if(typeof jQuery(c.image).attr("src")!="undefined"){h=jQuery(c.image)[0];if(typeof jQuery(c.image).attr("rel")!="undefined"&&jQuery(c.image).attr("rel")!=""){var m=jQuery(c.image).attr("rel").split(":");
m[0]!=c.scaleX&&m[5]!=h.width&&(c.scaleX=m[0]);m[1]!=c.scaleY&&m[6]!=h.height&&(c.scaleY=m[1])}var k=isNaN(parseInt(jQuery(c.image).css("left")))?0:parseInt(jQuery(c.image).css("left")),p=isNaN(parseInt(jQuery(c.image).css("top")))?0:parseInt(jQuery(c.image).css("top")),n,o;n=k<0?k:0;o=p<0?p:0;var q=jQuery("<canvas>")[0];if(CU3ER[b].isCameraFlat()&&!CU3ER[b].is3D())if(jQuery.browser.mozilla)var s=parseInt(jQuery(h).css("width"))!=m[5]?parseInt(jQuery(h).css("width")):m[5],m=parseInt(jQuery(h).css("height"))!=
m[6]?parseInt(jQuery(h).css("height")):m[6];else s=m[5],m=m[6];else s=h.width*parseFloat(c.scaleX),m=h.height*parseFloat(c.scaleY);q.width=Math.max(h.width,s);q.height=Math.max(h.height,m);var r=q.getContext("2d");if(c.bgcolor!=null)r.fillStyle=c.bgcolor,r.fillRect(0,0,Math.max(h.width,s),Math.max(h.height,m));try{r.drawImage(h,n,o,s,m)}catch(t){CU3ER[b].debug(n,o,s,m)}try{d=Math.min(h.width,d),e=Math.min(h.height,e),g.drawImage(q,0,0,d,e,Math.max(0,k),Math.max(0,p),d,e)}catch(u){CU3ER[b].debug(d,
e,Math.max(0,k),Math.max(0,p),s,m)}}};if(this.supportCanvas()){if(typeof CU3ER[b].jsonOriginal.slides.slide.length=="undefined")var k=jQuery.extend(!0,{},CU3ER[b].jsonOriginal.defaults.slide,CU3ER[b].jsonOriginal.slides.slide),s=jQuery.extend(!0,{},CU3ER[b].jsonOriginal.defaults.slide,CU3ER[b].jsonOriginal.slides.slide);else k=jQuery.extend(!0,{},CU3ER[b].jsonOriginal.defaults.slide,CU3ER[b].json.slides.slide[this.current]),s=jQuery.extend(!0,{},CU3ER[b].jsonOriginal.defaults.slide,CU3ER[b].json.slides.slide[this.nextSlide]);
var t=jQuery("<canvas>"),q=typeof k.color!="undefined"?k.color:null;q==null&&(q=typeof CU3ER[b].json.settings.background.color!="undefined"?CU3ER[b].json.settings.background.color:null);q=typeof k.transparent!="undefined"&&k.transparent=="true"?"transparent":q;m({scaleX:e=="2D"&&!CU3ER[b].is3D()&&!CU3ER[b].isCameraFlat()?1:typeof k.image!="undefined"?k.image.scaleX:1,scaleY:e=="2D"&&!CU3ER[b].is3D()&&!CU3ER[b].isCameraFlat()?1:typeof k.image!="undefined"?k.image.scaleY:1,bgcolor:q,image:jQuery(d[CU3ER[b].current]).find("img")[0],
el:t[0]});var v=jQuery("<canvas>"),q=typeof s.color!="undefined"?s.color:null;q==null&&(q=typeof CU3ER[b].json.settings.background.color!="undefined"?CU3ER[b].json.settings.background.color:null);q=typeof s.transparent!="undefined"&&s.transparent=="true"?"transparent":q;m({scaleX:e=="2D"&&!CU3ER[b].is3D()&&!CU3ER[b].isCameraFlat()?1:typeof s.image!="undefined"?s.image.scaleX:1,scaleY:e=="2D"&&!CU3ER[b].is3D()&&!CU3ER[b].isCameraFlat()?1:typeof s.image!="undefined"?s.image.scaleY:1,bgcolor:q,image:jQuery(d[CU3ER[b].nextSlide]).find("img")[0],
el:v[0]})}for(var m=0;m<c;m++){var u=o*r,w=p*n;CU3ER[b].transition.columns==1?(u=0,w=p*n,p==c-1&&(k=jQuery(".CU3ERtransition-holder",f).height()-(c-1)*n,w=p*n-(n-k)),p++):CU3ER[b].transition.rows==1?(w=0,u=o*r,o==c-1&&(k=jQuery(".CU3ERtransition-holder",f).width()-(c-1)*r,u=o*r-(r-k)),o++):o%(parseInt(CU3ER[b].transition.columns)-1)==0?o>0&&parseInt(CU3ER[b].transition.columns)>0?(k=jQuery(".CU3ERtransition-holder",f).width()-(parseInt(CU3ER[b].transition.columns)-1)*r,u=o*r-(r-k),p==parseInt(CU3ER[b].transition.rows)-
1&&(k=jQuery(".CU3ERtransition-holder",f).height()-(parseInt(CU3ER[b].transition.rows)-1)*n,w=p*n-(n-k)),o=0,p++):(p==parseInt(CU3ER[b].transition.rows)-1&&(k=jQuery(".CU3ERtransition-holder",f).height()-(parseInt(CU3ER[b].transition.rows)-1)*n,w=p*n-(n-k)),o++):(p==parseInt(CU3ER[b].transition.rows)-1&&(k=jQuery(".CU3ERtransition-holder",f).height()-(parseInt(CU3ER[b].transition.rows)-1)*n,w=p*n-(n-k)),o++);k=w;s=u;if(h){var y=[];for(a=0;a<g.length;a++){switch(g[a]){case 1:q=1;break;case 2:q=3;break;
case 3:q=2;break;case 4:q=5;break;case 5:q=4;break;default:q=2}y[a]=q}}else y=g;switch(y[m]){case 1:var q={top:0,position:"absolute",left:0,display:"none"},x={top:0,position:"absolute",left:0};break;case 3:jQuery.browser.msie?(q={top:n+"px",position:"absolute",left:0},x={top:0,position:"absolute",left:0}):(q={top:n+"px",position:"absolute"},x={});break;case 2:jQuery.browser.msie?(q={top:-parseInt(n)+"px",position:"absolute",left:0,"margin-top":0},x={top:0,position:"absolute",left:0}):(q={"margin-top":-(parseInt(n)*
2)+"px",position:"absolute"},x={});break;case 4:jQuery.browser.msie?(q={"margin-left":parseInt(r+3)+"px","float":"left",top:0,left:0},x={"float":"left",top:0,left:0}):(q={"margin-left":parseInt(r+3)+"px","float":"left"},x={"float":"left"});break;case 5:q=jQuery.browser.msie?{"margin-left":-parseInt(r+3)+"px","float":"left",top:0,left:0}:{"margin-left":-parseInt(r+3)+"px","float":"left"};x={"float":"left"};break;default:jQuery.browser.msie?(q={top:n+"px",position:"absolute",left:0},x={top:0,position:"absolute",
left:0}):(q={top:n+"px",position:"absolute"},x={})}e=="2D"?(this.supportCanvas()?(k=jQuery("<div>").attr("class","CU3ERtrans").css({position:"absolute",left:s+"px",top:k+"px",width:parseInt(r)+2+"px",height:parseInt(n)+1+"px","z-index":400,overflow:"hidden"}).append('<div class="CU3ERsliceHolder"><div class="CU3ERcurrentSlice" style="width: '+r+"px; height: "+n+'px;"></div><div class="CU3ERnextSlice"></div></div>'),jQuery(k).find(".CU3ERsliceHolder").css({width:"5000px",height:"5000px",position:"relative",
top:0,left:0}).find(".CU3ERcurrentSlice").css({width:parseFloat(r)+"px",height:parseFloat(n)+"px",overflow:"hidden"}).css(x).append(jQuery(d[CU3ER[b].current]).find("img").clone()).find("img").replaceWith("<canvas>"),jQuery(k).find(".CU3ERnextSlice").css({width:parseFloat(r)+"px",height:parseFloat(n)+"px",postion:"absolute",overflow:"hidden",position:"absolute"}).css(q).append(jQuery(d[CU3ER[b].nextSlide]).find("img").clone()).find("img").replaceWith("<canvas>"),jQuery(k).find(".CU3ERcurrentSlice").find("canvas").each(function(){var c=
t[0];this.width=r;this.height=n;var e=this.getContext("2d"),d=u,f=w;try{e.drawImage(c,d,f,r,n,0,0,r,n)}catch(g){CU3ER[b].debug(d,f,r,n,g)}}),jQuery(k).find(".CU3ERnextSlice").find("canvas").each(function(){var c=v[0];this.width=r;this.height=n;var e=this.getContext("2d"),d=u,f=w;try{e.drawImage(c,d,f,r,n,0,0,r,n)}catch(g){CU3ER[b].debug(d,f,r,n,g)}})):(k=jQuery("<div>").attr("class","CU3ERtrans").css({position:"absolute",left:s+"px",top:k+"px",width:parseInt(r)+2+"px",height:parseInt(n)+1+"px","z-index":400,
overflow:"hidden"}).append('<div class="CU3ERsliceHolder"><div class="CU3ERcurrentSlice" style="width: '+r+"px; height: "+n+'px;"></div><div class="CU3ERnextSlice" style="width: '+r+"px; height: "+n+'px;"></div></div>'),jQuery(k).find(".CU3ERsliceHolder").css({width:"700px",height:"700px",position:"relative",top:0,left:0}).find(".CU3ERcurrentSlice").css({width:parseFloat(r)+2+"px",height:parseFloat(n)+1+"px",overflow:"hidden",position:"relative","background-color":jQuery(d[CU3ER[b].current]).css("backgroundColor")!=
""?jQuery(d[CU3ER[b].current]).css("backgroundColor"):"transparent"}).css(x).append(jQuery(d[CU3ER[b].current]).find("img").clone()).find("img").css({position:"absolute",left:CU3ER[b].isCameraFlat()&&!isNaN(parseInt(jQuery(d[CU3ER[b].current]).find("img").css("left")))?-u+parseInt(jQuery(d[CU3ER[b].current]).find("img").css("left")):-u+"px",top:CU3ER[b].isCameraFlat()&&!isNaN(parseInt(jQuery(d[CU3ER[b].current]).find("img").css("top")))?-w+parseInt(jQuery(d[CU3ER[b].current]).find("img").css("top")):
-w+"px"}),jQuery(k).find(".CU3ERnextSlice").css({width:parseFloat(r)+2+"px",height:parseFloat(n)+1+"px",overflow:"hidden",position:"absolute","background-color":jQuery(d[CU3ER[b].nextSlide]).css("backgroundColor")!=""?jQuery(d[CU3ER[b].nextSlide]).css("backgroundColor"):"transparent"}).css(q).append(jQuery(d[CU3ER[b].nextSlide]).find("img").clone()).find("img").css({position:"absolute",left:CU3ER[b].isCameraFlat()&&!isNaN(parseInt(jQuery(d[CU3ER[b].nextSlide]).find("img").css("left")))?-u+parseInt(jQuery(d[CU3ER[b].nextSlide]).find("img").css("left")):
-u+"px",top:CU3ER[b].isCameraFlat()&&!isNaN(parseInt(jQuery(d[CU3ER[b].nextSlide]).find("img").css("top")))?-w+parseInt(jQuery(d[CU3ER[b].nextSlide]).find("img").css("top")):-w+"px"})),jQuery(".CU3ERtransition",f).append(k),jQuery(".CU3ERtransition-holder",f).css({overflow:"hidden"}),jQuery(d[CU3ER[b].current]).css("display","none")):(k=jQuery("<div>").attr("class","CU3ERtrans").css({position:"absolute",left:s+"px",top:k+"px",width:parseInt(r)+1+"px",height:parseInt(n)+1+"px","-webkit-transform-style":"preserve-3d",
"-webkit-backface-visibility":"hidden","-webkit-animation-timing-function":"ease-in-out","z-index":1E3}).append('<div class="CU3ERsliceHolder"><div class="CU3ERcurrentSlice"></div><div class="CU3ERnextSlice"></div></div>'),jQuery(k).find(".CU3ERsliceHolder").css({width:parseInt(r)+"px",height:parseInt(n)+"px","-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"hidden","-webkit-animation-timing-function":"ease-in-out",overflow:"visible",position:"relative"}).find(".CU3ERcurrentSlice").css({width:parseInt(r)+
"px",height:parseInt(n)+"px","-webkit-transform":"translateZ(2px)",top:0,left:0,overflow:"hidden"}).append(jQuery(d[CU3ER[b].current]).find("img").clone()).find("img").replaceWith("<canvas>"),jQuery(k).find(".CU3ERnextSlice").css({width:parseInt(r)+"px",height:parseInt(n)+"px","-webkit-transform":"translateZ(1px)",overflow:"hidden",position:"absolute",top:0,left:0,opacity:0}).append(jQuery(d[CU3ER[b].nextSlide]).find("img").clone()).find("img").replaceWith("<canvas>"),jQuery(k).find(".CU3ERcurrentSlice").find("canvas").each(function(){var c=
t[0];this.width=r;this.height=n;var e=this.getContext("2d"),d=u,f=w;try{e.drawImage(c,d,f,r,n,0,0,r,n)}catch(g){CU3ER[b].debug(d,f,r,n,g)}}),jQuery(k).find(".CU3ERnextSlice").find("canvas").each(function(){var c=v[0];this.width=r;this.height=n;var e=this.getContext("2d"),d=u,f=w;try{e.drawImage(c,d,f,r,n,0,0,r,n)}catch(g){CU3ER[b].debug(d,f,r,n,g)}}),jQuery(".CU3ERtransition",f).css({"-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"hidden"}).append(k),jQuery(".CU3ERtransition-holder",
f).css({overflow:"visible","-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"hidden"}),jQuery(d[CU3ER[b].nextSlide]).css("display","none"))}jQuery(".CU3ERslides-holder",f).css("display","none");setTimeout(function(){CU3ER[b].animationSlices(y,h)},50)},animationSlices:function(b,f){var c=this.id,e=jQuery(".CU3ERtrans",this.el),g={};g.rows=parseFloat(this.transition.rows);g.columns=parseFloat(this.transition.columns);g.flipOrder=parseFloat(this.transition.flipOrder);g.flipDuration=
parseFloat(this.transition.flipDuration);g.flipDelay=parseFloat(this.transition.flipDelay);g.flipOrderFromCenter=this.transition.flipOrderFromCenter;if(this.directionReverse==!0)switch(parseInt(g.flipOrder)){case 0:g.flipOrder=180;break;case 45:g.flipOrder=225;break;case 90:g.flipOrder=270;break;case 135:g.flipOrder=315;break;case 180:g.flipOrder=0;break;case 225:g.flipOrder=45;break;case 270:g.flipOrder=90;break;case 315:g.flipOrder=135}var d=this.getOrder(g),h=d[0],d=d[1];g.flipRandomize=0;if(typeof this.transition.flipDelayRandomize!=
"undefined")g.flipRandomize=parseFloat(this.transition.flipDelayRandomize),g.hasFlipRandomizeNew=!1;else if(typeof this.transition.flipRandomize!="undefined")g.flipRandomize=parseFloat(this.transition.flipRandomize),g.hasFlipRandomizeNew=!0;var d=this.getOrderRandomized(g,h,d),h=d[0],k=d[1],f=parseInt(g.rows)*parseInt(g.columns),o=this.is3D()?this.transition.type:"2D",g=function(d){setTimeout(function(){var f=b[d],g=CU3ER[c].easingValues[typeof CU3ER[c].transition.flipEasing!="undefined"?CU3ER[c].transition.flipEasing+
".3d":"Sine.easeInOut.3d"],h=CU3ER[c].easingValues[CU3ER[c].transition.flipEasing];if(o=="2D"){var k=CU3ER[c].transition.flipDuration*1E3;switch(f){case 1:jQuery(".CU3ERcurrentSlice",jQuery(e[d])).css({"z-index":500,display:"block"});jQuery(".CU3ERnextSlice",jQuery(e[d])).css({"z-index":501,display:"none"}).fadeIn(k,h);break;case 3:jQuery.browser.msie?(jQuery(".CU3ERnextSlice",jQuery(e[d])).animate({top:0},k-30,h),jQuery(".CU3ERcurrentSlice",jQuery(e[d])).animate({top:"-"+jQuery(".CU3ERcurrentSlice",
e[d]).height()+"px"},k,h)):(jQuery(".CU3ERnextSlice",jQuery(e[d])).animate({top:jQuery(".CU3ERnextSlice",e[d]).height()+"px"},k-30,h),jQuery(".CU3ERcurrentSlice",jQuery(e[d])).animate({"margin-top":"-"+jQuery(".CU3ERcurrentSlice",e[d]).height()+"px"},k,h));break;case 2:jQuery.browser.msie?(jQuery(".CU3ERnextSlice",jQuery(e[d])).animate({top:0},k-30,h),jQuery(".CU3ERcurrentSlice",jQuery(e[d])).animate({top:jQuery(".CU3ERcurrentSlice",e[d]).height()+"px"},k,h)):(jQuery(".CU3ERnextSlice",jQuery(e[d])).animate({"margin-top":jQuery(".CU3ERnextSlice",
jQuery(e[d])).css("margin-top")},k-30,h),jQuery(".CU3ERcurrentSlice",jQuery(e[d])).animate({"margin-top":jQuery(".CU3ERcurrentSlice",e[d]).height()+"px"},k,h));break;case 4:jQuery(".CU3ERnextSlice",jQuery(e[d])).animate({"margin-left":"0px"},k-30,h);jQuery(".CU3ERcurrentSlice",jQuery(e[d])).animate({"margin-left":-jQuery(".CU3ERcurrentSlice",e[d]).width()+"px"},k,h);break;case 5:jQuery(".CU3ERnextSlice",jQuery(e[d])).animate({"margin-left":"0px"},k-30,h);jQuery(".CU3ERcurrentSlice",jQuery(e[d])).animate({"margin-left":jQuery(".CU3ERcurrentSlice",
e[d]).width()+"px"},k,h);break;default:jQuery(".CU3ERcurrentSlice",jQuery(e[d])).animate({"margin-top":"-"+jQuery(".CU3ERcurrentSlice",e[d]).height()+"px"},k,h),jQuery(".CU3ERnextSlice",jQuery(e[d])).animate({"margin-top":0},k,h)}}else switch(k=CU3ER[c].transition.flipDuration,f){case 3:jQuery(e[d]).css("-webkit-animation","translateSliceHolder"+CU3ER[c].transition.classNo+" "+(parseFloat(k)-0.05)+"s "+g);jQuery(".CU3ERnextSlice",jQuery(e[d])).css("-webkit-transform","translateZ(2px)").css("-webkit-animation",
"translateBottomUp "+k+"s "+g);jQuery(".CU3ERcurrentSlice",jQuery(e[d])).css("-webkit-transform","translateZ(1px)").css("-webkit-animation","translateTopUp "+k+"s "+g);jQuery(".CU3ERnextSlice",jQuery(e[d])).css("opacity",1);jQuery(".CU3ERcurrentSlice",jQuery(e[d])).css("opacity",0);break;case 2:jQuery(e[d]).css("-webkit-animation","translateSliceHolder"+CU3ER[c].transition.classNo+" "+(parseFloat(k)-0.05)+"s "+g);jQuery(".CU3ERnextSlice",jQuery(e[d])).css("-webkit-transform","translateZ(2px)").css("-webkit-animation",
"translateBottomDown "+k+"s "+g);jQuery(".CU3ERcurrentSlice",jQuery(e[d])).css("-webkit-transform","translateZ(1px)").css("-webkit-animation","translateTopDown "+k+"s "+g);jQuery(".CU3ERnextSlice",jQuery(e[d])).css("opacity",1);jQuery(".CU3ERcurrentSlice",jQuery(e[d])).css("opacity",0);break;case 4:jQuery(e[d]).css("-webkit-animation","translateSliceHolder"+CU3ER[c].transition.classNo+" "+(parseFloat(k)-0.05)+"s "+g);jQuery(".CU3ERnextSlice",jQuery(e[d])).css("-webkit-transform","translateZ(2px)").css("-webkit-animation",
"translateBottomLeft "+k+"s "+g);jQuery(".CU3ERcurrentSlice",jQuery(e[d])).css("-webkit-transform","translateZ(1px)").css("-webkit-animation","translateTopLeft "+k+"s "+g);jQuery(".CU3ERnextSlice",jQuery(e[d])).css("opacity",1);jQuery(".CU3ERcurrentSlice",jQuery(e[d])).css("opacity",0);break;case 5:jQuery(e[d]).css("-webkit-animation","translateSliceHolder"+CU3ER[c].transition.classNo+" "+(parseFloat(CU3ER[c].transition.flipDuration)-0.05)+"s "+g);jQuery(".CU3ERnextSlice",jQuery(e[d])).css("-webkit-transform",
"translateZ(2px)").css("-webkit-animation","translateBottomRight "+CU3ER[c].transition.flipDuration+"s "+g);jQuery(".CU3ERcurrentSlice",jQuery(e[d])).css("-webkit-transform","translateZ(1px)").css("-webkit-animation","translateTopRight "+CU3ER[c].transition.flipDuration+"s "+g);jQuery(".CU3ERnextSlice",jQuery(e[d])).css("opacity",1);jQuery(".CU3ERcurrentSlice",jQuery(e[d])).css("opacity",0);break;default:jQuery(e[d]).css("-webkit-animation","translateSliceHolder"+CU3ER[c].transition.classNo+" "+(parseFloat(k)-
0.05)+"s "+g),jQuery(".CU3ERnextSlice",jQuery(e[d])).css("-webkit-transform","translateZ(2px)").css("-webkit-animation","translateBottomUp "+k+"s "+g),jQuery(".CU3ERcurrentSlice",jQuery(e[d])).css("-webkit-transform","translateZ(1px)").css("-webkit-animation","translateTopUp "+k+"s "+g),jQuery(".CU3ERnextSlice",jQuery(e[d])).css("opacity",1),jQuery(".CU3ERcurrentSlice",jQuery(e[d])).css("opacity",0)}},k[d])};for(i=0;i<f;i++)g(i);setTimeout(function(){o=="3D"&&jQuery(CU3ER[c].elements[CU3ER[c].nextSlide]).css({display:"block",
"-webkit-transform":"translateZ(1px)"});CU3ER[c].onTransitionComplete()},(h+parseFloat(CU3ER[c].transition.flipDuration)+0.05)*1E3)},onTransitionComplete:function(){var b=this.id,f=this.el;jQuery.browser.msie||jQuery(".CU3ERbackground",f).css("display","block !important");this.current=this.nextSlide;this.currSlideNo=parseInt(this.current)+1;this.onSlide(this.currSlideNo);var c=this.elements;defaults=jQuery.extend(!0,{},CU3ER[b].jsonOriginal.defaults.slide,CU3ER[b].jsonOriginal.slides.slide[CU3ER[b].current]);
defaults.time=parseInt(defaults.time)*1E3;this.sleepDuration=defaults.time;jQuery(".CU3ERslides-holder",f).css("display","block");setTimeout(function(){jQuery(".CU3ERtransition-holder",f).css("display","none");jQuery(".CU3ERtransition",f).remove();CU3ER[b].inTransition=!1},50);jQuery(".CU3ERlayer",f).css({display:"none"});++CU3ER[b].currentLoop;CU3ER[b].destroyDescription();if(typeof CU3ER[b].json.description!="undefined"){var e=CU3ER[b].json.slides.slide.length==1?0:CU3ER[f.attr("id")].current;if(typeof CU3ER[f.attr("id")].json.slides.slide[e]!=
"undefined"&&typeof CU3ER[b].json.slides.slide[e].description!="undefined"&&(typeof CU3ER[b].json.slides.slide[e].description.heading!="undefined"&&CU3ER[b].json.slides.slide[e].description.heading!=""||typeof CU3ER[b].json.slides.slide[e].description.paragraph!="undefined"&&CU3ER[b].json.slides.slide[e].description.paragraph!=""))e=typeof CU3ER[b].jsonOriginal.defaults.slide.description!="undefined"?jQuery.extend(!0,{},CU3ER[b].jsonOriginal.defaults.slide.description,CU3ER[b].json.slides.slide[e].description):
CU3ER[b].json.slides.slide[e].description,CU3ER[b].populateDescription(e),jQuery(".CU3ERdescription",f).css("display","block")}c.length==2?jQuery(c[0]).trigger("endTransition"):jQuery(c[CU3ER[b].current]).trigger("endTransition");if(CU3ER[b].mOver==!1&&CU3ER[b].paused==!0&&CU3ER[b].rollOverPause==!0)CU3ER[b].continueTimers();else if(CU3ER[b].mOver==!0&&CU3ER[b].paused==!1&&CU3ER[b].rollOverPause==!0)CU3ER[b].stopTimers();else if(this.paused==!1&&(this.time=null,this.pauseStartTimer=(new Date).getTime(),
typeof CU3ER[b].json.settings.auto_play!="undefined"&&CU3ER[b].json.settings.auto_play=="true"&&(CU3ER[b].loop==0||CU3ER[b].currentLoop<=CU3ER[b].loop*CU3ER[b].slidesTotal))){if(typeof CU3ER[b].json.controls.auto_play_indicator!="undefined"&&(c={type:"autoPlay",width:CU3ER[b].json.controls.auto_play_indicator.width,height:CU3ER[b].json.controls.auto_play_indicator.height,loaderTweenShowTint:CU3ER[b].json.controls.auto_play_indicator.loader.tweenShow.tint,loaderTreenOverTint:CU3ER[b].json.controls.auto_play_indicator.loader.tweenOver.tint,
loaderTweenShowAlpha:CU3ER[b].json.controls.auto_play_indicator.loader.tweenShow.alpha,loaderTweenOverAlpha:CU3ER[b].json.controls.auto_play_indicator.loader.tweenOver.alpha,bgTweenShowAlpha:CU3ER[b].json.controls.auto_play_indicator.background.tweenShow.alpha,bgTweenOverAlpha:CU3ER[b].json.controls.auto_play_indicator.background.tweenOver.alpha,bgTweenShowTint:CU3ER[b].json.controls.auto_play_indicator.background.tweenShow.tint,bgTweenOverTint:CU3ER[b].json.controls.auto_play_indicator.background.tweenOver.tint,
image:null,posX:CU3ER[b].json.controls.auto_play_indicator.x,posY:CU3ER[b].json.controls.auto_play_indicator.y,align_pos:CU3ER[b].json.controls.auto_play_indicator.align_pos,align_to:CU3ER[b].json.controls.auto_play_indicator.align_to=="stage"?"stage":"slides",padding:CU3ER[b].json.controls.auto_play_indicator.background.padding,shape:CU3ER[b].json.controls.auto_play_indicator.type,radius:CU3ER[b].json.controls.auto_play_indicator.radius},CU3ER[b].loop==0||CU3ER[b].currentLoop<=CU3ER[b].loop*CU3ER[b].slidesTotal))jQuery(".CU3ERindicator",
f).stop().remove(),CU3ER[b].drawProgressBar(c),jQuery(".CU3ERprogress",f).animate({width:"100%"},defaults.time,function(){jQuery(".CU3ERprogress",f).css("width","0%")}),jQuery(".CU3ERindicator",f).bind("click",function(){CU3ER[b].pauseType=2;CU3ER[b].pause()});CU3ER[b].tempTimeout[CU3ER[b].current]=setTimeout(function(){CU3ER[b].next()},defaults.time)}},isCameraFlat:function(){var b=!0;typeof this.json.settings.camera!="undefined"&&(typeof this.json.settings.camera.x!="undefined"&&this.json.settings.camera.x!=
0&&(b=!1),typeof this.json.settings.camera.y!="undefined"&&this.json.settings.camera.y!=0&&(b=!1),typeof this.json.settings.camera.z!="undefined"&&this.json.settings.camera.z!=0&&(b=!1),typeof this.json.settings.camera.angleX!="undefined"&&this.json.settings.camera.angleX!=0&&(b=!1),typeof this.json.settings.camera.angleY!="undefined"&&this.json.settings.camera.angleY!=0&&(b=!1),typeof this.json.settings.camera.angleZ!="undefined"&&this.json.settings.camera.angleZ!=0&&(b=!1),typeof this.json.settings.camera.lens!=
"undefined"&&this.json.settings.camera.lens!=8&&(b=!1));this.force_simple==!0&&(b=!1);return b},setDirections:function(b,f,c){var b=parseInt(b.rows)*parseInt(b.columns),e=[];if(f==6)for(var g=0;g<b;g++)f=jQuery.shuffle(c),e[g]=f[0];else for(g=0;g<b;g++)e[g]=f;return e},continueTimers:function(){var b=this.id,f=this.el;this.paused=!1;this.pauseType=0;var c={time:5},c=jQuery.extend(!0,c,CU3ER[b].json.defaults.slide,CU3ER[b].json.slides[this.current]);c.time=parseInt(c.time)*1E3;if(jQuery(".CU3ERindicator").length>
0)if(this.supportCanvas()&&this.circularPBOptions.shape=="circular")this.stopFlag=!1,this.startCircularProgressbar(this.circularPBOptions,!0);else{if(jQuery.browser.msie)var e=100,g=jQuery(".CU3ERprogress",f).css("width"),e=100-parseInt(g);else e=jQuery(".CU3ERprogress",f).css("maxWidth"),g=jQuery(".CU3ERprogress",f).width(),e=100-parseInt(g)*100/parseInt(e);c=parseInt(e)*c.time/100;jQuery(".CU3ERprogress",f).animate({width:"100%"},c,function(){jQuery(".CU3ERprogress",f).css("width","0%");CU3ER[b].skipTo(CU3ER[b].calculateNext(CU3ER[b].current),
!0,!0)})}else{if(this.time!=null&&this.time>0)c.time=this.time;this.pauseStartTimer=(new Date).getTime();CU3ER[b].tempTimeout[CU3ER[b].current]=setTimeout(function(){CU3ER[b].skipTo(CU3ER[b].calculateNext(CU3ER[b].current),!0,!0)},c.time)}},stopTimers:function(){var b=this.id,f=this.el;this.paused=!0;jQuery(".CU3ERindicator").length>0?this.supportCanvas()&&this.circularPBOptions.shape=="circular"?(clearTimeout(this.circularPBOptions.tempTimeout),this.stopCircularProgressbar()):jQuery(".CU3ERprogress",
f).stop():(defaults=jQuery.extend(!0,defaults,CU3ER[b].json.defaults.slide,CU3ER[b].json.slides[this.current]),this.time!=null?(f=this.time-((new Date).getTime()-this.pauseStartTimer),this.time=f>0?f:defaults.time):this.time=defaults.time-((new Date).getTime()-this.pauseStartTimer),clearTimeout(this.tempTimeout[CU3ER[b].current]));this.clearTimeouts()},handleAutoHide:function(b,f,c,e){var g=this.id,d=this.el;CU3ER[g].debug("attaching auto hide behavior");var h=this.elements,k=null,o=null;typeof b!=
"undefined"&&typeof b.next_button!="undefined"&&b.next_button.hide_on_transition=="true"&&jQuery(h).bind("endTransition",function(){clearTimeout(null);jQuery(".CU3ERbuttonNext",d).fadeIn("fast")}).bind("startTransition",function(){jQuery(".CU3ERbuttonNext",d).fadeOut("fast")});typeof b!="undefined"&&typeof b.prev_button!="undefined"&&b.prev_button.hide_on_transition=="true"&&jQuery(h).bind("endTransition",function(){clearTimeout(null);jQuery(".CU3ERbuttonPrev",d).fadeIn("fast")}).bind("startTransition",
function(){jQuery(".CU3ERbuttonPrev",d).fadeOut("fast")});typeof f!="undefined"&&f.hide_on_transition=="true"&&jQuery(h).bind("endTransition",function(){jQuery(".CU3ERindicator",d).fadeIn("fast")}).bind("startTransition",function(){jQuery(".CU3ERindicator",d).fadeOut("fast")});typeof c!="undefined"&&c.hide_on_transition=="true"&&jQuery(h).bind("endTransition",function(){jQuery(".CU3ERDescriptionLinkHolder",d).html()!=""&&jQuery(".CU3ERDescriptionLinkHolder",d).html()!=null&&(clearTimeout(k),jQuery(".CU3ERdescription",
d).fadeIn("fast"))}).bind("startTransition",function(){CU3ER[g].destroyDescription();jQuery(".CU3ERdescription",d).fadeOut("fast")});typeof e!="undefined"&&e.hide_on_transition=="true"&&jQuery(h).bind("endTransition",function(){clearTimeout(o);jQuery(".CU3ERthumbs",d).fadeIn("fast")}).bind("startTransition",function(){jQuery(".CU3ERthumbs",d).fadeOut("fast")});this.isTouch()||(typeof b!="undefined"&&typeof b.next_button!="undefined"&&b.next_button.auto_hide.text=="true"&&(jQuery(d).bind("mouseover",
function(){clearTimeout(null);jQuery(".CU3ERbuttonNext",d).fadeIn("fast")}).bind("mouseout",function(){bntNext=setTimeout(function(){jQuery(".CU3ERbuttonNext",d).fadeOut("fast")},parseInt(b.next_button.auto_hide.time)*1E3)}),jQuery(h).bind("endTransition",function(){bntNext=setTimeout(function(){jQuery(".CU3ERbuttonNext",d).fadeOut("fast")},parseInt(b.next_button.auto_hide.time)*1E3)})),typeof b!="undefined"&&typeof b.prev_button!="undefined"&&b.prev_button.auto_hide.text=="true"&&(jQuery(d).bind("mouseover",
function(){clearTimeout(null);jQuery(".CU3ERbuttonPrev",d).fadeIn("fast")}).bind("mouseout",function(){bntPrev=setTimeout(function(){jQuery(".CU3ERbuttonPrev",d).fadeOut("fast")},parseInt(b.prev_button.auto_hide.time)*1E3)}),jQuery(h).bind("endTransition",function(){bntPrev=setTimeout(function(){jQuery(".CU3ERbuttonPrev",d).fadeOut("fast")},parseInt(b.prev_button.auto_hide.time)*1E3)})),typeof e!="undefined"&&e.auto_hide=="true"&&(jQuery(d).bind("mouseover",function(){clearTimeout(o);jQuery(".CU3ERthumbs",
d).fadeIn("fast")}).bind("mouseout",function(){o=setTimeout(function(){jQuery(".CU3ERthumbs",d).fadeOut("fast")},parseInt(e.auto_hide.time)*1E3)}),jQuery(h).bind("endTransition",function(){o=setTimeout(function(){jQuery(".CU3ERthumbs",d).fadeOut("fast")},parseInt(e.auto_hide.time)*1E3)})),typeof c!="undefined"&&c.auto_hide=="true"&&(jQuery(d).bind("mouseover",function(){jQuery(".CU3ERDescriptionLinkHolder",d).html()!=""&&jQuery(".CU3ERDescriptionLinkHolder",d).html()!=null&&(clearTimeout(k),jQuery(".CU3ERdescription",
d).fadeIn("fast"))}).bind("mouseout",function(){clearTimeout(k);k=setTimeout(function(){jQuery(".CU3ERdescription",d).fadeOut("fast")},parseInt(c.auto_hide.time)*1E3)}),jQuery(h).bind("endTransition",function(){clearTimeout(k);k=setTimeout(function(){jQuery(".CU3ERdescription",d).fadeOut("fast")},parseInt(c.auto_hide.time)*1E3)})))},calculateNext:function(b){return this.elements.length-1==b?0:++b},calculatePrevious:function(b){var f=this.elements;return 0==b?f.length-1:--b},switchThumbnailClass:function(b){var f=
jQuery(".CU3ERthumbs .CU3ERthumbs-holder .CU3ERThumb a",this.el);f.parent().removeClass("current");jQuery(f[b]).parent().addClass("current").trigger("classChanged")},populateDescription:function(b){var f=this.id,c=this.el,e=CU3ER[f].json.description.width+"px",g=CU3ER[f].json.description.height+"px";jQuery(".CU3ERDescriptionText",c).append('<div class="CU3ERDescriptionLinkHolder"></div>').find(".CU3ERDescriptionLinkHolder").css({width:e,height:g});if(typeof b.heading!="undefined"&&b.heading!=""){headingCSS=
{};typeof CU3ER[f].json.description.heading.margin!="undefined"?(margins=CU3ER[f].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.marginTop="5px",headingCSS.marginRight="5px",headingCSS.marginBottom="5px",headingCSS.marginLeft="5px");headingCSS.position="relative";headingCSS.fontFamily=typeof CU3ER[f].json.description.heading.font!=
"undefined"?'"'+decodeURI(CU3ER[f].json.description.heading.font)+'"':"Georgia";headingCSS.fontWeight=CU3ER[f].json.description.heading.text_bold=="true"?"bold":"normal";headingCSS.fontStyle=CU3ER[f].json.description.heading.text_italic=="true"?"italic":"normal";headingCSS.textAlign=typeof CU3ER[f].json.description.heading.text_align!="undefined"?CU3ER[f].json.description.heading.text_align:"left";headingCSS.opacity=typeof CU3ER[f].json.description.heading.tweenShow.opacity!="undefined"?CU3ER[f].json.description.heading.tweenShow.opacity:
"1";headingCSS.lineHeight=typeof CU3ER[f].json.description.heading.text_leading!="undefined"&&CU3ER[f].json.description.heading.text_leading>0?CU3ER[f].json.description.heading.text_leading+"px":CU3ER[f].json.description.heading.text_size+"px";if(typeof CU3ER[f].json.description.heading.text_letterspacing!="undefined"&&CU3ER[f].json.description.heading.text_letterspacing>0)headingCSS.letterSpacing=CU3ER[f].json.description.heading.text_letterspacing+"px";if(typeof b.link!="undefined")var d=typeof b.link.text!=
"undefined"?b.link.text:b.link;if(typeof b.link!="undefined"&&typeof d=="string"){var h=typeof b.link.target=="undefined"?"_self":b.link.target;jQuery(".CU3ERDescriptionLinkHolder",c).append('<h2><a href="'+d+'" target="'+h+'">'+b.heading.replace("\\'","'")+"</a></h2>").find("h2").css({fontSize:CU3ER[f].json.description.heading.text_size+"px",color:CU3ER[f].json.description.heading.tweenShow.tint.replace("0x","#")}).css(headingCSS).find("a").css({fontSize:CU3ER[f].json.description.heading.text_size+
"px",color:CU3ER[f].json.description.heading.tweenShow.tint.replace("0x","#"),"line-height":headingCSS.lineHeight,"font-family":headingCSS.fontFamily,opacity:headingCSS.opacity})}else jQuery(".CU3ERDescriptionLinkHolder",c).append("<h2>"+b.heading.replace("\\'","'")+"</h2>").find("h2").css({fontSize:CU3ER[f].json.description.heading.text_size+"px",color:CU3ER[f].json.description.heading.tweenShow.tint.replace("0x","#")}).css(headingCSS)}if(typeof b.paragraph!="undefined"&&b.paragraph!=""){descCSS=
{};typeof CU3ER[f].json.description.paragraph.margin!="undefined"?(margins=CU3ER[f].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.marginTop="0px",descCSS.marginRight="5px",descCSS.marginBottom="5px",descCSS.marginLeft="5px");descCSS.position="relative";descCSS.fontFamily=typeof CU3ER[f].json.description.paragraph.font!=
"undefined"?'"'+decodeURI(CU3ER[f].json.description.paragraph.font)+'"':"Arial";descCSS.fontWeight=CU3ER[f].json.description.paragraph.text_bold=="true"?"bold":"normal";descCSS.fontStyle=CU3ER[f].json.description.paragraph.text_italic=="true"?"italic":"normal";descCSS.textAlign=typeof CU3ER[f].json.description.paragraph.text_align!="undefined"?CU3ER[f].json.description.paragraph.text_align:"left";descCSS.opacity=typeof CU3ER[f].json.description.paragraph.tweenShow.opacity!="undefined"?CU3ER[f].json.description.paragraph.tweenShow.opacity:
"1";descCSS.lineHeight=typeof CU3ER[f].json.description.paragraph.text_leading!="undefined"&&CU3ER[f].json.description.paragraph.text_leading>0?CU3ER[f].json.description.paragraph.text_leading+"px":CU3ER[f].json.description.paragraph.text_size+"px";if(typeof CU3ER[f].json.description.paragraph.text_letterspacing!="undefined"&&CU3ER[f].json.description.paragraph.text_letterspacing>0)descCSS.letterSpacing=CU3ER[f].json.description.paragraph.text_letterspacing+"px";typeof b.link!="undefined"&&(d=typeof b.link.text!=
"undefined"?b.link.text:b.link);typeof b.link!="undefined"&&typeof d=="string"?(h=typeof b.link.target=="undefined"?"_self":b.link.target,jQuery(".CU3ERDescriptionLinkHolder",c).append('<p><a href="'+d+'" target="'+h+'">'+b.paragraph.replace("\\'","'")+"</a></p>").find("p").css({fontSize:CU3ER[f].json.description.paragraph.text_size+"px",color:CU3ER[f].json.description.paragraph.tweenShow.tint.replace("0x","#")}).css(descCSS).find("a").css({fontSize:CU3ER[f].json.description.paragraph.text_size+"px",
color:CU3ER[f].json.description.paragraph.tweenShow.tint.replace("0x","#"),"line-height":descCSS.lineHeight,"font-family":descCSS.fontFamily,opacity:descCSS.opacity})):jQuery(".CU3ERDescriptionLinkHolder",c).append("<p>"+b.paragraph.replace("\\'","'")+"</p>").find("p").css({fontSize:CU3ER[f].json.description.paragraph.text_size+"px",color:CU3ER[f].json.description.paragraph.tweenShow.tint.replace("0x","#")}).css(descCSS)}typeof b.link!="undefined"&&(d=typeof b.link.text!="undefined"?b.link.text:b.link);
typeof b.link!="undefined"&&typeof d=="string"&&jQuery(".CU3ERDescriptionLinkHolder",c).wrap('<a href="'+d+'" target="'+h+'" />');jQuery(".CU3ERdescription",c).find("a").css({"text-decoration":"none"});typeof CU3ER[f].json.description.heading!="undefined"&&jQuery(".CU3ERdescription",c).find("h2").css({opacity:CU3ER[f].json.description.heading.tweenShow.alpha,color:CU3ER[f].json.description.heading.tweenShow.tint.replace("0x","#")}).find("a").css({opacity:CU3ER[f].json.description.heading.tweenShow.alpha,
color:CU3ER[f].json.description.heading.tweenShow.tint.replace("0x","#")});typeof CU3ER[f].json.description.paragraph!="undefined"&&jQuery(".CU3ERdescription",c).find("p").css({opacity:CU3ER[f].json.description.paragraph.tweenShow.alpha,color:CU3ER[f].json.description.paragraph.tweenShow.tint.replace("0x","#")}).find("a").css({opacity:CU3ER[f].json.description.paragraph.tweenShow.alpha,color:CU3ER[f].json.description.paragraph.tweenShow.tint.replace("0x","#")})},destroyDescription:function(){jQuery(".CU3ERDescriptionText",
this.el).empty().parent().css("display","none")},checkCanvas:function(){var b=document.createElement("canvas");this.canvasSupported=b.getContext&&b.getContext("2d")},supportCanvas:function(){return jQuery.browser.opera?!1:this.canvasSupported},inArray:function(b){for(var f={},c=0;c<b.length;c++)f[b[c]]="";return f},getOrder:function(b){b.flipOrder=parseInt(b.flipOrder);b.rows=parseInt(b.rows);b.columns=parseInt(b.columns);b.flipDelay=parseFloat(b.flipDelay);var f=[],c=[],e;for(i=0;i<b.rows;i++)for(j=
0;j<b.columns;j++){if(b.flipOrderFromCenter=="false")switch(b.flipOrder){case 0:e=j;break;case 45:e=b.rows-1-i+j;break;case 90:e=b.rows-1-i;break;case 135:e=b.rows-1-i+b.columns-1-j;break;case 180:e=b.columns-1-j;break;case 225:e=b.columns-1-j+i;break;case 270:e=i;break;case 315:e=i+j}else switch(b.flipOrder){case 0:case 180:Math.abs(Math.floor((b.columns-1)/2-j));e=Math.abs(Math.floor((b.columns-1)/2-j));break;case 90:case 270:Math.abs(Math.floor((b.rows-1)/2-i));e=Math.abs(Math.floor((b.rows-1)/
2-i));break;case 135:case 315:Math.abs(i+j-Math.floor((b.rows+b.columns-2)/2));e=Math.abs(i+j-Math.floor((b.rows+b.columns-2)/2));break;case 45:case 225:Math.abs(i+(b.columns-j)-Math.floor((b.rows+b.columns-2)/2)),e=Math.abs(i+(b.columns-j)-Math.floor((b.rows+b.columns-2)/2))}f[j+i*b.columns]=e;c[j+i*b.columns]=-1}return[c,f]},getOrderRandomized:function(b,f,c){var e,g=[],d=0;for(i=0;i<b.rows;i++)for(j=0;j<b.columns;j++){if(b.hasFlipRandomizeNew){if(f[j+i*b.columns]==-1){e=Math.max(b.columns-j,j);
var h=Math.round(j+e*(Math.random()*2*b.flipRandomize-b.flipRandomize)),h=Math.max(0,Math.min(b.columns-1,h));e=Math.max(b.rows-i,i);var k=Math.round(i+e*(Math.random()*2*b.flipRandomize-b.flipRandomize)),k=Math.max(0,Math.min(b.rows-1,k));e=c[h+k*b.columns];f[h+k*b.columns]=j+i*b.columns}else e=c[f[j+i*b.columns]];h=Math.min(1,2*b.flipRandomize)*Math.max(0,2*b.flipDelay*Math.random()-b.flipDelay);flipDelay=e*b.flipDelay+h}else e=c[j+i*b.columns],flipDelay=e*b.flipDelay*(1-b.flipRandomize);g[j+i*
b.columns]=flipDelay*1E3;flipDelay>d&&(d=flipDelay)}return[d,g]},getDelayOrder:function(b){b.flipOrder=parseInt(b.flipOrder);b.rows=parseInt(b.rows);b.columns=parseInt(b.columns);b.flipDelay=parseFloat(b.flipDelay);var f=0,c=[];for(i=0;i<b.rows;i++)for(j=0;j<b.columns;j++)if(f=j+i*b.columns,b.flipOrderFromCenter=="false")switch(b.flipOrder){case 0:c[f]=j;break;case 45:c[f]=b.rows-1-i+j;break;case 90:c[f]=b.rows-1-i;break;case 135:c[f]=b.rows-1-i+b.columns-1-j;break;case 180:c[f]=b.columns-1-j;break;
case 225:c[f]=b.columns-1-j+i;break;case 270:c[f]=i;break;case 315:c[f]=i+j}else switch(b.flipOrder){case 0:case 180:c[f]=Math.abs(Math.floor((b.columns-1)/2-j));break;case 90:case 270:c[f]=Math.abs(Math.floor((b.rows-1)/2-i));break;case 135:case 315:c[f]=Math.abs(i+j-Math.floor((b.rows+b.columns-2)/2));break;case 45:case 225:c[f]=Math.abs(i+(b.columns-j)-Math.floor((b.rows+b.columns-2)/2))}return c},check3D:function(){var b=this.id,f=document.createElement("div"),c=document.documentElement,e=document.head||
document.getElementsByTagName("head")[0],g=!1;if(typeof f.style.WebkitPerspective!="undefined"){var f=document.createElement("style"),d=document.createElement("div"),h=(new Date).getTime()+Math.floor(Math.random()*1E3);d.id="cu3er3d_"+h;f.textContent="@media (-webkit-transform-3d), (cu3er3d_"+h+"){#cu3er3d_"+h+"{height:3px}}";e.appendChild(f);c.appendChild(d);setTimeout(function(c){g=c.offsetHeight===3;CU3ER[b].support3d=g},50,d)}},pause:function(){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 b=document.createElement("div"),f=document.documentElement,c=document.head||document.getElementsByTagName("head")[0],e=!1;b.setAttribute("ongesturestart","return;");if(typeof b.ongesturestart=="function")this.touchable=!0;else{var b=document.createElement("style"),g=document.createElement("div");b.textContent="@media (touch-enabled), (-webkit-touch-enabled), (-moz-touch-enabled), (-o-touch-enabled), (-ms-touch-enabled), (-khtml-touch-enabled), (cu3er3d){#cu3ertouch{height:3px}}";
c.appendChild(b);g.id="cu3ertouch";f.appendChild(g);e=g.offsetHeight===3;b.parentNode.removeChild(b);g.parentNode.removeChild(g);this.touchable="ontouchstart"in window||e}},isTouch:function(){return this.touchable},debug:function(){this.debugMode==!0&&console.log(arguments)}};
jQuery.fn.borderRadius=function(b){typeof b=="undefined"&&(b="0, 0, 0, 0");b=b.split(",");return this.each(function(){jQuery(this).css({"-moz-border-radius-topleft":b[0]+"px","-moz-border-radius-topright":b[1]+"px","-moz-border-radius-bottomright":b[2]+"px","-moz-border-radius-bottomleft":b[3]+"px","-webkit-border-top-left-radius":b[0]+"px","-webkit-border-top-right-radius":b[1]+"px","-webkit-border-bottom-right-radius":b[2]+"px","-webkit-border-bottom-left-radius":b[3]+"px","border-top-left-radius":b[0]+
"px","border-top-right-radius":b[1]+"px","border-bottom-right-radius":b[2]+"px","border-bottom-left-radius":b[3]+"px"})})};jQuery.shuffle=function(b){for(var f,c,e=b.length;e;f=parseInt(Math.random()*e),c=b[--e],b[e]=b[f],b[f]=c);return b};

