").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("data-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;b=g){var b=e(""+(k[q].iframe?'':"")+(k[q].href?'":"")+''+(k[q].href?"":"")+"").appendto(t);e("img",b).attr("title",k[q].title);b.data("descr",k[q].descr||"");k[q].image=e("img",b).get(0);k[q].noimage=1;if(k[q].iframe){k[q].elementiframe=e("iframe",b);k[q].noiframe=1}if(/^\./.test(k[q].src)){k[q].src=a.substr(0,a.lastindexof("/"))+k[q].src.substr(1)}}else{if(k[q].iframe){k[q].elementiframe=e(t.find("li > iframe")[q])}}}}var l=e(" .ws_bullets>div",n);if(e("img",l).length){var a=l.find("img").get(0).src;l.find(">a").each(function(w,v){if(k[w]){v.href="#";if(!k[w].thumb){k[w].thumb=k[w].src.replace(/\/images\/([^\/]+)$/,"/tooltips/$1")}if(/^\./.test(k[w].thumb)){k[w].thumb=a.substr(0,a.lastindexof("/"))+k[w].thumb.substr(1)}if(!e("img",v).length){k[w].nottip=1;k[w].ttip=e('').appendto(v).get(0)}}})}j(0);h(a,function(){j(1)});this.loadttip=function(i){if(k[i].nottip){h(k[i].thumb,function(w){var v=k[i];v.ttip.src=w;v.nottip=0;e(v.ttip).removeclass("loading")})}};var c=e("").hide().appendto(n.find(".ws_images"));var u;var m;this.load=function(i,v){m=v;if(!j(i,function(){if(m==v){cleartimeout(u);u=0;c.hide();v()}})){return}if(!u){u=settimeout(function(){c.show()},300)}}};// -----------------------------------------------------------------------------------
function ws_caption_parallax(d,c,h,f,g,b){var e=jquery;c.parent().css({position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"});c.html(f).css("width","100%").stop(1,1);h.html(g).css("width","100%").stop(1,1);(function a(n,j,v,r,s,w){var p=15;var m=d.$this.width();p*=m/100;function q(z,a){return z.css(d.support.transform?{transform:"translate3d("+a+"px,0px,0px)"}:{marginleft:a}).css("display","inline-block")}if(d.previdx==d.curidx){q(n,0).fadein(s/3);q(e(">div,>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)?1000:d.delay))})}}(c,h,f,g,d.captionduration,b))};