var hs={lang:{cssDirection:"ltr",loadingText:"Loading...",loadingTitle:"Click to cancel",focusTitle:"Click to bring to front",fullExpandTitle:"Expand to actual size (f)",creditsText:"Remote Possibilities Inc.",creditsTitle:"Go to the homepage",previousText:"Previous",nextText:"Next",moveText:"Move",closeText:"Close",closeTitle:"Close (esc)",resizeTitle:"Resize",playText:"Play",playTitle:"Play slideshow (spacebar)",pauseText:"Pause",pauseTitle:"Pause slideshow (spacebar)",previousTitle:"Previous (arrow left)",nextTitle:"Next (arrow right)",moveTitle:"Move",fullExpandText:"1:1",number:"Image %1 of %2",restoreTitle:"Click to close image, click and drag to move. Use arrow keys for next and previous."},graphicsDir:"highslide/graphics/",expandCursor:"zoomin.cur",restoreCursor:"zoomout.cur",expandDuration:250,restoreDuration:250,marginLeft:15,marginRight:15,marginTop:15,marginBottom:15,zIndexCounter:1001,loadingOpacity:0.75,allowMultipleInstances:true,numberOfImagesToPreload:5,outlineWhileAnimating:2,outlineStartOffset:3,padToMinWidth:false,fullExpandPosition:"bottom right",fullExpandOpacity:1,showCredits:true,creditsHref:"http://highslide.com/",enableKeyListener:true,openerTagNames:["a","area"],transitions:[],transitionDuration:250,dimmingOpacity:0,dimmingDuration:50,allowWidthReduction:false,allowHeightReduction:true,preserveContent:true,objectLoadTime:"before",cacheAjax:true,anchor:"auto",align:"auto",targetX:null,targetY:null,dragByHeading:true,minWidth:200,minHeight:200,allowSizeReduction:true,outlineType:"drop-shadow",wrapperClassName:"highslide-wrapper",skin:{controls:'<div class="highslide-controls"><ul><li class="highslide-previous"><a href="#" title="{hs.lang.previousTitle}"><span>{hs.lang.previousText}</span></a></li><li class="highslide-play"><a href="#" title="{hs.lang.playTitle}"><span>{hs.lang.playText}</span></a></li><li class="highslide-pause"><a href="#" title="{hs.lang.pauseTitle}"><span>{hs.lang.pauseText}</span></a></li><li class="highslide-next"><a href="#" title="{hs.lang.nextTitle}"><span>{hs.lang.nextText}</span></a></li><li class="highslide-move"><a href="#" title="{hs.lang.moveTitle}"><span>{hs.lang.moveText}</span></a></li><li class="highslide-full-expand"><a href="#" title="{hs.lang.fullExpandTitle}"><span>{hs.lang.fullExpandText}</span></a></li><li class="highslide-close"><a href="#" title="{hs.lang.closeTitle}" ><span>{hs.lang.closeText}</span></a></li></ul></div>',contentWrapper:'<div class="highslide-header"><ul><li class="highslide-previous"><a href="#" title="{hs.lang.previousTitle}" onclick="return hs.previous(this)"><span>{hs.lang.previousText}</span></a></li><li class="highslide-next"><a href="#" title="{hs.lang.nextTitle}" onclick="return hs.next(this)"><span>{hs.lang.nextText}</span></a></li><li class="highslide-move"><a href="#" title="{hs.lang.moveTitle}" onclick="return false"><span>{hs.lang.moveText}</span></a></li><li class="highslide-close"><a href="#" title="{hs.lang.closeTitle}" onclick="return hs.close(this)"><span>{hs.lang.closeText}</span></a></li></ul></div><div class="highslide-body"></div><div class="highslide-footer"><div><span class="highslide-resize" title="{hs.lang.resizeTitle}"><span></span></span></div></div>'},preloadTheseImages:[],continuePreloading:true,expanders:[],overrides:["allowSizeReduction","useBox","anchor","align","targetX","targetY","outlineType","outlineWhileAnimating","captionId","captionText","captionEval","captionOverlay","headingId","headingText","headingEval","headingOverlay","dragByHeading","autoplay","numberPosition","transitions","dimmingOpacity","width","height","contentId","allowWidthReduction","allowHeightReduction","preserveContent","maincontentId","maincontentText","maincontentEval","objectType","cacheAjax","objectWidth","objectHeight","objectLoadTime","swfOptions","wrapperClassName","minWidth","minHeight","maxWidth","maxHeight","slideshowGroup","easing","easingClose","fadeInOut","src"],overlays:[],idCounter:0,oPos:{x:["leftpanel","left","center","right","rightpanel"],y:["above","top","middle","bottom","below"]},mouse:{},headingOverlay:{},captionOverlay:{},swfOptions:{flashvars:{},params:{},attributes:{}},timers:[],slideshows:[],pendingOutlines:{},sleeping:[],preloadTheseAjax:[],cacheBindings:[],cachedGets:{},clones:{},uaVersion:parseFloat((navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1]),ie:(document.all&&!window.opera),safari:/Safari/.test(navigator.userAgent),geckoMac:/Macintosh.+rv:1\.[0-8].+Gecko/.test(navigator.userAgent),$:function(A){if(A){return document.getElementById(A)}},push:function(A,B){A[A.length]=B},createElement:function(A,F,E,D,C){var B=document.createElement(A);if(F){hs.extend(B,F)}if(C){hs.setStyles(B,{padding:0,border:"none",margin:0})}if(E){hs.setStyles(B,E)}if(D){D.appendChild(B)}return B},extend:function(B,C){for(var A in C){B[A]=C[A]}return B},setStyles:function(B,C){for(var A in C){if(hs.ie&&A=="opacity"){if(C[A]>0.99){B.style.removeAttribute("filter")}else{B.style.filter="alpha(opacity="+(C[A]*100)+")"}}else{B.style[A]=C[A]}}},animate:function(E,A,D){var C,F,I;if(typeof D!="object"||D===null){var H=arguments;D={duration:H[2],easing:H[3],complete:H[4]}}if(typeof D.duration!="number"){D.duration=250}D.easing=Math[D.easing]||Math.easeInQuad;D.curAnim=hs.extend({},A);for(var B in A){var G=new hs.fx(E,D,B);C=parseFloat(hs.css(E,B))||0;F=parseFloat(A[B]);I=B!="opacity"?"px":"";G.custom(C,F,I)}},css:function(A,C){if(document.defaultView){return document.defaultView.getComputedStyle(A,null).getPropertyValue(C)}else{if(C=="opacity"){C="filter"}var B=A.currentStyle[C.replace(/\-(\w)/g,function(E,D){return D.toUpperCase()})];if(C=="filter"){B=B.replace(/alpha\(opacity=([0-9]+)\)/,function(E,D){return D/100})}return B===""?1:B}},getPageSize:function(){var C=document,G=window,I=C.compatMode&&C.compatMode!="BackCompat"?C.documentElement:C.body;var E=C.body;var J=(G.innerWidth&&G.scrollMaxX)?G.innerWidth+G.scrollMaxX:Math.max(E.scrollWidth,E.offsetWidth),D=(G.innerHeight&&window.scrollMaxY)?G.innerHeight+G.scrollMaxY:Math.max(E.scrollHeight,E.offsetHeight),F=hs.ie?I.scrollWidth:(C.documentElement.clientWidth||self.innerWidth),B=hs.ie?Math.max(I.scrollHeight,I.clientHeight):(C.documentElement.clientHeight||self.innerHeight);var A=hs.ie?I.clientWidth:(C.documentElement.clientWidth||self.innerWidth),H=hs.ie?I.clientHeight:self.innerHeight;return{pageWidth:Math.max(F,J),pageHeight:Math.max(B,D),width:A,height:H,scrollLeft:hs.ie?I.scrollLeft:pageXOffset,scrollTop:hs.ie?I.scrollTop:pageYOffset}},getPosition:function(C){if(/area/i.test(C.tagName)){var E=document.getElementsByTagName("img");for(var B=0;B<E.length;B++){var A=E[B].useMap;if(A&&A.replace(/^.*?#/,"")==C.parentNode.name){C=E[B];break}}}var D={x:C.offsetLeft,y:C.offsetTop};while(C.offsetParent){C=C.offsetParent;D.x+=C.offsetLeft;D.y+=C.offsetTop;if(C!=document.body&&C!=document.documentElement){D.x-=C.scrollLeft;D.y-=C.scrollTop}}return D},expand:function(A,F,D,C){if(!A){A=hs.createElement("a",null,{display:"none"},hs.container)}if(typeof A.getParams=="function"){return F}if(C=="html"){for(var B=0;B<hs.sleeping.length;B++){if(hs.sleeping[B]&&hs.sleeping[B].a==A){hs.sleeping[B].awake();hs.sleeping[B]=null;return false}}hs.hasHtmlExpanders=true}try{new hs.Expander(A,F,D,C);return false}catch(E){return true}},htmlExpand:function(A,C,B){return hs.expand(A,C,B,"html")},getSelfRendered:function(){return hs.createElement("div",{className:"highslide-html-content",innerHTML:hs.replaceLang(hs.skin.contentWrapper)})},getElementByClass:function(E,C,D){var B=E.getElementsByTagName(C);for(var A=0;A<B.length;A++){if((new RegExp(D)).test(B[A].className)){return B[A]}}return null},replaceLang:function(C){C=C.replace(/\s/g," ");var B=/{hs\.lang\.([^}]+)\}/g,D=C.match(B),E;if(D){for(var A=0;A<D.length;A++){E=D[A].replace(B,"$1");if(typeof hs.lang[E]!="undefined"){C=C.replace(D[A],hs.lang[E])}}}return C},setClickEvents:function(){var B=document.getElementsByTagName("a");for(var A=0;A<B.length;A++){var C=hs.isUnobtrusiveAnchor(B[A]);if(C&&!B[A].hsHasSetClick){(function(){var D=C;if(hs.fireEvent(hs,"onSetClickEvent",{element:B[A],type:D})){B[A].onclick=(C=="image")?function(){return hs.expand(this)}:function(){return hs.htmlExpand(this,{objectType:D})}}})();B[A].hsHasSetClick=true}}if(!hs.pageLoaded){setTimeout(hs.setClickEvents,50)}else{if(A){hs.updateAnchors()}}},isUnobtrusiveAnchor:function(A){if(A.rel=="highslide"){return"image"}else{if(A.rel=="highslide-ajax"){return"ajax"}else{if(A.rel=="highslide-iframe"){return"iframe"}else{if(A.rel=="highslide-swf"){return"swf"}}}}},getCacheBinding:function(A){for(var B=0;B<hs.cacheBindings.length;B++){if(hs.cacheBindings[B][0]==A){var C=hs.cacheBindings[B][1];hs.cacheBindings[B][1]=C.cloneNode(1);return C}}return null},preloadAjax:function(D){var A=hs.getAnchors();for(var C=0;C<A.htmls.length;C++){var B=A.htmls[C];if(hs.getParam(B,"objectType")=="ajax"&&hs.getParam(B,"cacheAjax")){hs.push(hs.preloadTheseAjax,B)}}hs.preloadAjaxElement(0)},preloadAjaxElement:function(C){if(!hs.preloadTheseAjax[C]){return }var A=hs.preloadTheseAjax[C];var B=hs.getNode(hs.getParam(A,"contentId"));if(!B){B=hs.getSelfRendered()}var D=new hs.Ajax(A,B,1);D.onError=function(){};D.onLoad=function(){hs.push(hs.cacheBindings,[A,B]);hs.preloadAjaxElement(C+1)};D.run()},focusTopmost:function(){var C=0,B=-1,A=hs.expanders,E,F;for(var D=0;D<A.length;D++){E=A[D];if(E){F=E.wrapper.style.zIndex;if(F&&F>C){C=F;B=D}}}if(B==-1){hs.focusKey=-1}else{A[B].focus()}},getParam:function(A,C){A.getParams=A.onclick;var B=A.getParams?A.getParams():null;A.getParams=null;return(B&&typeof B[C]!="undefined")?B[C]:(typeof hs[C]!="undefined"?hs[C]:null)},getSrc:function(A){var B=hs.getParam(A,"src");if(B){return B}return A.href},getNode:function(D){var B=hs.$(D),C=hs.clones[D],A={};if(!B&&!C){return null}if(!C){C=B.cloneNode(true);C.id="";hs.clones[D]=C;return B}else{return C.cloneNode(true)}},discardElement:function(A){hs.garbageBin.appendChild(A);hs.garbageBin.innerHTML=""},dim:function(A){if(!hs.dimmer){hs.dimmer=hs.createElement("div",{className:"highslide-dimming",owner:"",onclick:function(){if(hs.fireEvent(hs,"onDimmerClick")){hs.close()}}},{position:"absolute",visibility:"visible",left:0,opacity:0},hs.container,true);hs.addEventListener(window,"resize",hs.setDimmerSize)}hs.dimmer.style.display="";hs.setDimmerSize();hs.dimmer.owner+="|"+A.key;if(hs.geckoMac&&hs.dimmingGeckoFix){hs.setStyles(hs.dimmer,{background:"url("+hs.graphicsDir+"geckodimmer.png)",opacity:1})}else{hs.animate(hs.dimmer,{opacity:A.dimmingOpacity},hs.dimmingDuration)}},undim:function(A){if(!hs.dimmer){return }if(typeof A!="undefined"){hs.dimmer.owner=hs.dimmer.owner.replace("|"+A,"")}if((typeof A!="undefined"&&hs.dimmer.owner!="")||(hs.upcoming&&hs.getParam(hs.upcoming,"dimmingOpacity"))){return }if(hs.geckoMac&&hs.dimmingGeckoFix){hs.setStyles(hs.dimmer,{background:"none",width:0,height:0})}else{hs.animate(hs.dimmer,{opacity:0},hs.dimmingDuration,null,function(){hs.setStyles(hs.dimmer,{display:"none",width:0,height:0})})}},setDimmerSize:function(B){if(!hs.dimmer){return }var A=(hs.ie&&B&&B.wrapper)?parseInt(B.wrapper.style.top)+parseInt(B.wrapper.style.height)+(B.outline?B.outline.offset:0):0;hs.setStyles(hs.dimmer,{width:hs.page.pageWidth+"px",height:Math.max(hs.page.pageHeight,A)+"px"})},transit:function(A,D){var B=D=D||hs.getExpander();if(hs.upcoming){return false}else{hs.last=B}try{hs.upcoming=A;A.onclick()}catch(C){hs.last=hs.upcoming=null}try{if(!A||D.transitions[1]!="crossfade"){D.close()}}catch(C){}return false},previousOrNext:function(A,C){var B=hs.getExpander(A);if(B){adj=B.getAdjacentAnchor(C);return hs.transit(adj,B)}else{return false}},previous:function(A){return hs.previousOrNext(A,-1)},next:function(A){return hs.previousOrNext(A,1)},keyHandler:function(A){if(!A){A=window.event}if(!A.target){A.target=A.srcElement}if(typeof A.target.form!="undefined"){return true}if(!hs.fireEvent(hs,"onKeyDown",A)){return true}var B=hs.getExpander();var C=null;switch(A.keyCode){case 70:if(B){B.doFullExpand()}return true;case 32:C=2;break;case 34:case 39:case 40:C=1;break;case 8:case 33:case 37:case 38:C=-1;break;case 27:case 13:C=0}if(C!==null){if(C!=2){hs.removeEventListener(document,window.opera?"keypress":"keydown",hs.keyHandler)}if(!hs.enableKeyListener){return true}if(A.preventDefault){A.preventDefault()}else{A.returnValue=false}if(B){if(C==0){B.close()}else{if(C==2){if(B.slideshow){B.slideshow.hitSpace()}}else{if(B.slideshow){B.slideshow.pause()}hs.previousOrNext(B.key,C)}}return false}}return true},registerOverlay:function(A){hs.push(hs.overlays,hs.extend(A,{hsId:"hsId"+hs.idCounter++}))},addSlideshow:function(B){var D=B.slideshowGroup;if(typeof D=="object"){for(var C=0;C<D.length;C++){var E={};for(var A in B){E[A]=B[A]}E.slideshowGroup=D[C];hs.push(hs.slideshows,E)}}else{hs.push(hs.slideshows,B)}},getWrapperKey:function(C,B){var E,D=/^highslide-wrapper-([0-9]+)$/;E=C;while(E.parentNode){if(E.hsKey!==undefined){return E.hsKey}if(E.id&&D.test(E.id)){return E.id.replace(D,"$1")}E=E.parentNode}if(!B){E=C;while(E.parentNode){if(E.tagName&&hs.isHsAnchor(E)){for(var A=0;A<hs.expanders.length;A++){var F=hs.expanders[A];if(F&&F.a==E){return A}}}E=E.parentNode}}return null},getExpander:function(B,A){if(typeof B=="undefined"){return hs.expanders[hs.focusKey]||null}if(typeof B=="number"){return hs.expanders[B]||null}if(typeof B=="string"){B=hs.$(B)}return hs.expanders[hs.getWrapperKey(B,A)]||null},isHsAnchor:function(A){return(A.onclick&&A.onclick.toString().replace(/\s/g," ").match(/hs.(htmlE|e)xpand/))},reOrder:function(){for(var A=0;A<hs.expanders.length;A++){if(hs.expanders[A]&&hs.expanders[A].isExpanded){hs.focusTopmost()}}},fireEvent:function(C,A,B){return C&&C[A]?(C[A](C,B)!==false):true},mouseClickHandler:function(D){if(!D){D=window.event}if(D.button>1){return true}if(!D.target){D.target=D.srcElement}var B=D.target;while(B.parentNode&&!(/highslide-(image|move|html|resize)/.test(B.className))){B=B.parentNode}var E=hs.getExpander(B);if(E&&(E.isClosing||!E.isExpanded)){return true}if(E&&D.type=="mousedown"){if(D.target.form){return true}var A=B.className.match(/highslide-(image|move|resize)/);if(A){hs.dragArgs={exp:E,type:A[1],left:E.x.pos,width:E.x.size,top:E.y.pos,height:E.y.size,clickX:D.clientX,clickY:D.clientY};hs.addEventListener(document,"mousemove",hs.dragHandler);if(D.preventDefault){D.preventDefault()}if(/highslide-(image|html)-blur/.test(E.content.className)){E.focus();hs.hasFocused=true}return false}else{if(/highslide-html/.test(B.className)&&hs.focusKey!=E.key){E.focus();E.doShowHide("hidden")}}}else{if(D.type=="mouseup"){hs.removeEventListener(document,"mousemove",hs.dragHandler);if(hs.dragArgs){if(hs.styleRestoreCursor&&hs.dragArgs.type=="image"){hs.dragArgs.exp.content.style.cursor=hs.styleRestoreCursor}var C=hs.dragArgs.hasDragged;if(!C&&!hs.hasFocused&&!/(move|resize)/.test(hs.dragArgs.type)){if(hs.fireEvent(E,"onImageClick")){E.close()}}else{if(C||(!C&&hs.hasHtmlExpanders)){hs.dragArgs.exp.doShowHide("hidden")}}if(hs.dragArgs.exp.releaseMask){hs.dragArgs.exp.releaseMask.style.display="none"}if(C){hs.fireEvent(hs.dragArgs.exp,"onDrop",hs.dragArgs)}if(C){hs.setDimmerSize(E)}hs.hasFocused=false;hs.dragArgs=null}else{if(/highslide-image-blur/.test(B.className)){B.style.cursor=hs.styleRestoreCursor}}}}return false},dragHandler:function(B){if(!hs.dragArgs){return true}if(!B){B=window.event}var A=hs.dragArgs,C=A.exp;if(C.iframe){if(!C.releaseMask){C.releaseMask=hs.createElement("div",null,{position:"absolute",width:C.x.size+"px",height:C.y.size+"px",left:C.x.cb+"px",top:C.y.cb+"px",zIndex:4,background:(hs.ie?"white":"none"),opacity:0.01},C.wrapper,true)}if(C.releaseMask.style.display=="none"){C.releaseMask.style.display=""}}A.dX=B.clientX-A.clickX;A.dY=B.clientY-A.clickY;var D=Math.sqrt(Math.pow(A.dX,2)+Math.pow(A.dY,2));if(!A.hasDragged){A.hasDragged=(A.type!="image"&&D>0)||(D>(hs.dragSensitivity||5))}if(A.hasDragged&&B.clientX>5&&B.clientY>5){if(!hs.fireEvent(C,"onDrag",A)){return false}if(A.type=="resize"){C.resize(A)}else{C.moveTo(A.left+A.dX,A.top+A.dY);if(A.type=="image"){C.content.style.cursor="move"}}}return false},wrapperMouseHandler:function(C){try{if(!C){C=window.event}var B=/mouseover/i.test(C.type);if(!C.target){C.target=C.srcElement}if(hs.ie){C.relatedTarget=B?C.fromElement:C.toElement}var D=hs.getExpander(C.target);if(!D.isExpanded){return }if(!D||!C.relatedTarget||hs.getExpander(C.relatedTarget,true)==D||hs.dragArgs){return }hs.fireEvent(D,B?"onMouseOver":"onMouseOut",C);for(var A=0;A<D.overlays.length;A++){(function(){var E=hs.$("hsId"+D.overlays[A]);if(E&&E.hideOnMouseOut){if(B){hs.setStyles(E,{visibility:"visible"})}hs.animate(E,{opacity:B?E.opacity:0},E.dur,null,B?null:function(){hs.setStyles(E,{visibility:"hidden"})})}})()}}catch(C){}},addEventListener:function(A,C,B){try{A.addEventListener(C,B,false)}catch(D){try{A.detachEvent("on"+C,B);A.attachEvent("on"+C,B)}catch(D){A["on"+C]=B}}},removeEventListener:function(A,C,B){try{A.removeEventListener(C,B,false)}catch(D){try{A.detachEvent("on"+C,B)}catch(D){A["on"+C]=null}}},preloadFullImage:function(B){if(hs.continuePreloading&&hs.preloadTheseImages[B]&&hs.preloadTheseImages[B]!="undefined"){var A=document.createElement("img");A.onload=function(){A=null;hs.preloadFullImage(B+1)};A.src=hs.preloadTheseImages[B]}},preloadImages:function(C){if(C&&typeof C!="object"){hs.numberOfImagesToPreload=C}var A=hs.getAnchors();for(var B=0;B<A.images.length&&B<hs.numberOfImagesToPreload;B++){hs.push(hs.preloadTheseImages,hs.getSrc(A.images[B]))}if(hs.outlineType){new hs.Outline(hs.outlineType,function(){hs.preloadFullImage(0)})}else{hs.preloadFullImage(0)}if(hs.restoreCursor){var D=hs.createElement("img",{src:hs.graphicsDir+hs.restoreCursor})}},init:function(){if(!hs.container){hs.page=hs.getPageSize();hs.ieLt7=hs.ie&&hs.uaVersion<7;hs.ie6SSL=hs.ieLt7&&location.protocol=="https:";for(var A in hs.langDefaults){if(typeof hs[A]!="undefined"){hs.lang[A]=hs[A]}else{if(typeof hs.lang[A]=="undefined"&&typeof hs.langDefaults[A]!="undefined"){hs.lang[A]=hs.langDefaults[A]}}}hs.container=hs.createElement("div",{className:"highslide-container"},{position:"absolute",left:0,top:0,width:"100%",zIndex:hs.zIndexCounter,direction:"ltr"},document.body,true);hs.loading=hs.createElement("a",{className:"highslide-loading",title:hs.lang.loadingTitle,innerHTML:hs.lang.loadingText,href:"javascript:;"},{position:"absolute",top:"-9999px",opacity:hs.loadingOpacity,zIndex:1},hs.container);hs.garbageBin=hs.createElement("div",null,{display:"none"},hs.container);hs.viewport=hs.createElement("div",{className:"highslide-viewport"},null,hs.container,1);hs.clearing=hs.createElement("div",null,{clear:"both",paddingTop:"1px"},null,true);Math.linearTween=function(C,B,E,D){return E*C/D+B};Math.easeInQuad=function(C,B,E,D){return E*(C/=D)*C+B};Math.easeOutQuad=function(C,B,E,D){return -E*(C/=D)*(C-2)+B};hs.hideSelects=hs.ieLt7;hs.hideIframes=((window.opera&&hs.uaVersion<9)||navigator.vendor=="KDE"||(hs.ie&&hs.uaVersion<5.5));hs.fireEvent(this,"onActivate")}},domReady:function(){hs.isDomReady=true;if(hs.onDomReady){hs.onDomReady()}},updateAnchors:function(){var A,D,I=[],G=[],H=[],B={},J;for(var E=0;E<hs.openerTagNames.length;E++){D=document.getElementsByTagName(hs.openerTagNames[E]);for(var C=0;C<D.length;C++){A=D[C];J=hs.isHsAnchor(A);if(J){hs.push(I,A);if(J[0]=="hs.expand"){hs.push(G,A)}else{if(J[0]=="hs.htmlExpand"){hs.push(H,A)}}var F=hs.getParam(A,"slideshowGroup")||"none";if(!B[F]){B[F]=[]}hs.push(B[F],A)}}}hs.anchors={all:I,groups:B,images:G,htmls:H};return hs.anchors},getAnchors:function(){return hs.anchors||hs.updateAnchors()},close:function(A){var B=hs.getExpander(A);if(B){B.close()}return false}};hs.fx=function(B,A,C){this.options=A;this.elem=B;this.prop=C;if(!A.orig){A.orig={}}};hs.fx.prototype={update:function(){(hs.fx.step[this.prop]||hs.fx.step._default)(this);if(this.options.step){this.options.step.call(this.elem,this.now,this)}},custom:function(E,D,C){this.startTime=(new Date()).getTime();this.start=E;this.end=D;this.unit=C;this.now=this.start;this.pos=this.state=0;var A=this;function B(F){return A.step(F)}B.elem=this.elem;if(B()&&hs.timers.push(B)==1){hs.timerId=setInterval(function(){var G=hs.timers;for(var F=0;F<G.length;F++){if(!G[F]()){G.splice(F--,1)}}if(!G.length){clearInterval(hs.timerId)}},13)}},step:function(D){var C=(new Date()).getTime();if(D||C>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var A=true;for(var B in this.options.curAnim){if(this.options.curAnim[B]!==true){A=false}}if(A){if(this.options.complete){this.options.complete.call(this.elem)}}return false}else{var E=C-this.startTime;this.state=E/this.options.duration;this.pos=this.options.easing(E,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};hs.extend(hs.fx,{step:{opacity:function(A){hs.setStyles(A.elem,{opacity:A.now})},_default:function(A){if(A.elem.style&&A.elem.style[A.prop]!=null){A.elem.style[A.prop]=A.now+A.unit}else{A.elem[A.prop]=A.now}}}});hs.Outline=function(G,E){this.onLoad=E;this.outlineType=G;var A=hs.uaVersion,F;this.hasAlphaImageLoader=hs.ie&&A>=5.5&&A<7;if(!G){if(E){E()}return }hs.init();this.table=hs.createElement("table",{cellSpacing:0},{visibility:"hidden",position:"absolute",borderCollapse:"collapse",width:0},hs.container,true);var B=hs.createElement("tbody",null,null,this.table,1);this.td=[];for(var C=0;C<=8;C++){if(C%3==0){F=hs.createElement("tr",null,{height:"auto"},B,true)}this.td[C]=hs.createElement("td",null,null,F,true);var D=C!=4?{lineHeight:0,fontSize:0}:{position:"relative"};hs.setStyles(this.td[C],D)}this.td[4].className=G+" highslide-outline";this.preloadGraphic()};hs.Outline.prototype={preloadGraphic:function(){var B=hs.graphicsDir+(hs.outlinesDir||"outlines/")+this.outlineType+".png";var A=hs.safari?hs.container:null;this.graphic=hs.createElement("img",null,{position:"absolute",top:"-9999px"},A,true);var C=this;this.graphic.onload=function(){C.onGraphicLoad()};this.graphic.src=B},onGraphicLoad:function(){var D=this.offset=this.graphic.width/4,F=[[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],C={height:(2*D)+"px",width:(2*D)+"px"};for(var B=0;B<=8;B++){if(F[B]){if(this.hasAlphaImageLoader){var A=(B==1||B==7)?"100%":this.graphic.width+"px";var E=hs.createElement("div",null,{width:"100%",height:"100%",position:"relative",overflow:"hidden"},this.td[B],true);hs.createElement("div",null,{filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale, src='"+this.graphic.src+"')",position:"absolute",width:A,height:this.graphic.height+"px",left:(F[B][0]*D)+"px",top:(F[B][1]*D)+"px"},E,true)}else{hs.setStyles(this.td[B],{background:"url("+this.graphic.src+") "+(F[B][0]*D)+"px "+(F[B][1]*D)+"px"})}if(window.opera&&(B==3||B==5)){hs.createElement("div",null,C,this.td[B],true)}hs.setStyles(this.td[B],C)}}this.graphic=null;if(hs.pendingOutlines[this.outlineType]){hs.pendingOutlines[this.outlineType].destroy()}hs.pendingOutlines[this.outlineType]=this;if(this.onLoad){this.onLoad()}},setPosition:function(G,E,C,B,F){var D=this.exp,A=D.wrapper.style,E=E||0,G=G||{x:D.x.pos+E,y:D.y.pos+E,w:D.x.get("wsize")-2*E,h:D.y.get("wsize")-2*E};if(C){this.table.style.visibility=(G.h>=4*this.offset)?"visible":"hidden"}hs.setStyles(this.table,{left:(G.x-this.offset)+"px",top:(G.y-this.offset)+"px",width:(G.w+2*this.offset)+"px"});G.w-=2*this.offset;G.h-=2*this.offset;hs.setStyles(this.td[4],{width:G.w>=0?G.w+"px":0,height:G.h>=0?G.h+"px":0});if(this.hasAlphaImageLoader){this.td[3].style.height=this.td[5].style.height=this.td[4].style.height}},destroy:function(A){if(A){this.table.style.visibility="hidden"}else{hs.discardElement(this.table)}}};hs.Dimension=function(B,A){this.exp=B;this.dim=A;this.ucwh=A=="x"?"Width":"Height";this.wh=this.ucwh.toLowerCase();this.uclt=A=="x"?"Left":"Top";this.lt=this.uclt.toLowerCase();this.ucrb=A=="x"?"Right":"Bottom";this.rb=this.ucrb.toLowerCase();this.p1=this.p2=0};hs.Dimension.prototype={get:function(A){switch(A){case"loadingPos":return this.tpos+this.tb+(this.t-hs.loading["offset"+this.ucwh])/2;case"loadingPosXfade":return this.pos+this.cb+this.p1+(this.size-hs.loading["offset"+this.ucwh])/2;case"wsize":return this.size+2*this.cb+this.p1+this.p2;case"fitsize":return this.clientSize-this.marginMin-this.marginMax;case"opos":return this.pos-(this.exp.outline?this.exp.outline.offset:0);case"osize":return this.get("wsize")+(this.exp.outline?2*this.exp.outline.offset:0);case"imgPad":return this.imgSize?Math.round((this.size-this.imgSize)/2):0}},calcBorders:function(){this.cb=(this.exp.content["offset"+this.ucwh]-this.t)/2;this.marginMax=hs["margin"+this.ucrb]+2*this.cb},calcThumb:function(){this.t=this.exp.el[this.wh]?parseInt(this.exp.el[this.wh]):this.exp.el["offset"+this.ucwh];this.tpos=this.exp.tpos[this.dim];this.tb=(this.exp.el["offset"+this.ucwh]-this.t)/2;if(this.tpos==0){this.tpos=(hs.page[this.wh]/2)+hs.page["scroll"+this.uclt]}},calcExpanded:function(){var A=this.exp;this.justify="auto";if(A.align=="center"){this.justify="center"}else{if(new RegExp(this.lt).test(A.anchor)){this.justify=null}else{if(new RegExp(this.rb).test(A.anchor)){this.justify="max"}}}this.pos=this.tpos-this.cb+this.tb;this.size=Math.min(this.full,A["max"+this.ucwh]||this.full);this.minSize=A.allowSizeReduction?Math.min(A["min"+this.ucwh],this.full):this.full;if(A.isImage&&A.useBox){this.size=A[this.wh];this.imgSize=this.full}if(this.dim=="x"&&hs.padToMinWidth){this.minSize=A.minWidth}this.target=A["target"+this.dim.toUpperCase()];this.marginMin=hs["margin"+this.uclt];this.scroll=hs.page["scroll"+this.uclt];this.clientSize=hs.page[this.wh]},setSize:function(A){var C=this.exp;if(C.isImage&&(C.useBox||hs.padToMinWidth)){this.imgSize=A;this.size=Math.max(this.size,this.imgSize);C.content.style[this.lt]=this.get("imgPad")+"px"}else{this.size=A}C.content.style[this.wh]=A+"px";C.wrapper.style[this.wh]=this.get("wsize")+"px";if(C.outline){C.outline.setPosition()}if(C.releaseMask){C.releaseMask.style[this.wh]=A+"px"}if(C.isHtml){var B=C.scrollerDiv;if(this.sizeDiff===undefined){this.sizeDiff=C.innerContent["offset"+this.ucwh]-B["offset"+this.ucwh]}B.style[this.wh]=(this.size-this.sizeDiff)+"px";if(this.dim=="x"){C.mediumContent.style.width="auto"}if(C.body){C.body.style[this.wh]="auto"}}if(this.dim=="x"&&C.overlayBox){C.sizeOverlayBox(true)}if(this.dim=="x"&&C.slideshow&&C.isImage){if(A==this.full){C.slideshow.disable("full-expand")}else{C.slideshow.enable("full-expand")}}},setPos:function(A){this.pos=A;this.exp.wrapper.style[this.lt]=A+"px";if(this.exp.outline){this.exp.outline.setPosition()}}};hs.Expander=function(I,E,A,J){if(document.readyState&&hs.ie&&!hs.isDomReady){hs.onDomReady=function(){new hs.Expander(I,E,A,J)};return }this.a=I;this.custom=A;this.contentType=J||"image";this.isHtml=(J=="html");this.isImage=!this.isHtml;hs.continuePreloading=false;this.overlays=[];this.last=hs.last;hs.last=null;hs.init();var K=this.key=hs.expanders.length;for(var F=0;F<hs.overrides.length;F++){var B=hs.overrides[F];this[B]=E&&typeof E[B]!="undefined"?E[B]:hs[B]}if(!this.src){this.src=I.href}var C=(E&&E.thumbnailId)?hs.$(E.thumbnailId):I;C=this.thumb=C.getElementsByTagName("img")[0]||C;this.thumbsUserSetId=C.id||I.id;if(!hs.fireEvent(this,"onInit")){return true}for(var F=0;F<hs.expanders.length;F++){if(hs.expanders[F]&&hs.expanders[F].a==I&&!(this.last&&this.transitions[1]=="crossfade")){hs.expanders[F].focus();return false}}for(var F=0;F<hs.expanders.length;F++){if(hs.expanders[F]&&hs.expanders[F].thumb!=C&&!hs.expanders[F].onLoadStarted){hs.expanders[F].cancelLoading()}}hs.expanders[this.key]=this;if(!hs.allowMultipleInstances&&!hs.upcoming){if(hs.expanders[K-1]){hs.expanders[K-1].close()}if(typeof hs.focusKey!="undefined"&&hs.expanders[hs.focusKey]){hs.expanders[hs.focusKey].close()}}this.el=C;this.tpos=hs.getPosition(C);hs.page=hs.getPageSize();var H=this.x=new hs.Dimension(this,"x");H.calcThumb();var G=this.y=new hs.Dimension(this,"y");G.calcThumb();if(/area/i.test(C.tagName)){this.getImageMapAreaCorrection(C)}this.wrapper=hs.createElement("div",{id:"highslide-wrapper-"+this.key,className:this.wrapperClassName},{visibility:"hidden",position:"absolute",zIndex:hs.zIndexCounter++},null,true);this.wrapper.onmouseover=this.wrapper.onmouseout=hs.wrapperMouseHandler;if(this.contentType=="image"&&this.outlineWhileAnimating==2){this.outlineWhileAnimating=0}if(!this.outlineType||(this.last&&this.isImage&&this.transitions[1]=="crossfade")){this[this.contentType+"Create"]()}else{if(hs.pendingOutlines[this.outlineType]){this.connectOutline();this[this.contentType+"Create"]()}else{this.showLoading();var D=this;new hs.Outline(this.outlineType,function(){D.connectOutline();D[D.contentType+"Create"]()})}}return true};hs.Expander.prototype={error:function(A){window.location.href=this.src},connectOutline:function(){var A=this.outline=hs.pendingOutlines[this.outlineType];A.exp=this;A.table.style.zIndex=this.wrapper.style.zIndex;hs.pendingOutlines[this.outlineType]=null},showLoading:function(){if(this.onLoadStarted||this.loading){return }this.loading=hs.loading;var C=this;this.loading.onclick=function(){C.cancelLoading()};if(!hs.fireEvent(this,"onShowLoading")){return }var C=this,A=this.x.get("loadingPos")+"px",B=this.y.get("loadingPos")+"px";if(!D&&this.last&&this.transitions[1]=="crossfade"){var D=this.last}if(D){A=D.x.get("loadingPosXfade")+"px";B=D.y.get("loadingPosXfade")+"px";this.loading.style.zIndex=hs.zIndexCounter++}setTimeout(function(){if(C.loading){hs.setStyles(C.loading,{left:A,top:B,zIndex:hs.zIndexCounter++})}},100)},imageCreate:function(){var B=this;var A=document.createElement("img");this.content=A;A.onload=function(){if(hs.expanders[B.key]){B.contentLoaded()}};if(hs.blockRightClick){A.oncontextmenu=function(){return false}}A.className="highslide-image";hs.setStyles(A,{visibility:"hidden",display:"block",position:"absolute",maxWidth:"9999px",zIndex:3});A.title=hs.lang.restoreTitle;if(hs.safari){hs.container.appendChild(A)}if(hs.ie&&hs.flushImgSize){A.src=null}A.src=this.src;this.showLoading()},htmlCreate:function(){if(!hs.fireEvent(this,"onBeforeGetContent")){return }this.content=hs.getCacheBinding(this.a);if(!this.content){this.content=hs.getNode(this.contentId)}if(!this.content){this.content=hs.getSelfRendered()}this.getInline(["maincontent"]);if(this.maincontent){var A=hs.getElementByClass(this.content,"div","highslide-body");if(A){A.appendChild(this.maincontent)}this.maincontent.style.display="block"}hs.fireEvent(this,"onAfterGetContent");this.innerContent=this.content;if(/(swf|iframe)/.test(this.objectType)){this.setObjContainerSize(this.innerContent)}hs.container.appendChild(this.wrapper);hs.setStyles(this.wrapper,{position:"static",padding:"0 "+hs.marginRight+"px 0 "+hs.marginLeft+"px"});this.content=hs.createElement("div",{className:"highslide-html"},{position:"relative",zIndex:3,overflow:"hidden"},this.wrapper);this.mediumContent=hs.createElement("div",null,null,this.content,1);this.mediumContent.appendChild(this.innerContent);hs.setStyles(this.innerContent,{position:"relative",display:"block",direction:hs.lang.cssDirection||""});if(this.width){this.innerContent.style.width=this.width+"px"}if(this.height){this.innerContent.style.height=this.height+"px"}if(this.innerContent.offsetWidth<this.minWidth){this.innerContent.style.width=this.minWidth+"px"}if(this.objectType=="ajax"&&!hs.getCacheBinding(this.a)){this.showLoading();var B=new hs.Ajax(this.a,this.innerContent);var C=this;B.onLoad=function(){if(hs.expanders[C.key]){C.contentLoaded()}};B.onError=function(){location.href=C.src};B.run()}else{if(this.objectType=="iframe"&&this.objectLoadTime=="before"){this.writeExtendedContent()}else{this.contentLoaded()}}},contentLoaded:function(){try{if(!this.content){return }this.content.onload=null;if(this.onLoadStarted){return }else{this.onLoadStarted=true}var H=this.x,F=this.y;if(this.loading){hs.setStyles(this.loading,{top:"-9999px"});this.loading=null;hs.fireEvent(this,"onHideLoading")}if(this.isImage){H.full=this.content.width;F.full=this.content.height;hs.setStyles(this.content,{width:H.t+"px",height:F.t+"px"});this.wrapper.appendChild(this.content);hs.container.appendChild(this.wrapper)}else{if(this.htmlGetSize){this.htmlGetSize()}}H.calcBorders();F.calcBorders();hs.setStyles(this.wrapper,{left:(H.tpos+H.tb-H.cb)+"px",top:(F.tpos+H.tb-F.cb)+"px"});this.initSlideshow();this.getOverlays();var E=H.full/F.full;H.calcExpanded();this.justify(H);F.calcExpanded();this.justify(F);if(this.isHtml){this.htmlSizeOperations()}if(this.overlayBox){this.sizeOverlayBox(0,1)}if(this.allowSizeReduction){if(this.isImage){this.correctRatio(E)}else{this.fitOverlayBox()}var I=this.slideshow;if(I&&this.last&&I.controls&&I.fixedControls){var G=I.overlayOptions.position||"",A;for(var C in hs.oPos){for(var B=0;B<5;B++){A=this[C];if(G.match(hs.oPos[C][B])){A.pos=this.last[C].pos+(this.last[C].p1-A.p1)+(this.last[C].size-A.size)*[0,0,0.5,1,1][B];if(I.fixedControls=="fit"){if(A.pos+A.size+A.p1+A.p2>A.scroll+A.clientSize-A.marginMax){A.pos=A.scroll+A.clientSize-A.size-A.marginMin-A.marginMax-A.p1-A.p2}if(A.pos<A.scroll+A.marginMin){A.pos=A.scroll+A.marginMin}}}}}}if(this.isImage&&this.x.full>(this.x.imgSize||this.x.size)){this.createFullExpand();if(this.overlays.length==1){this.sizeOverlayBox()}}}this.show()}catch(D){this.error(D)}},setObjContainerSize:function(A,C){var B=hs.getElementByClass(A,"DIV","highslide-body");if(/(iframe|swf)/.test(this.objectType)){if(this.objectWidth){B.style.width=this.objectWidth+"px"}if(this.objectHeight){B.style.height=this.objectHeight+"px"}}},writeExtendedContent:function(){if(this.hasExtendedContent){return }var E=this;this.body=hs.getElementByClass(this.innerContent,"DIV","highslide-body");if(this.objectType=="iframe"){this.showLoading();var F=hs.clearing.cloneNode(1);this.body.appendChild(F);this.newWidth=this.innerContent.offsetWidth;if(!this.objectWidth){this.objectWidth=F.offsetWidth}var B=this.innerContent.offsetHeight-this.body.offsetHeight,C=this.objectHeight||hs.page.height-B-hs.marginTop-hs.marginBottom,D=this.objectLoadTime=="before"?' onload="if (hs.expanders['+this.key+"]) hs.expanders["+this.key+'].contentLoaded()" ':"";this.body.innerHTML+='<iframe name="hs'+(new Date()).getTime()+'" frameborder="0" key="'+this.key+'"  allowtransparency="true" style="width:'+this.objectWidth+"px; height:"+C+'px" '+D+' src="'+this.src+'"></iframe>';this.ruler=this.body.getElementsByTagName("div")[0];this.iframe=this.body.getElementsByTagName("iframe")[0];if(this.objectLoadTime=="after"){this.correctIframeSize()}}if(this.objectType=="swf"){this.body.id=this.body.id||"hs-flash-id-"+this.key;var A=this.swfOptions;if(typeof A.params.wmode=="undefined"){A.params.wmode="transparent"}if(swfobject){swfobject.embedSWF(this.src,this.body.id,this.objectWidth,this.objectHeight,A.version||"7",A.expressInstallSwfurl,A.flashvars,A.params,A.attributes)}}this.hasExtendedContent=true},htmlGetSize:function(){if(this.iframe&&!this.objectHeight){this.iframe.style.height=this.body.style.height=this.getIframePageHeight()+"px"}this.innerContent.appendChild(hs.clearing);if(!this.x.full){this.x.full=this.innerContent.offsetWidth}this.y.full=this.innerContent.offsetHeight;this.innerContent.removeChild(hs.clearing);if(hs.ie&&this.newHeight>parseInt(this.innerContent.currentStyle.height)){this.newHeight=parseInt(this.innerContent.currentStyle.height)}hs.setStyles(this.wrapper,{position:"absolute",padding:"0"});hs.setStyles(this.content,{width:this.x.t+"px",height:this.y.t+"px"})},getIframePageHeight:function(){var A;try{var D=this.iframe.contentDocument||this.iframe.contentWindow.document;var B=D.createElement("div");B.style.clear="both";D.body.appendChild(B);A=B.offsetTop;if(hs.ie){A+=parseInt(D.body.currentStyle.marginTop)+parseInt(D.body.currentStyle.marginBottom)-1}}catch(C){A=300}return A},correctIframeSize:function(){var B=this.innerContent.offsetWidth-this.ruler.offsetWidth;if(B<0){B=0}var A=this.innerContent.offsetHeight-this.iframe.offsetHeight;hs.setStyles(this.iframe,{width:(this.x.size-B)+"px",height:(this.y.size-A)+"px"});hs.setStyles(this.body,{width:this.iframe.style.width,height:this.iframe.style.height});this.scrollingContent=this.iframe;this.scrollerDiv=this.scrollingContent},htmlSizeOperations:function(){this.setObjContainerSize(this.innerContent);if(this.objectType=="swf"&&this.objectLoadTime=="before"){this.writeExtendedContent()}if(this.x.size<this.x.full&&!this.allowWidthReduction){this.x.size=this.x.full}if(this.y.size<this.y.full&&!this.allowHeightReduction){this.y.size=this.y.full}this.scrollerDiv=this.innerContent;hs.setStyles(this.mediumContent,{position:"relative",width:this.x.size+"px"});hs.setStyles(this.innerContent,{border:"none",width:"auto",height:"auto"});var E=hs.getElementByClass(this.innerContent,"DIV","highslide-body");if(E&&!/(iframe|swf)/.test(this.objectType)){var B=E;E=hs.createElement(B.nodeName,null,{overflow:"hidden"},null,true);B.parentNode.insertBefore(E,B);E.appendChild(hs.clearing);E.appendChild(B);var C=this.innerContent.offsetWidth-E.offsetWidth;var A=this.innerContent.offsetHeight-E.offsetHeight;E.removeChild(hs.clearing);var D=hs.safari||navigator.vendor=="KDE"?1:0;hs.setStyles(E,{width:(this.x.size-C-D)+"px",height:(this.y.size-A)+"px",overflow:"auto",position:"relative"});if(D&&B.offsetHeight>E.offsetHeight){E.style.width=(parseInt(E.style.width)+D)+"px"}this.scrollingContent=E;this.scrollerDiv=this.scrollingContent}if(this.iframe&&this.objectLoadTime=="before"){this.correctIframeSize()}if(!this.scrollingContent&&this.y.size<this.mediumContent.offsetHeight){this.scrollerDiv=this.content}if(this.scrollerDiv==this.content&&!this.allowWidthReduction&&!/(iframe|swf)/.test(this.objectType)){this.x.size+=17}if(this.scrollerDiv&&this.scrollerDiv.offsetHeight>this.scrollerDiv.parentNode.offsetHeight){setTimeout("try { hs.expanders["+this.key+"].scrollerDiv.style.overflow = 'auto'; } catch(e) {}",hs.expandDuration)}},getImageMapAreaCorrection:function(C){var G=C.coords.split(",");for(var B=0;B<G.length;B++){G[B]=parseInt(G[B])}if(C.shape.toLowerCase()=="circle"){this.x.tpos+=G[0]-G[2];this.y.tpos+=G[1]-G[2];this.x.t=this.y.t=2*G[2]}else{var E,D,A=E=G[0],F=D=G[1];for(var B=0;B<G.length;B++){if(B%2==0){A=Math.min(A,G[B]);E=Math.max(E,G[B])}else{F=Math.min(F,G[B]);D=Math.max(D,G[B])}}this.x.tpos+=A;this.x.t=E-A;this.y.tpos+=F;this.y.t=D-F}},justify:function(F,B){var G,H=F.target,E=F==this.x?"x":"y";if(H&&H.match(/ /)){G=H.split(" ");H=G[0]}if(H&&hs.$(H)){F.pos=hs.getPosition(hs.$(H))[E];if(G&&G[1]&&G[1].match(/^[-]?[0-9]+px$/)){F.pos+=parseInt(G[1])}if(F.size<F.minSize){F.size=F.minSize}}else{if(F.justify=="auto"||F.justify=="center"){var D=false;var A=F.exp.allowSizeReduction;if(F.justify=="center"){F.pos=Math.round(F.scroll+(F.clientSize+F.marginMin-F.marginMax-F.get("wsize"))/2)}else{F.pos=Math.round(F.pos-((F.get("wsize")-F.t)/2))}if(F.pos<F.scroll+F.marginMin){F.pos=F.scroll+F.marginMin;D=true}if(!B&&F.size<F.minSize){F.size=F.minSize;A=false}if(F.pos+F.get("wsize")>F.scroll+F.clientSize-F.marginMax){if(!B&&D&&A){F.size=F.get("fitsize")}else{if(F.get("wsize")<F.get("fitsize")){F.pos=F.scroll+F.clientSize-F.marginMax-F.get("wsize")}else{F.pos=F.scroll+F.marginMin;if(!B&&A){F.size=F.get("fitsize")}}}}if(!B&&F.size<F.minSize){F.size=F.minSize;A=false}}else{if(F.justify=="max"){F.pos=Math.floor(F.pos-F.size+F.t)}}}if(F.pos<F.marginMin){var C=F.pos;F.pos=F.marginMin;if(A&&!B){F.size=F.size-(F.pos-C)}}},correctRatio:function(C){var A=this.x,G=this.y,E=false,D=Math.min(A.full,A.size),B=Math.min(G.full,G.size),F=(this.useBox||hs.padToMinWidth);if(D/B>C){D=B*C;if(D<A.minSize){D=A.minSize;B=D/C}E=true}else{if(D/B<C){B=D/C;E=true}}if(hs.padToMinWidth&&A.full<A.minSize){A.imgSize=A.full;G.size=G.imgSize=G.full}else{if(this.useBox){A.imgSize=D;G.imgSize=B}else{A.size=D;G.size=B}}this.fitOverlayBox(F?null:C);if(F&&G.size<G.imgSize){G.imgSize=G.size;A.imgSize=G.size*C}if(E||F){A.pos=A.tpos-A.cb+A.tb;A.minSize=A.size;this.justify(A,true);G.pos=G.tpos-G.cb+G.tb;G.minSize=G.size;this.justify(G,true);if(this.overlayBox){this.sizeOverlayBox()}}},fitOverlayBox:function(B){var A=this.x,C=this.y;if(this.overlayBox){while(C.size>this.minHeight&&A.size>this.minWidth&&C.get("wsize")>C.get("fitsize")){C.size-=10;if(B){A.size=C.size*B}this.sizeOverlayBox(0,1)}}},reflow:function(){if(this.scrollerDiv){var A=/iframe/i.test(this.scrollerDiv.tagName)?this.getIframePageHeight()+1+"px":"auto";if(this.body){this.body.style.height=A}this.scrollerDiv.style.height=A;this.y.setSize(this.innerContent.offsetHeight);hs.setDimmerSize(this)}},show:function(){var A=this.x,B=this.y;this.doShowHide("hidden");hs.fireEvent(this,"onBeforeExpand");if(this.slideshow&&this.slideshow.thumbstrip){this.slideshow.thumbstrip.selectThumb()}this.changeSize(1,{wrapper:{width:A.get("wsize"),height:B.get("wsize"),left:A.pos,top:B.pos},content:{left:A.p1+A.get("imgPad"),top:B.p1+B.get("imgPad"),width:A.imgSize||A.size,height:B.imgSize||B.size}},hs.expandDuration)},changeSize:function(D,I,B){var K=this.transitions,E=D?(this.last?this.last.a:null):hs.upcoming,J=(K[1]&&E&&hs.getParam(E,"transitions")[1]==K[1])?K[1]:K[0];if(this[J]&&J!="expand"){this[J](D,I);return }if(this.outline&&!this.outlineWhileAnimating){if(D){this.outline.setPosition()}else{this.outline.destroy((this.isHtml&&this.preserveContent))}}if(!D){this.destroyOverlays()}var C=this,H=C.x,G=C.y,F=this.easing;if(!D){F=this.easingClose||F}var A=D?function(){if(C.outline){C.outline.table.style.visibility="visible"}setTimeout(function(){C.afterExpand()},50)}:function(){C.afterClose()};if(D){hs.setStyles(this.wrapper,{width:H.t+"px",height:G.t+"px"})}if(D&&this.isHtml){hs.setStyles(this.wrapper,{left:(H.tpos-H.cb+H.tb)+"px",top:(G.tpos-G.cb+G.tb)+"px"})}if(this.fadeInOut){hs.setStyles(this.wrapper,{opacity:D?0:1});hs.extend(I.wrapper,{opacity:D})}hs.animate(this.wrapper,I.wrapper,{duration:B,easing:F,step:function(N,L){if(C.outline&&C.outlineWhileAnimating&&L.prop=="top"){var M=D?L.pos:1-L.pos;var O={w:H.t+(H.get("wsize")-H.t)*M,h:G.t+(G.get("wsize")-G.t)*M,x:H.tpos+(H.pos-H.tpos)*M,y:G.tpos+(G.pos-G.tpos)*M};C.outline.setPosition(O,0,1)}if(C.isHtml){if(L.prop=="left"){C.mediumContent.style.left=(H.pos-N)+"px"}if(L.prop=="top"){C.mediumContent.style.top=(G.pos-N)+"px"}}}});hs.animate(this.content,I.content,B,F,A);if(D){this.wrapper.style.visibility="visible";this.content.style.visibility="visible";if(this.isHtml){this.innerContent.style.visibility="visible"}this.a.className+=" highslide-active-anchor"}},fade:function(F,H){this.outlineWhileAnimating=false;var C=this,I=F?hs.expandDuration:0;if(F){hs.animate(this.wrapper,H.wrapper,0);hs.setStyles(this.wrapper,{opacity:0,visibility:"visible"});hs.animate(this.content,H.content,0);this.content.style.visibility="visible";hs.animate(this.wrapper,{opacity:1},I,null,function(){C.afterExpand()})}if(this.outline){this.outline.table.style.zIndex=this.wrapper.style.zIndex;var B=F||-1,D=this.outline.offset,A=F?3:D,G=F?D:3;for(var E=A;B*E<=B*G;E+=B,I+=25){(function(){var J=F?G-E:A-E;setTimeout(function(){C.outline.setPosition(0,J,1)},I)})()}}if(F){}else{setTimeout(function(){if(C.outline){C.outline.destroy(C.preserveContent)}C.destroyOverlays();hs.animate(C.wrapper,{opacity:0},null,null,function(){C.afterClose()})},I)}},crossfade:function(L,B){if(!L){return }var G=this,Q=hs.transitionDuration,I=G.last,K=G.x,J=G.y,F=I.x,E=I.y,N=G.overlayBox,D=this.wrapper,P=this.content;hs.removeEventListener(document,"mousemove",hs.dragHandler);this.outline=I.outline;if(this.outline){this.outline.exp=G}I.outline=null;I.wrapper.style.overflow="hidden";hs.setStyles(D,{left:F.pos+"px",top:E.pos+"px",width:F.get("wsize")+"px",height:E.get("wsize")+"px"});hs.setStyles(P,{display:"none",width:(K.imgSize||K.size)+"px",height:(J.imgSize||J.size)+"px",left:(K.p1+K.get("imgPad"))+"px",top:(J.p1+J.get("imgPad"))+"px"});var R=hs.createElement("div",{className:"highslide-image"},{position:"absolute",zIndex:4,overflow:"hidden",display:"none",left:(F.p1+F.get("imgPad"))+"px",top:(E.p1+E.get("imgPad"))+"px",width:(F.imgSize||F.size)+"px",height:(E.imgSize||E.size)+"px"});if(this.isHtml){hs.setStyles(this.mediumContent,{left:0,top:0})}if(N){hs.setStyles(N,{overflow:"visible",left:(F.p1+F.cb)+"px",top:(E.p1+E.cb)+"px",width:F.size+"px",height:E.size+"px"})}var M={oldImg:I,newImg:this};for(var O in M){this[O]=M[O].content.cloneNode(1);hs.setStyles(this[O],{position:"absolute",border:0,visibility:"visible"});R.appendChild(this[O])}hs.setStyles(this.oldImg,{left:0,top:0});hs.setStyles(this.newImg,{display:"block",opacity:0,left:(K.pos-F.pos+K.p1-F.p1+K.get("imgPad")-F.get("imgPad"))+"px",top:(J.pos-E.pos+J.p1-E.p1+J.get("imgPad")-E.get("imgPad"))+"px"});D.appendChild(R);if(N){N.className="";D.appendChild(N)}R.style.display="";I.content.style.display="none";if(hs.safari){var H=navigator.userAgent.match(/Safari\/([0-9]{3})/);if(H&&parseInt(H[1])<525){D.style.visibility="visible"}}function C(){D.style.visibility=P.style.visibility="visible";P.style.display="block";R.style.display="none";G.a.className+=" highslide-active-anchor";G.afterExpand();I.afterClose()}hs.animate(I.wrapper,{left:K.pos,top:J.pos,width:K.get("wsize"),height:J.get("wsize")},Q);hs.animate(R,{width:K.imgSize||K.size,height:J.imgSize||J.size,left:K.p1+K.get("imgPad"),top:J.p1+J.get("imgPad")},Q);hs.animate(this.oldImg,{left:(F.pos-K.pos+F.p1-K.p1+F.get("imgPad")-K.get("imgPad")),top:(E.pos-J.pos+E.p1-J.p1+E.get("imgPad")-J.get("imgPad"))},Q);hs.animate(this.newImg,{opacity:1,left:0,top:0},Q);if(N){hs.animate(N,{left:K.p1+K.cb,top:J.p1+J.cb,width:K.size,height:J.size},Q)}if(this.outline){var A=function(U,S){if(S.prop=="top"){var T=G.wrapper.style;var V={w:parseInt(T.width),h:parseInt(T.height),x:parseInt(T.left),y:parseInt(T.top)};G.outline.setPosition(V)}}}hs.animate(D,B.wrapper,{duration:Q,complete:C,step:A});R.style.visibility="visible"},reuseOverlay:function(D,C){if(!this.last){return false}for(var B=0;B<this.last.overlays.length;B++){var A=hs.$("hsId"+this.last.overlays[B]);if(A&&A.hsId==D.hsId){this.genOverlayBox();A.reuse=this.key;hs.push(this.overlays,this.last.overlays[B]);return true}}return false},afterExpand:function(){this.isExpanded=true;this.focus();if(this.isHtml&&this.objectLoadTime=="after"){this.writeExtendedContent()}if(this.iframe){try{var F=this,E=this.iframe.contentDocument||this.iframe.contentWindow.document;hs.addEventListener(E,"mousedown",function(){if(hs.focusKey!=F.key){F.focus()}})}catch(D){}if(hs.ie&&typeof this.isClosing!="boolean"){this.iframe.style.width=(this.objectWidth-1)+"px"}}if(this.dimmingOpacity){hs.dim(this)}if(hs.upcoming&&hs.upcoming==this.a){hs.upcoming=null}this.prepareNextOutline();var C=hs.page,B=hs.mouse.x+C.scrollLeft,A=hs.mouse.y+C.scrollTop;this.mouseIsOver=this.x.pos<B&&B<this.x.pos+this.x.get("wsize")&&this.y.pos<A&&A<this.y.pos+this.y.get("wsize");if(this.overlayBox){this.showOverlays()}hs.fireEvent(this,"onAfterExpand")},prepareNextOutline:function(){var A=this.key;var B=this.outlineType;new hs.Outline(B,function(){try{hs.expanders[A].preloadNext()}catch(C){}})},preloadNext:function(){var B=this.getAdjacentAnchor(1);if(B&&B.onclick.toString().match(/hs\.expand/)){var A=hs.createElement("img",{src:hs.getSrc(B)})}},getAdjacentAnchor:function(C){var B=this.getAnchorIndex(),A=hs.anchors.groups[this.slideshowGroup||"none"];if(!A[B+C]&&this.slideshow&&this.slideshow.repeat){if(C==1){return A[0]}else{if(C==-1){return A[A.length-1]}}}return A[B+C]||null},getAnchorIndex:function(){var A=hs.getAnchors().groups[this.slideshowGroup||"none"];if(A){for(var B=0;B<A.length;B++){if(A[B]==this.a){return B}}}return null},getNumber:function(){if(this[this.numberPosition]){var A=hs.anchors.groups[this.slideshowGroup||"none"];if(A){var B=hs.lang.number.replace("%1",this.getAnchorIndex()+1).replace("%2",A.length);this[this.numberPosition].innerHTML='<div class="highslide-number">'+B+"</div>"+this[this.numberPosition].innerHTML}}},initSlideshow:function(){if(!this.last){for(var B=0;B<hs.slideshows.length;B++){var A=hs.slideshows[B],C=A.slideshowGroup;if(typeof C=="undefined"||C===null||C===this.slideshowGroup){this.slideshow=new hs.Slideshow(this,A)}}}else{this.slideshow=this.last.slideshow}var A=this.slideshow;if(!A){return }var E=A.exp=this;A.checkFirstAndLast();A.disable("full-expand");if(A.controls){var D=A.overlayOptions||{};D.overlayId=A.controls;D.hsId="controls";this.createOverlay(D)}if(A.thumbstrip){A.thumbstrip.add(this)}if(!this.last&&this.autoplay){A.play(true)}if(A.autoplay){A.autoplay=setTimeout(function(){hs.next(E.key)},(A.interval||500))}},cancelLoading:function(){hs.expanders[this.key]=null;if(hs.upcoming==this.a){hs.upcoming=null}hs.undim(this.key);if(this.loading){hs.loading.style.left="-9999px"}hs.fireEvent(this,"onHideLoading")},writeCredits:function(){if(this.credits){return }this.credits=hs.createElement("div",{href:hs.creditsHref,className:"highslide-credits",innerHTML:hs.lang.creditsText,title:hs.lang.creditsTitle});this.createOverlay({overlayId:this.credits,position:"top left",hsId:"credits"})},getInline:function(types,addOverlay){for(var i=0;i<types.length;i++){var type=types[i],s=null;if(type=="caption"&&!hs.fireEvent(this,"onBeforeGetCaption")){return }else{if(type=="heading"&&!hs.fireEvent(this,"onBeforeGetHeading")){return }}if(!this[type+"Id"]&&this.thumbsUserSetId){this[type+"Id"]=type+"-for-"+this.thumbsUserSetId}if(this[type+"Id"]){this[type]=hs.getNode(this[type+"Id"])}if(!this[type]&&!this[type+"Text"]&&this[type+"Eval"]){try{s=eval(this[type+"Eval"])}catch(e){}}if(!this[type]&&this[type+"Text"]){s=this[type+"Text"]}if(!this[type]&&!s){var next=this.a.nextSibling;while(next&&!hs.isHsAnchor(next)){if((new RegExp("highslide-"+type)).test(next.className||null)){this[type]=next.cloneNode(1);break}next=next.nextSibling}}if(!this[type]&&!s&&this.numberPosition==type){s="\n"}if(!this[type]&&s){this[type]=hs.createElement("div",{className:"highslide-"+type,innerHTML:s})}if(addOverlay&&this[type]){var o={position:(type=="heading")?"above":"below"};for(var x in this[type+"Overlay"]){o[x]=this[type+"Overlay"][x]}o.overlayId=this[type];this.createOverlay(o)}}},doShowHide:function(A){if(hs.hideSelects){this.showHideElements("SELECT",A)}if(hs.hideIframes){this.showHideElements("IFRAME",A)}if(hs.geckoMac){this.showHideElements("*",A)}},showHideElements:function(C,B){var E=document.getElementsByTagName(C);var A=C=="*"?"overflow":"visibility";for(var F=0;F<E.length;F++){if(A=="visibility"||(document.defaultView.getComputedStyle(E[F],"").getPropertyValue("overflow")=="auto"||E[F].getAttribute("hidden-by")!=null)){var H=E[F].getAttribute("hidden-by");if(B=="visible"&&H){H=H.replace("["+this.key+"]","");E[F].setAttribute("hidden-by",H);if(!H){E[F].style[A]=E[F].origProp}}else{if(B=="hidden"){var J=hs.getPosition(E[F]);J.w=E[F].offsetWidth;J.h=E[F].offsetHeight;if(!this.dimmingOpacity){var I=(J.x+J.w<this.x.get("opos")||J.x>this.x.get("opos")+this.x.get("osize"));var G=(J.y+J.h<this.y.get("opos")||J.y>this.y.get("opos")+this.y.get("osize"))}var D=hs.getWrapperKey(E[F]);if(!I&&!G&&D!=this.key){if(!H){E[F].setAttribute("hidden-by","["+this.key+"]");E[F].origProp=E[F].style[A];E[F].style[A]="hidden"}else{if(H.indexOf("["+this.key+"]")==-1){E[F].setAttribute("hidden-by",H+"["+this.key+"]")}}}else{if((H=="["+this.key+"]"||hs.focusKey==D)&&D!=this.key){E[F].setAttribute("hidden-by","");E[F].style[A]=E[F].origProp||""}else{if(H&&H.indexOf("["+this.key+"]")>-1){E[F].setAttribute("hidden-by",H.replace("["+this.key+"]",""))}}}}}}}},focus:function(){this.wrapper.style.zIndex=hs.zIndexCounter++;for(var A=0;A<hs.expanders.length;A++){if(hs.expanders[A]&&A==hs.focusKey){var B=hs.expanders[A];B.content.className+=" highslide-"+B.contentType+"-blur";if(B.isImage){B.content.style.cursor=hs.ie?"hand":"pointer";B.content.title=hs.lang.focusTitle}hs.fireEvent(B,"onBlur")}}if(this.outline){this.outline.table.style.zIndex=this.wrapper.style.zIndex}this.content.className="highslide-"+this.contentType;if(this.isImage){this.content.title=hs.lang.restoreTitle;if(hs.restoreCursor){hs.styleRestoreCursor=window.opera?"pointer":"url("+hs.graphicsDir+hs.restoreCursor+"), pointer";if(hs.ie&&hs.uaVersion<6){hs.styleRestoreCursor="hand"}this.content.style.cursor=hs.styleRestoreCursor}}hs.focusKey=this.key;hs.addEventListener(document,window.opera?"keypress":"keydown",hs.keyHandler);hs.fireEvent(this,"onFocus")},moveTo:function(A,B){this.x.setPos(A);this.y.setPos(B)},resize:function(D){var A,B,C=D.width/D.height;A=Math.max(D.width+D.dX,Math.min(this.minWidth,this.x.full));if(this.isImage&&Math.abs(A-this.x.full)<12){A=this.x.full}B=this.isHtml?D.height+D.dY:A/C;if(B<Math.min(this.minHeight,this.y.full)){B=Math.min(this.minHeight,this.y.full);if(this.isImage){A=B*C}}this.resizeTo(A,B)},resizeTo:function(A,B){this.y.setSize(B);this.x.setSize(A)},close:function(){if(this.isClosing||!this.isExpanded){return }if(this.transitions[1]=="crossfade"&&hs.upcoming){hs.getExpander(hs.upcoming).cancelLoading();hs.upcoming=null}if(!hs.fireEvent(this,"onBeforeClose")){return }this.isClosing=true;if(this.slideshow&&!hs.upcoming){this.slideshow.pause()}hs.removeEventListener(document,window.opera?"keypress":"keydown",hs.keyHandler);try{if(this.isHtml){this.htmlPrepareClose()}this.content.style.cursor="default";this.changeSize(0,{wrapper:{width:this.x.t,height:this.y.t,left:this.x.tpos-this.x.cb+this.x.tb,top:this.y.tpos-this.y.cb+this.y.tb},content:{left:0,top:0,width:this.x.t,height:this.y.t}},hs.restoreDuration)}catch(A){this.afterClose()}},htmlPrepareClose:function(){if(hs.geckoMac){if(!hs.mask){hs.mask=hs.createElement("div",null,{position:"absolute"},hs.container)}hs.setStyles(hs.mask,{width:this.x.size+"px",height:this.y.size+"px",left:this.x.pos+"px",top:this.y.pos+"px",display:"block"})}if(this.objectType=="swf"){try{hs.$(this.body.id).StopPlay()}catch(A){}}if(this.objectLoadTime=="after"&&!this.preserveContent){this.destroyObject()}if(this.scrollerDiv&&this.scrollerDiv!=this.scrollingContent){this.scrollerDiv.style.overflow="hidden"}},destroyObject:function(){if(hs.ie&&this.iframe){try{this.iframe.contentWindow.document.body.innerHTML=""}catch(A){}}if(this.objectType=="swf"){swfobject.removeSWF(this.body.id)}this.body.innerHTML=""},sleep:function(){if(this.outline){this.outline.table.style.display="none"}this.releaseMask=null;this.wrapper.style.display="none";hs.push(hs.sleeping,this)},awake:function(){try{hs.expanders[this.key]=this;if(!hs.allowMultipleInstances&&hs.focusKey!=this.key){try{hs.expanders[hs.focusKey].close()}catch(B){}}var D=hs.zIndexCounter++,A={display:"",zIndex:D};hs.setStyles(this.wrapper,A);this.isClosing=false;var C=this.outline||0;if(C){if(!this.outlineWhileAnimating){A.visibility="hidden"}hs.setStyles(C.table,A)}if(this.slideshow){this.initSlideshow()}this.show()}catch(B){}},createOverlay:function(E){var D=E.overlayId,A=(E.relativeTo=="viewport"&&!/panel$/.test(E.position));if(typeof D=="string"){D=hs.getNode(D)}if(E.html){D=hs.createElement("div",{innerHTML:E.html})}if(!D||typeof D=="string"){return }if(!hs.fireEvent(this,"onCreateOverlay",{overlay:D})){return }D.style.display="block";E.hsId=E.hsId||E.overlayId;if(this.transitions[1]=="crossfade"&&this.reuseOverlay(E,D)){return }this.genOverlayBox();var C=E.width&&/^[0-9]+(px|%)$/.test(E.width)?E.width:"auto";if(/^(left|right)panel$/.test(E.position)&&!/^[0-9]+px$/.test(E.width)){C="200px"}var B=hs.createElement("div",{id:"hsId"+hs.idCounter++,hsId:E.hsId},{position:"absolute",visibility:"hidden",width:C,direction:hs.lang.cssDirection||"",opacity:0},A?hs.viewport:this.overlayBox,true);if(A){B.hsKey=this.key}B.appendChild(D);hs.extend(B,{opacity:1,offsetX:0,offsetY:0,dur:(E.fade===0||E.fade===false||(E.fade==2&&hs.ie))?0:250});hs.extend(B,E);if(this.gotOverlays){this.positionOverlay(B);if(!B.hideOnMouseOut||this.mouseIsOver){hs.animate(B,{opacity:B.opacity},B.dur)}}hs.push(this.overlays,hs.idCounter-1)},positionOverlay:function(E){var F=E.position||"middle center",C=(E.relativeTo=="viewport"),B=E.offsetX,A=E.offsetY;if(C){hs.viewport.style.display="block";E.hsKey=this.key;if(E.offsetWidth>E.parentNode.offsetWidth){E.style.width="100%"}}else{if(E.parentNode!=this.overlayBox){this.overlayBox.appendChild(E)}}if(/left$/.test(F)){E.style.left=B+"px"}if(/center$/.test(F)){hs.setStyles(E,{left:"50%",marginLeft:(B-Math.round(E.offsetWidth/2))+"px"})}if(/right$/.test(F)){E.style.right=-B+"px"}if(/^leftpanel$/.test(F)){hs.setStyles(E,{right:"100%",marginRight:this.x.cb+"px",top:-this.y.cb+"px",bottom:-this.y.cb+"px",overflow:"auto"});this.x.p1=E.offsetWidth}else{if(/^rightpanel$/.test(F)){hs.setStyles(E,{left:"100%",marginLeft:this.x.cb+"px",top:-this.y.cb+"px",bottom:-this.y.cb+"px",overflow:"auto"});this.x.p2=E.offsetWidth}}var D=E.parentNode.offsetHeight;E.style.height="auto";if(C&&E.offsetHeight>D){E.style.height=hs.ieLt7?D+"px":"100%"}if(/^top/.test(F)){E.style.top=A+"px"}if(/^middle/.test(F)){hs.setStyles(E,{top:"50%",marginTop:(A-Math.round(E.offsetHeight/2))+"px"})}if(/^bottom/.test(F)){E.style.bottom=-A+"px"}if(/^above$/.test(F)){hs.setStyles(E,{left:(-this.x.p1-this.x.cb)+"px",right:(-this.x.p2-this.x.cb)+"px",bottom:"100%",marginBottom:this.y.cb+"px",width:"auto"});this.y.p1=E.offsetHeight}else{if(/^below$/.test(F)){hs.setStyles(E,{position:"relative",left:(-this.x.p1-this.x.cb)+"px",right:(-this.x.p2-this.x.cb)+"px",top:"100%",marginTop:this.y.cb+"px",width:"auto"});this.y.p2=E.offsetHeight;E.style.position="absolute"}}},getOverlays:function(){this.getInline(["heading","caption"],true);this.getNumber();if(this.caption){hs.fireEvent(this,"onAfterGetCaption")}if(this.heading){hs.fireEvent(this,"onAfterGetHeading")}if(this.heading&&this.dragByHeading){this.heading.className+=" highslide-move"}if(hs.showCredits){this.writeCredits()}for(var A=0;A<hs.overlays.length;A++){var D=hs.overlays[A],E=D.thumbnailId,B=D.slideshowGroup;if((!E&&!B)||(E&&E==this.thumbsUserSetId)||(B&&B===this.slideshowGroup)){if(this.isImage||(this.isHtml&&D.useOnHtml)){this.createOverlay(D)}}}var C=[];for(var A=0;A<this.overlays.length;A++){var D=hs.$("hsId"+this.overlays[A]);if(/panel$/.test(D.position)){this.positionOverlay(D)}else{hs.push(C,D)}}for(var A=0;A<C.length;A++){this.positionOverlay(C[A])}this.gotOverlays=true},genOverlayBox:function(){if(!this.overlayBox){this.overlayBox=hs.createElement("div",{className:this.wrapperClassName},{position:"absolute",width:(this.x.size||this.x.full)+"px",height:(this.y.size||this.y.full)+"px",visibility:"hidden",overflow:"hidden",zIndex:hs.ie?4:null},hs.container,true)}},sizeOverlayBox:function(F,D){var C=this.overlayBox,A=this.x,H=this.y;hs.setStyles(C,{width:A.size+"px",height:H.size+"px"});if(F||D){for(var E=0;E<this.overlays.length;E++){var G=hs.$("hsId"+this.overlays[E]);var B=(hs.ieLt7||document.compatMode=="BackCompat");if(G&&/^(above|below)$/.test(G.position)){if(B){G.style.width=(C.offsetWidth+2*A.cb+A.p1+A.p2)+"px"}H[G.position=="above"?"p1":"p2"]=G.offsetHeight}if(G&&B&&/^(left|right)panel$/.test(G.position)){G.style.height=(C.offsetHeight+2*H.cb)+"px"}}}if(F){hs.setStyles(this.content,{top:H.p1+"px"});hs.setStyles(C,{top:(H.p1+H.cb)+"px"})}},showOverlays:function(){var A=this.overlayBox;A.className="";hs.setStyles(A,{top:(this.y.p1+this.y.cb)+"px",left:(this.x.p1+this.x.cb)+"px",overflow:"visible"});if(hs.safari){A.style.visibility="visible"}this.wrapper.appendChild(A);for(var B=0;B<this.overlays.length;B++){var C=hs.$("hsId"+this.overlays[B]);C.style.zIndex=C.hsId=="controls"?5:4;if(!C.hideOnMouseOut||this.mouseIsOver){C.style.visibility="visible";hs.animate(C,{opacity:C.opacity},C.dur)}}},destroyOverlays:function(){if(!this.overlays.length){return }for(var A=0;A<this.overlays.length;A++){var B=hs.$("hsId"+this.overlays[A]);if(B.parentNode==hs.viewport){hs.discardElement(B)}}if(this.slideshow){var C=this.slideshow.controls;if(C&&hs.getExpander(C)==this){C.parentNode.removeChild(C)}}if(this.isHtml&&this.preserveContent){this.overlayBox.style.top="-9999px";hs.container.appendChild(this.overlayBox)}else{hs.discardElement(this.overlayBox)}},createFullExpand:function(){if(this.slideshow&&this.slideshow.controls){this.slideshow.enable("full-expand");return }this.fullExpandLabel=hs.createElement("a",{href:"javascript:hs.expanders["+this.key+"].doFullExpand();",title:hs.lang.fullExpandTitle,className:"highslide-full-expand"});if(!hs.fireEvent(this,"onCreateFullExpand")){return }this.createOverlay({overlayId:this.fullExpandLabel,position:hs.fullExpandPosition,hideOnMouseOut:true,opacity:hs.fullExpandOpacity})},doFullExpand:function(){try{if(!hs.fireEvent(this,"onDoFullExpand")){return }if(this.fullExpandLabel){hs.discardElement(this.fullExpandLabel)}this.focus();var B=this.x.size;this.resizeTo(this.x.full,this.y.full);var A=this.x.pos-(this.x.size-B)/2;if(A<hs.marginLeft){A=hs.marginLeft}this.moveTo(A,this.y.pos);this.doShowHide("hidden");hs.setDimmerSize(this)}catch(C){this.error(C)}},afterClose:function(){this.a.className=this.a.className.replace("highslide-active-anchor","");this.doShowHide("visible");if(this.isHtml&&this.preserveContent&&this.transitions[1]!="crossfade"){this.sleep()}else{if(this.outline&&this.outlineWhileAnimating){this.outline.destroy()}hs.discardElement(this.wrapper)}if(hs.mask){hs.mask.style.display="none"}if(!hs.viewport.childNodes.length){hs.viewport.style.display="none"}if(this.dimmingOpacity){hs.undim(this.key)}hs.fireEvent(this,"onAfterClose");hs.expanders[this.key]=null;hs.reOrder()}};hs.Ajax=function(A,B,C){this.a=A;this.content=B;this.pre=C};hs.Ajax.prototype={run:function(){if(!this.src){this.src=hs.getSrc(this.a)}if(this.src.match("#")){var A=this.src.split("#");this.src=A[0];this.id=A[1]}if(hs.cachedGets[this.src]){this.cachedGet=hs.cachedGets[this.src];if(this.id){this.getElementContent()}else{this.loadHTML()}return }try{this.xmlHttp=new XMLHttpRequest()}catch(B){try{this.xmlHttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(B){try{this.xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(B){this.onError()}}}var C=this;this.xmlHttp.onreadystatechange=function(){if(C.xmlHttp.readyState==4){if(C.id){C.getElementContent()}else{C.loadHTML()}}};this.xmlHttp.open("GET",this.src,true);this.xmlHttp.setRequestHeader("X-Requested-With","XMLHttpRequest");this.xmlHttp.send(null)},getElementContent:function(){hs.init();var A=window.opera||hs.ie6SSL?{src:"about:blank"}:null;this.iframe=hs.createElement("iframe",A,{position:"absolute",top:"-9999px"},hs.container);this.loadHTML()},loadHTML:function(){var B=this.cachedGet||this.xmlHttp.responseText;if(this.pre){hs.cachedGets[this.src]=B}if(!hs.ie||hs.uaVersion>=5.5){B=B.replace(/\s/g," ").replace(new RegExp("<link[^>]*>","gi"),"").replace(new RegExp("<script[^>]*>.*?<\/script>","gi"),"");if(this.iframe){var D=this.iframe.contentDocument;if(!D&&this.iframe.contentWindow){D=this.iframe.contentWindow.document}if(!D){var E=this;setTimeout(function(){E.loadHTML()},25);return }D.open();D.write(B);D.close();try{B=D.getElementById(this.id).innerHTML}catch(C){try{B=this.iframe.document.getElementById(this.id).innerHTML}catch(C){}}}else{B=B.replace(new RegExp("^.*?<body[^>]*>(.*?)</body>.*?$","i"),"$1")}}hs.getElementByClass(this.content,"DIV","highslide-body").innerHTML=B;this.onLoad();for(var A in this){this[A]=null}}};hs.Slideshow=function(C,B){if(hs.dynamicallyUpdateAnchors!==false){hs.updateAnchors()}this.exp=C;for(var A in B){this[A]=B[A]}if(this.useControls){this.getControls()}if(this.thumbstrip){this.thumbstrip=hs.Thumbstrip(this)}};hs.Slideshow.prototype={getControls:function(){this.controls=hs.createElement("div",{innerHTML:hs.replaceLang(hs.skin.controls)},null,hs.container);var B=["play","pause","previous","next","move","full-expand","close"];this.btn={};var C=this;for(var A=0;A<B.length;A++){this.btn[B[A]]=hs.getElementByClass(this.controls,"li","highslide-"+B[A]);this.enable(B[A])}this.btn.pause.style.display="none"},checkFirstAndLast:function(){if(this.repeat||!this.controls){return }var B=this.exp.getAnchorIndex(),A=/disabled$/;if(B==0){this.disable("previous")}else{if(A.test(this.btn.previous.getElementsByTagName("a")[0].className)){this.enable("previous")}}if(B+1==hs.anchors.groups[this.exp.slideshowGroup||"none"].length){this.disable("next");this.disable("play")}else{if(A.test(this.btn.next.getElementsByTagName("a")[0].className)){this.enable("next");this.enable("play")}}},enable:function(C){if(!this.btn){return }var B=this,A=this.btn[C].getElementsByTagName("a")[0],D=/disabled$/;A.onclick=function(){B[C]();return false};if(D.test(A.className)){A.className=A.className.replace(D,"")}},disable:function(B){if(!this.btn){return }var A=this.btn[B].getElementsByTagName("a")[0];A.onclick=function(){return false};if(!/disabled$/.test(A.className)){A.className+=" disabled"}},hitSpace:function(){if(this.autoplay){this.pause()}else{this.play()}},play:function(A){if(this.btn){this.btn.play.style.display="none";this.btn.pause.style.display=""}this.autoplay=true;if(!A){hs.next(this.exp.key)}},pause:function(){if(this.btn){this.btn.pause.style.display="none";this.btn.play.style.display=""}clearTimeout(this.autoplay);this.autoplay=null},previous:function(){this.pause();hs.previous(this.btn.previous)},next:function(){this.pause();hs.next(this.btn.next)},move:function(){},"full-expand":function(){hs.getExpander().doFullExpand()},close:function(){hs.close(this.btn.close)}};hs.Thumbstrip=function(J){function O(U){hs.extend(F||{},{overlayId:Q,hsId:"thumbstrip"});if(hs.ieLt7){F.fade=0}U.createOverlay(F);hs.setStyles(Q.parentNode,{overflow:"hidden"})}function C(U){D(undefined,Math.round(U*Q[H?"offsetWidth":"offsetHeight"]*0.7))}function D(l,m){if(l===undefined){for(var k=0;k<I.length;k++){if(I[k]==J.exp.a){l=k;break}}}var e=Q.getElementsByTagName("a"),X=e[l],V=X.parentNode,W=H?"Left":"Top",n=H?"Right":"Bottom",g=H?"Width":"Height",Z="offset"+W,f="offset"+g,d=M.parentNode.parentNode[f]-R[f],U=parseInt(R.style[H?"left":"top"])||0,a=U,b=20;if(m!==undefined){a=U-m;if(a>0){a=0}if(a<d){a=d}}else{for(var k=0;k<e.length;k++){e[k].className=""}X.className="highslide-active-anchor";var h=l>0?e[l-1].parentNode[Z]:V[Z],Y=V[Z]+V[f]+(e[l+1]?e[l+1].parentNode[f]:0);if(Y>M[f]-U){a=M[f]-Y}else{if(h<-U){a=-h}}}var c=V[Z]+(V[f]-G[f])/2+a;hs.animate(R,H?{left:a}:{top:a},null,"easeOutQuad");hs.animate(G,H?{left:c}:{top:c},null,"easeOutQuad");K.style.display=a<0?"block":"none";S.style.display=(a>d)?"block":"none"}var I=hs.anchors.groups[J.exp.slideshowGroup||"none"],F=J.thumbstrip,L=F.mode||"horizontal",T=(L=="float"),N=T?["div","ul","li","span"]:["table","tbody","tr","td"],H=(L=="horizontal"),Q=hs.createElement("div",{className:"highslide-thumbstrip highslide-thumbstrip-"+L,innerHTML:'<div class="highslide-thumbstrip-inner"><'+N[0]+"><"+N[1]+"></"+N[1]+"></"+N[0]+'></div><div class="highslide-scroll-up"><div></div></div><div class="highslide-scroll-down"><div></div></div><div class="highslide-marker"><div></div></div>'},{display:"none"},hs.container),E=Q.childNodes,M=E[0],K=E[1],S=E[2],G=E[3],R=M.firstChild,A=Q.getElementsByTagName(N[1])[0],B;for(var P=0;P<I.length;P++){if(P==0||!H){B=hs.createElement(N[2],null,null,A)}(function(){var V=I[P],U=hs.createElement(N[3],null,null,B),W=P;hs.createElement("a",{href:V.href,onclick:function(){return hs.transit(V)},innerHTML:hs.stripItemFormatter?hs.stripItemFormatter(V):V.innerHTML},null,U)})()}if(!T){K.onclick=function(){C(-1)};S.onclick=function(){C(1)};hs.addEventListener(A,document.onmousewheel!==undefined?"mousewheel":"DOMMouseScroll",function(U){var V=0;U=U||window.event;if(U.wheelDelta){V=U.wheelDelta/120;if(hs.opera){V=-V}}else{if(U.detail){V=-U.detail/3}}if(V){C(-V*0.2)}if(U.preventDefault){U.preventDefault()}U.returnValue=false})}return{add:O,selectThumb:D}};if(document.readyState&&hs.ie){(function(){try{document.documentElement.doScroll("left")}catch(A){setTimeout(arguments.callee,50);return }hs.domReady()})()}hs.langDefaults=hs.lang;var HsExpander=hs.Expander;hs.addEventListener(window,"load",function(){if(hs.expandCursor){var C=".highslide img",D="cursor: url("+hs.graphicsDir+hs.expandCursor+"), pointer !important;";var A=hs.createElement("style",{type:"text/css"},null,document.getElementsByTagName("HEAD")[0]);if(!hs.ie){A.appendChild(document.createTextNode(C+" {"+D+"}"))}else{var B=document.styleSheets[document.styleSheets.length-1];if(typeof (B.addRule)=="object"){B.addRule(C,D)}}}});hs.addEventListener(window,"resize",function(){hs.page=hs.getPageSize();if(hs.viewport){for(var A=0;A<hs.viewport.childNodes.length;A++){var B=hs.viewport.childNodes[A],C=hs.getExpander(B);C.positionOverlay(B);if(B.hsId=="thumbstrip"){C.slideshow.thumbstrip.selectThumb()}}}});hs.addEventListener(document,"mousemove",function(A){hs.mouse={x:A.clientX,y:A.clientY}});hs.addEventListener(document,"mousedown",hs.mouseClickHandler);hs.addEventListener(document,"mouseup",hs.mouseClickHandler);hs.addEventListener(window,"load",hs.preloadImages);hs.addEventListener(window,"load",hs.preloadAjax);hs.addEventListener(window,"load",function(){hs.pageLoaded=true});hs.setClickEvents();