hs.allowWidthReduction=false;hs.allowHeightReduction=true;hs.objectLoadTime="before";hs.cacheAjax=true;hs.preserveContent=true;hs.push(hs.overrides,"contentId");hs.push(hs.overrides,"allowWidthReduction");hs.push(hs.overrides,"allowHeightReduction");hs.push(hs.overrides,"objectType");hs.push(hs.overrides,"objectWidth");hs.push(hs.overrides,"objectHeight");hs.push(hs.overrides,"objectLoadTime");hs.push(hs.overrides,"swfObject");hs.push(hs.overrides,"cacheAjax");hs.push(hs.overrides,"preserveContent");hs.preloadTheseAjax=[];hs.cacheBindings=[];hs.sleeping=[];hs.clearing=hs.createElement("div",null,{clear:"both",borderTop:"1px solid white"},null,true);hs.htmlExpand=function(A,E,C){if(!hs.$(E.contentId)&&!hs.clones[E.contentId]){return true}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}}try{hs.hasHtmlexpanders=true;new HsExpander(A,E,C,"html");return false}catch(D){return true}};hs.identifyContainer=function(B,A){for(i=0;i<B.childNodes.length;i++){if(B.childNodes[i].className==A){return B.childNodes[i]}}};hs.preloadAjax=function(C){var D=document.getElementsByTagName("A");var A,B;for(i=0;i<D.length;i++){A=D[i];B=hs.isHsAnchor(A);if(B&&B[0]=="hs.htmlExpand"&&hs.getParam(A,"objectType")=="ajax"&&hs.getParam(A,"cacheAjax")){hs.push(hs.preloadTheseAjax,A)}}hs.preloadAjaxElement(0)};hs.preloadAjaxElement=function(C){if(!hs.preloadTheseAjax[C]){return }var A=hs.preloadTheseAjax[C];var B=hs.getNode(hs.getParam(A,"contentId"));var D=new HsAjax(A,B);D.onError=function(){};D.onLoad=function(){hs.push(hs.cacheBindings,[A,B]);hs.preloadAjaxElement(C+1)};D.run()};hs.getCacheBinding=function(A){for(i=0;i<hs.cacheBindings.length;i++){if(hs.cacheBindings[i][0]==A){var B=hs.cacheBindings[i][1];hs.cacheBindings[i][1]=B.cloneNode(1);return B}}};HsExpander.prototype.htmlCreate=function(){this.tempContainer=hs.createElement("div",null,{padding:"0 "+hs.marginRight+"px 0 "+hs.marginLeft+"px",position:"absolute",left:0,top:0},document.body);this.innerContent=hs.getCacheBinding(this.a);if(!this.innerContent){this.innerContent=hs.getNode(this.contentId)}this.setObjContainerSize(this.innerContent);this.tempContainer.appendChild(this.innerContent);hs.setStyles(this.innerContent,{position:"relative",visibility:"hidden"});this.innerContent.className+=" highslide-display-block";this.content=hs.createElement("div",{className:"highslide-html"},{position:"relative",zIndex:3,overflow:"hidden",width:this.thumbWidth+"px",height:this.thumbHeight+"px"});if(this.objectType=="ajax"&&!hs.getCacheBinding(this.a)){var A=new HsAjax(this.a,this.innerContent);var B=this;A.onLoad=function(){B.onLoad()};A.onError=function(){location.href=hs.getSrc(this.a)};A.run()}else{this.onLoad()}};HsExpander.prototype.htmlGetSize=function(){this.innerContent.appendChild(hs.clearing);this.newWidth=this.innerContent.offsetWidth;this.newHeight=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)}};HsExpander.prototype.setObjContainerSize=function(A,C){if(this.swfObject||this.objectType=="iframe"){var B=hs.identifyContainer(A,"highslide-body");B.style.width=this.swfObject?this.swfObject.attributes.width+"px":this.objectWidth+"px";B.style.height=this.swfObject?this.swfObject.attributes.height+"px":this.objectHeight+"px"}};HsExpander.prototype.writeExtendedContent=function(){if(this.hasExtendedContent){return }this.objContainer=hs.identifyContainer(this.innerContent,"highslide-body");if(this.objectType=="iframe"){if(hs.ie&&hs.ieVersion()<5.5){window.location.href=hs.getSrc(this.a)}var A=this.key;this.iframe=hs.createElement("iframe",{frameBorder:0},{width:this.objectWidth+"px",height:this.objectHeight+"px"},this.objContainer);if(hs.safari){this.iframe.src=null}this.iframe.src=hs.getSrc(this.a);if(this.objectLoadTime=="after"){this.correctIframeSize()}}else{if(this.swfObject){this.objContainer.id=this.objContainer.id||"hs-flash-id-"+this.key;this.swfObject.write(this.objContainer.id)}}this.hasExtendedContent=true};HsExpander.prototype.correctIframeSize=function(){var B=this.innerContent.offsetWidth-this.objContainer.offsetWidth;if(B<0){B=0}var A=this.innerContent.offsetHeight-this.objContainer.offsetHeight;hs.setStyles(this.iframe,{width:(this.x.span-B)+"px",height:(this.y.span-A)+"px"});hs.setStyles(this.objContainer,{width:this.iframe.style.width,height:this.iframe.style.height});this.scrollingContent=this.iframe;this.scrollerDiv=this.scrollingContent};HsExpander.prototype.htmlSizeOperations=function(){this.setObjContainerSize(this.innerContent);if(this.objectLoadTime=="before"){this.writeExtendedContent()}if(this.x.span<this.newWidth&&!this.allowWidthReduction){this.x.span=this.newWidth}if(this.y.span<this.newHeight&&!this.allowHeightReduction){this.y.span=this.newHeight}this.scrollerDiv=this.innerContent;this.mediumContent=hs.createElement("div",null,{width:this.x.span+"px",position:"relative",left:(this.x.min-this.thumbLeft)+"px",top:(this.y.min-this.thumbTop)+"px"},this.content,true);this.mediumContent.appendChild(this.innerContent);document.body.removeChild(this.tempContainer);hs.setStyles(this.innerContent,{border:"none",width:"auto",height:"auto"});var E=hs.identifyContainer(this.innerContent,"highslide-body");if(E&&!this.swfObject&&this.objectType!="iframe"){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.span-C-D)+"px",height:(this.y.span-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.span<this.mediumContent.offsetHeight){this.scrollerDiv=this.content}if(this.scrollerDiv==this.content&&!this.allowWidthReduction&&this.objectType!="iframe"){this.x.span+=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)}};HsExpander.prototype.htmlSetSize=function(C,D,A,H,G,B){try{hs.setStyles(this.wrapper,{visibility:"visible",left:A+"px",top:H+"px"});hs.setStyles(this.content,{width:C+"px",height:D+"px"});hs.setStyles(this.mediumContent,{left:(this.x.min-A)+"px",top:(this.y.min-H)+"px"});this.innerContent.style.visibility="visible";if(this.objOutline&&this.outlineWhileAnimating){var F=this.objOutline.offset-G;this.positionOutline(A+F,H+F,C-2*F,D-2*F,1)}}catch(E){window.location.href=hs.getSrc(this.a)}};HsExpander.prototype.reflow=function(){hs.setStyles(this.scrollerDiv,{height:"auto",width:"auto"});this.x.span=this.innerContent.offsetWidth;this.y.span=this.innerContent.offsetHeight;var A={width:this.x.span+"px",height:this.y.span+"px"};hs.setStyles(this.content,A);this.positionOutline(this.x.min,this.y.min,this.x.span,this.y.span)};HsExpander.prototype.htmlOnClose=function(){if(this.objectLoadTime=="after"&&!this.preserveContent){this.destroyObject()}if(this.scrollerDiv&&this.scrollerDiv!=this.scrollingContent){this.scrollerDiv.style.overflow="hidden"}if(this.swfObject){hs.$(this.swfObject.getAttribute("id")).StopPlay()}};HsExpander.prototype.destroyObject=function(){this.objContainer.innerHTML=""};HsExpander.prototype.sleep=function(){if(this.objOutline){this.objOutline.table.className="highslide-display-none"}this.wrapper.className+=" highslide-display-none";hs.push(hs.sleeping,this)};HsExpander.prototype.awake=function(){hs.expanders[this.key]=this;this.wrapper.className=this.wrapper.className.replace(/highslide-display-none/,"");var A=hs.zIndexCounter++;this.wrapper.style.zIndex=A;if(o=this.objOutline){if(!this.outlineWhileAnimating){o.table.style.visibility="hidden"}o.table.className=null;o.table.style.zIndex=A}this.show()};HsAjax=function(A,B){this.a=A;this.content=B};HsAjax.prototype.run=function(){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()}}}this.src=hs.getSrc(this.a);if(this.src.match("#")){var A=this.src.split("#");this.src=A[0];this.id=A[1]}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.send(null)};HsAjax.prototype.getElementContent=function(){hs.genContainer();var B=window.opera?{src:this.src}:null;this.iframe=hs.createElement("iframe",B,{position:"absolute",left:"-9999px"},hs.container);try{this.loadHTML()}catch(A){var C=this;setTimeout(function(){C.loadHTML()},1)}};HsAjax.prototype.loadHTML=function(){var A=this.xmlHttp.responseText;if(!hs.ie||hs.ieVersion()>=5.5){A=A.replace(/\s/g," ");if(this.iframe){A=A.replace(new RegExp("<link[^>]*>","gi"),"");A=A.replace(new RegExp("<script[^>]*>.*?<\/script>","gi"),"");var C=this.iframe.contentDocument||this.iframe.contentWindow.document;C.open();C.write(A);C.close();try{A=C.getElementById(this.id).innerHTML}catch(B){try{A=this.iframe.document.getElementById(this.id).innerHTML}catch(B){}}hs.container.removeChild(this.iframe)}else{A=A.replace(new RegExp("^.*?<body[^>]*>(.*?)</body>.*?$","i"),"$1")}}hs.identifyContainer(this.content,"highslide-body").innerHTML=A;this.onLoad()};hs.addEventListener(window,"load",hs.preloadAjax);
