jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutSine",swing:function(b,d,c,e,g){return jQuery.easing[jQuery.easing.def](b,d,c,e,g)},easeInSine:function(b,d,c,e,g){return-e*Math.cos(d/g*(Math.PI/2))+e+c},easeOutSine:function(b,d,c,e,g){return e*Math.sin(d/g*(Math.PI/2))+c},easeInOutSine:function(b,d,c,e,g){return-e/2*(Math.cos(Math.PI*d/g)-1)+c},easeInExpo:function(b,d,c,e,g){return 0==d?c:e*Math.pow(2,10*(d/g-1))+c},easeOutExpo:function(b,d,c,e,g){return d==g?c+e:e*(-Math.pow(2,-10*d/g)+1)+c},easeInOutExpo:function(b,
d,c,e,g){return 0==d?c:d==g?c+e:1>(d/=g/2)?e/2*Math.pow(2,10*(d-1))+c:e/2*(-Math.pow(2,-10*--d)+2)+c},easeInElastic:function(b,d,c,e,g){var b=1.70158,f=0,h=e;if(0==d)return c;if(1==(d/=g))return c+e;f||(f=0.3*g);h<Math.abs(e)?(h=e,b=f/4):b=f/(2*Math.PI)*Math.asin(e/h);return-(h*Math.pow(2,10*(d-=1))*Math.sin((d*g-b)*2*Math.PI/f))+c},easeOutElastic:function(b,d,c,e,g){var b=1.70158,f=0,h=e;if(0==d)return c;if(1==(d/=g))return c+e;f||(f=0.3*g);h<Math.abs(e)?(h=e,b=f/4):b=f/(2*Math.PI)*Math.asin(e/h);
return h*Math.pow(2,-10*d)*Math.sin((d*g-b)*2*Math.PI/f)+e+c},easeInOutElastic:function(b,d,c,e,g){var b=1.70158,f=0,h=e;if(0==d)return c;if(2==(d/=g/2))return c+e;f||(f=g*0.3*1.5);h<Math.abs(e)?(h=e,b=f/4):b=f/(2*Math.PI)*Math.asin(e/h);return 1>d?-0.5*h*Math.pow(2,10*(d-=1))*Math.sin((d*g-b)*2*Math.PI/f)+c:0.5*h*Math.pow(2,-10*(d-=1))*Math.sin((d*g-b)*2*Math.PI/f)+e+c},easeInBounce:function(b,d,c,e,g){return e-jQuery.easing.easeOutBounce(b,g-d,0,e,g)+c},easeOutBounce:function(b,d,c,e,g){return(d/=
g)<1/2.75?e*7.5625*d*d+c:d<2/2.75?e*(7.5625*(d-=1.5/2.75)*d+0.75)+c:d<2.5/2.75?e*(7.5625*(d-=2.25/2.75)*d+0.9375)+c:e*(7.5625*(d-=2.625/2.75)*d+0.984375)+c},easeInOutBounce:function(b,d,c,e,g){return d<g/2?0.5*jQuery.easing.easeInBounce(b,2*d,0,e,g)+c:0.5*jQuery.easing.easeOutBounce(b,2*d-g,0,e,g)+0.5*e+c}});
(function(b){b.fn.swipe=function(d){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",f="up",h="down",k="none",o="horizontal",p="vertical",r="auto",n="start",m="move",s="end",u="cancel",q="start";if(void 0==d.allowPageScroll&&(void 0!=d.swipe||void 0!=d.swipeStatus))d.allowPageScroll=k;d&&b.extend(c,d);return this.each(function(){var d,v,w,
y;function x(b){q=n;z=b.touches.length;distance=0;direction=null;z==c.fingers?(w=d=b.touches[0].pageX,y=v=b.touches[0].pageY,c.swipeStatus&&B(b,q)):C(b)}function D(b){if(!(q==s||q==u)){d=b.touches[0].pageX;v=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 f:(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=u,B(b,q),C(b))}}function G(b){b.preventDefault();distance=F();direction=E();c.triggerOnTouchEnd?(q=s,z==c.fingers&&0!=d?distance>=c.threshold||(q=u):q=u,B(b,q),C(b)):q==m&&(q=u,B(b,q),C(b))}function C(){v=d=y=w=z=0}
function B(b,d){c.swipeStatus&&c.swipeStatus.call(A,b,d,direction||null,distance||0);d==u&&c.click&&1==z&&(isNaN(distance)||0==distance)&&c.click.call(A,b,b.target);if(d==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 f: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(d-
w,2)+Math.pow(v-y,2)))}function E(){var b;b=Math.atan2(v-y,w-d);b=Math.round(180*b/Math.PI);0>b&&(b=360-Math.abs(b));return 45>=b&&0<=b?e:360>=b&&315<=b?e:135<=b&&225>=b?g:45<b&&135>b?h:f}var A=b(this),z=0;w=0;y=0;d=0;v=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,d,c,e,g,f){g=function(b){return(b<d?"":g(parseInt(b/d)))+(35<(b%=d)?String.fromCharCode(b+29):b.toString(36))};if(!"".replace(/^/,String)){for(;c--;)f[g(c)]=e[c]||g(c);e=[function(b){return f[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,d,c,e,g,f){g=function(b){return(b<d?"":g(parseInt(b/d)))+(35<(b%=d)?String.fromCharCode(b+29):b.toString(36))};if(!"".replace(/^/,String)){for(;c--;)f[g(c)]=e[c]||g(c);e=[function(b){return f[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,verySlow:!1,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 d=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="undefined"!=typeof b.vars.css_location&&""!=b.vars.css_location?b.vars.css_location:g.attr("src").replace(/js\/jquery\.cu3er\.js/,"")+"css/CU3ER.css",f=document.createElement("link");f.setAttribute("rel","stylesheet");f.setAttribute("type","text/css");f.setAttribute("href",c);document.getElementsByTagName("head")[0].appendChild(f);if("undefined"!=typeof b.vars.js_font_links)for(i in b.vars.js_font_links)f=document.createElement("link"),f.setAttribute("rel","stylesheet"),
f.setAttribute("type","text/css"),f.setAttribute("href",b.vars.js_font_links[i]),document.getElementsByTagName("head")[0].appendChild(f);jQuery.browser.msie&&(c="undefined"!=typeof b.vars.css_location&&""!=b.vars.css_location?b.vars.css_location.replace(/\.css/,"ieFix.css"):g.attr("src").replace(/js\/jquery\.cu3er\.js/,"")+"css/CU3ERieFix.css",f=document.createElement("link"),f.setAttribute("rel","stylesheet"),f.setAttribute("type","text/css"),f.setAttribute("href",c),document.getElementsByTagName("head")[0].appendChild(f));
this.debugMode="undefined"!=typeof b.vars.debug?b.vars.debug:!1;this.stage="#"+d;this.slides=this.stage+" .CU3ERslides";this.disable3d="undefined"!=typeof b.vars.js_disable_3d&&!0==b.vars.js_disable_3d?!0:!1;this.checkTouch();this.keyboardControlls="undefined"!=typeof b.vars.keyboard_controlls&&!1==b.vars.keyboard_controlls?!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("object"==typeof b.vars.force_2d_devices)this.devices_2d=jQuery.extend(!0,{},this.devices_2d,b.vars.force_2d_devices);for(i in this.devices_2d)if(-1!=navigator.userAgent.toLowerCase().indexOf((""+this.devices_2d[i]).toLowerCase()))CU3ER[d].level=1,CU3ER[d].support3d=!1;if("object"==typeof b.vars.force_simple_devices)this.simple_devices=jQuery.extend(!0,{},this.simple_devices,
b.vars.force_simple_devices);for(i in this.simple_devices)if(-1!=navigator.userAgent.toLowerCase().indexOf((""+this.simple_devices[i]).toLowerCase()))CU3ER[d].level=0,CU3ER[d].support3d=!1,CU3ER[d].force_simple=!0;if("undefined"!=typeof b.vars.force_2d&&!0==b.vars.force_2d)CU3ER[d].level=1,this.support3d=!1;if("undefined"!=typeof b.vars.force_simple&&!0==b.vars.force_simple)CU3ER[d].level=0,this.support3d=!1,this.force_simple=!0;if(-1!=navigator.userAgent.toLowerCase().indexOf("iphone")){c=(new Date).getTime();
for(f=0;20>(new Date).getTime()-c;)Math.random(),f++;if(this.force_simple=2E3>f)CU3ER[d].level=0,CU3ER[d].support3d=!1,CU3ER[d].verySlow=!0}if("undefined"!=typeof b.vars.xml_location&&""!=b.vars.xml_location)jQuery.get(b.vars.xml_location,function(c){setTimeout(function(){CU3ER[d].initPlayer(c,b)},75)});else{var h=this.decodeXML(b.vars.xml_encoded),h=h.replace(RegExp(/\+/g)," ");setTimeout(function(){CU3ER[d].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("%")},d=1;d<arr.length;d++)arr2=arr[d].split("%5D%5D%3E"),arrFinal.push(b(arr2[0])+"]]\>"+decodeURIComponent(arr2[1]));return strFinal=arrFinal.join("<![CDATA[")},initPlayer:function(b,d){var c=this.id;CU3ER[c].xml=b;json=jQuery.xml2json(b);json2=jQuery.xml2json(b,!0);json.settings.width="undefined"!=typeof d.vars.width?d.vars.width:
json.project_settings.width;json.settings.height="undefined"!=typeof d.vars.height?d.vars.height:json.project_settings.height;if("undefined"!=typeof d.vars.folder_images)json.settings.folder_images=d.vars.folder_images;CU3ER[c].json=json;CU3ER[c].json.custom="undefined"!=typeof d.custom?d.custom:{};json.slides.transition=null;json.slides.transition=json2.slides[0].transition;if("undefined"!=typeof json.fonts_html)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("undefined"!=typeof d.vars.xml_encoded&&""!=d.vars.xml_encoded&&"undefined"!=typeof d.vars.xml_location&&""!=d.vars.xml_location){var e=this.decodeXML(d.vars.xml_encoded),e=e.replace(RegExp(/\+/g)," "),g=jQuery.xml2json(e,!0),e=jQuery.xml2json(e);if("undefined"!=typeof e.licence)CU3ER[c].licenseStr=
e.licence;if("undefined"!=typeof e.settings){if("undefined"!=typeof e.settings.folder_images)json.settings.folder_images=e.settings.folder_images;if("undefined"!=typeof e.settings.background)json.settings.background=e.settings.background;if("undefined"!=typeof e.settings.auto_play)json.settings.auto_play=e.settings.auto_play;if("undefined"!=typeof e.settings.start_slide)json.settings.start_slide=e.settings.start_slide;if("undefined"!=typeof e.settings.randomize_slides)json.settings.randomize_slides=
e.settings.randomize_slides;if("undefined"!=typeof e.settings.loop)json.settings.loop=e.settings.loop;if("undefined"!=typeof e.settings.branding)json.settings.branding=e.settings.branding;if("undefined"!=typeof e.settings.camera)json.settings.camera=e.settings.camera;if("undefined"!=typeof e.settings.shadow)json.settings.shadow=e.settings.shadow}if("undefined"!=typeof e.slides){if("undefined"!=typeof e.slides.slide)json.slides.slide=e.slides.slide;if("undefined"!=typeof g.slides[0].transition)json.slides.transition=
g.slides[0].transition;if("undefined"!=typeof e.slides.width)json.slides.width=e.slides.width;if("undefined"!=typeof e.slides.height)json.slides.height=e.slides.height;if("undefined"!=typeof e.slides.align_pos)json.slides.align_pos=e.slides.align_pos;if("undefined"!=typeof e.slides.x)json.slides.x=e.slides.x;if("undefined"!=typeof e.slides.y)json.slides.y=e.slides.y}if("undefined"!=typeof e.defaults){if("undefined"!=typeof e.defaults.slide)json.defaults.slide=e.defaults.slide;if("undefined"!=typeof g.defaults[0].transition)json.defaults.transition=
g.defaults[0].transition[0]}if("undefined"!=typeof g.preloader){if("undefined"!=typeof e.preloader.image)json.preloader.image=e.preloader.image;if("undefined"!=typeof e.preloader.background)json.preloader.background=e.preloader.background;if("undefined"!=typeof e.preloader.loader)json.preloader.loader=e.preloader.loader}if("undefined"!=typeof g.controls){if("undefined"!=typeof e.controls.next_button)json.controls.next_button=e.controls.next_button;if("undefined"!=typeof e.controls.prev_button)json.controls.prev_button=
e.controls.prev_button;if("undefined"!=typeof e.controls.auto_play_indicator)json.controls.auto_play_indicator=e.controls.auto_play_indicator}if("undefined"!=typeof e.description)json.description=e.description;if("undefined"!=typeof g.thumbnails)json.thumbnails=g.thumbnails}json2=null;CU3ER[c].imgFallbackFolder="undefined"!=typeof d.vars.folder_images_fallback?d.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="undefined"!=typeof json.settings.auto_play?json.settings.auto_play:CU3ER[c].autoplay;CU3ER[c].loop="undefined"!=typeof json.settings.loop?json.settings.loop:CU3ER[c].loop;CU3ER[c].current="undefined"!=typeof json.settings.start_slide?parseInt(json.settings.start_slide)-1:CU3ER[c].current;CU3ER[c].current="undefined"!=typeof d.vars.start_slide?parseInt(d.vars.start_slide)-1:CU3ER[c].current;CU3ER[c].nextSlide=CU3ER[c].current;if((!0==d.vars.pause_on_rollover||"undefined"!=typeof json.settings.pause_on_rollover&&
"true"==json.settings.pause_on_rollover)&&!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("undefined"!=typeof json.controls.prev_button)"undefined"!=typeof json.controls.prev_button.symbol&&
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("undefined"!=typeof json.controls.next_button)"undefined"!=typeof json.controls.next_button.symbol&&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("undefined"!=typeof json.fonts_html)if("undefined"!=typeof json.fonts_html.url.length)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("undefined"!=typeof CU3ER[c].json.preloader.image?
{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:"undefined"!=typeof CU3ER[c].json.preloader.radius?CU3ER[c].json.preloader.radius:null}:{type:"sliderLoad",width:"undefined"!=typeof CU3ER[c].json.preloader.width?
CU3ER[c].json.preloader.width:null,height:"undefined"!=typeof CU3ER[c].json.preloader.height?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:"undefined"!=typeof CU3ER[c].json.preloader.image?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:"stage"==CU3ER[c].json.preloader.align_to?"stage":"slides",padding:CU3ER[c].json.preloader.background.padding,shape:CU3ER[c].json.preloader.type,
radius:"undefined"!=typeof CU3ER[c].json.preloader.radius?CU3ER[c].json.preloader.radius:null});CU3ER[c].updateIndicator(++CU3ER[c].a,CU3ER[c].totalInd,CU3ER[c].stage+" .CU3ERindicator",!0);if(!0==d.vars.pause_on_rollover||"undefined"!=typeof json.settings.pause_onrollover&&"true"==json.settings.pause_on_rollover)CU3ER[c].rollOverPause=!0;CU3ER[c].debug("xml loaded");CU3ER[c].is3D()?"undefined"!=typeof json.settings.background.image&&"true"==json.settings.background.image.use_image?("false"==json.settings.background.color.transparent&&
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),"undefined"!=typeof json.settings.background.color.transparent&&"true"==json.settings.background.color.transparent?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,d);"undefined"!=typeof json.description&&CU3ER[c].drawDescription(json.description)},drawBackground:function(b){var d=this.id,c=this.el;if(CU3ER[d].is3D()){var e=/https?:\/\/([-\w\.]+)+(:\d+)?(\/([\w/_\.]*(\?\S+)?)?)?/.test(CU3ER[d].json.settings.background.image.url)?
CU3ER[d].json.settings.background.image.url:CU3ER[d].json.settings.folder_images+"/"+CU3ER[d].json.settings.background.image.url,g=new Image;jQuery(g).attr("src",e).bind("load",function(){CU3ER[d].updateIndicator(++CU3ER[d].a,CU3ER[d].totalInd,CU3ER[d].stage+" .CU3ERindicator",!0);var f=[];f[0]="undefined"!=typeof b.image.scaleX?parseFloat(b.image.scaleX):1;f[1]="undefined"!=typeof b.image.scaleY?parseFloat(b.image.scaleY):1;var h=g.width*f[0],k=g.height*f[1];cssBgd=CU3ER[d].calculatePosition({align_pos:"undefined"!=
typeof b.image.align_pos?b.image.align_pos:"TL",x:"undefined"!=typeof b.image.x?b.image.x:0,y:"undefined"!=typeof b.image.y?b.image.y:0,width:h,height:k,fullWidth:CU3ER[d].json.settings.width,fullHeight:CU3ER[d].json.settings.height});cssBgdFixed={width:h+"px",height:k+"px",position:"absolute",backgroundColor:"undefined"!=typeof b.color.transparent&&"true"==b.color.transparent?"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("+f[0]+") scaleY("+f[1]+")","WebkitTransform-origin":"top left"});CU3ER[d].debug("background loaded")}).error(function(){null==CU3ER[d].transition&&(CU3ER[d].updateIndicator(++CU3ER[d].a,CU3ER[d].totalInd,CU3ER[d].stage+" .CU3ERindicator",!0),CU3ER[d].debug("ERROR: background not exist"))})}else e=CU3ER[d].imgFallbackFolder+"/fallback/bg.png",g=new Image,jQuery(g).attr("src",e).bind("load",function(){CU3ER[d].updateIndicator(++CU3ER[d].a,
CU3ER[d].totalInd,CU3ER[d].stage+" .CU3ERindicator",!0);cssBgd=CU3ER[d].calculatePosition({align_pos:"TL",x:0,y:0,width:g.width,height:g.height,fullWidth:CU3ER[d].json.settings.width,fullHeight:CU3ER[d].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[d].debug("background loaded")}).error(function(){null==
CU3ER[d].transition&&(CU3ER[d].updateIndicator(++CU3ER[d].a,CU3ER[d].totalInd,CU3ER[d].stage+" .CU3ERindicator",!0),CU3ER[d].debug("ERROR: background not exist"))})},drawSlides:function(b,d,c,e,g){var f=this.id,h=this.el,k=!1;if("undefined"==typeof b.slide.length){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[f].is3D()){slides1=jQuery.extend(!0,{},d,b);this.originalJSONelements=b=jQuery.extend(d,b);for(i in CU3ER[f].json.slides.slide)if("number"==typeof i||!isNaN(i))CU3ER[f].json.slides.slide[i].originalPosition=i;
if("true"==CU3ER[f].randomise)CU3ER[f].json.slides.slide=jQuery.shuffle(CU3ER[f].json.slides.slide);if("undefined"!=typeof g&&!0==g.vars.reverse||"true"==b.reverse)CU3ER[f].json.slides.slide=CU3ER[f].json.slides.slide.reverse(),CU3ER[f].json.slides.transition=CU3ER[f].json.slides.transition.reverse();for(i in CU3ER[f].json.slides.slide)if("number"==typeof i||!isNaN(i))CU3ER[f].slidesOrder[i]=parseInt(CU3ER[f].json.slides.slide[i].originalPosition)+1;"undefined"!=typeof e&&(e=jQuery.extend(p,e));"undefined"!=
typeof e&&(g="stage"==e.align_to?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("undefined"==typeof CU3ER[f].json.settings.camera)CU3ER[f].json.settings=jQuery.extend({camera:{x:0,y:0,z:0,angleX:0,angleY:0,angleZ:0,lend:8}},CU3ER[f].json.settings);var d="undefined"!=typeof CU3ER[f].json.custom.x?CU3ER[f].json.custom.x:CU3ER[f].json.settings.camera.x,g="undefined"!=
typeof CU3ER[f].json.custom.y?CU3ER[f].json.custom.y:-parseFloat(CU3ER[f].json.settings.camera.y),p="undefined"!=typeof CU3ER[f].json.custom.z?CU3ER[f].json.custom.z:CU3ER[f].json.settings.camera.z,n="undefined"!=typeof CU3ER[f].json.custom.angleX?CU3ER[f].json.custom.angleX:CU3ER[f].json.settings.camera.angleX,m="undefined"!=typeof CU3ER[f].json.custom.angleY?CU3ER[f].json.custom.angleY:parseFloat(CU3ER[f].json.settings.camera.angleY),s="undefined"!=typeof CU3ER[f].json.custom.angleZ?CU3ER[f].json.custom.angleZ:
CU3ER[f].json.settings.camera.angleZ,u="undefined"!=typeof CU3ER[f].json.custom.lens?CU3ER[f].json.custom.lens:100*parseInt(CU3ER[f].json.settings.camera.lens),d="undefined"==typeof d||isNaN(d)?0:d,g="undefined"==typeof g||isNaN(g)?0:g,p="undefined"==typeof p||isNaN(p)?0:p,n="undefined"==typeof n||isNaN(n)?0:n,m="undefined"==typeof m||isNaN(m)?0:m,s="undefined"==typeof s||isNaN(s)?0:s,u="undefined"==typeof u||isNaN(u)?800:u,q,t,v,w;q=Math.PI/180;t=-n;v=m;w=s;var y;t=$M([[1,0,0,0],[0,Math.cos(t*q),
Math.sin(-t*q),0],[0,Math.sin(t*q),Math.cos(t*q),0],[0,0,0,1]]);v=$M([[Math.cos(v*q),0,Math.sin(v*q),0],[0,1,0,0],[Math.sin(-v*q),0,Math.cos(v*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],[d,g,p,1]]);t=t.x(v).x(q).x(w).x(y);w="matrix3d("+(t.e(1,1).toFixed(10)+","+t.e(1,2).toFixed(10)+","+t.e(1,3)+","+t.e(1,4).toFixed(10)+",");w+=t.e(2,1).toFixed(10)+
","+t.e(2,2).toFixed(10)+","+t.e(2,3)+","+t.e(2,4).toFixed(10)+",";w+=t.e(3,1).toFixed(10)+","+t.e(3,2).toFixed(10)+","+t.e(3,3)+","+t.e(3,4).toFixed(10)+",";w+=t.e(4,1).toFixed(10)+","+t.e(4,2).toFixed(10)+","+t.e(4,3)+","+t.e(4,4).toFixed(10);w+=")";d="@-webkit-keyframes translateHolder { from { -webkit-transform: translateX("+d+"px) translateY("+g+"px) translateZ("+p+"px) rotate3d("+n+", "+m+", "+s+", "+m+"deg); } 50% {-webkit-transform: translateX("+d+"px) translateY("+g+"px) translateZ(-250px) rotate3d("+
n+", "+m+", "+s+", "+m+"deg); } to {-webkit-transform: translateX("+d+"px) translateY("+g+"px) translateZ("+p+"px) rotate3d("+n+", "+m+", "+s+", 0deg);} }";try{var x=document.styleSheets[document.styleSheets.length-1];x.insertRule(d,x.cssRules.length)}catch(D){x=""}jQuery(".CU3ERslides",h).css("-webkit-perspective",u+"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("number"==
typeof i||!isNaN(i)){"undefined"==typeof CU3ER[f].jsonOriginal.slides.slide.length?(u=jQuery.extend(!0,{},r,CU3ER[f].jsonOriginal.defaults.slide,CU3ER[f].jsonOriginal.slides.slide),g=jQuery.extend(!0,{},o,CU3ER[f].jsonOriginal.defaults.transition,CU3ER[f].jsonOriginal.slides.transition)):(u=jQuery.extend(!0,{},r,CU3ER[f].jsonOriginal.defaults.slide,CU3ER[f].jsonOriginal.slides.slide[i]),g=jQuery.extend(!0,{},o,CU3ER[f].jsonOriginal.defaults.transition,CU3ER[f].jsonOriginal.slides.transition[i]));
d="@-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(d,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(u.image.scaleX);n=parseFloat(u.image.scaleY);m="";"undefined"!=typeof b.slide[i].color?m=' style="background-color:'+
b.slide[i].color.replace("0x","#")+';"':"undefined"!=typeof slides1.slide.color&&(m=' style="background-color:'+slides1.slide.color.replace("0x","#")+';"');"true"==b.slide[i].transparent?m=' style="background-color: transparent;"':"true"==slides1.slide.transparent&&(m=' style="background-color: transparent;"');s="undefined"!=typeof b.slide[i].link&&("string"==typeof b.slide[i].link||"undefined"!=typeof b.slide[i].link.text)?"undefined"!=typeof b.slide[i].link.text?b.slide[i].link.text:b.slide[i].link:
"undefined"!=typeof CU3ER[f].jsonOriginal.defaults.slide.link&&"undefined"!=typeof CU3ER[f].jsonOriginal.defaults.slide.link.text?CU3ER[f].jsonOriginal.defaults.slide.link.text:"#";t="undefined"!=typeof b.slide[i].link&&"undefined"!=typeof b.slide[i].link.target&&"#"!=s?' target="'+b.slide[i].link.target+'"':"undefined"!=typeof CU3ER[f].jsonOriginal.defaults.slide.link&&"undefined"!=typeof CU3ER[f].jsonOriginal.defaults.slide.link.target&&"#"!=s?' target="'+CU3ER[f].jsonOriginal.defaults.slide.link.target+
'"':"";v="#"!=s?' style="width:'+b.width+"px;height:"+b.height+'px;display:block;"':' style="cursor:default !important;"';"undefined"!=typeof b.slide[i].use_image&&"false"==b.slide[i].use_image?jQuery(".CU3ERslides-holder",h).append('<div id="CU3ERSlide_'+i+'" class="CU3ERslide"'+m+'><div class="CU3ERslideImage"'+m+'><a href="'+s+'"'+t+v+"><img /></a></div></div>"):jQuery(".CU3ERslides-holder",h).append('<div id="CU3ERSlide_'+i+'" class="CU3ERslide notLoaded"'+m+'><div class="CU3ERslideImage"'+m+
'><a href="'+s+'"'+t+v+'><img src="'+q+'" rel="'+p+":"+n+":"+u.image.x+":"+u.image.y+":"+u.image.align_pos+'" /></a></div></div>').find("#CU3ERSlide_"+i+" img").bind("load",function(){var c=this.width,d=this.height,e=jQuery(this)[0],g=jQuery(e).attr("rel").split(":");jQuery("<img/>").attr("src",jQuery(e).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(d==this.height)var m=d*parseFloat(g[1]);
else g[1]=Math.round(this.height*g[1]/d*Math.pow(10,2))/Math.pow(10,2),m=d*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[f].calculatePosition(optionsImage);h.position="relative";m=g.join(":");jQuery(e).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(e).parent().parent().parent().attr("id").split("_")[1]==CU3ER[f].no&&(k=!0,CU3ER[f].updateIndicator(++CU3ER[f].a,CU3ER[f].totalInd,CU3ER[f].stage+" .CU3ERindicator",!0),CU3ER[f].debug("first slide loaded"))})});p={};if("undefined"!=typeof e){n="";if("undefined"!=typeof e.thumb&&"undefined"!=typeof e.thumb.title&&("undefined"!=typeof e.thumb.title.use_numbering&&"true"==e.thumb.title.use_numbering&&(n+=parseInt(i)+1+e.thumb.title.use_numbering_separator+" "),"undefined"!=typeof e.thumb.title.use_heading&&
"true"==e.thumb.title.use_heading&&"undefined"!=typeof b.slide[i].description&&(n+="undefined"!=typeof b.slide[i].description.heading?b.slide[i].description.heading+" ":""),"undefined"!=typeof e.thumb.title.use_caption&&"true"==e.thumb.title.use_caption&&"undefined"!=typeof b.slide[i].caption&&(n+="undefined"!=typeof b.slide[i].caption?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="true"==e.thumb.title.text_bold?"bold":"normal";p.fontStyle="true"==e.thumb.title.text_italic?"italic":"normal";p.textAlign=e.thumb.title.text_align;n.textDecoration="none";p.overflow="hidden";if("undefined"!=typeof e.thumb.title.text_leading&&
0<e.thumb.title.text_leading)p.lineHeight=e.thumb.title.text_leading+"px";if("undefined"!=typeof e.thumb.title.text_letterspacing&&0<e.thumb.title.text_letterspacing)p.letterSpacing=e.thumb.title.text_letterspacing+"px"}"undefined"!=typeof e.thumb&&"undefined"!=typeof e.thumb.image?(g=CU3ER[f].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;"undefined"!=typeof e&&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[f].stage).width(),fullHeight:jQuery(CU3ER[f].stage).height()};cssSlides=this.calculatePosition(optionsSlides);jQuery(CU3ER[f].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(d,b);for(i in CU3ER[f].json.slides.slide)CU3ER[f].json.slides.slide[i].originalPosition=i;if("true"==CU3ER[f].randomise)CU3ER[f].json.slides.slide=jQuery.shuffle(CU3ER[f].json.slides.slide);if("undefined"!=
typeof g&&!0==g.vars.reverse||"true"==b.reverse)CU3ER[f].json.slides.slide=CU3ER[f].json.slides.slide.reverse(),CU3ER[f].json.slides.transition=CU3ER[f].json.slides.transition.reverse();for(i in CU3ER[f].json.slides.slide)CU3ER[f].slidesOrder[i]=parseInt(CU3ER[f].json.slides.slide[i].originalPosition)+1;"undefined"!=typeof e&&(e=jQuery.extend(p,e));"undefined"!=typeof e&&(g="stage"==e.align_to?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("number"==typeof i||!isNaN(i))if(CU3ER[f].isCameraFlat()?("undefined"==typeof CU3ER[f].jsonOriginal.slides.slide.length?(u=jQuery.extend(!0,{},r,CU3ER[f].jsonOriginal.defaults.slide,CU3ER[f].jsonOriginal.slides.slide),g=jQuery.extend(!0,{},o,CU3ER[f].jsonOriginal.defaults.transition,CU3ER[f].jsonOriginal.slides.transition)):(u=jQuery.extend(!0,{},r,CU3ER[f].jsonOriginal.defaults.slide,CU3ER[f].jsonOriginal.slides.slide[i]),g=jQuery.extend(!0,{},o,CU3ER[f].jsonOriginal.defaults.transition,
CU3ER[f].jsonOriginal.slides.transition[i])),q="slide"+(parseInt(i)+1)+".png",g=CU3ER[f].imgFallbackFolder+"/fallback/thumb_slide"+(parseInt(i)+1)+".png",m=""):(b.slide[i].url="slide"+(parseInt(i)+1)+".png",q=CU3ER[f].imgFallbackFolder+"/fallback/"+b.slide[i].url,g=CU3ER[f].imgFallbackFolder+"/fallback/thumb_"+b.slide[i].url),"undefined"!=typeof b.slide[i].link?(s="undefined"!=typeof b.slide[i].link&&("string"==typeof b.slide[i].link||"undefined"!=typeof b.slide[i].link.text)?"undefined"!=typeof b.slide[i].link.text?
b.slide[i].link.text:b.slide[i].link:"undefined"!=typeof CU3ER[f].jsonOriginal.defaults.slide.link&&"undefined"!=typeof CU3ER[f].jsonOriginal.defaults.slide.link.text?CU3ER[f].jsonOriginal.defaults.slide.link.text:"#",t="undefined"!=typeof b.slide[i].link.target?' target="'+b.slide[i].link.target+'"':"undefined"!=typeof CU3ER[f].jsonOriginal.defaults.slide.link.target?' target="'+CU3ER[f].jsonOriginal.defaults.slide.link.target+'"':""):(s="#",t=""),CU3ER[f].isCameraFlat()?(slides1=jQuery.extend(!0,
{},d,b),p=parseFloat(u.image.scaleX),n=parseFloat(u.image.scaleY),m="",m="undefined"!=typeof b.slide[i].color?' style="background-color:'+b.slide[i].color.replace("0x","#")+"; width:"+b.width+"px; height:"+b.height+'px;"':"undefined"!=typeof slides1.slide.color?' style="background-color:'+slides1.slide.color.replace("0x","#")+"; width:"+b.width+"px; height:"+b.height+'px;"':"undefined"!=typeof u.color?' style="background-color: '+u.color.replace("0x","#")+"; width:"+b.width+"px; height:"+b.height+
'px;"':' style="background-color: #000; width:'+b.width+"px; height:"+b.height+'px;"',"true"==b.slide[i].transparent?m=' style="background-color: transparent;"':"true"==slides1.slide.transparent?m=' style="background-color: transparent;"':"true"==u.transparent&&(m=' style="background-color: transparent;"'),v="#"!=s?' style="width:'+b.width+"px;height:"+b.height+'px;display:block;"':' style="cursor:default !important;"',"undefined"!=typeof b.slide[i].use_image&&"false"==b.slide[i].use_image?jQuery(".CU3ERslides-holder",
h).append('<div id="CU3ERSlide_'+i+'" class="CU3ERslide"'+m+'><a href="'+s+'"'+t+v+"><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+'"'+t+v+'><img rel="'+p+":"+n+":"+u.image.x+":"+u.image.y+":"+u.image.align_pos+'" /></a></div>').find("#CU3ERSlide_"+i+" img").bind("load",function(){var c=
this.width,d=this.height,e=jQuery(this)[0],g=jQuery(e).attr("rel").split(":");jQuery("<img>").attr("src",jQuery(e).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(d==this.height)var m=d*parseFloat(g[1]);else g[1]=Math.round(this.height*g[1]/d*Math.pow(10,2))/Math.pow(10,2),m=d*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[f].calculatePosition(optionsImage);k.position="relative";var n=g.join(":");jQuery(e).css({width:h+"px",height:m+"px"}).css(k).attr("rel",n);jQuery(e).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=d*parseFloat(g[1]);else g[1]=Math.round(this.height*g[1]/d*Math.pow(10,2))/Math.pow(10,2),m=d*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[f].calculatePosition(optionsImage);k.position="relative";var n=g.join(":");jQuery(e).css({width:h+"px",height:m+"px"}).css(k).attr("rel",n);jQuery(e).parent().parent().removeClass("notLoaded")}jQuery(this).parent().parent().removeClass("notLoaded")}).attr("src",
q))):"#"!=s?(t="undefined"==typeof b.slide[i].link.target?"_blank":b.slide[i].link.target,jQuery(".CU3ERslides-holder",h).append('<div id="CU3ERSlide_'+i+'" class="CU3ERslide notLoaded"><a href="'+s+'" target="'+t+'"><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[f].no&&(k=!0,CU3ER[f].updateIndicator(++CU3ER[f].a,CU3ER[f].totalInd,
CU3ER[f].stage+" .CU3ERindicator",!0),CU3ER[f].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[f].no&&(k=!0,CU3ER[f].updateIndicator(++CU3ER[f].a,CU3ER[f].totalInd,CU3ER[f].stage+" .CU3ERindicator",!0),CU3ER[f].debug("first slide loaded"))}),
p={},"undefined"!=typeof e){n="";if("undefined"!=typeof e.thumb&&"undefined"!=typeof e.thumb.title&&("undefined"!=typeof e.thumb.title.use_numbering&&"true"==e.thumb.title.use_numbering&&(n+=parseInt(i)+1+e.thumb.title.use_numbering_separator+" "),"undefined"!=typeof e.thumb.title.use_heading&&"true"==e.thumb.title.use_heading&&"undefined"!=typeof b.slide[i].description&&(n+="undefined"!=typeof b.slide[i].description.heading?b.slide[i].description.heading+" ":""),"undefined"!=typeof e.thumb.title.use_caption&&
"true"==e.thumb.title.use_caption&&"undefined"!=typeof b.slide[i].caption&&(n+="undefined"!=typeof b.slide[i].caption?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="true"==e.thumb.title.text_bold?"bold":"normal";p.fontStyle="true"==e.thumb.title.text_italic?"italic":"normal";p.textAlign=e.thumb.title.text_align;n.textDecoration="none";p.overflow="hidden";if("undefined"!=typeof e.thumb.title.text_leading&&0<e.thumb.title.text_leading)p.lineHeight=e.thumb.title.text_leading+"px";if("undefined"!=typeof e.thumb.title.text_letterspacing&&0<e.thumb.title.text_letterspacing)p.letterSpacing=e.thumb.title.text_letterspacing+"px"}"undefined"!=
typeof e.thumb&&"undefined"!=typeof e.thumb.image?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;"undefined"!=typeof e&&this.drawThumbnails(e);images=jQuery(".CU3ERslides-holder div.CU3ERslide img",h);jQuery(images[CU3ER[f].current]).bind("load",function(){k=!0;CU3ER[f].updateIndicator(++CU3ER[f].a,CU3ER[f].totalInd,CU3ER[f].stage+" .CU3ERindicator",!0);CU3ER[f].debug("first slide loaded")});
optionsSlides={align_pos:b.align_pos,x:b.x,y:b.y,width:b.width,height:b.height,fullWidth:CU3ER[f].json.settings.width,fullHeight:CU3ER[f].json.settings.height};cssSlides=this.calculatePosition(optionsSlides);jQuery(CU3ER[f].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[f].current]).hasClass("notLoaded")&&!1==k&&(k=!0,CU3ER[f].updateIndicator(++CU3ER[f].a,CU3ER[f].totalInd,CU3ER[f].stage+" .CU3ERindicator",!0),CU3ER[f].debug("first slide loaded"));jQuery(".CU3ERslide a",h).bind("mouseover",function(){jQuery(this).css("backgroundColor","transparent")})},drawCircularProgressBar:function(b){var d=this.id,c=this.el;this.stopFlag=!1;clearTimeout(this.circularPBOptions.tempTimeout);var e="stage"==b.align_to?this.stage:this.slides,g=2*parseInt(this.circularPBOptions.radius)+
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 f=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(f.substr(0,2),16),p=parseInt(f.substr(2,
2),16),f=parseInt(f.substr(4,2),16);k.strokeStyle="rgba("+o+", "+p+", "+f+", "+this.circularPBOptions.opacity1+")";k.arc(this.circularPBOptions.radius,this.circularPBOptions.radius,this.circularPBOptions.radius/2,2*Math.PI,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);f=parseInt(h.substr(2,2),16);h=parseInt(h.substr(4,2),16);k.strokeStyle="rgba("+p+", "+f+", "+h+", "+e+")";k.arc(this.circularPBOptions.radius,
this.circularPBOptions.radius,o/2,2*Math.PI,0,!1);k.stroke();k.closePath();clearTimeout(this.circularPBOptions.tempTimeout);this.startCircularProgressbar(this.circularPBOptions);"stage"==b.align_to?(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:2*
parseInt(b.radius)+parseInt(b.padding)+"px",height:2*parseInt(b.radius)+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[d].circularPBOptions.color2=b.colorLoaderHover.replace("0x","");CU3ER[d].circularPBOptions.opacity1=b.hoverAlpha;CU3ER[d].changeColorOnCircularProgressbar(CU3ER[d].circularPBOptions)},
function(){CU3ER[d].circularPBOptions.color2=b.colorLoader.replace("0x","");CU3ER[d].circularPBOptions.opacity1=b.bgAlpha;CU3ER[d].changeColorOnCircularProgressbar(CU3ER[d].circularPBOptions)})},startCircularProgressbar:function(b,d){var c=this.id,e="undefined"!=typeof d?d:!1,g=Math.ceil(this.sleepDuration/35);this.degMovement=Math.ceil(360/g);var g=b.startPoint*Math.PI/180,f=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=2*parseInt(this.circularPBOptions.radius)+parseInt(this.circularPBOptions.padding);r.clearRect(0,0,n+3,n+3);r.beginPath();r.width=2*b.radius;r.height=2*b.radius;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,2*Math.PI,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,f,!1);r.stroke();r.closePath();this.circularPBOptions.endPoint=b.endPoint+this.degMovement;if(365>=this.circularPBOptions.endPoint){if(!1==this.stopFlag)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 d=b.startPoint*Math.PI/180,c=b.endDeg*Math.PI/180,e=this.circularPBOptions.color1.replace("0x",""),g=this.circularPBOptions.color2.replace("0x",""),f=this.circularPBOptions.opacity1,h=this.circularPBOptions.opacity2,k=document.getElementById("CU3ERprogressbar").getContext("2d"),o=2*parseInt(this.circularPBOptions.radius)+parseInt(this.circularPBOptions.padding);
k.clearRect(0,0,o+3,o+3);k.beginPath();o=this.circularPBOptions.radius-this.circularPBOptions.padding;k.width=2*b.radius;k.height=2*b.radius;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+", "+f+")";k.arc(b.radius,b.radius,b.radius/2,2*Math.PI,0,!0);k.stroke();k.closePath();k.beginPath();k.lineWidth=b.radius-b.padding;f=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("+f+", "+e+", "+g+", "+h+")";k.arc(b.radius,b.radius,o/2,d,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 d=b.startPoint*Math.PI/180,c=b.endPoint*Math.PI/180,e=this.circularPBOptions.color1.replace("0x",
""),g=this.circularPBOptions.color2.replace("0x",""),f=this.circularPBOptions.opacity1,h=this.circularPBOptions.opacity2,k=document.getElementById("CU3ERprogressbar").getContext("2d");k.beginPath();k.width=2*b.radius;k.height=2*b.radius;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+", "+f+")";k.arc(b.radius,b.radius,b.radius/2,2*Math.PI,0,!0);k.stroke();k.beginPath();k.lineWidth=b.radius-b.padding;
f=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("+f+", "+o+", "+g+", "+h+")";k.arc(b.radius,b.radius,p/2,d,c,!1);k.stroke()},drawProgressBar:function(b){var d=this.id,c=this.el,e="stage"==b.align_to?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,f=CU3ER[d].xml,h;try{h=window.ActiveXObject?f.xml:(new XMLSerializer).serializeToString(f)}catch(k){h=
f}if("undefined"==typeof h||""==h)h=f;h=h.match(/(<licence>(.)*<\/licence>)+/gi);null!=h?h.push(CU3ER[d].licenseStr):h=Array(CU3ER[d].licenseStr);if(null!=h){for(f=0;f<h.length;f++)h[f]=h[f].split("<licence>").join("").split("</licence>").join(""),h[f]=h[f].split("<![CDATA[").join("").split("]]\>").join("");f=!1;if(0!=h.length){var o=document.location.href.toLowerCase(),o=o.split("https://").join("").split("http://").join("").split("www.").join(""),o=o.split("/")[0];"file:"==o&&(o="localdrive");for(var p=
o.split(".");4<p.length;)p.splice(0,1);for(var r=p,n,m,s,u="",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],f=0;32>f;f++){n=f%2+1;for(s=m=0;s<o[q[8]];)m+=(o[q[7]](s)+3)%(f+1)*(o[q[7]](s)+2),s+=n;m=m%94+33;60==m&&(m=58);62==m&&(m=59);u+=String[q[9]](m)}var t=!1;for(l=0;l<h.length;l++)t=t||u==h[l].toString();u=u.split("+").join(" ");for(l=0;l<h.length;l++)t=t||u==h[l].toString();
if(3<p.length){u="";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(f=0;32>f;f++){n=f%2+1;for(s=m=0;s<o[q[8]];)m+=(o[q[7]](s)+3)%(f+1)*(o[q[7]](s)+2),s+=n;m=m%94+33;60==m&&(m=58);62==m&&(m=59);u+=String[q[9]](m)}for(l=0;l<h.length;l++)t=t||u==h[l].toString();u=u.split("+").join(" ");for(l=0;l<h.length;l++)t=t||u==h[l].toString()}p=
r;if(2<p.length){u="";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(f=0;32>f;f++){n=f%2+1;for(s=m=0;s<o[q[8]];)m+=(o[q[7]](s)+3)%(f+1)*(o[q[7]](s)+2),s+=n;m=m%94+33;60==m&&(m=58);62==m&&(m=59);u+=String[q[9]](m)}for(l=0;l<h.length;l++)t=t||u==h[l].toString();u=u.split("+").join(" ");for(l=0;l<h.length;l++)t=t||u==h[l].toString()}f=t?!0:!1}else f=
!1}else f=!1;if("sliderLoad"==b.type)if(h="undefined"!=typeof CU3ER[d].json.settings.branding?"undefined"!=typeof CU3ER[d].json.settings.branding.remove_logo_loader?CU3ER[d].json.settings.branding.remove_logo_loader:"false":"false",f&&"true"==h)if("undefined"==typeof b.image||null==b.image){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})}),"circular"==b.shape){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;b.width=2*parseInt(CU3ER[d].json.preloader.radius);b.height=10>parseInt(CU3ER[d].json.preloader.radius)/4?10:parseInt(CU3ER[d].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})}),"circular"==b.shape){if(this.supportCanvas())return this.circularPBOptions={color1:b.bgTweenShowTint.replace("0x",""),color2:b.loaderTweenShowTint.replace("0x",""),opacity1:0<b.bgTweenShowAlpha?b.bgTweenShowAlpha:"0.75",opacity2:0<b.loaderTweenShowAlpha?b.loaderTweenShowAlpha:"0.75",padding:b.padding,radius:b.radius,startPoint:0,endPoint:0,tempTimeout:null,shape:"circular"},
this.drawCircularProgressBar(b),!1;b.width=2*parseInt(CU3ER[d].json.controls.auto_play_indicator.radius);b.height=10>parseInt(CU3ER[d].json.controls.auto_play_indicator.radius)/4?10:parseInt(CU3ER[d].json.controls.auto_play_indicator.radius)/4}"stage"==b.align_to?(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"});"sliderLoad"==b.type&&jQuery(".CU3ERindicator",c).css({opacity:1,cursor:"default",background:"transparent"}).unbind();g=0==b.height%2?2:1;h=1>parseInt(b.height)-
2*parseInt(b.padding)?g:+(parseInt(b.height)-2*parseInt(b.padding));g={top:parseInt(b.padding),left:parseInt(b.padding),maxWidth:parseInt(b.width)-parseInt(b.padding)-2*parseInt(b.padding)+"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)-2*parseInt(b.padding)+"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);("undefined"==typeof b.image||null==b.image)&&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:"undefined"==typeof b.image||null==b.image?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/"+("undefined"!=typeof CU3ER[d].json.referral?"?cu3er="+CU3ER[d].json.referral:""),"CU3ER")}),e=!1)},drawButtons:function(b,d,c,e,g){var f=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("stage"==b.align_to?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>');"undefined"!=typeof b.symbol&&(jQuery(".CU3ERbutton"+b.type1+" .CU3ERshowBtn",h).append('<img src="'+CU3ER[f].imgFallbackFolder+"/fallback/"+b.type+'_symbol_show.png" />').find("img").css({"z-index":451,position:"absolute",top:0,left:0}).load(function(){null==CU3ER[f].transition&&(CU3ER[f].updateIndicator(++CU3ER[f].a,CU3ER[f].totalInd,CU3ER[f].stage+" .CU3ERindicator",!0),CU3ER[f].debug(b.type1+" button loaded"))}).error(function(){null==CU3ER[f].transition&&(CU3ER[f].updateIndicator(++CU3ER[f].a,
CU3ER[f].totalInd,CU3ER[f].stage+" .CU3ERindicator",!0),CU3ER[f].debug(b.type1+" button not exist"))}),jQuery(".CU3ERbutton"+b.type1+" .CU3ERoverBtn",h).append('<img src="'+CU3ER[f].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:"slides"==
b.align_to?parseInt(d):parseInt(e),fullHeight:"slides"==b.align_to?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:"slides"==b.align_to?parseInt(d):parseInt(e),fullHeight:"slides"==
b.align_to?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("prev"==b.type){if(!CU3ER[f].inTransition)CU3ER[f].inTransition=!0,CU3ER[f].doCheck=!1,setTimeout(function(){CU3ER[f].prev()},
50)}else if(!CU3ER[f].inTransition)CU3ER[f].inTransition=!0,CU3ER[f].doCheck=!1,setTimeout(function(){CU3ER[f].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 d=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(!0,c,b);b.x=parseInt(b.x)+parseInt(b.background.tweenShow.x);b.y=parseInt(b.y)+parseInt(b.background.tweenShow.y);var e="stage"==b.align_to?this.stage:this.slides;if("stage"==b.align_to)var g=this.json.settings.width,f=this.json.settings.height;
else g=this.json.slides.width,f=this.json.slides.height;b.fullWidth=g;b.fullHeight=f;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=f;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",d).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",
d).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"});"undefined"!=
typeof b.heading&&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","#")});"undefined"!=typeof b.paragraph&&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",
d).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"});"undefined"!=
typeof b.heading&&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","#")});"undefined"!=typeof b.paragraph&&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 d=this.id,c=this.el;CU3ER[d].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("stage"==b.align_to)var f=this.json.settings.width,h=this.json.settings.height;else f=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:f,fullHeight:h});if("horizontal"==b.scroll){var h=parseInt(b.width),f=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=0==o?1:o,k=0==k?1:k,p=f-parseInt(k)*parseInt(o)*parseInt(parseInt(b.thumb.width)+
parseInt(b.thumb.spacing_x)),p=0<p?parseInt(b.width)+parseInt(b.padding_x)+parseInt(p):b.width,h=f/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)),r=parseInt(b.width)-parseInt(b.padding_x)+"px",n=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:r,fullHeight:n});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:r,fullHeight:n});var m=!1,s=jQuery(".CU3ERThumb",
c),u=this.slidesTotal<=k?this.slidesTotal:Math.ceil(this.slidesTotal/Math.floor(o));s.each(function(){e==u&&g+1<u&&(e=0,g++,m=!0);var c=e*parseInt(b.thumb.width)+e*parseInt(b.thumb.spacing_x)+parseInt(b.thumb.x),f=g*parseInt(b.thumb.height)+g*parseInt(b.thumb.spacing_y)+parseInt(b.thumb.y),c=CU3ER[d].calculatePosition({x:c,y:f,width:parseInt(b.thumb.width),height:Math.floor(o)*parseInt(b.thumb.height),fullWidth:parseInt(r),fullHeight:parseInt(n),align_pos:"TL"});jQuery(this).css(c).css({position:"absolute"});
e++})}else{h=parseInt(b.height)-parseInt(b.padding_y);f=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=0==o?1:o,k=0==k?1:k,h=f-parseInt(o)*parseInt(k)*parseInt(parseInt(b.thumb.height)+parseInt(b.thumb.spacing_y)),h=0<h?parseInt(b.height)+parseInt(h):b.height,h=o*(parseInt(b.thumb.height)+parseInt(b.thumb.spacing_y))-parseInt(b.thumb.spacing_y),q=f/parseInt(o*parseInt(parseInt(b.thumb.height)+parseInt(b.thumb.spacing_y))),p=Math.ceil(q)>parseInt(k)?parseInt(k):Math.ceil(q),p=parseInt(p)*parseInt(parseInt(b.thumb.width)+parseInt(b.thumb.spacing_x));totalH1=
q/k;var r=parseInt(b.width)+parseInt(b.padding_x)+"px",n=parseInt(b.height)-parseInt(b.padding_y)+"px",t=Math.ceil(this.slidesTotal/o),q=t<=k?!1:!0,t=t<=k?t:k;cssThumbHolderScroll=this.calculatePosition({x:0,y:0,align_pos:"TL",width:Math.floor(t)*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:parseInt(r),fullHeight:parseInt(n)});var v=Math.floor(t)*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),p=t<=k?v>p?v:p:r;cssThumbHolder=this.calculatePosition({x:0,y:parseInt(b.padding_y),align_pos:"TC",width:v,height:parseInt(b.height),fullWidth:p,fullHeight:t<=o?h:n});s=jQuery(".CU3ERThumb",c);m=!1;e=g=0;s.each(function(){var c=e*parseInt(b.thumb.width)+e*parseInt(b.thumb.spacing_x)+parseInt(b.thumb.x),f=g*parseInt(b.thumb.height)+g*parseInt(b.thumb.spacing_y)+parseInt(b.thumb.y),c=CU3ER[d].calculatePosition({x:c,y:f,width:Math.floor(k)*
parseInt(b.thumb.width),height:parseInt(b.thumb.height),fullWidth:parseInt(r),fullHeight:parseInt(n),align_pos:"TL"});jQuery(this).css(c).css({position:"absolute"});e++;e>=k&&(1<e&&(m=!0),e=0,g++)})}"undefined"!=typeof b.background&&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",border:"none",padding:0,background:"none"}).hover(function(){var d=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(d).hasClass("current")?b.thumb.background.tweenSelected.tint.replace("0x","#"):b.thumb.background.tweenOver.tint.replace("0x","#"),opacity:jQuery(d).hasClass("current")?b.thumb.background.tweenSelected.alpha:
b.thumb.background.tweenOver.alpha});jQuery(this).find("a").css({"background-image":"none","background-color":"transparent"});"undefined"!=typeof b.thumb.title&&jQuery(this).find(".CU3ERtitle").css({color:jQuery(d).hasClass("current")?b.thumb.title.tweenSelected.tint.replace("0x","#"):b.thumb.title.tweenOver.tint.replace("0x","#"),opacity:jQuery(d).hasClass("current")?b.thumb.background.tweenSelected.alpha:b.thumb.background.tweenOver.alpha});"undefined"!=typeof b.thumb.image&&(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 d=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})});"undefined"!=typeof b.thumb.title&&jQuery(this).find(".CU3ERtitle").css({color:jQuery(d).hasClass("current")?b.thumb.title.tweenSelected.tint.replace("0x","#"):b.thumb.title.tweenShow.tint.replace("0x","#"),opacity:jQuery(d).hasClass("current")?b.thumb.title.tweenSelected.alpha:b.thumb.title.tweenShow.alpha});"undefined"!=
typeof b.thumb.image&&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(){"undefined"!=typeof b.thumb.background&&(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}));"undefined"!=typeof b.thumb.title&&(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}));"undefined"!=typeof b.thumb.image&&(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"});"undefined"!=typeof b.thumb.image&&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("undefined"!=typeof b.scroller)"horizontal"==b.scroll?(h=parseInt(b.width),o=0==o?1:o,b.scroller.maximum=f=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(100*(h/f)),b.scroller.scroll="horizontal"):(h=parseInt(b.height),k=0==k?1:k,b.scroller.maximum=f=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(100*(h/f)),b.scroller.scroll="vertical"),100>b.scroller.slider.width&&this.drawScrollBar(b.scroller);else if(h="horizontal"==b.scroll?parseInt(b.thumb.spacing_x):parseInt(b.thumb.spacing_y),k=this.slidesTotal<=k?this.slidesTotal:k,p="horizontal"==b.scroll?o:k,t="horizontal"==b.scroll?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(p)*parseInt(h)+parseInt(b.padding_x),100>Math.round(100*(b.maximum/f)))if("undefined"!=typeof q&&!0==q)m?b.maximim=Math.ceil(this.slidesTotal/Math.floor(p))*t+h:b.maximum=f-t+h,this.attachScrollBehavior(b);else if("undefined"==typeof q)m?b.maximim=Math.ceil(this.slidesTotal/Math.floor(p))*t+h:b.maximum=f-t+h,this.attachScrollBehavior(b);s=jQuery(".CU3ERthumbs .CU3ERthumbs-holder .CU3ERThumb",c);s.each(function(b){jQuery(s[b]).bind("click touchstart",
function(){if(CU3ER[d].current!=b&&!CU3ER[d].inTransition)CU3ER[d].inTransition=!0,CU3ER[d].doCheck=!1,setTimeout(function(){CU3ER[d].skipTo(b,!0,!1)},50);return!1})})},drawScrollBar:function(b){var d=this.id,c=this.el;CU3ER[d].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,f=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 f=jQuery(e.currentTarget).offset();if("horizontal"==b.scroll){var g=Math.round(f.left+jQuery(e.currentTarget).width()/3),h=
Math.round(f.left+2*(jQuery(e.currentTarget).width()/3)),f=jQuery(".CU3ERThumbsScroll",c).width(),k=jQuery(".CU3ERscroll",c).width(),p=Math.round((parseInt(b.height)-parseInt(b.slider.thickness))/2),o=100*(f-k-p)/parseInt(f),o=o*b.maximum/100,k=100*(f-k)/parseInt(f),k=k*b.maximum/100,e=parseInt(e.clientX);if(e<g){var v=-parseInt(jQuery(".CU3ERthumbs-holder",c).css("marginLeft"));scrollPXMovement=50*Math.round((g-e)*(g-e)/(g+v));scrollPX=0<v-scrollPXMovement?v-scrollPXMovement:0;scrollPercentage=parseInt(100*
(scrollPX/b.maximum));e=Math.ceil(scrollPercentage*parseInt(f)/100);CU3ER[d].scrollTo(e>p?e:p,scrollPX,"LR",!0)}else e>h&&(v=-parseInt(jQuery(".CU3ERthumbs-holder",c).css("marginLeft")),scrollPXMovement=50*Math.round((h-e)*(h-e)/(h+v)),scrollPX=v+scrollPXMovement<o?v+scrollPXMovement:o,scrollPX2=v+scrollPXMovement<k?v+scrollPXMovement:k,scrollPercentage=parseInt(100*(scrollPX/b.maximum)),e=Math.ceil(scrollPercentage*parseInt(f)/100),CU3ER[d].scrollTo(e,scrollPX2,"LR",!0))}else g=Math.round(f.top+
jQuery(e.currentTarget).height()/3),h=Math.round(f.top+2*(jQuery(e.currentTarget).height()/3)),f=jQuery(".CU3ERscroll-holder",c).height(),k=jQuery(".CU3ERscroll",c).height(),p=Math.round((parseInt(b.width)-parseInt(b.slider.thickness))/2),o=100*(f-k-p)/parseInt(f),o=o*b.maximum/100,k=100*(f-k)/parseInt(f),k=k*b.maximum/100,e=parseInt(e.clientY),e<g?(v=-parseInt(jQuery(".CU3ERthumbs-holder",c).css("marginTop")),scrollPXMovement=50*Math.round((g-e)*(g-e)/(g+v)),scrollPX=0<v-scrollPXMovement?v-scrollPXMovement:
0,scrollPercentage=100*(scrollPX/b.maximum),e=Math.ceil(scrollPercentage*parseInt(f)/100),CU3ER[d].scrollTo(e>p?e:p,scrollPX,"TB",!0)):e>h&&(v=-parseInt(jQuery(".CU3ERthumbs-holder",c).css("marginTop")),scrollPXMovement=50*Math.round((h-e)*(h-e)/(h+v)),scrollPX=v+scrollPXMovement<o?v+scrollPXMovement:o,scrollPX2=v+scrollPXMovement<k?v+scrollPXMovement:k,scrollPercentage=100*(scrollPX/b.maximum),e=Math.ceil(scrollPercentage*parseInt(f)/100),CU3ER[d].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:"horizontal"==b.scroll?b.slider.thickness+"px":Math.floor(b.slider.width)+"%",width:"horizontal"==b.scroll?Math.floor(b.slider.width)+"%":b.slider.thickness+"px",position:"absolute",top:"horizontal"==
b.scroll?Math.round((parseInt(b.height)-parseInt(b.slider.thickness))/2):Math.round((parseInt(b.width)-parseInt(b.slider.thickness))/2),left:"horizontal"==b.scroll?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;f=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("horizontal"==b.scroll){var n=jQuery(".CU3ERscroll-holder",c).width(),m=jQuery(".CU3ERscroll",c).width(),m=n-m,o=100*m/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):0>p?(p=Math.round((parseInt(b.height)-parseInt(b.slider.thickness))/2),scrollPX=0):(scrollPercentage=100*p/parseInt(n),
scrollPX=Math.ceil(scrollPercentage*b.maximum/100));CU3ER[d].scrollTo(p,scrollPX,"LR",!1)}else n=jQuery(".CU3ERscroll-holder",c).height(),m=jQuery(".CU3ERscroll",c).height(),m=n-m,o=100*m/parseInt(n),o=Math.ceil(o*b.maximum/100),p=parseInt(p.clientY-f)+k,p>m?(p=m-Math.round((parseInt(b.width)-parseInt(b.slider.thickness))/2),scrollPX=o):0>p?(p=Math.round((parseInt(b.width)-parseInt(b.slider.thickness))/2),scrollPX=0):(scrollPercentage=100*p/parseInt(n),scrollPX=Math.ceil(scrollPercentage*b.maximum/
100)),CU3ER[d].scrollTo(p,scrollPX,"TB",!1)}).bind("mouseup",function(){e=!1})},updateIndicator:function(b,d,c,e){var g=this.id,f=this.el;if(b==d)"undefined"!=typeof this.circularPBOptions&&"undefined"!=typeof this.circularPBOptions.startSlider&&!0==this.circularPBOptions.startSlider?(this.circularPBOptions.endDeg=360,this.animateCircularProgressbarTo(this.circularPBOptions),CU3ER[g].initSlider()):jQuery(c).find(".CU3ERprogress").animate({width:"string"==typeof b?b:"100%"},"normal",function(){!0==
e?(jQuery(".CU3ERindicator",f).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/d*b);"undefined"!=typeof this.circularPBOptions&&"undefined"!=typeof this.circularPBOptions.startSlider&&!0==this.circularPBOptions.startSlider?(this.circularPBOptions.endDeg=360*k/100,this.animateCircularProgressbarTo(this.circularPBOptions)):
k>parseInt(h)&&jQuery(c).find(".CU3ERprogress").animate({width:"string"==typeof b?b:Math.round(100/d*b)+"%"})}},initSlider:function(){var b=this.id,d=this.el;this.keyboardControlls&&jQuery(document).bind("keydown",function(c){if("37"==c.which&&!CU3ER[b].inTransition)CU3ER[b].inTransition=!0,CU3ER[b].doCheck=!1,setTimeout(function(){CU3ER[b].prev()},50);if("39"==c.which&&!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("undefined"==typeof e||""==e)e=c;var f=e.match(/(<licence>(.)*<\/licence>)+/gi);null!=f?f.push(CU3ER[b].licenseStr):f=Array(CU3ER[b].licenseStr);if(null!=f){for(c=0;c<f.length;c++)f[c]=f[c].split("<licence>").join("").split("</licence>").join(""),f[c]=f[c].split("<![CDATA[").join("").split("]]\>").join("");c=!1;if(0!=f.length){var h=document.location.href.toLowerCase(),h=h.split("https://").join("").split("http://").join("").split("www.").join(""),
h=h.split("/")[0];"file:"==h&&(h="localdrive");for(var k=h.split(".");4<k.length;)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;32>c;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;60==r&&(r=58);62==r&&(r=59);n+=String[m[9]](r)}var s=!1;for(l=0;l<f.length;l++)s=s||n==f[l].toString();n=n.split("+").join(" ");
for(l=0;l<f.length;l++)s=s||n==f[l].toString();if(3<k.length){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;32>c;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;60==r&&(r=58);62==r&&(r=59);n+=String[m[9]](r)}for(l=0;l<f.length;l++)s=s||n==f[l].toString();n=n.split("+").join(" ");
for(l=0;l<f.length;l++)s=s||n==f[l].toString()}k=o;if(2<k.length){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;32>c;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;60==r&&(r=58);62==r&&(r=59);n+=String[m[9]](r)}for(l=0;l<f.length;l++)s=s||n==f[l].toString();n=n.split("+").join(" ");for(l=
0;l<f.length;l++)s=s||n==f[l].toString()}c=s?!0:!1}else c=!1}else c=!1;jQuery(".CU3ERbackground",d).css({display:"block"});jQuery(".CU3ERslides-holder div.CU3ERslide, .CU3ERthumbs",d).css("visibility","visible");if(!c){null!=CU3ER[b].rnd&&CU3ER[b].rnd.remove();for(c="";16>c.length;)c+=String.fromCharCode(65+Math.floor(25*Math.random()));e="stage"==json.settings.branding.align_to?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};f=document.getElementById("l-"+c);f.width=f.height=40;h=f.getContext("2d");k=h.getImageData(0,0,f.width,f.height);o=imgLogo.split(",");for(c=0;c<f.height;c++)for(e=0;e<f.width;e++)m=4*(e+40*c),s=parseInt(o[e+40*c],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,d),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("undefined"==typeof cssBranding.bottom)cssBranding.top="5px";if("undefined"==typeof cssBranding.left)cssBranding.right="5px";cssBranding=jQuery.extend(cssBrandingFixed,cssBranding);CU3ER[b].rnd.css(cssBranding);!0===this.verySlow?CU3ER[b].rnd.css("display","block").bind("click",function(){window.open("http://getcu3er.com/"+("undefined"!=typeof CU3ER[b].json.referral?"?cu3er="+CU3ER[b].json.referral:""),"CU3ER")}):CU3ER[b].rnd.fadeIn("slow").bind("click",
function(){window.open("http://getcu3er.com/"+("undefined"!=typeof CU3ER[b].json.referral?"?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",d),u=c.length;c.each(function(){jQuery(this).css({display:"none","z-index":u});u--});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="undefined"!=typeof this.json.slides.slide[this.current].image?this.json.slides.slide[this.current].image.scaleX:1;this.transition.scaleY="undefined"!=typeof this.json.slides.slide[this.current].image?this.json.slides.slide[this.current].image.scaleY:
1;if(1==c.length)jQuery(".CU3ERslides-holder",d).append(jQuery(c[0]).clone()),c=this.elements=jQuery(".CU3ERslides-holder div.CU3ERslide",d);CU3ER[b].current="number"!=typeof CU3ER[b].current?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",d).fadeIn("fast");this.rollOverPause&&jQuery(this.stage).hover(function(){if(2!=
CU3ER[b].pauseType)CU3ER[b].pauseType=1,CU3ER[b].mOver=!0,CU3ER[b].pause()},function(){if(2!=CU3ER[b].pauseType&&(CU3ER[b].mOver=!1,CU3ER[b].paused))CU3ER[b].pauseType=1,CU3ER[b].pause()});jQuery(".CU3ERindicator",d).fadeOut("fast");this.switchThumbnailClass(this.current);this.onLoadComplete(this.slidesOrder);this.onTransitionComplete()},calculatePosition:function(b){var d={};switch(b.align_pos){case "TL":d={top:parseFloat(b.y)+"px",left:parseFloat(b.x)+"px"};break;case "TC":d={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":d={top:parseFloat(b.y)+"px",left:Math.round(Math.floor(parseFloat(b.fullWidth)-parseFloat(b.width)+parseFloat(b.x)))+"px"};break;case "BL":d={top:Math.round(Math.floor(parseFloat(b.fullHeight)-parseFloat(b.height))+parseFloat(b.y))+"px",left:parseFloat(b.x)+"px"};break;case "BC":d={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":d={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":d={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":d={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":d={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 d},attachScrollBehavior:function(b){var d=this.id,c=this.el;CU3ER[d].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("horizontal"==b.scroll){var f=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>f){var f=Math.round(g.left+parseInt(b.width)/3),k=Math.round(g.left+2*(parseInt(b.width)/3)),e=parseInt(e.clientX),g=parseInt(b.maximum)-parseInt(b.width)+CU3ER[d].slidesTotal*b.thumb.spacing_x;e<f?(h=-parseInt(jQuery(".CU3ERthumbs-holder",
c).css("margin-left")),scrollPXMovement=50*Math.floor((f-e)*(f-e)/(f+h)),scrollPX=0<h-scrollPXMovement?h-scrollPXMovement:0,CU3ER[d].scrollTo(0,scrollPX,"LR",!0)):e>k&&(h=-parseInt(jQuery(".CU3ERthumbs-holder",c).css("margin-left")),scrollPXMovement=50*Math.floor((k-e)*(k-e)/(k+h)),scrollPX=h+scrollPXMovement<g?h+scrollPXMovement:g,CU3ER[d].scrollTo(0,scrollPX,"LR",!0))}}else f=jQuery(".CU3ERThumbsScroll",c).height(),h=jQuery(".CU3ERthumbs-holder .CU3ERThumb",c),h=(jQuery(h[0]).height()+parseInt(jQuery(h[0]).css("top")))*
h.length,h>f&&(f=Math.round(g.top+parseInt(b.height)/3),k=Math.round(g.top+2*(parseInt(b.height)/3)),e=parseInt(e.clientY),g=parseInt(b.maximum)-parseInt(b.height)+CU3ER[d].slidesTotal*b.thumb.spacing_y,e<f?(h=-parseInt(jQuery(".CU3ERthumbs-holder",c).css("margin-top")),scrollPXMovement=50*Math.floor((f-e)*(f-e)/(f+h)),scrollPX=0<h-scrollPXMovement?h-scrollPXMovement:0,CU3ER[d].scrollTo(0,scrollPX,"TB",!0)):e>k&&(h=-parseInt(jQuery(".CU3ERthumbs-holder",c).css("margin-top")),scrollPXMovement=50*Math.floor((k-
e)*(k-e)/(k+h)),scrollPX=h+scrollPXMovement<g?h+scrollPXMovement:g,CU3ER[d].scrollTo(0,scrollPX,"TB",!0)))})},scrollTo:function(b,d,c,e){var g=this.el;!1===e?"TB"==c?(jQuery(".CU3ERscroll",g).stop().css({top:b}),jQuery(".CU3ERthumbs-holder",g).stop().css({marginTop:-d+"px"})):(jQuery(".CU3ERscroll",g).stop().css({left:b}),jQuery(".CU3ERthumbs-holder",g).stop().css({marginLeft:-d+"px"})):"TB"==c?(jQuery(".CU3ERscroll",g).stop().animate({top:b},"slow"),jQuery(".CU3ERthumbs-holder",g).stop().animate({marginTop:-d+
"px"},"noramal")):(jQuery(".CU3ERscroll",g).stop().animate({left:b},"slow"),jQuery(".CU3ERthumbs-holder",g).stop().animate({marginLeft:-d+"px"},"normal"))},next:function(){if(this.isFlash)this.registerFlash(),this.swf.next();else if(!0!==this.inTransition||!1===this.doCheck)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(!0!==this.inTransition||
!1===this.doCheck)this.stopFlag=!0,clearTimeout(this.circularPBOptions.tempTimeout),this.nextFlag=!1,this.skipTo(this.calculatePrevious(this.current),!0,!1)},skipTo:function(b,d,c){var e=this.id,g=this.el;if(this.isFlash)this.registerFlash(),this.swf.skipTo(b-1);else if(!0!==this.inTransition||!1==this.doCheck){this.doCheck=!0;b="undefined"!=typeof d&&!0===d?b:b-1;d="undefined"!=typeof c?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(d));var d=CU3ER[e].xml,f;try{f=window.ActiveXObject?d.xml:(new XMLSerializer).serializeToString(d)}catch(h){f=d}if("undefined"==typeof f||""==f)f=d;c=f.match(/(<licence>(.)*<\/licence>)+/gi);null!=c?c.push(CU3ER[e].licenseStr):c=Array(CU3ER[e].licenseStr);if(null!=c){for(f=0;f<c.length;f++)c[f]=c[f].split("<licence>").join("").split("</licence>").join(""),c[f]=c[f].split("<![CDATA[").join("").split("]]\>").join("");
f=!1;if(0!=c.length){var k=document.location.href.toLowerCase(),k=k.split("https://").join("").split("http://").join("").split("www.").join(""),k=k.split("/")[0];"file:"==k&&(k="localdrive");for(var o=k.split(".");4<o.length;)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(f=0;32>f;f++){r=f%2+1;for(d=b=0;d<k[m[8]];)b+=(k[m[7]](d)+3)%(f+1)*
(k[m[7]](d)+2),d+=r;b=b%94+33;60==b&&(b=58);62==b&&(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(3<o.length){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(f=0;32>f;f++){r=f%2+1;for(d=b=0;d<k[m[8]];)b+=(k[m[7]](d)+
3)%(f+1)*(k[m[7]](d)+2),d+=r;b=b%94+33;60==b&&(b=58);62==b&&(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(2<o.length){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(f=0;32>f;f++){r=f%2+1;for(d=b=0;d<k[m[8]];)b+=(k[m[7]](d)+3)%(f+
1)*(k[m[7]](d)+2),d+=r;b=b%94+33;60==b&&(b=58);62==b&&(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()}f=s?!0:!1}else f=!1}else f=!1;if(!f){null!=CU3ER[e].rnd&&CU3ER[e].rnd.remove();for(f="";16>f.length;)f+=String.fromCharCode(65+Math.floor(25*Math.random()));d="stage"==json.settings.branding.align_to?this.stage:this.slides;if(this.supportCanvas()){jQuery(d).append('<div class="'+f+'"><canvas id="l-'+f+
'"/></div>');CU3ER[e].rnd=jQuery("."+f);cssBrandingFixed={position:"absolute",width:"40px",height:"40px",cursor:"pointer","z-index":1E3};g=document.getElementById("l-"+f);g.width=g.height=40;c=g.getContext("2d");k=c.getImageData(0,0,g.width,g.height);o=imgLogo.split(",");for(f=0;f<g.height;f++)for(d=0;d<g.width;d++)m=4*(d+40*f),s=parseInt(o[d+40*f],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(d).append('<div class="'+
f+'"></div>'),CU3ER[e].rnd=jQuery("."+f),CU3ER[e].rnd=jQuery("."+f,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("undefined"==typeof cssBranding.bottom)cssBranding.top="5px";if("undefined"==typeof cssBranding.left)cssBranding.right="5px";cssBranding=jQuery.extend(cssBrandingFixed,cssBranding);CU3ER[e].rnd.css(cssBranding);CU3ER[e].rnd.bind("click",function(){window.open("http://getcu3er.com/"+("undefined"!=typeof CU3ER[e].json.referral?"?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 d=this.id,c=this.el;this.clearTimeouts();jQuery(".CU3ERtransition",c).remove();this.first=this.last=!1;if(1==this.json.slides.slide.length)var e=0;else if(!0==b)if(this.current==parseInt(this.slidesTotal-1)&&0==this.nextSlide)this.directionReverse=
!1,this.last=!0,e=this.json.slides.slide[this.current].originalPosition;else if(0==this.current&&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!0==this.nextFlag?(this.directionReverse=
!1,e=this.json.slides.slide[this.current].originalPosition):(this.directionReverse=!0,e=this.json.slides.slide[this.nextSlide].originalPosition);e="undefined"!=typeof e?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[d].jsonOriginal.defaults.transition,CU3ER[d].jsonOriginal.slides.transition[e]);this.transition.classNo=e;this.transition.scaleX="undefined"!=typeof this.json.slides.slide[e].image?this.json.slides.slide[e].image.scaleX:1;this.transition.scaleY="undefined"!=typeof this.json.slides.slide[e].image?this.json.slides.slide[e].image.scaleY:1;b="90"==this.transition.flipOrder||"270"==this.transition.flipOrder?parseInt(this.transition.rows):"0"==this.transition.flipOrder||"180"==this.transition.flipOrder?
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[d].current&&b!=CU3ER[d].nextSlide&&jQuery(this).css("display","none")});jQuery(".CU3ERlayer",c).css("display","block");2==b.length?jQuery(b[0]).trigger("startTransition"):jQuery(b[CU3ER[d].current]).trigger("startTransition");
(this.is3D()||this.isCameraFlat())&&!0!==this.force_simple?"3D"==this.transition.type||1<parseInt(this.transition.rows)||1<parseInt(this.transition.columns)?this.transitionSlices():"undefined"!=typeof this.transition.type2D||"slide"==this.transition.type2D?this.transitionSlices():this.transitionFade():this.transitionFade()},transitionFade:function(){var b=this.id,d=this.elements;jQuery(d).css({"z-index":1,opacity:1});d.each(function(c){c!=CU3ER[b].current&&jQuery(this).css({display:"none"})});var c=
"2D"==this.transition.type&&"fade"==this.transition.type2D?1E3*parseFloat(CU3ER[b].transition.time):1E3*parseFloat(this.transition.flipDuration),e="undefined"!=typeof CU3ER[b].transition.flipEasing?CU3ER[b].transition.flipEasing:"Sine.easeInOut";this.nextSlide<this.current?!0===this.verySlow?(jQuery(d[CU3ER[b].nextSlide]).css({display:"block","z-index":1}),jQuery(d[this.current]).css({"z-index":2,display:"none"}),timeout=Math.min(1E3,c),setTimeout(function(){CU3ER[b].onTransitionComplete()},timeout)):
(jQuery(d[CU3ER[b].nextSlide]).css({display:"block","z-index":1,"-wekbit-transform":"translateZ(2px)"}),jQuery(d[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()}})):!0===this.verySlow?(jQuery(d[this.nextSlide]).css({"z-index":2,display:"block"}),jQuery(d[this.current]).css({"z-index":1,display:"none"}),timeout=Math.min(1E3,c),setTimeout(function(){CU3ER[b].onTransitionComplete()},
timeout)):(jQuery(d[this.current]).css({"z-index":1,"-webkit-transform":"translateZ(2px)"}),jQuery(d[this.nextSlide]).css({"z-index":2,"-webkit-transform":"translateZ(1px)"}).fadeIn({duration:c,easing:CU3ER[b].easingValues[e],complete:function(){jQuery(d[CU3ER[b].current]).css({opacity:1,display:"none"});CU3ER[b].onTransitionComplete()}}))},transitionSlices:function(){var b=this.id,d=this.el;jQuery(".CU3ERtransition-holder",d).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=[],f=this.transition.flipDirection.split(",");if("fade"==this.transition.type2D&&"2D"==e)c=1;else if(1<f.length){for(m=0;m<f.length;m++)g[m]=c[f[m]];c=6}else c=c[f[0]];var h=this.directionReverse,g=this.setDirections(this.transition,c,g),c=parseInt(this.transition.rows)*parseInt(this.transition.columns),f=this.elements,k="",o=0,p=0,r=Math.ceil(jQuery(".CU3ERslides-holder",d).width()/parseInt(this.transition.columns)),n=Math.ceil(jQuery(".CU3ERslides-holder",
d).height()/parseInt(this.transition.rows)),m=jQuery(".CU3ERslides-holder",d).width(),k=jQuery(".CU3ERslides-holder",d).height();jQuery(f[CU3ER[b].current]).css("display","none");jQuery(f[CU3ER[b].nextSlide]).css("display","block");jQuery(".CU3ERtransition-holder",d).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",d),f=e.width(),
e=e.height();c.el.width=f;c.el.height=e;var g=c.el.getContext("2d");if(null!=c.bgcolor&&"transparent"!=c.bgcolor){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,f,e);if("undefined"!=typeof jQuery(c.image).attr("src")){h=jQuery(c.image)[0];if("undefined"!=typeof jQuery(c.image).attr("rel")&&""!=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=0>k?k:0;o=0>p?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(null!=c.bgcolor)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{f=1<parseFloat(c.scaleX)?parseInt(Math.min(s,f)):parseInt(Math.min(h.width,f)),e=1<parseFloat(c.scaleY)?parseInt(Math.min(m,e)):
parseInt(Math.min(h.height,e)),g.drawImage(q,0,0,f,e,Math.max(0,k),Math.max(0,p),f,e)}catch(u){CU3ER[b].debug(f,e,Math.max(0,k),Math.max(0,p),s,m)}}};if(this.supportCanvas()){if("undefined"==typeof CU3ER[b].jsonOriginal.slides.slide.length)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 u=jQuery("<canvas>"),q="undefined"!=typeof k.color?k.color:null;null==q&&(q="undefined"!=typeof CU3ER[b].json.settings.background.color?CU3ER[b].json.settings.background.color:null);q="undefined"!=typeof k.transparent&&"true"==k.transparent?"transparent":q;m({scaleX:"2D"==e&&!CU3ER[b].is3D()&&!CU3ER[b].isCameraFlat()?1:"undefined"!=typeof k.image?k.image.scaleX:1,scaleY:"2D"==e&&!CU3ER[b].is3D()&&
!CU3ER[b].isCameraFlat()?1:"undefined"!=typeof k.image?k.image.scaleY:1,bgcolor:q,image:jQuery(f[CU3ER[b].current]).find("img")[0],el:u[0]});var t=jQuery("<canvas>"),q="undefined"!=typeof s.color?s.color:null;null==q&&(q="undefined"!=typeof CU3ER[b].json.settings.background.color?CU3ER[b].json.settings.background.color:null);q="undefined"!=typeof s.transparent&&"true"==s.transparent?"transparent":q;m({scaleX:"2D"==e&&!CU3ER[b].is3D()&&!CU3ER[b].isCameraFlat()?1:"undefined"!=typeof s.image?s.image.scaleX:
1,scaleY:"2D"==e&&!CU3ER[b].is3D()&&!CU3ER[b].isCameraFlat()?1:"undefined"!=typeof s.image?s.image.scaleY:1,bgcolor:q,image:jQuery(f[CU3ER[b].nextSlide]).find("img")[0],el:t[0]})}for(var m=0;m<c;m++){var v=o*r,w=p*n;1==CU3ER[b].transition.columns?(v=0,w=p*n,p==c-1&&(k=jQuery(".CU3ERtransition-holder",d).height()-(c-1)*n,w=p*n-(n-k)),p++):1==CU3ER[b].transition.rows?(w=0,v=o*r,o==c-1&&(k=jQuery(".CU3ERtransition-holder",d).width()-(c-1)*r,v=o*r-(r-k)),o++):0==o%(parseInt(CU3ER[b].transition.columns)-
1)?0<o&&0<parseInt(CU3ER[b].transition.columns)?(k=jQuery(".CU3ERtransition-holder",d).width()-(parseInt(CU3ER[b].transition.columns)-1)*r,v=o*r-(r-k),p==parseInt(CU3ER[b].transition.rows)-1&&(k=jQuery(".CU3ERtransition-holder",d).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",d).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",
d).height()-(parseInt(CU3ER[b].transition.rows)-1)*n,w=p*n-(n-k)),o++);k=w;s=v;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":-(2*parseInt(n))+"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={})}"2D"==e?(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(f[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(f[CU3ER[b].nextSlide]).find("img").clone()).find("img").replaceWith("<canvas>"),jQuery(k).find(".CU3ERcurrentSlice").find("canvas").each(function(){var c=u[0];this.width=r;this.height=n;var e=this.getContext("2d"),d=v,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=t[0];this.width=r;this.height=n;var e=this.getContext("2d"),d=v,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(f[CU3ER[b].current]).css("backgroundColor")?jQuery(f[CU3ER[b].current]).css("backgroundColor"):"transparent"}).css(x).append(jQuery(f[CU3ER[b].current]).find("img").clone()).find("img").css({position:"absolute",left:CU3ER[b].isCameraFlat()&&!isNaN(parseInt(jQuery(f[CU3ER[b].current]).find("img").css("left")))?-v+parseInt(jQuery(f[CU3ER[b].current]).find("img").css("left")):
-v+"px",top:CU3ER[b].isCameraFlat()&&!isNaN(parseInt(jQuery(f[CU3ER[b].current]).find("img").css("top")))?-w+parseInt(jQuery(f[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(f[CU3ER[b].nextSlide]).css("backgroundColor")?jQuery(f[CU3ER[b].nextSlide]).css("backgroundColor"):"transparent"}).css(q).append(jQuery(f[CU3ER[b].nextSlide]).find("img").clone()).find("img").css({position:"absolute",
left:CU3ER[b].isCameraFlat()&&!isNaN(parseInt(jQuery(f[CU3ER[b].nextSlide]).find("img").css("left")))?-v+parseInt(jQuery(f[CU3ER[b].nextSlide]).find("img").css("left")):-v+"px",top:CU3ER[b].isCameraFlat()&&!isNaN(parseInt(jQuery(f[CU3ER[b].nextSlide]).find("img").css("top")))?-w+parseInt(jQuery(f[CU3ER[b].nextSlide]).find("img").css("top")):-w+"px"})),jQuery(".CU3ERtransition",d).append(k),jQuery(".CU3ERtransition-holder",d).css({overflow:"hidden"}),jQuery(f[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(1px)","-webkit-transform-style":"preserve-3d",top:0,left:0,overflow:"hidden"}).append(jQuery(f[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(0px)",
"-webkit-transform-style":"preserve-3d",overflow:"hidden",position:"absolute",top:0,left:0,opacity:0}).append(jQuery(f[CU3ER[b].nextSlide]).find("img").clone()).find("img").replaceWith("<canvas>"),jQuery(k).find(".CU3ERcurrentSlice").find("canvas").each(function(){var c=u[0];this.width=r;this.height=n;var e=this.getContext("2d"),d=v,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=t[0];this.width=r;
this.height=n;var e=this.getContext("2d"),d=v,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",d).css({"-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"hidden"}).append(k),jQuery(".CU3ERtransition-holder",d).css({overflow:"visible","-webkit-transform-style":"preserve-3d","-webkit-backface-visibility":"hidden"}),jQuery(f[CU3ER[b].nextSlide]).css("display","none"))}jQuery(".CU3ERslides-holder",d).css("display","none");setTimeout(function(){CU3ER[b].animationSlices(y,
h)},50)},animationSlices:function(b,d){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(!0==this.directionReverse)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 f=this.getOrder(g),h=f[0],f=f[1];g.flipRandomize=0;if("undefined"!=typeof this.transition.flipDelayRandomize)g.flipRandomize=parseFloat(this.transition.flipDelayRandomize),g.hasFlipRandomizeNew=!1;else if("undefined"!=typeof this.transition.flipRandomize)g.flipRandomize=parseFloat(this.transition.flipRandomize),g.hasFlipRandomizeNew=
!0;var f=this.getOrderRandomized(g,h,f),h=f[0],k=f[1],d=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["Sine.easeOut.3d"],h=CU3ER[c].easingValues[CU3ER[c].transition.flipEasing];if("2D"==o){var k=1E3*CU3ER[c].transition.flipDuration;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<d;i++)g(i);setTimeout(function(){"3D"==o&&jQuery(CU3ER[c].elements[CU3ER[c].nextSlide]).css({display:"block","-webkit-transform":"translateZ(1px)"});CU3ER[c].onTransitionComplete()},1E3*(h+parseFloat(CU3ER[c].transition.flipDuration)+0.05))},onTransitionComplete:function(){var b=this.id,d=this.el;
jQuery.browser.msie||jQuery(".CU3ERbackground",d).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=1E3*parseFloat(defaults.time);this.sleepDuration=defaults.time;jQuery(".CU3ERslides-holder",d).css("display","block");setTimeout(function(){jQuery(".CU3ERtransition-holder",
d).css("display","none");jQuery(".CU3ERtransition",d).remove();CU3ER[b].inTransition=!1},50);jQuery(".CU3ERlayer",d).css({display:"none"});++CU3ER[b].currentLoop;CU3ER[b].destroyDescription();if("undefined"!=typeof CU3ER[b].json.description){var e=1==CU3ER[b].json.slides.slide.length?0:CU3ER[d.attr("id")].current;if("undefined"!=typeof CU3ER[d.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&&
""!=CU3ER[b].json.slides.slide[e].description.heading||"undefined"!=typeof CU3ER[b].json.slides.slide[e].description.paragraph&&""!=CU3ER[b].json.slides.slide[e].description.paragraph))e="undefined"!=typeof CU3ER[b].jsonOriginal.defaults.slide.description?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",d).css("display","block")}2==c.length?
jQuery(c[0]).trigger("endTransition"):jQuery(c[CU3ER[b].current]).trigger("endTransition");if(!1==CU3ER[b].mOver&&!0==CU3ER[b].paused&&!0==CU3ER[b].rollOverPause)CU3ER[b].continueTimers();else if(!0==CU3ER[b].mOver&&!1==CU3ER[b].paused&&!0==CU3ER[b].rollOverPause)CU3ER[b].stopTimers();else if(!1==this.paused&&(this.time=null,this.pauseStartTimer=(new Date).getTime(),"undefined"!=typeof CU3ER[b].json.settings.auto_play&&"true"==CU3ER[b].json.settings.auto_play&&(0==CU3ER[b].loop||CU3ER[b].currentLoop<=
CU3ER[b].loop*CU3ER[b].slidesTotal))){if("undefined"!=typeof CU3ER[b].json.controls.auto_play_indicator&&(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:"stage"==CU3ER[b].json.controls.auto_play_indicator.align_to?"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},0==CU3ER[b].loop||CU3ER[b].currentLoop<=CU3ER[b].loop*CU3ER[b].slidesTotal))jQuery(".CU3ERindicator",d).stop().remove(),CU3ER[b].drawProgressBar(c),jQuery(".CU3ERprogress",d).animate({width:"100%"},defaults.time,function(){jQuery(".CU3ERprogress",
d).css("width","0%")}),jQuery(".CU3ERindicator",d).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;"undefined"!=typeof this.json.settings.camera&&("undefined"!=typeof this.json.settings.camera.x&&0!=this.json.settings.camera.x&&(b=!1),"undefined"!=typeof this.json.settings.camera.y&&0!=this.json.settings.camera.y&&(b=!1),"undefined"!=typeof this.json.settings.camera.z&&
0!=this.json.settings.camera.z&&(b=!1),"undefined"!=typeof this.json.settings.camera.angleX&&0!=this.json.settings.camera.angleX&&(b=!1),"undefined"!=typeof this.json.settings.camera.angleY&&0!=this.json.settings.camera.angleY&&(b=!1),"undefined"!=typeof this.json.settings.camera.angleZ&&0!=this.json.settings.camera.angleZ&&(b=!1),"undefined"!=typeof this.json.settings.camera.lens&&8!=this.json.settings.camera.lens&&(b=!1));!0==this.force_simple&&(b=!1);return b},setDirections:function(b,d,c){var b=
parseInt(b.rows)*parseInt(b.columns),e=[];if(6==d)for(var g=0;g<b;g++)d=jQuery.shuffle(c),e[g]=d[0];else for(g=0;g<b;g++)e[g]=d;return e},continueTimers:function(){var b=this.id,d=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=1E3*parseInt(c.time);if(0<jQuery(".CU3ERindicator").length)if(this.supportCanvas()&&"circular"==this.circularPBOptions.shape)this.stopFlag=!1,this.startCircularProgressbar(this.circularPBOptions,
!0);else{if(jQuery.browser.msie)var e=100,g=jQuery(".CU3ERprogress",d).css("width"),e=100-parseInt(g);else e=jQuery(".CU3ERprogress",d).css("maxWidth"),g=jQuery(".CU3ERprogress",d).width(),e=100-100*parseInt(g)/parseInt(e);c=parseInt(e)*c.time/100;jQuery(".CU3ERprogress",d).animate({width:"100%"},c,function(){jQuery(".CU3ERprogress",d).css("width","0%");CU3ER[b].skipTo(CU3ER[b].calculateNext(CU3ER[b].current),!0,!0)})}else{if(null!=this.time&&0<this.time)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,d=this.el;this.paused=!0;0<jQuery(".CU3ERindicator").length?this.supportCanvas()&&"circular"==this.circularPBOptions.shape?(clearTimeout(this.circularPBOptions.tempTimeout),this.stopCircularProgressbar()):jQuery(".CU3ERprogress",d).stop():(defaults=jQuery.extend(!0,defaults,CU3ER[b].json.defaults.slide,CU3ER[b].json.slides[this.current]),
null!=this.time?(d=this.time-((new Date).getTime()-this.pauseStartTimer),this.time=0<d?d:defaults.time):this.time=defaults.time-((new Date).getTime()-this.pauseStartTimer),clearTimeout(this.tempTimeout[CU3ER[b].current]));this.clearTimeouts()},handleAutoHide:function(b,d,c,e){var g=this.id,f=this.el;CU3ER[g].debug("attaching auto hide behavior");var h=this.elements,k=null,o=null;"undefined"!=typeof b&&"undefined"!=typeof b.next_button&&"true"==b.next_button.hide_on_transition&&jQuery(h).bind("endTransition",
function(){clearTimeout(null);jQuery(".CU3ERbuttonNext",f).fadeIn("fast")}).bind("startTransition",function(){jQuery(".CU3ERbuttonNext",f).fadeOut("fast")});"undefined"!=typeof b&&"undefined"!=typeof b.prev_button&&"true"==b.prev_button.hide_on_transition&&jQuery(h).bind("endTransition",function(){clearTimeout(null);jQuery(".CU3ERbuttonPrev",f).fadeIn("fast")}).bind("startTransition",function(){jQuery(".CU3ERbuttonPrev",f).fadeOut("fast")});"undefined"!=typeof d&&"true"==d.hide_on_transition&&jQuery(h).bind("endTransition",
function(){jQuery(".CU3ERindicator",f).fadeIn("fast")}).bind("startTransition",function(){jQuery(".CU3ERindicator",f).fadeOut("fast")});"undefined"!=typeof c&&("true"==c.hide_on_transition||"true"==c.bake_on_transition)&&jQuery(h).bind("endTransition",function(){""!=jQuery(".CU3ERDescriptionLinkHolder",f).html()&&null!=jQuery(".CU3ERDescriptionLinkHolder",f).html()&&(clearTimeout(k),jQuery(".CU3ERdescription",f).fadeIn("fast"))}).bind("startTransition",function(){CU3ER[g].destroyDescription();jQuery(".CU3ERdescription",
f).fadeOut("fast")});"undefined"!=typeof e&&"true"==e.hide_on_transition&&jQuery(h).bind("endTransition",function(){clearTimeout(o);jQuery(".CU3ERthumbs",f).fadeIn("fast")}).bind("startTransition",function(){jQuery(".CU3ERthumbs",f).fadeOut("fast")});this.isTouch()||("undefined"!=typeof b&&"undefined"!=typeof b.next_button&&"true"==b.next_button.auto_hide.text&&(jQuery(f).bind("mouseover",function(){clearTimeout(null);jQuery(".CU3ERbuttonNext",f).fadeIn("fast")}).bind("mouseout",function(){bntNext=
setTimeout(function(){jQuery(".CU3ERbuttonNext",f).fadeOut("fast")},1E3*parseInt(b.next_button.auto_hide.time))}),jQuery(h).bind("endTransition",function(){bntNext=setTimeout(function(){jQuery(".CU3ERbuttonNext",f).fadeOut("fast")},1E3*parseInt(b.next_button.auto_hide.time))})),"undefined"!=typeof b&&"undefined"!=typeof b.prev_button&&"true"==b.prev_button.auto_hide.text&&(jQuery(f).bind("mouseover",function(){clearTimeout(null);jQuery(".CU3ERbuttonPrev",f).fadeIn("fast")}).bind("mouseout",function(){bntPrev=
setTimeout(function(){jQuery(".CU3ERbuttonPrev",f).fadeOut("fast")},1E3*parseInt(b.prev_button.auto_hide.time))}),jQuery(h).bind("endTransition",function(){bntPrev=setTimeout(function(){jQuery(".CU3ERbuttonPrev",f).fadeOut("fast")},1E3*parseInt(b.prev_button.auto_hide.time))})),"undefined"!=typeof e&&"true"==e.auto_hide&&(jQuery(f).bind("mouseover",function(){clearTimeout(o);jQuery(".CU3ERthumbs",f).fadeIn("fast")}).bind("mouseout",function(){o=setTimeout(function(){jQuery(".CU3ERthumbs",f).fadeOut("fast")},
1E3*parseInt(e.auto_hide.time))}),jQuery(h).bind("endTransition",function(){o=setTimeout(function(){jQuery(".CU3ERthumbs",f).fadeOut("fast")},1E3*parseInt(e.auto_hide.time))})),"undefined"!=typeof c&&"true"==c.auto_hide&&(jQuery(f).bind("mouseover",function(){""!=jQuery(".CU3ERDescriptionLinkHolder",f).html()&&null!=jQuery(".CU3ERDescriptionLinkHolder",f).html()&&(clearTimeout(k),jQuery(".CU3ERdescription",f).fadeIn("fast"))}).bind("mouseout",function(){clearTimeout(k);k=setTimeout(function(){jQuery(".CU3ERdescription",
f).fadeOut("fast")},1E3*parseInt(c.auto_hide.time))}),jQuery(h).bind("endTransition",function(){clearTimeout(k);k=setTimeout(function(){jQuery(".CU3ERdescription",f).fadeOut("fast")},1E3*parseInt(c.auto_hide.time))})))},calculateNext:function(b){return this.elements.length-1==b?0:++b},calculatePrevious:function(b){var d=this.elements;return 0==b?d.length-1:--b},switchThumbnailClass:function(b){var d=jQuery(".CU3ERthumbs .CU3ERthumbs-holder .CU3ERThumb a",this.el);d.parent().removeClass("current");
jQuery(d[b]).parent().addClass("current").trigger("classChanged")},populateDescription:function(b){var d=this.id,c=this.el,e=CU3ER[d].json.description.width+"px",g=CU3ER[d].json.description.height+"px";jQuery(".CU3ERDescriptionText",c).append('<div class="CU3ERDescriptionLinkHolder"></div>').find(".CU3ERDescriptionLinkHolder").css({width:e,height:g});if("undefined"!=typeof b.heading&&""!=b.heading){headingCSS={};"undefined"!=typeof CU3ER[d].json.description.heading.margin?(margins=CU3ER[d].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="undefined"!=typeof CU3ER[d].json.description.heading.font?'"'+decodeURI(CU3ER[d].json.description.heading.font)+'"':"Georgia";headingCSS.fontWeight=
"true"==CU3ER[d].json.description.heading.text_bold?"bold":"normal";headingCSS.fontStyle="true"==CU3ER[d].json.description.heading.text_italic?"italic":"normal";headingCSS.textAlign="undefined"!=typeof CU3ER[d].json.description.heading.text_align?CU3ER[d].json.description.heading.text_align:"left";headingCSS.opacity="undefined"!=typeof CU3ER[d].json.description.heading.tweenShow.opacity?CU3ER[d].json.description.heading.tweenShow.opacity:"1";headingCSS.lineHeight="undefined"!=typeof CU3ER[d].json.description.heading.text_leading&&
0<CU3ER[d].json.description.heading.text_leading?CU3ER[d].json.description.heading.text_leading+"px":CU3ER[d].json.description.heading.text_size+"px";if("undefined"!=typeof CU3ER[d].json.description.heading.text_letterspacing&&0<CU3ER[d].json.description.heading.text_letterspacing)headingCSS.letterSpacing=CU3ER[d].json.description.heading.text_letterspacing+"px";if("undefined"!=typeof b.link)var f="undefined"!=typeof b.link.text?b.link.text:b.link;if("undefined"!=typeof b.link&&"string"==typeof f){var h=
"undefined"==typeof b.link.target?"undefined"==typeof CU3ER[d].jsonOriginal.defaults.slide.description.link.target?"_self":CU3ER[d].jsonOriginal.defaults.slide.description.link.target:b.link.target;jQuery(".CU3ERDescriptionLinkHolder",c).append('<h2><a href="'+f+'" target="'+h+'">'+b.heading.replace("\\'","'")+"</a></h2>").find("h2").css({fontSize:CU3ER[d].json.description.heading.text_size+"px",color:CU3ER[d].json.description.heading.tweenShow.tint.replace("0x","#")}).css(headingCSS).find("a").css({fontSize:CU3ER[d].json.description.heading.text_size+
"px",color:CU3ER[d].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[d].json.description.heading.text_size+"px",color:CU3ER[d].json.description.heading.tweenShow.tint.replace("0x","#")}).css(headingCSS)}if("undefined"!=typeof b.paragraph&&""!=b.paragraph){descCSS=
{};"undefined"!=typeof CU3ER[d].json.description.paragraph.margin?(margins=CU3ER[d].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="undefined"!=typeof CU3ER[d].json.description.paragraph.font?
'"'+decodeURI(CU3ER[d].json.description.paragraph.font)+'"':"Arial";descCSS.fontWeight="true"==CU3ER[d].json.description.paragraph.text_bold?"bold":"normal";descCSS.fontStyle="true"==CU3ER[d].json.description.paragraph.text_italic?"italic":"normal";descCSS.textAlign="undefined"!=typeof CU3ER[d].json.description.paragraph.text_align?CU3ER[d].json.description.paragraph.text_align:"left";descCSS.opacity="undefined"!=typeof CU3ER[d].json.description.paragraph.tweenShow.opacity?CU3ER[d].json.description.paragraph.tweenShow.opacity:
"1";descCSS.lineHeight="undefined"!=typeof CU3ER[d].json.description.paragraph.text_leading&&0<CU3ER[d].json.description.paragraph.text_leading?CU3ER[d].json.description.paragraph.text_leading+"px":CU3ER[d].json.description.paragraph.text_size+"px";if("undefined"!=typeof CU3ER[d].json.description.paragraph.text_letterspacing&&0<CU3ER[d].json.description.paragraph.text_letterspacing)descCSS.letterSpacing=CU3ER[d].json.description.paragraph.text_letterspacing+"px";"undefined"!=typeof b.link&&(f="undefined"!=
typeof b.link.text?b.link.text:b.link);"undefined"!=typeof b.link&&"string"==typeof f?(h="undefined"==typeof b.link.target?"undefined"==typeof CU3ER[d].jsonOriginal.defaults.slide.description.link.target?"_self":CU3ER[d].jsonOriginal.defaults.slide.description.link.target:b.link.target,jQuery(".CU3ERDescriptionLinkHolder",c).append('<p><a href="'+f+'" target="'+h+'">'+b.paragraph.replace("\\'","'")+"</a></p>").find("p").css({fontSize:CU3ER[d].json.description.paragraph.text_size+"px",color:CU3ER[d].json.description.paragraph.tweenShow.tint.replace("0x",
"#")}).css(descCSS).find("a").css({fontSize:CU3ER[d].json.description.paragraph.text_size+"px",color:CU3ER[d].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[d].json.description.paragraph.text_size+"px",color:CU3ER[d].json.description.paragraph.tweenShow.tint.replace("0x","#")}).css(descCSS)}"undefined"!=
typeof b.link&&(f="undefined"!=typeof b.link.text?b.link.text:b.link);"undefined"!=typeof b.link&&"string"==typeof f&&jQuery(".CU3ERDescriptionLinkHolder",c).wrap('<a href="'+f+'" target="'+h+'" />');jQuery(".CU3ERdescription",c).find("a").css({"text-decoration":"none"});"undefined"!=typeof CU3ER[d].json.description.heading&&jQuery(".CU3ERdescription",c).find("h2").css({opacity:CU3ER[d].json.description.heading.tweenShow.alpha,color:CU3ER[d].json.description.heading.tweenShow.tint.replace("0x","#")}).find("a").css({opacity:CU3ER[d].json.description.heading.tweenShow.alpha,
color:CU3ER[d].json.description.heading.tweenShow.tint.replace("0x","#")}).bind("mouseover",function(){jQuery(this).css({"background-color":"transparent"})});"undefined"!=typeof CU3ER[d].json.description.paragraph&&jQuery(".CU3ERdescription",c).find("p").css({opacity:CU3ER[d].json.description.paragraph.tweenShow.alpha,color:CU3ER[d].json.description.paragraph.tweenShow.tint.replace("0x","#")}).find("a").css({opacity:CU3ER[d].json.description.paragraph.tweenShow.alpha,color:CU3ER[d].json.description.paragraph.tweenShow.tint.replace("0x",
"#")}).bind("mouseover",function(){jQuery(this).css({"background-color":"transparent"})})},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 d={},c=0;c<b.length;c++)d[b[c]]="";return d},getOrder:function(b){b.flipOrder=
parseInt(b.flipOrder);b.rows=parseInt(b.rows);b.columns=parseInt(b.columns);b.flipDelay=parseFloat(b.flipDelay);var d=[],c=[],e;for(i=0;i<b.rows;i++)for(j=0;j<b.columns;j++){if("false"==b.flipOrderFromCenter)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))}d[j+i*b.columns]=e;c[j+i*b.columns]=-1}return[c,d]},getOrderRandomized:function(b,
d,c){var e,g=[],f=0;for(i=0;i<b.rows;i++)for(j=0;j<b.columns;j++){if(b.hasFlipRandomizeNew){if(-1==d[j+i*b.columns]){e=Math.max(b.columns-j,j);var h=Math.round(j+e*(2*Math.random()*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*(2*Math.random()*b.flipRandomize-b.flipRandomize)),k=Math.max(0,Math.min(b.rows-1,k));e=c[h+k*b.columns];d[h+k*b.columns]=j+i*b.columns}else e=c[d[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]=1E3*flipDelay;flipDelay>f&&(f=flipDelay)}return[f,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 d=0,c=[];for(i=0;i<b.rows;i++)for(j=0;j<b.columns;j++)if(d=j+i*b.columns,"false"==b.flipOrderFromCenter)switch(b.flipOrder){case 0:c[d]=j;break;
case 45:c[d]=b.rows-1-i+j;break;case 90:c[d]=b.rows-1-i;break;case 135:c[d]=b.rows-1-i+b.columns-1-j;break;case 180:c[d]=b.columns-1-j;break;case 225:c[d]=b.columns-1-j+i;break;case 270:c[d]=i;break;case 315:c[d]=i+j}else switch(b.flipOrder){case 0:case 180:c[d]=Math.abs(Math.floor((b.columns-1)/2-j));break;case 90:case 270:c[d]=Math.abs(Math.floor((b.rows-1)/2-i));break;case 135:case 315:c[d]=Math.abs(i+j-Math.floor((b.rows+b.columns-2)/2));break;case 45:case 225:c[d]=Math.abs(i+(b.columns-j)-Math.floor((b.rows+
b.columns-2)/2))}return c},check3D:function(){var b=this.id,d=document.createElement("div"),c=document.documentElement,e=document.head||document.getElementsByTagName("head")[0],g=!1;if("undefined"!=typeof d.style.WebkitPerspective){var d=document.createElement("style"),f=document.createElement("div"),h=(new Date).getTime()+Math.floor(1E3*Math.random());f.id="cu3er3d_"+h;d.textContent="@media (-webkit-transform-3d), (cu3er3d_"+h+"){#cu3er3d_"+h+"{height:3px}}";e.appendChild(d);c.appendChild(f);setTimeout(function(c){g=
3===c.offsetHeight;CU3ER[b].support3d=g},50,f)}},pause:function(){this.isFlash?(this.registerFlash(),this.swf.pauseCU3ER()):!0===this.paused?this.inTransition||this.continueTimers():this.inTransition||this.stopTimers()},is3D:function(){return this.disable3d?!1:this.support3d},checkTouch:function(){var b=document.createElement("div"),d=document.documentElement,c=document.head||document.getElementsByTagName("head")[0],e=!1;b.setAttribute("ongesturestart","return;");if("function"==typeof b.ongesturestart)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";d.appendChild(g);e=3===g.offsetHeight;b.parentNode.removeChild(b);g.parentNode.removeChild(g);this.touchable="ontouchstart"in window||e}},isTouch:function(){return this.touchable},debug:function(){!0==
this.debugMode&&console.log(arguments)}};
jQuery.fn.borderRadius=function(b){"undefined"==typeof b&&(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 d,c,e=b.length;e;d=parseInt(Math.random()*e),c=b[--e],b[e]=b[d],b[d]=c);return b};

