").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("