window.log=function(){log.history=log.history||[];log.history.push(arguments);arguments.callee=arguments.callee.caller;if(this.console){console.log(Array.prototype.slice.call(arguments))}};(function(e){function h(){}for(var g="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),f;f=g.pop();){e[f]=e[f]||h}})(window.console=window.console||{});(function(b){b(document).ready(function(){b("body").prepend('<div id="supersized-loader"></div>').append('<div id="supersized"></div>')});b.supersized=function(a){var i={start_slide:1,vertical_center:1,horizontal_center:1,min_width:0,min_height:0,fit_portrait:0,fit_landscape:0,image_protect:1};var j=b("#supersized");if(a){var a=b.extend(i,a)}else{var a=b.extend(i)}if(a.start_slide){var g=a.start_slide-1}else{var g=Math.floor(Math.random()*a.slides.length)}b("<img/>").attr("src",a.slides[g].image).appendTo(j);j.hide();b(document).ready(function(){h()});b(window).load(function(){b("#supersized-loader").hide();j.fadeIn("normal");h()});b(window).resize(function(){h()});function h(){return j.each(function(){var c=b("img",j);b(c).each(function(){var o=(b(this).height()/b(this).width()).toFixed(2);thisSlide=b(this);var p=b(window).width();var f=b(window).height();var e;if((f<=a.min_height)&&(p<=a.min_width)){if((f/p)>o){a.fit_landscape&&o<=1?n(true):d(true)}else{a.fit_portrait&&o>1?d(true):n(true)}}else{if(p<=a.min_width){if((f/p)>o){a.fit_landscape&&o<=1?n(true):d()}else{a.fit_portrait&&o>1?d():n(true)}}else{if(f<=a.min_height){if((f/p)>o){a.fit_landscape&&o<=1?n():d(true)}else{a.fit_portrait&&o>1?d(true):n()}}else{if((f/p)>o){a.fit_landscape&&o<=1?n():d()}else{a.fit_portrait&&o>1?d():n()}}}}function n(k){if(k){if(thisSlide.width()<p||thisSlide.width()<a.min_width){if(thisSlide.width()*o>=a.min_height){thisSlide.width(a.min_width);thisSlide.height(thisSlide.width()*o)}else{d()}}}else{if(a.min_height>=f&&!a.fit_landscape){if(p*o>=a.min_height||(p*o>=a.min_height&&o<=1)){thisSlide.width(p);thisSlide.height(p*o)}else{if(o>1){thisSlide.height(a.min_height);thisSlide.width(thisSlide.height()/o)}else{if(thisSlide.width()<p){thisSlide.width(p);thisSlide.height(thisSlide.width()*o)}}}}else{thisSlide.width(p);thisSlide.height(p*o)}}}function d(k){if(k){if(thisSlide.height()<f){if(thisSlide.height()/o>=a.min_width){thisSlide.height(a.min_height);thisSlide.width(thisSlide.height()/o)}else{n(true)}}}else{if(a.min_width>=p){if(f/o>=a.min_width||o>1){thisSlide.height(f);thisSlide.width(f/o)}else{if(o<=1){thisSlide.width(a.min_width);thisSlide.height(thisSlide.width()*o)}}}else{thisSlide.height(f);thisSlide.width(f/o)}}}if(a.horizontal_center){b(this).css("left",(p-b(this).width())/2)}if(a.vertical_center){b(this).css("top",(f-b(this).height())/2)}});if(a.image_protect){b("img",j).bind("contextmenu",function(){return false});b("img",j).bind("mousedown",function(){return false})}return false})}}})(jQuery);(function(d){var a="Lite-1.3";d.fn.cycle=function(e){return this.each(function(){e=e||{};if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;this.cyclePause=0;var l=d(this);var i=e.slideExpr?d(e.slideExpr,this):l.children();var g=i.get();if(g.length<2){window.console&&console.log("terminating; too few slides: "+g.length);return}var f=d.extend({},d.fn.cycle.defaults,e||{},d.metadata?l.metadata():d.meta?l.data():{});var m=d.isFunction(l.data)?l.data(f.metaAttr):null;if(m){f=d.extend(f,m)}f.before=f.before?[f.before]:[];f.after=f.after?[f.after]:[];f.after.unshift(function(){f.busy=0});var n=this.className;f.width=parseInt((n.match(/w:(\d+)/)||[])[1])||f.width;f.height=parseInt((n.match(/h:(\d+)/)||[])[1])||f.height;f.timeout=parseInt((n.match(/t:(\d+)/)||[])[1])||f.timeout;if(l.css("position")=="static"){l.css("position","relative")}if(f.width){l.width(f.width)}if(f.height&&f.height!="auto"){l.height(f.height)}var h=0;i.css({position:"absolute",top:0,left:0}).each(function(o){d(this).css("z-index",g.length-o)
});d(g[h]).css("opacity",1).show();if(d.browser.msie){g[h].style.removeAttribute("filter")}if(f.fit&&f.width){i.width(f.width)}if(f.fit&&f.height&&f.height!="auto"){i.height(f.height)}if(f.pause){l.hover(function(){this.cyclePause=1},function(){this.cyclePause=0})}var j=d.fn.cycle.transitions[f.fx];j&&j(l,i,f);i.each(function(){var o=d(this);this.cycleH=(f.fit&&f.height)?f.height:o.height();this.cycleW=(f.fit&&f.width)?f.width:o.width()});if(f.cssFirst){d(i[h]).css(f.cssFirst)}if(f.timeout){if(f.speed.constructor==String){f.speed={slow:600,fast:200}[f.speed]||400}if(!f.sync){f.speed=f.speed/2}while((f.timeout-f.speed)<250){f.timeout+=f.speed}}f.speedIn=f.speed;f.speedOut=f.speed;f.slideCount=g.length;f.currSlide=h;f.nextSlide=1;var k=i[h];if(f.before.length){f.before[0].apply(k,[k,k,f,true])}if(f.after.length>1){f.after[1].apply(k,[k,k,f,true])}if(f.click&&!f.next){f.next=f.click}if(f.next){d(f.next).bind("click",function(){return c(g,f,f.rev?-1:1)})}if(f.prev){d(f.prev).bind("click",function(){return c(g,f,f.rev?1:-1)})}if(f.timeout){this.cycleTimeout=setTimeout(function(){b(g,f,0,!f.rev)},f.timeout+(f.delay||0))}})};function b(j,e,i,k){if(e.busy){return}var h=j[0].parentNode,m=j[e.currSlide],l=j[e.nextSlide];if(h.cycleTimeout===0&&!i){return}if(i||!h.cyclePause){if(e.before.length){d.each(e.before,function(n,p){p.apply(l,[m,l,e,k])})}var f=function(){if(d.browser.msie){this.style.removeAttribute("filter")}d.each(e.after,function(n,p){p.apply(l,[m,l,e,k])})};if(e.nextSlide!=e.currSlide){e.busy=1;d.fn.cycle.custom(m,l,e,f)}var g=(e.nextSlide+1)==j.length;e.nextSlide=g?0:e.nextSlide+1;e.currSlide=g?j.length-1:e.nextSlide-1}if(e.timeout){h.cycleTimeout=setTimeout(function(){b(j,e,0,!e.rev)},e.timeout)}}function c(e,f,i){var h=e[0].parentNode,g=h.cycleTimeout;if(g){clearTimeout(g);h.cycleTimeout=0}f.nextSlide=f.currSlide+i;if(f.nextSlide<0){f.nextSlide=e.length-1}else{if(f.nextSlide>=e.length){f.nextSlide=0}}b(e,f,1,i>=0);return false}d.fn.cycle.custom=function(k,h,i,e){var j=d(k),g=d(h);g.css(i.cssBefore);var f=function(){g.animate(i.animIn,i.speedIn,i.easeIn,e)};j.animate(i.animOut,i.speedOut,i.easeOut,function(){j.css(i.cssAfter);if(!i.sync){f()}});if(i.sync){f()}};d.fn.cycle.transitions={fade:function(f,g,e){g.not(":eq(0)").hide();e.cssBefore={opacity:0,display:"block"};e.cssAfter={display:"none"};e.animOut={opacity:0};e.animIn={opacity:1}},fadeout:function(f,g,e){e.before.push(function(k,i,j,h){d(k).css("zIndex",j.slideCount+(h===true?1:0));d(i).css("zIndex",j.slideCount+(h===true?0:1))});g.not(":eq(0)").hide();e.cssBefore={opacity:1,display:"block",zIndex:1};e.cssAfter={display:"none",zIndex:0};e.animOut={opacity:0}}};d.fn.cycle.ver=function(){return a};d.fn.cycle.defaults={animIn:{},animOut:{},fx:"fade",after:null,before:null,cssBefore:{},cssAfter:{},delay:0,fit:0,height:"auto",metaAttr:"cycle",next:null,pause:0,prev:null,speed:1000,slideExpr:null,sync:1,timeout:4000}})(jQuery);(function(a){a.fn.closeDOMWindow=function(b){if(!b){b={}}var c=function(d){if(b.anchoredClassName){var f=a("."+b.anchoredClassName);f.fadeOut("normal",function(){if(a.fn.draggable){f.draggable("destory").trigger("unload").remove()}else{f.trigger("unload").remove()}});if(b.functionCallOnClose){b.functionCallAfterClose()}}else{var e=a("#DOMWindowOverlay");var g=a("#DOMWindow");e.fadeOut("normal",function(){e.trigger("unload").unbind().remove()});g.fadeOut("normal",function(){if(a.fn.draggable){g.draggable("destroy").trigger("unload").remove()}else{g.trigger("unload").remove()}});a(window).unbind("scroll.DOMWindow");a(window).unbind("resize.DOMWindow");if(a.fn.openDOMWindow.isIE6){a("#DOMWindowIE6FixIframe").remove()}if(b.functionCallOnClose){b.functionCallAfterClose()}}};if(b.eventType){return this.each(function(d){a(this).bind(b.eventType,function(){c(this);return false})})}else{c()}};a.closeDOMWindow=function(b){a.fn.closeDOMWindow(b)};a.fn.openDOMWindow=function(d){var g=a.fn.openDOMWindow;g.defaultsSettings={anchoredClassName:"",anchoredSelector:"",borderColor:"#ccc",borderSize:"4",draggable:0,eventType:null,fixedWindowY:100,functionCallOnOpen:null,functionCallOnClose:null,height:500,loader:0,loaderHeight:0,loaderImagePath:"",loaderWidth:0,modal:0,overlay:1,overlayColor:"#000",overlayOpacity:"85",positionLeft:0,positionTop:0,positionType:"centered",width:500,windowBGColor:"#fff",windowBGImage:null,windowHTTPType:"get",windowPadding:10,windowSource:"inline",windowSourceID:"",windowSourceURL:"",windowSourceAttrURL:"href"};
var f=a.extend({},a.fn.openDOMWindow.defaultsSettings,d||{});var b=(f.width==100&&f.height==100)?"%":"px";g.viewPortHeight=function(){return self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight};g.viewPortWidth=function(){return self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth};g.scrollOffsetHeight=function(){return self.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop};g.scrollOffsetWidth=function(){return self.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft};g.isIE6=typeof document.body.style.maxHeight==="undefined";var k=function(){var o=a("#DOMWindowOverlay");if(g.isIE6){var p=document.documentElement.offsetHeight+document.documentElement.scrollTop-4;var n=document.documentElement.offsetWidth-21;o.css({height:p+"px",width:n+"px"})}else{o.css({height:"100%",width:"100%",position:"fixed"})}};var i=function(){var o=document.documentElement.offsetHeight+document.documentElement.scrollTop-4;var n=document.documentElement.offsetWidth-21;a("#DOMWindowIE6FixIframe").css({height:o+"px",width:n+"px"})};var l=function(){var n=a("#DOMWindow");if(f.height+50>g.viewPortHeight()){n.css("left",Math.round(g.viewPortWidth()/2)+g.scrollOffsetWidth()-Math.round((n.outerWidth())/2))}else{n.css("left",Math.round(g.viewPortWidth()/2)+g.scrollOffsetWidth()-Math.round((n.outerWidth())/2));n.css("top",Math.round(g.viewPortHeight()/2)+g.scrollOffsetHeight()-Math.round((n.outerHeight())/2))}};var c=function(){var n=a("#DOMWindowLoader");if(g.isIE6){n.css({left:Math.round(g.viewPortWidth()/2)+g.scrollOffsetWidth()-Math.round((n.innerWidth())/2),position:"absolute"});n.css({top:Math.round(g.viewPortHeight()/2)+g.scrollOffsetHeight()-Math.round((n.innerHeight())/2),position:"absolute"})}else{n.css({left:"50%",top:"50%",position:"fixed"})}};var m=function(){var n=a("#DOMWindow");n.css("left",f.positionLeft+g.scrollOffsetWidth());n.css("top",+f.positionTop+g.scrollOffsetHeight())};var j=function(n){if(arguments[0]){a("."+n+" #DOMWindowLoader").remove();a("."+n+" #DOMWindowContent").fadeIn("normal",function(){if(f.functionCallOnOpen){f.functionCallOnOpen()}});a("."+n+".closeDOMWindow").click(function(){a.closeDOMWindow();return false})}else{a("#DOMWindowLoader").remove();a("#DOMWindow").fadeIn("normal",function(){if(f.functionCallOnOpen){f.functionCallOnOpen()}});a("#DOMWindow .closeDOMWindow").click(function(){a.closeDOMWindow();return false})}};var h=function(n){var o={};n.replace(/b([^&=]*)=([^&=]*)b/g,function(p,q,r){if(typeof o[q]!="undefined"){o[q]+=","+r}else{o[q]=r}});return o};var e=function(o){f.windowSourceID=a(o).attr("href")||f.windowSourceID;f.windowSourceURL=a(o).attr(f.windowSourceAttrURL)||f.windowSourceURL;f.windowBGImage=f.windowBGImage?"background-image:url("+f.windowBGImage+")":"";var t,r;if(f.positionType=="anchored"){var s=a(f.anchoredSelector).position();var p=s.left+f.positionLeft;var n=s.top+f.positionTop;a("body").append('<div class="'+f.anchoredClassName+'" style="'+f.windowBGImage+";background-repeat:no-repeat;padding:"+f.windowPadding+"px;overflow:auto;position:absolute;top:"+n+"px;left:"+p+"px;height:"+f.height+b+";width:"+f.width+b+";background-color:"+f.windowBGColor+";border:"+f.borderSize+"px solid "+f.borderColor+';z-index:10001"><div id="DOMWindowContent" style="display:none"></div></div>');if(f.loader&&f.loaderImagePath!==""){a("."+f.anchoredClassName).append('<div id="DOMWindowLoader" style="width:'+f.loaderWidth+"px;height:"+f.loaderHeight+'px;"><img src="'+f.loaderImagePath+'" /></div>')}if(a.fn.draggable){if(f.draggable){a("."+f.anchoredClassName).draggable({cursor:"move"})}}switch(f.windowSource){case"inline":a("."+f.anchoredClassName+" #DOMWindowContent").append(a(f.windowSourceID).children());a("."+f.anchoredClassName).unload(function(){a("."+f.windowSourceID).append(a("."+f.anchoredClassName+" #DOMWindowContent").children())});j(f.anchoredClassName);break;case"iframe":a("."+f.anchoredClassName+" #DOMWindowContent").append('<iframe frameborder="0" hspace="0" wspace="0" src="'+f.windowSourceURL+'" name="DOMWindowIframe'+Math.round(Math.random()*1000)+'" style="width:100%;height:100%;border:none;background-color:#fff;" class="'+f.anchoredClassName+'Iframe" ></iframe>');
a("."+f.anchoredClassName+"Iframe").load(j(f.anchoredClassName));break;case"ajax":if(f.windowHTTPType=="post"){if(f.windowSourceURL.indexOf("?")!==-1){t=f.windowSourceURL.substr(0,f.windowSourceURL.indexOf("?"));r=h(f.windowSourceURL)}else{t=f.windowSourceURL;r={}}a("."+f.anchoredClassName+" #DOMWindowContent").load(t,r,function(){j(f.anchoredClassName)})}else{if(f.windowSourceURL.indexOf("?")==-1){f.windowSourceURL+="?"}a("."+f.anchoredClassName+" #DOMWindowContent").load(f.windowSourceURL+"&random="+(new Date().getTime()),function(){j(f.anchoredClassName)})}break}}else{if(f.overlay){a("body").append('<div id="DOMWindowOverlay" style="z-index:10000;display:none;position:absolute;top:0;left:0;background-color:'+f.overlayColor+";filter:alpha(opacity="+f.overlayOpacity+");-moz-opacity: 0."+f.overlayOpacity+";opacity: 0."+f.overlayOpacity+';"></div>');if(g.isIE6){a("body").append('<iframe id="DOMWindowIE6FixIframe"  src="blank.html"  style="width:100%;height:100%;z-index:9999;position:absolute;top:0;left:0;filter:alpha(opacity=0);"></iframe>');i()}k();var q=a("#DOMWindowOverlay");q.fadeIn("normal");if(!f.modal){q.click(function(){a.closeDOMWindow()})}}if(f.loader&&f.loaderImagePath!==""){a("body").append('<div id="DOMWindowLoader" style="z-index:10002;width:'+f.loaderWidth+"px;height:"+f.loaderHeight+'px;"><img src="'+f.loaderImagePath+'" /></div>');c()}a("body").append('<div id="DOMWindow" style="background-repeat:no-repeat;'+f.windowBGImage+";overflow:auto;padding:"+f.windowPadding+"px;display:none;height:"+f.height+b+";width:"+f.width+b+";background-color:"+f.windowBGColor+";border:"+f.borderSize+"px solid "+f.borderColor+'; position:absolute;z-index:10001"></div>');var u=a("#DOMWindow");switch(f.positionType){case"centered":l();if(f.height+50>g.viewPortHeight()){u.css("top",(f.fixedWindowY+g.scrollOffsetHeight())+"px")}break;case"absolute":u.css({top:(f.positionTop+g.scrollOffsetHeight())+"px",left:(f.positionLeft+g.scrollOffsetWidth())+"px"});if(a.fn.draggable){if(f.draggable){u.draggable({cursor:"move"})}}break;case"fixed":m();break;case"anchoredSingleWindow":var s=a(f.anchoredSelector).position();var p=s.left+f.positionLeft;var n=s.top+f.positionTop;u.css({top:n+"px",left:p+"px"});break}a(window).bind("scroll.DOMWindow",function(){if(f.overlay){k()}if(g.isIE6){i()}if(f.positionType=="centered"){l()}if(f.positionType=="fixed"){m()}});a(window).bind("resize.DOMWindow",function(){if(g.isIE6){i()}if(f.overlay){k()}if(f.positionType=="centered"){l()}});switch(f.windowSource){case"inline":u.append(a(f.windowSourceID).children());u.unload(function(){a(f.windowSourceID).append(u.children())});j();break;case"iframe":u.append('<iframe frameborder="0" hspace="0" wspace="0" src="'+f.windowSourceURL+'" name="DOMWindowIframe'+Math.round(Math.random()*1000)+'" style="width:100%;height:100%;border:none;background-color:#fff;" id="DOMWindowIframe" ></iframe>');a("#DOMWindowIframe").load(j());break;case"ajax":if(f.windowHTTPType=="post"){if(f.windowSourceURL.indexOf("?")!==-1){t=f.windowSourceURL.substr(0,f.windowSourceURL.indexOf("?"));r=h(f.windowSourceURL)}else{t=f.windowSourceURL;r={}}u.load(t,r,function(){j()})}else{if(f.windowSourceURL.indexOf("?")==-1){f.windowSourceURL+="?"}u.load(f.windowSourceURL+"&random="+(new Date().getTime()),function(){j()})}break}}};if(f.eventType){return this.each(function(n){a(this).bind(f.eventType,function(){e(this);return false})})}else{e()}};a.openDOMWindow=function(b){a.fn.openDOMWindow(b)}})(jQuery);(function(d,e,f){d.fn.jScrollPane=function(a){function b(bs,bc){var bj,ba=this,a2,bF,aL,bD,a7,a1,s,aP,bY,bT,br,aX,bi,aY,aW,bP,a6,bz,a3,aN,bx,by,bK,bC,bm,aU,bt,bl,aJ,bp,bQ,a0,bf,bG=true,bb=true,bR=false,aV=false,bA=bs.clone(false,false).empty(),bN=d.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";bQ=bs.css("paddingTop")+" "+bs.css("paddingRight")+" "+bs.css("paddingBottom")+" "+bs.css("paddingLeft");a0=(parseInt(bs.css("paddingLeft"),10)||0)+(parseInt(bs.css("paddingRight"),10)||0);function bv(h){var m,k,l,o,g,i,j=false,n=false;
bj=h;if(a2===f){g=bs.scrollTop();i=bs.scrollLeft();bs.css({overflow:"hidden",padding:0});bF=bs.innerWidth()+a0;aL=bs.innerHeight();bs.width(bF);a2=d('<div class="jspPane" />').css("padding",bQ).append(bs.children());bD=d('<div class="jspContainer" />').css({width:bF+"px",height:aL+"px"}).append(a2).appendTo(bs)}else{bs.css("width","");j=bj.stickToBottom&&bg();n=bj.stickToRight&&bw();o=bs.innerWidth()+a0!=bF||bs.outerHeight()!=aL;if(o){bF=bs.innerWidth()+a0;aL=bs.innerHeight();bD.css({width:bF+"px",height:aL+"px"})}if(!o&&bf==a7&&a2.outerHeight()==a1){bs.width(bF);return}bf=a7;a2.css("width","");bs.width(bF);bD.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}a2.css("overflow","auto");if(h.contentWidth){a7=h.contentWidth}else{a7=a2[0].scrollWidth}a1=a2[0].scrollHeight;a2.css("overflow","");s=a7/bF;aP=a1/aL;bY=aP>1;bT=s>1;if(!(bT||bY)){bs.removeClass("jspScrollable");a2.css({top:0,width:bD.width()-a0});aS();bq();a9();aK();bH()}else{bs.addClass("jspScrollable");m=bj.maintainPosition&&(bi||bP);if(m){k=bV();l=bX()}bS();c();bo();if(m){bd(n?(a7-bF):k,false);be(j?(a1-aL):l,false)}bh();bJ();bB();if(bj.enableKeyboardNavigation){a8()}if(bj.clickOnTrack){aQ()}bu();if(bj.hijackInternalLinks){aT()}}if(bj.autoReinitialise&&!bp){bp=setInterval(function(){bv(bj)},bj.autoReinitialiseDelay)}else{if(!bj.autoReinitialise&&bp){clearInterval(bp)}}g&&bs.scrollTop(0)&&be(g,false);i&&bs.scrollLeft(0)&&bd(i,false);bs.trigger("jsp-initialised",[bT||bY])}function bS(){if(bY){bD.append(d('<div class="jspVerticalBar" />').append(d('<div class="jspCap jspCapTop" />'),d('<div class="jspTrack" />').append(d('<div class="jspDrag" />').append(d('<div class="jspDragTop" />'),d('<div class="jspDragBottom" />'))),d('<div class="jspCap jspCapBottom" />')));a6=bD.find(">.jspVerticalBar");bz=a6.find(">.jspTrack");br=bz.find(">.jspDrag");if(bj.showArrows){by=d('<a class="jspArrow jspArrowUp" />').bind("mousedown.jsp",bU(0,-1)).bind("click.jsp",bW);bK=d('<a class="jspArrow jspArrowDown" />').bind("mousedown.jsp",bU(0,1)).bind("click.jsp",bW);if(bj.arrowScrollOnHover){by.bind("mouseover.jsp",bU(0,-1,by));bK.bind("mouseover.jsp",bU(0,1,bK))}bE(bz,bj.verticalArrowPositions,by,bK)}aN=aL;bD.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){aN-=d(this).outerHeight()});br.hover(function(){br.addClass("jspHover")},function(){br.removeClass("jspHover")}).bind("mousedown.jsp",function(h){d("html").bind("dragstart.jsp selectstart.jsp",bW);br.addClass("jspActive");var g=h.pageY-br.position().top;d("html").bind("mousemove.jsp",function(i){a5(i.pageY-g,false)}).bind("mouseup.jsp mouseleave.jsp",bn);return false});aR()}}function aR(){bz.height(aN+"px");bi=0;a3=bj.verticalGutter+bz.outerWidth();a2.width(bF-a3-a0);try{if(a6.position().left===0){a2.css("margin-left",a3+"px")}}catch(g){}}function c(){if(bT){bD.append(d('<div class="jspHorizontalBar" />').append(d('<div class="jspCap jspCapLeft" />'),d('<div class="jspTrack" />').append(d('<div class="jspDrag" />').append(d('<div class="jspDragLeft" />'),d('<div class="jspDragRight" />'))),d('<div class="jspCap jspCapRight" />')));bC=bD.find(">.jspHorizontalBar");bm=bC.find(">.jspTrack");aY=bm.find(">.jspDrag");if(bj.showArrows){bl=d('<a class="jspArrow jspArrowLeft" />').bind("mousedown.jsp",bU(-1,0)).bind("click.jsp",bW);aJ=d('<a class="jspArrow jspArrowRight" />').bind("mousedown.jsp",bU(1,0)).bind("click.jsp",bW);if(bj.arrowScrollOnHover){bl.bind("mouseover.jsp",bU(-1,0,bl));aJ.bind("mouseover.jsp",bU(1,0,aJ))}bE(bm,bj.horizontalArrowPositions,bl,aJ)}aY.hover(function(){aY.addClass("jspHover")},function(){aY.removeClass("jspHover")}).bind("mousedown.jsp",function(h){d("html").bind("dragstart.jsp selectstart.jsp",bW);aY.addClass("jspActive");var g=h.pageX-aY.position().left;d("html").bind("mousemove.jsp",function(i){a4(i.pageX-g,false)}).bind("mouseup.jsp mouseleave.jsp",bn);return false});aU=bD.innerWidth();bI()}}function bI(){bD.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){aU-=d(this).outerWidth()
});bm.width(aU+"px");bP=0}function bo(){if(bT&&bY){var h=bm.outerHeight(),g=bz.outerWidth();aN-=h;d(bC).find(">.jspCap:visible,>.jspArrow").each(function(){aU+=d(this).outerWidth()});aU-=g;aL-=g;bF-=h;bm.parent().append(d('<div class="jspCorner" />').css("width",h+"px"));aR();bI()}if(bT){a2.width((bD.outerWidth()-a0)+"px")}a1=a2.outerHeight();aP=a1/aL;if(bT){bt=Math.ceil(1/s*aU);if(bt>bj.horizontalDragMaxWidth){bt=bj.horizontalDragMaxWidth}else{if(bt<bj.horizontalDragMinWidth){bt=bj.horizontalDragMinWidth}}aY.width(bt+"px");aW=aU-bt;bL(bP)}if(bY){bx=Math.ceil(1/aP*aN);if(bx>bj.verticalDragMaxHeight){bx=bj.verticalDragMaxHeight}else{if(bx<bj.verticalDragMinHeight){bx=bj.verticalDragMinHeight}}br.height(bx+"px");aX=aN-bx;bM(bi)}}function bE(l,j,m,i){var g="before",k="after",h;if(j=="os"){j=/Mac/.test(navigator.platform)?"after":"split"}if(j==g){k=j}else{if(j==k){g=j;h=m;m=i;i=h}}l[g](m)[k](i)}function bU(i,g,h){return function(){bk(i,g,this,h);this.blur();return false}}function bk(k,l,g,h){g=d(g).addClass("jspActive");var j,m,n=true,i=function(){if(k!==0){ba.scrollByX(k*bj.arrowButtonSpeed)}if(l!==0){ba.scrollByY(l*bj.arrowButtonSpeed)}m=setTimeout(i,n?bj.initialDelay:bj.arrowRepeatFreq);n=false};i();j=h?"mouseout.jsp":"mouseup.jsp";h=h||d("html");h.bind(j,function(){g.removeClass("jspActive");m&&clearTimeout(m);m=null;h.unbind(j)})}function aQ(){aK();if(bY){bz.bind("mousedown.jsp",function(h){if(h.originalTarget===f||h.originalTarget==h.currentTarget){var k=d(this),g=k.offset(),j=h.pageY-g.top-bi,m,n=true,i=function(){var o=k.offset(),r=h.pageY-o.top-bx/2,q=aL*bj.scrollPagePercent,p=aX*q/(a1-aL);if(j<0){if(bi-p>r){ba.scrollByY(-q)}else{a5(r)}}else{if(j>0){if(bi+p<r){ba.scrollByY(q)}else{a5(r)}}else{l();return}}m=setTimeout(i,n?bj.initialDelay:bj.trackClickRepeatFreq);n=false},l=function(){m&&clearTimeout(m);m=null;d(document).unbind("mouseup.jsp",l)};i();d(document).bind("mouseup.jsp",l);return false}})}if(bT){bm.bind("mousedown.jsp",function(h){if(h.originalTarget===f||h.originalTarget==h.currentTarget){var k=d(this),g=k.offset(),j=h.pageX-g.left-bP,m,n=true,i=function(){var o=k.offset(),r=h.pageX-o.left-bt/2,q=bF*bj.scrollPagePercent,p=aW*q/(a7-bF);if(j<0){if(bP-p>r){ba.scrollByX(-q)}else{a4(r)}}else{if(j>0){if(bP+p<r){ba.scrollByX(q)}else{a4(r)}}else{l();return}}m=setTimeout(i,n?bj.initialDelay:bj.trackClickRepeatFreq);n=false},l=function(){m&&clearTimeout(m);m=null;d(document).unbind("mouseup.jsp",l)};i();d(document).bind("mouseup.jsp",l);return false}})}}function aK(){if(bm){bm.unbind("mousedown.jsp")}if(bz){bz.unbind("mousedown.jsp")}}function bn(){d("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp");if(br){br.removeClass("jspActive")}if(aY){aY.removeClass("jspActive")}}function a5(g,h){if(!bY){return}if(g<0){g=0}else{if(g>aX){g=aX}}if(h===f){h=bj.animateScroll}if(h){ba.animate(br,"top",g,bM)}else{br.css("top",g);bM(g)}}function bM(k){if(k===f){k=br.position().top}bD.scrollTop(0);bi=k;var h=bi===0,j=bi==aX,i=k/aX,g=-i*(a1-aL);if(bG!=h||bR!=j){bG=h;bR=j;bs.trigger("jsp-arrow-change",[bG,bR,bb,aV])}aM(h,j);a2.css("top",g);bs.trigger("jsp-scroll-y",[-g,h,j]).trigger("scroll")}function a4(h,g){if(!bT){return}if(h<0){h=0}else{if(h>aW){h=aW}}if(g===f){g=bj.animateScroll}if(g){ba.animate(aY,"left",h,bL)}else{aY.css("left",h);bL(h)}}function bL(k){if(k===f){k=aY.position().left}bD.scrollTop(0);bP=k;var h=bP===0,i=bP==aW,j=k/aW,g=-j*(a7-bF);if(bb!=h||aV!=i){bb=h;aV=i;bs.trigger("jsp-arrow-change",[bG,bR,bb,aV])}aO(h,i);a2.css("left",g);bs.trigger("jsp-scroll-x",[-g,h,i]).trigger("scroll")}function aM(h,g){if(bj.showArrows){by[h?"addClass":"removeClass"]("jspDisabled");bK[g?"addClass":"removeClass"]("jspDisabled")}}function aO(h,g){if(bj.showArrows){bl[h?"addClass":"removeClass"]("jspDisabled");aJ[g?"addClass":"removeClass"]("jspDisabled")}}function be(g,i){var h=g/(a1-aL);a5(h*aX,i)}function bd(i,g){var h=i/(a7-bF);a4(h*aW,g)}function bO(h,m,u){var p,t,r,v=0,i=0,g,n,o,k,l,j;try{p=d(h)}catch(q){return
}t=p.outerHeight();r=p.outerWidth();bD.scrollTop(0);bD.scrollLeft(0);while(!p.is(".jspPane")){v+=p.position().top;i+=p.position().left;p=p.offsetParent();if(/^body|html$/i.test(p[0].nodeName)){return}}g=bX();o=g+aL;if(v<g||m){l=v-bj.verticalGutter}else{if(v+t>o){l=v-aL+t+bj.verticalGutter}}if(l){be(l,u)}n=bV();k=n+bF;if(i<n||m){j=i-bj.horizontalGutter}else{if(i+r>k){j=i-bF+r+bj.horizontalGutter}}if(j){bd(j,u)}}function bV(){return -a2.position().left}function bX(){return -a2.position().top}function bg(){var g=a1-aL;return(g>20)&&(g-bX()<10)}function bw(){var g=a7-bF;return(g>20)&&(g-bV()<10)}function bJ(){bD.unbind(bN).bind(bN,function(i,h,j,l){var k=bP,g=bi;ba.scrollBy(j*bj.mouseWheelSpeed,-l*bj.mouseWheelSpeed,false);return k==bP&&g==bi})}function aS(){bD.unbind(bN)}function bW(){return false}function bh(){a2.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(g){bO(g.target,false)})}function bq(){a2.find(":input,a").unbind("focus.jsp")}function a8(){var g,j,h=[];bT&&h.push(bC[0]);bY&&h.push(a6[0]);a2.focus(function(){bs.focus()});bs.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(k){if(k.target!==this&&!(h.length&&d(k.target).closest(h).length)){return}var l=bP,m=bi;switch(k.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:g=k.keyCode;i();break;case 35:be(a1-aL);g=null;break;case 36:be(0);g=null;break}j=k.keyCode==g&&l!=bP||m!=bi;return !j}).bind("keypress.jsp",function(k){if(k.keyCode==g){i()}return !j});if(bj.hideFocus){bs.css("outline","none");if("hideFocus" in bD[0]){bs.attr("hideFocus",true)}}else{bs.css("outline","");if("hideFocus" in bD[0]){bs.attr("hideFocus",false)}}function i(){var k=bP,l=bi;switch(g){case 40:ba.scrollByY(bj.keyboardSpeed,false);break;case 38:ba.scrollByY(-bj.keyboardSpeed,false);break;case 34:case 32:ba.scrollByY(aL*bj.scrollPagePercent,false);break;case 33:ba.scrollByY(-aL*bj.scrollPagePercent,false);break;case 39:ba.scrollByX(bj.keyboardSpeed,false);break;case 37:ba.scrollByX(-bj.keyboardSpeed,false);break}j=k!=bP||l!=bi;return j}}function a9(){bs.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp keypress.jsp")}function bu(){if(location.hash&&location.hash.length>1){var h,i;try{h=d(location.hash)}catch(g){return}if(h.length&&a2.find(location.hash)){if(bD.scrollTop()===0){i=setInterval(function(){if(bD.scrollTop()>0){bO(location.hash,true);d(document).scrollTop(bD.position().top);clearInterval(i)}},50)}else{bO(location.hash,true);d(document).scrollTop(bD.position().top)}}}}function bH(){d("a.jspHijack").unbind("click.jsp-hijack").removeClass("jspHijack")}function aT(){bH();d("a[href^=#]").addClass("jspHijack").bind("click.jsp-hijack",function(){var g=this.href.split("#"),h;if(g.length>1){h=g[1];if(h.length>0&&a2.find("#"+h).length>0){bO("#"+h,true);return false}}})}function bB(){var k,l,i,j,h,g=false;bD.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",function(n){var m=n.originalEvent.touches[0];k=bV();l=bX();i=m.pageX;j=m.pageY;h=false;g=true}).bind("touchmove.jsp",function(m){if(!g){return}var n=m.originalEvent.touches[0],o=bP,p=bi;ba.scrollTo(k+i-n.pageX,l+j-n.pageY);h=h||Math.abs(i-n.pageX)>5||Math.abs(j-n.pageY)>5;return o==bP&&p==bi}).bind("touchend.jsp",function(m){g=false}).bind("click.jsp-touchclick",function(m){if(h){h=false;return false}})}function aZ(){var g=bX(),h=bV();bs.removeClass("jspScrollable").unbind(".jsp");bs.replaceWith(bA.append(a2.children()));bA.scrollTop(g);bA.scrollLeft(h)}d.extend(ba,{reinitialise:function(g){g=d.extend({},bj,g);bv(g)},scrollToElement:function(h,i,g){bO(h,i,g)},scrollTo:function(h,g,i){bd(h,i);be(g,i)},scrollToX:function(h,g){bd(h,g)},scrollToY:function(g,h){be(g,h)},scrollToPercentX:function(h,g){bd(h*(a7-bF),g)},scrollToPercentY:function(h,g){be(h*(a1-aL),g)},scrollBy:function(i,g,h){ba.scrollByX(i,h);ba.scrollByY(g,h)},scrollByX:function(g,i){g=(g>=0)?Math.max(g,1):Math.min(g,-1);var j=bV()+g,h=j/(a7-bF);a4(h*aW,i)},scrollByY:function(g,i){g=(g>=0)?Math.max(g,1):Math.min(g,-1);
var j=bX()+g,h=j/(a1-aL);a5(h*aX,i)},positionDragX:function(g,h){a4(g,h)},positionDragY:function(h,g){a5(h,g)},animate:function(k,h,g,i){var j={};j[h]=g;k.animate(j,{duration:bj.animateDuration,ease:bj.animateEase,queue:false,step:i})},getContentPositionX:function(){return bV()},getContentPositionY:function(){return bX()},getContentWidth:function(){return a7},getContentHeight:function(){return a1},getPercentScrolledX:function(){return bV()/(a7-bF)},getPercentScrolledY:function(){return bX()/(a1-aL)},getIsScrollableH:function(){return bT},getIsScrollableV:function(){return bY},getContentPane:function(){return a2},scrollToBottom:function(g){a5(aX,g)},hijackInternalLinks:function(){aT()},destroy:function(){aZ()}});bv(bc)}a=d.extend({},d.fn.jScrollPane.defaults,a);d.each(["mouseWheelSpeed","arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){a[this]=a[this]||a.speed});return this.each(function(){var h=d(this),c=h.data("jsp");if(c){c.reinitialise(a)}else{c=new b(h,a);h.data("jsp",c)}})};d.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:f,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);

