var hs={graphicsDir:"highslide/graphics/",restoreCursor:"zoomout.cur",expandSteps:10,expandDuration:250,restoreSteps:10,restoreDuration:250,marginLeft:15,marginRight:15,marginTop:15,marginBottom:15,zIndexCounter:1001,restoreTitle:"Click to close image, click and drag to move. Use arrow keys for next and previous.",loadingText:"Loading...",loadingTitle:"Click to cancel",loadingOpacity:0.75,focusTitle:"Click to bring to front",allowMultipleInstances:true,numberOfImagesToPreload:5,captionSlideSpeed:1,padToMinWidth:false,outlineWhileAnimating:2,outlineStartOffset:3,fullExpandTitle:"Expand to actual size",fullExpandPosition:"bottom right",fullExpandOpacity:1,showCredits:false,creditsText:"",creditsHref:"",creditsTitle:"",enableKeyListener:true,previousText:"Previous",nextText:"Next",moveText:"Move",closeText:"Close",closeTitle:"Click to close",resizeTitle:"Resize",allowWidthReduction:false,allowHeightReduction:true,preserveContent:true,objectLoadTime:"before",cacheAjax:true,captionId:null,spaceForCaption:30,slideshowGroup:null,minWidth:200,minHeight:200,allowSizeReduction:true,outlineType:"drop-shadow",wrapperClassName:"highslide-wrapper",preloadTheseImages:[],continuePreloading:true,expanders:[],overrides:["allowSizeReduction","outlineType","outlineWhileAnimating","spaceForCaption","captionId","captionText","captionEval","contentId","allowWidthReduction","allowHeightReduction","preserveContent","objectType","cacheAjax","objectWidth","objectHeight","objectLoadTime","swfObject","wrapperClassName","minWidth","minHeight","slideshowGroup"],overlays:[],faders:[],pendingOutlines:{},sleeping:[],preloadTheseAjax:[],cacheBindings:[],cachedGets:{},clones:{},ie:(document.all&&!window.opera),safari:navigator.userAgent.indexOf("Safari")!=-1,$:function(b){return document.getElementById(b)},push:function(d,c){d[d.length]=c},createElement:function(h,j,k,l,m){var g=document.createElement(h);if(j){hs.setAttribs(g,j)}if(m){hs.setStyles(g,{padding:0,border:"none",margin:0})}if(k){hs.setStyles(g,k)}if(l){l.appendChild(g)}return g},setAttribs:function(d,f){for(var e in f){d[e]=f[e]}},setStyles:function(e,h){for(var f in h){try{if(hs.ie&&f=="opacity"){e.style.filter="alpha(opacity="+(h[f]*100)+")"}else{e.style[f]=h[f]}}catch(g){}}},ieVersion:function(){arr=navigator.appVersion.split("MSIE");return parseFloat(arr[1])},getPageSize:function(){var f=document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body;var d=hs.ie?f.clientWidth:(document.documentElement.clientWidth||self.innerWidth),e=hs.ie?f.clientHeight:self.innerHeight;return{width:d,height:e,scrollLeft:hs.ie?f.scrollLeft:pageXOffset,scrollTop:hs.ie?f.scrollTop:pageYOffset}},position:function(d){var c={x:d.offsetLeft,y:d.offsetTop};while(d.offsetParent){d=d.offsetParent;c.x+=d.offsetLeft;c.y+=d.offsetTop;if(d!=document.body&&d!=document.documentElement){c.x-=d.scrollLeft;c.y-=d.scrollTop}}return c},expand:function(a,e,h){if(a.getParams){return e}try{new hs.Expander(a,e,h);return false}catch(g){return true}},htmlExpand:function(a,e,j){if(a.getParams){return e}for(var k=0;k<hs.sleeping.length;k++){if(hs.sleeping[k]&&hs.sleeping[k].a==a){hs.sleeping[k].awake();hs.sleeping[k]=null;return false}}try{hs.hasHtmlexpanders=true;new hs.Expander(a,e,j,"html");return false}catch(h){return true}},getElementByClass:function(g,e,h){var f=g.getElementsByTagName(e);for(i=0;i<f.length;i++){if(f[i].className==h){return f[i]}}},getSelfRendered:function(){var b='<div class="highslide-header"><ul><li class="highslide-previous"><a onclick="return hs.previous(this)" href="#">'+hs.previousText+'</a></li><li class="highslide-next"><a onclick="return hs.next(this)" href="#">'+hs.nextText+'</a></li><li class="highslide-move"><a href="#" onclick="return false">'+hs.moveText+'</a></li><li class="highslide-close"><a onclick="return hs.close(this)" title="'+hs.closeTitle+'" href="#">'+hs.closeText+'</a></li></ul></div><div class="highslide-body"></div><div class="highslide-footer"><div><span class="highslide-resize" title="'+hs.resizeTitle+'"><span></span></span></div></div>';return hs.createElement("div",{className:"highslide-html-content",innerHTML:b})},getCacheBinding:function(a){for(i=0;i<hs.cacheBindings.length;i++){if(hs.cacheBindings[i][0]==a){var c=hs.cacheBindings[i][1];hs.cacheBindings[i][1]=c.cloneNode(1);return c}}},preloadAjax:function(g){var e=document.getElementsByTagName("A");var a,h;for(i=0;i<e.length;i++){a=e[i];h=hs.isHsAnchor(a);if(h&&h[0]=="hs.htmlExpand"&&hs.getParam(a,"objectType")=="ajax"&&hs.getParam(a,"cacheAjax")){hs.push(hs.preloadTheseAjax,a)}}hs.preloadAjaxElement(0)},preloadAjaxElement:function(g){if(!hs.preloadTheseAjax[g]){return}var a=hs.preloadTheseAjax[g];var h=hs.getNode(hs.getParam(a,"contentId"));if(!h){h=hs.getSelfRendered()}var f=new hs.Ajax(a,h,1);f.onError=function(){};f.onLoad=function(){hs.push(hs.cacheBindings,[a,h]);hs.preloadAjaxElement(g+1)};f.run()},focusTopmost:function(){var c=0,d=-1;for(i=0;i<hs.expanders.length;i++){if(hs.expanders[i]){if(hs.expanders[i].wrapper.style.zIndex&&hs.expanders[i].wrapper.style.zIndex>c){c=hs.expanders[i].wrapper.style.zIndex;d=i}}}if(d==-1){hs.focusKey=-1}else{hs.expanders[d].focus()}},getAdjacentAnchor:function(l,j){var h=document.getElementsByTagName("A"),g={},k=-1,m=0;for(i=0;i<h.length;i++){if(hs.isHsAnchor(h[i])&&((hs.expanders[l].slideshowGroup==hs.getParam(h[i],"slideshowGroup")))){g[m]=h[i];if(hs.expanders[l]&&h[i]==hs.expanders[l].a){k=m}m++}}return g[k+j]},getParam:function(a,e){a.getParams=a.onclick;var f=a.getParams();a.getParams=null;return(f&&typeof f[e]!="undefined")?f[e]:hs[e]},getSrc:function(a){var d=hs.getParam(a,"src");if(d){return d}return a.href},getNode:function(f){var h=hs.$(f),g=hs.clones[f],a={};if(!h&&!g){return null}if(!g){g=h.cloneNode(true);g.id="";hs.clones[f]=g;return h}else{return g.cloneNode(true)}},purge:function(h){if(!hs.ie){return}var k=h.attributes,j,a,d;if(k){a=k.length;for(j=0;j<a;j+=1){d=k[j].name;if(typeof h[d]==="function"){h[d]=null}}}k=h.childNodes;if(k){a=k.length;for(j=0;j<a;j+=1){hs.purge(h.childNodes[j])}}},previousOrNext:function(e,h){var j=hs.getExpander(e);try{var g=hs.upcoming=hs.getAdjacentAnchor(j.key,h);g.onclick()}catch(k){}try{j.close()}catch(k){}return false},previous:function(b){return hs.previousOrNext(b,-1)},next:function(b){return hs.previousOrNext(b,1)},keyHandler:function(d){if(!d){d=window.event}if(!d.target){d.target=d.srcElement}if(d.target.form){return}var c=null;switch(d.keyCode){case 34:case 39:case 40:c=1;break;case 33:case 37:case 38:c=-1;break;case 27:case 13:c=0}if(c!==null){hs.removeEventListener(document,"keydown",hs.keyHandler);try{if(!hs.enableKeyListener){return true}}catch(d){}if(d.preventDefault){d.preventDefault()}else{d.returnValue=false}if(c==0){try{hs.getExpander().close()}catch(d){}return false}else{return hs.previousOrNext(hs.focusKey,c)}}else{return true}},registerOverlay:function(b){hs.push(hs.overlays,b)},getWrapperKey:function(e){var f,d=/^highslide-wrapper-([0-9]+)$/;f=e;while(f.parentNode){if(f.id&&f.id.match(d)){return f.id.replace(d,"$1")}f=f.parentNode}f=e;while(f.parentNode){if(f.tagName&&hs.isHsAnchor(f)){for(key=0;key<hs.expanders.length;key++){exp=hs.expanders[key];if(exp&&exp.a==f){return key}}}f=f.parentNode}},getExpander:function(d){try{if(!d){return hs.expanders[hs.focusKey]}if(typeof d=="number"){return hs.expanders[d]}if(typeof d=="string"){d=hs.$(d)}return hs.expanders[hs.getWrapperKey(d)]}catch(c){}},isHsAnchor:function(a){return(a.onclick&&a.onclick.toString().replace(/\s/g," ").match(/hs.(htmlE|e)xpand/))},cleanUp:function(){for(i=0;i<hs.expanders.length;i++){if(hs.expanders[i]&&hs.expanders[i].isExpanded){hs.focusTopmost()}}},mouseClickHandler:function(j){if(!j){j=window.event}if(j.button>1){return true}if(!j.target){j.target=j.srcElement}var e=j.target;while(e.parentNode&&!(/highslide-(image|move|html|resize)/.test(e.className))){e=e.parentNode}var h=hs.getExpander(e);if(h&&j.type=="mousedown"){if(j.target.form){return}var g=e.className.match(/highslide-(image|move|resize)/);if(g){hs.dragArgs={exp:h,type:g[1],left:h.x.min,width:h.x.span,top:h.y.min,height:h.y.span,clickX:j.clientX,clickY:j.clientY};if(hs.dragArgs.type=="image"){h.content.style.cursor="move"}hs.addEventListener(document,"mousemove",hs.dragHandler);if(j.preventDefault){j.preventDefault()}if(/highslide-(image|html)-blur/.test(h.content.className)){h.focus();hs.hasFocused=true}return false}else{if(/highslide-html/.test(e.className)&&hs.focusKey!=h.key){h.focus();h.redoShowHide()}}}else{if(j.type=="mouseup"){hs.removeEventListener(document,"mousemove",hs.dragHandler);if(hs.dragArgs){if(hs.dragArgs.type=="image"){hs.dragArgs.exp.content.style.cursor=hs.styleRestoreCursor}var k=(Math.abs(hs.dragArgs.dX)+Math.abs(hs.dragArgs.dY)>0);if(!k&&!hs.hasFocused&&!/(move|resize)/.test(hs.dragArgs.type)){h.close()}else{if(k||(!k&&hs.hasHtmlexpanders)){hs.dragArgs.exp.redoShowHide()}}hs.hasFocused=false;hs.dragArgs=null}else{if(/highslide-image-blur/.test(e.className)){e.style.cursor=hs.styleRestoreCursor}}}}},dragHandler:function(d){if(!hs.dragArgs){return}if(!d){d=window.event}var c=hs.dragArgs.exp;if(c.iframe&&c.setIframeRelease){c.setIframeRelease()}hs.dragArgs.dX=d.clientX-hs.dragArgs.clickX;hs.dragArgs.dY=d.clientY-hs.dragArgs.clickY;if(hs.dragArgs.type=="resize"){c.resize(hs.dragArgs)}else{c.move(hs.dragArgs)}return false},addEventListener:function(f,h,e){try{f.addEventListener(h,e,false)}catch(g){try{f.detachEvent("on"+h,e);f.attachEvent("on"+h,e)}catch(g){f["on"+h]=e}}},removeEventListener:function(f,h,e){try{f.removeEventListener(h,e,false)}catch(g){try{f.detachEvent("on"+h,e)}catch(g){f["on"+h]=null}}},preloadFullImage:function(c){if(hs.continuePreloading&&hs.preloadTheseImages[c]&&hs.preloadTheseImages[c]!="undefined"){var d=document.createElement("img");d.onload=function(){hs.preloadFullImage(c+1)};d.src=hs.preloadTheseImages[c]}},preloadImages:function(k){if(k&&typeof k!="object"){hs.numberOfImagesToPreload=k}var a,l,m=0;var h=document.getElementsByTagName("A");for(i=0;i<h.length;i++){a=h[i];l=hs.isHsAnchor(a);if(l&&l[0]=="hs.expand"){if(m<hs.numberOfImagesToPreload){hs.preloadTheseImages[m]=hs.getSrc(a);m++}}}new hs.Outline(hs.outlineType,function(){hs.preloadFullImage(0)});var j=hs.createElement("img",{src:hs.graphicsDir+hs.restoreCursor})},genContainer:function(){if(!hs.container){hs.container=hs.createElement("div",null,{position:"absolute",left:0,top:0,width:"100%",zIndex:hs.zIndexCounter},document.body,true);hs.loading=hs.createElement("a",{className:"highslide-loading",title:hs.loadingTitle,innerHTML:hs.loadingText},{position:"absolute",opacity:hs.loadingOpacity,left:"-9999px",zIndex:1},hs.container);hs.clearing=hs.createElement("div",null,{clear:"both",paddingTop:"1px"},null,true)}},fade:function(j,h,k,f,g){if(g==null){var g=k>h?1:-1}h=parseFloat(h);j.style.visibility=(h<=0)?"hidden":"visible";if(h<0||(g==1&&h>k)){return}if(f==null){f=hs.faders.length}if(typeof(j.i)!="undefined"&&j.i!=f){clearTimeout(hs.faders[j.i]);h=j.tempOpacity}j.i=f;j.tempOpacity=h;j.style.visibility=(h<=0)?"hidden":"visible";hs.setStyles(j,{opacity:h});hs.faders[f]=setTimeout(function(){hs.fade(j,Math.round((h+0.1*g)*100)/100,k,f,g)},25)},close:function(d){try{hs.getExpander(d).close()}catch(c){}return false}};hs.Outline=function(j,l){this.onLoad=l;this.outlineType=j;var h=hs.ieVersion(),k;this.hasAlphaImageLoader=hs.ie&&h>=5.5&&h<7;if(!j){if(l){l()}return}hs.genContainer();this.table=hs.createElement("table",{cellSpacing:0},{visibility:"hidden",position:"absolute",borderCollapse:"collapse"},hs.container,true);this.tbody=hs.createElement("tbody",null,null,this.table,1);this.td=[];for(var g=0;g<=8;g++){if(g%3==0){k=hs.createElement("tr",null,{height:"auto"},this.tbody,true)}this.td[g]=hs.createElement("td",null,null,k,true);var m=g!=4?{lineHeight:0,fontSize:0}:{position:"relative"};hs.setStyles(this.td[g],m)}this.td[4].className=j;this.preloadGraphic()};hs.Outline.prototype={preloadGraphic:function(){var d=hs.graphicsDir+"outlines/"+this.outlineType+".png";var e=hs.safari?hs.container:null;this.graphic=hs.createElement("img",null,{position:"absolute",left:"-9999px",top:"-9999px"},e,true);var f=this;this.graphic.onload=function(){f.onGraphicLoad()};this.graphic.src=d},onGraphicLoad:function(){var l=this.offset=this.graphic.width/4,j=[[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],m={height:(2*l)+"px",width:(2*l)+"px"};for(var g=0;g<=8;g++){if(j[g]){if(this.hasAlphaImageLoader){var h=(g==1||g==7)?"100%":this.graphic.width+"px";var k=hs.createElement("div",null,{width:"100%",height:"100%",position:"relative",overflow:"hidden"},this.td[g],true);hs.createElement("div",null,{filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale, src='"+this.graphic.src+"')",position:"absolute",width:h,height:this.graphic.height+"px",left:(j[g][0]*l)+"px",top:(j[g][1]*l)+"px"},k,true)}else{hs.setStyles(this.td[g],{background:"url("+this.graphic.src+") "+(j[g][0]*l)+"px "+(j[g][1]*l)+"px"})}if(window.opera&&(g==3||g==5)){hs.createElement("div",null,m,this.td[g],true)}hs.setStyles(this.td[g],m)}}hs.pendingOutlines[this.outlineType]=this;if(this.onLoad){this.onLoad()}},setPosition:function(k,h,j,g,m,l){if(l){this.table.style.visibility=(m>=4*this.offset)?"visible":"hidden"}this.table.style.left=(h-this.offset)+"px";this.table.style.top=(j-this.offset)+"px";this.table.style.width=(g+2*(k.offsetBorderW+this.offset))+"px";g+=2*(k.offsetBorderW-this.offset);m+=+2*(k.offsetBorderH-this.offset);this.td[4].style.width=g>=0?g+"px":0;this.td[4].style.height=m>=0?m+"px":0;if(this.hasAlphaImageLoader){this.td[3].style.height=this.td[5].style.height=this.td[4].style.height}},destroy:function(d){if(d){this.table.style.visibility="hidden"}else{hs.purge(this.table);try{this.table.parentNode.removeChild(this.table)}catch(c){}}}};hs.Expander=function(n,r,v,e){this.a=n;this.custom=v;this.contentType=e||"image";this.isHtml=(e=="html");this.isImage=!this.isHtml;hs.continuePreloading=false;hs.genContainer();var a=this.key=hs.expanders.length;for(i=0;i<hs.overrides.length;i++){var u=hs.overrides[i];this[u]=r&&typeof r[u]!="undefined"?r[u]:hs[u]}var t=this.thumb=(r?hs.$(r.thumbnailId):null)||n.getElementsByTagName("IMG")[0]||n;this.thumbsUserSetId=t.id||n.id;for(i=0;i<hs.expanders.length;i++){if(hs.expanders[i]&&hs.expanders[i].a==n){hs.expanders[i].focus();return false}}for(i=0;i<hs.expanders.length;i++){if(hs.expanders[i]&&hs.expanders[i].thumb!=t&&!hs.expanders[i].onLoadStarted){hs.expanders[i].cancelLoading()}}hs.expanders[this.key]=this;if(!hs.allowMultipleInstances){try{hs.expanders[a-1].close()}catch(q){}try{hs.expanders[hs.focusKey].close()}catch(q){}}this.overlays=[];var p=hs.position(t);this.thumbWidth=t.width?t.width:t.offsetWidth;this.thumbHeight=t.height?t.height:t.offsetHeight;this.thumbLeft=p.x;this.thumbTop=p.y;this.thumbOffsetBorderW=(this.thumb.offsetWidth-this.thumbWidth)/2;this.thumbOffsetBorderH=(this.thumb.offsetHeight-this.thumbHeight)/2;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=function(b){try{hs.expanders[a].wrapperMouseHandler(b)}catch(b){}};this.wrapper.onmouseout=function(b){try{hs.expanders[a].wrapperMouseHandler(b)}catch(b){}};if(this.contentType=="image"&&this.outlineWhileAnimating==2){this.outlineWhileAnimating=0}if(hs.pendingOutlines[this.outlineType]){this.connectOutline();this[this.contentType+"Create"]()}else{if(!this.outlineType){this[this.contentType+"Create"]()}else{this.displayLoading();var s=this;new hs.Outline(this.outlineType,function(){s.connectOutline();s[s.contentType+"Create"]()})}}};hs.Expander.prototype={connectOutline:function(e,f){var d=hs.pendingOutlines[this.outlineType];this.objOutline=d;d.table.style.zIndex=this.wrapper.style.zIndex;hs.pendingOutlines[this.outlineType]=null},displayLoading:function(){if(this.onLoadStarted||this.loading){return}this.originalCursor=this.a.style.cursor;this.a.style.cursor="wait";this.loading=hs.loading;this.loading.href="javascript:hs.expanders["+this.key+"].cancelLoading()";this.loading.style.top=(this.thumbTop+(this.thumbHeight-this.loading.offsetHeight)/2)+"px";var c=this,d=(this.thumbLeft+this.thumbOffsetBorderW+(this.thumbWidth-this.loading.offsetWidth)/2)+"px";setTimeout(function(){if(c.loading){c.loading.style.left=d}},100)},imageCreate:function(){var c=this;var d=document.createElement("img");this.content=d;d.onload=function(){try{c.contentLoaded()}catch(a){}};d.className="highslide-image";d.style.visibility="hidden";d.style.display="block";d.style.position="absolute";d.style.maxWidth="none";d.style.zIndex=3;d.title=hs.restoreTitle;if(hs.safari){hs.container.appendChild(d)}d.src=hs.getSrc(this.a);this.displayLoading()},htmlCreate:function(){this.tempContainer=hs.createElement("div",{className:this.wrapperClassName},{padding:"0 "+hs.marginRight+"px 0 "+hs.marginLeft+"px",visibility:"hidden"},hs.container);this.content=hs.getCacheBinding(this.a);if(!this.content){this.content=hs.getNode(this.contentId)}if(!this.content){this.content=hs.getSelfRendered()}this.innerContent=this.content;if(this.swfObject||this.objectType=="iframe"){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 d=new hs.Ajax(this.a,this.innerContent);var c=this;d.onLoad=function(){c.contentLoaded()};d.onError=function(){location.href=hs.getSrc(this.a)};d.run()}else{if(this.objectType=="iframe"&&this.objectLoadTime=="before"){this.writeExtendedContent()}else{this.contentLoaded()}}},setIframeRelease:function(){try{var c=this.iframe.contentDocument||this.iframe.contentWindow.document;hs.addEventListener(c,"mouseup",function(){hs.mouseClickHandler({type:"mouseup",target:1})})}catch(d){}this.setIframeRelease=null},contentLoaded:function(){try{if(!this.content){return}if(this.onLoadStarted){return}else{this.onLoadStarted=true}if(this.loading){this.loading.style.left="-9999px";this.loading=null;this.a.style.cursor=this.originalCursor||""}this.marginBottom=hs.marginBottom;if(this.isImage){this.newWidth=this.content.width;this.newHeight=this.content.height;this.fullExpandWidth=this.newWidth;this.fullExpandHeight=this.newHeight;this.content.style.width=this.thumbWidth+"px";this.content.style.height=this.thumbHeight+"px";this.getCaption()}else{if(this.htmlGetSize){this.htmlGetSize()}}this.wrapper.appendChild(this.content);this.content.style.position="relative";if(this.caption){this.wrapper.appendChild(this.caption)}this.wrapper.style.left=this.thumbLeft+"px";this.wrapper.style.top=this.thumbTop+"px";hs.container.appendChild(this.wrapper);this.offsetBorderW=(this.content.offsetWidth-this.thumbWidth)/2;this.offsetBorderH=(this.content.offsetHeight-this.thumbHeight)/2;var u=hs.marginRight+2*this.offsetBorderW;this.marginBottom+=2*this.offsetBorderH;var q=this.newWidth/this.newHeight;var w=this.allowSizeReduction?this.minWidth:this.newWidth;var e=this.allowSizeReduction?this.minHeight:this.newHeight;var t={x:"auto",y:"auto"};var r=hs.getPageSize();this.x={min:parseInt(this.thumbLeft)-this.offsetBorderW+this.thumbOffsetBorderW,span:this.newWidth,minSpan:(this.newWidth<w&&!hs.padToMinWidth)?this.newWidth:w,marginMin:hs.marginLeft,marginMax:u,scroll:r.scrollLeft,clientSpan:r.width,thumbSpan:this.thumbWidth};var v=this.x.min+parseInt(this.thumbWidth);this.x=this.justify(this.x);this.y={min:parseInt(this.thumbTop)-this.offsetBorderH+this.thumbOffsetBorderH,span:this.newHeight,minSpan:this.newHeight<e?this.newHeight:e,marginMin:hs.marginTop,marginMax:this.marginBottom,scroll:r.scrollTop,clientSpan:r.height,thumbSpan:this.thumbHeight};var x=this.y.min+parseInt(this.thumbHeight);this.y=this.justify(this.y);if(this.isHtml){this.htmlSizeOperations()}if(this.isImage){this.correctRatio(q)}var n=this.x;var p=this.y;this.show()}catch(s){window.location.href=hs.getSrc(this.a)}},setObjContainerSize:function(e,f){var c=hs.getElementByClass(e,"DIV","highslide-body");if(this.objectType=="iframe"){if(this.objectWidth){c.style.width=this.objectWidth+"px"}if(this.objectHeight){c.style.height=this.objectHeight+"px"}}if(this.swfObject){c.style.width=this.swfObject.attributes.width+"px";c.style.height=this.swfObject.attributes.height+"px"}},writeExtendedContent:function(g){if(this.hasExtendedContent){return}var j=this;this.body=hs.getElementByClass(this.innerContent,"DIV","highslide-body");if(this.objectType=="iframe"){this.displayLoading();this.ruler=hs.clearing.cloneNode(1);this.body.appendChild(this.ruler);this.newWidth=this.innerContent.offsetWidth;if(!this.objectWidth){this.objectWidth=this.ruler.offsetWidth}var m=this.innerContent.offsetHeight-this.body.offsetHeight;var l=this.objectHeight||(hs.getPageSize()).height-m-hs.marginTop-hs.marginBottom;var k=(hs.ie&&this.objectLoadTime=="before")?'onload="try {hs.expanders['+this.key+'].contentLoaded()} catch(e){}"':"";var h=hs.ie?'<iframe name="hsIframe'+this.key+'" '+k+"/>":"iframe";this.iframe=hs.createElement(h,{name:"hsIframe"+this.key,frameBorder:0,allowTransparency:true},{width:this.objectWidth+"px",height:l+"px"},this.body);if(this.objectLoadTime=="before"){if(!hs.ie){this.iframe.onload=function(){try{j.contentLoaded()}catch(a){}}}}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.body.id=this.body.id||"hs-flash-id-"+this.key;this.swfObject.write(this.body.id)}}this.hasExtendedContent=true},htmlGetSize:function(){if(this.iframe&&!this.objectHeight){try{var g=this.iframe.contentDocument||this.iframe.contentWindow.document;var e=g.createElement("div");e.style.clear="both";g.body.appendChild(e);var f=e.offsetTop;if(hs.ie){f+=parseInt(g.body.currentStyle.marginTop)+parseInt(g.body.currentStyle.marginBottom)-1}this.iframe.style.height=this.body.style.height=f+"px"}catch(h){this.iframe.style.height="300px"}}this.innerContent.appendChild(hs.clearing);if(!this.newWidth){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)}},correctIframeSize:function(){var c=this.innerContent.offsetWidth-this.ruler.offsetWidth;if(c<0){c=0}var d=this.innerContent.offsetHeight-this.body.offsetHeight;hs.setStyles(this.iframe,{width:(this.x.span-c)+"px",height:(this.y.span-d)+"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.swfObject&&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);hs.container.removeChild(this.tempContainer);hs.setStyles(this.innerContent,{border:"none",width:"auto",height:"auto"});var h=hs.getElementByClass(this.innerContent,"DIV","highslide-body");if(h&&!this.swfObject&&this.objectType!="iframe"){var f=h;h=hs.createElement(f.nodeName,null,{overflow:"hidden"},null,true);f.parentNode.insertBefore(h,f);h.appendChild(hs.clearing);h.appendChild(f);var k=this.innerContent.offsetWidth-h.offsetWidth;var g=this.innerContent.offsetHeight-h.offsetHeight;h.removeChild(hs.clearing);var j=hs.safari||navigator.vendor=="KDE"?1:0;hs.setStyles(h,{width:(this.x.span-k-j)+"px",height:(this.y.span-g)+"px",overflow:"auto",position:"relative"});if(j&&f.offsetHeight>h.offsetHeight){h.style.width=(parseInt(h.style.width)+j)+"px"}this.scrollingContent=h;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)}},justify:function(j){var h,k=j==this.x?"x":"y";var f=false;var g=true;j.min=Math.round(j.min-((j.span-j.thumbSpan)/2));if(j.min<j.scroll+j.marginMin){j.min=j.scroll+j.marginMin;f=true}if(j.span<j.minSpan){j.span=j.minSpan;g=false}if(j.min+j.span>j.scroll+j.clientSpan-j.marginMax){if(f&&g){j.span=j.clientSpan-j.marginMin-j.marginMax}else{if(j.span<j.clientSpan-j.marginMin-j.marginMax){j.min=j.scroll+j.clientSpan-j.span-j.marginMin-j.marginMax}else{j.min=j.scroll+j.marginMin;if(g){j.span=j.clientSpan-j.marginMin-j.marginMax}}}}if(j.span<j.minSpan){j.span=j.minSpan;g=false}if(j.min<j.marginMin){tmpMin=j.min;j.min=j.marginMin;if(g){j.span=j.span-(j.min-tmpMin)}}return j},correctRatio:function(m){var g=this.x;var j=this.y;var k=false;if(g.span/j.span>m){var h=g.span;g.span=j.span*m;if(g.span<g.minSpan){if(hs.padToMinWidth){g.imgSpan=g.span}g.span=g.minSpan;if(!g.imgSpan){j.span=g.span/m}}k=true}else{if(g.span/j.span<m){var l=j.span;j.span=g.span/m;k=true}}if(k){g.min=parseInt(this.thumbLeft)-this.offsetBorderW+this.thumbOffsetBorderW;g.minSpan=g.span;this.x=this.justify(g);j.min=parseInt(this.thumbTop)-this.offsetBorderH+this.thumbOffsetBorderH;j.minSpan=j.span;this.y=this.justify(j)}},show:function(){var b={x:this.x.min-20,y:this.y.min-20,w:this.x.span+40,h:this.y.span+40+this.spaceForCaption};hs.hideSelects=(hs.ie&&hs.ieVersion()<7);if(hs.hideSelects){this.showHideElements("SELECT","hidden",b)}hs.hideIframes=((window.opera&&navigator.appVersion<9)||navigator.vendor=="KDE"||(hs.ie&&hs.ieVersion()<5.5));if(hs.hideIframes){this.showHideElements("IFRAME","hidden",b)}if(this.x.imgSpan){this.content.style.margin="0 auto"}this.changeSize(1,{x:this.thumbLeft+this.thumbOffsetBorderW-this.offsetBorderW,y:this.thumbTop+this.thumbOffsetBorderH-this.offsetBorderH,w:this.thumbWidth,h:this.thumbHeight,imgW:this.thumbWidth,o:hs.outlineStartOffset},{x:this.x.min,y:this.y.min,w:this.x.span,h:this.y.span,imgW:this.x.imgSpan,o:this.objOutline?this.objOutline.offset:0},hs.expandDuration,hs.expandSteps)},changeSize:function(w,t,s,E,v){if(w&&this.objOutline&&!this.outlineWhileAnimating){this.objOutline.setPosition(this,this.x.min,this.y.min,this.x.span,this.y.span)}else{if(!w&&this.objOutline){if(this.outlineWhileAnimating){this.objOutline.setPosition(this,t.x,t.y,t.w,t.h)}else{this.objOutline.destroy((this.isHtml&&this.preserveContent))}}}if(!w){var C=this.wrapper.childNodes.length;for(i=C-1;i>=0;i--){var D=this.wrapper.childNodes[i];if(D!=this.content){hs.purge(D);this.wrapper.removeChild(D)}}}var x=(s.w-t.w)/v,z=(s.imgW-t.imgW)/v,F=(s.h-t.h)/v,y=(s.x-t.x)/v,A=(s.y-t.y)/v,u=(s.o-t.o)/v,n,B=this;for(i=1;i<=v;i++){t.w+=x;t.imgW+=z;t.h+=F;t.x+=y;t.y+=A;t.o+=u;n=Math.round(i*(E/v));(function(){var c=i<v?t:s,a={},b=i;for(var d in c){a[d]=c[d]}setTimeout(function(){if(w&&b==1){B.content.style.visibility="visible";B.a.className+=" highslide-active-anchor"}B.setSize(a)},n)})()}if(w){setTimeout(function(){if(B.objOutline){B.objOutline.table.style.visibility="visible"}},n);setTimeout(function(){if(B.caption){B.writeCaption()}B.afterExpand()},n+50)}else{setTimeout(function(){B.afterClose()},n)}},setSize:function(f){try{if(this.isHtml){hs.setStyles(this.content,{width:f.w+"px",height:f.h+"px"});hs.setStyles(this.mediumContent,{left:(this.x.min-f.x)+"px",top:(this.y.min-f.y)+"px"});this.innerContent.style.visibility="visible"}else{this.wrapper.style.width=(f.w+2*this.offsetBorderW)+"px";this.content.style.width=(f.imgW||f.w)+"px";this.content.style.height=f.h+"px"}if(this.objOutline&&this.outlineWhileAnimating){var d=this.objOutline.offset-f.o;this.objOutline.setPosition(this,f.x+d,f.y+d,f.w-2*d,f.h-2*d,1)}hs.setStyles(this.wrapper,{visibility:"visible",left:f.x+"px",top:f.y+"px"})}catch(e){window.location.href=hs.getSrc(this.a)}},afterExpand:function(){this.isExpanded=true;this.focus();if(this.isHtml&&this.objectLoadTime=="after"){this.writeExtendedContent()}if(this.isHtml){if(this.iframe){try{var f=this,d=this.iframe.contentDocument||this.iframe.contentWindow.document;hs.addEventListener(d,"mousedown",function(){if(hs.focusKey!=f.key){f.focus()}})}catch(e){}if(hs.ie&&typeof this.isClosing!="boolean"){this.iframe.style.width=(this.objectWidth-1)+"px"}}}this.createOverlays();if(hs.showCredits){this.writeCredits()}if(this.fullExpandWidth>this.x.span){this.createFullExpand()}if(!this.caption){this.prepareNextOutline()}},prepareNextOutline:function(){var d=this.key;var c=this.outlineType;new hs.Outline(c,function(){try{hs.expanders[d].preloadNext()}catch(a){}})},preloadNext:function(){var c=hs.getAdjacentAnchor(this.key,1);if(c.onclick.toString().match(/hs\.expand/)){var d=hs.createElement("img",{src:hs.getSrc(c)})}},cancelLoading:function(){hs.expanders[this.key]=null;this.a.style.cursor=this.originalCursor;if(this.loading){hs.loading.style.left="-9999px"}},writeCredits:function(){var b=hs.createElement("a",{href:hs.creditsHref,className:"highslide-credits",innerHTML:hs.creditsText,title:hs.creditsTitle});this.createOverlay({overlayId:b,position:"top left"})},getCaption:function(){if(!this.captionId&&this.thumbsUserSetId){this.captionId="caption-for-"+this.thumbsUserSetId}if(this.captionId){this.caption=hs.getNode(this.captionId)}if(!this.caption&&!this.captionText&&this.captionEval){try{this.captionText=eval(this.captionEval)}catch(e){}}if(!this.caption&&this.captionText){this.caption=hs.createElement("div",{className:"highslide-caption",innerHTML:this.captionText})}if(!this.caption){var next=this.a.nextSibling;while(next&&!hs.isHsAnchor(next)){if(/highslide-caption/.test(next.className)){this.caption=next.cloneNode(1);break}next=next.nextSibling}}if(this.caption){this.marginBottom+=this.spaceForCaption}},writeCaption:function(){try{hs.setStyles(this.wrapper,{width:this.wrapper.offsetWidth+"px",height:this.wrapper.offsetHeight+"px"});hs.setStyles(this.caption,{visibility:"hidden",marginTop:hs.safari?0:"-"+this.y.span+"px"});this.caption.className+=" highslide-display-block";var h,k=this;if(hs.ie&&(hs.ieVersion()<6||document.compatMode=="BackCompat")){h=this.caption.offsetHeight}else{var e=hs.createElement("div",{innerHTML:this.caption.innerHTML},null,null,true);this.caption.innerHTML="";this.caption.appendChild(e);h=this.caption.childNodes[0].offsetHeight;this.caption.innerHTML=this.caption.childNodes[0].innerHTML}hs.setStyles(this.caption,{overflow:"hidden",height:0,zIndex:2,marginTop:0});this.wrapper.style.height="auto";if(hs.captionSlideSpeed){var m=(Math.round(h/50)||1)*hs.captionSlideSpeed}else{this.placeCaption(h,1);return}for(var n=h%m,p=0;n<=h;n+=m,p+=10){(function(){var a=n,b=(n==h)?1:0;setTimeout(function(){k.placeCaption(a,b)},p)})()}}catch(l){}},placeCaption:function(e,d){if(!this.caption){return}this.caption.style.height=e+"px";this.caption.style.visibility="visible";this.y.span=this.wrapper.offsetHeight-2*this.offsetBorderH;var f=this.objOutline;if(f){f.td[4].style.height=(this.wrapper.offsetHeight-2*this.objOutline.offset)+"px";if(f.hasAlphaImageLoader){f.td[3].style.height=f.td[5].style.height=f.td[4].style.height}}if(d){this.prepareNextOutline()}},showHideElements:function(s,t,p){var q=document.getElementsByTagName(s);if(q){for(i=0;i<q.length;i++){if(q[i].nodeName==s){var m=q[i].getAttribute("hidden-by");if(t=="visible"&&m){m=m.replace("["+this.key+"]","");q[i].setAttribute("hidden-by",m);if(!m){q[i].style.visibility="visible"}}else{if(t=="hidden"){var k=hs.position(q[i]);k.w=q[i].offsetWidth;k.h=q[i].offsetHeight;var l=(k.x+k.w<p.x||k.x>p.x+p.w);var n=(k.y+k.h<p.y||k.y>p.y+p.h);var r=hs.getWrapperKey(q[i]);if(!l&&!n&&r!=this.key){if(!m){q[i].setAttribute("hidden-by","["+this.key+"]")}else{if(!m.match("["+this.key+"]")){q[i].setAttribute("hidden-by",m+"["+this.key+"]")}}q[i].style.visibility="hidden"}else{if(m=="["+this.key+"]"||hs.focusKey==r){q[i].setAttribute("hidden-by","");q[i].style.visibility="visible"}else{if(m&&m.match("["+this.key+"]")){q[i].setAttribute("hidden-by",m.replace("["+this.key+"]",""))}}}}}}}}},focus:function(){this.wrapper.style.zIndex=hs.zIndexCounter++;for(i=0;i<hs.expanders.length;i++){if(hs.expanders[i]&&i==hs.focusKey){var b=hs.expanders[i];b.content.className+=" highslide-"+b.contentType+"-blur";if(b.caption){b.caption.className+=" highslide-caption-blur"}if(b.isImage){b.content.style.cursor=hs.ie?"hand":"pointer";b.content.title=hs.focusTitle}}}if(this.objOutline){this.objOutline.table.style.zIndex=this.wrapper.style.zIndex}this.content.className="highslide-"+this.contentType;if(this.caption){this.caption.className=this.caption.className.replace(" highslide-caption-blur","")}if(this.isImage){this.content.title=hs.restoreTitle;hs.styleRestoreCursor=window.opera?"pointer":"url("+hs.graphicsDir+hs.restoreCursor+"), pointer";if(hs.ie&&hs.ieVersion()<6){hs.styleRestoreCursor="hand"}this.content.style.cursor=hs.styleRestoreCursor}hs.focusKey=this.key;hs.addEventListener(document,"keydown",hs.keyHandler)},move:function(b){this.x.min=b.left+b.dX;this.y.min=b.top+b.dY;hs.setStyles(this.wrapper,{left:this.x.min+"px",top:this.y.min+"px"});if(this.objOutline){this.objOutline.setPosition(this,this.x.min,this.y.min,this.x.span,this.y.span)}},resize:function(d){this.x.span=d.width+d.dX;this.y.span=d.height+d.dY;if(this.x.span<this.minWidth){this.x.span=this.minWidth}if(this.y.span<this.minHeight){this.y.span=this.minHeight}var f=this.scrollerDiv;if(typeof this.wDiff=="undefined"){this.wDiff=this.innerContent.offsetWidth-f.offsetWidth;this.hDiff=this.innerContent.offsetHeight-f.offsetHeight}hs.setStyles(f,{width:(this.x.span-this.wDiff)+"px",height:(this.y.span-this.hDiff)+"px"});hs.setStyles(this.content,{width:this.x.span+"px",height:this.y.span+"px"});this.mediumContent.style.width="auto";hs.setStyles(this.body,{width:"auto",height:"auto"});for(var e=0;e<this.overlays.length;e++){this.positionOverlay(this.overlays[e])}if(this.objOutline){this.objOutline.setPosition(this,this.x.min,this.y.min,this.x.span,this.y.span)}},close:function(){if(this.isClosing||!this.isExpanded){return}this.isClosing=true;hs.removeEventListener(document,"keydown",hs.keyHandler);try{if(this.isHtml){this.htmlPrepareClose()}this.content.style.cursor="default";this.changeSize(0,{x:this.x.min,y:this.y.min,w:this.x.span,h:parseInt(this.content.style.height),imgW:this.x.imgSpan,o:this.objOutline?this.objOutline.offset:0},{x:this.thumbLeft-this.offsetBorderW+this.thumbOffsetBorderW,y:this.thumbTop-this.offsetBorderH+this.thumbOffsetBorderH,w:this.thumbWidth,h:this.thumbHeight,imgW:this.thumbWidth,o:hs.outlineStartOffset},hs.restoreDuration,hs.restoreSteps)}catch(b){this.afterClose()}},htmlPrepareClose:function(){if(/Macintosh.+Gecko/.test(navigator.userAgent)){if(!hs.mask){hs.mask=hs.createElement("div",null,{position:"absolute"},hs.container)}hs.setStyles(hs.mask,{width:this.x.span+"px",height:this.y.span+"px",left:this.x.min+"px",top:this.y.min+"px",display:"block"})}if(this.swfObject){try{hs.$(this.swfObject.getAttribute("id")).StopPlay()}catch(b){}}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(b){}}this.body.innerHTML=""},sleep:function(){if(this.objOutline){this.objOutline.table.className="highslide-display-none"}this.wrapper.className+=" highslide-display-none";hs.push(hs.sleeping,this)},awake:function(){hs.expanders[this.key]=this;if(!hs.allowMultipleInstances&&hs.focusKey!=this.key){try{hs.expanders[hs.focusKey].close()}catch(d){}}this.wrapper.className=this.wrapper.className.replace(/highslide-display-none/,"");var c=hs.zIndexCounter++;this.wrapper.style.zIndex=c;this.isClosing=false;if(o=this.objOutline){if(!this.outlineWhileAnimating){o.table.style.visibility="hidden"}o.table.className=null;o.table.style.zIndex=c}this.show()},createOverlay:function(f){var d=f.overlayId;if(typeof d=="string"){d=hs.getNode(d)}if(!d||typeof d=="string"){return}var e=hs.createElement("div",null,{left:0,top:0,position:"absolute",zIndex:3,visibility:"hidden"},this.wrapper,true);if(f.opacity){hs.setStyles(d,{opacity:f.opacity})}d.className+=" highslide-display-block";e.appendChild(d);e.hsPos=f.position;this.positionOverlay(e);if(f.hideOnMouseOut){e.setAttribute("hideOnMouseOut",true)}if(!f.opacity){f.opacity=1}e.setAttribute("opacity",f.opacity);hs.fade(e,0,f.opacity);hs.push(this.overlays,e)},positionOverlay:function(m){var j=this.offsetBorderW;var h=this.x.span-m.offsetWidth;var k=this.offsetBorderH;var g=parseInt(this.content.style.height)-m.offsetHeight;var l=m.hsPos||"center center";if(/^bottom/.test(l)){k+=g}if(/^center/.test(l)){k+=g/2}if(/right$/.test(l)){j+=h}if(/center$/.test(l)){j+=h/2}m.style.left=j+"px";m.style.top=k+"px"},createOverlays:function(){for(i=0;i<hs.overlays.length;i++){var b=hs.overlays[i];if((!b.thumbnailId&&!b.slideshowGroup)||b.thumbnailId==this.thumbsUserSetId||b.slideshowGroup===this.slideshowGroup){if(this.isImage||(this.isHtml&&b.useOnHtml)){this.createOverlay(b)}}}},createFullExpand:function(){var a=hs.createElement("a",{href:"javascript:hs.expanders["+this.key+"].doFullExpand();",title:hs.fullExpandTitle,className:"highslide-full-expand"});this.fullExpandLabel=a;this.createOverlay({overlayId:a,position:hs.fullExpandPosition,hideOnMouseOut:true,opacity:hs.fullExpandOpacity})},doFullExpand:function(){try{hs.purge(this.fullExpandLabel);this.fullExpandLabel.parentNode.removeChild(this.fullExpandLabel);this.focus();this.x.min=parseInt(this.wrapper.style.left)-(this.fullExpandWidth-this.content.width)/2;if(this.x.min<hs.marginLeft){this.x.min=hs.marginLeft}this.wrapper.style.left=this.x.min+"px";hs.setStyles(this.content,{width:this.fullExpandWidth+"px",height:this.fullExpandHeight+"px"});this.x.span=this.fullExpandWidth;this.wrapper.style.width=(this.x.span+2*this.offsetBorderW)+"px";this.y.span=this.wrapper.offsetHeight-2*this.offsetBorderH;if(this.objOutline){this.objOutline.setPosition(this,this.x.min,this.y.min,this.x.span,this.y.span)}for(var d=0;d<this.overlays.length;d++){this.positionOverlay(this.overlays[d])}this.redoShowHide()}catch(c){window.location.href=this.content.src}},redoShowHide:function(){var b={x:parseInt(this.wrapper.style.left)-20,y:parseInt(this.wrapper.style.top)-20,w:this.content.offsetWidth+40,h:this.content.offsetHeight+40+this.spaceForCaption};if(hs.hideSelects){this.showHideElements("SELECT","hidden",b)}if(hs.hideIframes){this.showHideElements("IFRAME","hidden",b)}},wrapperMouseHandler:function(e){if(!e){e=window.event}var g=/mouseover/i.test(e.type);if(!e.target){e.target=e.srcElement}if(!e.relatedTarget){e.relatedTarget=g?e.fromElement:e.toElement}if(hs.getExpander(e.relatedTarget)==this||hs.dragArgs){return}for(i=0;i<this.overlays.length;i++){var k=this.overlays[i];if(k.getAttribute("hideOnMouseOut")){var h=g?0:k.getAttribute("opacity"),j=g?k.getAttribute("opacity"):0;hs.fade(k,h,j)}}},afterClose:function(){this.a.className=this.a.className.replace("highslide-active-anchor","");if(hs.hideSelects){this.showHideElements("SELECT","visible")}if(hs.hideIframes){this.showHideElements("IFRAME","visible")}if(this.isHtml&&this.preserveContent){this.sleep()}else{if(this.objOutline&&this.outlineWhileAnimating){this.objOutline.destroy()}hs.purge(this.wrapper);if(hs.ie&&hs.ieVersion()<5.5){this.wrapper.innerHTML=""}else{this.wrapper.parentNode.removeChild(this.wrapper)}}if(hs.mask){hs.mask.style.display="none"}hs.expanders[this.key]=null;hs.cleanUp()}};hs.Ajax=function(a,f,e){this.a=a;this.content=f;this.pre=e};hs.Ajax.prototype={run:function(){this.src=hs.getSrc(this.a);if(this.src.match("#")){var e=this.src.split("#");this.src=e[0];this.id=e[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(d){try{this.xmlHttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(d){try{this.xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(d){this.onError()}}}var f=this;this.xmlHttp.onreadystatechange=function(){if(f.xmlHttp.readyState==4){if(f.id){f.getElementContent()}else{f.loadHTML()}}};this.xmlHttp.open("GET",this.src,true);this.xmlHttp.send(null)},getElementContent:function(){hs.genContainer();var d=window.opera?{src:this.src}:null;this.iframe=hs.createElement("iframe",d,{position:"absolute",left:"-9999px"},hs.container);try{this.loadHTML()}catch(e){var f=this;setTimeout(function(){f.loadHTML()},1)}},loadHTML:function(){var e=this.cachedGet||this.xmlHttp.responseText;if(this.pre){hs.cachedGets[this.src]=e}if(!hs.ie||hs.ieVersion()>=5.5){e=e.replace(/\s/g," ");if(this.iframe){e=e.replace(new RegExp("<link[^>]*>","gi"),"");e=e.replace(new RegExp("<script[^>]*>.*?<\/script>","gi"),"");var f=this.iframe.contentDocument||this.iframe.contentWindow.document;f.open();f.write(e);f.close();try{e=f.getElementById(this.id).innerHTML}catch(d){try{e=this.iframe.document.getElementById(this.id).innerHTML}catch(d){}}hs.container.removeChild(this.iframe)}else{e=e.replace(new RegExp("^.*?<body[^>]*>(.*?)</body>.*?$","i"),"$1")}}hs.getElementByClass(this.content,"DIV","highslide-body").innerHTML=e;this.onLoad()}};var HsExpander=hs.Expander;hs.addEventListener(document,"mousedown",hs.mouseClickHandler);hs.addEventListener(document,"mouseup",hs.mouseClickHandler);hs.addEventListener(window,"load",hs.preloadImages);hs.addEventListener(window,"load",hs.preloadAjax);
