(function(b){function f(a){b.fn.cycle.debug&&o(a)}function o(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function c(a,d,h){function i(e,u,s){if(!e&&u===true){e=b(s).data("cycle.opts");if(!e){o("options not found, can not resume");return false}if(s.cycleTimeout){clearTimeout(s.cycleTimeout);s.cycleTimeout=0}z(e.elements,e,1,!e.backwards)}}if(a.cycleStop==undefined)a.cycleStop=0;if(d===undefined||d===null)d={};if(d.constructor==String){switch(d){case "destroy":case "stop":h=
b(a).data("cycle.opts");if(!h)return false;a.cycleStop++;a.cycleTimeout&&clearTimeout(a.cycleTimeout);a.cycleTimeout=0;b(a).removeData("cycle.opts");d=="destroy"&&j(h);return false;case "toggle":a.cyclePause=a.cyclePause===1?0:1;i(a.cyclePause,h,a);return false;case "pause":a.cyclePause=1;return false;case "resume":a.cyclePause=0;i(false,h,a);return false;case "prev":case "next":h=b(a).data("cycle.opts");if(!h){o('options not found, "prev/next" ignored');return false}b.fn.cycle[d](h);return false;
default:d={fx:d}}return d}else if(d.constructor==Number){var m=d;d=b(a).data("cycle.opts");if(!d){o("options not found, can not advance slide");return false}if(m<0||m>=d.elements.length){o("invalid slide index: "+m);return false}d.nextSlide=m;if(a.cycleTimeout){clearTimeout(a.cycleTimeout);a.cycleTimeout=0}if(typeof h=="string")d.oneTimeFx=h;z(d.elements,d,1,m>=d.currSlide);return false}return d}function k(a,d){if(!b.support.opacity&&d.cleartype&&a.style.filter)try{a.style.removeAttribute("filter")}catch(h){}}
function j(a){a.next&&b(a.next).unbind(a.prevNextEvent);a.prev&&b(a.prev).unbind(a.prevNextEvent);if(a.pager||a.pagerAnchorBuilder)b.each(a.pagerAnchors||[],function(){this.unbind().remove()});a.pagerAnchors=null;a.destroy&&a.destroy(a)}function g(a,d,h,i,m){var e=b.extend({},b.fn.cycle.defaults,i||{},b.metadata?a.metadata():b.meta?a.data():{});if(e.autostop)e.countdown=e.autostopCount||h.length;var u=a[0];a.data("cycle.opts",e);e.$cont=a;e.stopCount=u.cycleStop;e.elements=h;e.before=e.before?[e.before]:
[];e.after=e.after?[e.after]:[];!b.support.opacity&&e.cleartype&&e.after.push(function(){k(this,e)});e.continuous&&e.after.push(function(){z(h,e,0,!e.backwards)});r(e);!b.support.opacity&&e.cleartype&&!e.cleartypeNoBg&&K(d);a.css("position")=="static"&&a.css("position","relative");e.width&&a.width(e.width);e.height&&e.height!="auto"&&a.height(e.height);if(e.startingSlide)e.startingSlide=parseInt(e.startingSlide);else if(e.backwards)e.startingSlide=h.length-1;if(e.random){e.randomMap=[];for(u=0;u<
h.length;u++)e.randomMap.push(u);e.randomMap.sort(function(){return Math.random()-0.5});e.randomIndex=1;e.startingSlide=e.randomMap[1]}else if(e.startingSlide>=h.length)e.startingSlide=0;e.currSlide=e.startingSlide||0;var s=e.startingSlide;d.css({position:"absolute",top:0,left:0}).hide().each(function(q){q=e.backwards?s?q<=s?h.length+(q-s):s-q:h.length-q:s?q>=s?h.length-(q-s):s-q:h.length-q;b(this).css("z-index",q)});b(h[s]).css("opacity",1).show();k(h[s],e);e.fit&&e.width&&d.width(e.width);e.fit&&
e.height&&e.height!="auto"&&d.height(e.height);if(e.containerResize&&!a.innerHeight()){for(var A=u=0,C=0;C<h.length;C++){var D=b(h[C]),F=D[0],I=D.outerWidth(),l=D.outerHeight();I||(I=F.offsetWidth||F.width||D.attr("width"));l||(l=F.offsetHeight||F.height||D.attr("height"));u=I>u?I:u;A=l>A?l:A}u>0&&A>0&&a.css({width:u+"px",height:A+"px"})}e.pause&&a.hover(function(){this.cyclePause++},function(){this.cyclePause--});if(v(e)===false)return false;var n=false;i.requeueAttempts=i.requeueAttempts||0;d.each(function(){var q=
b(this);this.cycleH=e.fit&&e.height?e.height:q.height()||this.offsetHeight||this.height||q.attr("height")||0;this.cycleW=e.fit&&e.width?e.width:q.width()||this.offsetWidth||this.width||q.attr("width")||0;if(q.is("img")){q=b.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete;var y=b.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,B=this.cycleH==0&&this.cycleW==0&&!this.complete;if(b.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete||
q||y||B)if(m.s&&e.requeueOnImageNotLoaded&&++i.requeueAttempts<100){o(i.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){b(m.s,m.c).cycle(i)},e.requeueTimeout);n=true;return false}else o("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}return true});if(n)return false;e.cssBefore=e.cssBefore||{};e.cssAfter=e.cssAfter||{};e.cssFirst=e.cssFirst||{};e.animIn=e.animIn||{};e.animOut=e.animOut||{};d.not(":eq("+
s+")").css(e.cssBefore);b(d[s]).css(e.cssFirst);if(e.timeout){e.timeout=parseInt(e.timeout);if(e.speed.constructor==String)e.speed=b.fx.speeds[e.speed]||parseInt(e.speed);e.sync||(e.speed/=2);for(u=e.fx=="none"?0:e.fx=="shuffle"?500:250;e.timeout-e.speed<u;)e.timeout+=e.speed}if(e.easing)e.easeIn=e.easeOut=e.easing;if(!e.speedIn)e.speedIn=e.speed;if(!e.speedOut)e.speedOut=e.speed;e.slideCount=h.length;e.currSlide=e.lastSlide=s;if(e.random){if(++e.randomIndex==h.length)e.randomIndex=0;e.nextSlide=
e.randomMap[e.randomIndex]}else e.nextSlide=e.backwards?e.startingSlide==0?h.length-1:e.startingSlide-1:e.startingSlide>=h.length-1?0:e.startingSlide+1;if(!e.multiFx){u=b.fn.cycle.transitions[e.fx];if(b.isFunction(u))u(a,d,e);else if(e.fx!="custom"&&!e.multiFx){o("unknown transition: "+e.fx,"; slideshow terminating");return false}}a=d[s];e.before.length&&e.before[0].apply(a,[a,a,e,true]);e.after.length&&e.after[0].apply(a,[a,a,e,true]);e.next&&b(e.next).bind(e.prevNextEvent,function(){return x(e,
1)});e.prev&&b(e.prev).bind(e.prevNextEvent,function(){return x(e,0)});if(e.pager||e.pagerAnchorBuilder)H(h,e);w(e,h);return e}function r(a){a.original={before:[],after:[]};a.original.cssBefore=b.extend({},a.cssBefore);a.original.cssAfter=b.extend({},a.cssAfter);a.original.animIn=b.extend({},a.animIn);a.original.animOut=b.extend({},a.animOut);b.each(a.before,function(){a.original.before.push(this)});b.each(a.after,function(){a.original.after.push(this)})}function v(a){var d,h,i=b.fn.cycle.transitions;
if(a.fx.indexOf(",")>0){a.multiFx=true;a.fxs=a.fx.replace(/\s*/g,"").split(",");for(d=0;d<a.fxs.length;d++){var m=a.fxs[d];h=i[m];if(!h||!i.hasOwnProperty(m)||!b.isFunction(h)){o("discarding unknown transition: ",m);a.fxs.splice(d,1);d--}}if(!a.fxs.length){o("No valid transitions named; slideshow terminating.");return false}}else if(a.fx=="all"){a.multiFx=true;a.fxs=[];for(p in i){h=i[p];i.hasOwnProperty(p)&&b.isFunction(h)&&a.fxs.push(p)}}if(a.multiFx&&a.randomizeEffects){h=Math.floor(Math.random()*
20)+30;for(d=0;d<h;d++)a.fxs.push(a.fxs.splice(Math.floor(Math.random()*a.fxs.length),1)[0]);f("randomized fx sequence: ",a.fxs)}return true}function w(a,d){a.addSlide=function(h,i){var m=b(h),e=m[0];a.autostopCount||a.countdown++;d[i?"unshift":"push"](e);if(a.els)a.els[i?"unshift":"push"](e);a.slideCount=d.length;m.css("position","absolute");m[i?"prependTo":"appendTo"](a.$cont);if(i){a.currSlide++;a.nextSlide++}!b.support.opacity&&a.cleartype&&!a.cleartypeNoBg&&K(m);a.fit&&a.width&&m.width(a.width);
a.fit&&a.height&&a.height!="auto"&&m.height(a.height);e.cycleH=a.fit&&a.height?a.height:m.height();e.cycleW=a.fit&&a.width?a.width:m.width();m.css(a.cssBefore);if(a.pager||a.pagerAnchorBuilder)b.fn.cycle.createPagerAnchor(d.length-1,e,b(a.pager),d,a);b.isFunction(a.onAddSlide)?a.onAddSlide(m):m.hide()}}function z(a,d,h,i){if(h&&d.busy&&d.manualTrump){f("manualTrump in go(), stopping active transition");b(a).stop(true,true);d.busy=0}if(d.busy)f("transition active, ignoring new tx request");else{var m=
d.$cont[0],e=a[d.currSlide],u=a[d.nextSlide];if(!(m.cycleStop!=d.stopCount||m.cycleTimeout===0&&!h))if(!h&&!m.cyclePause&&!d.bounce&&(d.autostop&&--d.countdown<=0||d.nowrap&&!d.random&&d.nextSlide<d.currSlide))d.end&&d.end(d);else{var s=false;if((h||!m.cyclePause)&&d.nextSlide!=d.currSlide){s=true;var A=d.fx;e.cycleH=e.cycleH||b(e).height();e.cycleW=e.cycleW||b(e).width();u.cycleH=u.cycleH||b(u).height();u.cycleW=u.cycleW||b(u).width();if(d.multiFx){if(d.lastFx==undefined||++d.lastFx>=d.fxs.length)d.lastFx=
0;A=d.fxs[d.lastFx];d.currFx=A}if(d.oneTimeFx){A=d.oneTimeFx;d.oneTimeFx=null}b.fn.cycle.resetState(d,A);d.before.length&&b.each(d.before,function(D,F){m.cycleStop==d.stopCount&&F.apply(u,[e,u,d,i])});var C=function(){d.busy=0;b.each(d.after,function(D,F){m.cycleStop==d.stopCount&&F.apply(u,[e,u,d,i])})};f("tx firing("+A+"); currSlide: "+d.currSlide+"; nextSlide: "+d.nextSlide);d.busy=1;if(d.fxFn)d.fxFn(e,u,d,C,i,h&&d.fastOnEvent);else b.isFunction(b.fn.cycle[d.fx])?b.fn.cycle[d.fx](e,u,d,C,i,h&&
d.fastOnEvent):b.fn.cycle.custom(e,u,d,C,i,h&&d.fastOnEvent)}if(s||d.nextSlide==d.currSlide){d.lastSlide=d.currSlide;if(d.random){d.currSlide=d.nextSlide;if(++d.randomIndex==a.length)d.randomIndex=0;d.nextSlide=d.randomMap[d.randomIndex];if(d.nextSlide==d.currSlide)d.nextSlide=d.currSlide==d.slideCount-1?0:d.currSlide+1}else if(d.backwards)if((h=d.nextSlide-1<0)&&d.bounce){d.backwards=!d.backwards;d.nextSlide=1;d.currSlide=0}else{d.nextSlide=h?a.length-1:d.nextSlide-1;d.currSlide=h?0:d.nextSlide+
1}else if((h=d.nextSlide+1==a.length)&&d.bounce){d.backwards=!d.backwards;d.nextSlide=a.length-2;d.currSlide=a.length-1}else{d.nextSlide=h?0:d.nextSlide+1;d.currSlide=h?a.length-1:d.nextSlide-1}}s&&d.pager&&d.updateActivePagerLink(d.pager,d.currSlide,d.activePagerClass);s=0;if(d.timeout&&!d.continuous)s=t(a[d.currSlide],a[d.nextSlide],d,i);else if(d.continuous&&m.cyclePause)s=10;if(s>0)m.cycleTimeout=setTimeout(function(){z(a,d,0,!d.backwards)},s)}}}function t(a,d,h,i){if(h.timeoutFn){for(a=h.timeoutFn.call(a,
a,d,h,i);h.fx!="none"&&a-h.speed<250;)a+=h.speed;f("calculated timeout: "+a+"; speed: "+h.speed);if(a!==false)return a}return h.timeout}function x(a,d){var h=d?1:-1,i=a.elements,m=a.$cont[0],e=m.cycleTimeout;if(e){clearTimeout(e);m.cycleTimeout=0}if(a.random&&h<0){a.randomIndex--;if(--a.randomIndex==-2)a.randomIndex=i.length-2;else if(a.randomIndex==-1)a.randomIndex=i.length-1;a.nextSlide=a.randomMap[a.randomIndex]}else if(a.random)a.nextSlide=a.randomMap[a.randomIndex];else{a.nextSlide=a.currSlide+
h;if(a.nextSlide<0){if(a.nowrap)return false;a.nextSlide=i.length-1}else if(a.nextSlide>=i.length){if(a.nowrap)return false;a.nextSlide=0}}m=a.onPrevNextEvent||a.prevNextClick;b.isFunction(m)&&m(h>0,a.nextSlide,i[a.nextSlide]);z(i,a,1,d);return false}function H(a,d){var h=b(d.pager);b.each(a,function(i,m){b.fn.cycle.createPagerAnchor(i,m,h,a,d)});d.updateActivePagerLink(d.pager,d.startingSlide,d.activePagerClass)}function K(a){function d(i){i=parseInt(i).toString(16);return i.length<2?"0"+i:i}function h(i){for(;i&&
i.nodeName.toLowerCase()!="html";i=i.parentNode){var m=b.css(i,"background-color");if(m&&m.indexOf("rgb")>=0){i=m.match(/\d+/g);return"#"+d(i[0])+d(i[1])+d(i[2])}if(m&&m!="transparent")return m}return"#ffffff"}f("applying clearType background-color hack");a.each(function(){b(this).css("background-color",h(this))})}if(b.support==undefined)b.support={opacity:!b.browser.msie};b.expr[":"].paused=function(a){return a.cyclePause};b.fn.cycle=function(a,d){var h={s:this.selector,c:this.context};if(this.length===
0&&a!="stop"){if(!b.isReady&&h.s){o("DOM not ready, queuing slideshow");b(function(){b(h.s,h.c).cycle(a,d)});return this}o("terminating; zero elements found by selector"+(b.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var i=c(this,a,d);if(i!==false){i.updateActivePagerLink=i.updateActivePagerLink||b.fn.cycle.updateActivePagerLink;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var m=b(this),e=i.slideExpr?b(i.slideExpr,this):m.children(),
u=e.get();if(u.length<2)o("terminating; too few slides: "+u.length);else{var s=g(m,e,u,i,h);if(s!==false)if(m=s.continuous?10:t(u[s.currSlide],u[s.nextSlide],s,!s.backwards)){m+=s.delay||0;if(m<10)m=10;f("first timeout: "+m);this.cycleTimeout=setTimeout(function(){z(u,s,0,!i.backwards)},m)}}}})};b.fn.cycle.resetState=function(a,d){d=d||a.fx;a.before=[];a.after=[];a.cssBefore=b.extend({},a.original.cssBefore);a.cssAfter=b.extend({},a.original.cssAfter);a.animIn=b.extend({},a.original.animIn);a.animOut=
b.extend({},a.original.animOut);a.fxFn=null;b.each(a.original.before,function(){a.before.push(this)});b.each(a.original.after,function(){a.after.push(this)});var h=b.fn.cycle.transitions[d];b.isFunction(h)&&h(a.$cont,b(a.elements),a)};b.fn.cycle.updateActivePagerLink=function(a,d,h){b(a).each(function(){b(this).children().removeClass(h).eq(d).addClass(h)})};b.fn.cycle.next=function(a){x(a,1)};b.fn.cycle.prev=function(a){x(a,0)};b.fn.cycle.createPagerAnchor=function(a,d,h,i,m){if(b.isFunction(m.pagerAnchorBuilder)){d=
m.pagerAnchorBuilder(a,d);f("pagerAnchorBuilder("+a+", el) returned: "+d)}else d='<a href="#">'+(a+1)+"</a>";if(d){var e=b(d);if(e.parents("body").length===0){var u=[];if(h.length>1){h.each(function(){var s=e.clone(true);b(this).append(s);u.push(s[0])});e=b(u)}else e.appendTo(h)}m.pagerAnchors=m.pagerAnchors||[];m.pagerAnchors.push(e);e.bind(m.pagerEvent,function(s){s.preventDefault();m.nextSlide=a;s=m.$cont[0];var A=s.cycleTimeout;if(A){clearTimeout(A);s.cycleTimeout=0}s=m.onPagerEvent||m.pagerClick;
b.isFunction(s)&&s(m.nextSlide,i[m.nextSlide]);z(i,m,1,m.currSlide<a)});!/^click/.test(m.pagerEvent)&&!m.allowPagerClickBubble&&e.bind("click.cycle",function(){return false});m.pauseOnPagerHover&&e.hover(function(){m.$cont[0].cyclePause++},function(){m.$cont[0].cyclePause--})}};b.fn.cycle.hopsFromLast=function(a,d){var h=a.lastSlide,i=a.currSlide;return d?i>h?i-h:a.slideCount-h:i<h?h-i:h+a.slideCount-i};b.fn.cycle.commonReset=function(a,d,h,i,m,e){b(h.elements).not(a).hide();if(typeof h.cssBefore.opacity==
"undefined")h.cssBefore.opacity=1;h.cssBefore.display="block";if(h.slideResize&&i!==false&&d.cycleW>0)h.cssBefore.width=d.cycleW;if(h.slideResize&&m!==false&&d.cycleH>0)h.cssBefore.height=d.cycleH;h.cssAfter=h.cssAfter||{};h.cssAfter.display="none";b(a).css("zIndex",h.slideCount+(e===true?1:0));b(d).css("zIndex",h.slideCount+(e===true?0:1))};b.fn.cycle.custom=function(a,d,h,i,m,e){var u=b(a),s=b(d),A=h.speedIn;a=h.speedOut;var C=h.easeIn;d=h.easeOut;s.css(h.cssBefore);if(e){A=typeof e=="number"?a=
e:a=1;C=d=null}var D=function(){s.animate(h.animIn,A,C,function(){i()})};u.animate(h.animOut,a,d,function(){u.css(h.cssAfter);h.sync||D()});h.sync&&D()};b.fn.cycle.transitions={fade:function(a,d,h){d.not(":eq("+h.currSlide+")").css("opacity",0);h.before.push(function(i,m,e){b.fn.cycle.commonReset(i,m,e);e.cssBefore.opacity=0});h.animIn={opacity:1};h.animOut={opacity:0};h.cssBefore={top:0,left:0}}};b.fn.cycle.ver=function(){return"2.99"};b.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,
allowPagerClickBubble:false,animIn:null,animOut:null,autostop:0,autostopCount:0,backwards:false,before:null,cleartype:!b.support.opacity,cleartypeNoBg:false,containerResize:1,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:true,next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",
random:0,randomizeEffects:1,requeueOnImageNotLoaded:true,requeueTimeout:250,rev:0,shuffle:null,slideExpr:null,slideResize:1,speed:1E3,speedIn:null,speedOut:null,startingSlide:0,sync:1,timeout:4E3,timeoutFn:null,updateActivePagerLink:null}})(jQuery);
(function(b){b.fn.cycle.transitions.none=function(f,o,c){c.fxFn=function(k,j,g,r){b(j).show();b(k).hide();r()}};b.fn.cycle.transitions.fadeout=function(f,o,c){o.not(":eq("+c.currSlide+")").css({display:"block",opacity:1});c.before.push(function(k,j,g,r,v,w){b(k).css("zIndex",g.slideCount+(!w===true?1:0));b(j).css("zIndex",g.slideCount+(!w===true?0:1))});c.animIn.opacity=1;c.animOut.opacity=0;c.cssBefore.opacity=1;c.cssBefore.display="block";c.cssAfter.zIndex=0};b.fn.cycle.transitions.scrollUp=function(f,
o,c){f.css("overflow","hidden");c.before.push(b.fn.cycle.commonReset);f=f.height();c.cssBefore.top=f;c.cssBefore.left=0;c.cssFirst.top=0;c.animIn.top=0;c.animOut.top=-f};b.fn.cycle.transitions.scrollDown=function(f,o,c){f.css("overflow","hidden");c.before.push(b.fn.cycle.commonReset);f=f.height();c.cssFirst.top=0;c.cssBefore.top=-f;c.cssBefore.left=0;c.animIn.top=0;c.animOut.top=f};b.fn.cycle.transitions.scrollLeft=function(f,o,c){f.css("overflow","hidden");c.before.push(b.fn.cycle.commonReset);f=
f.width();c.cssFirst.left=0;c.cssBefore.left=f;c.cssBefore.top=0;c.animIn.left=0;c.animOut.left=0-f};b.fn.cycle.transitions.scrollRight=function(f,o,c){f.css("overflow","hidden");c.before.push(b.fn.cycle.commonReset);f=f.width();c.cssFirst.left=0;c.cssBefore.left=-f;c.cssBefore.top=0;c.animIn.left=0;c.animOut.left=f};b.fn.cycle.transitions.scrollHorz=function(f,o,c){f.css("overflow","hidden").width();c.before.push(function(k,j,g,r){if(g.rev)r=!r;b.fn.cycle.commonReset(k,j,g);g.cssBefore.left=r?j.cycleW-
1:1-j.cycleW;g.animOut.left=r?-k.cycleW:k.cycleW});c.cssFirst.left=0;c.cssBefore.top=0;c.animIn.left=0;c.animOut.top=0};b.fn.cycle.transitions.scrollVert=function(f,o,c){f.css("overflow","hidden");c.before.push(function(k,j,g,r){if(g.rev)r=!r;b.fn.cycle.commonReset(k,j,g);g.cssBefore.top=r?1-j.cycleH:j.cycleH-1;g.animOut.top=r?k.cycleH:-k.cycleH});c.cssFirst.top=0;c.cssBefore.left=0;c.animIn.top=0;c.animOut.left=0};b.fn.cycle.transitions.slideX=function(f,o,c){c.before.push(function(k,j,g){b(g.elements).not(k).hide();
b.fn.cycle.commonReset(k,j,g,false,true);g.animIn.width=j.cycleW});c.cssBefore.left=0;c.cssBefore.top=0;c.cssBefore.width=0;c.animIn.width="show";c.animOut.width=0};b.fn.cycle.transitions.slideY=function(f,o,c){c.before.push(function(k,j,g){b(g.elements).not(k).hide();b.fn.cycle.commonReset(k,j,g,true,false);g.animIn.height=j.cycleH});c.cssBefore.left=0;c.cssBefore.top=0;c.cssBefore.height=0;c.animIn.height="show";c.animOut.height=0};b.fn.cycle.transitions.shuffle=function(f,o,c){f=f.css("overflow",
"visible").width();o.css({left:0,top:0});c.before.push(function(k,j,g){b.fn.cycle.commonReset(k,j,g,true,true,true)});if(!c.speedAdjusted){c.speed/=2;c.speedAdjusted=true}c.random=0;c.shuffle=c.shuffle||{left:-f,top:15};c.els=[];for(f=0;f<o.length;f++)c.els.push(o[f]);for(f=0;f<c.currSlide;f++)c.els.push(c.els.shift());c.fxFn=function(k,j,g,r,v){if(g.rev)v=!v;var w=v?b(k):b(j);b(j).css(g.cssBefore);var z=g.slideCount;w.animate(g.shuffle,g.speedIn,g.easeIn,function(){for(var t=b.fn.cycle.hopsFromLast(g,
v),x=0;x<t;x++)v?g.els.push(g.els.shift()):g.els.unshift(g.els.pop());if(v){t=0;for(x=g.els.length;t<x;t++)b(g.els[t]).css("z-index",x-t+z)}else{t=b(k).css("z-index");w.css("z-index",parseInt(t)+1+z)}w.animate({left:0,top:0},g.speedOut,g.easeOut,function(){b(v?this:k).hide();r&&r()})})};b.extend(c.cssBefore,{display:"block",opacity:1,top:0,left:0})};b.fn.cycle.transitions.turnUp=function(f,o,c){c.before.push(function(k,j,g){b.fn.cycle.commonReset(k,j,g,true,false);g.cssBefore.top=j.cycleH;g.animIn.height=
j.cycleH;g.animOut.width=j.cycleW});c.cssFirst.top=0;c.cssBefore.left=0;c.cssBefore.height=0;c.animIn.top=0;c.animOut.height=0};b.fn.cycle.transitions.turnDown=function(f,o,c){c.before.push(function(k,j,g){b.fn.cycle.commonReset(k,j,g,true,false);g.animIn.height=j.cycleH;g.animOut.top=k.cycleH});c.cssFirst.top=0;c.cssBefore.left=0;c.cssBefore.top=0;c.cssBefore.height=0;c.animOut.height=0};b.fn.cycle.transitions.turnLeft=function(f,o,c){c.before.push(function(k,j,g){b.fn.cycle.commonReset(k,j,g,false,
true);g.cssBefore.left=j.cycleW;g.animIn.width=j.cycleW});c.cssBefore.top=0;c.cssBefore.width=0;c.animIn.left=0;c.animOut.width=0};b.fn.cycle.transitions.turnRight=function(f,o,c){c.before.push(function(k,j,g){b.fn.cycle.commonReset(k,j,g,false,true);g.animIn.width=j.cycleW;g.animOut.left=k.cycleW});b.extend(c.cssBefore,{top:0,left:0,width:0});c.animIn.left=0;c.animOut.width=0};b.fn.cycle.transitions.zoom=function(f,o,c){c.before.push(function(k,j,g){b.fn.cycle.commonReset(k,j,g,false,false,true);
g.cssBefore.top=j.cycleH/2;g.cssBefore.left=j.cycleW/2;b.extend(g.animIn,{top:0,left:0,width:j.cycleW,height:j.cycleH});b.extend(g.animOut,{width:0,height:0,top:k.cycleH/2,left:k.cycleW/2})});c.cssFirst.top=0;c.cssFirst.left=0;c.cssBefore.width=0;c.cssBefore.height=0};b.fn.cycle.transitions.fadeZoom=function(f,o,c){c.before.push(function(k,j,g){b.fn.cycle.commonReset(k,j,g,false,false);g.cssBefore.left=j.cycleW/2;g.cssBefore.top=j.cycleH/2;b.extend(g.animIn,{top:0,left:0,width:j.cycleW,height:j.cycleH})});
c.cssBefore.width=0;c.cssBefore.height=0;c.animOut.opacity=0};b.fn.cycle.transitions.blindX=function(f,o,c){f=f.css("overflow","hidden").width();c.before.push(function(k,j,g){b.fn.cycle.commonReset(k,j,g);g.animIn.width=j.cycleW;g.animOut.left=k.cycleW});c.cssBefore.left=f;c.cssBefore.top=0;c.animIn.left=0;c.animOut.left=f};b.fn.cycle.transitions.blindY=function(f,o,c){f=f.css("overflow","hidden").height();c.before.push(function(k,j,g){b.fn.cycle.commonReset(k,j,g);g.animIn.height=j.cycleH;g.animOut.top=
k.cycleH});c.cssBefore.top=f;c.cssBefore.left=0;c.animIn.top=0;c.animOut.top=f};b.fn.cycle.transitions.blindZ=function(f,o,c){o=f.css("overflow","hidden").height();f=f.width();c.before.push(function(k,j,g){b.fn.cycle.commonReset(k,j,g);g.animIn.height=j.cycleH;g.animOut.top=k.cycleH});c.cssBefore.top=o;c.cssBefore.left=f;c.animIn.top=0;c.animIn.left=0;c.animOut.top=o;c.animOut.left=f};b.fn.cycle.transitions.growX=function(f,o,c){c.before.push(function(k,j,g){b.fn.cycle.commonReset(k,j,g,false,true);
g.cssBefore.left=this.cycleW/2;g.animIn.left=0;g.animIn.width=this.cycleW;g.animOut.left=0});c.cssBefore.top=0;c.cssBefore.width=0};b.fn.cycle.transitions.growY=function(f,o,c){c.before.push(function(k,j,g){b.fn.cycle.commonReset(k,j,g,true,false);g.cssBefore.top=this.cycleH/2;g.animIn.top=0;g.animIn.height=this.cycleH;g.animOut.top=0});c.cssBefore.height=0;c.cssBefore.left=0};b.fn.cycle.transitions.curtainX=function(f,o,c){c.before.push(function(k,j,g){b.fn.cycle.commonReset(k,j,g,false,true,true);
g.cssBefore.left=j.cycleW/2;g.animIn.left=0;g.animIn.width=this.cycleW;g.animOut.left=k.cycleW/2;g.animOut.width=0});c.cssBefore.top=0;c.cssBefore.width=0};b.fn.cycle.transitions.curtainY=function(f,o,c){c.before.push(function(k,j,g){b.fn.cycle.commonReset(k,j,g,true,false,true);g.cssBefore.top=j.cycleH/2;g.animIn.top=0;g.animIn.height=j.cycleH;g.animOut.top=k.cycleH/2;g.animOut.height=0});c.cssBefore.height=0;c.cssBefore.left=0};b.fn.cycle.transitions.cover=function(f,o,c){var k=c.direction||"left",
j=f.css("overflow","hidden").width(),g=f.height();c.before.push(function(r,v,w){b.fn.cycle.commonReset(r,v,w);if(k=="right")w.cssBefore.left=-j;else if(k=="up")w.cssBefore.top=g;else if(k=="down")w.cssBefore.top=-g;else w.cssBefore.left=j});c.animIn.left=0;c.animIn.top=0;c.cssBefore.top=0;c.cssBefore.left=0};b.fn.cycle.transitions.uncover=function(f,o,c){var k=c.direction||"left",j=f.css("overflow","hidden").width(),g=f.height();c.before.push(function(r,v,w){b.fn.cycle.commonReset(r,v,w,true,true,
true);if(k=="right")w.animOut.left=j;else if(k=="up")w.animOut.top=-g;else if(k=="down")w.animOut.top=g;else w.animOut.left=-j});c.animIn.left=0;c.animIn.top=0;c.cssBefore.top=0;c.cssBefore.left=0};b.fn.cycle.transitions.toss=function(f,o,c){var k=f.css("overflow","visible").width(),j=f.height();c.before.push(function(g,r,v){b.fn.cycle.commonReset(g,r,v,true,true,true);if(!v.animOut.left&&!v.animOut.top)b.extend(v.animOut,{left:k*2,top:-j/2,opacity:0});else v.animOut.opacity=0});c.cssBefore.left=
0;c.cssBefore.top=0;c.animIn.left=0};b.fn.cycle.transitions.wipe=function(f,o,c){var k=f.css("overflow","hidden").width(),j=f.height();c.cssBefore=c.cssBefore||{};var g;if(c.clip)if(/l2r/.test(c.clip))g="rect(0px 0px "+j+"px 0px)";else if(/r2l/.test(c.clip))g="rect(0px "+k+"px "+j+"px "+k+"px)";else if(/t2b/.test(c.clip))g="rect(0px "+k+"px 0px 0px)";else if(/b2t/.test(c.clip))g="rect("+j+"px "+k+"px "+j+"px 0px)";else if(/zoom/.test(c.clip)){f=parseInt(j/2);o=parseInt(k/2);g="rect("+f+"px "+o+"px "+
f+"px "+o+"px)"}c.cssBefore.clip=c.cssBefore.clip||g||"rect(0px 0px 0px 0px)";f=c.cssBefore.clip.match(/(\d+)/g);var r=parseInt(f[0]),v=parseInt(f[1]),w=parseInt(f[2]),z=parseInt(f[3]);c.before.push(function(t,x,H){if(t!=x){var K=b(t),a=b(x);b.fn.cycle.commonReset(t,x,H,true,true,false);H.cssAfter.display="block";var d=1,h=parseInt(H.speedIn/13)-1;(function i(){var m=r?r-parseInt(d*(r/h)):0,e=z?z-parseInt(d*(z/h)):0,u=w<j?w+parseInt(d*((j-w)/h||1)):j,s=v<k?v+parseInt(d*((k-v)/h||1)):k;a.css({clip:"rect("+
m+"px "+s+"px "+u+"px "+e+"px)"});d++<=h?setTimeout(i,13):K.css("display","none")})()}});b.extend(c.cssBefore,{display:"block",opacity:1,top:0,left:0});c.animIn={left:0};c.animOut={left:0}}})(jQuery);
(function(b){b.fn.s3Slider=function(f){var o=this,c=f.timeOut!=undefined?f.timeOut:4E3,k=null,j=true,g=false,r=b("#"+o[0].id+"Content ."+o[0].id+"Image"),v=b("#"+o[0].id+"Content ."+o[0].id+"Image span");r.each(function(t){b(r[t]).mouseover(function(){g=true});b(r[t]).mouseout(function(){g=false;w(true)})});var w=function(t){t=t?c/2:c;t=j?10:t;r.length>0?setTimeout(z,t):console.log("Poof..")},z=function(){k=k!=null?k:r[r.length-1];var t=jQuery.inArray(k,r)+1;t=t==r.length?0:t-1;b(o).width();if(j==
true)g||b(r[t]).fadeIn(c/6,function(){b(v[t]).css("bottom")==0?b(v[t]).slideUp(c/6,function(){j=false;k=r[t];g||w(false)}):b(v[t]).slideDown(c/6,function(){j=false;k=r[t];g||w(false)})});else g||(b(v[t]).css("bottom")==0?b(v[t]).slideDown(c/6,function(){b(r[t]).fadeOut(c/6,function(){j=true;k=r[t+1];g||w(false)})}):b(v[t]).slideUp(c/6,function(){b(r[t]).fadeOut(c/6,function(){j=true;k=r[t+1];g||w(false)})}))};z()}})(jQuery);
var jqueryslidemenu={animateduration:{over:200,out:100},buildmenu:function(b){jQuery(document).ready(function(f){var o=f("#"+b+">ul");o.find("ul").parent().each(function(){var c=f(this),k=f(this).find("ul:eq(0)");this._dimensions={w:this.offsetWidth,h:this.offsetHeight,subulw:k.outerWidth(),subulh:k.outerHeight()};this.istopheader=c.parents("ul").length==1?true:false;k.css({top:this.istopheader?this._dimensions.h+"px":0});c.hover(function(){var j=f(this).children("ul:eq(0)");this._offsets={left:f(this).offset().left,
top:f(this).offset().top};var g=this.istopheader?0:this._dimensions.w;g=this._offsets.left+g+this._dimensions.subulw>f(window).width()?this.istopheader?-this._dimensions.subulw+this._dimensions.w:-this._dimensions.w:g;j.queue().length<=1&&j.css({left:g+"px",width:this._dimensions.subulw+"px"}).slideDown(jqueryslidemenu.animateduration.over)},function(){f(this).children("ul:eq(0)").slideUp(jqueryslidemenu.animateduration.out)})});o.find("ul").css({display:"none",visibility:"visible"})})}};jqueryslidemenu.buildmenu("myslidemenu");
(function(b){b.fn.jgTextHint=function(f){var o={faded_color:"#666",color:"#000"};f&&b.extend(o,f);this.each(function(){var c=b(this),k=c.val();c.css("color",o.faded_color);c.focus(function(){if(c.val()===k){c.val("");c.css("color",o.color)}});c.blur(function(){if(c.val()===""){c.val(k);c.css("color",o.faded_color)}})});return this}})(jQuery);JQ=jQuery.noConflict();JQ(document).ready(function(){});
window.Modernizr=function(b,f,o){function c(l,n){return typeof l===n}function k(l,n){for(var q in l)if(t[l[q]]!==o&&(!n||n(l[q],z)))return true}function j(l,n){var q=l.charAt(0).toUpperCase()+l.substr(1);q=(l+" "+d.join(q+" ")+q).split(" ");return!!k(q,n)}function g(){r.input=function(l){for(var n=0,q=l.length;n<q;n++)e[l[n]]=!!(l[n]in x);return e}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));r.inputtypes=function(l){for(var n=0,q,y,B=l.length;n<B;n++){x.setAttribute("type",
y=l[n]);if(q=x.type!=="text"){x.value=H;x.style.cssText="position:absolute;visibility:hidden;";if(/^range$/.test(y)&&x.style.WebkitAppearance!==o){v.appendChild(x);q=f.defaultView;q=q.getComputedStyle&&q.getComputedStyle(x,null).WebkitAppearance!=="textfield"&&x.offsetHeight!==0;v.removeChild(x)}else if(!/^(search|tel)$/.test(y))if(/^(url|email)$/.test(y))q=x.checkValidity&&x.checkValidity()===false;else if(/^color$/.test(y)){v.appendChild(x);q=x.value!=H;v.removeChild(x)}else q=x.value!=H}m[l[n]]=
!!q}return m}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var r={},v=f.documentElement,w=f.head||f.getElementsByTagName("head")[0],z=f.createElement("modernizr"),t=z.style,x=f.createElement("input"),H=":)",K=Object.prototype.toString,a=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),d="Webkit Moz O ms Khtml".split(" "),h={svg:"http://www.w3.org/2000/svg"},i={},m={},e={},u=[],s,A=function(l){var n=f.createElement("style"),q=f.createElement("div");
n.textContent=l+"{#modernizr{height:3px}}";w.appendChild(n);q.id="modernizr";v.appendChild(q);l=q.offsetHeight===3;n.parentNode.removeChild(n);q.parentNode.removeChild(q);return!!l},C=function(){var l={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(n,q){q=q||f.createElement(l[n]||"div");n="on"+n;var y=n in q;if(!y){q.setAttribute||(q=f.createElement("div"));if(q.setAttribute&&q.removeAttribute){q.setAttribute(n,"");y=c(q[n],"function");
c(q[n],o)||(q[n]=o);q.removeAttribute(n)}}return y}}(),D={}.hasOwnProperty,F;F=!c(D,o)&&!c(D.call,o)?function(l,n){return D.call(l,n)}:function(l,n){return n in l&&c(l.constructor.prototype[n],o)};i.flexbox=function(){var l=f.createElement("div"),n=f.createElement("div");(function(y,B,L,P){B+=":";y.style.cssText=(B+a.join(L+";"+B)).slice(0,-B.length)+(P||"")})(l,"display","box","width:42px;padding:0;");n.style.cssText=a.join("box-flex:1;")+"width:10px;";l.appendChild(n);v.appendChild(l);var q=n.offsetWidth===
42;l.removeChild(n);v.removeChild(l);return q};i.canvas=function(){var l=f.createElement("canvas");return!!(l.getContext&&l.getContext("2d"))};i.canvastext=function(){return!!(r.canvas&&c(f.createElement("canvas").getContext("2d").fillText,"function"))};i.webgl=function(){return!!b.WebGLRenderingContext};i.touch=function(){return"ontouchstart"in b||A("@media ("+a.join("touch-enabled),(")+"modernizr)")};i.geolocation=function(){return!!navigator.geolocation};i.postmessage=function(){return!!b.postMessage};
i.websqldatabase=function(){return!!b.openDatabase};i.indexedDB=function(){for(var l=-1,n=d.length;++l<n;){var q=d[l].toLowerCase();if(b[q+"_indexedDB"]||b[q+"IndexedDB"])return true}return false};i.hashchange=function(){return C("hashchange",b)&&(f.documentMode===o||f.documentMode>7)};i.history=function(){return!!(b.history&&history.pushState)};i.draganddrop=function(){return C("dragstart")&&C("drop")};i.websockets=function(){return"WebSocket"in b};i.rgba=function(){t.cssText="background-color:rgba(150,255,150,.5)";
return(""+t.backgroundColor).indexOf("rgba")!==-1};i.hsla=function(){t.cssText="background-color:hsla(120,40%,100%,.5)";return(""+t.backgroundColor).indexOf("rgba")!==-1||(""+t.backgroundColor).indexOf("hsla")!==-1};i.multiplebgs=function(){t.cssText="background:url(//:),url(//:),red url(//:)";return/(url\s*\(.*?){3}/.test(t.background)};i.backgroundsize=function(){return j("backgroundSize")};i.borderimage=function(){return j("borderImage")};i.borderradius=function(){return j("borderRadius","",function(l){return(""+
l).indexOf("orderRadius")!==-1})};i.boxshadow=function(){return j("boxShadow")};i.textshadow=function(){return f.createElement("div").style.textShadow===""};i.opacity=function(){var l=a.join("opacity:.55;")+"";t.cssText=l;return/^0.55$/.test(t.opacity)};i.cssanimations=function(){return j("animationName")};i.csscolumns=function(){return j("columnCount")};i.cssgradients=function(){var l=("background-image:"+a.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:")+a.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,
-17);t.cssText=l;return(""+t.backgroundImage).indexOf("gradient")!==-1};i.cssreflections=function(){return j("boxReflect")};i.csstransforms=function(){return!!k(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])};i.csstransforms3d=function(){var l=!!k(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);if(l&&"webkitPerspective"in v.style)l=A("@media ("+a.join("transform-3d),(")+"modernizr)");return l};i.csstransitions=function(){return j("transitionProperty")};
i.fontface=function(){var l,n,q=w||v,y=f.createElement("style");n=f.implementation||{hasFeature:function(){return false}};y.type="text/css";q.insertBefore(y,q.firstChild);l=y.sheet||y.styleSheet;n=(n.hasFeature("CSS2","")?function(B){if(!(l&&B))return false;var L=false;try{l.insertRule(B,0);L=/src/i.test(l.cssRules[0].cssText);l.deleteRule(l.cssRules.length-1)}catch(P){}return L}:function(B){if(!(l&&B))return false;l.cssText=B;return l.cssText.length!==0&&/src/i.test(l.cssText)&&l.cssText.replace(/\r+|\n+/g,
"").indexOf(B.split(" ")[0])===0})('@font-face { font-family: "font"; src: url(data:,); }');q.removeChild(y);return n};i.video=function(){var l=f.createElement("video"),n=!!l.canPlayType;if(n){n=new Boolean(n);n.ogg=l.canPlayType('video/ogg; codecs="theora"');n.h264=l.canPlayType('video/mp4; codecs="avc1.42E01E"')||l.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"');n.webm=l.canPlayType('video/webm; codecs="vp8, vorbis"')}return n};i.audio=function(){var l=f.createElement("audio"),n=!!l.canPlayType;
if(n){n=new Boolean(n);n.ogg=l.canPlayType('audio/ogg; codecs="vorbis"');n.mp3=l.canPlayType("audio/mpeg;");n.wav=l.canPlayType('audio/wav; codecs="1"');n.m4a=l.canPlayType("audio/x-m4a;")||l.canPlayType("audio/aac;")}return n};i.localstorage=function(){try{return!!localStorage.getItem}catch(l){return false}};i.sessionstorage=function(){try{return!!sessionStorage.getItem}catch(l){return false}};i.webWorkers=function(){return!!b.Worker};i.applicationcache=function(){return!!b.applicationCache};i.svg=
function(){return!!f.createElementNS&&!!f.createElementNS(h.svg,"svg").createSVGRect};i.inlinesvg=function(){var l=f.createElement("div");l.innerHTML="<svg/>";return(l.firstChild&&l.firstChild.namespaceURI)==h.svg};i.smil=function(){return!!f.createElementNS&&/SVG/.test(K.call(f.createElementNS(h.svg,"animate")))};i.svgclippaths=function(){return!!f.createElementNS&&/SVG/.test(K.call(f.createElementNS(h.svg,"clipPath")))};for(var I in i)if(F(i,I)){s=I.toLowerCase();r[s]=i[I]();u.push((r[s]?"":"no-")+
s)}r.input||g();r.crosswindowmessaging=r.postmessage;r.historymanagement=r.history;r.addTest=function(l,n){l=l.toLowerCase();if(!r[l]){n=!!n();v.className+=" "+(n?"":"no-")+l;r[l]=n;return r}};t.cssText="";z=x=null;b.attachEvent&&function(){var l=f.createElement("div");l.innerHTML="<elem></elem>";return l.childNodes.length!==1}()&&function(l,n){function q(J){for(var E=-1;++E<L;)J.createElement(B[E])}function y(J,E){for(var M=-1,G=J.length,Q,T=[];++M<G;){Q=J[M];if((E=Q.media||E)!="screen")T.push(y(Q.imports,
E),Q.cssText)}return T.join("")}var B="abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video".split("|"),L=B.length,P=RegExp("(^|\\s)(abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)","gi"),W=RegExp("<(/*)(abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)",
"gi"),X=RegExp("(^|[^\\n]*?\\s)(abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)([^\\n]*)({[\\n\\w\\W]*?})","gi"),U=n.createDocumentFragment(),R=n.documentElement,V=R.firstChild,O=n.createElement("body"),S=n.createElement("style"),N;q(n);q(U);V.insertBefore(S,V.firstChild);S.media="print";l.attachEvent("onbeforeprint",function(){var J=-1,E=y(n.styleSheets,"all"),M=[],G;for(N=N||n.body;(G=X.exec(E))!=null;)M.push((G[1]+
G[2]+G[3]).replace(P,"$1.iepp_$2")+G[4]);for(S.styleSheet.cssText=M.join("\n");++J<L;){E=n.getElementsByTagName(B[J]);M=E.length;for(G=-1;++G<M;)if(E[G].className.indexOf("iepp_")<0)E[G].className+=" iepp_"+B[J]}U.appendChild(N);R.appendChild(O);O.className=N.className;O.innerHTML=N.innerHTML.replace(W,"<$1font")});l.attachEvent("onafterprint",function(){O.innerHTML="";R.removeChild(O);R.appendChild(N);S.styleSheet.cssText=""})}(b,f);r._enableHTML5=true;r._version="1.7";v.className=v.className.replace(/\bno-js\b/,
"")+" js "+u.join(" ");return r}(this,this.document);

