(function($){$.fn.easySlider=function(_1){var _2={prevId:"prevBtn",prevText:"Previous",nextId:"nextBtn",nextText:"Next",controlsShow:true,controlsBefore:"",controlsAfter:"",controlsFade:true,firstId:"firstBtn",firstText:"First",firstShow:false,lastId:"lastBtn",lastText:"Last",lastShow:false,vertical:false,speed:800,auto:false,pause:2000,continuous:false,numeric:false,numericId:"controls"};var _1=$.extend(_2,_1);this.each(function(){var _3=$(this);var s=$("li",_3).length;var w=$("li",_3).width();var h=$("li",_3).height();var _4=true;_3.width(w);_3.height(h);_3.css("overflow","hidden");var ts=s-1;var t=0;$("ul",_3).css("width",s*w);if(_1.continuous){$("ul",_3).prepend($("ul li:last-child",_3).clone().css("margin-left","-"+w+"px"));$("ul",_3).append($("ul li:nth-child(2)",_3).clone());$("ul",_3).css("width",(s+1)*w);}
if(!_1.vertical){$("li",_3).css("float","left");}
if(_1.controlsShow){var _5=_1.controlsBefore;if(_1.numeric){_5+="<ol id=\""+_1.numericId+"\"></ol>";}else{if(_1.firstShow){_5+="<span id=\""+_1.firstId+"\"><a href=\"javascript:void(0);\">"+_1.firstText+"</a></span>";}
_5+=" <span id=\""+_1.prevId+"\"><a href=\"javascript:void(0);\">"+_1.prevText+"</a></span>";_5+=" <span id=\""+_1.nextId+"\"><a href=\"javascript:void(0);\">"+_1.nextText+"</a></span>";if(_1.lastShow){_5+=" <span id=\""+_1.lastId+"\"><a href=\"javascript:void(0);\">"+_1.lastText+"</a></span>";}}
_5+=_1.controlsAfter;$(_3).after(_5);}
if(_1.numeric){for(var i=0;i<s;i++){$(document.createElement("li")).attr("id",_1.numericId+(i+1)).html("<a rel="+i+" href=\"javascript:void(0);\">"+(i+1)+"</a>").appendTo($("#"+_1.numericId)).click(function(){_6($("a",$(this)).attr("rel"),true);});}}else{$("a","#"+_1.nextId).click(function(){_6("next",true);});$("a","#"+_1.prevId).click(function(){_6("prev",true);});$("a","#"+_1.firstId).click(function(){_6("first",true);});$("a","#"+_1.lastId).click(function(){_6("last",true);});}
function _7(i){i=parseInt(i)+1;$("li","#"+_1.numericId).removeClass("current");$("li#"+_1.numericId+i).addClass("current");};function _8(){if(t>ts){t=0;}
if(t<0){t=ts;}
if(!_1.vertical){$("ul",_3).css("margin-left",(t*w*-1));}else{$("ul",_3).css("margin-left",(t*h*-1));}
_4=true;if(_1.numeric){_7(t);}};function _6(_9,_a){if(_4){_4=false;var ot=t;switch(_9){case"next":t=(ot>=ts)?(_1.continuous?t+1:ts):t+1;break;case"prev":t=(t<=0)?(_1.continuous?t-1:0):t-1;break;case"first":t=0;break;case"last":t=ts;break;default:t=_9;break;}
var _b=Math.abs(ot-t);var _c=_b*_1.speed;if(!_1.vertical){p=(t*w*-1);$("ul",_3).animate({marginLeft:p},{queue:false,duration:_c,complete:_8});}else{p=(t*h*-1);$("ul",_3).animate({marginTop:p},{queue:false,duration:_c,complete:_8});}
if(!_1.continuous&&_1.controlsFade){if(t==ts){$("a","#"+_1.nextId).hide();$("a","#"+_1.lastId).hide();}else{$("a","#"+_1.nextId).show();$("a","#"+_1.lastId).show();}
if(t==0){$("a","#"+_1.prevId).hide();$("a","#"+_1.firstId).hide();}else{$("a","#"+_1.prevId).show();$("a","#"+_1.firstId).show();}}
if(_a){clearTimeout(_d);}
if(_1.auto&&_9=="next"&&!_a){_d=setTimeout(function(){_6("next",false);},_b*_1.speed+_1.pause);}}};var _d;if(_1.auto){_d=setTimeout(function(){_6("next",false);},_1.pause);}
if(_1.numeric){_7(0);}
if(!_1.continuous&&_1.controlsFade){$("a","#"+_1.prevId).hide();$("a","#"+_1.firstId).hide();}});};})(jQuery);(function($){var _e="2.86";if($.support==undefined){$.support={opacity:!($.browser.msie)};}
function _f(s){if($.fn.cycle.debug){log(s);}};function log(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "));}};$.fn.cycle=function(_10,_11){var o={s:this.selector,c:this.context};if(this.length===0&&_10!="stop"){if(!$.isReady&&o.s){log("DOM not ready, queuing slideshow");$(function(){$(o.s,o.c).cycle(_10,_11);});return this;}
log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this;}
return this.each(function(){var _12=_17(this,_10,_11);if(_12===false){return;}
_12.updateActivePagerLink=_12.updateActivePagerLink||$.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}
this.cycleTimeout=this.cyclePause=0;var _13=$(this);var _14=_12.slideExpr?$(_12.slideExpr,this):_13.children();var els=_14.get();if(els.length<2){log("terminating; too few slides: "+els.length);return;}
var _15=_25(_13,_14,els,_12,o);if(_15===false){return;}
var _16=_15.continuous?10:_4d(_15.currSlide,_15.nextSlide,_15,!_15.rev);if(_16){_16+=(_15.delay||0);if(_16<10){_16=10;}
_f("first timeout: "+_16);this.cycleTimeout=setTimeout(function(){go(els,_15,0,!_15.rev);},_16);}});};function _17(_18,_19,_1a){if(_18.cycleStop==undefined){_18.cycleStop=0;}
if(_19===undefined||_19===null){_19={};}
if(_19.constructor==String){switch(_19){case"destroy":case"stop":var _1b=$(_18).data("cycle.opts");if(!_1b){return false;}
_18.cycleStop++;if(_18.cycleTimeout){clearTimeout(_18.cycleTimeout);}
_18.cycleTimeout=0;$(_18).removeData("cycle.opts");if(_19=="destroy"){_1c(_1b);}
return false;case"toggle":_18.cyclePause=(_18.cyclePause===1)?0:1;_1d(_18.cyclePause,_1a,_18);return false;case"pause":_18.cyclePause=1;return false;case"resume":_18.cyclePause=0;_1d(false,_1a,_18);return false;case"prev":case"next":var _1b=$(_18).data("cycle.opts");if(!_1b){log("options not found, \"prev/next\" ignored");return false;}
$.fn.cycle[_19](_1b);return false;default:_19={fx:_19};}
return _19;}else{if(_19.constructor==Number){var num=_19;_19=$(_18).data("cycle.opts");if(!_19){log("options not found, can not advance slide");return false;}
if(num<0||num>=_19.elements.length){log("invalid slide index: "+num);return false;}
_19.nextSlide=num;if(_18.cycleTimeout){clearTimeout(_18.cycleTimeout);_18.cycleTimeout=0;}
if(typeof _1a=="string"){_19.oneTimeFx=_1a;}
go(_19.elements,_19,1,num>=_19.currSlide);return false;}}
return _19;function _1d(_1e,_1f,_20){if(!_1e&&_1f===true){var _21=$(_20).data("cycle.opts");if(!_21){log("options not found, can not resume");return false;}
if(_20.cycleTimeout){clearTimeout(_20.cycleTimeout);_20.cycleTimeout=0;}
go(_21.elements,_21,1,1);}};};function _22(el,_23){if(!$.support.opacity&&_23.cleartype&&el.style.filter){try{el.style.removeAttribute("filter");}
catch(smother){}}};function _1c(_24){if(_24.next){$(_24.next).unbind(_24.prevNextEvent);}
if(_24.prev){$(_24.prev).unbind(_24.prevNextEvent);}
if(_24.pager||_24.pagerAnchorBuilder){$.each(_24.pagerAnchors||[],function(){this.unbind().remove();});}
_24.pagerAnchors=null;if(_24.destroy){_24.destroy(_24);}};function _25(_26,_27,els,_28,o){var _29=$.extend({},$.fn.cycle.defaults,_28||{},$.metadata?_26.metadata():$.meta?_26.data():{});if(_29.autostop){_29.countdown=_29.autostopCount||els.length;}
var _2a=_26[0];_26.data("cycle.opts",_29);_29.$cont=_26;_29.stopCount=_2a.cycleStop;_29.elements=els;_29.before=_29.before?[_29.before]:[];_29.after=_29.after?[_29.after]:[];_29.after.unshift(function(){_29.busy=0;});if(!$.support.opacity&&_29.cleartype){_29.after.push(function(){_22(this,_29);});}
if(_29.continuous){_29.after.push(function(){go(els,_29,0,!_29.rev);});}
_39(_29);if(!$.support.opacity&&_29.cleartype&&!_29.cleartypeNoBg){_40(_27);}
if(_26.css("position")=="static"){_26.css("position","relative");}
if(_29.width){_26.width(_29.width);}
if(_29.height&&_29.height!="auto"){_26.height(_29.height);}
if(_29.startingSlide){_29.startingSlide=parseInt(_29.startingSlide);}
if(_29.random){_29.randomMap=[];for(var i=0;i<els.length;i++){_29.randomMap.push(i);}
_29.randomMap.sort(function(a,b){return Math.random()-0.5;});_29.randomIndex=1;_29.startingSlide=_29.randomMap[1];}else{if(_29.startingSlide>=els.length){_29.startingSlide=0;}}
_29.currSlide=_29.startingSlide||0;var _2b=_29.startingSlide;_27.css({position:"absolute",top:0,left:0}).hide().each(function(i){var z=_2b?i>=_2b?els.length-(i-_2b):_2b-i:els.length-i;$(this).css("z-index",z);});$(els[_2b]).css("opacity",1).show();_22(els[_2b],_29);if(_29.fit&&_29.width){_27.width(_29.width);}
if(_29.fit&&_29.height&&_29.height!="auto"){_27.height(_29.height);}
var _2c=_29.containerResize&&!_26.innerHeight();if(_2c){var _2d=0,_2e=0;for(var j=0;j<els.length;j++){var $e=$(els[j]),e=$e[0],w=$e.outerWidth(),h=$e.outerHeight();if(!w){w=e.offsetWidth||e.width||$e.attr("width");}
if(!h){h=e.offsetHeight||e.height||$e.attr("height");}
_2d=w>_2d?w:_2d;_2e=h>_2e?h:_2e;}
if(_2d>0&&_2e>0){_26.css({width:_2d+"px",height:_2e+"px"});}}
if(_29.pause){_26.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});}
if(_3b(_29)===false){return false;}
var _2f=false;_28.requeueAttempts=_28.requeueAttempts||0;_27.each(function(){var $el=$(this);this.cycleH=(_29.fit&&_29.height)?_29.height:($el.height()||this.offsetHeight||this.height||$el.attr("height")||0);this.cycleW=(_29.fit&&_29.width)?_29.width:($el.width()||this.offsetWidth||this.width||$el.attr("width")||0);if($el.is("img")){var _30=($.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var _31=($.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var _32=($.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var _33=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(_30||_31||_32||_33){if(o.s&&_29.requeueOnImageNotLoaded&&++_28.requeueAttempts<100){log(_28.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){$(o.s,o.c).cycle(_28);},_29.requeueTimeout);_2f=true;return false;}else{log("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}
return true;});if(_2f){return false;}
_29.cssBefore=_29.cssBefore||{};_29.animIn=_29.animIn||{};_29.animOut=_29.animOut||{};_27.not(":eq("+_2b+")").css(_29.cssBefore);if(_29.cssFirst){$(_27[_2b]).css(_29.cssFirst);}
if(_29.timeout){_29.timeout=parseInt(_29.timeout);if(_29.speed.constructor==String){_29.speed=$.fx.speeds[_29.speed]||parseInt(_29.speed);}
if(!_29.sync){_29.speed=_29.speed/2;}
var _34=_29.fx=="shuffle"?500:250;while((_29.timeout-_29.speed)<_34){_29.timeout+=_29.speed;}}
if(_29.easing){_29.easeIn=_29.easeOut=_29.easing;}
if(!_29.speedIn){_29.speedIn=_29.speed;}
if(!_29.speedOut){_29.speedOut=_29.speed;}
_29.slideCount=els.length;_29.currSlide=_29.lastSlide=_2b;if(_29.random){if(++_29.randomIndex==els.length){_29.randomIndex=0;}
_29.nextSlide=_29.randomMap[_29.randomIndex];}else{_29.nextSlide=_29.startingSlide>=(els.length-1)?0:_29.startingSlide+1;}
if(!_29.multiFx){var _35=$.fn.cycle.transitions[_29.fx];if($.isFunction(_35)){_35(_26,_27,_29);}else{if(_29.fx!="custom"&&!_29.multiFx){log("unknown transition: "+_29.fx,"; slideshow terminating");return false;}}}
var e0=_27[_2b];if(_29.before.length){_29.before[0].apply(e0,[e0,e0,_29,true]);}
if(_29.after.length>1){_29.after[1].apply(e0,[e0,e0,_29,true]);}
if(_29.next){$(_29.next).bind(_29.prevNextEvent,function(){return _36(_29,_29.rev?-1:1);});}
if(_29.prev){$(_29.prev).bind(_29.prevNextEvent,function(){return _36(_29,_29.rev?1:-1);});}
if(_29.pager||_29.pagerAnchorBuilder){_37(els,_29);}
_38(_29,els);return _29;};function _39(_3a){_3a.original={before:[],after:[]};_3a.original.cssBefore=$.extend({},_3a.cssBefore);_3a.original.cssAfter=$.extend({},_3a.cssAfter);_3a.original.animIn=$.extend({},_3a.animIn);_3a.original.animOut=$.extend({},_3a.animOut);$.each(_3a.before,function(){_3a.original.before.push(this);});$.each(_3a.after,function(){_3a.original.after.push(this);});};function _3b(_3c){var i,tx,txs=$.fn.cycle.transitions;if(_3c.fx.indexOf(",")>0){_3c.multiFx=true;_3c.fxs=_3c.fx.replace(/\s*/g,"").split(",");for(i=0;i<_3c.fxs.length;i++){var fx=_3c.fxs[i];tx=txs[fx];if(!tx||!txs.hasOwnProperty(fx)||!$.isFunction(tx)){log("discarding unknown transition: ",fx);_3c.fxs.splice(i,1);i--;}}
if(!_3c.fxs.length){log("No valid transitions named; slideshow terminating.");return false;}}else{if(_3c.fx=="all"){_3c.multiFx=true;_3c.fxs=[];for(p in txs){tx=txs[p];if(txs.hasOwnProperty(p)&&$.isFunction(tx)){_3c.fxs.push(p);}}}}
if(_3c.multiFx&&_3c.randomizeEffects){var r1=Math.floor(Math.random()*20)+30;for(i=0;i<r1;i++){var r2=Math.floor(Math.random()*_3c.fxs.length);_3c.fxs.push(_3c.fxs.splice(r2,1)[0]);}
_f("randomized fx sequence: ",_3c.fxs);}
return true;};function _38(_3d,els){_3d.addSlide=function(_3e,_3f){var $s=$(_3e),s=$s[0];if(!_3d.autostopCount){_3d.countdown++;}
els[_3f?"unshift":"push"](s);if(_3d.els){_3d.els[_3f?"unshift":"push"](s);}
_3d.slideCount=els.length;$s.css("position","absolute");$s[_3f?"prependTo":"appendTo"](_3d.$cont);if(_3f){_3d.currSlide++;_3d.nextSlide++;}
if(!$.support.opacity&&_3d.cleartype&&!_3d.cleartypeNoBg){_40($s);}
if(_3d.fit&&_3d.width){$s.width(_3d.width);}
if(_3d.fit&&_3d.height&&_3d.height!="auto"){$slides.height(_3d.height);}
s.cycleH=(_3d.fit&&_3d.height)?_3d.height:$s.height();s.cycleW=(_3d.fit&&_3d.width)?_3d.width:$s.width();$s.css(_3d.cssBefore);if(_3d.pager||_3d.pagerAnchorBuilder){$.fn.cycle.createPagerAnchor(els.length-1,s,$(_3d.pager),els,_3d);}
if($.isFunction(_3d.onAddSlide)){_3d.onAddSlide($s);}else{$s.hide();}};};$.fn.cycle.resetState=function(_41,fx){fx=fx||_41.fx;_41.before=[];_41.after=[];_41.cssBefore=$.extend({},_41.original.cssBefore);_41.cssAfter=$.extend({},_41.original.cssAfter);_41.animIn=$.extend({},_41.original.animIn);_41.animOut=$.extend({},_41.original.animOut);_41.fxFn=null;$.each(_41.original.before,function(){_41.before.push(this);});$.each(_41.original.after,function(){_41.after.push(this);});var _42=$.fn.cycle.transitions[fx];if($.isFunction(_42)){_42(_41.$cont,$(_41.elements),_41);}};function go(els,_43,_44,fwd){if(_44&&_43.busy&&_43.manualTrump){_f("manualTrump in go(), stopping active transition");$(els).stop(true,true);_43.busy=false;}
if(_43.busy){_f("transition active, ignoring new tx request");return;}
var p=_43.$cont[0],_45=els[_43.currSlide],_46=els[_43.nextSlide];if(p.cycleStop!=_43.stopCount||p.cycleTimeout===0&&!_44){return;}
if(!_44&&!p.cyclePause&&((_43.autostop&&(--_43.countdown<=0))||(_43.nowrap&&!_43.random&&_43.nextSlide<_43.currSlide))){if(_43.end){_43.end(_43);}
return;}
var _47=false;if((_44||!p.cyclePause)&&(_43.nextSlide!=_43.currSlide)){_47=true;var fx=_43.fx;_45.cycleH=_45.cycleH||$(_45).height();_45.cycleW=_45.cycleW||$(_45).width();_46.cycleH=_46.cycleH||$(_46).height();_46.cycleW=_46.cycleW||$(_46).width();if(_43.multiFx){if(_43.lastFx==undefined||++_43.lastFx>=_43.fxs.length){_43.lastFx=0;}
fx=_43.fxs[_43.lastFx];_43.currFx=fx;}
if(_43.oneTimeFx){fx=_43.oneTimeFx;_43.oneTimeFx=null;}
$.fn.cycle.resetState(_43,fx);if(_43.before.length){$.each(_43.before,function(i,o){if(p.cycleStop!=_43.stopCount){return;}
o.apply(_46,[_45,_46,_43,fwd]);});}
var _48=function(){$.each(_43.after,function(i,o){if(p.cycleStop!=_43.stopCount){return;}
o.apply(_46,[_45,_46,_43,fwd]);});};_f("tx firing; currSlide: "+_43.currSlide+"; nextSlide: "+_43.nextSlide);_43.busy=1;if(_43.fxFn){_43.fxFn(_45,_46,_43,_48,fwd,_44&&_43.fastOnEvent);}else{if($.isFunction($.fn.cycle[_43.fx])){$.fn.cycle[_43.fx](_45,_46,_43,_48,fwd,_44&&_43.fastOnEvent);}else{$.fn.cycle.custom(_45,_46,_43,_48,fwd,_44&&_43.fastOnEvent);}}}
if(_47||_43.nextSlide==_43.currSlide){_43.lastSlide=_43.currSlide;if(_43.random){_43.currSlide=_43.nextSlide;if(++_43.randomIndex==els.length){_43.randomIndex=0;}
_43.nextSlide=_43.randomMap[_43.randomIndex];if(_43.nextSlide==_43.currSlide){_43.nextSlide=(_43.currSlide==_43.slideCount-1)?0:_43.currSlide+1;}}else{var _49=(_43.nextSlide+1)==els.length;_43.nextSlide=_49?0:_43.nextSlide+1;_43.currSlide=_49?els.length-1:_43.nextSlide-1;}}
if(_47&&_43.pager){_43.updateActivePagerLink(_43.pager,_43.currSlide,_43.activePagerClass);}
var ms=0;if(_43.timeout&&!_43.continuous){ms=_4d(_45,_46,_43,fwd);}else{if(_43.continuous&&p.cyclePause){ms=10;}}
if(ms>0){p.cycleTimeout=setTimeout(function(){go(els,_43,0,!_43.rev);},ms);}};$.fn.cycle.updateActivePagerLink=function(_4a,_4b,_4c){$(_4a).each(function(){$(this).children().removeClass(_4c).eq(_4b).addClass(_4c);});};function _4d(_4e,_4f,_50,fwd){if(_50.timeoutFn){var t=_50.timeoutFn(_4e,_4f,_50,fwd);while((t-_50.speed)<250){t+=_50.speed;}
_f("calculated timeout: "+t+"; speed: "+_50.speed);if(t!==false){return t;}}
return _50.timeout;};$.fn.cycle.next=function(_51){_36(_51,_51.rev?-1:1);};$.fn.cycle.prev=function(_52){_36(_52,_52.rev?1:-1);};function _36(_53,val){var els=_53.elements;var p=_53.$cont[0],_54=p.cycleTimeout;if(_54){clearTimeout(_54);p.cycleTimeout=0;}
if(_53.random&&val<0){_53.randomIndex--;if(--_53.randomIndex==-2){_53.randomIndex=els.length-2;}else{if(_53.randomIndex==-1){_53.randomIndex=els.length-1;}}
_53.nextSlide=_53.randomMap[_53.randomIndex];}else{if(_53.random){_53.nextSlide=_53.randomMap[_53.randomIndex];}else{_53.nextSlide=_53.currSlide+val;if(_53.nextSlide<0){if(_53.nowrap){return false;}
_53.nextSlide=els.length-1;}else{if(_53.nextSlide>=els.length){if(_53.nowrap){return false;}
_53.nextSlide=0;}}}}
var cb=_53.onPrevNextEvent||_53.prevNextClick;if($.isFunction(cb)){cb(val>0,_53.nextSlide,els[_53.nextSlide]);}
go(els,_53,1,val>=0);return false;};function _37(els,_55){var $p=$(_55.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,_55);});_55.updateActivePagerLink(_55.pager,_55.startingSlide,_55.activePagerClass);};$.fn.cycle.createPagerAnchor=function(i,el,$p,els,_56){var a;if($.isFunction(_56.pagerAnchorBuilder)){a=_56.pagerAnchorBuilder(i,el);_f("pagerAnchorBuilder("+i+", el) returned: "+a);}else{a="<a href=\"#\">"+(i+1)+"</a>";}
if(!a){return;}
var $a=$(a);if($a.parents("body").length===0){var arr=[];if($p.length>1){$p.each(function(){var _57=$a.clone(true);$(this).append(_57);arr.push(_57[0]);});$a=$(arr);}else{$a.appendTo($p);}}
_56.pagerAnchors=_56.pagerAnchors||[];_56.pagerAnchors.push($a);$a.bind(_56.pagerEvent,function(e){e.preventDefault();_56.nextSlide=i;var p=_56.$cont[0],_58=p.cycleTimeout;if(_58){clearTimeout(_58);p.cycleTimeout=0;}
var cb=_56.onPagerEvent||_56.pagerClick;if($.isFunction(cb)){cb(_56.nextSlide,els[_56.nextSlide]);}
go(els,_56,1,_56.currSlide<i);});if(!/^click/.test(_56.pagerEvent)&&!_56.allowPagerClickBubble){$a.bind("click.cycle",function(){return false;});}
if(_56.pauseOnPagerHover){$a.hover(function(){_56.$cont[0].cyclePause++;},function(){_56.$cont[0].cyclePause--;});}};$.fn.cycle.hopsFromLast=function(_59,fwd){var _5a,l=_59.lastSlide,c=_59.currSlide;if(fwd){_5a=c>l?c-l:_59.slideCount-l;}else{_5a=c<l?l-c:l+_59.slideCount-c;}
return _5a;};function _40(_5b){_f("applying clearType background-color hack");function hex(s){s=parseInt(s).toString(16);return s.length<2?"0"+s:s;};function _5c(e){for(;e&&e.nodeName.toLowerCase()!="html";e=e.parentNode){var v=$.css(e,"background-color");if(v.indexOf("rgb")>=0){var rgb=v.match(/\d+/g);return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2]);}
if(v&&v!="transparent"){return v;}}
return"#ffffff";};_5b.each(function(){$(this).css("background-color",_5c(this));});};$.fn.cycle.commonReset=function(_5d,_5e,_5f,w,h,rev){$(_5f.elements).not(_5d).hide();_5f.cssBefore.opacity=1;_5f.cssBefore.display="block";if(w!==false&&_5e.cycleW>0){_5f.cssBefore.width=_5e.cycleW;}
if(h!==false&&_5e.cycleH>0){_5f.cssBefore.height=_5e.cycleH;}
_5f.cssAfter=_5f.cssAfter||{};_5f.cssAfter.display="none";$(_5d).css("zIndex",_5f.slideCount+(rev===true?1:0));$(_5e).css("zIndex",_5f.slideCount+(rev===true?0:1));};$.fn.cycle.custom=function(_60,_61,_62,cb,fwd,_63){var $l=$(_60),$n=$(_61);var _64=_62.speedIn,_65=_62.speedOut,_66=_62.easeIn,_67=_62.easeOut;$n.css(_62.cssBefore);if(_63){if(typeof _63=="number"){_64=_65=_63;}else{_64=_65=1;}
_66=_67=null;}
var fn=function(){$n.animate(_62.animIn,_64,_66,cb);};$l.animate(_62.animOut,_65,_67,function(){if(_62.cssAfter){$l.css(_62.cssAfter);}
if(!_62.sync){fn();}});if(_62.sync){fn();}};$.fn.cycle.transitions={fade:function(_68,_69,_6a){_69.not(":eq("+_6a.currSlide+")").css("opacity",0);_6a.before.push(function(_6b,_6c,_6d){$.fn.cycle.commonReset(_6b,_6c,_6d);_6d.cssBefore.opacity=0;});_6a.animIn={opacity:1};_6a.animOut={opacity:0};_6a.cssBefore={top:0,left:0};}};$.fn.cycle.ver=function(){return _e;};$.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:!$.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null};})(jQuery);(function($){$.fn.cycle.transitions.none=function(_6e,_6f,_70){_70.fxFn=function(_71,_72,_73,_74){$(_72).show();$(_71).hide();_74();};};$.fn.cycle.transitions.scrollUp=function(_75,_76,_77){_75.css("overflow","hidden");_77.before.push($.fn.cycle.commonReset);var h=_75.height();_77.cssBefore={top:h,left:0};_77.cssFirst={top:0};_77.animIn={top:0};_77.animOut={top:-h};};$.fn.cycle.transitions.scrollDown=function(_78,_79,_7a){_78.css("overflow","hidden");_7a.before.push($.fn.cycle.commonReset);var h=_78.height();_7a.cssFirst={top:0};_7a.cssBefore={top:-h,left:0};_7a.animIn={top:0};_7a.animOut={top:h};};$.fn.cycle.transitions.scrollLeft=function(_7b,_7c,_7d){_7b.css("overflow","hidden");_7d.before.push($.fn.cycle.commonReset);var w=_7b.width();_7d.cssFirst={left:0};_7d.cssBefore={left:w,top:0};_7d.animIn={left:0};_7d.animOut={left:0-w};};$.fn.cycle.transitions.scrollRight=function(_7e,_7f,_80){_7e.css("overflow","hidden");_80.before.push($.fn.cycle.commonReset);var w=_7e.width();_80.cssFirst={left:0};_80.cssBefore={left:-w,top:0};_80.animIn={left:0};_80.animOut={left:w};};$.fn.cycle.transitions.scrollHorz=function(_81,_82,_83){_81.css("overflow","hidden").width();_83.before.push(function(_84,_85,_86,fwd){$.fn.cycle.commonReset(_84,_85,_86);_86.cssBefore.left=fwd?(_85.cycleW-1):(1-_85.cycleW);_86.animOut.left=fwd?-_84.cycleW:_84.cycleW;});_83.cssFirst={left:0};_83.cssBefore={top:0};_83.animIn={left:0};_83.animOut={top:0};};$.fn.cycle.transitions.scrollVert=function(_87,_88,_89){_87.css("overflow","hidden");_89.before.push(function(_8a,_8b,_8c,fwd){$.fn.cycle.commonReset(_8a,_8b,_8c);_8c.cssBefore.top=fwd?(1-_8b.cycleH):(_8b.cycleH-1);_8c.animOut.top=fwd?_8a.cycleH:-_8a.cycleH;});_89.cssFirst={top:0};_89.cssBefore={left:0};_89.animIn={top:0};_89.animOut={left:0};};$.fn.cycle.transitions.slideX=function(_8d,_8e,_8f){_8f.before.push(function(_90,_91,_92){$(_92.elements).not(_90).hide();$.fn.cycle.commonReset(_90,_91,_92,false,true);_92.animIn.width=_91.cycleW;});_8f.cssBefore={left:0,top:0,width:0};_8f.animIn={width:"show"};_8f.animOut={width:0};};$.fn.cycle.transitions.slideY=function(_93,_94,_95){_95.before.push(function(_96,_97,_98){$(_98.elements).not(_96).hide();$.fn.cycle.commonReset(_96,_97,_98,true,false);_98.animIn.height=_97.cycleH;});_95.cssBefore={left:0,top:0,height:0};_95.animIn={height:"show"};_95.animOut={height:0};};$.fn.cycle.transitions.shuffle=function(_99,_9a,_9b){var i,w=_99.css("overflow","visible").width();_9a.css({left:0,top:0});_9b.before.push(function(_9c,_9d,_9e){$.fn.cycle.commonReset(_9c,_9d,_9e,true,true,true);});if(!_9b.speedAdjusted){_9b.speed=_9b.speed/2;_9b.speedAdjusted=true;}
_9b.random=0;_9b.shuffle=_9b.shuffle||{left:-w,top:15};_9b.els=[];for(i=0;i<_9a.length;i++){_9b.els.push(_9a[i]);}
for(i=0;i<_9b.currSlide;i++){_9b.els.push(_9b.els.shift());}
_9b.fxFn=function(_9f,_a0,_a1,cb,fwd){var $el=fwd?$(_9f):$(_a0);$(_a0).css(_a1.cssBefore);var _a2=_a1.slideCount;$el.animate(_a1.shuffle,_a1.speedIn,_a1.easeIn,function(){var _a3=$.fn.cycle.hopsFromLast(_a1,fwd);for(var k=0;k<_a3;k++){fwd?_a1.els.push(_a1.els.shift()):_a1.els.unshift(_a1.els.pop());}
if(fwd){for(var i=0,len=_a1.els.length;i<len;i++){$(_a1.els[i]).css("z-index",len-i+_a2);}}else{var z=$(_9f).css("z-index");$el.css("z-index",parseInt(z)+1+_a2);}
$el.animate({left:0,top:0},_a1.speedOut,_a1.easeOut,function(){$(fwd?this:_9f).hide();if(cb){cb();}});});};_9b.cssBefore={display:"block",opacity:1,top:0,left:0};};$.fn.cycle.transitions.turnUp=function(_a4,_a5,_a6){_a6.before.push(function(_a7,_a8,_a9){$.fn.cycle.commonReset(_a7,_a8,_a9,true,false);_a9.cssBefore.top=_a8.cycleH;_a9.animIn.height=_a8.cycleH;});_a6.cssFirst={top:0};_a6.cssBefore={left:0,height:0};_a6.animIn={top:0};_a6.animOut={height:0};};$.fn.cycle.transitions.turnDown=function(_aa,_ab,_ac){_ac.before.push(function(_ad,_ae,_af){$.fn.cycle.commonReset(_ad,_ae,_af,true,false);_af.animIn.height=_ae.cycleH;_af.animOut.top=_ad.cycleH;});_ac.cssFirst={top:0};_ac.cssBefore={left:0,top:0,height:0};_ac.animOut={height:0};};$.fn.cycle.transitions.turnLeft=function(_b0,_b1,_b2){_b2.before.push(function(_b3,_b4,_b5){$.fn.cycle.commonReset(_b3,_b4,_b5,false,true);_b5.cssBefore.left=_b4.cycleW;_b5.animIn.width=_b4.cycleW;});_b2.cssBefore={top:0,width:0};_b2.animIn={left:0};_b2.animOut={width:0};};$.fn.cycle.transitions.turnRight=function(_b6,_b7,_b8){_b8.before.push(function(_b9,_ba,_bb){$.fn.cycle.commonReset(_b9,_ba,_bb,false,true);_bb.animIn.width=_ba.cycleW;_bb.animOut.left=_b9.cycleW;});_b8.cssBefore={top:0,left:0,width:0};_b8.animIn={left:0};_b8.animOut={width:0};};$.fn.cycle.transitions.zoom=function(_bc,_bd,_be){_be.before.push(function(_bf,_c0,_c1){$.fn.cycle.commonReset(_bf,_c0,_c1,false,false,true);_c1.cssBefore.top=_c0.cycleH/2;_c1.cssBefore.left=_c0.cycleW/2;_c1.animIn={top:0,left:0,width:_c0.cycleW,height:_c0.cycleH};_c1.animOut={width:0,height:0,top:_bf.cycleH/2,left:_bf.cycleW/2};});_be.cssFirst={top:0,left:0};_be.cssBefore={width:0,height:0};};$.fn.cycle.transitions.fadeZoom=function(_c2,_c3,_c4){_c4.before.push(function(_c5,_c6,_c7){$.fn.cycle.commonReset(_c5,_c6,_c7,false,false);_c7.cssBefore.left=_c6.cycleW/2;_c7.cssBefore.top=_c6.cycleH/2;_c7.animIn={top:0,left:0,width:_c6.cycleW,height:_c6.cycleH};});_c4.cssBefore={width:0,height:0};_c4.animOut={opacity:0};};$.fn.cycle.transitions.blindX=function(_c8,_c9,_ca){var w=_c8.css("overflow","hidden").width();_ca.before.push(function(_cb,_cc,_cd){$.fn.cycle.commonReset(_cb,_cc,_cd);_cd.animIn.width=_cc.cycleW;_cd.animOut.left=_cb.cycleW;});_ca.cssBefore={left:w,top:0};_ca.animIn={left:0};_ca.animOut={left:w};};$.fn.cycle.transitions.blindY=function(_ce,_cf,_d0){var h=_ce.css("overflow","hidden").height();_d0.before.push(function(_d1,_d2,_d3){$.fn.cycle.commonReset(_d1,_d2,_d3);_d3.animIn.height=_d2.cycleH;_d3.animOut.top=_d1.cycleH;});_d0.cssBefore={top:h,left:0};_d0.animIn={top:0};_d0.animOut={top:h};};$.fn.cycle.transitions.blindZ=function(_d4,_d5,_d6){var h=_d4.css("overflow","hidden").height();var w=_d4.width();_d6.before.push(function(_d7,_d8,_d9){$.fn.cycle.commonReset(_d7,_d8,_d9);_d9.animIn.height=_d8.cycleH;_d9.animOut.top=_d7.cycleH;});_d6.cssBefore={top:h,left:w};_d6.animIn={top:0,left:0};_d6.animOut={top:h,left:w};};$.fn.cycle.transitions.growX=function(_da,_db,_dc){_dc.before.push(function(_dd,_de,_df){$.fn.cycle.commonReset(_dd,_de,_df,false,true);_df.cssBefore.left=this.cycleW/2;_df.animIn={left:0,width:this.cycleW};_df.animOut={left:0};});_dc.cssBefore={width:0,top:0};};$.fn.cycle.transitions.growY=function(_e0,_e1,_e2){_e2.before.push(function(_e3,_e4,_e5){$.fn.cycle.commonReset(_e3,_e4,_e5,true,false);_e5.cssBefore.top=this.cycleH/2;_e5.animIn={top:0,height:this.cycleH};_e5.animOut={top:0};});_e2.cssBefore={height:0,left:0};};$.fn.cycle.transitions.curtainX=function(_e6,_e7,_e8){_e8.before.push(function(_e9,_ea,_eb){$.fn.cycle.commonReset(_e9,_ea,_eb,false,true,true);_eb.cssBefore.left=_ea.cycleW/2;_eb.animIn={left:0,width:this.cycleW};_eb.animOut={left:_e9.cycleW/2,width:0};});_e8.cssBefore={top:0,width:0};};$.fn.cycle.transitions.curtainY=function(_ec,_ed,_ee){_ee.before.push(function(_ef,_f0,_f1){$.fn.cycle.commonReset(_ef,_f0,_f1,true,false,true);_f1.cssBefore.top=_f0.cycleH/2;_f1.animIn={top:0,height:_f0.cycleH};_f1.animOut={top:_ef.cycleH/2,height:0};});_ee.cssBefore={left:0,height:0};};$.fn.cycle.transitions.cover=function(_f2,_f3,_f4){var d=_f4.direction||"left";var w=_f2.css("overflow","hidden").width();var h=_f2.height();_f4.before.push(function(_f5,_f6,_f7){$.fn.cycle.commonReset(_f5,_f6,_f7);if(d=="right"){_f7.cssBefore.left=-w;}else{if(d=="up"){_f7.cssBefore.top=h;}else{if(d=="down"){_f7.cssBefore.top=-h;}else{_f7.cssBefore.left=w;}}}});_f4.animIn={left:0,top:0};_f4.animOut={opacity:1};_f4.cssBefore={top:0,left:0};};$.fn.cycle.transitions.uncover=function(_f8,_f9,_fa){var d=_fa.direction||"left";var w=_f8.css("overflow","hidden").width();var h=_f8.height();_fa.before.push(function(_fb,_fc,_fd){$.fn.cycle.commonReset(_fb,_fc,_fd,true,true,true);if(d=="right"){_fd.animOut.left=w;}else{if(d=="up"){_fd.animOut.top=-h;}else{if(d=="down"){_fd.animOut.top=h;}else{_fd.animOut.left=-w;}}}});_fa.animIn={left:0,top:0};_fa.animOut={opacity:1};_fa.cssBefore={top:0,left:0};};$.fn.cycle.transitions.toss=function(_fe,_ff,opts){var w=_fe.css("overflow","visible").width();var h=_fe.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(!opts.animOut.left&&!opts.animOut.top){opts.animOut={left:w*2,top:-h/2,opacity:0};}else{opts.animOut.opacity=0;}});opts.cssBefore={left:0,top:0};opts.animIn={left:0};};$.fn.cycle.transitions.wipe=function(_100,_101,opts){var w=_100.css("overflow","hidden").width();var h=_100.height();opts.cssBefore=opts.cssBefore||{};var clip;if(opts.clip){if(/l2r/.test(opts.clip)){clip="rect(0px 0px "+h+"px 0px)";}else{if(/r2l/.test(opts.clip)){clip="rect(0px "+w+"px "+h+"px "+w+"px)";}else{if(/t2b/.test(opts.clip)){clip="rect(0px "+w+"px 0px 0px)";}else{if(/b2t/.test(opts.clip)){clip="rect("+h+"px "+w+"px "+h+"px 0px)";}else{if(/zoom/.test(opts.clip)){var top=parseInt(h/2);var left=parseInt(w/2);clip="rect("+top+"px "+left+"px "+top+"px "+left+"px)";}}}}}}
opts.cssBefore.clip=opts.cssBefore.clip||clip||"rect(0px 0px 0px 0px)";var d=opts.cssBefore.clip.match(/(\d+)/g);var t=parseInt(d[0]),r=parseInt(d[1]),b=parseInt(d[2]),l=parseInt(d[3]);opts.before.push(function(curr,next,opts){if(curr==next){return;}
var _102=$(curr),_103=$(next);$.fn.cycle.commonReset(curr,next,opts,true,true,false);opts.cssAfter.display="block";var step=1,_104=parseInt((opts.speedIn/13))-1;(function f(){var tt=t?t-parseInt(step*(t/_104)):0;var ll=l?l-parseInt(step*(l/_104)):0;var bb=b<h?b+parseInt(step*((h-b)/_104||1)):h;var rr=r<w?r+parseInt(step*((w-r)/_104||1)):w;_103.css({clip:"rect("+tt+"px "+rr+"px "+bb+"px "+ll+"px)"});(step++<=_104)?setTimeout(f,13):_102.css("display","none");})();});opts.cssBefore={display:"block",opacity:1,top:0,left:0};opts.animIn={left:0};opts.animOut={left:0};};})(jQuery);(function($){$.jScrollPane={active:[]};$.fn.jScrollPane=function(_105){_105=$.extend({},$.fn.jScrollPane.defaults,_105);var rf=function(){return false;};return this.each(function(){var _106=$(this);var _107=this;var _108=0;var _109;var _10a;var _10b;var _10c=_105.topCapHeight;var _10d;if($(this).parent().is(".jScrollPaneContainer")){_10d=$(this).parent();_108=_105.maintainPosition?_106.position().top:0;var $c=$(this).parent();_109=$c.innerWidth();_10a=$c.outerHeight();$(">.jScrollPaneTrack, >.jScrollArrowUp, >.jScrollArrowDown, >.jScrollCap",$c).remove();_106.css({"top":0});}else{_106.data("originalStyleTag",_106.attr("style"));_106.css("overflow","hidden");this.originalPadding=_106.css("paddingTop")+" "+_106.css("paddingRight")+" "+_106.css("paddingBottom")+" "+_106.css("paddingLeft");this.originalSidePaddingTotal=(parseInt(_106.css("paddingLeft"))||0)+(parseInt(_106.css("paddingRight"))||0);_109=_106.innerWidth();_10a=_106.innerHeight();_10d=$("<div></div>").attr({"className":"jScrollPaneContainer"}).css({"height":_10a+"px","width":_109+"px"});if(_105.enableKeyboardNavigation){_10d.attr("tabindex",_105.tabIndex);}
_106.wrap(_10d);_10d=_106.parent();$(document).bind("emchange",function(e,cur,prev){_106.jScrollPane(_105);});}
_10b=_10a;if(_105.reinitialiseOnImageLoad){var _10e=$.data(_107,"jScrollPaneImagesToLoad")||$("img",_106);var _10f=[];if(_10e.length){_10e.each(function(i,val){$(this).bind("load readystatechange",function(){if($.inArray(i,_10f)==-1){_10f.push(val);_10e=$.grep(_10e,function(n,i){return n!=val;});$.data(_107,"jScrollPaneImagesToLoad",_10e);var s2=$.extend(_105,{reinitialiseOnImageLoad:false});_106.jScrollPane(s2);}}).each(function(i,val){if(this.complete||this.complete===undefined){this.src=this.src;}});});}}
var p=this.originalSidePaddingTotal;var _110=_109-_105.scrollbarWidth-_105.scrollbarMargin-p;var _111={"height":"auto","width":_110+"px"};if(_105.scrollbarOnLeft){_111.paddingLeft=_105.scrollbarMargin+_105.scrollbarWidth+"px";}else{_111.paddingRight=_105.scrollbarMargin+"px";}
_106.css(_111);var _112=_106.outerHeight();var _113=_10a/_112;var _114=_113<0.99;_10d[_114?"addClass":"removeClass"]("jScrollPaneScrollable");if(_114){_10d.append($("<div></div>").addClass("jScrollCap jScrollCapTop").css({height:_105.topCapHeight}),$("<div></div>").attr({"className":"jScrollPaneTrack"}).css({"width":_105.scrollbarWidth+"px"}).append($("<div></div>").attr({"className":"jScrollPaneDrag"}).css({"width":_105.scrollbarWidth+"px"}).append($("<div></div>").attr({"className":"jScrollPaneDragTop"}).css({"width":_105.scrollbarWidth+"px"}),$("<div></div>").attr({"className":"jScrollPaneDragBottom"}).css({"width":_105.scrollbarWidth+"px"}))),$("<div></div>").addClass("jScrollCap jScrollCapBottom").css({height:_105.bottomCapHeight}));var _115=$(">.jScrollPaneTrack",_10d);var _116=$(">.jScrollPaneTrack .jScrollPaneDrag",_10d);var _117;var _118=[];var _119;var _11a=function(){if(_119>4||_119%4==0){_11b(_11c+_117*_11d);}
_119++;};if(_105.enableKeyboardNavigation){_10d.bind("keydown.jscrollpane",function(e){switch(e.keyCode){case 38:_117=-1;_119=0;_11a();_118[_118.length]=setInterval(_11a,100);return false;case 40:_117=1;_119=0;_11a();_118[_118.length]=setInterval(_11a,100);return false;case 33:case 34:return false;default:}}).bind("keyup.jscrollpane",function(e){if(e.keyCode==38||e.keyCode==40){for(var i=0;i<_118.length;i++){clearInterval(_118[i]);}
return false;}});}
if(_105.showArrows){var _11e;var _11f;var _120=function(_121){$("html").unbind("mouseup",_120);_11e.removeClass("jScrollActiveArrowButton");clearInterval(_11f);};var _122=function(){$("html").bind("mouseup",_120);_11e.addClass("jScrollActiveArrowButton");_119=0;_11a();_11f=setInterval(_11a,100);};_10d.append($("<a></a>").attr({"href":"javascript:;","className":"jScrollArrowUp","tabindex":-1}).css({"width":_105.scrollbarWidth+"px","top":_105.topCapHeight+"px"}).html("Scroll up").bind("mousedown",function(){_11e=$(this);_117=-1;_122();this.blur();return false;}).bind("click",rf),$("<a></a>").attr({"href":"javascript:;","className":"jScrollArrowDown","tabindex":-1}).css({"width":_105.scrollbarWidth+"px","bottom":_105.bottomCapHeight+"px"}).html("Scroll down").bind("mousedown",function(){_11e=$(this);_117=1;_122();this.blur();return false;}).bind("click",rf));var _123=$(">.jScrollArrowUp",_10d);var _124=$(">.jScrollArrowDown",_10d);}
if(_105.arrowSize){_10b=_10a-_105.arrowSize-_105.arrowSize;_10c+=_105.arrowSize;}else{if(_123){var _125=_123.height();_105.arrowSize=_125;_10b=_10a-_125-_124.height();_10c+=_125;}}
_10b-=_105.topCapHeight+_105.bottomCapHeight;_115.css({"height":_10b+"px",top:_10c+"px"});var _126=$(this).css({"position":"absolute","overflow":"visible"});var _127;var maxY;var _11d;var _11c=0;var _128=_113*_10a/2;var _129=function(_12a,c){var p=c=="X"?"Left":"Top";return _12a["page"+c]||(_12a["client"+c]+(document.documentElement["scroll"+p]||document.body["scroll"+p]))||0;};var _12b=function(){return false;};var _12c=function(){_12d();_127=_116.offset(false);_127.top-=_11c;maxY=_10b-_116[0].offsetHeight;_11d=2*_105.wheelSpeed*maxY/_112;};var _12e=function(_12f){_12c();_128=_129(_12f,"Y")-_11c-_127.top;$("html").bind("mouseup",_130).bind("mousemove",_131);if($.browser.msie){$("html").bind("dragstart",_12b).bind("selectstart",_12b);}
return false;};var _130=function(){$("html").unbind("mouseup",_130).unbind("mousemove",_131);_128=_113*_10a/2;if($.browser.msie){$("html").unbind("dragstart",_12b).unbind("selectstart",_12b);}};var _11b=function(_132){_10d.scrollTop(0);_132=_132<0?0:(_132>maxY?maxY:_132);_11c=_132;_116.css({"top":_132+"px"});var p=_132/maxY;_106.data("jScrollPanePosition",(_10a-_112)*-p);_126.css({"top":((_10a-_112)*p)+"px"});_106.trigger("scroll");if(_105.showArrows){_123[_132==0?"addClass":"removeClass"]("disabled");_124[_132==maxY?"addClass":"removeClass"]("disabled");}};var _131=function(e){_11b(_129(e,"Y")-_127.top-_128);};var _133=Math.max(Math.min(_113*(_10a-_105.arrowSize*2),_105.dragMaxHeight),_105.dragMinHeight);_116.css({"height":_133+"px"}).bind("mousedown",_12e);var _134;var _135;var _136;var _137=function(){if(_135>8||_135%4==0){_11b((_11c-((_11c-_136)/2)));}
_135++;};var _138=function(){clearInterval(_134);$("html").unbind("mouseup",_138).unbind("mousemove",_139);};var _139=function(_13a){_136=_129(_13a,"Y")-_127.top-_128;};var _13b=function(_13c){_12c();_139(_13c);_135=0;$("html").bind("mouseup",_138).bind("mousemove",_139);_134=setInterval(_137,100);_137();return false;};_115.bind("mousedown",_13b);_10d.bind("mousewheel",function(_13d,_13e){_13e=_13e||(_13d.wheelDelta?_13d.wheelDelta/120:(_13d.detail)?-_13d.detail/3:0);_12c();_12d();var d=_11c;_11b(_11c-_13e*_11d);var _13f=d!=_11c;return!_13f;});var _140;var _141;function _142(){var diff=(_140-_11c)/_105.animateStep;if(diff>1||diff<-1){_11b(_11c+diff);}else{_11b(_140);_12d();}};var _12d=function(){if(_141){clearInterval(_141);delete _140;}};var _143=function(pos,_144){if(typeof pos=="string"){try{$e=$(pos,_106);}
catch(err){return;}
if(!$e.length){return;}
pos=$e.offset().top-_106.offset().top;}
_12d();var _145=_112-_10a;pos=pos>_145?_145:pos;_106.data("jScrollPaneMaxScroll",_145);var _146=pos/_145*maxY;if(_144||!_105.animateTo){_11b(_146);}else{_10d.scrollTop(0);_140=_146;_141=setInterval(_142,_105.animateInterval);}};_106[0].scrollTo=_143;_106[0].scrollBy=function(_147){var _148=-parseInt(_126.css("top"))||0;_143(_148+_147);};_12c();_143(-_108,true);$("*",this).bind("focus",function(_149){var $e=$(this);var _14a=0;while($e[0]!=_106[0]){_14a+=$e.position().top;$e=$e.offsetParent();}
var _14b=-parseInt(_126.css("top"))||0;var _14c=_14b+_10a;var _14d=_14a>_14b&&_14a<_14c;if(!_14d){var _14e=_14a-_105.scrollbarMargin;if(_14a>_14b){_14e+=$(this).height()+15+_105.scrollbarMargin-_10a;}
_143(_14e);}});if(_105.observeHash){if(location.hash&&location.hash.length>1){setTimeout(function(){_143(location.hash);},$.browser.safari?100:0);}
$(document).bind("click",function(e){$target=$(e.target);if($target.is("a")){var h=$target.attr("href");if(h&&h.substr(0,1)=="#"&&h.length>1){setTimeout(function(){_143(h,!_105.animateToInternalLinks);},$.browser.safari?100:0);}}});}
function _14f(e){$(document).bind("mousemove.jScrollPaneDragging",_150);$(document).bind("mouseup.jScrollPaneDragging",_151);};var _152;var _153;function _154(){direction=_152<0?-1:1;_106[0].scrollBy(_152/2);};function _155(){if(_153){clearInterval(_153);_153=undefined;}};function _150(e){var _156=_106.parent().offset().top;var _157=_156+_10a;var _158=_129(e,"Y");_152=_158<_156?_158-_156:(_158>_157?_158-_157:0);if(_152==0){_155();}else{if(!_153){_153=setInterval(_154,100);}}};function _151(e){$(document).unbind("mousemove.jScrollPaneDragging").unbind("mouseup.jScrollPaneDragging");_155();};_10d.bind("mousedown.jScrollPane",_14f);$.jScrollPane.active.push(_106[0]);}else{_106.css({"height":_10a+"px","width":_109-this.originalSidePaddingTotal+"px","padding":this.originalPadding});_106[0].scrollTo=_106[0].scrollBy=function(){};_106.parent().unbind("mousewheel").unbind("mousedown.jScrollPane").unbind("keydown.jscrollpane").unbind("keyup.jscrollpane");}});};$.fn.jScrollPaneRemove=function(){$(this).each(function(){$this=$(this);var $c=$this.parent();if($c.is(".jScrollPaneContainer")){$this.css({"top":"","height":"","width":"","padding":"","overflow":"","position":""});$this.attr("style",$this.data("originalStyleTag"));$c.after($this).remove();}});};$.fn.jScrollPane.defaults={scrollbarWidth:10,scrollbarMargin:5,wheelSpeed:18,showArrows:false,arrowSize:0,animateTo:false,dragMinHeight:1,dragMaxHeight:99999,animateInterval:100,animateStep:3,maintainPosition:true,scrollbarOnLeft:false,reinitialiseOnImageLoad:false,tabIndex:0,enableKeyboardNavigation:true,animateToInternalLinks:false,topCapHeight:0,bottomCapHeight:0,observeHash:true};$(window).bind("unload",function(){var els=$.jScrollPane.active;for(var i=0;i<els.length;i++){els[i].scrollTo=els[i].scrollBy=null;}});})(jQuery);(function(c){var a=["DOMMouseScroll","mousewheel"];c.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var d=a.length;d;){this.addEventListener(a[--d],b,false);}}else{this.onmousewheel=b;}},teardown:function(){if(this.removeEventListener){for(var d=a.length;d;){this.removeEventListener(a[--d],b,false);}}else{this.onmousewheel=null;}}};c.fn.extend({mousewheel:function(d){return d?this.bind("mousewheel",d):this.trigger("mousewheel");},unmousewheel:function(d){return this.unbind("mousewheel",d);}});function b(f){var d=[].slice.call(arguments,1),g=0,e=true;f=c.event.fix(f||window.event);f.type="mousewheel";if(f.wheelDelta){g=f.wheelDelta/120;}
if(f.detail){g=-f.detail/3;}
d.unshift(f,g);return c.event.handle.apply(this,d);};})(jQuery);jQuery.extend(jQuery.easing,{easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b;},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b;},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t+b;}
return-c/2*((--t)*(t-2)-1)+b;},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b;},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b;},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t+b;}
return c/2*((t-=2)*t*t+2)+b;},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b;},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b;},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t*t+b;}
return-c/2*((t-=2)*t*t*t-2)+b;},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b;},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b;},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t*t*t+b;}
return c/2*((t-=2)*t*t*t*t+2)+b;},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b;},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b;},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b;},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b;},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b;},easeInOutExpo:function(x,t,b,c,d){if(t==0){return b;}
if(t==d){return b+c;}
if((t/=d/2)<1){return c/2*Math.pow(2,10*(t-1))+b;}
return c/2*(-Math.pow(2,-10*--t)+2)+b;},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b;},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b;},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1){return-c/2*(Math.sqrt(1-t*t)-1)+b;}
return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b;},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0){return b;}
if((t/=d)==1){return b+c;}
if(!p){p=d*0.3;}
if(a<Math.abs(c)){a=c;var s=p/4;}else{var s=p/(2*Math.PI)*Math.asin(c/a);}
return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0){return b;}
if((t/=d)==1){return b+c;}
if(!p){p=d*0.3;}
if(a<Math.abs(c)){a=c;var s=p/4;}else{var s=p/(2*Math.PI)*Math.asin(c/a);}
return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0){return b;}
if((t/=d/2)==2){return b+c;}
if(!p){p=d*(0.3*1.5);}
if(a<Math.abs(c)){a=c;var s=p/4;}else{var s=p/(2*Math.PI)*Math.asin(c/a);}
if(t<1){return-0.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;}
return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*0.5+c+b;},easeInBack:function(x,t,b,c,d,s){if(s==undefined){s=1.70158;}
return c*(t/=d)*t*((s+1)*t-s)+b;},easeOutBack:function(x,t,b,c,d,s){if(s==undefined){s=1.70158;}
return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined){s=1.70158;}
if((t/=d/2)<1){return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;}
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b;},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b;}else{if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+0.75)+b;}else{if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+0.9375)+b;}else{return c*(7.5625*(t-=(2.625/2.75))*t+0.984375)+b;}}}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2){return jQuery.easing.easeInBounce(x,t*2,0,c,d)*0.5+b;}
return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*0.5+c*0.5+b;}});(function(c){function r(b,d){d=d==="x"?m.width():m.height();return typeof b==="string"?Math.round(b.match(/%/)?d/100*parseInt(b,10):parseInt(b,10)):b;};function M(b){b=c.isFunction(b)?b.call(i):b;return a.photo||b.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i);};function Y(){for(var b in a){if(c.isFunction(a[b])&&b.substring(0,2)!=="on"){a[b]=a[b].call(i);}}
a.rel=a.rel||i.rel;a.href=a.href||i.href;a.title=a.title||i.title;};function Z(b){i=b;a=c(i).data(q);Y();if(a.rel&&a.rel!=="nofollow"){g=c(".cboxElement").filter(function(){return(c(this).data(q).rel||this.rel)===a.rel;});j=g.index(i);if(j<0){g=g.add(i);j=g.length-1;}}else{g=c(i);j=0;}
if(!B){C=B=n;N=i;N.blur();c(document).bind("keydown.cbox_close",function(d){if(d.keyCode===27){d.preventDefault();e.close();}}).bind("keydown.cbox_arrows",function(d){if(g.length>1){if(d.keyCode===37){d.preventDefault();D.click();}else{if(d.keyCode===39){d.preventDefault();E.click();}}}});a.overlayClose&&s.css({cursor:"pointer"}).one("click",e.close);c.event.trigger(aa);a.onOpen&&a.onOpen.call(i);s.css({opacity:a.opacity}).show();a.w=r(a.initialWidth,"x");a.h=r(a.initialHeight,"y");e.position(0);O&&m.bind("resize.cboxie6 scroll.cboxie6",function(){s.css({width:m.width(),height:m.height(),top:m.scrollTop(),left:m.scrollLeft()});}).trigger("scroll.cboxie6");}
P.add(D).add(E).add(t).add(Q).hide();R.html(a.close).show();e.slideshow();e.load();};var q="colorbox",F="hover",n=true,e,x=!c.support.opacity,O=x&&!window.XMLHttpRequest,aa="cbox_open",H="cbox_load",S="cbox_complete",T="resize.cbox_resize",s,k,u,p,U,V,W,X,g,m,l,I,J,K,Q,P,t,E,D,R,y,z,v,w,i,N,j,a,B,C,$={transition:"elastic",speed:350,width:false,height:false,innerWidth:false,innerHeight:false,initialWidth:"400",initialHeight:"400",maxWidth:false,maxHeight:false,scalePhotos:n,scrolling:n,inline:false,html:false,iframe:false,photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:n,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,overlayClose:n,slideshow:false,slideshowAuto:n,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false};e=c.fn.colorbox=function(b,d){var h=this;if(!h.length){if(h.selector===""){h=c("<a/>");b.open=n;}else{return this;}}
h.each(function(){var f=c.extend({},c(this).data(q)?c(this).data(q):$,b);c(this).data(q,f).addClass("cboxElement");if(d){c(this).data(q).onComplete=d;}});b&&b.open&&Z(h);return this;};e.init=function(){function b(d){return c("<div id=\"cbox"+d+"\"/>");};m=c(window);k=c("<div id=\"colorbox\"/>");s=b("Overlay").hide();u=b("Wrapper");p=b("Content").append(l=b("LoadedContent").css({width:0,height:0}),J=b("LoadingOverlay"),K=b("LoadingGraphic"),Q=b("Title"),P=b("Current"),t=b("Slideshow"),E=b("Next"),D=b("Previous"),R=b("Close"));u.append(c("<div/>").append(b("TopLeft"),U=b("TopCenter"),b("TopRight")),c("<div/>").append(V=b("MiddleLeft"),p,W=b("MiddleRight")),c("<div/>").append(b("BottomLeft"),X=b("BottomCenter"),b("BottomRight"))).children().children().css({"float":"left"});I=c("<div style='position:absolute; top:0; left:0; width:9999px; height:0;'/>");c("body").prepend(s,k.append(u,I));if(x){k.addClass("cboxIE");O&&s.css("position","absolute");}
p.children().bind("mouseover mouseout",function(){c(this).toggleClass(F);}).addClass(F);y=U.height()+X.height()+p.outerHeight(n)-p.height();z=V.width()+W.width()+p.outerWidth(n)-p.width();v=l.outerHeight(n);w=l.outerWidth(n);k.css({"padding-bottom":y,"padding-right":z}).hide();E.click(e.next);D.click(e.prev);R.click(e.close);p.children().removeClass(F);c(".cboxElement").live("click",function(d){if(d.button!==0&&typeof d.button!=="undefined"){return n;}else{Z(this);return false;}});};e.position=function(b,d){function h(A){U[0].style.width=X[0].style.width=p[0].style.width=A.style.width;K[0].style.height=J[0].style.height=p[0].style.height=V[0].style.height=W[0].style.height=A.style.height;};var f=m.height();f=Math.max(f-a.h-v-y,0)/2+m.scrollTop();var o=Math.max(document.documentElement.clientWidth-a.w-w-z,0)/2+m.scrollLeft();b=k.width()===a.w+w&&k.height()===a.h+v?0:b;u[0].style.width=u[0].style.height="9999px";k.dequeue().animate({width:a.w+w,height:a.h+v,top:f,left:o},{duration:b,complete:function(){h(this);C=false;u[0].style.width=a.w+w+z+"px";u[0].style.height=a.h+v+y+"px";d&&d();},step:function(){h(this);}});};e.resize=function(b){function d(){a.w=a.w||l.width();a.w=a.mw&&a.mw<a.w?a.mw:a.w;return a.w;};function h(){a.h=a.h||l.height();a.h=a.mh&&a.mh<a.h?a.mh:a.h;return a.h;};function f(G){e.position(G,function(){if(B){if(x){A&&l.fadeIn(100);k[0].style.removeAttribute("filter");}
if(a.iframe){l.append("<iframe id='cboxIframe'"+(a.scrolling?" ":"scrolling='no'")+" name='iframe_"+(new Date).getTime()+"' frameborder=0 src='"+a.href+"' "+(x?"allowtransparency='true'":"")+" />");}
l.show();Q.show().html(a.title);if(g.length>1){P.html(a.current.replace(/\{current\}/,j+1).replace(/\{total\}/,g.length)).show();E.html(a.next).show();D.html(a.previous).show();a.slideshow&&t.show();}
J.hide();K.hide();c.event.trigger(S);a.onComplete&&a.onComplete.call(i);a.transition==="fade"&&k.fadeTo(L,1,function(){x&&k[0].style.removeAttribute("filter");});m.bind(T,function(){e.position(0);});}});};if(B){var o,A,L=a.transition==="none"?0:a.speed;m.unbind(T);if(b){l.remove();l=c("<div id=\"cboxLoadedContent\"/>").html(b);l.hide().appendTo(I).css({width:d(),overflow:a.scrolling?"auto":"hidden"}).css({height:h()}).prependTo(p);c("#cboxPhoto").css({cssFloat:"none"});O&&c("select:not(#colorbox select)").filter(function(){return this.style.visibility!=="hidden";}).css({visibility:"hidden"}).one("cbox_cleanup",function(){this.style.visibility="inherit";});a.transition==="fade"&&k.fadeTo(L,0,function(){f(0);})||f(L);if(a.preloading&&g.length>1){b=j>0?g[j-1]:g[g.length-1];o=j<g.length-1?g[j+1]:g[0];o=c(o).data(q).href||o.href;b=c(b).data(q).href||b.href;M(o)&&c("<img />").attr("src",o);M(b)&&c("<img />").attr("src",b);}}else{setTimeout(function(){var G=l.wrapInner("<div style='overflow:auto'></div>").children();a.h=G.height();l.css({height:a.h});G.replaceWith(G.children());e.position(L);},1);}}};e.load=function(){var b,d,h,f=e.resize;C=n;i=g[j];a=c(i).data(q);Y();c.event.trigger(H);a.onLoad&&a.onLoad.call(i);a.h=a.height?r(a.height,"y")-v-y:a.innerHeight?r(a.innerHeight,"y"):false;a.w=a.width?r(a.width,"x")-w-z:a.innerWidth?r(a.innerWidth,"x"):false;a.mw=a.w;a.mh=a.h;if(a.maxWidth){a.mw=r(a.maxWidth,"x")-w-z;a.mw=a.w&&a.w<a.mw?a.w:a.mw;}
if(a.maxHeight){a.mh=r(a.maxHeight,"y")-v-y;a.mh=a.h&&a.h<a.mh?a.h:a.mh;}
b=a.href;J.show();K.show();if(a.inline){c("<div id=\"cboxInlineTemp\" />").hide().insertBefore(c(b)[0]).bind(H+" cbox_cleanup",function(){c(this).replaceWith(l.children());});f(c(b));}else{if(a.iframe){f(" ");}else{if(a.html){f(a.html);}else{if(M(b)){d=new Image;d.onload=function(){var o;d.onload=null;d.id="cboxPhoto";c(d).css({margin:"auto",border:"none",display:"block",cssFloat:"left"});if(a.scalePhotos){h=function(){d.height-=d.height*o;d.width-=d.width*o;};if(a.mw&&d.width>a.mw){o=(d.width-a.mw)/d.width;h();}
if(a.mh&&d.height>a.mh){o=(d.height-a.mh)/d.height;h();}}
if(a.h){d.style.marginTop=Math.max(a.h-d.height,0)/2+"px";}
f(d);g.length>1&&c(d).css({cursor:"pointer"}).click(e.next);if(x){d.style.msInterpolationMode="bicubic";}};d.src=b;}else{c("<div />").appendTo(I).load(b,function(o,A){A==="success"?f(this):f(c("<p>Request unsuccessful.</p>"));});}}}}};e.next=function(){if(!C){j=j<g.length-1?j+1:0;e.load();}};e.prev=function(){if(!C){j=j>0?j-1:g.length-1;e.load();}};e.slideshow=function(){function b(){t.text(a.slideshowStop).bind(S,function(){h=setTimeout(e.next,a.slideshowSpeed);}).bind(H,function(){clearTimeout(h);}).one("click",function(){d();c(this).removeClass(F);});k.removeClass(f+"off").addClass(f+"on");};var d,h,f="cboxSlideshow_";t.bind("cbox_closed",function(){t.unbind();clearTimeout(h);k.removeClass(f+"off "+f+"on");});d=function(){clearTimeout(h);t.text(a.slideshowStart).unbind(S+" "+H).one("click",function(){b();h=setTimeout(e.next,a.slideshowSpeed);c(this).removeClass(F);});k.removeClass(f+"on").addClass(f+"off");};if(a.slideshow&&g.length>1){a.slideshowAuto?b():d();}};e.close=function(){c.event.trigger("cbox_cleanup");a.onCleanup&&a.onCleanup.call(i);B=false;c(document).unbind("keydown.cbox_close keydown.cbox_arrows");m.unbind(T+" resize.cboxie6 scroll.cboxie6");s.css({cursor:"auto"}).fadeOut("fast");k.stop(n,false).fadeOut("fast",function(){c("#colorbox iframe").attr("src","about:blank");l.remove();k.css({opacity:1});try{N.focus();}
catch(b){}
c.event.trigger("cbox_closed");a.onClosed&&a.onClosed.call(i);});};e.element=function(){return c(i);};e.settings=$;c(e.init);})(jQuery);

/*
 *	<script src="js/jquery-1.4.2.min.js" type="text/javascript" charset="utf-8"></script>
 *	<script src="js/easySlider1.7.js" type="text/javascript" charset="utf-8"></script>
 *	<script src="js/jquery.cycle.all.js" type="text/javascript" charset="utf-8"></script>
 *	<script src="js/jscroll.js" type="text/javascript" charset="utf-8"></script>	
 *	<script src="js/jquery.mousewheel.min.js" type="text/javascript" charset="utf-8"></script>
 *	<script src="js/jquery.easing.1.2.js" type="text/javascript" charset="utf-8"></script>
 *	<script src="js/jquery.colorbox-min.js" type="text/javascript" charset="utf-8"></script>
 */

		$(document).ready(function() {
			$('.page-content').jScrollPane();
			$("#gallery_spring").easySlider({
				auto: false,
				pause: 10000,
				continuous: true,
				nextId: "spring1next",
				prevId: "spring1prev",
				speed: "400",
				numeric: true,
				numericId: "springnav"
			});
			$("#gallery_summer").easySlider({
				auto: false,
				pause: 10000,
				continuous: true,
				nextId: "summer1next",
				prevId: "summer1prev",
				speed: "400",
				numeric: true,
				numericId: "summernav"
			});
			$("#gallery_fall").easySlider({
				auto: false,
				pause: 10000,
				continuous: true,
				nextId: "fall1next",
				prevId: "fall1prev",
				speed: "400",
				numeric: true,
				numericId: "fallnav"
			});
			$("#gallery_winter").easySlider({
				auto: false,
				pause: 10000,
				continuous: true,
				nextId: "winter1next",
				prevId: "winter1prev",
				speed: "400",
				numeric: true,
				numericId: "winternav"
			});
			$("#gallery_engagement").easySlider({
				auto: false,
				pause: 10000,
				continuous: true,
				nextId: "engagement1next",
				prevId: "engagement1prev",
				speed: "400",
				numeric: true,
				numericId: "engagementnav"
			});
			$("#gallery_families").easySlider({
				auto: false,
				pause: 10000,
				continuous: true,
				nextId: "families1next",
				prevId: "families1prev",
				speed: "400",
				numeric: true,
				numericId: "familiesnav"
			});
			$("#gallery_seniors").easySlider({
				auto: false,
				pause: 10000,
				continuous: true,
				nextId: "seniors1next",
				prevId: "seniors1prev",
				speed: "400",
				numeric: true,
				numericId: "seniorsnav"
			});
			$("#gallery_corporate").easySlider({
				auto: false,
				pause: 10000,
				continuous: true,
				nextId: "corporate1next",
				prevId: "corporate1prev",
				speed: "400",
				numeric: true,
				numericId: "corporatenav"
			});
			$("#gallery_others").easySlider({
				auto: false,
				pause: 10000,
				continuous: true,
				nextId: "others1next",
				prevId: "others1prev",
				speed: "400",
				numeric: true,
				numericId: "othersnav"
			});
			$("#gallery_pre").easySlider({
				auto: false,
				pause: 10000,
				continuous: true,
				nextId: "pre1next",
				prevId: "pre1prev",
				speed: "400",
				numeric: true,
				numericId: "prenav"
			});
			$("#gallery_details").easySlider({
				auto: false,
				pause: 10000,
				continuous: true,
				nextId: "details1next",
				prevId: "details1prev",
				speed: "400",
				numeric: true,
				numericId: "detailsnav"
			});
			$('#main_site').cycle({
				fx: 'shuffle',
				shuffle: ({top:-400,left:70}),
				timeout: 0,
				speed:200
			});
			$('#home-page').click(function() { 
			    $('#main_site').cycle(0); 
			    return false; 
			});

			$('#wedding-spring').click(function() { 
			    $('#main_site').cycle(2); 
			    return false; 
			});
			$('#wedding-summer').click(function() { 
			    $('#main_site').cycle(3); 
			    return false; 
			});
			$('#wedding-fall').click(function() { 
			    $('#main_site').cycle(4); 
			    return false; 
			});
			$('#wedding-winter').click(function() { 
			    $('#main_site').cycle(5); 
			    return false; 
			});
			$('#wedding-engagement').click(function() { 
			    $('#main_site').cycle(6); 
			    return false; 
			});
			$('#portraits-bridal').click(function() { 
			    $('#main_site').cycle(16); 
			    return false; 
			});
			$('#details').click(function() { 
			    $('#main_site').cycle(17); 
			    return false; 
			});
			$('#portraits-families').click(function() { 
			    $('#main_site').cycle(7); 
			    return false; 
			});
			$('#portraits-seniors').click(function() { 
			    $('#main_site').cycle(8); 
			    return false; 
			});
			$('#portraits-corporate').click(function() { 
			    $('#main_site').cycle(9); 
			    return false; 
			});
			$('#gallery-others').click(function() { 
			    $('#main_site').cycle(15); 
			    return false; 
			});
			$('#aboutus-page').click(function() { 
			    $('#main_site').cycle(10); 
			    return false; 
			});
			$('#writeus-page').click(function() { 
			    $('#main_site').cycle(11); 
			    return false; 
			});
			$('#availability-page').click(function() { 
			    $('#main_site').cycle(12); 
			    return false; 
			});
			$('#testimonials-page').click(function() { 
			    $('#main_site').cycle(13); 
			    return false; 
			});
			$('#references-page').click(function() { 
			    $('#main_site').cycle(14); 
			    return false; 
			});
			$('#wedding-gallery').mouseover(function() {
				$('#portraits-sub').hide('slow');  
				$('#wedding-sub').show('slow');
			});

			$('#portraits-gallery').mouseover(function() {
				$('#wedding-sub').hide('slow');  
				$('#portraits-sub').show('slow');
			});

			$(".galleryLB").colorbox({transition:"elastic",maxHeight:"80%",scalePhotos:"true",current:""});
			$("a[rel='spring']").colorbox({transition:"elastic",maxHeight:"80%",scalePhotos:"true"});
			$("a[rel='summer']").colorbox({transition:"elastic",maxHeight:"80%",scalePhotos:"true",current:""});
			$("a[rel='fall']").colorbox({transition:"elastic",maxHeight:"80%",scalePhotos:"true"});
			$("a[rel='winter']").colorbox({transition:"elastic",maxHeight:"80%",scalePhotos:"true"});
			$("a[rel='engagement']").colorbox({transition:"elastic",maxHeight:"80%",scalePhotos:"true"});
			$("a[rel='families']").colorbox({transition:"elastic",maxHeight:"80%",scalePhotos:"true"});
			$("a[rel='seniors']").colorbox({transition:"elastic",maxHeight:"80%",scalePhotos:"true"});
			$("a[rel='corporate']").colorbox({transition:"elastic",maxHeight:"80%",scalePhotos:"true"});
			$("a[rel='others']").colorbox({transition:"elastic",maxHeight:"80%",scalePhotos:"true"});
			$("a[rel='prebridal']").colorbox({transition:"elastic",maxHeight:"80%",scalePhotos:"true"});
			$("a[rel='details']").colorbox({transition:"elastic",maxHeight:"80%",scalePhotos:"true"});
			
			$(".button").click(function() {
					// validate and process form
					// first hide any error messages
			    $('.error').hide();

				  var name = $("input#name").val();
					if (name == "") {
			      $("label#name_error").show();
			      $("input#name").focus();
			      return false;
			    }
					var email = $("input#email").val();
					if (email == "") {
			      $("label#email_error").show();
			      $("input#email").focus();
			      return false;
			    }
					var phone = $("input#phone").val();
					if (phone == "") {
			      $("label#phone_error").show();
			      $("input#phone").focus();
			      return false;
			    }
					var date = $("input#date").val();
					if (date == "") {
			      $("label#date_error").show();
			      $("input#date").focus();
			      return false;
			    }
					var location = $("input#location").val();
					if (location == "") {
			      $("label#location_error").show();
			      $("input#location").focus();
			      return false;
			    }
				var comments = $("textarea#comments").val();
				if (comments == "") {
		      $("label#comments_error").show();
		      $("textarea#comments").focus();
		      return false;
		    }

var dataString = 'name='+ name + '&email=' + email + '&phone=' + phone + '&date=' + date + '&location=' + location + '&comments=' + comments;
				//alert (dataString);return false;

				$.ajax({
			      type: "POST",
			      url: "process.php",
			      data: dataString,
			      success: function() {
			        $('#contact_form').html("<div id='message'></div>");
			        $('#message').html("<p>Thanks! Your message has been received. We will get back to you soon!</p>")
			        .hide()
			        .fadeIn(1500, function() {
			          $('#message').append("");
			        });
			      }
			     });
			    return false;
				});
		});

