").append(D,aD).appendTo(ar);D.bind("mouseover",function(c){if(!aq||!aq.playing()){ad()}});D.bind("mouseout",function(c){if(!aq||!aq.playing()){K()}})}var U;var aa={none:function(f,c,aW,k){if(U){clearTimeout(U)}U=setTimeout(function(){c.html(k).show()},f.noDelay?0:f.duration/2)}};if(!aa[ak.captionEffect]){aa[ak.captionEffect]=window["ws_caption_"+ak.captionEffect]}function N(c){var f=aM[c],aW=aG("img",f).attr("title"),k=aG(f).data("descr");if(!aW.replace(/\s+/g,"")){aW=""}return(aW?"
"+aW+"":"")+(k?"
"+k+"
":"")}function aT(f,aX,c){var aW=N(f);var aY=N(aX);var k=ak.captionEffect;(aa[aG.type(k)]||aa[k]||aa.none)(aG.extend({$this:H,curIdx:x,prevIdx:av,noDelay:c},ak),D,aD,aW,aY,i)}if(aw.length||am.length){I()}W(x,av,true);if(ak.stopOnHover){this.bind("mouseover",function(c){if(!aq||!aq.playing()){ad()}B=true});this.bind("mouseout",function(c){if(!aq||!aq.playing()){K()}B=false})}if(!aq||!aq.playing()){K()}var u=H.find("audio").get(0),l=ak.autoPlay;if(u){aG(u).insertAfter(H);if(window.Audio&&u.canPlayType&&u.canPlayType("audio/mp3")){u.loop="loop";if(ak.autoPlay){u.autoplay="autoplay";setTimeout(function(){u.play()},100)}}else{u=u.src;var Z=u.substring(0,u.length-/[^\\\/]+$/.exec(u)[0].length);var j="wsSound"+Math.round(Math.random()*9999);aG("
").appendTo(H).get(0).id=j;var J="wsSL"+Math.round(Math.random()*9999);window[J]={onInit:function(){}};swfobject.createSWF({data:Z+"player_mp3_js.swf",width:"1",height:"1"},{allowScriptAccess:"always",loop:true,FlashVars:"listener="+J+"&loop=1&autoplay="+(ak.autoPlay?1:0)+"&mp3="+u},j);u=0}H.bind("stop",function(){l=false;if(u){u.pause()}else{aG(j).SetVariable("method:pause","")}});H.bind("start",function(){if(u){u.play()}else{aG(j).SetVariable("method:play","")}})}y.wsStart=at;y.wsRestart=K;y.wsStop=aB;var aJ=aG('
');function a(){ak.autoPlay=!ak.autoPlay;if(!ak.autoPlay){y.wsStop();aJ.removeClass("ws_pause");aJ.addClass("ws_play")}else{K();aJ.removeClass("ws_play");aJ.addClass("ws_pause");if(aq){aq.start(x)}}}if(ak.playPause){if(ak.autoPlay){aJ.addClass("ws_pause")}else{aJ.addClass("ws_play")}aJ.click(function(){a();return false});O.append(aJ)}if(ak.keyboardControl){aG(document).on("keyup",function(c){switch(c.which){case 32:a();break;case 37:aQ(c,x-1,0);break;case 39:aQ(c,x+1,1);break}})}if(ak.scrollControl){H.on("DOMMouseScroll mousewheel",function(c){if(c.originalEvent.wheelDelta<0||c.originalEvent.detail>0){aQ(null,x+1,1)}else{aQ(null,x-1,0)}})}if(typeof wowsliderVideo=="function"){var F=aG('
').appendTo(ar);aq=new wowsliderVideo(H,ak,n);if(typeof $f!="undefined"){aq.vimeo(true);aq.start(x)}window.onYouTubeIframeAPIReady=function(){aq.youtube(true);aq.start(x)};F.on("click touchend",function(){if(!aA){aq.play(x,1)}})}var aV=0;if(ak.fullScreen){if(typeof NoSleep!=="undefined"){var aP=new NoSleep()}var w=(function(){var aY=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenchange"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitfullscreenchange"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitfullscreenchange"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozfullscreenchange"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","MSFullscreenChange"]],f={},aX,aW;for(var k=0,c=aY.length;k
").parent()[0][w.requestFullscreen]();if(typeof aP!=="undefined"){aP.enable()}}}document.addEventListener(w.fullscreenchange,function(c){if(ao()){aV=1;aR()}else{if(aE){aE=0;H.unwrap()}aV=0;aR()}if(!aS[0].step){n()}});aG("
").on("click",al).appendTo(ar)}}function aR(){var a0=aV?4:ak.responsive,c=ar.width()||ak.width,aW=aG([r,aF.find("img"),aN.find("img")]);if(a0>0&&!!document.addEventListener){H.css("fontSize",Math.max(Math.min((c/ak.width)||1,1)*10,4))}if(a0==2){var f=Math.max((c/ak.width),1)-1;aW.each(function(){aG(this).css("marginTop",-ak.height*f/2)})}if(a0==3){var a1=window.innerHeight-(H.offset().top||0),aY=ak.width/ak.height,aZ=aY>c/a1;H.css("height",a1);aW.each(function(){aG(this).css({width:aZ?"auto":"100%",height:aZ?"100%":"auto",marginLeft:aZ?((c-a1*aY)/2):0,marginTop:aZ?0:((a1-c/aY)/2)})})}if(a0==4){var aX=window.innerWidth,k=window.innerHeight,aY=(H.width()||ak.width)/(H.height()||ak.height);H.css({maxWidth:aY>aX/k?"100%":(aY*k),height:""});aW.each(function(){aG(this).css({width:"100%",marginLeft:0,marginTop:0})})}else{H.css({maxWidth:"",top:""})}}if(ak.responsive){aG(aR);aG(window).on("load resize",aR)}return this};jQuery.extend(jQuery.easing,{easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeOutElastic1:function(k,l,i,h,g){var f=Math.PI/2;var m=1.70158;var e=0;var j=h;if(l==0){return i}if((l/=g)==1){return i+h}if(!e){e=g*0.3}if(j
-1){return z[y]}}if(c[B]){return c[B]}return""}(u,s,x));w=parseFloat(w);v=parseFloat(v);return g(w,v,r)+u}}var d=i(function(r){r=e(r,j);if(k==="num"){var q=g(m,n,r);l(q)}else{var q={transform:""};for(var s in m){if(typeof c[s]!=="undefined"){var t=p(s,m[s],n[s],r);switch(s){case"translate":q.transform+=" translate3d("+t[0]+","+t[1]+","+t[2]+")";break;case"rotate":q.transform+=" rotate("+t+")";break;case"rotateX":q.transform+=" rotateX("+t+")";break;case"rotateY":q.transform+=" rotateY("+t+")";break;case"scale":if(typeof t==="object"){q.transform+=" scale("+t[0]+", "+t[1]+")"}else{q.transform+=" scale("+t+")"}break;default:q[s]=t}}}if(q.transform===""){delete q.transform}l.css(q)}});return d}window.wowAnimate=b}(jQuery));if(!Date.now){Date.now=function(){return new Date().getTime()}}(function(){var d=["webkit","moz"];for(var b=0;b ").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});r.wrap(k);k=r.parent();if(r.css("position")=="static"){k.css({position:"relative"});r.css({position:"relative"})}else{d.extend(q,{position:r.css("position"),zIndex:r.css("z-index")});r.css({position:"absolute",top:0,left:0,right:"auto",bottom:"auto"})}k.css(q).show();var s=u.direction||"left";var m=(s=="up"||s=="down")?"top":"left";var n=(s=="up"||s=="left");var j=u.distance||(m=="top"?r.outerHeight(true):r.outerWidth(true));r.css(m,n?(isNaN(j)?"-"+j:-j):j);var o={};o[m]=(n?"+=":"-=")+j;k.animate({opacity:1},{duration:u.duration,easing:u.easing});r.animate(o,{queue:false,duration:u.duration,easing:u.easing,complete:function(){r.css(t);r.parent().replaceWith(r);if(u.complete){u.complete()}}})}h.stop(1,1).fadeOut(i.captionDuration/3,function(){if(g){h.html(g);f(h,{direction:"left",easing:"easeInOutExpo",complete:function(){if(h.get(0).filters){h.get(0).style.removeAttribute("filter")}},duration:i.captionDuration})}})};
function ws_kenburns(d,l,m){var e=jQuery;var g=e(this);var f=document.createElement("canvas").getContext;var i=e("").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"}).addClass("ws_effect ws_kenburns").appendTo(m);var o=d.paths||[{from:[0,0,1],to:[0,0,1.2]},{from:[0,0,1.2],to:[0,0,1]},{from:[1,0,1],to:[1,0,1.2]},{from:[0,1,1.2],to:[0,1,1]},{from:[1,1,1],to:[1,1,1.2]},{from:[0.5,1,1],to:[0.5,1,1.3]},{from:[1,0.5,1.2],to:[1,0.5,1]},{from:[1,0.5,1],to:[1,0.5,1.2]},{from:[0,0.5,1.2],to:[0,0.5,1]},{from:[1,0.5,1.2],to:[1,0.5,1]},{from:[0.5,0.5,1],to:[0.5,0.5,1.2]},{from:[0.5,0.5,1.3],to:[0.5,0.5,1]},{from:[0.5,1,1],to:[0.5,0,1.15]}];function c(h){return o[h?Math.floor(Math.random()*(f?o.length:Math.min(5,o.length))):0]}var k=d.width,p=d.height;var j,b;var a,r;function n(){a=e('
').css({"z-index":8,position:"absolute",left:0,top:0}).appendTo(i)}n();function s(w,t,h){var u={width:100*w[2]+"%"};u[t?"right":"left"]=-100*(w[2]-1)*(t?(1-w[0]):w[0])+"%";u[h?"bottom":"top"]=-100*(w[2]-1)*(h?(1-w[1]):w[1])+"%";if(!f){for(var v in u){if(/\%/.test(u[v])){u[v]=(/right|left|width/.test(v)?k:p)*parseFloat(u[v])/100+"px"}}}return u}function q(w,z,A){var t=e(w);t={width:t.width(),height:t.height(),marginTop:t.css("marginTop"),marginLeft:t.css("marginLeft")};if(f){if(b){b.stop(1)}b=j}if(r){r.remove()}r=a;n();if(A){a.hide();r.stop(true,true)}if(f){var y,x;var u,h;u=e('
');u.css({position:"absolute",left:0,top:0}).css(t).appendTo(a);y=u.get(0).getContext("2d");h=u.clone().appendTo(a);x=h.get(0).getContext("2d");j=wowAnimate(function(B){var D=[z.from[0]*(1-B)+B*z.to[0],z.from[1]*(1-B)+B*z.to[1],z.from[2]*(1-B)+B*z.to[2]];x.drawImage(w,-k*(D[2]-1)*D[0],-p*(D[2]-1)*D[1],k*D[2],p*D[2]);y.clearRect(0,0,k,p);var C=y;y=x;x=C},0,1,d.duration+d.delay*2)}else{k=t.width;p=t.height;var v=e('

').css({position:"absolute",left:"auto",right:"auto",top:"auto",bottom:"auto"}).appendTo(a).css(s(z.from,z.from[0]>0.5,z.from[1]>0.5)).animate(s(z.to,z.from[0]>0.5,z.from[1]>0.5),{easing:"linear",queue:false,duration:(1.5*d.duration+d.delay)})}if(A){a.fadeIn(d.duration)}}if(d.effect.length==1){e(function(){l.each(function(h){e(this).css({visibility:"hidden"});if(h==d.startSlide){q(this,c(h),0)}})})}this.go=function(h,t){setTimeout(function(){g.trigger("effectEnd")},d.duration);q(l.get(h),c(h),1)}};
// -----------------------------------------------------------------------------------
function ws_basic_linear(j,g,a){var c=jQuery;var f=c(this);var e=a.find(".ws_list");var i=c("
").addClass("ws_effect ws_basic_linear").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"}).appendTo(a);var b=c("
").css({position:"absolute",display:"none","z-index":2,width:"200%",height:"100%",transform:"translate3d(0,0,0)"}).appendTo(i);var h=c("
").css({position:"absolute",left:"auto",top:"auto",width:"50%",height:"100%",overflow:"hidden"}),d=h.clone();b.append(h,d);this.go=function(k,n,m){b.stop(1,1);if(m==undefined){m=(!!((k-n+1)%g.length)^j.revers?"left":"right")}else{m=m?"left":"right"}var o=c(g[n]);var l={width:o.width()||j.width,height:o.height()||j.height};o.clone().css(l).appendTo(h).css(m,0);c(g[k]).clone().css(l).appendTo(d).show();if(m=="right"){h.css("left","50%");d.css("left",0)}else{h.css("left",0);d.css("left","50%")}var q={},p={};q[m]=0;p[m]=-a.width();if(j.support.transform){if(m=="right"){q.left=q.right;p.left=-p.right}q={translate:[q.left,0,0]};p={translate:[p.left,0,0]}}e.hide();wowAnimate(b.css({left:"auto",right:"auto",top:0}).css(m,0).show(),q,p,j.duration,"easeInOutExpo",function(){f.trigger("effectEnd");b.hide().find("div").html("")})}};
// -----------------------------------------------------------------------------------
(function($){
$(document).ready(function(){
if($('#wowslider-container').length > 0) {
jQuery("#wowslider-container").wowSlider({effect:wow_effect,prev:"",next:"",duration:wow_duration,delay:wow_delay,width:wow_width,height:wow_height,autoPlay:true,autoPlayVideo:false,playPause:false,stopOnHover:true,loop:false,bullets:0,caption:true,captionEffect:"slide",controls:true,controlsThumb:false,responsive:1,fullScreen:false,gestures:1,onBeforeStep:0,images:0});
}
});
})(jQuery);