").append(D,aF).appendTo(au);D.bind("mouseover",function(c){if(!at||!at.playing()){af()}});D.bind("mouseout",function(c){if(!at||!at.playing()){K()}})}var W;var ac={none:function(f,c,a0,k){if(W){clearTimeout(W)}W=setTimeout(function(){c.html(k).show()},f.noDelay?0:f.duration/2)}};if(!ac[am.captionEffect]){ac[am.captionEffect]=window["ws_caption_"+am.captionEffect]}function N(c){var f=aQ[c],a0=aI("img",f).attr("title"),k=aI(f).data("descr");if(!a0.replace(/\s+/g,"")){a0=""}return(a0?"
"+a0+"":"")+(k?"
"+k+"
":"")}function aX(f,a1,c){var a0=N(f);var a2=N(a1);var k=am.captionEffect;(ac[aI.type(k)]||ac[k]||ac.none)(aI.extend({$this:H,curIdx:x,prevIdx:ax,noDelay:c},am),D,aF,a0,a2,i)}if(ay.length||ao.length){I()}Y(x,ax,true);if(am.stopOnHover){this.bind("mouseover",function(c){if(!at||!at.playing()){af()}B=true});this.bind("mouseout",function(c){if(!at||!at.playing()){K()}B=false})}if(!at||!at.playing()){K()}var u=H.find("audio").get(0),l=am.autoPlay;if(u){aI(u).insertAfter(H);if(window.Audio&&u.canPlayType&&u.canPlayType("audio/mp3")){u.loop="loop";if(am.autoPlay){u.autoplay="autoplay";setTimeout(function(){u.play()},100)}}else{u=u.src;var ab=u.substring(0,u.length-/[^\\\/]+$/.exec(u)[0].length);var j="wsSound"+Math.round(Math.random()*9999);aI("
").appendTo(H).get(0).id=j;var J="wsSL"+Math.round(Math.random()*9999);window[J]={onInit:function(){}};swfobject.createSWF({data:ab+"player_mp3_js.swf",width:"1",height:"1"},{allowScriptAccess:"always",loop:true,FlashVars:"listener="+J+"&loop=1&autoplay="+(am.autoPlay?1:0)+"&mp3="+u},j);u=0}H.bind("stop",function(){l=false;if(u){u.pause()}else{aI(j).SetVariable("method:pause","")}});H.bind("start",function(){if(u){u.play()}else{aI(j).SetVariable("method:play","")}})}y.wsStart=av;y.wsRestart=K;y.wsStop=aD;var aL=aI('
');function a(){am.autoPlay=!am.autoPlay;if(!am.autoPlay){y.wsStop();aL.removeClass("ws_pause");aL.addClass("ws_play")}else{K();aL.removeClass("ws_play");aL.addClass("ws_pause");if(at){at.start(x)}}}if(am.playPause){if(am.autoPlay){aL.addClass("ws_pause")}else{aL.addClass("ws_play")}aL.click(function(){a();return false});O.append(aL)}if(am.keyboardControl){aI(document).on("keyup",function(c){switch(c.which){case 32:a();break;case 37:aU(c,x-1,0);break;case 39:aU(c,x+1,1);break}})}if(am.scrollControl){H.on("DOMMouseScroll mousewheel",function(c){if(c.originalEvent.wheelDelta<0||c.originalEvent.detail>0){aU(null,x+1,1)}else{aU(null,x-1,0)}})}if(typeof wowsliderVideo=="function"){var F=aI('
').appendTo(au);at=new wowsliderVideo(H,am,n);if(typeof $f!="undefined"){at.vimeo(true);at.start(x)}window.onYouTubeIframeAPIReady=function(){at.youtube(true);at.start(x)};F.on("click touchend",function(){if(!aC){at.play(x,1)}})}var aZ=0;if(am.fullScreen){if(typeof NoSleep!=="undefined"){var aT=new NoSleep()}var w=(function(){var a2=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenchange"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitfullscreenchange"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitfullscreenchange"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozfullscreenchange"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","MSFullscreenChange"]],f={},a1,a0;for(var k=0,c=a2.length;k
").parent()[0][w.requestFullscreen]();if(typeof aT!=="undefined"){aT.enable()}}}document.addEventListener(w.fullscreenchange,function(c){if(aq()){aZ=1;aV()}else{if(aG){aG=0;H.unwrap()}aZ=0;aV()}if(!aW[0].step){n()}});aI("
").on("click",an).appendTo(au)}}function aV(){var a4=aZ?4:am.responsive,c=au.width()||am.width,a0=aI([r,aH.find("img"),aR.find("img")]);if(a4>0&&!!document.addEventListener){H.css("fontSize",Math.max(Math.min((c/am.width)||1,1)*10,4))}if(a4==2){var f=Math.max((c/am.width),1)-1;a0.each(function(){aI(this).css("marginTop",-am.height*f/2)})}if(a4==3){var a5=window.innerHeight-(H.offset().top||0),a2=am.width/am.height,a3=a2>c/a5;H.css("height",a5);a0.each(function(){aI(this).css({width:a3?"auto":"100%",height:a3?"100%":"auto",marginLeft:a3?((c-a5*a2)/2):0,marginTop:a3?0:((a5-c/a2)/2)})})}if(a4==4){var a1=window.innerWidth,k=window.innerHeight,a2=(H.width()||am.width)/(H.height()||am.height);H.css({maxWidth:a2>a1/k?"100%":(a2*k),height:""});a0.each(function(){aI(this).css({width:"100%",marginLeft:0,marginTop:0})})}else{H.css({maxWidth:"",top:""})}}if(am.responsive){aI(aV);aI(window).on("load resize",aV)}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;bdiv,>span",n),0)}else{var l=e(">div",n);var y=e(">div",j);var o=e(">span",n);var i=e(">span",j);var u=p+m*(w?-1:1),x=p+m*(w?1:-1),t=(w?-1:1)*p;q(n,u).show();q(j,0).show();q(l,t);q(y,0);q(o,2*t);q(i,0);wowAnimate(function(z){z=e.easing.swing(z);q(n,(1-z)*u);q(j,z*x)},0,1,d.duration);var k=0.8;wowAnimate(function(z){z*=k;q(o,(1-z)*2*t);q(l,(1-z)*t);q(i,z*(-2*t));q(y,z*(-t))},0,1,d.duration,function(){i.css("opacity",0);y.css("opacity",0);wowAnimate(function(z){z=e.easing.easeOutCubic(1,z,0,1,1,1);var A=(1-k)*2*t,C=(1-k)*t,B=k*(-2*t),D=k*(-t);q(o,(1-z)*A);q(l,(1-z)*C);q(i,(1-z)*B+z*(-2*t));q(y,(1-z)*D+z*(-t))},0,1,(/Firefox/g.test(navigator.userAgent)?1500:d.delay))})}}(c,h,f,g,d.captionDuration,b))};