(function(a){function g(b){a.fn.cycle.debug&&m(b)}function m(){window.console&&window.console.log&&window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function e(b,c,h){function n(s,r,w){if(!s&&r===true){s=a(w).data("cycle.opts");if(!s){m("options not found, can not resume");return false}if(w.cycleTimeout){clearTimeout(w.cycleTimeout);w.cycleTimeout=0}q(s.elements,s,1,!o.rev&&!o.backwards)}}if(b.cycleStop==undefined)b.cycleStop=0;if(c===undefined||c===null)c={};if(c.constructor==
String){switch(c){case "destroy":case "stop":var o=a(b).data("cycle.opts");if(!o)return false;b.cycleStop++;b.cycleTimeout&&clearTimeout(b.cycleTimeout);b.cycleTimeout=0;a(b).removeData("cycle.opts");c=="destroy"&&k(o);return false;case "toggle":b.cyclePause=b.cyclePause===1?0:1;n(b.cyclePause,h,b);return false;case "pause":b.cyclePause=1;return false;case "resume":b.cyclePause=0;n(false,h,b);return false;case "prev":case "next":o=a(b).data("cycle.opts");if(!o){m('options not found, "prev/next" ignored');
return false}a.fn.cycle[c](o);return false;default:c={fx:c}}return c}else if(c.constructor==Number){var d=c;c=a(b).data("cycle.opts");if(!c){m("options not found, can not advance slide");return false}if(d<0||d>=c.elements.length){m("invalid slide index: "+d);return false}c.nextSlide=d;if(b.cycleTimeout){clearTimeout(b.cycleTimeout);b.cycleTimeout=0}if(typeof h=="string")c.oneTimeFx=h;q(c.elements,c,1,d>=c.currSlide);return false}return c}function i(b,c){if(!a.support.opacity&&c.cleartype&&b.style.filter)try{b.style.removeAttribute("filter")}catch(h){}}
function k(b){b.next&&a(b.next).unbind(b.prevNextEvent);b.prev&&a(b.prev).unbind(b.prevNextEvent);if(b.pager||b.pagerAnchorBuilder)a.each(b.pagerAnchors||[],function(){this.unbind().remove()});b.pagerAnchors=null;b.destroy&&b.destroy(b)}function j(b,c,h,n,o){var d=a.extend({},a.fn.cycle.defaults,n||{},a.metadata?b.metadata():a.meta?b.data():{});if(d.autostop)d.countdown=d.autostopCount||h.length;var s=b[0];b.data("cycle.opts",d);d.$cont=b;d.stopCount=s.cycleStop;d.elements=h;d.before=d.before?[d.before]:
[];d.after=d.after?[d.after]:[];d.after.unshift(function(){d.busy=0});!a.support.opacity&&d.cleartype&&d.after.push(function(){i(this,d)});d.continuous&&d.after.push(function(){q(h,d,0,!d.rev&&!d.backwards)});f(d);!a.support.opacity&&d.cleartype&&!d.cleartypeNoBg&&y(c);b.css("position")=="static"&&b.css("position","relative");d.width&&b.width(d.width);d.height&&d.height!="auto"&&b.height(d.height);if(d.startingSlide)d.startingSlide=parseInt(d.startingSlide);else if(d.backwards)d.startingSlide=h.length-
1;if(d.random){d.randomMap=[];for(s=0;s<h.length;s++)d.randomMap.push(s);d.randomMap.sort(function(){return Math.random()-0.5});d.randomIndex=1;d.startingSlide=d.randomMap[1]}else if(d.startingSlide>=h.length)d.startingSlide=0;d.currSlide=d.startingSlide||0;var r=d.startingSlide;c.css({position:"absolute",top:0,left:0}).hide().each(function(x){x=d.backwards?r?x<=r?h.length+(x-r):r-x:h.length-x:r?x>=r?h.length-(x-r):r-x:h.length-x;a(this).css("z-index",x)});a(h[r]).css("opacity",1).show();i(h[r],d);
d.fit&&d.width&&c.width(d.width);d.fit&&d.height&&d.height!="auto"&&c.height(d.height);if(d.containerResize&&!b.innerHeight()){for(var w=s=0,z=0;z<h.length;z++){var A=a(h[z]),B=A[0],C=A.outerWidth(),D=A.outerHeight();C||(C=B.offsetWidth||B.width||A.attr("width"));D||(D=B.offsetHeight||B.height||A.attr("height"));s=C>s?C:s;w=D>w?D:w}s>0&&w>0&&b.css({width:s+"px",height:w+"px"})}d.pause&&b.hover(function(){this.cyclePause++},function(){this.cyclePause--});if(l(d)===false)return false;var E=false;n.requeueAttempts=
n.requeueAttempts||0;c.each(function(){var x=a(this);this.cycleH=d.fit&&d.height?d.height:x.height()||this.offsetHeight||this.height||x.attr("height")||0;this.cycleW=d.fit&&d.width?d.width:x.width()||this.offsetWidth||this.width||x.attr("width")||0;if(x.is("img")){x=a.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete;var F=a.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,G=this.cycleH==0&&this.cycleW==0&&!this.complete;if(a.browser.msie&&
this.cycleW==28&&this.cycleH==30&&!this.complete||x||F||G)if(o.s&&d.requeueOnImageNotLoaded&&++n.requeueAttempts<100){m(n.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){a(o.s,o.c).cycle(n)},d.requeueTimeout);E=true;return false}else m("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}return true});if(E)return false;d.cssBefore=d.cssBefore||{};d.animIn=d.animIn||{};d.animOut=d.animOut||{};c.not(":eq("+r+
")").css(d.cssBefore);d.cssFirst&&a(c[r]).css(d.cssFirst);if(d.timeout){d.timeout=parseInt(d.timeout);if(d.speed.constructor==String)d.speed=a.fx.speeds[d.speed]||parseInt(d.speed);d.sync||(d.speed/=2);for(s=d.fx=="shuffle"?500:250;d.timeout-d.speed<s;)d.timeout+=d.speed}if(d.easing)d.easeIn=d.easeOut=d.easing;if(!d.speedIn)d.speedIn=d.speed;if(!d.speedOut)d.speedOut=d.speed;d.slideCount=h.length;d.currSlide=d.lastSlide=r;if(d.random){if(++d.randomIndex==h.length)d.randomIndex=0;d.nextSlide=d.randomMap[d.randomIndex]}else d.nextSlide=
d.backwards?d.startingSlide==0?h.length-1:d.startingSlide-1:d.startingSlide>=h.length-1?0:d.startingSlide+1;if(!d.multiFx){s=a.fn.cycle.transitions[d.fx];if(a.isFunction(s))s(b,c,d);else if(d.fx!="custom"&&!d.multiFx){m("unknown transition: "+d.fx,"; slideshow terminating");return false}}b=c[r];d.before.length&&d.before[0].apply(b,[b,b,d,true]);d.after.length>1&&d.after[1].apply(b,[b,b,d,true]);d.next&&a(d.next).bind(d.prevNextEvent,function(){return u(d,d.rev?-1:1)});d.prev&&a(d.prev).bind(d.prevNextEvent,
function(){return u(d,d.rev?1:-1)});if(d.pager||d.pagerAnchorBuilder)v(h,d);p(d,h);return d}function f(b){b.original={before:[],after:[]};b.original.cssBefore=a.extend({},b.cssBefore);b.original.cssAfter=a.extend({},b.cssAfter);b.original.animIn=a.extend({},b.animIn);b.original.animOut=a.extend({},b.animOut);a.each(b.before,function(){b.original.before.push(this)});a.each(b.after,function(){b.original.after.push(this)})}function l(b){var c,h,n=a.fn.cycle.transitions;if(b.fx.indexOf(",")>0){b.multiFx=
true;b.fxs=b.fx.replace(/\s*/g,"").split(",");for(c=0;c<b.fxs.length;c++){var o=b.fxs[c];h=n[o];if(!h||!n.hasOwnProperty(o)||!a.isFunction(h)){m("discarding unknown transition: ",o);b.fxs.splice(c,1);c--}}if(!b.fxs.length){m("No valid transitions named; slideshow terminating.");return false}}else if(b.fx=="all"){b.multiFx=true;b.fxs=[];for(c in n){h=n[c];n.hasOwnProperty(c)&&a.isFunction(h)&&b.fxs.push(c)}}if(b.multiFx&&b.randomizeEffects){h=Math.floor(Math.random()*20)+30;for(c=0;c<h;c++)b.fxs.push(b.fxs.splice(Math.floor(Math.random()*
b.fxs.length),1)[0]);g("randomized fx sequence: ",b.fxs)}return true}function p(b,c){b.addSlide=function(h,n){var o=a(h),d=o[0];b.autostopCount||b.countdown++;c[n?"unshift":"push"](d);if(b.els)b.els[n?"unshift":"push"](d);b.slideCount=c.length;o.css("position","absolute");o[n?"prependTo":"appendTo"](b.$cont);if(n){b.currSlide++;b.nextSlide++}!a.support.opacity&&b.cleartype&&!b.cleartypeNoBg&&y(o);b.fit&&b.width&&o.width(b.width);b.fit&&b.height&&b.height!="auto"&&o.height(b.height);d.cycleH=b.fit&&
b.height?b.height:o.height();d.cycleW=b.fit&&b.width?b.width:o.width();o.css(b.cssBefore);if(b.pager||b.pagerAnchorBuilder)a.fn.cycle.createPagerAnchor(c.length-1,d,a(b.pager),c,b);a.isFunction(b.onAddSlide)?b.onAddSlide(o):o.hide()}}function q(b,c,h,n){if(h&&c.busy&&c.manualTrump){g("manualTrump in go(), stopping active transition");a(b).stop(true,true);c.busy=false}if(c.busy)g("transition active, ignoring new tx request");else{var o=c.$cont[0],d=b[c.currSlide],s=b[c.nextSlide];if(!(o.cycleStop!=
c.stopCount||o.cycleTimeout===0&&!h))if(!h&&!o.cyclePause&&!c.bounce&&(c.autostop&&--c.countdown<=0||c.nowrap&&!c.random&&c.nextSlide<c.currSlide))c.end&&c.end(c);else{var r=false;if((h||!o.cyclePause)&&c.nextSlide!=c.currSlide){r=true;var w=c.fx;d.cycleH=d.cycleH||a(d).height();d.cycleW=d.cycleW||a(d).width();s.cycleH=s.cycleH||a(s).height();s.cycleW=s.cycleW||a(s).width();if(c.multiFx){if(c.lastFx==undefined||++c.lastFx>=c.fxs.length)c.lastFx=0;w=c.fxs[c.lastFx];c.currFx=w}if(c.oneTimeFx){w=c.oneTimeFx;
c.oneTimeFx=null}a.fn.cycle.resetState(c,w);c.before.length&&a.each(c.before,function(z,A){o.cycleStop==c.stopCount&&A.apply(s,[d,s,c,n])});w=function(){a.each(c.after,function(z,A){o.cycleStop==c.stopCount&&A.apply(s,[d,s,c,n])})};g("tx firing; currSlide: "+c.currSlide+"; nextSlide: "+c.nextSlide);c.busy=1;if(c.fxFn)c.fxFn(d,s,c,w,n,h&&c.fastOnEvent);else a.isFunction(a.fn.cycle[c.fx])?a.fn.cycle[c.fx](d,s,c,w,n,h&&c.fastOnEvent):a.fn.cycle.custom(d,s,c,w,n,h&&c.fastOnEvent)}if(r||c.nextSlide==c.currSlide){c.lastSlide=
c.currSlide;if(c.random){c.currSlide=c.nextSlide;if(++c.randomIndex==b.length)c.randomIndex=0;c.nextSlide=c.randomMap[c.randomIndex];if(c.nextSlide==c.currSlide)c.nextSlide=c.currSlide==c.slideCount-1?0:c.currSlide+1}else if(c.backwards)if((h=c.nextSlide-1<0)&&c.bounce){c.backwards=!c.backwards;c.nextSlide=1;c.currSlide=0}else{c.nextSlide=h?b.length-1:c.nextSlide-1;c.currSlide=h?0:c.nextSlide+1}else if((h=c.nextSlide+1==b.length)&&c.bounce){c.backwards=!c.backwards;c.nextSlide=b.length-2;c.currSlide=
b.length-1}else{c.nextSlide=h?0:c.nextSlide+1;c.currSlide=h?b.length-1:c.nextSlide-1}}r&&c.pager&&c.updateActivePagerLink(c.pager,c.currSlide,c.activePagerClass);r=0;if(c.timeout&&!c.continuous)r=t(b[c.currSlide],b[c.nextSlide],c,n);else if(c.continuous&&o.cyclePause)r=10;if(r>0)o.cycleTimeout=setTimeout(function(){q(b,c,0,!c.rev&&!c.backwards)},r)}}}function t(b,c,h,n){if(h.timeoutFn){for(b=h.timeoutFn.call(b,b,c,h,n);b-h.speed<250;)b+=h.speed;g("calculated timeout: "+b+"; speed: "+h.speed);if(b!==
false)return b}return h.timeout}function u(b,c){var h=b.elements,n=b.$cont[0],o=n.cycleTimeout;if(o){clearTimeout(o);n.cycleTimeout=0}if(b.random&&c<0){b.randomIndex--;if(--b.randomIndex==-2)b.randomIndex=h.length-2;else if(b.randomIndex==-1)b.randomIndex=h.length-1;b.nextSlide=b.randomMap[b.randomIndex]}else if(b.random)b.nextSlide=b.randomMap[b.randomIndex];else{b.nextSlide=b.currSlide+c;if(b.nextSlide<0){if(b.nowrap)return false;b.nextSlide=h.length-1}else if(b.nextSlide>=h.length){if(b.nowrap)return false;
b.nextSlide=0}}n=b.onPrevNextEvent||b.prevNextClick;a.isFunction(n)&&n(c>0,b.nextSlide,h[b.nextSlide]);q(h,b,1,c>=0);return false}function v(b,c){var h=a(c.pager);a.each(b,function(n,o){a.fn.cycle.createPagerAnchor(n,o,h,b,c)});c.updateActivePagerLink(c.pager,c.startingSlide,c.activePagerClass)}function y(b){function c(n){n=parseInt(n).toString(16);return n.length<2?"0"+n:n}function h(n){for(;n&&n.nodeName.toLowerCase()!="html";n=n.parentNode){var o=a.css(n,"background-color");if(o.indexOf("rgb")>=
0){n=o.match(/\d+/g);return"#"+c(n[0])+c(n[1])+c(n[2])}if(o&&o!="transparent")return o}return"#ffffff"}g("applying clearType background-color hack");b.each(function(){a(this).css("background-color",h(this))})}if(a.support==undefined)a.support={opacity:!a.browser.msie};a.fn.cycle=function(b,c){var h={s:this.selector,c:this.context};if(this.length===0&&b!="stop"){if(!a.isReady&&h.s){m("DOM not ready, queuing slideshow");a(function(){a(h.s,h.c).cycle(b,c)});return this}m("terminating; zero elements found by selector"+
(a.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var n=e(this,b,c);if(n!==false){n.updateActivePagerLink=n.updateActivePagerLink||a.fn.cycle.updateActivePagerLink;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var o=a(this),d=n.slideExpr?a(n.slideExpr,this):o.children(),s=d.get();if(s.length<2)m("terminating; too few slides: "+s.length);else{var r=j(o,d,s,n,h);if(r!==false)if(o=r.continuous?10:t(s[r.currSlide],s[r.nextSlide],r,!r.rev)){o+=
r.delay||0;if(o<10)o=10;g("first timeout: "+o);this.cycleTimeout=setTimeout(function(){q(s,r,0,!r.rev&&!n.backwards)},o)}}}})};a.fn.cycle.resetState=function(b,c){c=c||b.fx;b.before=[];b.after=[];b.cssBefore=a.extend({},b.original.cssBefore);b.cssAfter=a.extend({},b.original.cssAfter);b.animIn=a.extend({},b.original.animIn);b.animOut=a.extend({},b.original.animOut);b.fxFn=null;a.each(b.original.before,function(){b.before.push(this)});a.each(b.original.after,function(){b.after.push(this)});var h=a.fn.cycle.transitions[c];
a.isFunction(h)&&h(b.$cont,a(b.elements),b)};a.fn.cycle.updateActivePagerLink=function(b,c,h){a(b).each(function(){a(this).children().removeClass(h).eq(c).addClass(h)})};a.fn.cycle.next=function(b){u(b,b.rev?-1:1)};a.fn.cycle.prev=function(b){u(b,b.rev?1:-1)};a.fn.cycle.createPagerAnchor=function(b,c,h,n,o){if(a.isFunction(o.pagerAnchorBuilder)){c=o.pagerAnchorBuilder(b,c);g("pagerAnchorBuilder("+b+", el) returned: "+c)}else c='<a href="#">'+(b+1)+"</a>";if(c){var d=a(c);if(d.parents("body").length===
0){var s=[];if(h.length>1){h.each(function(){var r=d.clone(true);a(this).append(r);s.push(r[0])});d=a(s)}else d.appendTo(h)}o.pagerAnchors=o.pagerAnchors||[];o.pagerAnchors.push(d);d.bind(o.pagerEvent,function(r){r.preventDefault();o.nextSlide=b;r=o.$cont[0];var w=r.cycleTimeout;if(w){clearTimeout(w);r.cycleTimeout=0}r=o.onPagerEvent||o.pagerClick;a.isFunction(r)&&r(o.nextSlide,n[o.nextSlide]);q(n,o,1,o.currSlide<b)});!/^click/.test(o.pagerEvent)&&!o.allowPagerClickBubble&&d.bind("click.cycle",function(){return false});
o.pauseOnPagerHover&&d.hover(function(){o.$cont[0].cyclePause++},function(){o.$cont[0].cyclePause--})}};a.fn.cycle.hopsFromLast=function(b,c){var h=b.lastSlide,n=b.currSlide;return c?n>h?n-h:b.slideCount-h:n<h?h-n:h+b.slideCount-n};a.fn.cycle.commonReset=function(b,c,h,n,o,d){a(h.elements).not(b).hide();h.cssBefore.opacity=1;h.cssBefore.display="block";if(n!==false&&c.cycleW>0)h.cssBefore.width=c.cycleW;if(o!==false&&c.cycleH>0)h.cssBefore.height=c.cycleH;h.cssAfter=h.cssAfter||{};h.cssAfter.display=
"none";a(b).css("zIndex",h.slideCount+(d===true?1:0));a(c).css("zIndex",h.slideCount+(d===true?0:1))};a.fn.cycle.custom=function(b,c,h,n,o,d){var s=a(b),r=a(c),w=h.speedIn;b=h.speedOut;var z=h.easeIn;c=h.easeOut;r.css(h.cssBefore);if(d){w=typeof d=="number"?b=d:b=1;z=c=null}s.animate(h.animOut,b,c,function(){h.cssAfter&&s.css(h.cssAfter);h.sync||r.animate(h.animIn,w,z,n)});h.sync&&r.animate(h.animIn,w,z,n)};a.fn.cycle.transitions={fade:function(b,c,h){c.not(":eq("+h.currSlide+")").css("opacity",0);
h.before.push(function(n,o,d){a.fn.cycle.commonReset(n,o,d);d.cssBefore.opacity=0});h.animIn={opacity:1};h.animOut={opacity:0};h.cssBefore={top:0,left:0}}};a.fn.cycle.ver=function(){return"2.88"};a.fn.cycle.defaults={fx:"fade",timeout:4E3,timeoutFn:null,continuous:0,speed:1E3,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:!a.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);
(function(a){a.fn.cycle.transitions.none=function(g,m,e){e.fxFn=function(i,k,j,f){a(k).show();a(i).hide();f()}};a.fn.cycle.transitions.scrollUp=function(g,m,e){g.css("overflow","hidden");e.before.push(a.fn.cycle.commonReset);g=g.height();e.cssBefore={top:g,left:0};e.cssFirst={top:0};e.animIn={top:0};e.animOut={top:-g}};a.fn.cycle.transitions.scrollDown=function(g,m,e){g.css("overflow","hidden");e.before.push(a.fn.cycle.commonReset);g=g.height();e.cssFirst={top:0};e.cssBefore={top:-g,left:0};e.animIn=
{top:0};e.animOut={top:g}};a.fn.cycle.transitions.scrollLeft=function(g,m,e){g.css("overflow","hidden");e.before.push(a.fn.cycle.commonReset);g=g.width();e.cssFirst={left:0};e.cssBefore={left:g,top:0};e.animIn={left:0};e.animOut={left:0-g}};a.fn.cycle.transitions.scrollRight=function(g,m,e){g.css("overflow","hidden");e.before.push(a.fn.cycle.commonReset);g=g.width();e.cssFirst={left:0};e.cssBefore={left:-g,top:0};e.animIn={left:0};e.animOut={left:g}};a.fn.cycle.transitions.scrollHorz=function(g,m,
e){g.css("overflow","hidden").width();e.before.push(function(i,k,j,f){a.fn.cycle.commonReset(i,k,j);j.cssBefore.left=f?k.cycleW-1:1-k.cycleW;j.animOut.left=f?-i.cycleW:i.cycleW});e.cssFirst={left:0};e.cssBefore={top:0};e.animIn={left:0};e.animOut={top:0}};a.fn.cycle.transitions.scrollVert=function(g,m,e){g.css("overflow","hidden");e.before.push(function(i,k,j,f){a.fn.cycle.commonReset(i,k,j);j.cssBefore.top=f?1-k.cycleH:k.cycleH-1;j.animOut.top=f?i.cycleH:-i.cycleH});e.cssFirst={top:0};e.cssBefore=
{left:0};e.animIn={top:0};e.animOut={left:0}};a.fn.cycle.transitions.slideX=function(g,m,e){e.before.push(function(i,k,j){a(j.elements).not(i).hide();a.fn.cycle.commonReset(i,k,j,false,true);j.animIn.width=k.cycleW});e.cssBefore={left:0,top:0,width:0};e.animIn={width:"show"};e.animOut={width:0}};a.fn.cycle.transitions.slideY=function(g,m,e){e.before.push(function(i,k,j){a(j.elements).not(i).hide();a.fn.cycle.commonReset(i,k,j,true,false);j.animIn.height=k.cycleH});e.cssBefore={left:0,top:0,height:0};
e.animIn={height:"show"};e.animOut={height:0}};a.fn.cycle.transitions.shuffle=function(g,m,e){g=g.css("overflow","visible").width();m.css({left:0,top:0});e.before.push(function(i,k,j){a.fn.cycle.commonReset(i,k,j,true,true,true)});if(!e.speedAdjusted){e.speed/=2;e.speedAdjusted=true}e.random=0;e.shuffle=e.shuffle||{left:-g,top:15};e.els=[];for(g=0;g<m.length;g++)e.els.push(m[g]);for(g=0;g<e.currSlide;g++)e.els.push(e.els.shift());e.fxFn=function(i,k,j,f,l){var p=l?a(i):a(k);a(k).css(j.cssBefore);
var q=j.slideCount;p.animate(j.shuffle,j.speedIn,j.easeIn,function(){for(var t=a.fn.cycle.hopsFromLast(j,l),u=0;u<t;u++)l?j.els.push(j.els.shift()):j.els.unshift(j.els.pop());if(l){t=0;for(u=j.els.length;t<u;t++)a(j.els[t]).css("z-index",u-t+q)}else{t=a(i).css("z-index");p.css("z-index",parseInt(t)+1+q)}p.animate({left:0,top:0},j.speedOut,j.easeOut,function(){a(l?this:i).hide();f&&f()})})};e.cssBefore={display:"block",opacity:1,top:0,left:0}};a.fn.cycle.transitions.turnUp=function(g,m,e){e.before.push(function(i,
k,j){a.fn.cycle.commonReset(i,k,j,true,false);j.cssBefore.top=k.cycleH;j.animIn.height=k.cycleH});e.cssFirst={top:0};e.cssBefore={left:0,height:0};e.animIn={top:0};e.animOut={height:0}};a.fn.cycle.transitions.turnDown=function(g,m,e){e.before.push(function(i,k,j){a.fn.cycle.commonReset(i,k,j,true,false);j.animIn.height=k.cycleH;j.animOut.top=i.cycleH});e.cssFirst={top:0};e.cssBefore={left:0,top:0,height:0};e.animOut={height:0}};a.fn.cycle.transitions.turnLeft=function(g,m,e){e.before.push(function(i,
k,j){a.fn.cycle.commonReset(i,k,j,false,true);j.cssBefore.left=k.cycleW;j.animIn.width=k.cycleW});e.cssBefore={top:0,width:0};e.animIn={left:0};e.animOut={width:0}};a.fn.cycle.transitions.turnRight=function(g,m,e){e.before.push(function(i,k,j){a.fn.cycle.commonReset(i,k,j,false,true);j.animIn.width=k.cycleW;j.animOut.left=i.cycleW});e.cssBefore={top:0,left:0,width:0};e.animIn={left:0};e.animOut={width:0}};a.fn.cycle.transitions.zoom=function(g,m,e){e.before.push(function(i,k,j){a.fn.cycle.commonReset(i,
k,j,false,false,true);j.cssBefore.top=k.cycleH/2;j.cssBefore.left=k.cycleW/2;j.animIn={top:0,left:0,width:k.cycleW,height:k.cycleH};j.animOut={width:0,height:0,top:i.cycleH/2,left:i.cycleW/2}});e.cssFirst={top:0,left:0};e.cssBefore={width:0,height:0}};a.fn.cycle.transitions.fadeZoom=function(g,m,e){e.before.push(function(i,k,j){a.fn.cycle.commonReset(i,k,j,false,false);j.cssBefore.left=k.cycleW/2;j.cssBefore.top=k.cycleH/2;j.animIn={top:0,left:0,width:k.cycleW,height:k.cycleH}});e.cssBefore={width:0,
height:0};e.animOut={opacity:0}};a.fn.cycle.transitions.blindX=function(g,m,e){g=g.css("overflow","hidden").width();e.before.push(function(i,k,j){a.fn.cycle.commonReset(i,k,j);j.animIn.width=k.cycleW;j.animOut.left=i.cycleW});e.cssBefore={left:g,top:0};e.animIn={left:0};e.animOut={left:g}};a.fn.cycle.transitions.blindY=function(g,m,e){g=g.css("overflow","hidden").height();e.before.push(function(i,k,j){a.fn.cycle.commonReset(i,k,j);j.animIn.height=k.cycleH;j.animOut.top=i.cycleH});e.cssBefore={top:g,
left:0};e.animIn={top:0};e.animOut={top:g}};a.fn.cycle.transitions.blindZ=function(g,m,e){m=g.css("overflow","hidden").height();g=g.width();e.before.push(function(i,k,j){a.fn.cycle.commonReset(i,k,j);j.animIn.height=k.cycleH;j.animOut.top=i.cycleH});e.cssBefore={top:m,left:g};e.animIn={top:0,left:0};e.animOut={top:m,left:g}};a.fn.cycle.transitions.growX=function(g,m,e){e.before.push(function(i,k,j){a.fn.cycle.commonReset(i,k,j,false,true);j.cssBefore.left=this.cycleW/2;j.animIn={left:0,width:this.cycleW};
j.animOut={left:0}});e.cssBefore={width:0,top:0}};a.fn.cycle.transitions.growY=function(g,m,e){e.before.push(function(i,k,j){a.fn.cycle.commonReset(i,k,j,true,false);j.cssBefore.top=this.cycleH/2;j.animIn={top:0,height:this.cycleH};j.animOut={top:0}});e.cssBefore={height:0,left:0}};a.fn.cycle.transitions.curtainX=function(g,m,e){e.before.push(function(i,k,j){a.fn.cycle.commonReset(i,k,j,false,true,true);j.cssBefore.left=k.cycleW/2;j.animIn={left:0,width:this.cycleW};j.animOut={left:i.cycleW/2,width:0}});
e.cssBefore={top:0,width:0}};a.fn.cycle.transitions.curtainY=function(g,m,e){e.before.push(function(i,k,j){a.fn.cycle.commonReset(i,k,j,true,false,true);j.cssBefore.top=k.cycleH/2;j.animIn={top:0,height:k.cycleH};j.animOut={top:i.cycleH/2,height:0}});e.cssBefore={left:0,height:0}};a.fn.cycle.transitions.cover=function(g,m,e){var i=e.direction||"left",k=g.css("overflow","hidden").width(),j=g.height();e.before.push(function(f,l,p){a.fn.cycle.commonReset(f,l,p);if(i=="right")p.cssBefore.left=-k;else if(i==
"up")p.cssBefore.top=j;else if(i=="down")p.cssBefore.top=-j;else p.cssBefore.left=k});e.animIn={left:0,top:0};e.animOut={opacity:1};e.cssBefore={top:0,left:0}};a.fn.cycle.transitions.uncover=function(g,m,e){var i=e.direction||"left",k=g.css("overflow","hidden").width(),j=g.height();e.before.push(function(f,l,p){a.fn.cycle.commonReset(f,l,p,true,true,true);if(i=="right")p.animOut.left=k;else if(i=="up")p.animOut.top=-j;else if(i=="down")p.animOut.top=j;else p.animOut.left=-k});e.animIn={left:0,top:0};
e.animOut={opacity:1};e.cssBefore={top:0,left:0}};a.fn.cycle.transitions.toss=function(g,m,e){var i=g.css("overflow","visible").width(),k=g.height();e.before.push(function(j,f,l){a.fn.cycle.commonReset(j,f,l,true,true,true);if(!l.animOut.left&&!l.animOut.top)l.animOut={left:i*2,top:-k/2,opacity:0};else l.animOut.opacity=0});e.cssBefore={left:0,top:0};e.animIn={left:0}};a.fn.cycle.transitions.wipe=function(g,m,e){var i=g.css("overflow","hidden").width(),k=g.height();e.cssBefore=e.cssBefore||{};var j;
if(e.clip)if(/l2r/.test(e.clip))j="rect(0px 0px "+k+"px 0px)";else if(/r2l/.test(e.clip))j="rect(0px "+i+"px "+k+"px "+i+"px)";else if(/t2b/.test(e.clip))j="rect(0px "+i+"px 0px 0px)";else if(/b2t/.test(e.clip))j="rect("+k+"px "+i+"px "+k+"px 0px)";else if(/zoom/.test(e.clip)){g=parseInt(k/2);m=parseInt(i/2);j="rect("+g+"px "+m+"px "+g+"px "+m+"px)"}e.cssBefore.clip=e.cssBefore.clip||j||"rect(0px 0px 0px 0px)";g=e.cssBefore.clip.match(/(\d+)/g);var f=parseInt(g[0]),l=parseInt(g[1]),p=parseInt(g[2]),
q=parseInt(g[3]);e.before.push(function(t,u,v){if(t!=u){var y=a(t),b=a(u);a.fn.cycle.commonReset(t,u,v,true,true,false);v.cssAfter.display="block";var c=1,h=parseInt(v.speedIn/13)-1;(function n(){var o=f?f-parseInt(c*(f/h)):0,d=q?q-parseInt(c*(q/h)):0,s=p<k?p+parseInt(c*((k-p)/h||1)):k,r=l<i?l+parseInt(c*((i-l)/h||1)):i;b.css({clip:"rect("+o+"px "+r+"px "+s+"px "+d+"px)"});c++<=h?setTimeout(n,13):y.css("display","none")})()}});e.cssBefore={display:"block",opacity:1,top:0,left:0};e.animIn={left:0};
e.animOut={left:0}}})(jQuery);(function(a){var g={},m=0;a.galleriffic={version:"2.0.1",normalizeHash:function(i){return i.replace(/^.*#/,"").replace(/\?.*$/,"")},getImage:function(i){if(i){i=a.galleriffic.normalizeHash(i);return g[i]}},gotoImage:function(i){i=a.galleriffic.getImage(i);if(!i)return false;i.gallery.gotoImage(i);return true},removeImageByHash:function(i,k){var j=a.galleriffic.getImage(i);if(!j)return false;var f=j.gallery;if(k&&k!=f)return false;return f.removeImageByIndex(j.index)}};var e={delay:3E3,numThumbs:20,
preloadAhead:40,enableTopPager:false,enableBottomPager:true,maxPagesToShow:7,imageContainerSel:"",captionContainerSel:"",controlsContainerSel:"",loadingContainerSel:"",renderSSControls:true,renderNavControls:true,playLinkText:"Play",pauseLinkText:"Pause",prevLinkText:"Previous",nextLinkText:"Next",nextPageLinkText:"Next &rsaquo;",prevPageLinkText:"&lsaquo; Prev",enableHistory:false,enableKeyboardNavigation:true,autoStart:false,syncTransitions:false,defaultTransitionDuration:1E3,onSlideChange:undefined,
onTransitionOut:undefined,onTransitionIn:undefined,onPageTransitionOut:undefined,onPageTransitionIn:undefined,onImageAdded:undefined,onImageRemoved:undefined};a.fn.galleriffic=function(i){a.extend(this,{version:a.galleriffic.version,isSlideshowRunning:false,slideshowTimeout:undefined,clickHandler:function(f,l){this.pause();if(!this.enableHistory){var p=a.galleriffic.normalizeHash(a(l).attr("href"));a.galleriffic.gotoImage(p);f.preventDefault()}},appendImage:function(f){this.addImage(f,false,false);
return this},insertImage:function(f,l){this.addImage(f,false,true,l);return this},addImage:function(f,l,p,q){var t=typeof f==="string"?a(f):f;f=t.find("a.thumb");var u=f.attr("href"),v=f.attr("title"),y=t.find(".caption").remove(),b=f.attr("name");m++;if(!b||g[""+b])b=m;if(!p)q=this.data.length;var c={title:v,slideUrl:u,caption:y,hash:b,gallery:this,index:q};if(p){this.data.splice(q,0,c);this.updateIndices(q)}else this.data.push(c);var h=this;l||this.updateThumbs(function(){var n=h.find("ul.thumbs");
p?n.children(":eq("+q+")").before(t):n.append(t);h.onImageAdded&&h.onImageAdded(c,t)});g[""+b]=c;f.attr("rel","history").attr("href","#"+b).removeAttr("name").click(function(n){h.clickHandler(n,this)});return this},removeImageByIndex:function(f){if(f<0||f>=this.data.length)return false;f=this.data[f];if(!f)return false;this.removeImage(f);return true},removeImageByHash:function(f){return a.galleriffic.removeImageByHash(f,this)},removeImage:function(f){var l=f.index;this.data.splice(l,1);delete g[""+
f.hash];this.updateThumbs(function(){var p=k.find("ul.thumbs").children(":eq("+l+")").remove();k.onImageRemoved&&k.onImageRemoved(f,p)});this.updateIndices(l);return this},updateIndices:function(f){for(f=f;f<this.data.length;f++)this.data[f].index=f;return this},initializeThumbs:function(){this.data=[];var f=this;this.find("ul.thumbs > li").each(function(){f.addImage(a(this),true,false)});return this},isPreloadComplete:false,preloadInit:function(){if(this.preloadAhead==0)return this;this.preloadStartIndex=
this.currentImage.index;return this.preloadRecursive(this.preloadStartIndex,this.getNextIndex(this.preloadStartIndex))},preloadRelocate:function(f){this.preloadStartIndex=f;return this},preloadRecursive:function(f,l){if(f!=this.preloadStartIndex)return this.preloadRecursive(this.preloadStartIndex,this.getNextIndex(this.preloadStartIndex));var p=this,q=l-f;if(q<0)q=this.data.length-1-f+l;if(this.preloadAhead>=0&&q>this.preloadAhead){setTimeout(function(){p.preloadRecursive(f,l)},500);return this}var t=
this.data[l];if(!t)return this;if(t.image)return this.preloadNext(f,l);q=new Image;q.onload=function(){t.image=this;p.preloadNext(f,l)};q.alt=t.title;q.src=t.slideUrl;return this},preloadNext:function(f,l){var p=this.getNextIndex(l);if(p==f)this.isPreloadComplete=true;else{var q=this;setTimeout(function(){q.preloadRecursive(f,p)},100)}return this},getNextIndex:function(f){f=f+1;if(f>=this.data.length)f=0;return f},getPrevIndex:function(f){f=f-1;if(f<0)f=this.data.length-1;return f},pause:function(){this.isSlideshowRunning=
false;if(this.slideshowTimeout){clearTimeout(this.slideshowTimeout);this.slideshowTimeout=undefined}this.$controlsContainer&&this.$controlsContainer.find("div.ss-controls a").removeClass().addClass("play").attr("title",this.playLinkText).attr("href","#play").html(this.playLinkText);return this},play:function(){this.isSlideshowRunning=true;this.$controlsContainer&&this.$controlsContainer.find("div.ss-controls a").removeClass().addClass("pause").attr("title",this.pauseLinkText).attr("href","#pause").html(this.pauseLinkText);
if(!this.slideshowTimeout){var f=this;this.slideshowTimeout=setTimeout(function(){f.ssAdvance()},this.delay)}return this},toggleSlideshow:function(){this.isSlideshowRunning?this.pause():this.play();return this},ssAdvance:function(){this.isSlideshowRunning&&this.next(true);return this},next:function(f,l){this.gotoIndex(this.getNextIndex(this.currentImage.index),f,l);return this},previous:function(f,l){this.gotoIndex(this.getPrevIndex(this.currentImage.index),f,l);return this},nextPage:function(f,l){var p=
this.getCurrentPage(),q=this.getNumPages()-1;p<q&&this.gotoIndex(p*this.numThumbs+this.numThumbs,f,l);return this},previousPage:function(f,l){var p=this.getCurrentPage();p>0&&this.gotoIndex(p*this.numThumbs-this.numThumbs,f,l);return this},gotoIndex:function(f,l,p){l||this.pause();if(f<0)f=0;else if(f>=this.data.length)f=this.data.length-1;f=this.data[f];!p&&this.enableHistory?a.historyLoad(String(f.hash)):this.gotoImage(f);return this},gotoImage:function(f){var l=f.index;this.onSlideChange&&this.onSlideChange(this.currentImage.index,
l);this.currentImage=f;this.preloadRelocate(l);this.refresh();return this},getDefaultTransitionDuration:function(f){if(f)return this.defaultTransitionDuration;return this.defaultTransitionDuration/2},refresh:function(){var f=this.currentImage;if(!f)return this;var l=f.index;this.$controlsContainer&&this.$controlsContainer.find("div.nav-controls a.prev").attr("href","#"+this.data[this.getPrevIndex(l)].hash).end().find("div.nav-controls a.next").attr("href","#"+this.data[this.getNextIndex(l)].hash);
var p=this.$imageContainer.find("span.current").addClass("previous").removeClass("current"),q=0;if(this.$captionContainer)q=this.$captionContainer.find("span.current").addClass("previous").removeClass("current");var t=this.syncTransitions&&f.image,u=true,v=this;l=function(){u=false;p.remove();q&&q.remove();if(!t)if(f.image&&f.hash==v.data[v.currentImage.index].hash)v.buildImage(f,t);else v.$loadingContainer&&v.$loadingContainer.show()};if(p.length==0)l();else if(this.onTransitionOut)this.onTransitionOut(p,
q,t,l);else{p.fadeTo(this.getDefaultTransitionDuration(t),0,l);q&&q.fadeTo(this.getDefaultTransitionDuration(t),0)}t&&this.buildImage(f,t);if(!f.image){l=new Image;l.onload=function(){f.image=this;!u&&f.hash==v.data[v.currentImage.index].hash&&v.buildImage(f,t)};l.alt=f.title;l.src=f.slideUrl}this.relocatePreload=true;return this.syncThumbs()},buildImage:function(f,l){var p=this,q=this.$imageContainer.append('<span class="image-wrapper current"><a class="advance-link" rel="history" href="#'+this.data[this.getNextIndex(f.index)].hash+
'" title="'+f.title+'">&nbsp;</a></span>').find("span.current").css("opacity","0");q.find("a").append(f.image).click(function(u){p.clickHandler(u,this)});var t=0;if(this.$captionContainer)t=this.$captionContainer.append('<span class="image-caption current"></span>').find("span.current").css("opacity","0").append(f.caption);this.$loadingContainer&&this.$loadingContainer.hide();if(this.onTransitionIn)this.onTransitionIn(q,t,l);else{q.fadeTo(this.getDefaultTransitionDuration(l),1);t&&t.fadeTo(this.getDefaultTransitionDuration(l),
1)}if(this.isSlideshowRunning){this.slideshowTimeout&&clearTimeout(this.slideshowTimeout);this.slideshowTimeout=setTimeout(function(){p.ssAdvance()},this.delay)}return this},getCurrentPage:function(){return Math.floor(this.currentImage.index/this.numThumbs)},syncThumbs:function(){this.getCurrentPage()!=this.displayedPage&&this.updateThumbs();var f=this.find("ul.thumbs").children();f.filter(".selected").removeClass("selected");f.eq(this.currentImage.index).addClass("selected");return this},updateThumbs:function(f){var l=
this,p=function(){f&&f();l.rebuildThumbs();l.onPageTransitionIn?l.onPageTransitionIn():l.show()};if(this.onPageTransitionOut)this.onPageTransitionOut(p);else{this.hide();p()}return this},rebuildThumbs:function(){var f=this.data.length>this.numThumbs;if(this.enableTopPager){var l=this.find("div.top");if(l.length==0)l=this.prepend('<div class="top pagination"></div>').find("div.top");else l.empty();f&&this.buildPager(l)}if(this.enableBottomPager){l=this.find("div.bottom");if(l.length==0)l=this.append('<div class="bottom pagination"></div>').find("div.bottom");
else l.empty();f&&this.buildPager(l)}f=this.getCurrentPage();var p=f*this.numThumbs,q=p+this.numThumbs-1;if(q>=this.data.length)q=this.data.length-1;l=this.find("ul.thumbs");l.find("li").each(function(t){var u=a(this);t>=p&&t<=q?u.show():u.hide()});this.displayedPage=f;l.removeClass("noscript");return this},getNumPages:function(){return Math.ceil(this.data.length/this.numThumbs)},buildPager:function(f){var l=this,p=this.getNumPages(),q=this.getCurrentPage(),t=q*this.numThumbs,u=this.maxPagesToShow-
1,v=q-Math.floor((this.maxPagesToShow-1)/2)+1;if(v>0){var y=p-v;if(y<u)v-=u-y}if(v<0)v=0;q>0&&f.append('<a rel="history" href="#'+this.data[t-this.numThumbs].hash+'" title="'+this.prevPageLinkText+'">'+this.prevPageLinkText+"</a>");if(v>0){this.buildPageLink(f,0,p);v>1&&f.append('<span class="ellipsis">&hellip;</span>');u--}for(;u>0;){this.buildPageLink(f,v,p);u--;v++}if(v<p){q=p-1;v<q&&f.append('<span class="ellipsis">&hellip;</span>');this.buildPageLink(f,q,p)}p=t+this.numThumbs;p<this.data.length&&
f.append('<a rel="history" href="#'+this.data[p].hash+'" title="'+this.nextPageLinkText+'">'+this.nextPageLinkText+"</a>");f.find("a").click(function(b){l.clickHandler(b,this)});return this},buildPageLink:function(f,l,p){var q=l+1,t=this.getCurrentPage();if(l==t)f.append('<span class="current">'+q+"</span>");else l<p&&f.append('<a rel="history" href="#'+this.data[l*this.numThumbs].hash+'" title="'+q+'">'+q+"</a>");return this}});a.extend(this,e,i);if(this.enableHistory&&!a.historyInit)this.enableHistory=
false;if(this.imageContainerSel)this.$imageContainer=a(this.imageContainerSel);if(this.captionContainerSel)this.$captionContainer=a(this.captionContainerSel);if(this.loadingContainerSel)this.$loadingContainer=a(this.loadingContainerSel);this.initializeThumbs();if(this.maxPagesToShow<3)this.maxPagesToShow=3;this.displayedPage=-1;this.currentImage=this.data[0];var k=this;this.$loadingContainer&&this.$loadingContainer.hide();if(this.controlsContainerSel){this.$controlsContainer=a(this.controlsContainerSel);
if(this.renderSSControls){this.autoStart?this.$controlsContainer.append('<div class="ss-controls"><a href="#pause" class="pause" title="'+this.pauseLinkText+'">'+this.pauseLinkText+"</a></div>"):this.$controlsContainer.append('<div class="ss-controls"><a href="#play" class="play" title="'+this.playLinkText+'">'+this.playLinkText+"</a></div>");this.$controlsContainer.find("div.ss-controls a").click(function(f){k.toggleSlideshow();f.preventDefault();return false})}this.renderNavControls&&this.$controlsContainer.append('<div class="nav-controls"><a class="prev" rel="history" title="'+
this.prevLinkText+'">'+this.prevLinkText+'</a><a class="next" rel="history" title="'+this.nextLinkText+'">'+this.nextLinkText+"</a></div>").find("div.nav-controls a").click(function(f){k.clickHandler(f,this)})}i=!this.enableHistory||!window.location.hash;if(this.enableHistory&&window.location.hash){var j=a.galleriffic.normalizeHash(window.location.hash);g[j]||(i=true)}i&&this.gotoIndex(0,false,true);this.enableKeyboardNavigation&&a(document).keydown(function(f){switch(f.charCode?f.charCode:f.keyCode?
f.keyCode:0){case 32:k.next();f.preventDefault();break;case 33:k.previousPage();f.preventDefault();break;case 34:k.nextPage();f.preventDefault();break;case 35:k.gotoIndex(k.data.length-1);f.preventDefault();break;case 36:k.gotoIndex(0);f.preventDefault();break;case 37:k.previous();f.preventDefault();break;case 39:k.next();f.preventDefault();break}});this.autoStart&&this.play();setTimeout(function(){k.preloadInit()},1E3);return this}})(jQuery);jQuery.extend({historyCurrentHash:undefined,historyCallback:undefined,historyIframeSrc:undefined,historyInit:function(a,g){jQuery.historyCallback=a;if(g)jQuery.historyIframeSrc=g;var m=window.location.hash.replace(/\?.*$/,"");jQuery.historyCurrentHash=m;if(jQuery.browser.msie){if(jQuery.historyCurrentHash=="")jQuery.historyCurrentHash="#";jQuery("body").prepend('<iframe id="jQuery_history" style="display: none;"'+(jQuery.historyIframeSrc?' src="'+jQuery.historyIframeSrc+'"':"")+"></iframe>");var e=
jQuery("#jQuery_history")[0].contentWindow.document;e.open();e.close();e.location.hash=m}else if(jQuery.browser.safari){jQuery.historyBackStack=[];jQuery.historyBackStack.length=window.history.length;jQuery.historyForwardStack=[];jQuery.lastHistoryLength=window.history.length;jQuery.isFirst=true}m&&jQuery.historyCallback(m.replace(/^#/,""));setInterval(jQuery.historyCheck,100)},historyAddHistory:function(a){jQuery.historyBackStack.push(a);jQuery.historyForwardStack.length=0;this.isFirst=true},historyCheck:function(){if(jQuery.browser.msie){var a=
jQuery("#jQuery_history")[0];a=(a.contentDocument||a.contentWindow.document).location.hash.replace(/\?.*$/,"");if(a!=jQuery.historyCurrentHash){window.location.hash=a;jQuery.historyCurrentHash=a;jQuery.historyCallback(a.replace(/^#/,""))}}else if(jQuery.browser.safari){jQuery.lastHistoryLength==window.history.length&&jQuery.historyBackStack.length>jQuery.lastHistoryLength&&jQuery.historyBackStack.shift();if(!jQuery.dontCheck){a=window.history.length-jQuery.historyBackStack.length;jQuery.lastHistoryLength=
window.history.length;if(a){jQuery.isFirst=false;if(a<0)for(var g=0;g<Math.abs(a);g++)jQuery.historyForwardStack.unshift(jQuery.historyBackStack.pop());else for(g=0;g<a;g++)jQuery.historyBackStack.push(jQuery.historyForwardStack.shift());a=jQuery.historyBackStack[jQuery.historyBackStack.length-1];if(a!=undefined){jQuery.historyCurrentHash=window.location.hash.replace(/\?.*$/,"");jQuery.historyCallback(a)}}else if(jQuery.historyBackStack[jQuery.historyBackStack.length-1]==undefined&&!jQuery.isFirst){window.location.hash?
jQuery.historyCallback(window.location.hash.replace(/^#/,"")):jQuery.historyCallback("");jQuery.isFirst=true}}}else{a=window.location.hash.replace(/\?.*$/,"");if(a!=jQuery.historyCurrentHash){jQuery.historyCurrentHash=a;jQuery.historyCallback(a.replace(/^#/,""))}}},historyLoad:function(a){var g;a=decodeURIComponent(a.replace(/\?.*$/,""));if(jQuery.browser.safari)g=a;else{g="#"+a;window.location.hash=g}jQuery.historyCurrentHash=g;if(jQuery.browser.msie){var m=jQuery("#jQuery_history")[0].contentWindow.document;
m.open();m.close();m.location.hash=g;jQuery.lastHistoryLength=window.history.length;jQuery.historyCallback(a)}else if(jQuery.browser.safari){jQuery.dontCheck=true;this.historyAddHistory(a);window.setTimeout(function(){jQuery.dontCheck=false},200);jQuery.historyCallback(a);window.location.hash=g}else jQuery.historyCallback(a)}});if(!CSCC)var CSCC={};if(!CSCC.OCAC)CSCC.OCAC={};
window.onload=function(){$(function(){$("div#Navigation ul#NavTopLevel li a span").css("opacity","0");$("div#Navigation ul#NavTopLevel li a span").hover(function(){$(this).stop().animate({opacity:1},300)},function(){$(this).stop().animate({opacity:0},300)})});$(function(){$("div#Scores").vTicker({speed:700,pause:1500})});$(document).ready(function(){$("div#Banner ul#Schools li a").hover(function(){$(this).stop().animate({marginTop:"-10px"},200);$.browser.msie?$(this).parent().find("span").stop().animate({marginTop:"15px"},
200):$(this).parent().find("span").stop().animate({marginTop:"15px",opacity:0.25},200);var a=$(this).html();$("div#BannerText").stop().animate({opacity:0},{duration:300,complete:function(){$("div#BannerText").addClass("SchoolName");$(this).html(a).animate({opacity:1},300)}})},function(){$(this).stop().animate({marginTop:"0px"},300);$.browser.msie?$(this).parent().find("span").stop().animate({marginTop:"1px"},300):$(this).parent().find("span").stop().animate({marginTop:"1px",opacity:1},300);$("div#BannerText").stop().animate({opacity:0},
{duration:300,complete:function(){$("div#BannerText").removeClass("SchoolName");$(this).html("New Conference, New Vision").animate({opacity:1},300)}})})});$("div#Slideshow div#Photos").cycle()};(function(a){var g={mouseOutOpacity:0.67,mouseOverOpacity:1,fadeSpeed:"fast",exemptionSelector:".selected"};a.fn.opacityrollover=function(m){function e(k,j){var f=a(k);if(i.exemptionSelector)f=f.not(i.exemptionSelector);f.fadeTo(i.fadeSpeed,j)}a.extend(this,g,m);var i=this;this.css("opacity",this.mouseOutOpacity).hover(function(){e(this,i.mouseOverOpacity)},function(){e(this,i.mouseOutOpacity)});return this}})(jQuery);(function(a){a.fn.vTicker=function(g){g=a.extend({speed:700,pause:4E3,showItems:3,animation:"",mousePause:true,isPaused:false,direction:"up",height:0},g);moveUp=function(m,e,i){if(!i.isPaused){m=m.children("ul");var k=m.children("li:first").clone(true);if(i.height>0)e=m.children("li:first").height();m.animate({top:"-="+e+"px"},i.speed,function(){a(this).children("li:first").remove();a(this).css("top","0px")});if(i.animation=="fade"){m.children("li:first").fadeOut(i.speed);i.height==0&&m.children("li:eq("+
i.showItems+")").hide().fadeIn(i.speed)}k.appendTo(m)}};moveDown=function(m,e,i){if(!i.isPaused){m=m.children("ul");var k=m.children("li:last").clone(true);if(i.height>0)e=m.children("li:first").height();m.css("top","-"+e+"px").prepend(k);m.animate({top:0},i.speed,function(){a(this).children("li:last").remove()});if(i.animation=="fade"){i.height==0&&m.children("li:eq("+i.showItems+")").fadeOut(i.speed);m.children("li:first").hide().fadeIn(i.speed)}}};return this.each(function(){var m=a(this),e=0;
m.css({overflow:"hidden",position:"relative"}).children("ul").css({position:"absolute",margin:0,padding:0}).children("li").css({margin:0,padding:0});if(g.height==0){m.children("ul").children("li").each(function(){if(a(this).height()>e)e=a(this).height()});m.children("ul").children("li").each(function(){a(this).height(e)});m.height(e*g.showItems)}else m.height(g.height);setInterval(function(){g.direction=="up"?moveUp(m,e,g):moveDown(m,e,g)},g.pause);g.mousePause&&m.bind("mouseenter",function(){g.isPaused=
true}).bind("mouseleave",function(){g.isPaused=false})})}})(jQuery);

