").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;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))};