").append(D,aA).appendTo(H);D.bind("mouseover",function(c){if(!an||!an.playing()){ac()}});D.bind("mouseout",function(c){if(!an||!an.playing()){K()}})}var Z={none:function(k,c,aS,f,aR){c.html(aR);c.show()}};Z[ai.captionEffect]=window["ws_caption_"+ai.captionEffect];function O(c){var f=aI[c],aR=aD("img",f).attr("title"),k=aD(f).data("descr");if(!aR.replace(/\s+/g,"")){aR=""}return(aR?"
"+aR+"":"")+(k?"
"+k+"
":"")}function aO(c,aR){var k=O(c);var aS=O(aR);var f=ai.captionEffect;(Z[aD.type(f)]||Z[f]||Z.none)(aD.extend({$this:H,curIdx:x,prevIdx:ar},ai),D,aA,k,aS,i)}if(at.length||ak.length){I()}V(x,ar);if(ai.stopOnHover){this.bind("mouseover",function(c){if(!an||!an.playing()){ac()}B=true});this.bind("mouseout",function(c){if(!an||!an.playing()){K()}B=false})}if(!an||!an.playing()){K()}var u=H.find("audio").get(0),l=ai.autoPlay;if(u){if(window.Audio&&u.canPlayType&&u.canPlayType("audio/mp3")){u.loop="loop";if(ai.autoPlay){u.autoplay="autoplay";setTimeout(function(){u.play()},100)}}else{u=u.src;var Y=u.substring(0,u.length-/[^\\\/]+$/.exec(u)[0].length);var j="wsSound"+Math.round(Math.random()*9999);aD("
").appendTo(H).get(0).id=j;var J="wsSL"+Math.round(Math.random()*9999);window[J]={onInit:function(){}};swfobject.createSWF({data:Y+"player_mp3_js.swf",width:"1",height:"1"},{allowScriptAccess:"always",loop:true,FlashVars:"listener="+J+"&loop=1&autoplay="+(ai.autoPlay?1:0)+"&mp3="+u},j);u=0}H.bind("stop",function(){l=false;if(u){u.pause()}else{aD(j).SetVariable("method:pause","")}});H.bind("start",function(){if(u){u.play()}else{aD(j).SetVariable("method:play","")}})}y.wsStart=ap;y.wsRestart=K;y.wsStop=ay;var aG=aD('
');function a(){ai.autoPlay=!ai.autoPlay;if(!ai.autoPlay){y.wsStop();aG.removeClass("ws_pause");aG.addClass("ws_play")}else{K();aG.removeClass("ws_play");aG.addClass("ws_pause");if(an){an.start(x)}}}if(ai.playPause){if(ai.autoPlay){aG.addClass("ws_pause")}else{aG.addClass("ws_play")}aG.click(function(){a();return false});this.append(aG)}if(ai.keyboardControl){aD(document).on("keyup",function(c){switch(c.which){case 32:a();break;case 37:aL(c,x-1,0);break;case 39:aL(c,x+1,1);break}})}if(ai.scrollControl){H.on("DOMMouseScroll mousewheel",function(c){if(c.originalEvent.wheelDelta<0||c.originalEvent.detail>0){aL(null,x+1,1)}else{aL(null,x-1,0)}})}if(typeof wowsliderVideo=="function"){var F=aD('
').appendTo(H);an=new wowsliderVideo(H,ai,n);if(typeof $f!="undefined"){an.vimeo(true);an.start(x)}window.onYouTubeIframeAPIReady=function(){an.youtube(true);an.start(x)};F.on("click touchend",function(){if(!ax){an.play(x,1)}})}var aQ=0;if(ai.fullScreen){var w=(function(){var aT=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenchange"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitfullscreenchange"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitfullscreenchange"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozfullscreenchange"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","MSFullscreenChange"]],f={},aS,aR;for(var k=0,c=aT.length;k
").parent()[0][w.requestFullscreen]()}}document.addEventListener(w.fullscreenchange,function(c){if(am()){aQ=1;aM()}else{if(aB){aB=0;H.unwrap()}aQ=0;aM()}n()});aD("
").on("click",aj).appendTo(H)}}function aM(){var aW=aQ?4:ai.responsive,c=H.width()||ai.width,aS=aD([r,aC.find("img"),aJ.find("img")]);if(aW>0&&!!document.addEventListener){H.css("fontSize",Math.max(Math.min((c/ai.width)||1,1)*10,6))}if(aW==2){var k=Math.max((c/ai.width),1)-1;aS.each(function(){aD(this).css("marginTop",-ai.height*k/2)})}if(aW==3){var aX=window.innerHeight-(H.offset().top||0),aU=ai.width/ai.height,aV=aU>c/aX;H.css("height",aX);aS.each(function(){aD(this).css({width:aV?"auto":"100%",height:aV?"100%":"auto",marginLeft:aV?((c-aX*aU)/2):0,marginTop:aV?0:((aX-c/aU)/2)})})}if(aW==4){var aT=window.innerWidth,aR=window.innerHeight,aU=ai.width/ai.height,f=aU>aT/aR;H.css({maxWidth:f?"100%":(aU*aR),height:"",top:f?(aR-aT/aU)/2:0});aS.each(function(){aD(this).css({width:"100%",marginLeft:0,marginTop:0})})}else{H.css({maxWidth:"",top:""})}}if(ai.responsive){aD(aM);aD(window).on("load resize",aM)}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