"):0;M(ak).css({position:"absolute",padding:"0 0 0 0"}).appendTo(S);if(ak&&document.all){var ag=M('
');ag.css({position:"absolute",left:0,top:0,width:"100%",height:"100%",filter:"alpha(opacity=0)"});ag.attr({scrolling:"no",framespacing:0,border:0,frameBorder:"no"});ak.append(ag)}M(ak).css({zIndex:11,right:"5px",bottom:"2px"}).appendTo(S);V+=ah("czvex5oxxd1amnamp9ctTp%{sun4~v{|xj(]elgim+M{iib`?!<");V=ak?M(V):ak;if(V){V.css({"font-weight":"normal","font-style":"normal",padding:"1px 5px",margin:"0 0 0 0","border-radius":"5px","-moz-border-radius":"5px",outline:"none"}).attr({href:"http://"+d.toLowerCase()}).html(d).bind("contextmenu",function(c){return false}).show().appendTo(ak||document.body).attr("target","_blank")}if(E.controls){var A=M('
'+E.next+"");var ai=M('
'+E.prev+"");l.append(A);l.append(ai);A.bind("click",function(c){aj(c,H+1)});ai.bind("click",function(c){aj(c,H-1)});if(/iPhone/.test(navigator.platform)){ai.get(0).addEventListener("touchend",function(c){aj(c,H-1)},false);A.get(0).addEventListener("touchend",function(c){aj(c,H+1)},false)}}var X=E.thumbRate;var N;function e(){l.find(".ws_bullets a,.ws_thumbs a").click(function(az){aj(az,M(this).index())});if(T.length){T.hover(function(){N=1},function(){N=0});var at=T.find(">div");T.css({overflow:"hidden"});var ao;var au;var aw;var al=l.find(".ws_thumbs");al.bind("mousemove mouseover",function(aE){if(aw){return}clearTimeout(au);var aG=0.2;for(var aD=0;aD<2;aD++){var aH=T[aD?"width":"height"](),aC=at[aD?"width":"height"](),az=aH-aC;if(az<0){var aA,aB,aF=(aE[aD?"pageX":"pageY"]-T.offset()[aD?"left":"top"])/aH;if(ao==aF){return}ao=aF;at.stop(true);if(X>0){if((aF>aG)&&(aF<1-aG)){return}aA=aF<0.5?0:az-1;aB=X*Math.abs(at.position()[aD?"left":"top"]-aA)/(Math.abs(aF-0.5)-aG)}else{aA=az*Math.min(Math.max((aF-aG)/(1-2*aG),0),1);aB=-X*aC/2}at.animate(aD?{left:aA}:{top:aA},aB,X>0?"linear":"easeOutCubic")}else{at.css(aD?"left":"top",aD?az/2:0)}}});al.mouseout(function(az){au=setTimeout(function(){at.stop()},100)});T.trigger("mousemove");var ap,aq;ab(at.get(0),function(aB,aA,az){at.css("left",Math.min(Math.max(ap-aA,T.width()-at.width()),0));at.css("top",Math.min(Math.max(aq-az,T.height()-at.height()),0));aB.preventDefault();return false},function(az){ap=parseFloat(at.css("left"))||0;aq=parseFloat(at.css("top"))||0;return false});l.find(".ws_thumbs a").each(function(az,aA){ab(aA,0,0,function(aB){aw=1},function(aB){aj(aB,M(aA).index())})})}if(n.length){var ay=n.find(">div");var av=M("a",n);var am=av.find("IMG");if(am.length){var an=M('
').appendTo(ay);var f=M("
").css({width:am.length+1+"00%"}).appendTo(M("
").appendTo(an));am.appendTo(f);M("
").appendTo(an);var c=-1;function ar(aB){if(aB<0){aB=0}if(t){t.loadTtip(aB)}M(av.get(c)).removeClass("ws_overbull");M(av.get(aB)).addClass("ws_overbull");an.show();var aC={left:av.get(aB).offsetLeft-an.width()/2,"margin-top":av.get(aB).offsetTop-av.get(0).offsetTop+"px","margin-bottom":-av.get(aB).offsetTop+av.get(av.length-1).offsetTop+"px"};var aA=am.get(aB);var az={left:-aA.offsetLeft+(M(aA).outerWidth(true)-M(aA).outerWidth())/2};if(c<0){an.css(aC);f.css(az)}else{if(!document.all){aC.opacity=1}an.stop().animate(aC,"fast");f.stop().animate(az,"fast")}c=aB}av.hover(function(){ar(M(this).index())});var ax;ay.hover(function(){if(ax){clearTimeout(ax);ax=0}ar(c)},function(){av.removeClass("ws_overbull");if(document.all){if(!ax){ax=setTimeout(function(){an.hide();ax=0},400)}}else{an.stop().animate({opacity:0},{duration:"fast",complete:function(){an.hide()}})}});ay.click(function(az){aj(az,M(az.target).index())})}}}function P(c){M("A",T).each(function(an){if(an==c){var al=M(this);al.addClass("ws_selthumb");if(!N){var f=T.find(">div"),am=al.position()||{},ao=f.position()||{};f.stop(true).animate({left:-Math.max(Math.min(am.left,-ao.left),am.left+al.width()-T.width()),top:-Math.max(Math.min(am.top,0),am.top+al.height()-T.height())})}}else{M(this).removeClass("ws_selthumb")}})}function ac(c){M("A",n).each(function(f){if(f==c){M(this).addClass("ws_selbull")}else{M(this).removeClass("ws_selbull")}})}if(E.caption){$caption=M("
");l.append($caption);$caption.bind("mouseover",function(c){q()});$caption.bind("mouseout",function(c){K()})}var C=function(){if(this.filters){this.style.removeAttribute("filter")}};var U={none:function(f,c){c.show()},fade:function(al,c,f){c.fadeIn(f,C)},array:function(al,c,f){o(c,al[Math.floor(Math.random()*al.length)],0.5,"easeOutElastic1",f)},move:function(al,c,f){U.array([{left1:"100%",top2:"100%"},{left1:"80%",left2:"-50%"},{top1:"-100%",top2:"100%",distance:0.7,easing:"easeOutBack"},{top1:"-80%",top2:"-80%",distance:0.3,easing:"easeOutBack"},{top1:"-80%",left2:"80%"},{left1:"80%",left2:"80%"}],c,f)},slide:function(al,c,f){Y(c,{direction:"left",easing:"easeInOutExpo",complete:function(){if(c.get(0).filters){c.get(0).style.removeAttribute("filter")}},duration:f})}};U[0]=U.slide;function F(f){var am=M("img",f).attr("title");var al=M(f).data("descr");if(!am.replace(/\s+/g,"")){am=""}var c=M(".ws-title",l);c.stop(1,1).stop(1,1).fadeOut(E.captionDuration/3,function(){if(am||al){c.html((am?"
"+am+"":"")+(al?"
"+al+"
":""));var an=E.captionEffect;(U[M.type(an)]||U[an]||U[0])(an,c,E.captionDuration)}})}function Q(an,f){var ao,al=document.defaultView;if(al&&al.getComputedStyle){var am=al.getComputedStyle(an,"");if(am){ao=am.getPropertyValue(f)}}else{var c=f.replace(/\-\w/g,function(ap){return ap.charAt(1).toUpperCase()});if(an.currentStyle){ao=an.currentStyle[c]}else{ao=an.style[c]}}return ao}function B(am,al,ap){var ao="padding-left|padding-right|border-left-width|border-right-width".split("|");var an=0;for(var f=0;f
span,>div").get();M(am).css({position:"relative",visibility:"hidden"});an.show();for(var f in ar){if(/\%/.test(ar[f])){ar[f]=parseInt(ar[f])/100;var aq=an.offset()[/left/.test(f)?"left":"top"];var at=/left/.test(f)?"width":"height";if(ar[f]<0){ar[f]*=aq}else{ar[f]*=l[at]()-an[at]()-aq}}}M(am[0]).css({left:(ar.left1||0)+"px",top:(ar.top1||0)+"px"});M(am[1]).css({left:(ar.left2||0)+"px",top:(ar.top2||0)+"px"});var al=ar.duration||al;function ao(au){var av=M(am[au]).css("opacity");M(am[au]).css({visibility:"visible"}).css({opacity:0}).animate({opacity:av},al,"easeOutCirc").animate({top:0,left:0},{duration:al,easing:(ar.easing||ap),queue:false})}ao(0);setTimeout(function(){ao(1)},al*(ar.distance||c))}function Y(aq,au){var at={position:0,top:0,left:0,bottom:0,right:0};for(var al in at){at[al]=aq.get(0).style[al]}aq.show();var ap={width:B(aq.get(0),1,1),height:w(aq.get(0),1,1),"float":aq.css("float"),overflow:"hidden",opacity:0};for(var al in at){ap[al]=at[al]||Q(aq.get(0),al)}var f=M("").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});aq.wrap(f);f=aq.parent();if(aq.css("position")=="static"){f.css({position:"relative"});aq.css({position:"relative"})}else{M.extend(ap,{position:aq.css("position"),zIndex:aq.css("z-index")});aq.css({position:"absolute",top:0,left:0,right:"auto",bottom:"auto"})}f.css(ap).show();var ar=au.direction||"left";var am=(ar=="up"||ar=="down")?"top":"left";var an=(ar=="up"||ar=="left");var c=au.distance||(am=="top"?aq.outerHeight(true):aq.outerWidth(true));aq.css(am,an?(isNaN(c)?"-"+c:-c):c);var ao={};ao[am]=(an?"+=":"-=")+c;f.animate({opacity:1},{duration:au.duration,easing:au.easing});aq.animate(ao,{queue:false,duration:au.duration,easing:au.easing,complete:function(){aq.css(at);aq.parent().replaceWith(aq);if(au.complete){au.complete()}}})}if(n.length||T.length){e()}r(H);if(E.caption){F(j[H])}if(E.stopOnHover){this.bind("mouseover",function(c){q();J=true;console.info(J)});this.bind("mouseout",function(c){K();J=false;console.info(J)})}K(1);var L=l.find("audio").get(0);if(L){if(window.Audio&&L.canPlayType&&L.canPlayType("audio/mp3")){L.loop="loop";if(E.autoPlay){L.autoplay="autoplay";setTimeout(function(){L.play()},100)}}else{L=L.src;var W=L.substring(0,L.length-/[^\\\/]+$/.exec(L)[0].length);var m="wsSound"+Math.round(Math.random()*9999);M("").appendTo(l).get(0).id=m;var s="wsSL"+Math.round(Math.random()*9999);window[s]={onInit:function(){}};swfobject.createSWF({data:W+"player_mp3_js.swf",width:"1",height:"1"},{allowScriptAccess:"always",loop:true,FlashVars:"listener="+s+"&loop=1&autoplay="+(E.autoPlay?1:0)+"&mp3="+L},m);L=0}l.bind("stop",function(){if(L){L.pause()}else{M(m).SetVariable("method:pause","")}});l.bind("start",function(){if(L){L.play()}else{M(m).SetVariable("method:play","")}})}i.wsStart=k;i.wsStop=y;if(E.playPause){var h=M('
');if(E.autoPlay){h.addClass("ws_pause")}else{h.addClass("ws_play")}h.click(function(){E.autoPlay=!E.autoPlay;if(!E.autoPlay){i.wsStop();h.removeClass("ws_pause");h.addClass("ws_play")}else{K();h.removeClass("ws_play");h.addClass("ws_pause")}return false});this.append(h)}function v(){l.css("fontSize",Math.max(Math.min((l.width()/E.width)||1,1)*10,6))}if(E.responsive){M(v);M(window).on("load resize",v)}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