var hs={graphicsDir:"http://www.snackpoint.com/images/highslide/",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:"Klik om te annuleren",loadingOpacity:0.75,focusTitle:"Klik om te vergroten",allowMultipleInstances:true,numberOfImagesToPreload:5,captionSlideSpeed:1,padToMinWidth:false,outlineWhileAnimating:2,outlineStartOffset:3,fullExpandTitle:"Originele formaat",fullExpandPosition:"bottom right",fullExpandOpacity:1,showCredits:false,creditsText:"",creditsHref:"",creditsTitle:"",enableKeyListener:true,transitions:[],dimmingOpacity:0,previousText:"Vorige",nextText:"Volgende",moveText:"Verplaats",closeText:"Sluiten",closeTitle:"Klik om te sluiten",resizeTitle:"Hervormen",allowWidthReduction:false,allowHeightReduction:true,preserveContent:true,objectLoadTime:"before",cacheAjax:true,anchor:"auto",align:"center",targetX:null,targetY:null,captionId:null,spaceForCaption:30,slideshowGroup:null,minWidth:200,minHeight:200,allowSizeReduction:true,outlineType:"drop-shadow",wrapperClassName:"highslide-wrapper",preloadTheseImages:[],continuePreloading:true,expanders:[],overrides:["allowSizeReduction","anchor","align","targetX","targetY","outlineType","outlineWhileAnimating","spaceForCaption","captionId","captionText","captionEval","transitions","dimmingOpacity","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(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.setAttribs(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},setAttribs:function(b,c){for(var a in c){b[a]=c[a]}},setStyles:function(b,c){for(var a in c){try{if(hs.ie&&a=="opacity"){b.style.filter="alpha(opacity="+(c[a]*100)+")"}else{b.style[a]=c[a]}}catch(d){}}},ieVersion:function(){arr=navigator.appVersion.split("MSIE");return parseFloat(arr[1])},getPageSize:function(){var h=document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body;var d=document.body;var g=(window.innerWidth&&window.scrollMaxX)?window.innerWidth+window.scrollMaxX:(d.scrollWidth>d.offsetWidth?d.scrollWidth:d.offsetWidth),c=(window.innerHeight&&window.scrollMaxY)?window.innerHeight+window.scrollMaxY:(d.scrollHeight>d.offsetHeight?d.scrollHeight:d.offsetHeight),e=hs.ie?h.scrollWidth:(document.documentElement.clientWidth||self.innerWidth);pageHeight=hs.ie?h.clientHeight:(document.documentElement.clientHeight||self.innerHeight);var f=hs.ie?h.clientWidth:(document.documentElement.clientWidth||self.innerWidth),a=hs.ie?h.clientHeight:self.innerHeight;return{pageWidth:g<e?e:g,pageHeight:c<pageHeight?pageHeight:c,width:f,height:a,scrollLeft:hs.ie?h.scrollLeft:pageXOffset,scrollTop:hs.ie?h.scrollTop:pageYOffset}},position: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(b,f,c){if(b.getParams){return f}try{new hs.Expander(b,f,c);return false}catch(d){return true}},htmlExpand:function(b,g,d){if(b.getParams){return g}for(var c=0;c<hs.sleeping.length;c++){if(hs.sleeping[c]&&hs.sleeping[c].a==b){hs.sleeping[c].awake();hs.sleeping[c]=null;return false}}try{hs.hasHtmlexpanders=true;new hs.Expander(b,g,d,"html");return false}catch(f){return true}},getElementByClass:function(d,b,c){var a=d.getElementsByTagName(b);for(i=0;i<a.length;i++){if(a[i].className==c){return a[i]}}},getSelfRendered:function(){var a='<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:a})},setClickEvents:function(){var b=document.getElementsByTagName("A");for(i=0;i<b.length;i++){if(/^highslide$/.test(b[i].rel)){if(hs.fireEvent(hs,"onSetClickEvent",{element:b[i]})){b[i].onclick=function(){return hs.expand(this)}}b[i].removeAttribute("rel")}var a=/^highslide-(ajax|iframe)$/.exec(b[i].rel);if(a){(function(){var c=a[1];if(hs.fireEvent(hs,"onSetClickEvent",{element:b[i],type:c})){b[i].onclick=function(){return hs.htmlExpand(this,{objectType:c})}}})();b[i].removeAttribute("rel")}}if(!hs.pageLoaded){setTimeout(hs.setClickEvents,50)}},getCacheBinding:function(b){for(i=0;i<hs.cacheBindings.length;i++){if(hs.cacheBindings[i][0]==b){var d=hs.cacheBindings[i][1];hs.cacheBindings[i][1]=d.cloneNode(1);return d}}},preloadAjax:function(d){var f=document.getElementsByTagName("A");var b,c;for(i=0;i<f.length;i++){b=f[i];c=hs.isHsAnchor(b);if(c&&c[0]=="hs.htmlExpand"&&hs.getParam(b,"objectType")=="ajax"&&hs.getParam(b,"cacheAjax")){hs.push(hs.preloadTheseAjax,b)}}hs.preloadAjaxElement(0)},preloadAjaxElement:function(d){if(!hs.preloadTheseAjax[d]){return}var b=hs.preloadTheseAjax[d];var c=hs.getNode(hs.getParam(b,"contentId"));if(!c){c=hs.getSelfRendered()}var e=new hs.Ajax(b,c,1);e.onError=function(){};e.onLoad=function(){hs.push(hs.cacheBindings,[b,c]);hs.preloadAjaxElement(d+1)};e.run()},focusTopmost:function(){var b=0,a=-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>b){b=hs.expanders[i].wrapper.style.zIndex;a=i}}}if(a==-1){hs.focusKey=-1}else{hs.expanders[a].focus()}},getAdjacentAnchor:function(d,f){var a=document.getElementsByTagName("A"),b={},e=-1,c=0;for(i=0;i<a.length;i++){if(hs.isHsAnchor(a[i])&&((hs.expanders[d].slideshowGroup==hs.getParam(a[i],"slideshowGroup")))){b[c]=a[i];if(hs.expanders[d]&&a[i]==hs.expanders[d].a){e=c}c++}}return b[e+f]},getParam:function(b,d){b.getParams=b.onclick;var c=b.getParams();b.getParams=null;return(c&&typeof c[d]!="undefined")?c[d]:hs[d]},getSrc:function(b){var c=hs.getParam(b,"src");if(c){return c}return b.href},getNode:function(e){var c=hs.$(e),d=hs.clones[e],b={};if(!c&&!d){return null}if(!d){d=c.cloneNode(true);d.id="";hs.clones[e]=d;return c}else{return d.cloneNode(true)}},purge:function(f){if(!hs.ie){return}var c=f.attributes,e,b,g;if(c){b=c.length;for(e=0;e<b;e+=1){g=c[e].name;if(typeof f[g]==="function"){f[g]=null}}}c=f.childNodes;if(c){b=c.length;for(e=0;e<b;e+=1){hs.purge(f.childNodes[e])}}},dim:function(a){if(!hs.dimmer){hs.dimmer=hs.createElement("div",{className:"highslide-dimming",onclick:function(){hs.close()}},null,hs.container,true);hs.addEventListener(window,"resize",hs.setDimmerSize)}hs.dimmer.style.display="";hs.setDimmerSize();hs.dimmer.owner=a.key;hs.fade(hs.dimmer,0,a.dimmingOpacity)},unDim:function(a){if(!hs.dimmer){return}if(typeof a!="undefined"&&a!=hs.dimmer.owner){return}if(hs.upcoming&&hs.getParam(hs.upcoming,"dimmingOpacity")){return}hs.fade(hs.dimmer,hs.dimmer.opacity,0);setTimeout(function(){hs.dimmer.style.display="none"},250)},setDimmerSize:function(){if(!hs.dimmer){return}var a=hs.getPageSize();hs.setStyles(hs.dimmer,{width:a.pageWidth+"px",height:a.pageHeight+"px"})},previousOrNext:function(b,f){var d=hs.getExpander(b);try{var a=hs.upcoming=hs.getAdjacentAnchor(d.key,f);a.onclick()}catch(c){}try{d.close()}catch(c){}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(a.target.form){return}if(!hs.fireEvent(hs,"onKeyDown",a)){return}var b=null;switch(a.keyCode){case 34:case 39:case 40:b=1;break;case 33:case 37:case 38:b=-1;break;case 27:case 13:b=0}if(b!==null){hs.removeEventListener(document,"keydown",hs.keyHandler);try{if(!hs.enableKeyListener){return true}}catch(a){}if(a.preventDefault){a.preventDefault()}else{a.returnValue=false}if(b==0){try{hs.getExpander().close()}catch(a){}return false}else{return hs.previousOrNext(hs.focusKey,b)}}else{return true}},registerOverlay:function(a){hs.push(hs.overlays,a)},getWrapperKey:function(a){var c,b=/^highslide-wrapper-([0-9]+)$/;c=a;while(c.parentNode){if(c.id&&c.id.match(b)){return c.id.replace(b,"$1")}c=c.parentNode}c=a;while(c.parentNode){if(c.tagName&&hs.isHsAnchor(c)){for(key=0;key<hs.expanders.length;key++){exp=hs.expanders[key];if(exp&&exp.a==c){return key}}}c=c.parentNode}},getExpander:function(a){try{if(!a){return hs.expanders[hs.focusKey]}if(typeof a=="number"){return hs.expanders[a]}if(typeof a=="string"){a=hs.$(a)}return hs.expanders[hs.getWrapperKey(a)]}catch(b){}},isHsAnchor:function(b){return(b.onclick&&b.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()}}},fireEvent:function(c,a,b){return c&&c[a]?(c[a](c,b)!==false):true},mouseClickHandler:function(d){if(!d){d=window.event}if(d.button>1){return true}if(!d.target){d.target=d.srcElement}var b=d.target;while(b.parentNode&&!(/highslide-(image|move|html|resize)/.test(b.className))){b=b.parentNode}var f=hs.getExpander(b);if(f&&d.type=="mousedown"){if(d.target.form){return}var a=b.className.match(/highslide-(image|move|resize)/);if(a){hs.dragArgs={exp:f,type:a[1],left:f.x.min,width:f.x.span,top:f.y.min,height:f.y.span,clickX:d.clientX,clickY:d.clientY};if(hs.dragArgs.type=="image"){f.content.style.cursor="move"}hs.addEventListener(document,"mousemove",hs.dragHandler);if(d.preventDefault){d.preventDefault()}if(/highslide-(image|html)-blur/.test(f.content.className)){f.focus();hs.hasFocused=true}return false}else{if(/highslide-html/.test(b.className)&&hs.focusKey!=f.key){f.focus();f.redoShowHide()}}}else{if(d.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 c=(Math.abs(hs.dragArgs.dX)+Math.abs(hs.dragArgs.dY)>0);if(!c&&!hs.hasFocused&&!/(move|resize)/.test(hs.dragArgs.type)){if(hs.fireEvent(f,"onImageClick")){f.close()}}else{if(c||(!c&&hs.hasHtmlexpanders)){hs.dragArgs.exp.redoShowHide()}}if(c){hs.fireEvent(f,"onDrop",hs.dragArgs)}if(c){hs.setDimmerSize()}hs.hasFocused=false;hs.dragArgs=null}else{if(/highslide-image-blur/.test(b.className)){b.style.cursor=hs.styleRestoreCursor}}}}},dragHandler:function(a){if(!hs.dragArgs){return}if(!a){a=window.event}var b=hs.dragArgs.exp;if(b.iframe&&b.setIframeRelease){b.setIframeRelease()}hs.dragArgs.dX=a.clientX-hs.dragArgs.clickX;hs.dragArgs.dY=a.clientY-hs.dragArgs.clickY;if(!hs.fireEvent(b,"onDrag",hs.dragArgs)){return false}if(hs.dragArgs.type=="resize"){b.resize(hs.dragArgs)}else{b.move(hs.dragArgs)}return false},addEventListener:function(a,c,b){try{a.addEventListener(c,b,false)}catch(d){try{a.detachEvent("on"+c,b);a.attachEvent("on"+c,b)}catch(d){a["on"+c]=b}}},removeEventListener:function(a,c,b){try{a.removeEventListener(c,b,false)}catch(d){try{a.detachEvent("on"+c,b)}catch(d){a["on"+c]=null}}},preloadFullImage:function(b){if(hs.continuePreloading&&hs.preloadTheseImages[b]&&hs.preloadTheseImages[b]!="undefined"){var a=document.createElement("img");a.onload=function(){hs.preloadFullImage(b+1)};a.src=hs.preloadTheseImages[b]}},preloadImages:function(e){if(e&&typeof e!="object"){hs.numberOfImagesToPreload=e}var b,d,c=0;var g=document.getElementsByTagName("A");for(i=0;i<g.length;i++){b=g[i];d=hs.isHsAnchor(b);if(d&&d[0]=="hs.expand"){if(c<hs.numberOfImagesToPreload){hs.preloadTheseImages[c]=hs.getSrc(b);c++}}}new hs.Outline(hs.outlineType,function(){hs.preloadFullImage(0)});var f=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);hs.fireEvent(this,"onActivate")}},fade:function(d,e,c,b,a){if(a==null){var a=c>e?1:-1}e=parseFloat(e);d.style.visibility=(e<=0)?"hidden":"visible";if(e<0||(a==1&&e>c)){return}if(b==null){b=hs.faders.length}if(typeof(d.i)!="undefined"&&d.i!=b){clearTimeout(hs.faders[d.i]);e=d.tempOpacity}d.i=b;d.tempOpacity=e;d.style.visibility=(e<=0)?"hidden":"visible";hs.setStyles(d,{opacity:e});hs.faders[b]=setTimeout(function(){hs.fade(d,Math.round((e+0.1*a)*100)/100,c,b,a)},25)},close:function(a){try{hs.getExpander(a).close()}catch(b){}return false}};hs.Outline=function(f,d){this.onLoad=d;this.outlineType=f;var a=hs.ieVersion(),e;this.hasAlphaImageLoader=hs.ie&&a>=5.5&&a<7;if(!f){if(d){d()}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 b=0;b<=8;b++){if(b%3==0){e=hs.createElement("tr",null,{height:"auto"},this.tbody,true)}this.td[b]=hs.createElement("td",null,null,e,true);var c=b!=4?{lineHeight:0,fontSize:0}:{position:"relative"};hs.setStyles(this.td[b],c)}this.td[4].className=f;this.preloadGraphic()};hs.Outline.prototype={preloadGraphic:function(){var b=hs.graphicsDir+"outlines/"+this.outlineType+".png";var a=hs.safari?hs.container:null;this.graphic=hs.createElement("img",null,{position:"absolute",left:"-9999px",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)}}hs.pendingOutlines[this.outlineType]=this;if(this.onLoad){this.onLoad()}},setPosition:function(e,a,f,b,c,d){if(d){this.table.style.visibility=(c>=4*this.offset)?"visible":"hidden"}this.table.style.left=(a-this.offset)+"px";this.table.style.top=(f-this.offset)+"px";this.table.style.width=(b+2*(e.offsetBorderW+this.offset))+"px";b+=2*(e.offsetBorderW-this.offset);c+=+2*(e.offsetBorderH-this.offset);this.td[4].style.width=b>=0?b+"px":0;this.td[4].style.height=c>=0?c+"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.purge(this.table);try{this.table.parentNode.removeChild(this.table)}catch(b){}}}};hs.Expander=function(k,g,b,l){this.a=k;this.custom=b;this.contentType=l||"image";this.isHtml=(l=="html");this.isImage=!this.isHtml;hs.continuePreloading=false;hs.genContainer();var m=this.key=hs.expanders.length;for(i=0;i<hs.overrides.length;i++){var c=hs.overrides[i];this[c]=g&&typeof g[c]!="undefined"?g[c]:hs[c]}var d=this.thumb=(g?hs.$(g.thumbnailId):null)||k.getElementsByTagName("IMG")[0]||k;this.thumbsUserSetId=d.id||k.id;if(!hs.fireEvent(this,"onInit")){return}for(i=0;i<hs.expanders.length;i++){if(hs.expanders[i]&&hs.expanders[i].a==k){hs.expanders[i].focus();return false}}for(i=0;i<hs.expanders.length;i++){if(hs.expanders[i]&&hs.expanders[i].thumb!=d&&!hs.expanders[i].onLoadStarted){hs.expanders[i].cancelLoading()}}hs.expanders[this.key]=this;if(!hs.allowMultipleInstances){try{hs.expanders[m-1].close()}catch(h){}try{hs.expanders[hs.focusKey].close()}catch(h){}}this.overlays=[];var j=hs.position(d);this.thumbWidth=d.width?d.width:d.offsetWidth;this.thumbHeight=d.height?d.height:d.offsetHeight;this.thumbLeft=j.x;this.thumbTop=j.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(a){try{hs.expanders[m].wrapperMouseHandler(a)}catch(a){}};this.wrapper.onmouseout=function(a){try{hs.expanders[m].wrapperMouseHandler(a)}catch(a){}};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 f=this;new hs.Outline(this.outlineType,function(){f.connectOutline();f[f.contentType+"Create"]()})}}};hs.Expander.prototype={connectOutline:function(a,c){var b=hs.pendingOutlines[this.outlineType];this.objOutline=b;b.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()";if(!hs.fireEvent(this,"onShowLoading")){return}this.loading.style.top=(this.thumbTop+(this.thumbHeight-this.loading.offsetHeight)/2)+"px";var b=this,a=(this.thumbLeft+this.thumbOffsetBorderW+(this.thumbWidth-this.loading.offsetWidth)/2)+"px";setTimeout(function(){if(b.loading){b.loading.style.left=a}},100)},imageCreate:function(){var b=this;var a=document.createElement("img");this.content=a;a.onload=function(){try{b.contentLoaded()}catch(c){}};a.className="highslide-image";a.style.visibility="hidden";a.style.display="block";a.style.position="absolute";a.style.maxWidth="none";a.style.zIndex=3;a.title=hs.restoreTitle;if(hs.safari){hs.container.appendChild(a)}a.src=hs.getSrc(this.a);this.displayLoading()},htmlCreate:function(){if(!hs.fireEvent(this,"onBeforeGetContent")){return}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()}hs.fireEvent(this,"onAfterGetContent");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 a=new hs.Ajax(this.a,this.innerContent);var b=this;a.onLoad=function(){b.contentLoaded()};a.onError=function(){location.href=hs.getSrc(this.a)};a.run()}else{if(this.objectType=="iframe"&&this.objectLoadTime=="before"){this.writeExtendedContent()}else{this.contentLoaded()}}},setIframeRelease:function(){try{var b=this.iframe.contentDocument||this.iframe.contentWindow.document;hs.addEventListener(b,"mouseup",function(){hs.mouseClickHandler({type:"mouseup",target:1})})}catch(a){}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||"";hs.fireEvent(this,"onHideLoading")}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 d=hs.marginRight+2*this.offsetBorderW;this.marginBottom+=2*this.offsetBorderH;var j=this.newWidth/this.newHeight;var b=this.allowSizeReduction?this.minWidth:this.newWidth;var m=this.allowSizeReduction?this.minHeight:this.newHeight;var f={x:"auto",y:"auto"};if(this.align=="center"){f.x="center";f.y="center"}else{if(this.anchor.match(/^top/)){f.y=null}if(this.anchor.match(/right$/)){f.x="max"}if(this.anchor.match(/^bottom/)){f.y="max"}if(this.anchor.match(/left$/)){f.x=null}}var h=hs.getPageSize();this.x={min:parseInt(this.thumbLeft)-this.offsetBorderW+this.thumbOffsetBorderW,span:this.newWidth,minSpan:(this.newWidth<b&&!hs.padToMinWidth)?this.newWidth:b,justify:f.x,target:this.targetX,marginMin:hs.marginLeft,marginMax:d,scroll:h.scrollLeft,clientSpan:h.width,thumbSpan:this.thumbWidth};var c=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<m?this.newHeight:m,justify:f.y,target:this.targetY,marginMin:hs.marginTop,marginMax:this.marginBottom,scroll:h.scrollTop,clientSpan:h.height,thumbSpan:this.thumbHeight};var a=this.y.min+parseInt(this.thumbHeight);this.y=this.justify(this.y);if(this.isHtml){this.htmlSizeOperations()}if(this.isImage){this.correctRatio(j)}var l=this.x;var k=this.y;this.show()}catch(g){window.location.href=hs.getSrc(this.a)}},setObjContainerSize:function(a,d){var b=hs.getElementByClass(a,"DIV","highslide-body");if(this.objectType=="iframe"){if(this.objectWidth){b.style.width=this.objectWidth+"px"}if(this.objectHeight){b.style.height=this.objectHeight+"px"}}if(this.swfObject){b.style.width=this.swfObject.attributes.width+"px";b.style.height=this.swfObject.attributes.height+"px"}},writeExtendedContent:function(b){if(this.hasExtendedContent){return}var f=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 c=this.innerContent.offsetHeight-this.body.offsetHeight;var d=this.objectHeight||(hs.getPageSize()).height-c-hs.marginTop-hs.marginBottom;var e=(hs.ie&&this.objectLoadTime=="before")?'onload="try {hs.expanders['+this.key+'].contentLoaded()} catch(e){}"':"";var a=hs.ie?'<iframe name="hsIframe'+this.key+'" '+e+"/>":"iframe";this.iframe=hs.createElement(a,{name:"hsIframe"+this.key,frameBorder:0,allowTransparency:true},{width:this.objectWidth+"px",height:d+"px"},this.body);if(this.objectLoadTime=="before"){if(!hs.ie){this.iframe.onload=function(){try{f.contentLoaded()}catch(g){}}}}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 d=this.iframe.contentDocument||this.iframe.contentWindow.document;var b=d.createElement("div");b.style.clear="both";d.body.appendChild(b);var a=b.offsetTop;if(hs.ie){a+=parseInt(d.body.currentStyle.marginTop)+parseInt(d.body.currentStyle.marginBottom)-1}this.iframe.style.height=this.body.style.height=a+"px"}catch(c){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 b=this.innerContent.offsetWidth-this.ruler.offsetWidth;if(b<0){b=0}var a=this.innerContent.offsetHeight-this.body.offsetHeight;hs.setStyles(this.iframe,{width:(this.x.span-b)+"px",height:(this.y.span-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.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 e=hs.getElementByClass(this.innerContent,"DIV","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)}},justify:function(d){var e,c=d==this.x?"x":"y";if(d.target&&d.target.match(/ /)){e=d.target.split(" ");d.target=e[0]}if(d.target&&hs.$(d.target)){d.min=hs.position(hs.$(d.target))[c];if(e&&e[1]&&e[1].match(/^[-]?[0-9]+px$/)){d.min+=parseInt(e[1])}}else{if(d.justify=="auto"||d.justify=="center"){var b=false;var a=true;if(d.justify=="center"){d.min=Math.round(d.scroll+(d.clientSpan-d.span-d.marginMax)/2)}else{d.min=Math.round(d.min-((d.span-d.thumbSpan)/2))}if(d.min<d.scroll+d.marginMin){d.min=d.scroll+d.marginMin;b=true}if(d.span<d.minSpan){d.span=d.minSpan;a=false}if(d.min+d.span>d.scroll+d.clientSpan-d.marginMax){if(b&&a){d.span=d.clientSpan-d.marginMin-d.marginMax}else{if(d.span<d.clientSpan-d.marginMin-d.marginMax){d.min=d.scroll+d.clientSpan-d.span-d.marginMin-d.marginMax}else{d.min=d.scroll+d.marginMin;if(a){d.span=d.clientSpan-d.marginMin-d.marginMax}}}}if(d.span<d.minSpan){d.span=d.minSpan;a=false}}else{if(d.justify=="max"){d.min=Math.floor(d.min-d.span+d.thumbSpan)}}}if(d.min<d.marginMin){tmpMin=d.min;d.min=d.marginMin;if(a){d.span=d.span-(d.min-tmpMin)}}return d},correctRatio:function(c){var b=this.x;var f=this.y;var e=false;if(b.span/f.span>c){var a=b.span;b.span=f.span*c;if(b.span<b.minSpan){if(hs.padToMinWidth){b.imgSpan=b.span}b.span=b.minSpan;if(!b.imgSpan){f.span=b.span/c}}e=true}else{if(b.span/f.span<c){var d=f.span;f.span=b.span/c;e=true}}if(e){b.min=parseInt(this.thumbLeft)-this.offsetBorderW+this.thumbOffsetBorderW;b.minSpan=b.span;this.x=this.justify(b);f.min=parseInt(this.thumbTop)-this.offsetBorderH+this.thumbOffsetBorderH;f.minSpan=f.span;this.y=this.justify(f)}},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);if(this.objOutline){this.objOutline.setPosition(this,this.x.min,this.y.min,this.x.span,this.y.span)}},show:function(){var a={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",a)}hs.hideIframes=((window.opera&&navigator.appVersion<9)||navigator.vendor=="KDE"||(hs.ie&&hs.ieVersion()<5.5));if(hs.hideIframes){this.showHideElements("IFRAME","hidden",a)}if(this.x.imgSpan){this.content.style.margin="0 auto"}hs.fireEvent(this,"onBeforeExpand");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(k,p,q,b,l){var s=this.transitions,r=(s[1]&&hs.upcoming&&hs.getParam(hs.upcoming,"transitions")[1]==s[1])?s[1]:s[0];if(this[r]){this[r](k,p,q);return}if(k&&this.objOutline&&!this.outlineWhileAnimating){this.objOutline.setPosition(this,this.x.min,this.y.min,this.x.span,this.y.span)}else{if(!k&&this.objOutline){if(this.outlineWhileAnimating){this.objOutline.setPosition(this,p.x,p.y,p.w,p.h)}else{this.objOutline.destroy((this.isHtml&&this.preserveContent))}}}if(!k){var d=this.wrapper.childNodes.length;for(i=d-1;i>=0;i--){var c=this.wrapper.childNodes[i];if(c!=this.content){hs.purge(c);this.wrapper.removeChild(c)}}}var j=(q.w-p.w)/l,g=(q.imgW-p.imgW)/l,a=(q.h-p.h)/l,h=(q.x-p.x)/l,f=(q.y-p.y)/l,m=(q.o-p.o)/l,r,e=this;for(i=1;i<=l;i++){p.w+=j;p.imgW+=g;p.h+=a;p.x+=h;p.y+=f;p.o+=m;r=Math.round(i*(b/l));(function(){var t=i<l?p:q,v={},u=i;for(var n in t){v[n]=t[n]}setTimeout(function(){if(k&&u==1){e.content.style.visibility="visible";e.a.className+=" highslide-active-anchor"}e.setSize(v)},r)})()}if(k){setTimeout(function(){if(e.objOutline){e.objOutline.table.style.visibility="visible"}},r);setTimeout(function(){if(e.caption){e.writeCaption()}e.afterExpand()},r+50)}else{setTimeout(function(){e.afterClose()},r)}},fade:function(a,h,g){this.outlineWhileAnimating=false;var f=this,e=a?250:0;if(a){hs.setStyles(this.wrapper,{opacity:0});this.setSize(g);if(this.caption){var d=hs.captionSlideSpeed;hs.captionSlideSpeed=0;this.writeCaption();hs.captionSlideSpeed=d}this.content.style.visibility="visible";hs.fade(this.wrapper,0,1)}if(this.objOutline){this.objOutline.table.style.zIndex=this.wrapper.style.zIndex;var b=a||-1;for(var c=h.o;b*c<=b*g.o;c+=b,e+=25){(function(){var j=a?g.o-c:h.o-c;setTimeout(function(){f.objOutline.setPosition(f,(f.x.min+j),(f.y.min+j),(f.x.span-2*j),(f.y.span-2*j),1,e)},e)})()}}if(a){setTimeout(function(){f.afterExpand()},e+50)}else{setTimeout(function(){if(f.objOutline){f.objOutline.destroy(f.preserveContent)}hs.fade(f.wrapper,1,0);setTimeout(function(){f.afterClose()},250)},e)}},setSize:function(c){try{if(this.isHtml){hs.setStyles(this.content,{width:c.w+"px",height:c.h+"px"});hs.setStyles(this.mediumContent,{left:(this.x.min-c.x)+"px",top:(this.y.min-c.y)+"px"});this.innerContent.style.visibility="visible"}else{this.wrapper.style.width=(c.w+2*this.offsetBorderW)+"px";this.content.style.width=(c.imgW||c.w)+"px";this.content.style.height=c.h+"px"}if(this.objOutline&&this.outlineWhileAnimating){var b=this.objOutline.offset-c.o;this.objOutline.setPosition(this,c.x+b,c.y+b,c.w-2*b,c.h-2*b,1)}hs.setStyles(this.wrapper,{visibility:"visible",left:c.x+"px",top:c.y+"px"})}catch(a){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 c=this,b=this.iframe.contentDocument||this.iframe.contentWindow.document;hs.addEventListener(b,"mousedown",function(){if(hs.focusKey!=c.key){c.focus()}})}catch(a){}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.dimmingOpacity){hs.dim(this)}if(hs.upcoming==this.a){hs.upcoming=null}if(!this.caption){this.prepareNextOutline()}if(!this.caption){hs.fireEvent(this,"onAfterExpand")}},prepareNextOutline:function(){var a=this.key;var b=this.outlineType;new hs.Outline(b,function(){try{hs.expanders[a].preloadNext()}catch(c){}})},preloadNext:function(){var b=hs.getAdjacentAnchor(this.key,1);if(b.onclick.toString().match(/hs\.expand/)){var a=hs.createElement("img",{src:hs.getSrc(b)})}},cancelLoading:function(){hs.expanders[this.key]=null;if(hs.upcoming==this.a){hs.upcoming=null}hs.unDim();this.a.style.cursor=this.originalCursor;if(this.loading){hs.loading.style.left="-9999px"}hs.fireEvent(this,"onHideLoading")},writeCredits:function(){var a=hs.createElement("a",{href:hs.creditsHref,className:"highslide-credits",innerHTML:hs.creditsText,title:hs.creditsTitle});this.createOverlay({overlayId:a,position:"top left"})},getCaption:function(){if(!hs.fireEvent(this,"onBeforeGetCaption")){return}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;hs.fireEvent(this,"onAfterGetCaption")}},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 a,j=this;if(hs.ie&&(hs.ieVersion()<6||document.compatMode=="BackCompat")){a=this.caption.offsetHeight}else{var b=hs.createElement("div",{innerHTML:this.caption.innerHTML},null,null,true);this.caption.innerHTML="";this.caption.appendChild(b);a=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 f=(Math.round(a/50)||1)*hs.captionSlideSpeed}else{this.placeCaption(a,1);return}for(var d=a%f,c=0;d<=a;d+=f,c+=10){(function(){var h=d,e=(d==a)?1:0;setTimeout(function(){j.placeCaption(h,e)},c)})()}}catch(g){}},placeCaption:function(a,b){if(!this.caption){return}this.caption.style.height=a+"px";this.caption.style.visibility="visible";this.y.span=this.wrapper.offsetHeight-2*this.offsetBorderH;var c=this.objOutline;if(c){c.td[4].style.height=(this.wrapper.offsetHeight-2*this.objOutline.offset)+"px";if(c.hasAlphaImageLoader){c.td[3].style.height=c.td[5].style.height=c.td[4].style.height}}if(b){this.prepareNextOutline()}if(b){hs.fireEvent(this,"onAfterExpand")}},showHideElements:function(b,a,e){var d=document.getElementsByTagName(b);if(d){for(i=0;i<d.length;i++){if(d[i].nodeName==b){var g=d[i].getAttribute("hidden-by");if(a=="visible"&&g){g=g.replace("["+this.key+"]","");d[i].setAttribute("hidden-by",g);if(!g){d[i].style.visibility="visible"}}else{if(a=="hidden"){var j=hs.position(d[i]);j.w=d[i].offsetWidth;j.h=d[i].offsetHeight;if(!this.dimmingOpacity){var h=(j.x+j.w<e.x||j.x>e.x+e.w);var f=(j.y+j.h<e.y||j.y>e.y+e.h)}var c=hs.getWrapperKey(d[i]);if(!h&&!f&&c!=this.key){if(!g){d[i].setAttribute("hidden-by","["+this.key+"]")}else{if(!g.match("["+this.key+"]")){d[i].setAttribute("hidden-by",g+"["+this.key+"]")}}d[i].style.visibility="hidden"}else{if(g=="["+this.key+"]"||hs.focusKey==c){d[i].setAttribute("hidden-by","");d[i].style.visibility="visible"}else{if(g&&g.match("["+this.key+"]")){d[i].setAttribute("hidden-by",g.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 a=hs.expanders[i];a.content.className+=" highslide-"+a.contentType+"-blur";if(a.caption){a.caption.className+=" highslide-caption-blur"}if(a.isImage){a.content.style.cursor=hs.ie?"hand":"pointer";a.content.title=hs.focusTitle}hs.fireEvent(this,"onBlur")}}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);hs.fireEvent(this,"onFocus")},move:function(a){this.x.min=a.left+a.dX;this.y.min=a.top+a.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(b){this.x.span=b.width+b.dX;this.y.span=b.height+b.dY;if(this.x.span<this.minWidth){this.x.span=this.minWidth}if(this.y.span<this.minHeight){this.y.span=this.minHeight}var c=this.scrollerDiv;if(typeof this.wDiff=="undefined"){this.wDiff=this.innerContent.offsetWidth-c.offsetWidth;this.hDiff=this.innerContent.offsetHeight-c.offsetHeight}hs.setStyles(c,{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 a=0;a<this.overlays.length;a++){this.positionOverlay(this.overlays[a])}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;if(!hs.fireEvent(this,"onBeforeClose")){return}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(a){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(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){}}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(a){}}this.wrapper.className=this.wrapper.className.replace(/highslide-display-none/,"");var b=hs.zIndexCounter++;this.wrapper.style.zIndex=b;this.isClosing=false;if(o=this.objOutline){if(!this.outlineWhileAnimating){o.table.style.visibility="hidden"}o.table.className=null;o.table.style.zIndex=b}this.show()},createOverlay:function(c){var b=c.overlayId;if(typeof b=="string"){b=hs.getNode(b)}if(!b||typeof b=="string"){return}if(!hs.fireEvent(this,"onCreateOverlay",{overlay:b})){return}var a=hs.createElement("div",null,{left:0,top:0,position:"absolute",zIndex:3,visibility:"hidden"},this.wrapper,true);if(c.opacity){hs.setStyles(b,{opacity:c.opacity})}b.className+=" highslide-display-block";a.appendChild(b);a.hsPos=c.position;this.positionOverlay(a);if(c.hideOnMouseOut){a.setAttribute("hideOnMouseOut",true)}if(!c.opacity){c.opacity=1}a.setAttribute("opacity",c.opacity);hs.fade(a,0,c.opacity);hs.push(this.overlays,a)},positionOverlay:function(c){var f=this.offsetBorderW;var a=this.x.span-c.offsetWidth;var e=this.offsetBorderH;var b=parseInt(this.content.style.height)-c.offsetHeight;var d=c.hsPos||"center center";if(/^bottom/.test(d)){e+=b}if(/^center/.test(d)){e+=b/2}if(/right$/.test(d)){f+=a}if(/center$/.test(d)){f+=a/2}c.style.left=f+"px";c.style.top=e+"px"},createOverlays:function(){for(i=0;i<hs.overlays.length;i++){var a=hs.overlays[i];if((!a.thumbnailId&&!a.slideshowGroup)||a.thumbnailId==this.thumbsUserSetId||a.slideshowGroup===this.slideshowGroup){if(this.isImage||(this.isHtml&&a.useOnHtml)){this.createOverlay(a)}}}},createFullExpand:function(){var b=hs.createElement("a",{href:"javascript:hs.expanders["+this.key+"].doFullExpand();",title:hs.fullExpandTitle,className:"highslide-full-expand"});this.fullExpandLabel=b;if(!hs.fireEvent(this,"onCreateFullExpand")){return}this.createOverlay({overlayId:b,position:hs.fullExpandPosition,hideOnMouseOut:true,opacity:hs.fullExpandOpacity})},doFullExpand:function(){try{if(!hs.fireEvent(this,"onDoFullExpand")){return}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 a=0;a<this.overlays.length;a++){this.positionOverlay(this.overlays[a])}this.redoShowHide();hs.setDimmerSize()}catch(b){window.location.href=this.content.src}},redoShowHide:function(){var a={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",a)}if(hs.hideIframes){this.showHideElements("IFRAME","hidden",a)}},wrapperMouseHandler:function(b){if(!b){b=window.event}var a=/mouseover/i.test(b.type);if(!b.target){b.target=b.srcElement}if(!b.relatedTarget){b.relatedTarget=a?b.fromElement:b.toElement}if(hs.getExpander(b.relatedTarget)==this||hs.dragArgs){return}if(this.isExpanded){hs.fireEvent(this,a?"onMouseOver":"onMouseOut",b)}for(i=0;i<this.overlays.length;i++){var c=this.overlays[i];if(c.getAttribute("hideOnMouseOut")){var f=a?0:c.getAttribute("opacity"),d=a?c.getAttribute("opacity"):0;hs.fade(c,f,d)}}},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"}if(this.dimmingOpacity){hs.unDim(this.key)}hs.fireEvent(this,"onAfterClose");hs.expanders[this.key]=null;hs.cleanUp()}};hs.Ajax=function(b,c,d){this.a=b;this.content=c;this.pre=d};hs.Ajax.prototype={run:function(){this.src=hs.getSrc(this.a);if(this.src.match("#")){var a=this.src.split("#");this.src=a[0];this.id=a[1]}if(hs.cachedGets[this.src]){this.cachedGet=hs.cachedGets[this.src];if(this.id){this.getElementContent()}else{this.loadHTML()}return}try{this.xmlHttp=new XMLHttpRequest()}catch(b){try{this.xmlHttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{this.xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){this.onError()}}}var c=this;this.xmlHttp.onreadystatechange=function(){if(c.xmlHttp.readyState==4){if(c.id){c.getElementContent()}else{c.loadHTML()}}};this.xmlHttp.open("GET",this.src,true);this.xmlHttp.send(null)},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)}},loadHTML:function(){var a=this.cachedGet||this.xmlHttp.responseText;if(this.pre){hs.cachedGets[this.src]=a}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.getElementByClass(this.content,"DIV","highslide-body").innerHTML=a;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);hs.addEventListener(window,"load",function(){hs.pageLoaded=true});hs.setClickEvents();