").append(D,aC).appendTo(aq);D.bind("mouseover",function(c){if(!ap||!ap.playing()){ad()}});D.bind("mouseout",function(c){if(!ap||!ap.playing()){K()}})}var aa={none:function(f,c,aT,k){c.html(k);c.show()}};if(!aa[aj.captionEffect]){aa[aj.captionEffect]=window["ws_caption_"+aj.captionEffect]}function O(c){var f=aK[c],aT=aF("img",f).attr("title"),k=aF(f).data("descr");if(!aT.replace(/\s+/g,"")){aT=""}return(aT?"
"+aT+"":"")+(k?"
"+k+"
":"")}function aQ(c,aT){var k=O(c);var aU=O(aT);var f=aj.captionEffect;(aa[aF.type(f)]||aa[f]||aa.none)(aF.extend({$this:H,curIdx:x,prevIdx:au},aj),D,aC,k,aU,i)}if(av.length||al.length){I()}W(x,au);if(aj.stopOnHover){this.bind("mouseover",function(c){if(!ap||!ap.playing()){ad()}B=true});this.bind("mouseout",function(c){if(!ap||!ap.playing()){K()}B=false})}if(!ap||!ap.playing()){K()}var u=H.find("audio").get(0),l=aj.autoPlay;if(u){if(window.Audio&&u.canPlayType&&u.canPlayType("audio/mp3")){u.loop="loop";if(aj.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);aF("
").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="+(aj.autoPlay?1:0)+"&mp3="+u},j);u=0}H.bind("stop",function(){l=false;if(u){u.pause()}else{aF(j).SetVariable("method:pause","")}});H.bind("start",function(){if(u){u.play()}else{aF(j).SetVariable("method:play","")}})}y.wsStart=ar;y.wsRestart=K;y.wsStop=aA;var aI=aF('
');function a(){aj.autoPlay=!aj.autoPlay;if(!aj.autoPlay){y.wsStop();aI.removeClass("ws_pause");aI.addClass("ws_play")}else{K();aI.removeClass("ws_play");aI.addClass("ws_pause");if(ap){ap.start(x)}}}if(aj.playPause){if(aj.autoPlay){aI.addClass("ws_pause")}else{aI.addClass("ws_play")}aI.click(function(){a();return false});P.append(aI)}if(aj.keyboardControl){aF(document).on("keyup",function(c){switch(c.which){case 32:a();break;case 37:aN(c,x-1,0);break;case 39:aN(c,x+1,1);break}})}if(aj.scrollControl){H.on("DOMMouseScroll mousewheel",function(c){if(c.originalEvent.wheelDelta<0||c.originalEvent.detail>0){aN(null,x+1,1)}else{aN(null,x-1,0)}})}if(typeof wowsliderVideo=="function"){var F=aF('
').appendTo(H);ap=new wowsliderVideo(H,aj,n);if(typeof $f!="undefined"){ap.vimeo(true);ap.start(x)}window.onYouTubeIframeAPIReady=function(){ap.youtube(true);ap.start(x)};F.on("click touchend",function(){if(!az){ap.play(x,1)}})}var aS=0;if(aj.fullScreen){var w=(function(){var aV=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenchange"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitfullscreenchange"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitfullscreenchange"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozfullscreenchange"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","MSFullscreenChange"]],f={},aU,aT;for(var k=0,c=aV.length;k
").parent()[0][w.requestFullscreen]()}}document.addEventListener(w.fullscreenchange,function(c){if(an()){aS=1;aO()}else{if(aD){aD=0;H.unwrap()}aS=0;aO()}if(!aP[0].step){n()}});aF("
").on("click",ak).appendTo(aq)}}function aO(){var aX=aS?4:aj.responsive,c=aq.width()||aj.width,aT=aF([r,aE.find("img"),aL.find("img")]);if(aX>0&&!!document.addEventListener){H.css("fontSize",Math.max(Math.min((c/aj.width)||1,1)*10,4))}if(aX==2){var f=Math.max((c/aj.width),1)-1;aT.each(function(){aF(this).css("marginTop",-aj.height*f/2)})}if(aX==3){var aY=window.innerHeight-(H.offset().top||0),aV=aj.width/aj.height,aW=aV>c/aY;H.css("height",aY);aT.each(function(){aF(this).css({width:aW?"auto":"100%",height:aW?"100%":"auto",marginLeft:aW?((c-aY*aV)/2):0,marginTop:aW?0:((aY-c/aV)/2)})})}if(aX==4){var aU=window.innerWidth,k=window.innerHeight,aV=(H.width()||aj.width)/(H.height()||aj.height);H.css({maxWidth:aV>aU/k?"100%":(aV*k),height:""});aT.each(function(){aF(this).css({width:"100%",marginLeft:0,marginTop:0})})}else{H.css({maxWidth:"",top:""})}}if(aj.responsive){aF(aO);aF(window).on("load resize",aO)}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){l(1);cancelAnimationFrame(k);if(n){n()}}else{l(o);requestAnimationFrame(k)}};k()}(function b(o,k,w,s,t,x){var q=15;var n=i.$this.width();q*=n/100;function r(A,B){return A.css(i.support.transform?{transform:"translate3d("+B+"px,0px,0px)"}:{marginLeft:B}).css("display","inline-block")}if(i.prevIdx==i.curIdx){r(o,0).fadeIn(t/3);r(c(">div,>span",o),0)}else{var m=c(">div",o);var z=c(">div",k);var p=c(">span",o);var j=c(">span",k);var v=q+n*(x?-1:1),y=q+n*(x?1:-1),u=(x?-1:1)*q;r(o,v).show();r(k,0).show();r(m,u);r(z,0);r(p,2*u);r(j,0);f(function(A){A=c.easing.swing(A);r(o,(1-A)*v);r(k,A*y)},i.duration);var l=0.8;f(function(A){A*=l;r(p,(1-A)*2*u);r(m,(1-A)*u);r(j,A*(-2*u));r(z,A*(-u))},i.duration,function(){f(function(A){A=c.easing.easeOutCubic(1,A,0,1,1,1);var B=(1-l)*2*u,D=(1-l)*u,C=l*(-2*u),E=l*(-u);r(p,(1-A)*B);r(m,(1-A)*D);r(j,(1-A)*C+A*(-2*u));r(z,(1-A)*E+A*(-u))},(/Firefox/g.test(navigator.userAgent)?1500:i.delay))})}}(h,d,g,e,i.captionDuration,a))};