if(!hs){var hs={lang:{cssDirection:"ltr",loadingText:"Loading...",loadingTitle:"Click to cancel",focusTitle:"Click to bring to front",fullExpandTitle:"Expand to actual size (f)",creditsText:"Powered by <i>Highslide JS</i>",creditsTitle:"Go to the Highslide JS 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",restoreTitle:"Click to close image, click and drag to move. Use arrow keys for next and previous."},graphicsDir:"/js/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/",creditsTarget:"_self",enableKeyListener:true,openerTagNames:["a"],allowWidthReduction:false,allowHeightReduction:true,preserveContent:true,objectLoadTime:"before",cacheAjax:true,dragByHeading:true,minWidth:200,minHeight:200,allowSizeReduction:true,outlineType:"drop-shadow",skin:{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","outlineType","outlineWhileAnimating","captionId","captionText","captionEval","captionOverlay","headingId","headingText","headingEval","headingOverlay","creditsPosition","dragByHeading","width","height","contentId","allowWidthReduction","allowHeightReduction","preserveContent","maincontentId","maincontentText","maincontentEval","objectType","cacheAjax","objectWidth","objectHeight","objectLoadTime","swfOptions","wrapperClassName","minWidth","minHeight","maxWidth","maxHeight","pageOrigin","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:[],pendingOutlines:{},sleeping:[],preloadTheseAjax:[],cacheBindings:[],cachedGets:{},clones:{},onReady:[],uaVersion:/Trident\/4\.0/.test(navigator.userAgent)?8: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(A.style[C]){return A.style[C]}else{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 E=document,B=window,D=E.compatMode&&E.compatMode!="BackCompat"?E.documentElement:E.body;var C=hs.ie?D.clientWidth:(E.documentElement.clientWidth||self.innerWidth),A=hs.ie?D.clientHeight:self.innerHeight;hs.page={width:C,height:A,scrollLeft:hs.ie?D.scrollLeft:pageXOffset,scrollTop:hs.ie?D.scrollTop:pageYOffset};return hs.page},getPosition:function(A){var B={x:A.offsetLeft,y:A.offsetTop};while(A.offsetParent){A=A.offsetParent;B.x+=A.offsetLeft;B.y+=A.offsetTop;if(A!=document.body&&A!=document.documentElement){B.x-=A.scrollLeft;B.y-=A.scrollTop}}return B},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},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){if(A){hs.garbageBin.appendChild(A)}hs.garbageBin.innerHTML=""},transit:function(A,D){var B=D||hs.getExpander();D=B;if(hs.upcoming){return false}else{hs.last=B}hs.removeEventListener(document,window.opera?"keypress":"keydown",hs.keyHandler);try{hs.upcoming=A;A.onclick()}catch(C){hs.last=hs.upcoming=null}try{D.close()}catch(C){}return false},previousOrNext:function(A,C){var B=hs.getExpander(A);if(B){return hs.transit(B.getAdjacentAnchor(C),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}var B=hs.getExpander();var C=null;switch(A.keyCode){case 70:if(B){B.doFullExpand()}return true;case 32: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){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{hs.previousOrNext(B.key,C)}return false}}return true},registerOverlay:function(A){hs.push(hs.overlays,hs.extend(A,{hsId:"hsId"+hs.idCounter++}))},getWrapperKey:function(C,B){var E,D=/^highslide-wrapper-([0-9]+)$/;E=C;while(E.parentNode){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()}}},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)){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"}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(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 }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",display:""})}hs.animate(E,{opacity:B?E.opacity:0},E.dur)}})()}}catch(C){}},addEventListener:function(A,C,B){if(A==document&&C=="ready"){hs.push(hs.onReady,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.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.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};hs.hideSelects=hs.ieLt7;hs.hideIframes=((window.opera&&hs.uaVersion<9)||navigator.vendor=="KDE"||(hs.ie&&hs.uaVersion<5.5))}},ready:function(){if(hs.isReady){return }hs.isReady=true;for(var A=0;A<hs.onReady.length;A++){hs.onReady[A]()}},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){try{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}}catch(B){}}}});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.uaVersion<525?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"wsize":return this.size+2*this.cb+this.p1+this.p2;case"fitsize":return this.clientSize-this.marginMin-this.marginMax;case"maxsize":return this.get("fitsize")-2*this.cb-this.p1-this.p2;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]},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==-1){this.tpos=(hs.page[this.wh]/2)+hs.page["scroll"+this.uclt]}},calcExpanded:function(){var A=this.exp;this.justify="auto";this.pos=this.tpos-this.cb+this.tb;if(this.maxHeight&&this.dim=="x"){A.maxWidth=Math.min(A.maxWidth||this.full,A.maxHeight*this.full/A.y.full)}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.marginMin=hs["margin"+this.uclt];this.scroll=hs.page["scroll"+this.uclt];this.clientSize=hs.page[this.wh]},setSize:function(A){var D=this.exp;if(D.isImage&&(D.useBox||hs.padToMinWidth)){this.imgSize=A;this.size=Math.max(this.size,this.imgSize);D.content.style[this.lt]=this.get("imgPad")+"px"}else{this.size=A}D.content.style[this.wh]=A+"px";D.wrapper.style[this.wh]=this.get("wsize")+"px";if(D.outline){D.outline.setPosition()}if(D.releaseMask){D.releaseMask.style[this.wh]=A+"px"}if(this.dim=="y"&&D.iDoc&&D.body.style.height!="auto"){try{D.iDoc.body.style.overflow="auto"}catch(B){}}if(D.isHtml){var C=D.scrollerDiv;if(this.sizeDiff===undefined){this.sizeDiff=D.innerContent["offset"+this.ucwh]-C["offset"+this.ucwh]}C.style[this.wh]=(this.size-this.sizeDiff)+"px";if(this.dim=="x"){D.mediumContent.style.width="auto"}if(D.body){D.body.style[this.wh]="auto"}}if(this.dim=="x"&&D.overlayBox){D.sizeOverlayBox(true)}},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.isReady){hs.addEventListener(document,"ready",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=[];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;for(var F=0;F<hs.expanders.length;F++){if(hs.expanders[F]&&hs.expanders[F].a==I){hs.expanders[F].focus();return false}}if(!hs.allowSimultaneousLoading){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[K]=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=this.pageOrigin||hs.getPosition(C);hs.getPageSize();var H=this.x=new hs.Dimension(this,"x");H.calcThumb();var G=this.y=new hs.Dimension(this,"y");G.calcThumb();this.wrapper=hs.createElement("div",{id:"highslide-wrapper-"+this.key,className:"highslide-wrapper "+this.wrapperClassName},{visibility:"hidden",position:"absolute",zIndex:hs.zIndexCounter+=2},null,true);this.wrapper.onmouseover=this.wrapper.onmouseout=hs.wrapperMouseHandler;if(this.contentType=="image"&&this.outlineWhileAnimating==2){this.outlineWhileAnimating=0}if(!this.outlineType){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){if(hs.debug){alert("Line "+A.lineNumber+": "+A.message)}else{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-1;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()};var C=this,A=this.x.get("loadingPos")+"px",B=this.y.get("loadingPos")+"px";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.uaVersion<525){hs.container.appendChild(A)}if(hs.ie&&hs.flushImgSize){A.src=null}A.src=this.src;this.showLoading()},htmlCreate:function(){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"}var D=this.innerContent=this.content;if(/(swf|iframe)/.test(this.objectType)){this.setObjContainerSize(D)}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,height:0,overflow:"hidden"},this.wrapper);this.mediumContent=hs.createElement("div",null,null,this.content,1);this.mediumContent.appendChild(D);hs.setStyles(D,{position:"relative",display:"block",direction:hs.lang.cssDirection||""});if(this.width){D.style.width=this.width+"px"}if(this.height){hs.setStyles(D,{height:this.height+"px",overflow:"hidden"})}if(D.offsetWidth<this.minWidth){D.style.width=this.minWidth+"px"}if(this.objectType=="ajax"&&!hs.getCacheBinding(this.a)){this.showLoading();var C=this;var B=new hs.Ajax(this.a,D);B.src=this.src;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 A=this.x,D=this.y;if(this.loading){hs.setStyles(this.loading,{top:"-9999px"});this.loading=null}if(this.isImage){A.full=this.content.width;D.full=this.content.height;hs.setStyles(this.content,{width:A.t+"px",height:D.t+"px"});this.wrapper.appendChild(this.content);hs.container.appendChild(this.wrapper)}else{if(this.htmlGetSize){this.htmlGetSize()}}A.calcBorders();D.calcBorders();hs.setStyles(this.wrapper,{left:(A.tpos+A.tb-A.cb)+"px",top:(D.tpos+A.tb-D.cb)+"px"});this.getOverlays();var B=A.full/D.full;A.calcExpanded();this.justify(A);D.calcExpanded();this.justify(D);if(this.isHtml){this.htmlSizeOperations()}if(this.overlayBox){this.sizeOverlayBox(0,1)}if(this.allowSizeReduction){if(this.isImage){this.correctRatio(B)}else{this.fitOverlayBox()}if(this.isImage&&this.x.full>(this.x.imgSize||this.x.size)){this.createFullExpand();if(this.overlays.length==1){this.sizeOverlayBox()}}}this.show()}catch(C){this.error(C)}},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+'"  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(!A.params){A.params={}}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.iDoc=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;hs.discardElement(this.ruler);if(B<0){B=0}var A=this.innerContent.offsetHeight-this.iframe.offsetHeight;if(this.iDoc&&!this.objectHeight&&!this.height&&this.y.size==this.y.full){try{this.iDoc.body.style.overflow="hidden"}catch(C){}}hs.setStyles(this.iframe,{width:Math.abs(this.x.size-B)+"px",height:Math.abs(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)}},justify:function(F,B){var G,H=F.target,E=F==this.x?"x":"y";var D=false;var A=F.exp.allowSizeReduction;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=Math.min(F.size,F.get(E=="y"?"fitsize":"maxsize"))}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(E=="y"?"fitsize":"maxsize")}}}}if(!B&&F.size<F.minSize){F.size=F.minSize;A=false}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}}E=this.fitOverlayBox(this.useBox?null:C,E);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,C){var A=this.x,D=this.y;if(this.overlayBox&&(this.isImage||this.allowHeightReduction)){while(D.size>this.minHeight&&A.size>this.minWidth&&D.get("wsize")>D.get("fitsize")){D.size-=10;if(B){A.size=D.size*B}this.sizeOverlayBox(0,1);C=true}}return C},show:function(){var A=this.x,B=this.y;this.doShowHide("hidden");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(B,H,C){if(this.outline&&!this.outlineWhileAnimating){if(B){this.outline.setPosition()}else{this.outline.destroy((this.isHtml&&this.preserveContent))}}if(!B){this.destroyOverlays()}var E=this,A=E.x,G=E.y,F=this.easing;if(!B){F=this.easingClose||F}var D=B?function(){if(E.outline){E.outline.table.style.visibility="visible"}setTimeout(function(){E.afterExpand()},50)}:function(){E.afterClose()};if(B){hs.setStyles(this.wrapper,{width:A.t+"px",height:G.t+"px"})}if(B&&this.isHtml){hs.setStyles(this.wrapper,{left:(A.tpos-A.cb+A.tb)+"px",top:(G.tpos-G.cb+G.tb)+"px"})}if(this.fadeInOut){hs.setStyles(this.wrapper,{opacity:B?0:1});hs.extend(H.wrapper,{opacity:B})}hs.animate(this.wrapper,H.wrapper,{duration:C,easing:F,step:function(K,I){if(E.outline&&E.outlineWhileAnimating&&I.prop=="top"){var J=B?I.pos:1-I.pos;var L={w:A.t+(A.get("wsize")-A.t)*J,h:G.t+(G.get("wsize")-G.t)*J,x:A.tpos+(A.pos-A.tpos)*J,y:G.tpos+(G.pos-G.tpos)*J};E.outline.setPosition(L,0,1)}if(E.isHtml){if(I.prop=="left"){E.mediumContent.style.left=(A.pos-K)+"px"}if(I.prop=="top"){E.mediumContent.style.top=(G.pos-K)+"px"}}}});hs.animate(this.content,H.content,C,F,D);if(B){this.wrapper.style.visibility="visible";this.content.style.visibility="visible";if(this.isHtml){this.innerContent.style.visibility="visible"}this.a.className+=" highslide-active-anchor"}},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(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()}},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"];return(A&&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},cancelLoading:function(){hs.discardElement(this.wrapper);hs.expanders[this.key]=null;if(this.loading){hs.loading.style.left="-9999px"}},writeCredits:function(){this.credits=hs.createElement("a",{href:hs.creditsHref,target:hs.creditsTarget,className:"highslide-credits",innerHTML:hs.lang.creditsText,title:hs.lang.creditsTitle});this.createOverlay({overlayId:this.credits,position:this.creditsPosition||"top left"})},getInline:function(types,addOverlay){for(var i=0;i<types.length;i++){var type=types[i],s=null;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){this[type]=hs.getNode(this.a["_"+type+"Id"]);if(!this[type]){var next=this.a.nextSibling;while(next&&!hs.isHsAnchor(next)){if((new RegExp("highslide-"+type)).test(next.className||null)){if(!next.id){this.a["_"+type+"Id"]=next.id="hsId"+hs.idCounter++}this[type]=hs.getNode(next.id);break}next=next.nextSibling}}}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;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+=2;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}}}if(this.outline){this.outline.table.style.zIndex=this.wrapper.style.zIndex-1}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)},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);this.wrapper.style.height=this.y.get("wsize")+"px"},close:function(){if(this.isClosing||!this.isExpanded){return }this.isClosing=true;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";this.isExpanded=false;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)}this.show()}catch(B){}},createOverlay:function(D){var C=D.overlayId;if(typeof C=="string"){C=hs.getNode(C)}if(D.html){C=hs.createElement("div",{innerHTML:D.html})}if(!C||typeof C=="string"){return }C.style.display="block";this.genOverlayBox();var B=D.width&&/^[0-9]+(px|%)$/.test(D.width)?D.width:"auto";if(/^(left|right)panel$/.test(D.position)&&!/^[0-9]+px$/.test(D.width)){B="200px"}var A=hs.createElement("div",{id:"hsId"+hs.idCounter++,hsId:D.hsId},{position:"absolute",visibility:"hidden",width:B,direction:hs.lang.cssDirection||"",opacity:0},this.overlayBox,true);A.appendChild(C);hs.extend(A,{opacity:1,offsetX:0,offsetY:0,dur:(D.fade===0||D.fade===false||(D.fade==2&&hs.ie))?0:250});hs.extend(A,D);if(this.gotOverlays){this.positionOverlay(A);if(!A.hideOnMouseOut||this.mouseIsOver){hs.animate(A,{opacity:A.opacity},A.dur)}}hs.push(this.overlays,hs.idCounter-1)},positionOverlay:function(C){var D=C.position||"middle center",B=C.offsetX,A=C.offsetY;if(C.parentNode!=this.overlayBox){this.overlayBox.appendChild(C)}if(/left$/.test(D)){C.style.left=B+"px"}if(/center$/.test(D)){hs.setStyles(C,{left:"50%",marginLeft:(B-Math.round(C.offsetWidth/2))+"px"})}if(/right$/.test(D)){C.style.right=-B+"px"}if(/^leftpanel$/.test(D)){hs.setStyles(C,{right:"100%",marginRight:this.x.cb+"px",top:-this.y.cb+"px",bottom:-this.y.cb+"px",overflow:"auto"});this.x.p1=C.offsetWidth}else{if(/^rightpanel$/.test(D)){hs.setStyles(C,{left:"100%",marginLeft:this.x.cb+"px",top:-this.y.cb+"px",bottom:-this.y.cb+"px",overflow:"auto"});this.x.p2=C.offsetWidth}}if(/^top/.test(D)){C.style.top=A+"px"}if(/^middle/.test(D)){hs.setStyles(C,{top:"50%",marginTop:(A-Math.round(C.offsetHeight/2))+"px"})}if(/^bottom/.test(D)){C.style.bottom=-A+"px"}if(/^above$/.test(D)){hs.setStyles(C,{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=C.offsetHeight}else{if(/^below$/.test(D)){hs.setStyles(C,{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=C.offsetHeight;C.style.position="absolute"}}},getOverlays:function(){this.getInline(["heading","caption"],true);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.useBox?this.width:null)||this.x.full)+"px",height:(this.y.size||this.y.full)+"px",visibility:"hidden",overflow:"hidden",zIndex:hs.ie?4:"auto"},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.zIndex||4;if(!C.hideOnMouseOut||this.mouseIsOver){C.style.visibility="visible";hs.setStyles(C,{visibility:"visible",display:""});hs.animate(C,{opacity:C.opacity},C.dur)}}},destroyOverlays:function(){if(!this.overlays.length){return }if(this.isHtml&&this.preserveContent){this.overlayBox.style.top="-9999px";hs.container.appendChild(this.overlayBox)}else{hs.discardElement(this.overlayBox)}},createFullExpand:function(){this.fullExpandLabel=hs.createElement("a",{href:"javascript:hs.expanders["+this.key+"].doFullExpand();",title:hs.lang.fullExpandTitle,className:"highslide-full-expand"});this.createOverlay({overlayId:this.fullExpandLabel,position:hs.fullExpandPosition,hideOnMouseOut:true,opacity:hs.fullExpandOpacity})},doFullExpand:function(){try{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")}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.sleep()}else{if(this.outline&&this.outlineWhileAnimating){this.outline.destroy()}hs.discardElement(this.wrapper)}if(hs.mask){hs.mask.style.display="none"}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(){var D;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{D=new XMLHttpRequest()}catch(B){try{D=new ActiveXObject("Msxml2.XMLHTTP")}catch(B){try{D=new ActiveXObject("Microsoft.XMLHTTP")}catch(B){this.onError()}}}var E=this;D.onreadystatechange=function(){if(E.xhr.readyState==4){if(E.id){E.getElementContent()}else{E.loadHTML()}}};var C=this.src;this.xhr=D;if(hs.forceAjaxReload){C=C.replace(/$/,(/\?/.test(C)?"&":"?")+"dummy="+(new Date()).getTime())}D.open("GET",C,true);D.setRequestHeader("X-Requested-With","XMLHttpRequest");D.setRequestHeader("Content-Type","application/x-www-form-urlencoded");D.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 C=this.cachedGet||this.xhr.responseText,B;if(this.pre){hs.cachedGets[this.src]=C}if(!hs.ie||hs.uaVersion>=5.5){C=C.replace(new RegExp("<link[^>]*>","gi"),"").replace(new RegExp("<script[^>]*>.*?<\/script>","gi"),"");if(this.iframe){var E=this.iframe.contentDocument;if(!E&&this.iframe.contentWindow){E=this.iframe.contentWindow.document}if(!E){var F=this;setTimeout(function(){F.loadHTML()},25);return }E.open();E.write(C);E.close();try{C=E.getElementById(this.id).innerHTML}catch(D){try{C=this.iframe.document.getElementById(this.id).innerHTML}catch(D){}}hs.discardElement(this.iframe)}else{B=/(<body[^>]*>|<\/body>)/ig;if(B.test(C)){C=C.split(B)[hs.ie?1:2]}}}hs.getElementByClass(this.content,"DIV","highslide-body").innerHTML=C;this.onLoad();for(var A in this){this[A]=null}}};hs.langDefaults=hs.lang;var HsExpander=hs.Expander;if(hs.ie&&window==window.top){(function(){try{document.documentElement.doScroll("left")}catch(A){setTimeout(arguments.callee,50);return }hs.ready()})()}hs.addEventListener(document,"DOMContentLoaded",hs.ready);hs.addEventListener(window,"load",hs.ready);hs.addEventListener(document,"ready",function(){if(hs.expandCursor){var C=hs.createElement("style",{type:"text/css"},null,document.getElementsByTagName("HEAD")[0]);function B(E,F){if(!hs.ie){C.appendChild(document.createTextNode(E+" {"+F+"}"))}else{var D=document.styleSheets[document.styleSheets.length-1];if(typeof (D.addRule)=="object"){D.addRule(E,F)}}}function A(D){return"expression( ( ( ignoreMe = document.documentElement."+D+" ? document.documentElement."+D+" : document.body."+D+" ) ) + 'px' );"}if(hs.expandCursor){B(".highslide img","cursor: url("+hs.graphicsDir+hs.expandCursor+"), pointer !important;")}}});hs.addEventListener(window,"resize",function(){hs.getPageSize()});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(document,"ready",hs.getAnchors);hs.addEventListener(window,"load",hs.preloadImages);hs.addEventListener(window,"load",hs.preloadAjax)}
