/*
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version: 2.88 (08-JUN-2010)
 * Dual licensed under the MIT and GPL licenses.
 * http://jquery.malsup.com/license.html
 * Requires: jQuery v1.2.6 or later
 */
(function(h){var g="2.88";if(h.support==undefined){h.support={opacity:!(h.browser.msie)}}function a(r){if(h.fn.cycle.debug){d(r)}}function d(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}}h.fn.cycle=function(s,t){var r={s:this.selector,c:this.context};if(this.length===0&&s!="stop"){if(!h.isReady&&r.s){d("DOM not ready, queuing slideshow");h(function(){h(r.s,r.c).cycle(s,t)});return this}d("terminating; zero elements found by selector"+(h.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var x=j(this,s,t);if(x===false){return}x.updateActivePagerLink=x.updateActivePagerLink||h.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var z=h(this);var u=x.slideExpr?h(x.slideExpr,this):z.children();var v=u.get();if(v.length<2){d("terminating; too few slides: "+v.length);return}var w=l(z,u,v,x,r);if(w===false){return}var y=w.continuous?10:e(v[w.currSlide],v[w.nextSlide],w,!w.rev);if(y){y+=(w.delay||0);if(y<10){y=10}a("first timeout: "+y);this.cycleTimeout=setTimeout(function(){o(v,w,0,(!w.rev&&!x.backwards))},y)}})};function j(v,s,w){if(v.cycleStop==undefined){v.cycleStop=0}if(s===undefined||s===null){s={}}if(s.constructor==String){switch(s){case"destroy":case"stop":var u=h(v).data("cycle.opts");if(!u){return false}v.cycleStop++;if(v.cycleTimeout){clearTimeout(v.cycleTimeout)}v.cycleTimeout=0;h(v).removeData("cycle.opts");if(s=="destroy"){f(u)}return false;case"toggle":v.cyclePause=(v.cyclePause===1)?0:1;r(v.cyclePause,w,v);return false;case"pause":v.cyclePause=1;return false;case"resume":v.cyclePause=0;r(false,w,v);return false;case"prev":case"next":var u=h(v).data("cycle.opts");if(!u){d('options not found, "prev/next" ignored');return false}h.fn.cycle[s](u);return false;default:s={fx:s}}return s}else{if(s.constructor==Number){var t=s;s=h(v).data("cycle.opts");if(!s){d("options not found, can not advance slide");return false}if(t<0||t>=s.elements.length){d("invalid slide index: "+t);return false}s.nextSlide=t;if(v.cycleTimeout){clearTimeout(v.cycleTimeout);v.cycleTimeout=0}if(typeof w=="string"){s.oneTimeFx=w}o(s.elements,s,1,t>=s.currSlide);return false}}return s;function r(z,A,x){if(!z&&A===true){var y=h(x).data("cycle.opts");if(!y){d("options not found, can not resume");return false}if(x.cycleTimeout){clearTimeout(x.cycleTimeout);x.cycleTimeout=0}o(y.elements,y,1,(!u.rev&&!u.backwards))}}}function k(s,r){if(!h.support.opacity&&r.cleartype&&s.style.filter){try{s.style.removeAttribute("filter")}catch(t){}}}function f(r){if(r.next){h(r.next).unbind(r.prevNextEvent)}if(r.prev){h(r.prev).unbind(r.prevNextEvent)}if(r.pager||r.pagerAnchorBuilder){h.each(r.pagerAnchors||[],function(){this.unbind().remove()})}r.pagerAnchors=null;if(r.destroy){r.destroy(r)}}function l(E,x,s,G,y){var r=h.extend({},h.fn.cycle.defaults,G||{},h.metadata?E.metadata():h.meta?E.data():{});if(r.autostop){r.countdown=r.autostopCount||s.length}var C=E[0];E.data("cycle.opts",r);r.$cont=E;r.stopCount=C.cycleStop;r.elements=s;r.before=r.before?[r.before]:[];r.after=r.after?[r.after]:[];r.after.unshift(function(){r.busy=0});if(!h.support.opacity&&r.cleartype){r.after.push(function(){k(this,r)})}if(r.continuous){r.after.push(function(){o(s,r,0,(!r.rev&&!r.backwards))})}m(r);if(!h.support.opacity&&r.cleartype&&!r.cleartypeNoBg){c(x)}if(E.css("position")=="static"){E.css("position","relative")}if(r.width){E.width(r.width)}if(r.height&&r.height!="auto"){E.height(r.height)}if(r.startingSlide){r.startingSlide=parseInt(r.startingSlide)}else{if(r.backwards){r.startingSlide=s.length-1}}if(r.random){r.randomMap=[];for(var A=0;A<s.length;A++){r.randomMap.push(A)}r.randomMap.sort(function(w,N){return Math.random()-0.5});r.randomIndex=1;r.startingSlide=r.randomMap[1]}else{if(r.startingSlide>=s.length){r.startingSlide=0}}r.currSlide=r.startingSlide||0;var K=r.startingSlide;x.css({position:"absolute",top:0,left:0}).hide().each(function(w){var N;if(r.backwards){N=K?w<=K?s.length+(w-K):K-w:s.length-w}else{N=K?w>=K?s.length-(w-K):K-w:s.length-w}h(this).css("z-index",N)});h(s[K]).css("opacity",1).show();k(s[K],r);if(r.fit&&r.width){x.width(r.width)}if(r.fit&&r.height&&r.height!="auto"){x.height(r.height)}var t=r.containerResize&&!E.innerHeight();if(t){var u=0,D=0;for(var B=0;B<s.length;B++){var L=h(s[B]),I=L[0],v=L.outerWidth(),z=L.outerHeight();if(!v){v=I.offsetWidth||I.width||L.attr("width")}if(!z){z=I.offsetHeight||I.height||L.attr("height")}u=v>u?v:u;D=z>D?z:D}if(u>0&&D>0){E.css({width:u+"px",height:D+"px"})}}if(r.pause){E.hover(function(){this.cyclePause++},function(){this.cyclePause--})}if(q(r)===false){return false}var M=false;G.requeueAttempts=G.requeueAttempts||0;x.each(function(){var P=h(this);this.cycleH=(r.fit&&r.height)?r.height:(P.height()||this.offsetHeight||this.height||P.attr("height")||0);this.cycleW=(r.fit&&r.width)?r.width:(P.width()||this.offsetWidth||this.width||P.attr("width")||0);if(P.is("img")){var Q=(h.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var N=(h.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var w=(h.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var O=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(Q||N||w||O){if(y.s&&r.requeueOnImageNotLoaded&&++G.requeueAttempts<100){d(G.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){h(y.s,y.c).cycle(G)},r.requeueTimeout);M=true;return false}else{d("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(M){return false}r.cssBefore=r.cssBefore||{};r.animIn=r.animIn||{};r.animOut=r.animOut||{};x.not(":eq("+K+")").css(r.cssBefore);if(r.cssFirst){h(x[K]).css(r.cssFirst)}if(r.timeout){r.timeout=parseInt(r.timeout);if(r.speed.constructor==String){r.speed=h.fx.speeds[r.speed]||parseInt(r.speed)}if(!r.sync){r.speed=r.speed/2}var F=r.fx=="shuffle"?500:250;while((r.timeout-r.speed)<F){r.timeout+=r.speed}}if(r.easing){r.easeIn=r.easeOut=r.easing}if(!r.speedIn){r.speedIn=r.speed}if(!r.speedOut){r.speedOut=r.speed}r.slideCount=s.length;r.currSlide=r.lastSlide=K;if(r.random){if(++r.randomIndex==s.length){r.randomIndex=0}r.nextSlide=r.randomMap[r.randomIndex]}else{if(r.backwards){r.nextSlide=r.startingSlide==0?(s.length-1):r.startingSlide-1}else{r.nextSlide=r.startingSlide>=(s.length-1)?0:r.startingSlide+1}}if(!r.multiFx){var J=h.fn.cycle.transitions[r.fx];if(h.isFunction(J)){J(E,x,r)}else{if(r.fx!="custom"&&!r.multiFx){d("unknown transition: "+r.fx,"; slideshow terminating");return false}}}var H=x[K];if(r.before.length){r.before[0].apply(H,[H,H,r,true])}if(r.after.length>1){r.after[1].apply(H,[H,H,r,true])}if(r.next){h(r.next).bind(r.prevNextEvent,function(){return n(r,r.rev?-1:1)})}if(r.prev){h(r.prev).bind(r.prevNextEvent,function(){return n(r,r.rev?1:-1)})}if(r.pager||r.pagerAnchorBuilder){b(s,r)}i(r,s);return r}function m(r){r.original={before:[],after:[]};r.original.cssBefore=h.extend({},r.cssBefore);r.original.cssAfter=h.extend({},r.cssAfter);r.original.animIn=h.extend({},r.animIn);r.original.animOut=h.extend({},r.animOut);h.each(r.before,function(){r.original.before.push(this)});h.each(r.after,function(){r.original.after.push(this)})}function q(v){var s,t,r=h.fn.cycle.transitions;if(v.fx.indexOf(",")>0){v.multiFx=true;v.fxs=v.fx.replace(/\s*/g,"").split(",");for(s=0;s<v.fxs.length;s++){var u=v.fxs[s];t=r[u];if(!t||!r.hasOwnProperty(u)||!h.isFunction(t)){d("discarding unknown transition: ",u);v.fxs.splice(s,1);s--}}if(!v.fxs.length){d("No valid transitions named; slideshow terminating.");return false}}else{if(v.fx=="all"){v.multiFx=true;v.fxs=[];for(p in r){t=r[p];if(r.hasOwnProperty(p)&&h.isFunction(t)){v.fxs.push(p)}}}}if(v.multiFx&&v.randomizeEffects){var w=Math.floor(Math.random()*20)+30;for(s=0;s<w;s++){var x=Math.floor(Math.random()*v.fxs.length);v.fxs.push(v.fxs.splice(x,1)[0])}a("randomized fx sequence: ",v.fxs)}return true}function i(s,r){s.addSlide=function(w,v){var t=h(w),u=t[0];if(!s.autostopCount){s.countdown++}r[v?"unshift":"push"](u);if(s.els){s.els[v?"unshift":"push"](u)}s.slideCount=r.length;t.css("position","absolute");t[v?"prependTo":"appendTo"](s.$cont);if(v){s.currSlide++;s.nextSlide++}if(!h.support.opacity&&s.cleartype&&!s.cleartypeNoBg){c(t)}if(s.fit&&s.width){t.width(s.width)}if(s.fit&&s.height&&s.height!="auto"){$slides.height(s.height)}u.cycleH=(s.fit&&s.height)?s.height:t.height();u.cycleW=(s.fit&&s.width)?s.width:t.width();t.css(s.cssBefore);if(s.pager||s.pagerAnchorBuilder){h.fn.cycle.createPagerAnchor(r.length-1,u,h(s.pager),r,s)}if(h.isFunction(s.onAddSlide)){s.onAddSlide(t)}else{t.hide()}}}h.fn.cycle.resetState=function(s,r){r=r||s.fx;s.before=[];s.after=[];s.cssBefore=h.extend({},s.original.cssBefore);s.cssAfter=h.extend({},s.original.cssAfter);s.animIn=h.extend({},s.original.animIn);s.animOut=h.extend({},s.original.animOut);s.fxFn=null;h.each(s.original.before,function(){s.before.push(this)});h.each(s.original.after,function(){s.after.push(this)});var t=h.fn.cycle.transitions[r];if(h.isFunction(t)){t(s.$cont,h(s.elements),s)}};function o(t,x,r,y){if(r&&x.busy&&x.manualTrump){a("manualTrump in go(), stopping active transition");h(t).stop(true,true);x.busy=false}if(x.busy){a("transition active, ignoring new tx request");return}var w=x.$cont[0],z=t[x.currSlide],v=t[x.nextSlide];if(w.cycleStop!=x.stopCount||w.cycleTimeout===0&&!r){return}if(!r&&!w.cyclePause&&!x.bounce&&((x.autostop&&(--x.countdown<=0))||(x.nowrap&&!x.random&&x.nextSlide<x.currSlide))){if(x.end){x.end(x)}return}var s=false;if((r||!w.cyclePause)&&(x.nextSlide!=x.currSlide)){s=true;var A=x.fx;z.cycleH=z.cycleH||h(z).height();z.cycleW=z.cycleW||h(z).width();v.cycleH=v.cycleH||h(v).height();v.cycleW=v.cycleW||h(v).width();if(x.multiFx){if(x.lastFx==undefined||++x.lastFx>=x.fxs.length){x.lastFx=0}A=x.fxs[x.lastFx];x.currFx=A}if(x.oneTimeFx){A=x.oneTimeFx;x.oneTimeFx=null}h.fn.cycle.resetState(x,A);if(x.before.length){h.each(x.before,function(D,E){if(w.cycleStop!=x.stopCount){return}E.apply(v,[z,v,x,y])})}var B=function(){h.each(x.after,function(D,E){if(w.cycleStop!=x.stopCount){return}E.apply(v,[z,v,x,y])})};a("tx firing; currSlide: "+x.currSlide+"; nextSlide: "+x.nextSlide);x.busy=1;if(x.fxFn){x.fxFn(z,v,x,B,y,r&&x.fastOnEvent)}else{if(h.isFunction(h.fn.cycle[x.fx])){h.fn.cycle[x.fx](z,v,x,B,y,r&&x.fastOnEvent)}else{h.fn.cycle.custom(z,v,x,B,y,r&&x.fastOnEvent)}}}if(s||x.nextSlide==x.currSlide){x.lastSlide=x.currSlide;if(x.random){x.currSlide=x.nextSlide;if(++x.randomIndex==t.length){x.randomIndex=0}x.nextSlide=x.randomMap[x.randomIndex];if(x.nextSlide==x.currSlide){x.nextSlide=(x.currSlide==x.slideCount-1)?0:x.currSlide+1}}else{if(x.backwards){var u=(x.nextSlide-1)<0;if(u&&x.bounce){x.backwards=!x.backwards;x.nextSlide=1;x.currSlide=0}else{x.nextSlide=u?(t.length-1):x.nextSlide-1;x.currSlide=u?0:x.nextSlide+1}}else{var u=(x.nextSlide+1)==t.length;if(u&&x.bounce){x.backwards=!x.backwards;x.nextSlide=t.length-2;x.currSlide=t.length-1}else{x.nextSlide=u?0:x.nextSlide+1;x.currSlide=u?t.length-1:x.nextSlide-1}}}}if(s&&x.pager){x.updateActivePagerLink(x.pager,x.currSlide,x.activePagerClass)}var C=0;if(x.timeout&&!x.continuous){C=e(t[x.currSlide],t[x.nextSlide],x,y)}else{if(x.continuous&&w.cyclePause){C=10}}if(C>0){w.cycleTimeout=setTimeout(function(){o(t,x,0,(!x.rev&&!x.backwards))},C)}}h.fn.cycle.updateActivePagerLink=function(s,t,r){h(s).each(function(){h(this).children().removeClass(r).eq(t).addClass(r)})};function e(v,u,s,r){if(s.timeoutFn){var w=s.timeoutFn.call(v,v,u,s,r);while((w-s.speed)<250){w+=s.speed}a("calculated timeout: "+w+"; speed: "+s.speed);if(w!==false){return w}}return s.timeout}h.fn.cycle.next=function(r){n(r,r.rev?-1:1)};h.fn.cycle.prev=function(r){n(r,r.rev?1:-1)};function n(u,s){var r=u.elements;var t=u.$cont[0],v=t.cycleTimeout;if(v){clearTimeout(v);t.cycleTimeout=0}if(u.random&&s<0){u.randomIndex--;if(--u.randomIndex==-2){u.randomIndex=r.length-2}else{if(u.randomIndex==-1){u.randomIndex=r.length-1}}u.nextSlide=u.randomMap[u.randomIndex]}else{if(u.random){u.nextSlide=u.randomMap[u.randomIndex]}else{u.nextSlide=u.currSlide+s;if(u.nextSlide<0){if(u.nowrap){return false}u.nextSlide=r.length-1}else{if(u.nextSlide>=r.length){if(u.nowrap){return false}u.nextSlide=0}}}}var w=u.onPrevNextEvent||u.prevNextClick;if(h.isFunction(w)){w(s>0,u.nextSlide,r[u.nextSlide])}o(r,u,1,s>=0);return false}function b(s,r){var t=h(r.pager);h.each(s,function(u,v){h.fn.cycle.createPagerAnchor(u,v,t,s,r)});r.updateActivePagerLink(r.pager,r.startingSlide,r.activePagerClass)}h.fn.cycle.createPagerAnchor=function(r,x,y,u,w){var v;if(h.isFunction(w.pagerAnchorBuilder)){v=w.pagerAnchorBuilder(r,x);a("pagerAnchorBuilder("+r+", el) returned: "+v)}else{v='<a href="#">'+(r+1)+"</a>"}if(!v){return}var s=h(v);if(s.parents("body").length===0){var t=[];if(y.length>1){y.each(function(){var z=s.clone(true);h(this).append(z);t.push(z[0])});s=h(t)}else{s.appendTo(y)}}w.pagerAnchors=w.pagerAnchors||[];w.pagerAnchors.push(s);s.bind(w.pagerEvent,function(B){B.preventDefault();w.nextSlide=r;var C=w.$cont[0],A=C.cycleTimeout;if(A){clearTimeout(A);C.cycleTimeout=0}var z=w.onPagerEvent||w.pagerClick;if(h.isFunction(z)){z(w.nextSlide,u[w.nextSlide])}o(u,w,1,w.currSlide<r)});if(!/^click/.test(w.pagerEvent)&&!w.allowPagerClickBubble){s.bind("click.cycle",function(){return false})}if(w.pauseOnPagerHover){s.hover(function(){w.$cont[0].cyclePause++},function(){w.$cont[0].cyclePause--})}};h.fn.cycle.hopsFromLast=function(s,u){var r,v=s.lastSlide,t=s.currSlide;if(u){r=t>v?t-v:s.slideCount-v}else{r=t<v?v-t:v+s.slideCount-t}return r};function c(t){a("applying clearType background-color hack");function r(u){u=parseInt(u).toString(16);return u.length<2?"0"+u:u}function s(x){for(;x&&x.nodeName.toLowerCase()!="html";x=x.parentNode){var w=h.css(x,"background-color");if(w.indexOf("rgb")>=0){var u=w.match(/\d+/g);return"#"+r(u[0])+r(u[1])+r(u[2])}if(w&&w!="transparent"){return w}}return"#ffffff"}}h.fn.cycle.commonReset=function(t,s,u,x,r,v){h(u.elements).not(t).hide();u.cssBefore.opacity=1;u.cssBefore.display="block";if(x!==false&&s.cycleW>0){u.cssBefore.width=s.cycleW}if(r!==false&&s.cycleH>0){u.cssBefore.height=s.cycleH}u.cssAfter=u.cssAfter||{};u.cssAfter.display="none";h(t).css("zIndex",u.slideCount+(v===true?1:0));h(s).css("zIndex",u.slideCount+(v===true?0:1))};h.fn.cycle.custom=function(x,z,r,y,C,A){var B=h(x),v=h(z);var w=r.speedIn,D=r.speedOut,u=r.easeIn,s=r.easeOut;v.css(r.cssBefore);if(A){if(typeof A=="number"){w=D=A}else{w=D=1}u=s=null}var t=function(){v.animate(r.animIn,w,u,y)};B.animate(r.animOut,D,s,function(){if(r.cssAfter){B.css(r.cssAfter)}if(!r.sync){t()}});if(r.sync){t()}};h.fn.cycle.transitions={fade:function(s,t,r){t.not(":eq("+r.currSlide+")").css("opacity",0);r.before.push(function(w,v,u){h.fn.cycle.commonReset(w,v,u);u.cssBefore.opacity=0});r.animIn={opacity:1};r.animOut={opacity:0};r.cssBefore={top:0,left:0}}};h.fn.cycle.ver=function(){return g};h.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,onPrevNextEvent:null,prevNextEvent:"click.cycle",pager:null,onPagerEvent: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:!h.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null,backwards:false}})(jQuery);
/*
 * jQuery Cycle Plugin Transition Definitions
 * This script is a plugin for the jQuery Cycle Plugin
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version:	 2.72
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function(a){a.fn.cycle.transitions.none=function(c,d,b){b.fxFn=function(g,f,e,h){a(f).show();a(g).hide();h()}};a.fn.cycle.transitions.scrollUp=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.height();c.cssBefore={top:b,left:0};c.cssFirst={top:0};c.animIn={top:0};c.animOut={top:-b}};a.fn.cycle.transitions.scrollDown=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.height();c.cssFirst={top:0};c.cssBefore={top:-b,left:0};c.animIn={top:0};c.animOut={top:b}};a.fn.cycle.transitions.scrollLeft=function(c,d,b){c.css("overflow","hidden");b.before.push(a.fn.cycle.commonReset);var e=c.width();b.cssFirst={left:0};b.cssBefore={left:e,top:0};b.animIn={left:0};b.animOut={left:0-e}};a.fn.cycle.transitions.scrollRight=function(c,d,b){c.css("overflow","hidden");b.before.push(a.fn.cycle.commonReset);var e=c.width();b.cssFirst={left:0};b.cssBefore={left:-e,top:0};b.animIn={left:0};b.animOut={left:e}};a.fn.cycle.transitions.scrollHorz=function(c,d,b){c.css("overflow","hidden").width();b.before.push(function(h,g,f,e){a.fn.cycle.commonReset(h,g,f);f.cssBefore.left=e?(g.cycleW-1):(1-g.cycleW);f.animOut.left=e?-h.cycleW:h.cycleW});b.cssFirst={left:0};b.cssBefore={top:0};b.animIn={left:0};b.animOut={top:0}};a.fn.cycle.transitions.scrollVert=function(c,d,b){c.css("overflow","hidden");b.before.push(function(h,g,f,e){a.fn.cycle.commonReset(h,g,f);f.cssBefore.top=e?(1-g.cycleH):(g.cycleH-1);f.animOut.top=e?h.cycleH:-h.cycleH});b.cssFirst={top:0};b.cssBefore={left:0};b.animIn={top:0};b.animOut={left:0}};a.fn.cycle.transitions.slideX=function(c,d,b){b.before.push(function(g,f,e){a(e.elements).not(g).hide();a.fn.cycle.commonReset(g,f,e,false,true);e.animIn.width=f.cycleW});b.cssBefore={left:0,top:0,width:0};b.animIn={width:"show"};b.animOut={width:0}};a.fn.cycle.transitions.slideY=function(c,d,b){b.before.push(function(g,f,e){a(e.elements).not(g).hide();a.fn.cycle.commonReset(g,f,e,true,false);e.animIn.height=f.cycleH});b.cssBefore={left:0,top:0,height:0};b.animIn={height:"show"};b.animOut={height:0}};a.fn.cycle.transitions.shuffle=function(c,e,b){var f,d=c.css("overflow","visible").width();e.css({left:0,top:0});b.before.push(function(i,h,g){a.fn.cycle.commonReset(i,h,g,true,true,true)});if(!b.speedAdjusted){b.speed=b.speed/2;b.speedAdjusted=true}b.random=0;b.shuffle=b.shuffle||{left:-d,top:15};b.els=[];for(f=0;f<e.length;f++){b.els.push(e[f])}for(f=0;f<b.currSlide;f++){b.els.push(b.els.shift())}b.fxFn=function(j,i,k,m,l){var g=l?a(j):a(i);a(i).css(k.cssBefore);var h=k.slideCount;g.animate(k.shuffle,k.speedIn,k.easeIn,function(){var o=a.fn.cycle.hopsFromLast(k,l);for(var q=0;q<o;q++){l?k.els.push(k.els.shift()):k.els.unshift(k.els.pop())}if(l){for(var s=0,r=k.els.length;s<r;s++){a(k.els[s]).css("z-index",r-s+h)}}else{var n=a(j).css("z-index");g.css("z-index",parseInt(n)+1+h)}g.animate({left:0,top:0},k.speedOut,k.easeOut,function(){a(l?this:j).hide();if(m){m()}})})};b.cssBefore={display:"block",opacity:1,top:0,left:0}};a.fn.cycle.transitions.turnUp=function(c,d,b){b.before.push(function(g,f,e){a.fn.cycle.commonReset(g,f,e,true,false);e.cssBefore.top=f.cycleH;e.animIn.height=f.cycleH});b.cssFirst={top:0};b.cssBefore={left:0,height:0};b.animIn={top:0};b.animOut={height:0}};a.fn.cycle.transitions.turnDown=function(c,d,b){b.before.push(function(g,f,e){a.fn.cycle.commonReset(g,f,e,true,false);e.animIn.height=f.cycleH;e.animOut.top=g.cycleH});b.cssFirst={top:0};b.cssBefore={left:0,top:0,height:0};b.animOut={height:0}};a.fn.cycle.transitions.turnLeft=function(c,d,b){b.before.push(function(g,f,e){a.fn.cycle.commonReset(g,f,e,false,true);e.cssBefore.left=f.cycleW;e.animIn.width=f.cycleW});b.cssBefore={top:0,width:0};b.animIn={left:0};b.animOut={width:0}};a.fn.cycle.transitions.turnRight=function(c,d,b){b.before.push(function(g,f,e){a.fn.cycle.commonReset(g,f,e,false,true);e.animIn.width=f.cycleW;e.animOut.left=g.cycleW});b.cssBefore={top:0,left:0,width:0};b.animIn={left:0};b.animOut={width:0}};a.fn.cycle.transitions.zoom=function(c,d,b){b.before.push(function(g,f,e){a.fn.cycle.commonReset(g,f,e,false,false,true);e.cssBefore.top=f.cycleH/2;e.cssBefore.left=f.cycleW/2;e.animIn={top:0,left:0,width:f.cycleW,height:f.cycleH};e.animOut={width:0,height:0,top:g.cycleH/2,left:g.cycleW/2}});b.cssFirst={top:0,left:0};b.cssBefore={width:0,height:0}};a.fn.cycle.transitions.fadeZoom=function(c,d,b){b.before.push(function(g,f,e){a.fn.cycle.commonReset(g,f,e,false,false);e.cssBefore.left=f.cycleW/2;e.cssBefore.top=f.cycleH/2;e.animIn={top:0,left:0,width:f.cycleW,height:f.cycleH}});b.cssBefore={width:0,height:0};b.animOut={opacity:0}};a.fn.cycle.transitions.blindX=function(c,d,b){var e=c.css("overflow","hidden").width();b.before.push(function(h,g,f){a.fn.cycle.commonReset(h,g,f);f.animIn.width=g.cycleW;f.animOut.left=h.cycleW});b.cssBefore={left:e,top:0};b.animIn={left:0};b.animOut={left:e}};a.fn.cycle.transitions.blindY=function(d,e,c){var b=d.css("overflow","hidden").height();c.before.push(function(h,g,f){a.fn.cycle.commonReset(h,g,f);f.animIn.height=g.cycleH;f.animOut.top=h.cycleH});c.cssBefore={top:b,left:0};c.animIn={top:0};c.animOut={top:b}};a.fn.cycle.transitions.blindZ=function(d,e,c){var b=d.css("overflow","hidden").height();var f=d.width();c.before.push(function(i,h,g){a.fn.cycle.commonReset(i,h,g);g.animIn.height=h.cycleH;g.animOut.top=i.cycleH});c.cssBefore={top:b,left:f};c.animIn={top:0,left:0};c.animOut={top:b,left:f}};a.fn.cycle.transitions.growX=function(c,d,b){b.before.push(function(g,f,e){a.fn.cycle.commonReset(g,f,e,false,true);e.cssBefore.left=this.cycleW/2;e.animIn={left:0,width:this.cycleW};e.animOut={left:0}});b.cssBefore={width:0,top:0}};a.fn.cycle.transitions.growY=function(c,d,b){b.before.push(function(g,f,e){a.fn.cycle.commonReset(g,f,e,true,false);e.cssBefore.top=this.cycleH/2;e.animIn={top:0,height:this.cycleH};e.animOut={top:0}});b.cssBefore={height:0,left:0}};a.fn.cycle.transitions.curtainX=function(c,d,b){b.before.push(function(g,f,e){a.fn.cycle.commonReset(g,f,e,false,true,true);e.cssBefore.left=f.cycleW/2;e.animIn={left:0,width:this.cycleW};e.animOut={left:g.cycleW/2,width:0}});b.cssBefore={top:0,width:0}};a.fn.cycle.transitions.curtainY=function(c,d,b){b.before.push(function(g,f,e){a.fn.cycle.commonReset(g,f,e,true,false,true);e.cssBefore.top=f.cycleH/2;e.animIn={top:0,height:f.cycleH};e.animOut={top:g.cycleH/2,height:0}});b.cssBefore={left:0,height:0}};a.fn.cycle.transitions.cover=function(e,c,f){var g=f.direction||"left";var i=e.css("overflow","hidden").width();var b=e.height();f.before.push(function(j,h,d){a.fn.cycle.commonReset(j,h,d);if(g=="right"){d.cssBefore.left=-i}else{if(g=="up"){d.cssBefore.top=b}else{if(g=="down"){d.cssBefore.top=-b}else{d.cssBefore.left=i}}}});f.animIn={left:0,top:0};f.animOut={opacity:1};f.cssBefore={top:0,left:0}};a.fn.cycle.transitions.uncover=function(e,c,f){var g=f.direction||"left";var i=e.css("overflow","hidden").width();var b=e.height();f.before.push(function(j,h,d){a.fn.cycle.commonReset(j,h,d,true,true,true);if(g=="right"){d.animOut.left=i}else{if(g=="up"){d.animOut.top=-b}else{if(g=="down"){d.animOut.top=b}else{d.animOut.left=-i}}}});f.animIn={left:0,top:0};f.animOut={opacity:1};f.cssBefore={top:0,left:0}};a.fn.cycle.transitions.toss=function(d,e,c){var f=d.css("overflow","visible").width();var b=d.height();c.before.push(function(i,h,g){a.fn.cycle.commonReset(i,h,g,true,true,true);if(!g.animOut.left&&!g.animOut.top){g.animOut={left:f*2,top:-b/2,opacity:0}}else{g.animOut.opacity=0}});c.cssBefore={left:0,top:0};c.animIn={left:0}};a.fn.cycle.transitions.wipe=function(n,u,c){var j=n.css("overflow","hidden").width();var k=n.height();c.cssBefore=c.cssBefore||{};var e;if(c.clip){if(/l2r/.test(c.clip)){e="rect(0px 0px "+k+"px 0px)"}else{if(/r2l/.test(c.clip)){e="rect(0px "+j+"px "+k+"px "+j+"px)"}else{if(/t2b/.test(c.clip)){e="rect(0px "+j+"px 0px 0px)"}else{if(/b2t/.test(c.clip)){e="rect("+k+"px "+j+"px "+k+"px 0px)"}else{if(/zoom/.test(c.clip)){var f=parseInt(k/2);var s=parseInt(j/2);e="rect("+f+"px "+s+"px "+f+"px "+s+"px)"}}}}}}c.cssBefore.clip=c.cssBefore.clip||e||"rect(0px 0px 0px 0px)";var q=c.cssBefore.clip.match(/(\d+)/g);var i=parseInt(q[0]),g=parseInt(q[1]),o=parseInt(q[2]),m=parseInt(q[3]);c.before.push(function(r,l,b){if(r==l){return}var t=a(r),v=a(l);a.fn.cycle.commonReset(r,l,b,true,true,false);b.cssAfter.display="block";var h=1,d=parseInt((b.speedIn/13))-1;(function w(){var A=i?i-parseInt(h*(i/d)):0;var y=m?m-parseInt(h*(m/d)):0;var z=o<k?o+parseInt(h*((k-o)/d||1)):k;var x=g<j?g+parseInt(h*((j-g)/d||1)):j;v.css({clip:"rect("+A+"px "+x+"px "+z+"px "+y+"px)"});(h++<=d)?setTimeout(w,13):t.css("display","none")})()});c.cssBefore={display:"block",opacity:1,top:0,left:0};c.animIn={left:0};c.animOut={left:0}}})(jQuery);(function(a){a.fn.form_prompt=b;function b(g,f){var d="";f=f||{};if(a.isFunction(g)){d=g.call(this)}else{d=g}var e=f.className||"watermark";var c=f.wrapperClassName||"form-prompt-wrapper";return this.each(function(){var h=a(this);var k=a('<div style="position:relative; float: left;" />');if((a.browser.safari)||(a.browser.webkit)||((a.browser.mozilla)&&(a.browser.version>="2"))){h.attr("placeholder",d);return}var i=k.attr("class");h.wrap(k.addClass(c));k.attr("class",i);if(h.val()==""){h.after("<div class='"+e+"'>"+d+"</div>")}else{h.after("<div class='"+e+"'></div>")}var k=h.parent("."+c);var j=k.find("."+e);j.css("position","absolute");j.css("top","7px");j.css("left","6px");j.css("z-index","1000");j.css("margin-left",h.css("margin-left"));j.css("margin-top",h.css("margin-top"));var l=function(){h.focus();j.hide()};h.click(l);h.keyup(l);j.click(l);h.blur(function(){if(h.val()==""){j.show()}})})}})(jQuery);function reload(){document.location.reload()}function reloadStatus(){Sys.Mvc.MvcHelpers.$2("/maps-and-schedules/myride/login/status","GET","",null,{insertionMode:Sys.Mvc.InsertionMode.replace,updateTargetId:"cumtd_headerbarLogin"})}function reloadMyRideWidget(){var a=document.getElementById("cumtd_widgetMyride");if(a){Sys.Mvc.MvcHelpers.$2("/maps-and-schedules/myride/login/widget","GET","",null,{insertionMode:Sys.Mvc.InsertionMode.replace,updateTargetId:"cumtd_widgetMyride"})}reloadFavoriteStar()}function reloadFavoriteStar(){var a=document.getElementById("FavoriteStar");if(a){reload()}}function reloadStopSearch(){var a=$("#searchQuery").attr("value");var b=$("#searchPage").attr("value");Sys.Mvc.MvcHelpers.$2("/maps-and-schedules/myride/favorites/search?query="+a+"&page="+b,"GET","",null,{insertionMode:Sys.Mvc.InsertionMode.replace,updateTargetId:"SearchResults"});reloadMyRideWidget()};$(document).ready(function(){$(".watermarked").each(function(){$(this).form_prompt(function(){return $(this).attr("placeholder")})})});var timeDiff;function startClock(e,a,g,f,b,c){var h=new Date();var d=new Date();d.setYear(e);d.setMonth(a);d.setDate(g);d.setHours(f);d.setMinutes(b);d.setSeconds(c);timeDiff=d.getTime()-h.getTime();renderClock();setInterval("renderClock()",1000)}function renderClock(){var e=new Date();e.setTime(e.getTime()+timeDiff);var d=e.getHours();var c=e.getMinutes();c=((c<10)?"0"+c:c);var a=e.getSeconds();a=((a<10)?"0"+a:a);var b=((d<12)?"am":"pm");d=((d<=12)?((d==0)?12:d):d-12);$("#cumtd_headerbarTimeText").html(d+":"+c+":"+a+" "+b)};$(document).ready(function(){$(".interior_collapseBar a").click(function(){var a=$(this);a.parent().next().slideToggle();a.toggleClass("interior_collapseCloseButton");a.toggleClass("interior_collapseOpenButton")})});function faqSlideToggle(a){$(a).slideToggle()}function faqToggleAnchor(a){a=$(a);a.toggleClass("interior_collapseCloseButton");a.toggleClass("interior_collapseOpenButton")};
