jquery.extend(jquery.easing,{easeinoutback:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a}});function ws_cube_over(m,k,b){var e=jquery,j=e(this),a=/wow slider/g.test(navigator.useragent),g=e(".ws_list",b),c=m.perspective||/msie|trident/g.test(navigator.useragent)?1000:2000,d={position:"absolute",backgroundsize:"cover",left:0,top:0,width:"100%",height:"100%",backfacevisibility:"hidden"};var l=/applewebkit/.test(navigator.useragent)&&!/chrome/.test(navigator.useragent);var i=e("
").css(d).css({transformstyle:"preserve-3d",perspective:(l&&!a?"none":c),zindex:8});e("
").addclass("ws_effect ws_cube_over").css(d).append(i).appendto(b);if(!m.support.transform&&m.fallback){return new m.fallback(m,k,b)}var h;this.go=function(y,u){var q=e(k[u]);q={width:q.width(),height:q.height(),margintop:parsefloat(q.css("margintop")),marginleft:parsefloat(q.css("marginleft"))};function p(c,g,f,h){c.parent().css("perspective",c);var d=c.width(),e=c.height();wowanimate(c,{scale:1,translate:[0,0,(l&&!a)?f:0]},{scale:0.85,translate:[0,0,(l&&!a)?f:0]},m.duration*0.4,"easeinoutback",function(){wowanimate(c,{scale:0.85,translate:[0,0,(l&&!a)?f:0]},{scale:1,translate:[0,0,(l&&!a)?f:0]},m.duration*0.4,m.duration-m.duration*0.8,"easeinoutback",h)});wowanimate(g.front.item,{rotatey:0,rotatex:0},{rotatey:g.front.rotatey,rotatex:g.front.rotatex},m.duration,"easeinoutback");wowanimate(g.back.item,{rotatey:g.back.rotatey,rotatex:g.back.rotatex},{rotatey:0,rotatex:0},m.duration,"easeinoutback");wowanimate(g.side.item,{rotatey:g.side.rotatey,rotatex:g.side.rotatex},{rotatey:-g.side.rotatey,rotatex:-g.side.rotatex},m.duration,"easeinoutback")}if(m.support.transform&&m.support.perspective){if(h){h.stop()}var a=b.width(),v=b.height();var t={left:[a/2,0,0,180,0,-180],right:[a/2,0,0,-180,0,180],down:[v/2,-v/2,180,0,-180,0],up:[v/2,v/2,-180,0,180,0]}[m.direction||["left","right","down","up"][math.floor(math.random()*4)]];var b=e("").css(q),s=e("").css(q).attr("src",k.get(y).src);var n=e("
").css({overflow:"hidden",transformorigin:"50% 50% -"+t[0]+"px"}).css(d).append(b).appendto(i);var o=e("
").css({overflow:"hidden",transformorigin:"50% 50% -"+t[0]+"px"}).css(d).append(s).appendto(i);var z=e('
').css({transformorigin:"50% 50% -"+t[0]+"px",background:m.staticcolor?"":f(s[0],{exclude:["0,0,0","255,255,255"]})}).css(d).appendto(i);b.on("load",function(){g.hide()});b.attr("src",k.get(u).src).load();i.parent().show();h=new p(i,{front:{item:n,rotatey:t[5],rotatex:t[4]},back:{item:o,rotatey:t[3],rotatex:t[2]},side:{item:z,rotatey:t[3]/2,rotatex:t[2]/2}},-t[0],function(){j.trigger("effectend");i.empty().parent().hide();h=0})}else{i.css({position:"absolute",display:"none",zindex:2,width:"100%",height:"100%"});i.stop(1,1);var r=(!!((y-u+1)%k.length)^m.revers?"left":"right");var n=e("
").css({position:"absolute",left:"0%",right:"auto",top:0,width:"100%",height:"100%"}).css(r,0).append(e(k[u]).clone().css({width:100*q.width/b.width()+"%",height:100*q.height/b.height()+"%",marginleft:100*q.marginleft/b.width()+"%"})).appendto(i);var x=e("
").css({position:"absolute",left:"100%",right:"auto",top:0,width:"0%",height:"100%"}).append(e(k[y]).clone().css({width:100*q.width/b.width()+"%",height:100*q.height/b.height()+"%",marginleft:100*q.marginleft/b.width()+"%"})).appendto(i);i.css({left:"auto",right:"auto",top:0}).css(r,0).show();i.show();g.hide();x.animate({width:"100%",left:0},m.duration,"easeinoutexpo",function(){e(this).remove()});n.animate({width:0},m.duration,"easeinoutexpo",function(){j.trigger("effectend");i.empty().hide()})}};function f(x,o){o=o||{};var z=1,r=o.exclude||[],w;var t=document.createelement("canvas"),q=t.getcontext("2d"),p=t.width=x.naturalwidth,d=t.height=x.naturalheight;q.drawimage(x,0,0,x.naturalwidth,x.naturalheight);try{w=q.getimagedata(o.x?o.x:0,o.y?o.y:0,o.w?o.w:x.width,o.h?o.h:x.height)["data"]}catch(y){console.log("error:unable to access image data: "+y);return"#ccc"}var s=(o.w?o.w:x.width*o.h?o.h:x.height)||w.length,u={},b="",a=[],n={dominant:{name:"",count:0}};var v=0;while(vn.dominant.count){n.dominant.name=b;n.dominant.count=c}}v+=z*4}return["rgb(",n.dominant.name,")"].join("")}}; jquery.extend(jquery.easing,{easeinback:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeoutback:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeinbackq:function(e,f,a,j,i,g){var h=(f/=i)*f;return a+j*h*(4*f*h-8*h+8*f-3)},easeoutbackq:function(e,f,a,j,i,g){var h=(f/=i)*f;return a+j*(4*h*f*h-12*h*h+16*h*f-13*h+6*f)},easeinbackq2:function(e,f,a,j,i,g){var h=(f/=i)*f;return a+j*h*(1.5*f*h-2.5*h+5*f-3)},easeoutbackq2:function(e,f,a,j,i,g){var h=(f/=i)*f;return a+j*(1.5*h*f*h-5*h*h+10*h*f-12*h+6.5*f)}});function ws_brick(f,s,g){var h=jquery,n=h(this),a=f.cols||4,r=f.rows||3,h=2.5,c=2,v=f.perspective||2000,u=g.find(".ws_list"),g=[],b=30,x={},o=h("
").addclass("ws_effect ws_brick").appendto(g),q=f.support.transform&&f.support.transition&&f.support.perspective,p=/safari/.test(navigator.useragent)&&!/chrome/.test(navigator.useragent),m=/firefox/.test(navigator.useragent);var y=[{zindex:0,rotatex:360,rotatez:-360,rotatey:180,halfscale:0.5,halfleft:0.7,halftop:0.7,delay:0.36},{zindex:1,rotatex:-360,rotatez:360,rotatey:180,halfscale:0.5,halfleft:0.2,halftop:0.4,delay:0.81},{zindex:1,rotatex:360,rotatez:-360,rotatey:-180,halfscale:0.5,halfleft:-0.2,halftop:0.4,delay:0.45},{zindex:0,rotatex:-360,rotatez:360,rotatey:-180,halfscale:0.5,halfleft:-0.7,halftop:0.7,delay:0.63},{zindex:1,rotatex:-360,rotatez:360,rotatey:-180,halfscale:0.5,halfleft:0.7,halftop:0,delay:0.54},{zindex:2,rotatex:360,rotatez:-360,rotatey:180,halfscale:0.5,halfleft:0.2,halftop:0,delay:0.38},{zindex:2,rotatex:360,rotatez:-360,rotatey:-180,halfscale:0.5,halfleft:-0.2,halftop:0,delay:0},{zindex:1,rotatex:-360,rotatez:360,rotatey:180,halfscale:0.5,halfleft:-0.7,halftop:0,delay:0.72},{zindex:0,rotatex:-360,rotatez:360,rotatey:180,halfscale:0.5,halfleft:0.7,halftop:-0.7,delay:1},{zindex:1,rotatex:-360,rotatez:360,rotatey:-180,halfscale:0.5,halfleft:0.2,halftop:-0.4,delay:0.7},{zindex:1,rotatex:360,rotatez:-360,rotatey:180,halfscale:0.5,halfleft:-0.2,halftop:-0.4,delay:0.57},{zindex:0,rotatex:360,rotatez:-360,rotatey:-180,halfscale:0.5,halfleft:-0.7,halftop:-0.7,delay:0.9},];o.css({position:"absolute",top:0,left:0,width:g.width(),height:g.height(),transform:"translate3d(0,0,0)",transformorigin:(f.width/2)+"px "+(f.height/2)+"px 0",perspective:v}).hide();for(var l=0;l").css({position:"absolute",left:100*b/a+"%",top:100*a/r+"%",outline:"1px solid transparent",transformstyle:(p||m)?"flat":"preserve-3d",zindex:y[l].zindex,overflow:q?"visible":"hidden"}).appendto(o),z=h("
").css({transform:"scale(1) rotatex(0) rotatey(0) translate3d(0,0,0)",outline:"1px solid transparent",transformstyle:"preserve-3d"}).appendto(e),w=h("
").addclass("ws_front_image").appendto(z),d=q?h("
").addclass("ws_back_image").appendto(z):0;w.css({position:"absolute",width:"100%",height:"100%",overflow:"hidden",backfacevisibility:"hidden",transform:"translate3d(0,0,0)"}).append(h("").css({left:-b*100+"%",top:-a*100+"%",position:"absolute",outline:"1px solid transparent"}));if(q){d.css({position:"absolute",width:"100%",height:"100%",overflow:"hidden",backfacevisibility:"hidden",transform:"rotatey(180deg) translate3d(0,0,"+b+"px)"}).append(h("").css({left:-b*100+"%",top:-a*100+"%",position:"absolute",outline:"1px solid transparent"}))}var t={position:"absolute",outline:"1px solid transparent"};g[l]={part:z,front:w,back:d,wrapper:e,leftedge:q?h("
").addclass("ws_left_edge").css(t).appendto(z):0,rightedge:q?h("
").addclass("ws_right_edge").css(t).appendto(z):0,topedge:q?h("
").addclass("ws_top_edge").css(t).appendto(z):0,bottomedge:q?h("
").addclass("ws_bottom_edge").css(t).appendto(z):0}}function c(n){var j={},l=s.get(n),o=f.width/a,p=f.height/r;for(var k=0;k1000?1000:(f.duration*0.4),k=f.duration*0.6,q=[0,0];i(b,aa,x[m],v,u);o.css({transformorigin:(x/2)+"px "+(w/2)+"px 0",width:x,height:w});for(var s in aa){if(typeof aa[s]!=="function"){var j=y[s].delay*l;if(q[1]<=j){q[0]=s;q[1]=j}aa[s].part[0].ws_delay=[j,0]}}aa[q[0]].part[0].ws_delay[1]=1;for(var s in aa){if(typeof aa[s]!=="function"){var r=aa[s],z=s%a,y=math.floor(s/a),t=x*z/a,o=w*y/r;r.animate={delay:r.part[0].ws_delay[0],duration:k,begin:{left:0,top:0,width:v,height:u,scale:1,rotatex:0,rotatey:0,translate3d:[0,0,p?b:0]},half:{left:y[s].halfleft*v,top:y[s].halftop*u,scale:y[s].halfscale,rotatex:y[s].rotatex/2,rotatey:y[s].rotatey/2,translate3d:[0,0,(p?1:0.5)*b]},end:{left:0,top:0,scale:1,rotatex:y[s].rotatex,rotatey:y[s].rotatey,translate3d:[0,0,b]}};r.front.find("img").css(n);r.back.css("backfacevisibility","hidden").find("img").css(n);r.part.css({width:r.animate.begin.width,height:r.animate.begin.height,left:r.animate.begin.left,top:r.animate.begin.top})}}e(aa,p)}var d;this.go=function(x,m){if(d){return m}o.show();var k=h(s.get(m));k={width:k.width(),height:k.height(),margintop:parsefloat(k.css("margintop")),marginleft:parsefloat(k.css("marginleft"))};if(q){g[0].front.find("img").on("load",function(){u.hide()});for(var n in g){if(typeof g[n]!=="function"){g[n].front.find("img").attr("src",s.get(m).src);g[n].back.find("img").attr("src",s.get(x).src)}}if(!x[m]){x[m]=c(m)}d=new k(g,m,k,function(){u.show();n.trigger("effectend");o.hide();for(var i in g){if(typeof g[i]!=="function"){g[i].part.css({transition:"",transform:"rotatex(0) rotatey(0) translate3d(0,0,0)"})}}d=0})}else{d=true;function y(j,i){return math.random()*(i-j+1)+j}var t=g.width(),w=g.height(),s=t/a,v=w/r,l=t-s*(a-1),u=w-v*(r-1);o.css({width:t,height:w});var j=0;for(var n in g){var r=n%a,p=math.floor(n/a);g[n].front.find("img").attr("src",s.get(x).src).css(k);var z=f.duration*(1-math.abs((c*h-r*p)/(2*r*a)));var q=y(-1,1)>0?1:-1;var o=y(-1,1)>0?1:-1;g[n].wrapper.css({width:s,height:v});g[n].part.css({position:"absolute",top:q*v,left:o*s,opacity:0,width:s,height:v}).animate({top:0,left:0,opacity:1},z,function(){j++;if(j==r*a){u.stop(1,1);d=false;n.trigger("effectend")}})}}};function f(s,j){j=j||{};var u=1,m=j.exclude||[],r;var o=document.createelement("canvas"),l=o.getcontext("2d"),k=o.width=s.naturalwidth,y=o.height=s.naturalheight;l.drawimage(s,0,0,s.naturalwidth,s.naturalheight);try{r=l.getimagedata(j.x?j.x:0,j.y?j.y:0,j.w?j.w:s.width,j.h?j.h:s.height)["data"]}catch(t){console.log("error:unable to access image data: "+t);return"#ccc"}var n=(j.w?j.w:s.width*j.h?j.h:s.height)||r.length,p={},w="",v=[],j={dominant:{name:"",count:0}};var q=0;while(qj.dominant.count){j.dominant.name=w;j.dominant.count=x}}q+=u*4}return["rgb(",j.dominant.name,")"].join("")}}; function ws_cube(p,k,b){var e=jquery,j=e(this),a=/wow slider/g.test(navigator.useragent),l=!(/iphone|ipod|ipad|android|blackberry/).test(navigator.useragent)&&!a,g=e(".ws_list",b),c=p.perspective||2000,d={position:"absolute",backgroundsize:"cover",left:0,top:0,width:"100%",height:"100%",backfacevisibility:"hidden"};var o={domprefixes:" webkit moz ms o khtml".split(" "),testdom:function(r){var q=this.domprefixes.length;while(q--){if(typeof document.body.style[this.domprefixes[q]+r]!=="undefined"){return true}}return false},csstransitions:function(){return this.testdom("transition")},csstransforms3d:function(){var r=(typeof document.body.style.perspectiveproperty!=="undefined")||this.testdom("perspective");if(r&&/applewebkit/.test(navigator.useragent)){var t=document.createelement("div"),q=document.createelement("style"),s="test3d"+math.round(math.random()*99999);q.textcontent="@media (-webkit-transform-3d){#"+s+"{height:3px}}";document.getelementsbytagname("head")[0].appendchild(q);t.id=s;document.body.appendchild(t);r=t.offsetheight===3;q.parentnode.removechild(q);t.parentnode.removechild(t)}return r},webkit:function(){return/applewebkit/.test(navigator.useragent)&&!/chrome/.test(navigator.useragent)}};var f=(o.csstransitions()&&o.csstransforms3d()),m=o.webkit();var i=e("
").css(d).css({transformstyle:"preserve-3d",perspective:(m&&!a?"none":c),zindex:8});e("
").addclass("ws_effect ws_cube").css(d).append(i).appendto(b);if(!f&&p.fallback){return new p.fallback(p,k,b)}function n(q,r,t,s){return"inset "+(-s*q*1.2/90)+"px "+(t*r*1.2/90)+"px "+(q+r)/20+"px rgba("+((ts)?"255,255,255,0.8":"0,0,0,.0")+")"}var h;this.go=function(b,y){var t=e(k[y]);t={width:t.width(),height:t.height(),margintop:parsefloat(t.css("margintop")),marginleft:parsefloat(t.css("marginleft"))};function s(s,f,h,i,g,e,q,r,p,o){s.parent().css("perspective",c);var n=s.width(),k=s.height();f.front.css({transform:"translate3d(0,0,0) rotatey(0deg) rotatex(0deg)"});f.back.css({opacity:1,transform:"translate3d(0,0,0) rotatey("+q+"deg) rotatex("+e+"deg)"});if(l){var j=e("
").css(d).css("boxshadow",n(n,k,0,0)).appendto(f.front);var m=e("
").css(d).css("boxshadow",n(n,k,e,q)).appendto(f.back)}if(m&&!/wow slider/g.test(navigator.useragent)){s.css({transform:"translatez(-"+h+"px)"})}var l=settimeout(function(){var w="all "+p.duration+"ms cubic-bezier(0.645, 0.045, 0.355, 1.000)";f.front.css({transition:w,boxshadow:l?n(n,k,r,p):"",transform:"rotatex("+r+"deg) rotatey("+p+"deg)",zindex:0});f.back.css({transition:w,boxshadow:l?n(n,k,0,0):"",transform:"rotatey(0deg) rotatex(0deg)",zindex:20});if(l){j.css({transition:w,boxshadow:n(n,k,r,p)});m.css({transition:w,boxshadow:n(n,k,0,0)})}l=settimeout(o,p.duration)},20);return{stop:function(){cleartimeout(l);o()}}}if(f){if(h){h.stop()}var c=b.width(),z=b.height();var x={left:[c/2,c/2,0,0,90,0,-90],right:[c/2,-c/2,0,0,-90,0,90],down:[z/2,0,-z/2,90,0,-90,0],up:[z/2,0,z/2,-90,0,90,0]}[p.direction||["left","right","down","up"][math.floor(math.random()*4)]];var d=e("").css(t),v=e("").css(t).attr("src",k.get(b).src);var q=e("
").css({overflow:"hidden",transformorigin:"50% 50% -"+x[0]+"px",zindex:20}).css(d).append(d).appendto(i);var r=e("
").css({overflow:"hidden",transformorigin:"50% 50% -"+x[0]+"px",zindex:0}).css(d).append(v).appendto(i);d.on("load",function(){g.hide()});d.attr("src",k.get(y).src).load();i.parent().show();h=new s(i,{front:q,back:r},x[0],x[1],x[2],x[3],x[4],x[5],x[6],function(){j.trigger("effectend");i.empty().parent().hide();h=0})}else{i.css({position:"absolute",display:"none",zindex:2,width:"100%",height:"100%"});i.stop(1,1);var u=(!!((b-y+1)%k.length)^p.revers?"left":"right");var q=e("
").css({position:"absolute",left:"0%",right:"auto",top:0,width:"100%",height:"100%"}).css(u,0).append(e(k[y]).clone().css({width:100*t.width/b.width()+"%",height:100*t.height/b.height()+"%",marginleft:100*t.marginleft/b.width()+"%"})).appendto(i);var a=e("
").css({position:"absolute",left:"100%",right:"auto",top:0,width:"0%",height:"100%"}).append(e(k[b]).clone().css({width:100*t.width/b.width()+"%",height:100*t.height/b.height()+"%",marginleft:100*t.marginleft/b.width()+"%"})).appendto(i);i.css({left:"auto",right:"auto",top:0}).css(u,0).show();i.show();g.hide();a.animate({width:"100%",left:0},p.duration,"easeinoutexpo",function(){e(this).remove()});q.animate({width:0},p.duration,"easeinoutexpo",function(){j.trigger("effectend");i.empty().hide()})}}};// ----------------------------------------------------------------------------------- function ws_book(p,n,b){var f=jquery;var m=f(this);var i=f(".ws_list",b);var k=f("
").addclass("ws_effect ws_book").css({position:"absolute",top:0,left:0,width:"100%",height:"100%"}).appendto(b),e=p.duration,d=p.perspective||0.4,g=p.shadow||0.35,a=p.nocanvas||false,l=p.no3d||false;var o={domprefixes:" webkit moz ms o khtml".split(" "),testdom:function(r){var q=this.domprefixes.length;while(q--){if(typeof document.body.style[this.domprefixes[q]+r]!=="undefined"){return true}}return false},csstransitions:function(){return this.testdom("transition")},csstransforms3d:function(){var r=(typeof document.body.style.perspectiveproperty!=="undefined")||this.testdom("perspective");if(r&&/applewebkit/.test(navigator.useragent)){var t=document.createelement("div"),q=document.createelement("style"),s="test3d"+math.round(math.random()*99999);q.textcontent="@media (-webkit-transform-3d){#"+s+"{height:3px}}";document.getelementsbytagname("head")[0].appendchild(q);t.id=s;document.body.appendchild(t);r=t.offsetheight===3;q.parentnode.removechild(q);t.parentnode.removechild(t)}return r},canvas:function(){if(typeof document.createelement("canvas").getcontext!=="undefined"){return true}}};if(!l){l=o.csstransitions()&&o.csstransforms3d()}if(!a){a=o.canvas()}var j;this.go=function(r,q,e){if(j){return -1}var v=n.get(r),g=n.get(q);if(e==undefined){e=(q==0&&r!=q+1)||(r==q-1)}else{e=!e}var s=f("
").appendto(k);var t=f(v);t={width:t.width(),height:t.height(),marginleft:parsefloat(t.css("marginleft")),margintop:parsefloat(t.css("margintop"))};if(l){var y={background:"#000",position:"absolute",left:0,top:0,width:"100%",height:"100%",transformstyle:"preserve-3d",zindex:3,outline:"1px solid transparent"};perspect=b.width()*(3-d*2);s.css(y).css({perspective:perspect,transform:"translate3d(0,0,0)"});var z=90;var d=f("
").css(y).css({position:"relative","float":"left",width:"50%",overflow:"hidden"}).append(f("").attr("src",(e?v:g).src).css(t)).appendto(s);var c=f("
").css(y).css({position:"relative","float":"left",width:"50%",overflow:"hidden"}).append(f("").attr("src",(e?g:v).src).css(t).css({marginleft:-t.width/2})).appendto(s);var i=f("
").css(y).css({display:e?"block":"none",width:"50%",transform:"rotatey("+(e?0.1:z)+"deg)",transition:(e?"ease-in ":"ease-out ")+e/2000+"s",transformorigin:"right",overflow:"hidden"}).append(f("").attr("src",(e?g:v).src).css(t)).appendto(s);var f=f("
").css(y).css({display:e?"none":"block",left:"50%",width:"50%",transform:"rotatey(-"+(e?z:0.1)+"deg)",transition:(e?"ease-out ":"ease-in ")+e/2000+"s",transformorigin:"left",overflow:"hidden"}).append(f("").attr("src",(e?v:g).src).css(t).css({marginleft:-t.width/2})).appendto(s)}else{if(a){var x=f("
").css({position:"absolute",top:0,left:e?0:"50%",width:"50%",height:"100%",overflow:"hidden",zindex:6}).append(f(n.get(r)).clone().css({position:"absolute",height:"100%",right:e?"auto":0,left:e?0:"auto"})).appendto(s).hide();var b=f("
").css({position:"absolute",width:"100%",height:"100%",left:0,top:0,zindex:8}).appendto(s).hide();var h=f("").css({position:"absolute",zindex:2,left:0,top:-b.height()*d/2}).attr({width:b.width(),height:b.height()*(d+1)}).appendto(b);var a=h.clone().css({top:0,zindex:1}).attr({width:b.width(),height:b.height()}).appendto(b);var w=h.get(0).getcontext("2d");var u=a.get(0).getcontext("2d")}else{i.stop(true).animate({left:(r?-r+"00%":(/safari/.test(navigator.useragent)?"0%":0))},e,"easeinoutexpo")}}if(!l&&a){var d=w;var c=u;var i=g;var f=v}j=new h(e,z,d,c,i,f,b,h,a,x,t,function(){m.trigger("effectend");s.remove();j=0})};function c(g,s,a,v,u,e,d,c,b,t,r){numslices=u/2,widthscale=u/b,heightscale=(1-e)/numslices;g.clearrect(0,0,r.width(),r.height());for(var q=0;q