(function(g){(function(n){n.fn.bgiframe=(n.browser.msie&&/msie 6\.0/i.test(navigator.userAgent)?function(r){r=n.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},r);var q='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+r.src+'"style="display:block;position:absolute;z-index:-1;'+(r.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(r.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":o(r.top))+";left:"+(r.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":o(r.left))+";width:"+(r.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":o(r.width))+";height:"+(r.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":o(r.height))+';"/>';return this.each(function(){if(n(this).children("iframe.bgiframe").length===0){this.insertBefore(document.createElement(q),this.firstChild)}})}:function(){return this});n.fn.bgIframe=n.fn.bgiframe;function o(q){return q&&q.constructor===Number?q+"px":q}})(jQuery);(function(a9,aK){var aR="none",aq="LoadedContent",a8=false,aP="resize.",aW="y",aU="auto",a6=true,ar="nofollow",aY="x";function a5(n,o){n=n?' id="'+a2+n+'"':"";o=o?' style="'+o+'"':"";return a9("<div"+n+o+"/>")}function aV(o,n){n=n===aY?aX.width():aX.height();return typeof o==="string"?Math.round(/%/.test(o)?n/100*parseInt(o,10):parseInt(o,10)):o}function ai(n){return ba.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(n)}function aI(n){for(var o in n){if(a9.isFunction(n[o])&&o.substring(0,2)!=="on"){n[o]=n[o].call(aZ)}}n.rel=n.rel||aZ.rel||ar;n.href=n.href||a9(aZ).attr("href");n.title=n.title||aZ.title;return n}function aO(o,n){n&&n.call(aZ);a9.event.trigger(o)}function aH(){var n,r=a2+"Slideshow_",s="click."+a2,q,o;if(ba.slideshow&&a3[1]){q=function(){ay.text(ba.slideshowStop).unbind(s).bind(ah,function(){if(a4<a3.length-1||ba.loop){n=setTimeout(a7.next,ba.slideshowSpeed)}}).bind(ag,function(){clearTimeout(n)}).one(s+" "+ap,o);a1.removeClass(r+"off").addClass(r+"on");n=setTimeout(a7.next,ba.slideshowSpeed)};o=function(){clearTimeout(n);ay.text(ba.slideshowStart).unbind([ah,ag,ap,s].join(" ")).one(s,q);a1.removeClass(r+"on").addClass(r+"off")};ba.slideshowAuto?q():o()}}function aF(o){if(!ao){aZ=o;ba=aI(a9.extend({},a9.data(aZ,aT)));a3=a9(aZ);a4=0;if(ba.rel!==ar){a3=a9("."+ax).filter(function(){return(a9.data(this,aT).rel||this.rel)===ba.rel});a4=a3.index(aZ);if(a4===-1){a3=a3.add(aZ);a4=a3.length-1}}if(!aQ){aQ=aA=a6;a1.show();if(ba.returnFocus){try{aZ.blur();a9(aZ).one(aa,function(){try{this.focus()}catch(q){}})}catch(n){}}aN.css({opacity:+ba.opacity,cursor:ba.overlayClose?"pointer":aU}).show();ba.w=aV(ba.initialWidth,aY);ba.h=aV(ba.initialHeight,aW);a7.position(0);af&&aX.bind(aP+an+" scroll."+an,function(){aN.css({width:aX.width(),height:aX.height(),top:aX.scrollTop(),left:aX.scrollLeft()})}).trigger("scroll."+an);aO(aJ,ba.onOpen);ae.add(aw).add(av).add(ay).add(ad).hide();aD.html(ba.close).show()}a7.load(a6)}}var aG={transition:"elastic",speed:300,width:a8,initialWidth:"600",innerWidth:a8,maxWidth:a8,height:a8,initialHeight:"450",innerHeight:a8,maxHeight:a8,scalePhotos:a6,scrolling:a6,inline:a8,html:a8,iframe:a8,photo:a8,href:a8,title:a8,rel:a8,opacity:0.9,preloading:a6,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:a8,returnFocus:a6,loop:a6,slideshow:a8,slideshowAuto:a6,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:a8,onLoad:a8,onComplete:a8,onCleanup:a8,onClosed:a8,overlayClose:a6,escKey:a6,arrowKey:a6},aT="colorbox",a2="cbox",aJ=a2+"_open",ag=a2+"_load",ah=a2+"_complete",ap=a2+"_cleanup",aa=a2+"_closed",am=a2+"_purge",ac=a2+"_loaded",az=a9.browser.msie&&!a9.support.opacity,af=az&&a9.browser.version<7,an=a2+"_IE6",aN,a1,aE,aS,bc,aj,al,ak,a3,aX,a0,au,at,ad,ae,ay,av,aw,aD,aC,aB,aM,aL,aZ,a4,ba,aQ,aA,ao=a8,a7,ax=a2+"Element";a7=a9.fn[aT]=a9[aT]=function(r,o){var n=this,q;if(!n[0]&&n.selector){return n
}r=r||{};if(o){r.onComplete=o}if(!n[0]||n.selector===undefined){n=a9("<a/>");r.open=a6}n.each(function(){a9.data(this,aT,a9.extend({},a9.data(this,aT)||aG,r));a9(this).addClass(ax)});q=r.open;if(a9.isFunction(q)){q=q.call(n)}q&&aF(n[0]);return n};a7.init=function(){var o="hover",n="clear:left";aX=a9(aK);a1=a5().attr({id:aT,"class":az?a2+"IE":""});aN=a5("Overlay",af?"position:absolute":"").hide();aE=a5("Wrapper");aS=a5("Content").append(a0=a5(aq,"width:0; height:0; overflow:hidden"),at=a5("LoadingOverlay").add(a5("LoadingGraphic")),ad=a5("Title"),ae=a5("Current"),av=a5("Next"),aw=a5("Previous"),ay=a5("Slideshow").bind(aJ,aH),aD=a5("Close"));aE.append(a5().append(a5("TopLeft"),bc=a5("TopCenter"),a5("TopRight")),a5(a8,n).append(aj=a5("MiddleLeft"),aS,al=a5("MiddleRight")),a5(a8,n).append(a5("BottomLeft"),ak=a5("BottomCenter"),a5("BottomRight"))).children().children().css({"float":"left"});au=a5(a8,"position:absolute; width:9999px; visibility:hidden; display:none");a9("body").prepend(aN,a1.append(aE,au));aS.children().hover(function(){a9(this).addClass(o)},function(){a9(this).removeClass(o)}).addClass(o);aC=bc.height()+ak.height()+aS.outerHeight(a6)-aS.height();aB=aj.width()+al.width()+aS.outerWidth(a6)-aS.width();aM=a0.outerHeight(a6);aL=a0.outerWidth(a6);a1.css({"padding-bottom":aC,"padding-right":aB}).hide();av.click(a7.next);aw.click(a7.prev);aD.click(a7.close);aS.children().removeClass(o);a9("."+ax).live("click",function(q){if(!(q.button!==0&&typeof q.button!=="undefined"||q.ctrlKey||q.shiftKey||q.altKey)){q.preventDefault();aF(this)}});aN.click(function(){ba.overlayClose&&a7.close()});a9(document).bind("keydown",function(q){if(aQ&&ba.escKey&&q.keyCode===27){q.preventDefault();a7.close()}if(aQ&&ba.arrowKey&&!aA&&a3[1]){if(q.keyCode===37&&(a4||ba.loop)){q.preventDefault();aw.click()}else{if(q.keyCode===39&&(a4<a3.length-1||ba.loop)){q.preventDefault();av.click()}}}})};a7.remove=function(){a1.add(aN).remove();a9("."+ax).die("click").removeData(aT).removeClass(ax)};a7.position=function(r,t){function n(u){bc[0].style.width=ak[0].style.width=aS[0].style.width=u.style.width;at[0].style.height=at[1].style.height=aS[0].style.height=aj[0].style.height=al[0].style.height=u.style.height}var s,o=Math.max(document.documentElement.clientHeight-ba.h-aM-aC,0)/2+aX.scrollTop(),q=Math.max(aX.width()-ba.w-aL-aB,0)/2+aX.scrollLeft();s=a1.width()===ba.w+aL&&a1.height()===ba.h+aM?0:r;aE[0].style.width=aE[0].style.height="9999px";a1.dequeue().animate({width:ba.w+aL,height:ba.h+aM,top:o,left:q},{duration:s,complete:function(){n(this);aA=a8;aE[0].style.width=ba.w+aL+aB+"px";aE[0].style.height=ba.h+aM+aC+"px";t&&t()},step:function(){n(this)}})};a7.resize=function(n){if(aQ){n=n||{};if(n.width){ba.w=aV(n.width,aY)-aL-aB}if(n.innerWidth){ba.w=aV(n.innerWidth,aY)}a0.css({width:ba.w});if(n.height){ba.h=aV(n.height,aW)-aM-aC}if(n.innerHeight){ba.h=aV(n.innerHeight,aW)}if(!n.innerHeight&&!n.height){n=a0.wrapInner("<div style='overflow:auto'></div>").children();ba.h=n.height();n.replaceWith(n.children())}a0.css({height:ba.h});a7.position(ba.transition===aR?0:ba.speed)}};a7.prep=function(n){var t="hidden";function q(v){var y,x,o,z,u=a3.length,w=ba.loop;a7.position(v,function(){function A(){az&&a1[0].style.removeAttribute("filter")}if(aQ){az&&s&&a0.fadeIn(100);a0.show();aO(ac);ad.show().html(ba.title);if(u>1){typeof ba.current==="string"&&ae.html(ba.current.replace(/\{current\}/,a4+1).replace(/\{total\}/,u)).show();av[w||a4<u-1?"show":"hide"]().html(ba.next);aw[w||a4?"show":"hide"]().html(ba.previous);y=a4?a3[a4-1]:a3[u-1];o=a4<u-1?a3[a4+1]:a3[0];ba.slideshow&&ay.show();if(ba.preloading){z=a9.data(o,aT).href||o.href;x=a9.data(y,aT).href||y.href;z=a9.isFunction(z)?z.call(o):z;x=a9.isFunction(x)?x.call(y):x;if(ai(z)){a9("<img/>")[0].src=z}if(ai(x)){a9("<img/>")[0].src=x}}}at.hide();ba.transition==="fade"?a1.fadeTo(r,1,function(){A()}):A();aX.bind(aP+a2,function(){a7.position(0)});aO(ah,ba.onComplete)}})}if(aQ){var s,r=ba.transition===aR?0:ba.speed;aX.unbind(aP+a2);
a0.remove();a0=a5(aq).html(n);a0.hide().appendTo(au.show()).css({width:function(){ba.w=ba.w||a0.width();ba.w=ba.mw&&ba.mw<ba.w?ba.mw:ba.w;return ba.w}(),overflow:ba.scrolling?aU:t}).css({height:function(){ba.h=ba.h||a0.height();ba.h=ba.mh&&ba.mh<ba.h?ba.mh:ba.h;return ba.h}()}).prependTo(aS);au.hide();a9("#"+a2+"Photo").css({cssFloat:aR,marginLeft:aU,marginRight:aU});af&&a9("select").not(a1.find("select")).filter(function(){return this.style.visibility!==t}).css({visibility:t}).one(ap,function(){this.style.visibility="inherit"});ba.transition==="fade"?a1.fadeTo(r,0,function(){q(0)}):q(r)}};a7.load=function(o){var w,v,r,t=a7.prep;aA=a6;aZ=a3[a4];o||(ba=aI(a9.extend({},a9.data(aZ,aT))));aO(am);aO(ag,ba.onLoad);ba.h=ba.height?aV(ba.height,aW)-aM-aC:ba.innerHeight&&aV(ba.innerHeight,aW);ba.w=ba.width?aV(ba.width,aY)-aL-aB:ba.innerWidth&&aV(ba.innerWidth,aY);ba.mw=ba.w;ba.mh=ba.h;if(ba.maxWidth){ba.mw=aV(ba.maxWidth,aY)-aL-aB;ba.mw=ba.w&&ba.w<ba.mw?ba.w:ba.mw}if(ba.maxHeight){ba.mh=aV(ba.maxHeight,aW)-aM-aC;ba.mh=ba.h&&ba.h<ba.mh?ba.h:ba.mh}w=ba.href;at.show();if(ba.inline){a5().hide().insertBefore(a9(w)[0]).one(am,function(){a9(this).replaceWith(a0.children())});t(a9(w))}else{if(ba.iframe){a1.one(ac,function(){var n=a9("<iframe frameborder='0' style='width:100%; height:100%; border:0; display:block'/>")[0];n.name=a2+ +new Date;n.src=ba.href;if(!ba.scrolling){n.scrolling="no"}if(az){n.allowtransparency="true"}a9(n).appendTo(a0).one(am,function(){n.src="//about:blank"})});t(" ")}else{if(ba.html){t(ba.html)}else{if(ai(w)){v=new Image;v.onload=function(){var n;v.onload=null;v.id=a2+"Photo";a9(v).css({border:aR,display:"block",cssFloat:"left"});if(ba.scalePhotos){r=function(){v.height-=v.height*n;v.width-=v.width*n};if(ba.mw&&v.width>ba.mw){n=(v.width-ba.mw)/v.width;r()}if(ba.mh&&v.height>ba.mh){n=(v.height-ba.mh)/v.height;r()}}if(ba.h){v.style.marginTop=Math.max(ba.h-v.height,0)/2+"px"}a3[1]&&(a4<a3.length-1||ba.loop)&&a9(v).css({cursor:"pointer"}).click(a7.next);if(az){v.style.msInterpolationMode="bicubic"}setTimeout(function(){t(v)},1)};setTimeout(function(){v.src=w},1)}else{w&&au.load(w,function(q,s,n){t(s==="error"?"Request unsuccessful: "+n.statusText:a9(this).children())})}}}}};a7.next=function(){if(!aA){a4=a4<a3.length-1?a4+1:0;a7.load()}};a7.prev=function(){if(!aA){a4=a4?a4-1:a3.length-1;a7.load()}};a7.close=function(){if(aQ&&!ao){ao=a6;aQ=a8;aO(ap,ba.onCleanup);aX.unbind("."+a2+" ."+an);aN.fadeTo("fast",0);a1.stop().fadeTo("fast",0,function(){aO(am);a0.remove();a1.add(aN).css({opacity:1,cursor:aU}).hide();setTimeout(function(){ao=a8;aO(aa,ba.onClosed)},1)})}};a7.element=function(){return a9(aZ)};a7.settings=aG;a9(a7.init)})(jQuery,this);(function(n,o,q){n.fn.jScrollPane=function(r){function s(bu,be){var bl,bc=this,a4,bH,aN,bF,a9,a3,aK,aR,b0,bV,bt,aZ,bk,a0,aY,bR,a8,bB,a5,aP,bz,bA,bM,bE,bo,aW,bv,bn,aL,br,bS,a2,bh,bI=true,bd=true,bT=false,aX=false,bC=bu.clone(false,false).empty(),bP=n.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";bS=bu.css("paddingTop")+" "+bu.css("paddingRight")+" "+bu.css("paddingBottom")+" "+bu.css("paddingLeft");a2=(parseInt(bu.css("paddingLeft"),10)||0)+(parseInt(bu.css("paddingRight"),10)||0);function bx(u){var z,x,y,B,t,v,w=false,A=false;bl=u;if(a4===q){t=bu.scrollTop();v=bu.scrollLeft();bu.css({overflow:"hidden",padding:0});bH=bu.innerWidth()+a2;aN=bu.innerHeight();bu.width(bH);a4=n('<div class="jspPane" />').css("padding",bS).append(bu.children());bF=n('<div class="jspContainer" />').css({width:bH+"px",height:aN+"px"}).append(a4).appendTo(bu)}else{bu.css("width","");w=bl.stickToBottom&&bi();A=bl.stickToRight&&by();B=bu.innerWidth()+a2!=bH||bu.outerHeight()!=aN;if(B){bH=bu.innerWidth()+a2;aN=bu.innerHeight();bF.css({width:bH+"px",height:aN+"px"})}if(!B&&bh==a9&&a4.outerHeight()==a3){bu.width(bH);return}bh=a9;a4.css("width","");bu.width(bH);bF.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}a4.css("overflow","auto");if(u.contentWidth){a9=u.contentWidth}else{a9=a4[0].scrollWidth}a3=a4[0].scrollHeight;
a4.css("overflow","");aK=a9/bH;aR=a3/aN;b0=aR>1;bV=aK>1;if(!(bV||b0)){bu.removeClass("jspScrollable");a4.css({top:0,width:bF.width()-a2});aU();bs();bb();aM();bJ()}else{bu.addClass("jspScrollable");z=bl.maintainPosition&&(bk||bR);if(z){x=bX();y=bZ()}bU();aJ();bq();if(z){bf(A?(a9-bH):x,false);bg(w?(a3-aN):y,false)}bj();bL();bD();if(bl.enableKeyboardNavigation){ba()}if(bl.clickOnTrack){aS()}bw();if(bl.hijackInternalLinks){aV()}}if(bl.autoReinitialise&&!br){br=setInterval(function(){bx(bl)},bl.autoReinitialiseDelay)}else{if(!bl.autoReinitialise&&br){clearInterval(br)}}t&&bu.scrollTop(0)&&bg(t,false);v&&bu.scrollLeft(0)&&bf(v,false);bu.trigger("jsp-initialised",[bV||b0])}function bU(){if(b0){bF.append(n('<div class="jspVerticalBar" />').append(n('<div class="jspCap jspCapTop" />'),n('<div class="jspTrack" />').append(n('<div class="jspDrag" />').append(n('<div class="jspDragTop" />'),n('<div class="jspDragBottom" />'))),n('<div class="jspCap jspCapBottom" />')));a8=bF.find(">.jspVerticalBar");bB=a8.find(">.jspTrack");bt=bB.find(">.jspDrag");if(bl.showArrows){bA=n('<a class="jspArrow jspArrowUp" />').bind("mousedown.jsp",bW(0,-1)).bind("click.jsp",bY);bM=n('<a class="jspArrow jspArrowDown" />').bind("mousedown.jsp",bW(0,1)).bind("click.jsp",bY);if(bl.arrowScrollOnHover){bA.bind("mouseover.jsp",bW(0,-1,bA));bM.bind("mouseover.jsp",bW(0,1,bM))}bG(bB,bl.verticalArrowPositions,bA,bM)}aP=aN;bF.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){aP-=n(this).outerHeight()});bt.hover(function(){bt.addClass("jspHover")},function(){bt.removeClass("jspHover")}).bind("mousedown.jsp",function(u){n("html").bind("dragstart.jsp selectstart.jsp",bY);bt.addClass("jspActive");var t=u.pageY-bt.position().top;n("html").bind("mousemove.jsp",function(v){a7(v.pageY-t,false)}).bind("mouseup.jsp mouseleave.jsp",bp);return false});aT()}}function aT(){bB.height(aP+"px");bk=0;a5=bl.verticalGutter+bB.outerWidth();a4.width(bH-a5-a2);try{if(a8.position().left===0){a4.css("margin-left",a5+"px")}}catch(t){}}function aJ(){if(bV){bF.append(n('<div class="jspHorizontalBar" />').append(n('<div class="jspCap jspCapLeft" />'),n('<div class="jspTrack" />').append(n('<div class="jspDrag" />').append(n('<div class="jspDragLeft" />'),n('<div class="jspDragRight" />'))),n('<div class="jspCap jspCapRight" />')));bE=bF.find(">.jspHorizontalBar");bo=bE.find(">.jspTrack");a0=bo.find(">.jspDrag");if(bl.showArrows){bn=n('<a class="jspArrow jspArrowLeft" />').bind("mousedown.jsp",bW(-1,0)).bind("click.jsp",bY);aL=n('<a class="jspArrow jspArrowRight" />').bind("mousedown.jsp",bW(1,0)).bind("click.jsp",bY);if(bl.arrowScrollOnHover){bn.bind("mouseover.jsp",bW(-1,0,bn));aL.bind("mouseover.jsp",bW(1,0,aL))}bG(bo,bl.horizontalArrowPositions,bn,aL)}a0.hover(function(){a0.addClass("jspHover")},function(){a0.removeClass("jspHover")}).bind("mousedown.jsp",function(u){n("html").bind("dragstart.jsp selectstart.jsp",bY);a0.addClass("jspActive");var t=u.pageX-a0.position().left;n("html").bind("mousemove.jsp",function(v){a6(v.pageX-t,false)}).bind("mouseup.jsp mouseleave.jsp",bp);return false});aW=bF.innerWidth();bK()}}function bK(){bF.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){aW-=n(this).outerWidth()});bo.width(aW+"px");bR=0}function bq(){if(bV&&b0){var u=bo.outerHeight(),t=bB.outerWidth();aP-=u;n(bE).find(">.jspCap:visible,>.jspArrow").each(function(){aW+=n(this).outerWidth()});aW-=t;aN-=t;bH-=u;bo.parent().append(n('<div class="jspCorner" />').css("width",u+"px"));aT();bK()}if(bV){a4.width((bF.outerWidth()-a2)+"px")}a3=a4.outerHeight();aR=a3/aN;if(bV){bv=Math.ceil(1/aK*aW);if(bv>bl.horizontalDragMaxWidth){bv=bl.horizontalDragMaxWidth}else{if(bv<bl.horizontalDragMinWidth){bv=bl.horizontalDragMinWidth}}a0.width(bv+"px");aY=aW-bv;bN(bR)}if(b0){bz=Math.ceil(1/aR*aP);if(bz>bl.verticalDragMaxHeight){bz=bl.verticalDragMaxHeight}else{if(bz<bl.verticalDragMinHeight){bz=bl.verticalDragMinHeight}}bt.height(bz+"px");aZ=aP-bz;bO(bk)
}}function bG(y,w,z,v){var t="before",x="after",u;if(w=="os"){w=/Mac/.test(navigator.platform)?"after":"split"}if(w==t){x=w}else{if(w==x){t=w;u=z;z=v;v=u}}y[t](z)[x](v)}function bW(v,t,u){return function(){bm(v,t,this,u);this.blur();return false}}function bm(x,y,t,u){t=n(t).addClass("jspActive");var w,z,A=true,v=function(){if(x!==0){bc.scrollByX(x*bl.arrowButtonSpeed)}if(y!==0){bc.scrollByY(y*bl.arrowButtonSpeed)}z=setTimeout(v,A?bl.initialDelay:bl.arrowRepeatFreq);A=false};v();w=u?"mouseout.jsp":"mouseup.jsp";u=u||n("html");u.bind(w,function(){t.removeClass("jspActive");z&&clearTimeout(z);z=null;u.unbind(w)})}function aS(){aM();if(b0){bB.bind("mousedown.jsp",function(u){if(u.originalTarget===q||u.originalTarget==u.currentTarget){var x=n(this),t=x.offset(),w=u.pageY-t.top-bk,z,A=true,v=function(){var B=x.offset(),E=u.pageY-B.top-bz/2,D=aN*bl.scrollPagePercent,C=aZ*D/(a3-aN);if(w<0){if(bk-C>E){bc.scrollByY(-D)}else{a7(E)}}else{if(w>0){if(bk+C<E){bc.scrollByY(D)}else{a7(E)}}else{y();return}}z=setTimeout(v,A?bl.initialDelay:bl.trackClickRepeatFreq);A=false},y=function(){z&&clearTimeout(z);z=null;n(document).unbind("mouseup.jsp",y)};v();n(document).bind("mouseup.jsp",y);return false}})}if(bV){bo.bind("mousedown.jsp",function(u){if(u.originalTarget===q||u.originalTarget==u.currentTarget){var x=n(this),t=x.offset(),w=u.pageX-t.left-bR,z,A=true,v=function(){var B=x.offset(),E=u.pageX-B.left-bv/2,D=bH*bl.scrollPagePercent,C=aY*D/(a9-bH);if(w<0){if(bR-C>E){bc.scrollByX(-D)}else{a6(E)}}else{if(w>0){if(bR+C<E){bc.scrollByX(D)}else{a6(E)}}else{y();return}}z=setTimeout(v,A?bl.initialDelay:bl.trackClickRepeatFreq);A=false},y=function(){z&&clearTimeout(z);z=null;n(document).unbind("mouseup.jsp",y)};v();n(document).bind("mouseup.jsp",y);return false}})}}function aM(){if(bo){bo.unbind("mousedown.jsp")}if(bB){bB.unbind("mousedown.jsp")}}function bp(){n("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp");if(bt){bt.removeClass("jspActive")}if(a0){a0.removeClass("jspActive")}}function a7(t,u){if(!b0){return}if(t<0){t=0}else{if(t>aZ){t=aZ}}if(u===q){u=bl.animateScroll}if(u){bc.animate(bt,"top",t,bO)}else{bt.css("top",t);bO(t)}}function bO(x){if(x===q){x=bt.position().top}bF.scrollTop(0);bk=x;var u=bk===0,w=bk==aZ,v=x/aZ,t=-v*(a3-aN);if(bI!=u||bT!=w){bI=u;bT=w;bu.trigger("jsp-arrow-change",[bI,bT,bd,aX])}aO(u,w);a4.css("top",t);bu.trigger("jsp-scroll-y",[-t,u,w]).trigger("scroll")}function a6(u,t){if(!bV){return}if(u<0){u=0}else{if(u>aY){u=aY}}if(t===q){t=bl.animateScroll}if(t){bc.animate(a0,"left",u,bN)}else{a0.css("left",u);bN(u)}}function bN(x){if(x===q){x=a0.position().left}bF.scrollTop(0);bR=x;var u=bR===0,v=bR==aY,w=x/aY,t=-w*(a9-bH);if(bd!=u||aX!=v){bd=u;aX=v;bu.trigger("jsp-arrow-change",[bI,bT,bd,aX])}aQ(u,v);a4.css("left",t);bu.trigger("jsp-scroll-x",[-t,u,v]).trigger("scroll")}function aO(u,t){if(bl.showArrows){bA[u?"addClass":"removeClass"]("jspDisabled");bM[t?"addClass":"removeClass"]("jspDisabled")}}function aQ(u,t){if(bl.showArrows){bn[u?"addClass":"removeClass"]("jspDisabled");aL[t?"addClass":"removeClass"]("jspDisabled")}}function bg(t,v){var u=t/(a3-aN);a7(u*aZ,v)}function bf(v,t){var u=v/(a9-bH);a6(u*aY,t)}function bQ(u,z,G){var C,F,E,H=0,v=0,t,A,B,x,y,w;try{C=n(u)}catch(D){return}F=C.outerHeight();E=C.outerWidth();bF.scrollTop(0);bF.scrollLeft(0);while(!C.is(".jspPane")){H+=C.position().top;v+=C.position().left;C=C.offsetParent();if(/^body|html$/i.test(C[0].nodeName)){return}}t=bZ();B=t+aN;if(H<t||z){y=H-bl.verticalGutter}else{if(H+F>B){y=H-aN+F+bl.verticalGutter}}if(y){bg(y,G)}A=bX();x=A+bH;if(v<A||z){w=v-bl.horizontalGutter}else{if(v+E>x){w=v-bH+E+bl.horizontalGutter}}if(w){bf(w,G)}}function bX(){return -a4.position().left}function bZ(){return -a4.position().top}function bi(){var t=a3-aN;return(t>20)&&(t-bZ()<10)}function by(){var t=a9-bH;return(t>20)&&(t-bX()<10)}function bL(){bF.unbind(bP).bind(bP,function(v,u,w,y){var x=bR,t=bk;bc.scrollBy(w*bl.mouseWheelSpeed,-y*bl.mouseWheelSpeed,false);
return x==bR&&t==bk})}function aU(){bF.unbind(bP)}function bY(){return false}function bj(){a4.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(t){bQ(t.target,false)})}function bs(){a4.find(":input,a").unbind("focus.jsp")}function ba(){var t,w,u=[];bV&&u.push(bE[0]);b0&&u.push(a8[0]);a4.focus(function(){bu.focus()});bu.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(x){if(x.target!==this&&!(u.length&&n(x.target).closest(u).length)){return}var y=bR,z=bk;switch(x.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:t=x.keyCode;v();break;case 35:bg(a3-aN);t=null;break;case 36:bg(0);t=null;break}w=x.keyCode==t&&y!=bR||z!=bk;return !w}).bind("keypress.jsp",function(x){if(x.keyCode==t){v()}return !w});if(bl.hideFocus){bu.css("outline","none");if("hideFocus" in bF[0]){bu.attr("hideFocus",true)}}else{bu.css("outline","");if("hideFocus" in bF[0]){bu.attr("hideFocus",false)}}function v(){var x=bR,y=bk;switch(t){case 40:bc.scrollByY(bl.keyboardSpeed,false);break;case 38:bc.scrollByY(-bl.keyboardSpeed,false);break;case 34:case 32:bc.scrollByY(aN*bl.scrollPagePercent,false);break;case 33:bc.scrollByY(-aN*bl.scrollPagePercent,false);break;case 39:bc.scrollByX(bl.keyboardSpeed,false);break;case 37:bc.scrollByX(-bl.keyboardSpeed,false);break}w=x!=bR||y!=bk;return w}}function bb(){bu.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp keypress.jsp")}function bw(){if(location.hash&&location.hash.length>1){var u,w,v=escape(location.hash);try{u=n(v)}catch(t){return}if(u.length&&a4.find(v)){if(bF.scrollTop()===0){w=setInterval(function(){if(bF.scrollTop()>0){bQ(v,true);n(document).scrollTop(bF.position().top);clearInterval(w)}},50)}else{bQ(v,true);n(document).scrollTop(bF.position().top)}}}}function bJ(){n("a.jspHijack").unbind("click.jsp-hijack").removeClass("jspHijack")}function aV(){bJ();n("a[href^=#]").addClass("jspHijack").bind("click.jsp-hijack",function(){var t=this.href.split("#"),u;if(t.length>1){u=t[1];if(u.length>0&&a4.find("#"+u).length>0){bQ("#"+u,true);return false}}})}function bD(){var x,y,v,w,u,t=false;bF.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",function(A){var z=A.originalEvent.touches[0];x=bX();y=bZ();v=z.pageX;w=z.pageY;u=false;t=true}).bind("touchmove.jsp",function(z){if(!t){return}var A=z.originalEvent.touches[0],B=bR,C=bk;bc.scrollTo(x+v-A.pageX,y+w-A.pageY);u=u||Math.abs(v-A.pageX)>5||Math.abs(w-A.pageY)>5;return B==bR&&C==bk}).bind("touchend.jsp",function(z){t=false}).bind("click.jsp-touchclick",function(z){if(u){u=false;return false}})}function a1(){var t=bZ(),u=bX();bu.removeClass("jspScrollable").unbind(".jsp");bu.replaceWith(bC.append(a4.children()));bC.scrollTop(t);bC.scrollLeft(u)}n.extend(bc,{reinitialise:function(t){t=n.extend({},bl,t);bx(t)},scrollToElement:function(u,v,t){bQ(u,v,t)},scrollTo:function(u,t,v){bf(u,v);bg(t,v)},scrollToX:function(u,t){bf(u,t)},scrollToY:function(t,u){bg(t,u)},scrollToPercentX:function(u,t){bf(u*(a9-bH),t)},scrollToPercentY:function(u,t){bg(u*(a3-aN),t)},scrollBy:function(v,t,u){bc.scrollByX(v,u);bc.scrollByY(t,u)},scrollByX:function(t,v){var w=bX()+Math[t<0?"floor":"ceil"](t),u=w/(a9-bH);a6(u*aY,v)},scrollByY:function(t,v){var w=bZ()+Math[t<0?"floor":"ceil"](t),u=w/(a3-aN);a7(u*aZ,v)},positionDragX:function(t,u){a6(t,u)},positionDragY:function(u,t){a7(u,t)},animate:function(x,u,t,v){var w={};w[u]=t;x.animate(w,{duration:bl.animateDuration,easing:bl.animateEase,queue:false,step:v})},getContentPositionX:function(){return bX()},getContentPositionY:function(){return bZ()},getContentWidth:function(){return a9},getContentHeight:function(){return a3},getPercentScrolledX:function(){return bX()/(a9-bH)},getPercentScrolledY:function(){return bZ()/(a3-aN)},getIsScrollableH:function(){return bV},getIsScrollableV:function(){return b0},getContentPane:function(){return a4},scrollToBottom:function(t){a7(aZ,t)},hijackInternalLinks:function(){aV()},destroy:function(){a1()}});bx(be)
}r=n.extend({},n.fn.jScrollPane.defaults,r);n.each(["mouseWheelSpeed","arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){r[this]=r[this]||r.speed});return this.each(function(){var u=n(this),t=u.data("jsp");if(t){t.reinitialise(r)}else{t=new s(u,r);u.data("jsp",t)}})};n.fn.jScrollPane.defaults={showArrows:false,maintainPosition:true,stickToBottom:false,stickToRight:false,clickOnTrack:true,autoReinitialise:false,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,contentWidth:q,animateScroll:false,animateDuration:300,animateEase:"linear",hijackInternalLinks:false,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:0,arrowButtonSpeed:0,arrowRepeatFreq:50,arrowScrollOnHover:false,trackClickSpeed:0,trackClickRepeatFreq:70,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:true,hideFocus:false,keyboardSpeed:0,initialDelay:300,speed:30,scrollPagePercent:0.8}})(jQuery,this);g.fn.myModal=function(n){var o=g.extend({},g.fn.myModal.defaults,n);return this.each(function(){var q=g(this);q.click(function(){g.fn.myModal.loadBackground(o);return false})})};g.fn.myModal.loadBackground=function(n){g("<div id='modal'><div>").bgiframe().appendTo("body");g.fn.myModal.centerPopup(n)};g.fn.myModal.centerPopup=function(o){g("<div id='popUp'></div>").insertAfter("#wrapper");var n=g(window).width();var v=g(window).height();var t=g(document).height();var u=o.popupHeight;var s=g("#popUp").width();var r=(v-u)/2+g(window).scrollTop();var q=(n-s)/2+g(window).scrollLeft();g("#popUp").css({position:"absolute",top:r+"px",left:q+"px"});g("#modal").css({height:v});g.fn.myModal.loadPopup(o)};g.fn.myModal.loadPopup=function(n){g("#modal").css({opacity:n.opacity}).fadeIn("slow");g("#popUp").load(n.ajaxFormUrl,function(){g("#popUp form").hide();g("p#closePopup").html("")});g("#popUp").fadeIn("slow",function(){g("#popUp form").delay(2000).slideDown("slow",function(){g("#formTitle").html("<h2>"+n.initialMessage+"</h2>");g("p#closePopup").html("<a href='#'>"+n.closeLink+"</a>")})});g("p#closePopup").live("click",function(){g.fn.myModal.closePopup(n.closeMessage);return false});g("#popUp").live("submit",function(){var q=(g("#popUp form").serialize());g.ajax({type:"GET",dataType:"json",url:n.ajaxValidationUrl,data:q,success:o});return false});function o(r){if(r.goodresult==0){g.fn.myModal.closePopup(n.sentMessage)}else{g("label span.errorMessage").hide();g("label").removeClass();for(var q in r){if(r.hasOwnProperty(q)){g("#popUp :input#"+q).prev("label").addClass("popupError").append("<span class='errorMessage'>"+r[q]+"</span>");if(r.emailUserExists){g("#feedback").fadeIn("slow").html(r.emailUserExists)}}}}}};g.fn.myModal.closePopup=function(n){g("#popUp").css({height:"auto"});g("p#closePopup").html("");g("label span.errorMessage,#feedback").hide();g("label").removeClass();g("#popUp form").css({position:"relative","z-index":"0"}).slideUp("slow",function(){g("#formTitle").html("<h2>"+n+"</h2>");g("#popUp").delay(1500).fadeOut("slow",function(){g("#modal").fadeOut("slow",function(){g(this).remove()});g("#popUp").remove()})})};g.fn.myModal.defaults={popupHeight:300,initialMessage:"Sign Up To Our Newsletter!",closeLink:"Close",closeMessage:"Goodbye!",sentMessage:"Thanks For Your Enquiry",opacity:0.7,ajaxFormUrl:"http://localhost/plantsgalore2/ajax/form_newsletter.php",ajaxValidationUrl:"http://localhost/plantsgalore2/ajax/form_validation.php"};g.fn.superfish=function(v){var r=g.fn.superfish,u=r.c,q=g(['<span class="',u.arrowClass,'"> &#187;</span>'].join("")),t=function(){var w=g(this),x=n(w);clearTimeout(x.sfTimer);w.showSuperfishUl().siblings().hideSuperfishUl()},o=function(){var w=g(this),y=n(w),x=r.op;clearTimeout(y.sfTimer);y.sfTimer=setTimeout(function(){x.retainPath=(g.inArray(w[0],x.$path)>-1);w.hideSuperfishUl();if(x.$path.length&&w.parents(["li.",x.hoverClass].join("")).length<1){t.call(x.$path)}},x.delay)},n=function(w){var x=w.parents(["ul.",u.menuClass,":first"].join(""))[0];
r.op=r.o[x.serial];return x},s=function(w){w.addClass(u.anchorClass).append(q.clone())};return this.each(function(){var w=this.serial=r.o.length;var y=g.extend({},r.defaults,v);y.$path=g("li."+y.pathClass,this).slice(0,y.pathLevels).each(function(){g(this).addClass([y.hoverClass,u.bcClass].join(" ")).filter("li:has(ul)").removeClass(y.pathClass)});r.o[w]=r.op=y;g("li:has(ul)",this)[(g.fn.hoverIntent&&!y.disableHI)?"hoverIntent":"hover"](t,o).each(function(){if(y.autoArrows){s(g(">a:first-child",this))}}).not("."+u.bcClass).hideSuperfishUl();var x=g("a",this);x.each(function(z){var A=x.eq(z).parents("li");x.eq(z).focus(function(){t.call(A)}).blur(function(){o.call(A)})});y.onInit.call(this)}).each(function(){var w=[u.menuClass];if(r.op.dropShadows&&!(g.browser.msie&&g.browser.version<7)){w.push(u.shadowClass)}g(this).addClass(w.join(" "))})};var j=g.fn.superfish;j.o=[];j.op={};j.IE7fix=function(){var n=j.op;if(g.browser.msie&&g.browser.version>6&&n.dropShadows&&n.animation.opacity!=undefined){this.toggleClass(j.c.shadowClass+"-off")}};j.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};j.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"normal",autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};g.fn.extend({hideSuperfishUl:function(){var r=j.op,q=(r.retainPath===true)?r.$path:"";r.retainPath=false;var n=g(["li.",r.hoverClass].join(""),this).add(this).not(q).removeClass(r.hoverClass).find(">ul").hide().css("visibility","hidden");r.onHide.call(n);return this},showSuperfishUl:function(){var r=j.op,q=j.c.shadowClass+"-off",n=this.addClass(r.hoverClass).find(">ul:hidden").css("visibility","visible");j.IE7fix.call(n);r.onBeforeShow.call(n);n.animate(r.animation,r.speed,function(){j.IE7fix.call(n);r.onShow.call(n)});return this}});g.fn.myTooltip=function(n){var o=g.extend({},g.fn.myTooltip.defaults,n);return this.each(function(){var r=g(this);var q=o.tooltip.replace(/./,"");r.mouseover(function(B){var z=r.offset();var u=g(window).width();var s=g(window).height();var y=g(window).scrollTop();var x=o.tooltipWidth;var v=o.tooltipHeight;if(B.pageX+x>u){var w=o.offsetLeft}else{var w=o.offsetLeft}var t=0;if((v+o.offsetTop+y)>B.pageY){t=0}else{if((B.pageY+v)>s){t=o.offsetTop+v}else{t=o.offsetTop}}if(o.attribute==""){var A=g("<div>").html(g(r).next(g(o.target)).html())}else{var A=g("<div>").html(g(r).attr(o.attribute));g(r).attr(o.attribute,"")}A.addClass(q).css({width:x,height:v,left:(z.left-w),top:(z.top-t)}).appendTo("body");tip=setTimeout("$('"+o.tooltip+"').show('drop',{direction:'up'});",o.timeout)});r.mouseout(function(s){clearTimeout(tip);if(o.attribute!=""){g(r).attr(o.attribute,g(o.tooltip).text())}g(o.tooltip).remove().fadeOut("slow")})})};g.fn.myTooltip.defaults={tooltip:".tooltipSnippets",tooltipWidth:200,tooltipHeight:100,offsetLeft:0,offsetTop:0,target:"div",timeout:750,attribute:"",opacity:1};g.fn.center=function(){return this.each(function(){var n=g(this);n.css("position","absolute");n.css("top",(g(window).height()-n.outerHeight())/2+g(window).scrollTop()+"px");n.css("left",(g(window).width()-n.outerWidth())/2+g(window).scrollLeft()+"px")})};g.fn.cycle=function(q,n){var r={s:this.selector,c:this.context};if(this.length==0&&q!="stop"){if(!g.isReady&&r.s){log("DOM not ready, queuing slideshow");g(function(){g(r.s,r.c).cycle(q,n)});return this}log("terminating; zero elements found by selector"+(g.isReady?"":" (DOM not ready)"));return this}return this.each(function(){q=k(this,q,n);if(q===false){return}if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var t=g(this);var u=q.slideExpr?g(q.slideExpr,this):t.children();var o=u.get();if(o.length<2){log("terminating; too few slides: "+o.length);return}var s=i(t,u,o,q,r);if(s===false){return}if(s.timeout||s.continuous){this.cycleTimeout=setTimeout(function(){d(o,s,0,!s.rev)
},s.continuous?10:s.timeout+(s.delay||0))}})};function k(n,r,o){if(n.cycleStop==undefined){n.cycleStop=0}if(r===undefined||r===null){r={}}if(r.constructor==String){switch(r){case"stop":n.cycleStop++;if(n.cycleTimeout){clearTimeout(n.cycleTimeout)}n.cycleTimeout=0;g(n).removeData("cycle.opts");return false;case"pause":n.cyclePause=1;return false;case"resume":n.cyclePause=0;if(o===true){r=g(n).data("cycle.opts");if(!r){log("options not found, can not resume");return false}if(n.cycleTimeout){clearTimeout(n.cycleTimeout);n.cycleTimeout=0}d(r.elements,r,1,1)}return false;default:r={fx:r}}}else{if(r.constructor==Number){var q=r;r=g(n).data("cycle.opts");if(!r){log("options not found, can not advance slide");return false}if(q<0||q>=r.elements.length){log("invalid slide index: "+q);return false}r.nextSlide=q;if(n.cycleTimeout){clearTimeout(n.cycleTimeout);n.cycleTimeout=0}if(typeof o=="string"){r.oneTimeFx=o}d(r.elements,r,1,q>=r.currSlide);return false}}return r}function a(n,o){if(!g.support.opacity&&o.cleartype&&n.style.filter){try{n.style.removeAttribute("filter")}catch(q){}}}function i(x,H,t,s,D){var B=g.extend({},g.fn.cycle.defaults,s||{},g.metadata?x.metadata():g.meta?x.data():{});if(B.autostop){B.countdown=B.autostopCount||t.length}var q=x[0];x.data("cycle.opts",B);B.$cont=x;B.stopCount=q.cycleStop;B.elements=t;B.before=B.before?[B.before]:[];B.after=B.after?[B.after]:[];B.after.unshift(function(){B.busy=0});if(!g.support.opacity&&B.cleartype){B.after.push(function(){a(this,B)})}if(B.continuous){B.after.push(function(){d(t,B,0,!B.rev)})}l(B);if(!g.support.opacity&&B.cleartype&&!B.cleartypeNoBg){e(H)}if(x.css("position")=="static"){x.css("position","relative")}if(B.width){x.width(B.width)}if(B.height&&B.height!="auto"){x.height(B.height)}if(B.startingSlide){B.startingSlide=parseInt(B.startingSlide)}if(B.random){B.randomMap=[];for(var F=0;F<t.length;F++){B.randomMap.push(F)}B.randomMap.sort(function(w,o){return Math.random()-0.5});B.randomIndex=0;B.startingSlide=B.randomMap[0]}else{if(B.startingSlide>=t.length){B.startingSlide=0}}B.currSlide=B.startingSlide=B.startingSlide||0;var v=B.startingSlide;H.css({position:"absolute",top:0,left:0}).hide().each(function(o){var w=v?o>=v?t.length-(o-v):v-o:t.length-o;g(this).css("z-index",w)});g(t[v]).css("opacity",1).show();a(t[v],B);if(B.fit&&B.width){H.width(B.width)}if(B.fit&&B.height&&B.height!="auto"){H.height(B.height)}var C=B.containerResize&&!x.innerHeight();if(C){var u=0,A=0;for(var F=0;F<t.length;F++){var n=g(t[F]),I=n[0],z=n.outerWidth(),G=n.outerHeight();if(!z){z=I.offsetWidth}if(!G){G=I.offsetHeight}u=z>u?z:u;A=G>A?G:A}if(u>0&&A>0){x.css({width:u+"px",height:A+"px"})}}if(B.pause){x.hover(function(){this.cyclePause++},function(){this.cyclePause--})}if(b(B)===false){return false}if(!B.multiFx){var E=g.fn.cycle.transitions[B.fx];if(g.isFunction(E)){E(x,H,B)}else{if(B.fx!="custom"&&!B.multiFx){log("unknown transition: "+B.fx,"; slideshow terminating");return false}}}var r=false;s.requeueAttempts=s.requeueAttempts||0;H.each(function(){var K=g(this);this.cycleH=(B.fit&&B.height)?B.height:K.height();this.cycleW=(B.fit&&B.width)?B.width:K.width();if(K.is("img")){var w=(g.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var J=(g.browser.opera&&this.cycleW==42&&this.cycleH==19&&!this.complete);var o=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(w||J||o){if(D.s&&B.requeueOnImageNotLoaded&&++s.requeueAttempts<100){log(s.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){g(D.s,D.c).cycle(s)},B.requeueTimeout);r=true;return false}else{log("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(r){return false}B.cssBefore=B.cssBefore||{};B.animIn=B.animIn||{};B.animOut=B.animOut||{};H.not(":eq("+v+")").css(B.cssBefore);if(B.cssFirst){g(H[v]).css(B.cssFirst)}if(B.timeout){B.timeout=parseInt(B.timeout);if(B.speed.constructor==String){B.speed=g.fx.speeds[B.speed]||parseInt(B.speed)
}if(!B.sync){B.speed=B.speed/2}while((B.timeout-B.speed)<250){B.timeout+=B.speed}}if(B.easing){B.easeIn=B.easeOut=B.easing}if(!B.speedIn){B.speedIn=B.speed}if(!B.speedOut){B.speedOut=B.speed}B.slideCount=t.length;B.currSlide=B.lastSlide=v;if(B.random){B.nextSlide=B.currSlide;if(++B.randomIndex==t.length){B.randomIndex=0}B.nextSlide=B.randomMap[B.randomIndex]}else{B.nextSlide=B.startingSlide>=(t.length-1)?0:B.startingSlide+1}var y=H[v];if(B.before.length){B.before[0].apply(y,[y,y,B,true])}if(B.after.length>1){B.after[1].apply(y,[y,y,B,true])}if(B.next){g(B.next).click(function(){return m(B,B.rev?-1:1)})}if(B.prev){g(B.prev).click(function(){return m(B,B.rev?1:-1)})}if(B.pager){c(t,B)}h(B,t);return B}function l(n){n.original={before:[],after:[]};n.original.cssBefore=g.extend({},n.cssBefore);n.original.cssAfter=g.extend({},n.cssAfter);n.original.animIn=g.extend({},n.animIn);n.original.animOut=g.extend({},n.animOut);g.each(n.before,function(){n.original.before.push(this)});g.each(n.after,function(){n.original.after.push(this)})}function b(u){var q=g.fn.cycle.transitions;if(u.fx.indexOf(",")>0){u.multiFx=true;u.fxs=u.fx.replace(/\s*/g,"").split(",");for(var s=0;s<u.fxs.length;s++){var t=u.fxs[s];var o=q[t];if(!o||!q.hasOwnProperty(t)||!g.isFunction(o)){log("discarding unknown transition: ",t);u.fxs.splice(s,1);s--}}if(!u.fxs.length){log("No valid transitions named; slideshow terminating.");return false}}else{if(u.fx=="all"){u.multiFx=true;u.fxs=[];for(p in q){var o=q[p];if(q.hasOwnProperty(p)&&g.isFunction(o)){u.fxs.push(p)}}}}if(u.multiFx&&u.randomizeEffects){var r=Math.floor(Math.random()*20)+30;for(var s=0;s<r;s++){var n=Math.floor(Math.random()*u.fxs.length);u.fxs.push(u.fxs.splice(n,1)[0])}log("randomized fx sequence: ",u.fxs)}return true}function h(o,n){o.addSlide=function(r,t){var q=g(r),u=q[0];if(!o.autostopCount){o.countdown++}n[t?"unshift":"push"](u);if(o.els){o.els[t?"unshift":"push"](u)}o.slideCount=n.length;q.css("position","absolute");q[t?"prependTo":"appendTo"](o.$cont);if(t){o.currSlide++;o.nextSlide++}if(!g.support.opacity&&o.cleartype&&!o.cleartypeNoBg){e(q)}if(o.fit&&o.width){q.width(o.width)}if(o.fit&&o.height&&o.height!="auto"){$slides.height(o.height)}u.cycleH=(o.fit&&o.height)?o.height:q.height();u.cycleW=(o.fit&&o.width)?o.width:q.width();q.css(o.cssBefore);if(o.pager){g.fn.cycle.createPagerAnchor(n.length-1,u,g(o.pager),n,o)}if(g.isFunction(o.onAddSlide)){o.onAddSlide(q)}else{q.hide()}}}g.fn.cycle.resetState=function(o,n){n=n||o.fx;o.before=[];o.after=[];o.cssBefore=g.extend({},o.original.cssBefore);o.cssAfter=g.extend({},o.original.cssAfter);o.animIn=g.extend({},o.original.animIn);o.animOut=g.extend({},o.original.animOut);o.fxFn=null;g.each(o.original.before,function(){o.before.push(this)});g.each(o.original.after,function(){o.after.push(this)});var q=g.fn.cycle.transitions[n];if(g.isFunction(q)){q(o.$cont,g(o.elements),o)}};function d(v,n,u,w){if(u&&n.busy&&n.manualTrump){g(v).stop(true,true);n.busy=false}if(n.busy){return}var s=n.$cont[0],y=v[n.currSlide],x=v[n.nextSlide];if(s.cycleStop!=n.stopCount||s.cycleTimeout===0&&!u){return}if(!u&&!s.cyclePause&&((n.autostop&&(--n.countdown<=0))||(n.nowrap&&!n.random&&n.nextSlide<n.currSlide))){if(n.end){n.end(n)}return}if(u||!s.cyclePause){var t=n.fx;y.cycleH=y.cycleH||g(y).height();y.cycleW=y.cycleW||g(y).width();x.cycleH=x.cycleH||g(x).height();x.cycleW=x.cycleW||g(x).width();if(n.multiFx){if(n.lastFx==undefined||++n.lastFx>=n.fxs.length){n.lastFx=0}t=n.fxs[n.lastFx];n.currFx=t}if(n.oneTimeFx){t=n.oneTimeFx;n.oneTimeFx=null}g.fn.cycle.resetState(n,t);if(n.before.length){g.each(n.before,function(z,A){if(s.cycleStop!=n.stopCount){return}A.apply(x,[y,x,n,w])})}var q=function(){g.each(n.after,function(z,A){if(s.cycleStop!=n.stopCount){return}A.apply(x,[y,x,n,w])})};if(n.nextSlide!=n.currSlide){n.busy=1;if(n.fxFn){n.fxFn(y,x,n,q,w)}else{if(g.isFunction(g.fn.cycle[n.fx])){g.fn.cycle[n.fx](y,x,n,q)}else{g.fn.cycle.custom(y,x,n,q,u&&n.fastOnEvent)}}}n.lastSlide=n.currSlide;
if(n.random){n.currSlide=n.nextSlide;if(++n.randomIndex==v.length){n.randomIndex=0}n.nextSlide=n.randomMap[n.randomIndex]}else{var r=(n.nextSlide+1)==v.length;n.nextSlide=r?0:n.nextSlide+1;n.currSlide=r?v.length-1:n.nextSlide-1}if(n.pager){g.fn.cycle.updateActivePagerLink(n.pager,n.currSlide)}}var o=0;if(n.timeout&&!n.continuous){o=f(y,x,n,w)}else{if(n.continuous&&s.cyclePause){o=10}}if(o>0){s.cycleTimeout=setTimeout(function(){d(v,n,0,!n.rev)},o)}}g.fn.cycle.updateActivePagerLink=function(n,o){g(n).find("a").removeClass("activeSlide").filter("a:eq("+o+")").addClass("activeSlide")};function f(s,q,r,o){if(r.timeoutFn){var n=r.timeoutFn(s,q,r,o);if(n!==false){return n}}return r.timeout}g.fn.cycle.next=function(n){m(n,n.rev?-1:1)};g.fn.cycle.prev=function(n){m(n,n.rev?1:-1)};function m(o,s){var n=o.elements;var r=o.$cont[0],q=r.cycleTimeout;if(q){clearTimeout(q);r.cycleTimeout=0}if(o.random&&s<0){o.randomIndex--;if(--o.randomIndex==-2){o.randomIndex=n.length-2}else{if(o.randomIndex==-1){o.randomIndex=n.length-1}}o.nextSlide=o.randomMap[o.randomIndex]}else{if(o.random){if(++o.randomIndex==n.length){o.randomIndex=0}o.nextSlide=o.randomMap[o.randomIndex]}else{o.nextSlide=o.currSlide+s;if(o.nextSlide<0){if(o.nowrap){return false}o.nextSlide=n.length-1}else{if(o.nextSlide>=n.length){if(o.nowrap){return false}o.nextSlide=0}}}}if(g.isFunction(o.prevNextClick)){o.prevNextClick(s>0,o.nextSlide,n[o.nextSlide])}d(n,o,1,s>=0);return false}function c(o,q){var n=g(q.pager);g.each(o,function(r,s){g.fn.cycle.createPagerAnchor(r,s,n,o,q)});g.fn.cycle.updateActivePagerLink(q.pager,q.startingSlide)}g.fn.cycle.createPagerAnchor=function(s,t,q,r,u){var o=(g.isFunction(u.pagerAnchorBuilder))?u.pagerAnchorBuilder(s,t):'<a href="#">'+(s+1)+"</a>";if(!o){return}var v=g(o);if(v.parents("body").length==0){var n=[];if(q.length>1){q.each(function(){var w=v.clone(true);g(this).append(w);n.push(w)});v=g(n)}else{v.appendTo(q)}}v.bind(u.pagerEvent,function(){u.nextSlide=s;var x=u.$cont[0],w=x.cycleTimeout;if(w){clearTimeout(w);x.cycleTimeout=0}if(g.isFunction(u.pagerClick)){u.pagerClick(u.nextSlide,r[u.nextSlide])}d(r,u,1,u.currSlide<s);return false});if(u.pauseOnPagerHover){v.hover(function(){u.$cont[0].cyclePause++},function(){u.$cont[0].cyclePause--})}};g.fn.cycle.hopsFromLast=function(r,q){var o,n=r.lastSlide,s=r.currSlide;if(q){o=s>n?s-n:r.slideCount-n}else{o=s<n?n-s:n+r.slideCount-s}return o};function e(q){function o(r){r=parseInt(r).toString(16);return r.length<2?"0"+r:r}function n(t){for(;t&&t.nodeName.toLowerCase()!="html";t=t.parentNode){var r=g.css(t,"background-color");if(r.indexOf("rgb")>=0){var s=r.match(/\d+/g);return"#"+o(s[0])+o(s[1])+o(s[2])}if(r&&r!="transparent"){return r}}return"#ffffff"}q.each(function(){g(this).css("background-color",n(this))})}g.fn.cycle.commonReset=function(t,r,s,o,q,n){g(s.elements).not(t).hide();s.cssBefore.opacity=1;s.cssBefore.display="block";if(o!==false&&r.cycleW>0){s.cssBefore.width=r.cycleW}if(q!==false&&r.cycleH>0){s.cssBefore.height=r.cycleH}s.cssAfter=s.cssAfter||{};s.cssAfter.display="none";g(t).css("zIndex",s.slideCount+(n===true?1:0));g(r).css("zIndex",s.slideCount+(n===true?0:1))};g.fn.cycle.custom=function(z,t,n,q,o){var y=g(z),u=g(t);var r=n.speedIn,x=n.speedOut,s=n.easeIn,w=n.easeOut;u.css(n.cssBefore);if(o){if(typeof o=="number"){r=x=o}else{r=x=1}s=w=null}var v=function(){u.animate(n.animIn,r,s,q)};y.animate(n.animOut,x,w,function(){if(n.cssAfter){y.css(n.cssAfter)}if(!n.sync){v()}});if(n.sync){v()}};g.fn.cycle.transitions={fade:function(o,q,n){q.not(":eq("+n.currSlide+")").css("opacity",0);n.before.push(function(t,r,s){g.fn.cycle.commonReset(t,r,s);s.cssBefore.opacity=0});n.animIn={opacity:1};n.animOut={opacity:0};n.cssBefore={top:0,left:0}}};g.fn.cycle.ver=function(){return ver};g.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,pager:null,pagerClick:null,pagerEvent:"click",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:!g.support.opacity,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250};
g.fn.cycle.transitions.scrollUp=function(q,r,o){q.css("overflow","hidden");o.before.push(g.fn.cycle.commonReset);var n=q.height();o.cssBefore={top:n,left:0};o.cssFirst={top:0};o.animIn={top:0};o.animOut={top:-n}};g.fn.cycle.transitions.scrollDown=function(q,r,o){q.css("overflow","hidden");o.before.push(g.fn.cycle.commonReset);var n=q.height();o.cssFirst={top:0};o.cssBefore={top:-n,left:0};o.animIn={top:0};o.animOut={top:n}};g.fn.cycle.transitions.scrollLeft=function(q,r,o){q.css("overflow","hidden");o.before.push(g.fn.cycle.commonReset);var n=q.width();o.cssFirst={left:0};o.cssBefore={left:n,top:0};o.animIn={left:0};o.animOut={left:0-n}};g.fn.cycle.transitions.scrollRight=function(q,r,o){q.css("overflow","hidden");o.before.push(g.fn.cycle.commonReset);var n=q.width();o.cssFirst={left:0};o.cssBefore={left:-n,top:0};o.animIn={left:0};o.animOut={left:n}};g.fn.cycle.transitions.scrollHorz=function(o,q,n){o.css("overflow","hidden").width();n.before.push(function(u,s,t,r){g.fn.cycle.commonReset(u,s,t);t.cssBefore.left=r?(s.cycleW-1):(1-s.cycleW);t.animOut.left=r?-u.cycleW:u.cycleW});n.cssFirst={left:0};n.cssBefore={top:0};n.animIn={left:0};n.animOut={top:0}};g.fn.cycle.transitions.scrollVert=function(o,q,n){o.css("overflow","hidden");n.before.push(function(u,s,t,r){g.fn.cycle.commonReset(u,s,t);t.cssBefore.top=r?(1-s.cycleH):(s.cycleH-1);t.animOut.top=r?u.cycleH:-u.cycleH});n.cssFirst={top:0};n.cssBefore={left:0};n.animIn={top:0};n.animOut={left:0}};g.fn.cycle.transitions.slideX=function(o,q,n){n.before.push(function(t,r,s){g(s.elements).not(t).hide();g.fn.cycle.commonReset(t,r,s,false,true);s.animIn.width=r.cycleW});n.cssBefore={left:0,top:0,width:0};n.animIn={width:"show"};n.animOut={width:0}};g.fn.cycle.transitions.slideY=function(o,q,n){n.before.push(function(t,r,s){g(s.elements).not(t).hide();g.fn.cycle.commonReset(t,r,s,true,false);s.animIn.height=r.cycleH});n.cssBefore={left:0,top:0,height:0};n.animIn={height:"show"};n.animOut={height:0}};g.fn.cycle.transitions.shuffle=function(r,s,q){var n=r.css("overflow","visible").width();s.css({left:0,top:0});q.before.push(function(v,t,u){g.fn.cycle.commonReset(v,t,u,true,true,true)});q.speed=q.speed/2;q.random=0;q.shuffle=q.shuffle||{left:-n,top:15};q.els=[];for(var o=0;o<s.length;o++){q.els.push(s[o])}for(var o=0;o<q.currSlide;o++){q.els.push(q.els.shift())}q.fxFn=function(z,w,y,t,v){var u=v?g(z):g(w);g(w).css(y.cssBefore);var x=y.slideCount;u.animate(y.shuffle,y.speedIn,y.easeIn,function(){var B=g.fn.cycle.hopsFromLast(y,v);for(var C=0;C<B;C++){v?y.els.push(y.els.shift()):y.els.unshift(y.els.pop())}if(v){for(var D=0,A=y.els.length;D<A;D++){g(y.els[D]).css("z-index",A-D+x)}}else{var E=g(z).css("z-index");u.css("z-index",parseInt(E)+1+x)}u.animate({left:0,top:0},y.speedOut,y.easeOut,function(){g(v?this:z).hide();if(t){t()}})})};q.cssBefore={display:"block",opacity:1,top:0,left:0}};g.fn.cycle.transitions.turnUp=function(o,q,n){n.before.push(function(t,r,s){g.fn.cycle.commonReset(t,r,s,true,false);s.cssBefore.top=r.cycleH;s.animIn.height=r.cycleH});n.cssFirst={top:0};n.cssBefore={left:0,height:0};n.animIn={top:0};n.animOut={height:0}};g.fn.cycle.transitions.turnDown=function(o,q,n){n.before.push(function(t,r,s){g.fn.cycle.commonReset(t,r,s,true,false);s.animIn.height=r.cycleH;s.animOut.top=t.cycleH});n.cssFirst={top:0};n.cssBefore={left:0,top:0,height:0};n.animOut={height:0}};g.fn.cycle.transitions.turnLeft=function(o,q,n){n.before.push(function(t,r,s){g.fn.cycle.commonReset(t,r,s,false,true);s.cssBefore.left=r.cycleW;s.animIn.width=r.cycleW});n.cssBefore={top:0,width:0};n.animIn={left:0};n.animOut={width:0}};g.fn.cycle.transitions.turnRight=function(o,q,n){n.before.push(function(t,r,s){g.fn.cycle.commonReset(t,r,s,false,true);s.animIn.width=r.cycleW;s.animOut.left=t.cycleW});n.cssBefore={top:0,left:0,width:0};n.animIn={left:0};n.animOut={width:0}};g.fn.cycle.transitions.zoom=function(o,q,n){n.before.push(function(t,r,s){g.fn.cycle.commonReset(t,r,s,false,false,true);s.cssBefore.top=r.cycleH/2;
s.cssBefore.left=r.cycleW/2;s.animIn={top:0,left:0,width:r.cycleW,height:r.cycleH};s.animOut={width:0,height:0,top:t.cycleH/2,left:t.cycleW/2}});n.cssFirst={top:0,left:0};n.cssBefore={width:0,height:0}};g.fn.cycle.transitions.fadeZoom=function(o,q,n){n.before.push(function(t,r,s){g.fn.cycle.commonReset(t,r,s,false,false);s.cssBefore.left=r.cycleW/2;s.cssBefore.top=r.cycleH/2;s.animIn={top:0,left:0,width:r.cycleW,height:r.cycleH}});n.cssBefore={width:0,height:0};n.animOut={opacity:0}};g.fn.cycle.transitions.blindX=function(q,r,o){var n=q.css("overflow","hidden").width();o.before.push(function(u,s,t){g.fn.cycle.commonReset(u,s,t);t.animIn.width=s.cycleW;t.animOut.left=u.cycleW});o.cssBefore={left:n,top:0};o.animIn={left:0};o.animOut={left:n}};g.fn.cycle.transitions.blindY=function(q,r,o){var n=q.css("overflow","hidden").height();o.before.push(function(u,s,t){g.fn.cycle.commonReset(u,s,t);t.animIn.height=s.cycleH;t.animOut.top=u.cycleH});o.cssBefore={top:n,left:0};o.animIn={top:0};o.animOut={top:n}};g.fn.cycle.transitions.blindZ=function(r,s,q){var o=r.css("overflow","hidden").height();var n=r.width();q.before.push(function(v,t,u){g.fn.cycle.commonReset(v,t,u);u.animIn.height=t.cycleH;u.animOut.top=v.cycleH});q.cssBefore={top:o,left:n};q.animIn={top:0,left:0};q.animOut={top:o,left:n}};g.fn.cycle.transitions.growX=function(o,q,n){n.before.push(function(t,r,s){g.fn.cycle.commonReset(t,r,s,false,true);s.cssBefore.left=this.cycleW/2;s.animIn={left:0,width:this.cycleW};s.animOut={left:0}});n.cssBefore={width:0,top:0}};g.fn.cycle.transitions.growY=function(o,q,n){n.before.push(function(t,r,s){g.fn.cycle.commonReset(t,r,s,true,false);s.cssBefore.top=this.cycleH/2;s.animIn={top:0,height:this.cycleH};s.animOut={top:0}});n.cssBefore={height:0,left:0}};g.fn.cycle.transitions.curtainX=function(o,q,n){n.before.push(function(t,r,s){g.fn.cycle.commonReset(t,r,s,false,true,true);s.cssBefore.left=r.cycleW/2;s.animIn={left:0,width:this.cycleW};s.animOut={left:t.cycleW/2,width:0}});n.cssBefore={top:0,width:0}};g.fn.cycle.transitions.curtainY=function(o,q,n){n.before.push(function(t,r,s){g.fn.cycle.commonReset(t,r,s,true,false,true);s.cssBefore.top=r.cycleH/2;s.animIn={top:0,height:r.cycleH};s.animOut={top:t.cycleH/2,height:0}});n.cssBefore={left:0,height:0}};g.fn.cycle.transitions.cover=function(r,s,q){var t=q.direction||"left";var n=r.css("overflow","hidden").width();var o=r.height();q.before.push(function(w,u,v){g.fn.cycle.commonReset(w,u,v);if(t=="right"){v.cssBefore.left=-n}else{if(t=="up"){v.cssBefore.top=o}else{if(t=="down"){v.cssBefore.top=-o}else{v.cssBefore.left=n}}}});q.animIn={left:0,top:0};q.animOut={opacity:1};q.cssBefore={top:0,left:0}};g.fn.cycle.transitions.uncover=function(r,s,q){var t=q.direction||"left";var n=r.css("overflow","hidden").width();var o=r.height();q.before.push(function(w,u,v){g.fn.cycle.commonReset(w,u,v,true,true,true);if(t=="right"){v.animOut.left=n}else{if(t=="up"){v.animOut.top=-o}else{if(t=="down"){v.animOut.top=o}else{v.animOut.left=-n}}}});q.animIn={left:0,top:0};q.animOut={opacity:1};q.cssBefore={top:0,left:0}};g.fn.cycle.transitions.toss=function(r,s,q){var n=r.css("overflow","visible").width();var o=r.height();q.before.push(function(v,t,u){g.fn.cycle.commonReset(v,t,u,true,true,true);if(!u.animOut.left&&!u.animOut.top){u.animOut={left:n*2,top:-o/2,opacity:0}}else{u.animOut.opacity=0}});q.cssBefore={left:0,top:0};q.animIn={left:0}};g.fn.cycle.transitions.wipe=function(A,x,o){var z=A.css("overflow","hidden").width();var u=A.height();o.cssBefore=o.cssBefore||{};var q;if(o.clip){if(/l2r/.test(o.clip)){q="rect(0px 0px "+u+"px 0px)"}else{if(/r2l/.test(o.clip)){q="rect(0px "+z+"px "+u+"px "+z+"px)"}else{if(/t2b/.test(o.clip)){q="rect(0px "+z+"px 0px 0px)"}else{if(/b2t/.test(o.clip)){q="rect("+u+"px "+z+"px "+u+"px 0px)"}else{if(/zoom/.test(o.clip)){var B=parseInt(u/2);var s=parseInt(z/2);q="rect("+B+"px "+s+"px "+B+"px "+s+"px)"}}}}}}o.cssBefore.clip=o.cssBefore.clip||q||"rect(0px 0px 0px 0px)";var v=o.cssBefore.clip.match(/(\d+)/g);
var B=parseInt(v[0]),n=parseInt(v[1]),y=parseInt(v[2]),s=parseInt(v[3]);o.before.push(function(G,w,E){if(G==w){return}var t=g(G),r=g(w);g.fn.cycle.commonReset(G,w,E,true,true,false);E.cssAfter.display="block";var D=1,C=parseInt((E.speedIn/13))-1;(function F(){var I=B?B-parseInt(D*(B/C)):0;var J=s?s-parseInt(D*(s/C)):0;var K=y<u?y+parseInt(D*((u-y)/C||1)):u;var H=n<z?n+parseInt(D*((z-n)/C||1)):z;r.css({clip:"rect("+I+"px "+H+"px "+K+"px "+J+"px)"});(D++<=C)?setTimeout(F,13):t.css("display","none")})()});o.cssBefore={display:"block",opacity:1,top:0,left:0};o.animIn={left:0};o.animOut={left:0}}})(this.jQuery);window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){console.log(Array.prototype.slice.call(arguments))}};(function(b){var a=b.write;b.write=function(c){log("document.write(): ",arguments);if(/docwriteregexwhitelist/.test(c)){a.apply(b,arguments)}}})(document);
