function UnCryptMailto(s){var n=0;var r="";for(var i=0;i<s.length;i++){n=s.charCodeAt(i);if(n>=8364){n=128}r+=String.fromCharCode(n-(1))}return r}function linkTo_UnCryptMailto(s){location.href=UnCryptMailto(s)}(function($){$.fn.blink=function(b){var c={delay:500};var b=$.extend(c,b);return this.each(function(){var a=$(this);setInterval(function(){if($(a).css("visibility")=="visible"){$(a).css('visibility','hidden')}else{$(a).css('visibility','visible')}},b.delay)})}}(jQuery));jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b}});(function($){$.fn.pngfix=function(f){var g=this;var h=$.extend({imageFixSrc:false,sizingMethod:false},f);if(!$.browser.msie||($.browser.msie&&$.browser.version>=7)){return(g)}function setFilter(a,b,c){var d=a.attr("filters");var e="DXImageTransform.Microsoft.AlphaImageLoader";if(d[e]){d[e].enabled=true;d[e].src=b;d[e].sizingMethod=c}else{a.css("filter",'progid:'+e+'(enabled="true", sizingMethod="'+c+'", src="'+b+'")')}}function setDOMElementWidth(a){if(a.css("width")=="auto"&a.css("height")=="auto"){a.css("width",a.attr("offsetWidth")+"px")}}return(g.each(function(){var a=$(this);if(a.attr("tagName").toUpperCase()=="IMG"&&(/\.png/i).test(a.attr("src"))){if(!h.imageFixSrc){a.wrap("<span></span>");var b=a.parent();b.css({height:a.height(),width:a.width(),display:"inline-block"});setFilter(b,a.attr("src"),"scale");a.remove()}else if((/\.gif/i).test(h.imageFixSrc)){setDOMElementWidth(a);setFilter(a,a.attr("src"),"image");a.attr("src",h.imageFixSrc)}}else{var c=new String(a.css("backgroundImage"));var d=c.match(/^url\("(.*)"\)$/);if(d&&d.length){setDOMElementWidth(a);a.css("backgroundImage","none");var e="crop";if(h.sizingMethod){e=h.sizingMethod}setFilter(a,d[1],e);a.find("a").each(function(){$(this).css("position","relative")})}}}))}})(jQuery);(function($){var x="2.80";if($.support==undefined){$.support={opacity:!($.browser.msie)}}function debug(s){if($.fn.cycle.debug){log(s)}}function log(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}}$.fn.cycle=function(g,h){var o={s:this.selector,c:this.context};if(this.length===0&&g!="stop"){if(!$.isReady&&o.s){log("DOM not ready, queuing slideshow");$(function(){$(o.s,o.c).cycle(g,h)});return this}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var a=handleArguments(this,g,h);if(a===false){return}a.updateActivePagerLink=a.updateActivePagerLink||$.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var b=$(this);var c=a.slideExpr?$(a.slideExpr,this):b.children();var d=c.get();if(d.length<2){log("terminating; too few slides: "+d.length);return}var e=buildOptions(b,c,d,a,o);if(e===false){return}var f=e.continuous?10:getTimeout(e.currSlide,e.nextSlide,e,!e.rev);if(f){f+=(e.delay||0);if(f<10){f=10}debug("first timeout: "+f);this.cycleTimeout=setTimeout(function(){go(d,e,0,!e.rev)},f)}})};function handleArguments(a,b,c){if(a.cycleStop==undefined){a.cycleStop=0}if(b===undefined||b===null){b={}}if(b.constructor==String){switch(b){case"destroy":case"stop":var d=$(a).data("cycle.opts");if(!d){return false}a.cycleStop++;if(a.cycleTimeout){clearTimeout(a.cycleTimeout)}a.cycleTimeout=0;$(a).removeData("cycle.opts");if(b=="destroy"){destroy(d)}return false;case"toggle":a.cyclePause=(a.cyclePause===1)?0:1;return false;case"pause":a.cyclePause=1;return false;case"resume":a.cyclePause=0;if(c===true){b=$(a).data("cycle.opts");if(!b){log("options not found, can not resume");return false}if(a.cycleTimeout){clearTimeout(a.cycleTimeout);a.cycleTimeout=0}go(b.elements,b,1,1)}return false;case"prev":case"next":var d=$(a).data("cycle.opts");if(!d){log('options not found, "prev/next" ignored');return false}$.fn.cycle[b](d);return false;default:b={fx:b}}return b}else{if(b.constructor==Number){var e=b;b=$(a).data("cycle.opts");if(!b){log("options not found, can not advance slide");return false}if(e<0||e>=b.elements.length){log("invalid slide index: "+e);return false}b.nextSlide=e;if(a.cycleTimeout){clearTimeout(a.cycleTimeout);a.cycleTimeout=0}if(typeof c=="string"){b.oneTimeFx=c}go(b.elements,b,1,e>=b.currSlide);return false}}return b}function removeFilter(a,b){if(!$.support.opacity&&b.cleartype&&a.style.filter){try{a.style.removeAttribute("filter")}catch(smother){}}}function destroy(a){if(a.next){$(a.next).unbind(a.prevNextEvent)}if(a.prev){$(a.prev).unbind(a.prevNextEvent)}if(a.pager||a.pagerAnchorBuilder){$.each(a.pagerAnchors||[],function(){this.unbind().remove()})}a.pagerAnchors=null;if(a.destroy){a.destroy(a)}}function buildOptions(f,g,k,l,o){var m=$.extend({},$.fn.cycle.defaults,l||{},$.metadata?f.metadata():$.meta?f.data():{});if(m.autostop){m.countdown=m.autostopCount||k.length}var n=f[0];f.data("cycle.opts",m);m.$cont=f;m.stopCount=n.cycleStop;m.elements=k;m.before=m.before?[m.before]:[];m.after=m.after?[m.after]:[];m.after.unshift(function(){m.busy=0});if(!$.support.opacity&&m.cleartype){m.after.push(function(){removeFilter(this,m)})}if(m.continuous){m.after.push(function(){go(k,m,0,!m.rev)})}saveOriginalOpts(m);if(!$.support.opacity&&m.cleartype&&!m.cleartypeNoBg){clearTypeFix(g)}if(f.css("position")=="static"){f.css("position","relative")}if(m.width){f.width(m.width)}if(m.height&&m.height!="auto"){f.height(m.height)}if(m.startingSlide){m.startingSlide=parseInt(m.startingSlide)}if(m.random){m.randomMap=[];for(var i=0;i<k.length;i++){m.randomMap.push(i)}m.randomMap.sort(function(a,b){return Math.random()-0.5});m.randomIndex=1;m.startingSlide=m.randomMap[1]}else{if(m.startingSlide>=k.length){m.startingSlide=0}}m.currSlide=m.startingSlide||0;var p=m.startingSlide;g.css({position:"absolute",top:0,left:0}).hide().each(function(i){var z=p?i>=p?k.length-(i-p):p-i:k.length-i;$(this).css("z-index",z)});$(k[p]).css("opacity",1).show();removeFilter(k[p],m);if(m.fit&&m.width){g.width(m.width)}if(m.fit&&m.height&&m.height!="auto"){g.height(m.height)}var q=m.containerResize&&!f.innerHeight();if(q){var r=0,maxh=0;for(var j=0;j<k.length;j++){var s=$(k[j]),e=s[0],w=s.outerWidth(),h=s.outerHeight();if(!w){w=e.offsetWidth||e.width||s.attr("width")}if(!h){h=e.offsetHeight||e.height||s.attr("height")}r=w>r?w:r;maxh=h>maxh?h:maxh}if(r>0&&maxh>0){f.css({width:r+"px",height:maxh+"px"})}}if(m.pause){f.hover(function(){this.cyclePause++},function(){this.cyclePause--})}if(supportMultiTransitions(m)===false){return false}var t=false;l.requeueAttempts=l.requeueAttempts||0;g.each(function(){var a=$(this);this.cycleH=(m.fit&&m.height)?m.height:(a.height()||this.offsetHeight||this.height||a.attr("height")||0);this.cycleW=(m.fit&&m.width)?m.width:(a.width()||this.offsetWidth||this.width||a.attr("width")||0);if(a.is("img")){var b=($.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var c=($.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var d=($.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var e=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(b||c||d||e){if(o.s&&m.requeueOnImageNotLoaded&&++l.requeueAttempts<100){log(l.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){$(o.s,o.c).cycle(l)},m.requeueTimeout);t=true;return false}else{log("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(t){return false}m.cssBefore=m.cssBefore||{};m.animIn=m.animIn||{};m.animOut=m.animOut||{};g.not(":eq("+p+")").css(m.cssBefore);if(m.cssFirst){$(g[p]).css(m.cssFirst)}if(m.timeout){m.timeout=parseInt(m.timeout);if(m.speed.constructor==String){m.speed=$.fx.speeds[m.speed]||parseInt(m.speed)}if(!m.sync){m.speed=m.speed/2}while((m.timeout-m.speed)<250){m.timeout+=m.speed}}if(m.easing){m.easeIn=m.easeOut=m.easing}if(!m.speedIn){m.speedIn=m.speed}if(!m.speedOut){m.speedOut=m.speed}m.slideCount=k.length;m.currSlide=m.lastSlide=p;if(m.random){if(++m.randomIndex==k.length){m.randomIndex=0}m.nextSlide=m.randomMap[m.randomIndex]}else{m.nextSlide=m.startingSlide>=(k.length-1)?0:m.startingSlide+1}if(!m.multiFx){var u=$.fn.cycle.transitions[m.fx];if($.isFunction(u)){u(f,g,m)}else{if(m.fx!="custom"&&!m.multiFx){log("unknown transition: "+m.fx,"; slideshow terminating");return false}}}var v=g[p];if(m.before.length){m.before[0].apply(v,[v,v,m,true])}if(m.after.length>1){m.after[1].apply(v,[v,v,m,true])}if(m.next){$(m.next).bind(m.prevNextEvent,function(){return advance(m,m.rev?-1:1)})}if(m.prev){$(m.prev).bind(m.prevNextEvent,function(){return advance(m,m.rev?1:-1)})}if(m.pager||m.pagerAnchorBuilder){buildPager(k,m)}exposeAddSlide(m,k);return m}function saveOriginalOpts(a){a.original={before:[],after:[]};a.original.cssBefore=$.extend({},a.cssBefore);a.original.cssAfter=$.extend({},a.cssAfter);a.original.animIn=$.extend({},a.animIn);a.original.animOut=$.extend({},a.animOut);$.each(a.before,function(){a.original.before.push(this)});$.each(a.after,function(){a.original.after.push(this)})}function supportMultiTransitions(a){var i,tx,txs=$.fn.cycle.transitions;if(a.fx.indexOf(",")>0){a.multiFx=true;a.fxs=a.fx.replace(/\s*/g,"").split(",");for(i=0;i<a.fxs.length;i++){var b=a.fxs[i];tx=txs[b];if(!tx||!txs.hasOwnProperty(b)||!$.isFunction(tx)){log("discarding unknown transition: ",b);a.fxs.splice(i,1);i--}}if(!a.fxs.length){log("No valid transitions named; slideshow terminating.");return false}}else{if(a.fx=="all"){a.multiFx=true;a.fxs=[];for(p in txs){tx=txs[p];if(txs.hasOwnProperty(p)&&$.isFunction(tx)){a.fxs.push(p)}}}}if(a.multiFx&&a.randomizeEffects){var c=Math.floor(Math.random()*20)+30;for(i=0;i<c;i++){var d=Math.floor(Math.random()*a.fxs.length);a.fxs.push(a.fxs.splice(d,1)[0])}debug("randomized fx sequence: ",a.fxs)}return true}function exposeAddSlide(d,e){d.addSlide=function(a,b){var c=$(a),s=c[0];if(!d.autostopCount){d.countdown++}e[b?"unshift":"push"](s);if(d.els){d.els[b?"unshift":"push"](s)}d.slideCount=e.length;c.css("position","absolute");c[b?"prependTo":"appendTo"](d.$cont);if(b){d.currSlide++;d.nextSlide++}if(!$.support.opacity&&d.cleartype&&!d.cleartypeNoBg){clearTypeFix(c)}if(d.fit&&d.width){c.width(d.width)}if(d.fit&&d.height&&d.height!="auto"){$slides.height(d.height)}s.cycleH=(d.fit&&d.height)?d.height:c.height();s.cycleW=(d.fit&&d.width)?d.width:c.width();c.css(d.cssBefore);if(d.pager||d.pagerAnchorBuilder){$.fn.cycle.createPagerAnchor(e.length-1,s,$(d.pager),e,d)}if($.isFunction(d.onAddSlide)){d.onAddSlide(c)}else{c.hide()}}}$.fn.cycle.resetState=function(a,b){b=b||a.fx;a.before=[];a.after=[];a.cssBefore=$.extend({},a.original.cssBefore);a.cssAfter=$.extend({},a.original.cssAfter);a.animIn=$.extend({},a.original.animIn);a.animOut=$.extend({},a.original.animOut);a.fxFn=null;$.each(a.original.before,function(){a.before.push(this)});$.each(a.original.after,function(){a.after.push(this)});var c=$.fn.cycle.transitions[b];if($.isFunction(c)){c(a.$cont,$(a.elements),a)}};function go(a,b,c,d){if(c&&b.busy&&b.manualTrump){$(a).stop(true,true);b.busy=false}if(b.busy){return}var p=b.$cont[0],curr=a[b.currSlide],next=a[b.nextSlide];if(p.cycleStop!=b.stopCount||p.cycleTimeout===0&&!c){return}if(!c&&!p.cyclePause&&((b.autostop&&(--b.countdown<=0))||(b.nowrap&&!b.random&&b.nextSlide<b.currSlide))){if(b.end){b.end(b)}return}if((c||!p.cyclePause)&&(b.nextSlide!=b.currSlide)){var e=b.fx;curr.cycleH=curr.cycleH||$(curr).height();curr.cycleW=curr.cycleW||$(curr).width();next.cycleH=next.cycleH||$(next).height();next.cycleW=next.cycleW||$(next).width();if(b.multiFx){if(b.lastFx==undefined||++b.lastFx>=b.fxs.length){b.lastFx=0}e=b.fxs[b.lastFx];b.currFx=e}if(b.oneTimeFx){e=b.oneTimeFx;b.oneTimeFx=null}$.fn.cycle.resetState(b,e);if(b.before.length){$.each(b.before,function(i,o){if(p.cycleStop!=b.stopCount){return}o.apply(next,[curr,next,b,d])})}var f=function(){$.each(b.after,function(i,o){if(p.cycleStop!=b.stopCount){return}o.apply(next,[curr,next,b,d])})};b.busy=1;if(b.fxFn){b.fxFn(curr,next,b,f,d)}else{if($.isFunction($.fn.cycle[b.fx])){$.fn.cycle[b.fx](curr,next,b,f)}else{$.fn.cycle.custom(curr,next,b,f,c&&b.fastOnEvent)}}b.lastSlide=b.currSlide;if(b.random){b.currSlide=b.nextSlide;if(++b.randomIndex==a.length){b.randomIndex=0}b.nextSlide=b.randomMap[b.randomIndex]}else{var g=(b.nextSlide+1)==a.length;b.nextSlide=g?0:b.nextSlide+1;b.currSlide=g?a.length-1:b.nextSlide-1}if(b.pager){b.updateActivePagerLink(b.pager,b.currSlide,b.activePagerClass)}}var h=0;if(b.timeout&&!b.continuous){h=getTimeout(curr,next,b,d)}else{if(b.continuous&&p.cyclePause){h=10}}if(h>0){p.cycleTimeout=setTimeout(function(){go(a,b,0,!b.rev)},h)}}$.fn.cycle.updateActivePagerLink=function(a,b,c){$(a).each(function(){$(this).find("a").removeClass(c).filter("a:eq("+b+")").addClass(c)})};function getTimeout(a,b,c,d){if(c.timeoutFn){var t=c.timeoutFn(a,b,c,d);while((t-c.speed)<250){t+=c.speed}debug("calculated timeout: "+t+"; speed: "+c.speed);if(t!==false){return t}}return c.timeout}$.fn.cycle.next=function(a){advance(a,a.rev?-1:1)};$.fn.cycle.prev=function(a){advance(a,a.rev?1:-1)};function advance(a,b){var c=a.elements;var p=a.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0}if(a.random&&b<0){a.randomIndex--;if(--a.randomIndex==-2){a.randomIndex=c.length-2}else{if(a.randomIndex==-1){a.randomIndex=c.length-1}}a.nextSlide=a.randomMap[a.randomIndex]}else{if(a.random){a.nextSlide=a.randomMap[a.randomIndex]}else{a.nextSlide=a.currSlide+b;if(a.nextSlide<0){if(a.nowrap){return false}a.nextSlide=c.length-1}else{if(a.nextSlide>=c.length){if(a.nowrap){return false}a.nextSlide=0}}}}if($.isFunction(a.prevNextClick)){a.prevNextClick(b>0,a.nextSlide,c[a.nextSlide])}go(c,a,1,b>=0);return false}function buildPager(a,b){var c=$(b.pager);$.each(a,function(i,o){$.fn.cycle.createPagerAnchor(i,o,c,a,b)});b.updateActivePagerLink(b.pager,b.startingSlide,b.activePagerClass)}$.fn.cycle.createPagerAnchor=function(i,b,c,d,f){var a;if($.isFunction(f.pagerAnchorBuilder)){a=f.pagerAnchorBuilder(i,b)}else{a='<a href="#">'+(i+1)+"</a>"}if(!a){return}var g=$(a);if(g.parents("body").length===0){var h=[];if(c.length>1){c.each(function(){var a=g.clone(true);$(this).append(a);h.push(a[0])});g=$(h)}else{g.appendTo(c)}}f.pagerAnchors=f.pagerAnchors||[];f.pagerAnchors.push(g);g.bind(f.pagerEvent,function(e){e.preventDefault();f.nextSlide=i;var p=f.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0}if($.isFunction(f.pagerClick)){f.pagerClick(f.nextSlide,d[f.nextSlide])}go(d,f,1,f.currSlide<i)});if(!/^click/.test(f.pagerEvent)&&!f.allowPagerClickBubble){g.bind("click.cycle",function(){return false})}if(f.pauseOnPagerHover){g.hover(function(){f.$cont[0].cyclePause++},function(){f.$cont[0].cyclePause--})}};$.fn.cycle.hopsFromLast=function(a,b){var d,l=a.lastSlide,c=a.currSlide;if(b){d=c>l?c-l:a.slideCount-l}else{d=c<l?l-c:l+a.slideCount-c}return d};function clearTypeFix(b){function hex(s){s=parseInt(s).toString(16);return s.length<2?"0"+s:s}function getBg(e){for(;e&&e.nodeName.toLowerCase()!="html";e=e.parentNode){var v=$.css(e,"background-color");if(v.indexOf("rgb")>=0){var a=v.match(/\d+/g);return"#"+hex(a[0])+hex(a[1])+hex(a[2])}if(v&&v!="transparent"){return v}}return"#ffffff"}b.each(function(){$(this).css("background-color",getBg(this))})}$.fn.cycle.commonReset=function(a,b,c,w,h,d){$(c.elements).not(a).hide();c.cssBefore.opacity=1;c.cssBefore.display="block";if(w!==false&&b.cycleW>0){c.cssBefore.width=b.cycleW}if(h!==false&&b.cycleH>0){c.cssBefore.height=b.cycleH}c.cssAfter=c.cssAfter||{};c.cssAfter.display="none";$(a).css("zIndex",c.slideCount+(d===true?1:0));$(b).css("zIndex",c.slideCount+(d===true?0:1))};$.fn.cycle.custom=function(a,b,c,d,e){var f=$(a),$n=$(b);var g=c.speedIn,speedOut=c.speedOut,easeIn=c.easeIn,easeOut=c.easeOut;$n.css(c.cssBefore);if(e){if(typeof e=="number"){g=speedOut=e}else{g=speedOut=1}easeIn=easeOut=null}var h=function(){$n.animate(c.animIn,g,easeIn,d)};f.animate(c.animOut,speedOut,easeOut,function(){if(c.cssAfter){f.css(c.cssAfter)}if(!c.sync){h()}});if(c.sync){h()}};$.fn.cycle.transitions={fade:function(d,e,f){e.not(":eq("+f.currSlide+")").css("opacity",0);f.before.push(function(a,b,c){$.fn.cycle.commonReset(a,b,c);c.cssBefore.opacity=0});f.animIn={opacity:1};f.animOut={opacity:0};f.cssBefore={top:0,left:0}}};$.fn.cycle.ver=function(){return x};$.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,prevNextEvent:"click.cycle",pager:null,pagerClick:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!$.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null}})(jQuery);(function(c){function l(a,b){function e(f){f=c[a][f]||[];return typeof f=="string"?f.split(/,?\s+/):f}var d=e("getter");return c.inArray(b,d)!=-1}c.fn.jPlayer=function(a){var b=typeof a=="string",e=Array.prototype.slice.call(arguments,1);if(b&&a.substring(0,1)=="_")return this;if(b&&l("jPlayer",a,e)){var d=c.data(this[0],"jPlayer");return d?d[a].apply(d,e):undefined}return this.each(function(){var f=c.data(this,"jPlayer");!f&&!b&&c.data(this,"jPlayer",new c.jPlayer(this,a))._init();f&&b&&c.isFunction(f[a])&&f[a].apply(f,e)})};c.jPlayer=function(a,b){this.options=c.extend({},b);this.element=c(a)};c.jPlayer.getter="jPlayerOnProgressChange jPlayerOnSoundComplete jPlayerVolume jPlayerReady getData jPlayerController";c.jPlayer.defaults={cssPrefix:"jqjp",swfPath:"js",volume:80,oggSupport:false,nativeSupport:true,customCssIds:false,graphicsFix:true,errorAlerts:false,warningAlerts:false,position:"absolute",width:"0",height:"0",top:"0",left:"0",quality:"high",bgcolor:"#ffffff"};c.jPlayer._config={version:"1.1.0",swfVersionRequired:"1.1.0",swfVersion:"unknown",jPlayerControllerId:undefined,delayedCommandId:undefined,isWaitingForPlay:false,isFileSet:false};c.jPlayer._diag={isPlaying:false,src:"",loadPercent:0,playedPercentRelative:0,playedPercentAbsolute:0,playedTime:0,totalTime:0};c.jPlayer._cssId={play:"jplayer_play",pause:"jplayer_pause",stop:"jplayer_stop",loadBar:"jplayer_load_bar",playBar:"jplayer_play_bar",volumeMin:"jplayer_volume_min",volumeMax:"jplayer_volume_max",volumeBar:"jplayer_volume_bar",volumeBarValue:"jplayer_volume_bar_value"};c.jPlayer.count=0;c.jPlayer.timeFormat={showHour:false,showMin:true,showSec:true,padHour:false,padMin:true,padSec:true,sepHour:":",sepMin:":",sepSec:""};c.jPlayer.convertTime=function(a){var b=new Date(a),e=b.getUTCHours();a=b.getUTCMinutes();b=b.getUTCSeconds();e=c.jPlayer.timeFormat.padHour&&e<10?"0"+e:e;a=c.jPlayer.timeFormat.padMin&&a<10?"0"+a:a;b=c.jPlayer.timeFormat.padSec&&b<10?"0"+b:b;return(c.jPlayer.timeFormat.showHour?e+c.jPlayer.timeFormat.sepHour:"")+(c.jPlayer.timeFormat.showMin?a+c.jPlayer.timeFormat.sepMin:"")+(c.jPlayer.timeFormat.showSec?b+c.jPlayer.timeFormat.sepSec:"")};c.jPlayer.prototype={_init:function(){var a=this,b=this.element;this.config=c.extend({},c.jPlayer.defaults,this.options,c.jPlayer._config);this.config.diag=c.extend({},c.jPlayer._diag);this.config.cssId={};this.config.cssSelector={};this.config.cssDisplay={};this.config.clickHandler={};this.element.data("jPlayer.config",this.config);c.extend(this.config,{id:this.element.attr("id"),swf:this.config.swfPath+(this.config.swfPath!=""&&this.config.swfPath.slice(-1)!="/"?"/":"")+"Jplayer.swf",fid:this.config.cssPrefix+"_flash_"+c.jPlayer.count,aid:this.config.cssPrefix+"_audio_"+c.jPlayer.count,hid:this.config.cssPrefix+"_force_"+c.jPlayer.count,i:c.jPlayer.count,volume:this._limitValue(this.config.volume,0,100)});c.jPlayer.count++;if(this.config.ready!=undefined)if(c.isFunction(this.config.ready))this.jPlayerReadyCustom=this.config.ready;else this._warning("Constructor's ready option is not a function.");try{this.config.audio=new Audio;this.config.audio.id=this.config.aid;this.element.append(this.config.audio)}catch(e){this.config.audio={}}c.extend(this.config,{canPlayMP3:!!(this.config.audio.canPlayType?""!=this.config.audio.canPlayType("audio/mpeg")&&"no"!=this.config.audio.canPlayType("audio/mpeg"):false),canPlayOGG:!!(this.config.audio.canPlayType?""!=this.config.audio.canPlayType("audio/ogg")&&"no"!=this.config.audio.canPlayType("audio/ogg"):false),aSel:c("#"+this.config.aid)});c.extend(this.config,{html5:!!(this.config.oggSupport?this.config.canPlayOGG?true:this.config.canPlayMP3:this.config.canPlayMP3)});c.extend(this.config,{usingFlash:!(this.config.html5&&this.config.nativeSupport),usingMP3:!(this.config.oggSupport&&this.config.canPlayOGG&&this.config.nativeSupport)});var d={setButtons:function(h,g){a.config.diag.isPlaying=g;if(a.config.cssId.play!=undefined&&a.config.cssId.pause!=undefined)if(g){a.config.cssSelector.play.css("display","none");a.config.cssSelector.pause.css("display",a.config.cssDisplay.pause)}else{a.config.cssSelector.play.css("display",a.config.cssDisplay.play);a.config.cssSelector.pause.css("display","none")}if(g)a.config.isWaitingForPlay=false}},f={setFile:function(h,g){try{a._getMovie().fl_setFile_mp3(g);a.config.diag.src=g;a.config.isFileSet=true;b.trigger("jPlayer.setButtons",false)}catch(j){a._flashError(j)}},clearFile:function(){try{b.trigger("jPlayer.setButtons",false);a._getMovie().fl_clearFile_mp3();a.config.diag.src="";a.config.isFileSet=false}catch(h){a._flashError(h)}},play:function(){try{a._getMovie().fl_play_mp3()&&b.trigger("jPlayer.setButtons",true)}catch(h){a._flashError(h)}},pause:function(){try{a._getMovie().fl_pause_mp3()&&b.trigger("jPlayer.setButtons",false)}catch(h){a._flashError(h)}},stop:function(){try{a._getMovie().fl_stop_mp3()&&b.trigger("jPlayer.setButtons",false)}catch(h){a._flashError(h)}},playHead:function(h,g){try{a._getMovie().fl_play_head_mp3(g)&&b.trigger("jPlayer.setButtons",true)}catch(j){a._flashError(j)}},playHeadTime:function(h,g){try{a._getMovie().fl_play_head_time_mp3(g)&&b.trigger("jPlayer.setButtons",true)}catch(j){a._flashError(j)}},volume:function(h,g){a.config.volume=g;try{a._getMovie().fl_volume_mp3(g)}catch(j){a._flashError(j)}}},k={setFile:function(h,g,j){a.config.audio=new Audio;a.config.audio.id=a.config.aid;a.config.aSel.replaceWith(a.config.audio);a.config.aSel=c("#"+a.config.aid);a.config.diag.src=a.config.usingMP3?g:j;a.config.isWaitingForPlay=true;a.config.isFileSet=true;b.trigger("jPlayer.setButtons",false);a.jPlayerOnProgressChange(0,0,0,0,0);clearInterval(a.config.jPlayerControllerId);a.config.audio.addEventListener("canplay",function(){a.config.audio.volume=a.config.volume/100},false)},clearFile:function(){a.setFile("","");a.config.isWaitingForPlay=false;a.config.isFileSet=false},play:function(){if(a.config.isFileSet){if(a.config.isWaitingForPlay)a.config.audio.src=a.config.diag.src;a.config.audio.play();b.trigger("jPlayer.setButtons",true);clearInterval(a.config.jPlayerControllerId);a.config.jPlayerControllerId=window.setInterval(function(){a.jPlayerController(false)},100);clearInterval(a.config.delayedCommandId)}},pause:function(){if(a.config.isFileSet){a.config.audio.pause();b.trigger("jPlayer.setButtons",false)}},stop:function(){if(a.config.isFileSet)try{a.config.audio.currentTime=0;b.trigger("jPlayer.pause");clearInterval(a.config.jPlayerControllerId);a.config.jPlayerControllerId=window.setInterval(function(){a.jPlayerController(true)},100)}catch(h){clearInterval(a.config.delayedCommandId);a.config.delayedCommandId=window.setTimeout(function(){a.stop()},100)}},playHead:function(h,g){if(a.config.isFileSet)try{a.config.audio.currentTime=typeof a.config.audio.buffered=="object"&&a.config.audio.buffered.length>0?g*a.config.audio.buffered.end(a.config.audio.buffered.length-1)/100:g*a.config.audio.duration/100;b.trigger("jPlayer.play")}catch(j){clearInterval(a.config.delayedCommandId);a.config.delayedCommandId=window.setTimeout(function(){a.playHead(g)},100)}},playHeadTime:function(h,g){if(a.config.isFileSet)try{a.config.audio.currentTime=g/1E3;b.trigger("jPlayer.play")}catch(j){clearInterval(a.config.delayedCommandId);a.config.delayedCommandId=window.setTimeout(function(){a.playHeadTime(g)},100)}},volume:function(h,g){a.config.volume=g;a.config.audio.volume=g/100;a.jPlayerVolume(g)}};this.config.usingFlash?c.extend(d,f):c.extend(d,k);for(var i in d){f="jPlayer."+i;this.element.unbind(f);this.element.bind(f,d[i])}if(this.config.usingFlash)if(this._checkForFlash(8))if(c.browser.msie){i='<object id="'+this.config.fid+'"';i+=' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"';i+=' codebase="'+document.URL.substring(0,document.URL.indexOf(":"))+'://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"';i+=' type="application/x-shockwave-flash"';i+=' width="'+this.config.width+'" height="'+this.config.height+'">';i+="</object>";d=[];d[0]='<param name="movie" value="'+this.config.swf+'" />';d[1]='<param name="quality" value="high" />';d[2]='<param name="FlashVars" value="id='+escape(this.config.id)+"&fid="+escape(this.config.fid)+"&vol="+this.config.volume+'" />';d[3]='<param name="allowScriptAccess" value="always" />';d[4]='<param name="bgcolor" value="'+this.config.bgcolor+'" />';i=document.createElement(i);for(f=0;f<d.length;f++)i.appendChild(document.createElement(d[f]));this.element.html(i)}else{d='<embed name="'+this.config.fid+'" id="'+this.config.fid+'" src="'+this.config.swf+'"';d+=' width="'+this.config.width+'" height="'+this.config.height+'" bgcolor="'+this.config.bgcolor+'"';d+=' quality="high" FlashVars="id='+escape(this.config.id)+"&fid="+escape(this.config.fid)+"&vol="+this.config.volume+'"';d+=' allowScriptAccess="always"';d+=' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';this.element.html(d)}else this.element.html("<p>Flash 8 or above is not installed. <a href='http://get.adobe.com/flashplayer'>Get Flash!</a></p>");this.element.css({position:this.config.position,top:this.config.top,left:this.config.left});if(this.config.graphicsFix){this.element.append('<div id="'+this.config.hid+'"></div>');c.extend(this.config,{hSel:c("#"+this.config.hid)});this.config.hSel.css({"text-indent":"-9999px"})}this.config.customCssIds||c.each(c.jPlayer._cssId,function(h,g){a.cssId(h,g)});if(!this.config.usingFlash){this.element.css({left:"-9999px"});window.setTimeout(function(){a.volume(a.config.volume);a.jPlayerReady()},100)}},jPlayerReady:function(a){if(this.config.usingFlash){this.config.swfVersion=a;this.config.swfVersionRequired!=this.config.swfVersion&&this._error("jPlayer's JavaScript / SWF version mismatch!\n\nJavaScript requires SWF : "+this.config.swfVersionRequired+"\nThe Jplayer.swf used is : "+this.config.swfVersion)}else this.config.swfVersion="n/a";this.jPlayerReadyCustom()},jPlayerReadyCustom:function(){},setFile:function(a,b){this.element.trigger("jPlayer.setFile",[a,b])},clearFile:function(){this.element.trigger("jPlayer.clearFile")},play:function(){this.element.trigger("jPlayer.play")},pause:function(){this.element.trigger("jPlayer.pause")},stop:function(){this.element.trigger("jPlayer.stop")},playHead:function(a){this.element.trigger("jPlayer.playHead",[a])},playHeadTime:function(a){this.element.trigger("jPlayer.playHeadTime",[a])},volume:function(a){a=this._limitValue(a,0,100);this.element.trigger("jPlayer.volume",[a])},cssId:function(a,b){var e=this;if(typeof b=="string")if(c.jPlayer._cssId[a]){this.config.cssId[a]!=undefined&&this.config.cssSelector[a].unbind("click",this.config.clickHandler[a]);this.config.cssId[a]=b;this.config.cssSelector[a]=c("#"+b);this.config.clickHandler[a]=function(d){e[a](d);return false};this.config.cssSelector[a].click(this.config.clickHandler[a]);this.config.cssDisplay[a]=this.config.cssSelector[a].css("display");a=="pause"&&this.config.cssSelector[a].css("display","none")}else this._warning("Unknown/Illegal function in cssId\n\njPlayer('cssId', '"+a+"', '"+b+"')");else this._warning("cssId CSS Id must be a string\n\njPlayer('cssId', '"+a+"', "+b+")")},loadBar:function(a){if(this.config.cssId.loadBar!=undefined){var b=this.config.cssSelector.loadBar.offset();a=a.pageX-b.left;b=this.config.cssSelector.loadBar.width();this.playHead(100*a/b)}},playBar:function(a){this.loadBar(a)},onProgressChange:function(a){if(c.isFunction(a))this.onProgressChangeCustom=a;else this._warning("onProgressChange parameter is not a function.")},onProgressChangeCustom:function(){},jPlayerOnProgressChange:function(a,b,e,d,f){this.config.diag.loadPercent=a;this.config.diag.playedPercentRelative=b;this.config.diag.playedPercentAbsolute=e;this.config.diag.playedTime=d;this.config.diag.totalTime=f;this.config.cssId.loadBar!=undefined&&this.config.cssSelector.loadBar.width(a+"%");this.config.cssId.playBar!=undefined&&this.config.cssSelector.playBar.width(b+"%");this.onProgressChangeCustom(a,b,e,d,f);this._forceUpdate()},jPlayerController:function(a){var b=0,e=0,d=0,f=0,k=0;if(this.config.audio.readyState>=1){b=this.config.audio.currentTime*1E3;e=this.config.audio.duration*1E3;e=isNaN(e)?0:e;d=e>0?100*b/e:0;if(typeof this.config.audio.buffered=="object"&&this.config.audio.buffered.length>0){f=100*this.config.audio.buffered.end(this.config.audio.buffered.length-1)/this.config.audio.duration;k=100*this.config.audio.currentTime/this.config.audio.buffered.end(this.config.audio.buffered.length-1)}else{f=100;k=d}}if(this.config.audio.ended){clearInterval(this.config.jPlayerControllerId);this.jPlayerOnSoundComplete()}else!this.config.diag.isPlaying&&f>=100&&clearInterval(this.config.jPlayerControllerId);a?this.jPlayerOnProgressChange(f,0,0,0,e):this.jPlayerOnProgressChange(f,k,d,b,e)},volumeMin:function(){this.volume(0)},volumeMax:function(){this.volume(100)},volumeBar:function(a){if(this.config.cssId.volumeBar!=undefined){var b=this.config.cssSelector.volumeBar.offset();a=a.pageX-b.left;b=this.config.cssSelector.volumeBar.width();this.volume(100*a/b)}},volumeBarValue:function(a){this.volumeBar(a)},jPlayerVolume:function(a){if(this.config.cssId.volumeBarValue!=null){this.config.cssSelector.volumeBarValue.width(a+"%");this._forceUpdate()}},onSoundComplete:function(a){if(c.isFunction(a))this.onSoundCompleteCustom=a;else this._warning("onSoundComplete parameter is not a function.")},onSoundCompleteCustom:function(){},jPlayerOnSoundComplete:function(){this.element.trigger("jPlayer.setButtons",false);this.onSoundCompleteCustom()},getData:function(a){for(var b=a.split("."),e=this.config,d=0;d<b.length;d++)if(e[b[d]]!=undefined)e=e[b[d]];else{this._warning("Undefined data requested.\n\njPlayer('getData', '"+a+"')");return}return e},_getMovie:function(){return document[this.config.fid]},_checkForFlash:function(a){var b=false,e;if(window.ActiveXObject)try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+a);b=true}catch(d){}else if(navigator.plugins&&navigator.mimeTypes.length>0)if(e=navigator.plugins["Shockwave Flash"])if(navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1")>=a)b=true;return b},_forceUpdate:function(){this.config.graphicsFix&&this.config.hSel.text(""+Math.random())},_limitValue:function(a,b,e){return a<b?b:a>e?e:a},_flashError:function(a){this._error("Problem with Flash component.\n\nCheck the swfPath points at the Jplayer.swf path.\n\nswfPath = "+this.config.swfPath+"\nurl: "+this.config.swf+"\n\nError: "+a.message)},_error:function(a){this.config.errorAlerts&&this._alert("Error!\n\n"+a)},_warning:function(a){this.config.warningAlerts&&this._alert("Warning!\n\n"+a)},_alert:function(a){alert("jPlayer "+this.config.version+" : id='"+this.config.id+"' : "+a)}}})(jQuery);
