// -----------------------------------------------------------------------------------
// http://wowslider.com/
// JavaScript Wow Slider is a free software that helps you easily generate delicious 
// slideshows with gorgeous transition effects, in a few clicks without writing a single line of code.
// Generated by WOW Slider 5.6
//
//***********************************************
// Obfuscated by Javascript Obfuscator
// http://javascript-source.com
//***********************************************
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("ul"),G=[],b=30,x={},o=h("<div>").addClass("ws_effect"),q=f.support.transform&&f.support.transition&&f.support.perspective,p=/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent),m=/Firefox/.test(navigator.userAgent);g=g.parent().append(o);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<a*r;l++){var B=l%a,A=Math.floor(l/a);var E=h("<div>").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("<div>").css({transform:"scale(1) rotateX(0) rotateY(0) translate3d(0,0,0)",outline:"1px solid transparent",transformStyle:"preserve-3d"}).appendTo(E),w=h("<div>").addClass("ws_front_image").appendTo(z),D=q?h("<div>").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("<img>").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("<img>").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("<div>").addClass("ws_left_edge").css(t).appendTo(z):0,rightEdge:q?h("<div>").addClass("ws_right_edge").css(t).appendTo(z):0,topEdge:q?h("<div>").addClass("ws_top_edge").css(t).appendTo(z):0,bottomEdge:q?h("<div>").addClass("ws_bottom_edge").css(t).appendTo(z):0}}(function(){var j=0;var J=["ms","moz","webkit","o"];for(var i=0;i<J.length&&!window.requestAnimationFrame;++i){window.requestAnimationFrame=window[J[i]+"RequestAnimationFrame"];window.cancelAnimationFrame=window[J[i]+"CancelAnimationFrame"]||window[J[i]+"CancelRequestAnimationFrame"]}if(!window.requestAnimationFrame){window.requestAnimationFrame=function(O,L){var K=new Date().getTime();var M=Math.max(0,16-(K-j));var N=window.setTimeout(function(){O(K+M)},M);j=K+M;return N}}if(!window.cancelAnimationFrame){window.cancelAnimationFrame=function(K){clearTimeout(K)}}}());function C(N){var J={},L=s.get(N),O=f.width/a,P=f.height/r;for(var K=0;K<a*r;K++){var N=K%a,M=Math.floor(K/a);J[K]=F(L,{x:N*O,y:M*P,w:O,h:P})}return J}function I(J,M,j,K,L){for(var i in M){M[i].topEdge.css({width:K,height:J,background:j[i],transform:"rotateX(90deg) translate3d(0,-"+J/2+"px,"+J/2+"px)"});M[i].bottomEdge.css({width:K,height:J,background:j[i],transform:"rotateX(90deg) translate3d(0,-"+J/2+"px,"+(-L+J/2)+"px)"});M[i].leftEdge.css({width:J,height:L,background:j[i],transform:"rotateY(90deg) translate3d("+J/2+"px,0,-"+J/2+"px)"});M[i].rightEdge.css({width:J,height:L,background:j[i],transform:"rotateY(90deg) translate3d("+J/2+"px,0,"+(K-J/2)+"px)"})}}function e(L,P){var j=new Date().getTime(),O,M,N,K,i;var J=function(){var U=new Date().getTime();for(var Q in L){if((j+L[Q].animate.delay)>U){continue}var R=(U-(j+L[Q].animate.delay))/L[Q].animate.duration;i={};K="";if(R>1){if(L[Q].part[0].ws_delay[1]){cancelAnimationFrame(J);P();return}else{continue}}if(R<=0.5){O=h.easing.easeInBack(1,R*2,0,1,1,1).toFixed(3);M=h.easing.easeInBackQ(1,R*2,0,1,1,1).toFixed(3);N=h.easing.easeInBackQ2(1,R*2,0,1,1,1).toFixed(3);L[Q].back.css("backfaceVisibility","hidden")}else{O=h.easing.easeOutBack(1,(R-0.5)*2,0,1,1,1).toFixed(3);M=h.easing.easeOutBackQ(1,(R-0.5)*2,0,1,1,1).toFixed(3);N=h.easing.easeOutBackQ2(1,(R-0.5)*2,0,1,1,1).toFixed(3);L[Q].back.css("backfaceVisibility","visible")}for(var V in L[Q].animate[R<=0.5?"half":"end"]){var T=L[Q].animate[R<=0.5?"begin":"half"][V]||0,S=L[Q].animate[R<=0.5?"half":"end"][V]||0;if(typeof S!=="object"){if(V==="scale"||V==="rotateX"||V==="rotateY"){S=T+(S-T)*M}else{if(V==="left"||V==="top"){S=T+(S-T)*N}else{S=T+(S-T)*O}}}if(V==="rotateX"||V==="rotateY"||V==="rotateZ"){K+=V+"("+S+"deg) "}else{if(V==="scale"){K+=V+"("+S+") "}else{if(V==="translate3d"){K+=V+"("+(T[0]+(S[0]-T[0])*O).toFixed(3)+"px,"+(T[1]+(S[1]-T[1])*O).toFixed(3)+"px,"+(T[2]+(S[2]-T[2])*O).toFixed(3)+"px) "}else{i[V]=S}}}}L[Q].wrapper.css({transform:"translate3d("+(i.left?i.left:0).toFixed(3)+"px,"+(i.top?i.top:0).toFixed(3)+"px,0)"});delete i.left;delete i.top;if(K){i.transform=K}L[Q].part.css(i)}requestAnimationFrame(J)};J()}function k(aa,M,N){var W=g.width(),V=g.height(),U=W/a,T=V/r,L=(f.duration*0.4)>1000?1000:(f.duration*0.4),K=f.duration*0.6,P=[0,0];I(b,aa,x[M],U,T);o.css({transformOrigin:(W/2)+"px "+(V/2)+"px 0",width:W,height:V});for(var R in aa){var J=y[R].delay*L;if(P[1]<=J){P[0]=R;P[1]=J}aa[R].part[0].ws_delay=[J,0]}aa[P[0]].part[0].ws_delay[1]=1;for(var R in aa){var Q=aa[R],Y=R%a,X=Math.floor(R/a),S=W*Y/a,O=V*X/r,Z={width:W,height:V};Q.animate={delay:Q.part[0].ws_delay[0],duration:K,begin:{left:0,top:0,width:U,height:T,scale:1,rotateX:0,rotateY:0,translate3d:[0,0,p?b:0]},half:{left:y[R].halfLeft*U,top:y[R].halfTop*T,scale:y[R].halfScale,rotateX:y[R].rotateX/2,rotateY:y[R].rotateY/2,translate3d:[0,0,(p?1:0.5)*b]},end:{left:0,top:0,scale:1,rotateX:y[R].rotateX,rotateY:y[R].rotateY,translate3d:[0,0,b]}};Q.front.find("img").css(Z);Q.back.css("backfaceVisibility","hidden").find("img").css(Z);Q.part.css({width:Q.animate.begin.width,height:Q.animate.begin.height,left:Q.animate.begin.left,top:Q.animate.begin.top})}e(aa,N)}var d;this.go=function(X,L){if(d){return L}n.trigger("effectStart",o);o.show();if(q){var W=(L==0&&X!=L+1)||(X==L-1)?false:true;G[0].front.find("img").on("load",function(){u.hide()});for(var M in G){G[M].front.find("img").attr("src",s.get(L).src);G[M].back.find("img").attr("src",s.get(X).src)}if(!x[L]){x[L]=C(L)}d=new k(G,L,function(){u.show();n.trigger("effectEnd",X);o.hide();for(var i in G){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 S=g.width(),V=g.height(),R=S/a,U=V/r,K=S-R*(a-1),T=V-U*(r-1);var J=0;for(var M in G){var Q=M%a,O=Math.floor(M/a);G[M].front.find("img").attr("src",s.get(X).src).css({width:S,height:V});var Z=f.duration*(1-Math.abs((c*H-Q*O)/(2*r*a)));var P=Y(-1,1)>0?1:-1;var N=Y(-1,1)>0?1:-1;G[M].wrapper.css({width:R,height:U});G[M].part.css({position:"absolute",top:P*U,left:N*R,opacity:0,width:R,height:U}).animate({top:0,left:0,opacity:1},Z,function(){J++;if(J==r*a){u.stop(1,1);d=false;n.trigger("effectEnd",X)}})}}return X};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(Q<N){V[0]=R[Q];V[1]=R[Q+1];V[2]=R[Q+2];W=V.join(",");if(W in P){P[W]=P[W]+1}else{P[W]=1}if(M.indexOf(["rgb(",W,")"].join(""))===-1){var X=P[W];if(X>j.dominant.count){j.dominant.name=W;j.dominant.count=X}}Q+=U*4}return["rgb(",j.dominant.name,")"].join("")}};// -----------------------------------------------------------------------------------
// http://wowslider.com/
// JavaScript Wow Slider is a free software that helps you easily generate delicious 
// slideshows with gorgeous transition effects, in a few clicks without writing a single line of code.
// Generated by WOW Slider 5.6
//
//***********************************************
// Obfuscated by Javascript Obfuscator
// http://javascript-source.com
//***********************************************
jQuery("#wowslider-container1").wowSlider({effect:"brick",prev:"",next:"",duration:50*100,delay:50*100,width:984,height:300,autoPlay:true,playPause:false,stopOnHover:false,loop:false,bullets:0,caption:false,captionEffect:"slide",controls:true,onBeforeStep:0,images:0});