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.",loadingText:"Loading...",loadingTitle:"Click to cancel",loadingOpacity:.75,focusTitle:"Click to bring to front",allowMultipleInstances:!0,numberOfImagesToPreload:5,captionSlideSpeed:1,padToMinWidth:!1,outlineWhileAnimating:2,outlineStartOffset:3,fullExpandTitle:"Expand to actual size",fullExpandPosition:"bottom right",fullExpandOpacity:1,showCredits:!0,creditsText:"Powered by <i>Highslide JS<\/i>",creditsHref:"http://vikjavev.no/highslide/",creditsTitle:"Go to the Highslide JS homepage",enableKeyListener:!0,captionId:null,spaceForCaption:30,slideshowGroup:null,minWidth:200,minHeight:200,allowSizeReduction:!0,outlineType:"drop-shadow",wrapperClassName:"highslide-wrapper",preloadTheseImages:[],continuePreloading:!0,expanders:[],overrides:["allowSizeReduction","outlineType","outlineWhileAnimating","spaceForCaption","captionId","captionText","captionEval","wrapperClassName","minWidth","minHeight","slideshowGroup","easing","easingClose","fadeInOut"],overlays:[],faders:[],pendingOutlines:{},clones:{},ie:document.all&&!window.opera,safari:/Safari/.test(navigator.userAgent),geckoMac:/Macintosh.+rv:1\.[0-8].+Gecko/.test(navigator.userAgent),$:function(n){return document.getElementById(n)},push:function(n,t){n[n.length]=t},createElement:function(n,t,i,r,u){var f=document.createElement(n);return t&&hs.setAttribs(f,t),u&&hs.setStyles(f,{padding:0,border:"none",margin:0}),i&&hs.setStyles(f,i),r&&r.appendChild(f),f},setAttribs:function(n,t){for(var i in t)n[i]=t[i]},setStyles:function(n,t){for(var i in t)try{hs.ie&&i=="opacity"?n.style.filter=t[i]==1?"":"alpha(opacity="+t[i]*100+")":n.style[i]=t[i]}catch(r){}},ieVersion:function(){var n=navigator.appVersion.split("MSIE");return n[1]?parseFloat(n[1]):null},getPageSize:function(){var n=document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body,t=hs.ie?n.clientWidth:document.documentElement.clientWidth||self.innerWidth,i=hs.ie?n.clientHeight:self.innerHeight;return{width:t,height:i,scrollLeft:hs.ie?n.scrollLeft:pageXOffset,scrollTop:hs.ie?n.scrollTop:pageYOffset}},position:function(n){for(var t={x:n.offsetLeft,y:n.offsetTop};n.offsetParent;)n=n.offsetParent,t.x+=n.offsetLeft,t.y+=n.offsetTop,n!=document.body&&n!=document.documentElement&&(t.x-=n.scrollLeft,t.y-=n.scrollTop);return t},expand:function(n,t,i){if(n.getParams)return t;try{return new hs.Expander(n,t,i),!1}catch(r){return!0}},focusTopmost:function(){for(var i=0,t=-1,n=0;n<hs.expanders.length;n++)hs.expanders[n]&&hs.expanders[n].wrapper.style.zIndex&&hs.expanders[n].wrapper.style.zIndex>i&&(i=hs.expanders[n].wrapper.style.zIndex,t=n);t==-1?hs.focusKey=-1:hs.expanders[t].focus()},getAdjacentAnchor:function(n,t){for(var r=document.getElementsByTagName("A"),f={},e=-1,u=0,i=0;i<r.length;i++)hs.isHsAnchor(r[i])&&hs.expanders[n].slideshowGroup==hs.getParam(r[i],"slideshowGroup")&&(f[u]=r[i],hs.expanders[n]&&r[i]==hs.expanders[n].a&&(e=u),u++);return f[e+t]||null},getParam:function(n,t){n.getParams=n.onclick;var i=n.getParams?n.getParams():null;return n.getParams=null,i&&typeof i[t]!="undefined"?i[t]:typeof hs[t]!="undefined"?hs[t]:null},getSrc:function(n){var t=hs.getParam(n,"src");return t?t:n.href},getNode:function(n){var i=hs.$(n),t=hs.clones[n];return!i&&!t?null:t?t.cloneNode(!0):(t=i.cloneNode(!0),t.id="",hs.clones[n]=t,i)},purge:function(n){var i,r,u,t;if(hs.ie){if(i=n.attributes,i)for(r=i.length,t=0;t<r;t+=1)u=i[t].name,typeof n[u]=="function"&&(n[u]=null);if(i=n.childNodes,i)for(r=i.length,t=0;t<r;t+=1)hs.purge(n.childNodes[t])}},previousOrNext:function(n,t){var i=hs.last=hs.getExpander(n),r;try{r=hs.upcoming=hs.getAdjacentAnchor(i.key,t),r.onclick()}catch(u){}try{i.close()}catch(u){}return!1},previous:function(n){return hs.previousOrNext(n,-1)},next:function(n){return hs.previousOrNext(n,1)},keyHandler:function(n){if(n||(n=window.event),n.target||(n.target=n.srcElement),n.target.form)return!0;var t=null;switch(n.keyCode){case 32:case 34:case 39:case 40:t=1;break;case 8:case 33:case 37:case 38:t=-1;break;case 27:case 13:t=0}if(t!==null){if(hs.removeEventListener(document,"keydown",hs.keyHandler),!hs.enableKeyListener)return!0;if(n.preventDefault?n.preventDefault():n.returnValue=!1,t==0){try{hs.getExpander().close()}catch(n){}return!1}return hs.previousOrNext(hs.focusKey,t)}return!0},registerOverlay:function(n){hs.push(hs.overlays,n)},getWrapperKey:function(n){for(var u=/^highslide-wrapper-([0-9]+)$/,i,r,t=n;t.parentNode;){if(t.id&&u.test(t.id))return t.id.replace(u,"$1");t=t.parentNode}for(t=n;t.parentNode;){if(t.tagName&&hs.isHsAnchor(t))for(i=0;i<hs.expanders.length;i++)if(r=hs.expanders[i],r&&r.a==t)return i;t=t.parentNode}return null},getExpander:function(n){return typeof n=="undefined"?hs.expanders[hs.focusKey]||null:typeof n=="number"?hs.expanders[n]||null:(typeof n=="string"&&(n=hs.$(n)),hs.expanders[hs.getWrapperKey(n)]||null)},isHsAnchor:function(n){return n.onclick&&n.onclick.toString().replace(/\s/g," ").match(/hs.(htmlE|e)xpand/)},cleanUp:function(){for(var n=0;n<hs.expanders.length;n++)hs.expanders[n]&&hs.expanders[n].isExpanded&&hs.focusTopmost()},mouseClickHandler:function(n){var i,t,u,r;if(n||(n=window.event),n.button>1)return!0;for(n.target||(n.target=n.srcElement),i=n.target;i.parentNode&&!/highslide-(image|move|html|resize)/.test(i.className);)i=i.parentNode;if(t=hs.getExpander(i),t&&(t.isClosing||!t.isExpanded))return!0;if(t&&n.type=="mousedown"){if(n.target.form)return!0;if(u=i.className.match(/highslide-(image|move|resize)/),u)return hs.dragArgs={exp:t,type:u[1],left:t.x.min,width:t.x.span,top:t.y.min,height:t.y.span,clickX:n.clientX,clickY:n.clientY},hs.addEventListener(document,"mousemove",hs.dragHandler),n.preventDefault&&n.preventDefault(),/highslide-(image|html)-blur/.test(t.content.className)&&(t.focus(),hs.hasFocused=!0),!1}else n.type=="mouseup"&&(hs.removeEventListener(document,"mousemove",hs.dragHandler),hs.dragArgs?(hs.dragArgs.type=="image"&&(hs.dragArgs.exp.content.style.cursor=hs.styleRestoreCursor),r=hs.dragArgs.hasDragged,r||hs.hasFocused||/(move|resize)/.test(hs.dragArgs.type)?(r||!r&&hs.hasHtmlexpanders)&&hs.dragArgs.exp.redoShowHide():t.close(),hs.hasFocused=!1,hs.dragArgs=null):/highslide-image-blur/.test(i.className)&&(i.style.cursor=hs.styleRestoreCursor));return!1},dragHandler:function(n){var t,r,i;return hs.dragArgs?(n||(n=window.event),t=hs.dragArgs,r=t.exp,t.dX=n.clientX-t.clickX,t.dY=n.clientY-t.clickY,i=Math.sqrt(Math.pow(t.dX,2)+Math.pow(t.dY,2)),t.hasDragged=t.type!="image"&&i>0||i>(hs.dragSensitivity||5),t.hasDragged&&r.move(t),!1):!0},addEventListener:function(n,t,i){try{n.addEventListener(t,i,!1)}catch(r){try{n.detachEvent("on"+t,i),n.attachEvent("on"+t,i)}catch(r){n["on"+t]=i}}},removeEventListener:function(n,t,i){try{n.removeEventListener(t,i,!1)}catch(r){try{n.detachEvent("on"+t,i)}catch(r){n["on"+t]=null}}},preloadFullImage:function(n){if(hs.continuePreloading&&hs.preloadTheseImages[n]&&hs.preloadTheseImages[n]!="undefined"){var t=document.createElement("img");t.onload=function(){hs.preloadFullImage(n+1)},t.src=hs.preloadTheseImages[n]}},preloadImages:function(n){var r,u,t,f,i,e;for(n&&typeof n!="object"&&(hs.numberOfImagesToPreload=n),t=0,f=document.getElementsByTagName("A"),i=0;i<f.length;i++)r=f[i],u=hs.isHsAnchor(r),u&&u[0]=="hs.expand"&&t<hs.numberOfImagesToPreload&&(hs.preloadTheseImages[t]=hs.getSrc(r),t++);new hs.Outline(hs.outlineType,function(){hs.preloadFullImage(0)}),e=hs.createElement("img",{src:hs.graphicsDir+hs.restoreCursor})},genContainer:function(){hs.container||(hs.container=hs.createElement("div",null,{position:"absolute",left:0,top:0,width:"100%",zIndex:hs.zIndexCounter},document.body,!0),hs.loading=hs.createElement("a",{className:"highslide-loading",title:hs.loadingTitle,innerHTML:hs.loadingText,href:"javascript:void(0)"},{position:"absolute",opacity:hs.loadingOpacity,left:"-9999px",zIndex:1},hs.container),Math.linearTween=function(n,t,i,r){return i*n/r+t},Math.easeInQuad=function(n,t,i,r){return i*(n/=r)*n+t})},fade:function(n,t,i,r,u,f){if(typeof u=="undefined"){if(typeof r!="number"&&(r=250),r<25){hs.setStyles(n,{opacity:i,visibility:t<i?"visible":"hidden"});return}u=hs.faders.length,f=i>t?1:-1;var e=25/(r-r%25)*Math.abs(t-i)}(t=parseFloat(t),n.style.visibility=t<=0?"hidden":"visible",t<0||f==1&&t>i)||(n.fading&&n.fading.i!=u&&(clearTimeout(hs.faders[n.fading.i]),t=n.fading.o),n.fading={i:u,o:t,step:e||n.fading.step},n.style.visibility=t<=0?"hidden":"visible",hs.setStyles(n,{opacity:t}),hs.faders[u]=setTimeout(function(){hs.fade(n,t+n.fading.step*f,i,null,u,f)},25))},close:function(n){try{hs.getExpander(n).close()}catch(t){}return!1}},HsExpander;hs.Outline=function(n,t){var r,u,i,f;if(this.onLoad=t,this.outlineType=n,r=hs.ieVersion(),this.hasAlphaImageLoader=hs.ie&&r>=5.5&&r<7,!n){t&&t();return}for(hs.genContainer(),this.table=hs.createElement("table",{cellSpacing:0},{visibility:"hidden",position:"absolute",borderCollapse:"collapse"},hs.container,!0),this.tbody=hs.createElement("tbody",null,null,this.table,1),this.td=[],i=0;i<=8;i++)i%3==0&&(u=hs.createElement("tr",null,{height:"auto"},this.tbody,!0)),this.td[i]=hs.createElement("td",null,null,u,!0),f=i!=4?{lineHeight:0,fontSize:0}:{position:"relative"},hs.setStyles(this.td[i],f);this.td[4].className=n,this.preloadGraphic()},hs.Outline.prototype={preloadGraphic:function(){var t=hs.graphicsDir+(hs.outlinesDir||"outlines/")+this.outlineType+".png",i=hs.safari?hs.container:null,n;this.graphic=hs.createElement("img",null,{position:"absolute",left:"-9999px",top:"-9999px"},i,!0),n=this,this.graphic.onload=function(){n.onGraphicLoad()},this.graphic.src=t},onGraphicLoad:function(){for(var t=this.offset=this.graphic.width/4,i=[[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],r={height:2*t+"px",width:2*t+"px"},u,f,n=0;n<=8;n++)i[n]&&(this.hasAlphaImageLoader?(u=n==1||n==7?"100%":this.graphic.width+"px",f=hs.createElement("div",null,{width:"100%",height:"100%",position:"relative",overflow:"hidden"},this.td[n],!0),hs.createElement("div",null,{filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale, src='"+this.graphic.src+"')",position:"absolute",width:u,height:this.graphic.height+"px",left:i[n][0]*t+"px",top:i[n][1]*t+"px"},f,!0)):hs.setStyles(this.td[n],{background:"url("+this.graphic.src+") "+i[n][0]*t+"px "+i[n][1]*t+"px"}),window.opera&&(n==3||n==5)&&hs.createElement("div",null,r,this.td[n],!0),hs.setStyles(this.td[n],r));hs.pendingOutlines[this.outlineType]=this,this.onLoad&&this.onLoad()},setPosition:function(n,t,i,r,u,f){f&&(this.table.style.visibility=u>=4*this.offset?"visible":"hidden"),this.table.style.left=t-this.offset+"px",this.table.style.top=i-this.offset+"px",this.table.style.width=r+2*(n.offsetBorderW+this.offset)+"px",r+=2*(n.offsetBorderW-this.offset),u+=2*(n.offsetBorderH-this.offset),this.td[4].style.width=r>=0?r+"px":0,this.td[4].style.height=u>=0?u+"px":0,this.hasAlphaImageLoader&&(this.td[3].style.height=this.td[5].style.height=this.td[4].style.height)},destroy:function(n){if(n)this.table.style.visibility="hidden";else{hs.purge(this.table);try{this.table.parentNode.removeChild(this.table)}catch(t){}}}},hs.Expander=function(n,t,i,r){var e,o,f,u,h,s;for(this.a=n,this.custom=i,this.contentType=r||"image",this.isImage=!this.isHtml,hs.continuePreloading=!1,hs.genContainer(),e=this.key=hs.expanders.length,u=0;u<hs.overrides.length;u++)o=hs.overrides[u],this[o]=t&&typeof t[o]!="undefined"?t[o]:hs[o];for(f=this.thumb=(t&&t.thumbnailId?hs.$(t.thumbnailId):null)||n.getElementsByTagName("img")[0]||n,this.thumbsUserSetId=f.id||n.id,u=0;u<hs.expanders.length;u++)if(hs.expanders[u]&&hs.expanders[u].a==n)return hs.expanders[u].focus(),!1;for(u=0;u<hs.expanders.length;u++)hs.expanders[u]&&hs.expanders[u].thumb!=f&&!hs.expanders[u].onLoadStarted&&hs.expanders[u].cancelLoading();return hs.expanders[this.key]=this,hs.allowMultipleInstances||(hs.expanders[e-1]&&hs.expanders[e-1].close(),typeof hs.focusKey!="undefined"&&hs.expanders[hs.focusKey]&&hs.expanders[hs.focusKey].close()),this.overlays=[],h=hs.position(f),this.thumbWidth=f.width?f.width:f.offsetWidth,this.thumbHeight=f.height?f.height:f.offsetHeight,this.thumbLeft=h.x,this.thumbTop=h.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,!0),this.wrapper.onmouseover=function(n){try{hs.expanders[e].wrapperMouseHandler(n)}catch(n){}},this.wrapper.onmouseout=function(n){try{hs.expanders[e].wrapperMouseHandler(n)}catch(n){}},this.contentType=="image"&&this.outlineWhileAnimating==2&&(this.outlineWhileAnimating=0),hs.pendingOutlines[this.outlineType]?(this.connectOutline(),this[this.contentType+"Create"]()):this.outlineType?(this.displayLoading(),s=this,new hs.Outline(this.outlineType,function(){s.connectOutline(),s[s.contentType+"Create"]()})):this[this.contentType+"Create"](),!0},hs.Expander.prototype={connectOutline:function(){var n=hs.pendingOutlines[this.outlineType];this.objOutline=n,n.table.style.zIndex=this.wrapper.style.zIndex,hs.pendingOutlines[this.outlineType]=null},displayLoading:function(){var n,t;this.onLoadStarted||this.loading||(this.originalCursor=this.a.style.cursor,this.a.style.cursor="wait",this.loading=hs.loading,n=this,this.loading.onclick=function(){n.cancelLoading()},this.loading.style.top=this.thumbTop+(this.thumbHeight-this.loading.offsetHeight)/2+"px",n=this,t=this.thumbLeft+this.thumbOffsetBorderW+(this.thumbWidth-this.loading.offsetWidth)/2+"px",setTimeout(function(){n.loading&&(n.loading.style.left=t)},100))},imageCreate:function(){var t=this,n=document.createElement("img");this.content=n,n.onload=function(){hs.expanders[t.key]&&t.contentLoaded()},hs.blockRightClick&&(n.oncontextmenu=function(){return!1}),n.className="highslide-image",n.style.visibility="hidden",n.style.display="block",n.style.position="absolute",n.style.maxWidth="none",n.style.zIndex=3,n.title=hs.restoreTitle,hs.safari&&hs.container.appendChild(n),hs.ie&&hs.flushImgSize&&(n.src=null),n.src=hs.getSrc(this.a),this.displayLoading()},contentLoaded:function(){var t,f,e,o,s;try{if(!this.content)return;if(this.onLoadStarted)return;this.onLoadStarted=!0,this.loading&&(this.loading.style.left="-9999px",this.loading=null,this.a.style.cursor=this.originalCursor||""),this.marginBottom=hs.marginBottom,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(),this.wrapper.appendChild(this.content),this.content.style.position="relative",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,t=hs.marginRight+2*this.offsetBorderW,this.marginBottom+=2*this.offsetBorderH;var u=this.newWidth/this.newHeight,i=this.allowSizeReduction?this.minWidth:this.newWidth,r=this.allowSizeReduction?this.minHeight:this.newHeight,n=hs.getPageSize();this.x={min:parseInt(this.thumbLeft)-this.offsetBorderW+this.thumbOffsetBorderW,span:this.newWidth,minSpan:this.newWidth<i&&!hs.padToMinWidth?this.newWidth:i,marginMin:hs.marginLeft,marginMax:t,scroll:n.scrollLeft,clientSpan:n.width,thumbSpan:this.thumbWidth},f=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<r?this.newHeight:r,marginMin:hs.marginTop,marginMax:this.marginBottom,scroll:n.scrollTop,clientSpan:n.height,thumbSpan:this.thumbHeight},e=this.y.min+parseInt(this.thumbHeight),this.y=this.justify(this.y),this.correctRatio(u),o=this.x,s=this.y,this.show()}catch(h){window.location.href=hs.getSrc(this.a)}},justify:function(n){var r=n==this.x?"x":"y",i=!1,t=!0;return n.min=Math.round(n.min-(n.span-n.thumbSpan)/2),n.min<n.scroll+n.marginMin&&(n.min=n.scroll+n.marginMin,i=!0),n.span<n.minSpan&&(n.span=n.minSpan,t=!1),n.min+n.span>n.scroll+n.clientSpan-n.marginMax&&(i&&t?n.span=n.clientSpan-n.marginMin-n.marginMax:n.span<n.clientSpan-n.marginMin-n.marginMax?n.min=n.scroll+n.clientSpan-n.span-n.marginMin-n.marginMax:(n.min=n.scroll+n.marginMin,t&&(n.span=n.clientSpan-n.marginMin-n.marginMax))),n.span<n.minSpan&&(n.span=n.minSpan,t=!1),n.min<n.marginMin&&(tmpMin=n.min,n.min=n.marginMin,t&&(n.span=n.span-(n.min-tmpMin))),n},correctRatio:function(n){var t=this.x,i=this.y,r=!1,u,f;t.span/i.span>n?(u=t.span,t.span=i.span*n,t.span<t.minSpan&&(hs.padToMinWidth&&(t.imgSpan=t.span),t.span=t.minSpan,t.imgSpan||(i.span=t.span/n)),r=!0):t.span/i.span<n&&(f=i.span,i.span=t.span/n,r=!0),r&&(t.min=parseInt(this.thumbLeft)-this.offsetBorderW+this.thumbOffsetBorderW,t.minSpan=t.span,this.x=this.justify(t),i.min=parseInt(this.thumbTop)-this.offsetBorderH+this.thumbOffsetBorderH,i.minSpan=i.span,this.y=this.justify(i))},show:function(){var n={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,hs.hideSelects&&this.showHideElements("SELECT","hidden",n),hs.hideIframes=window.opera&&navigator.appVersion<9||navigator.vendor=="KDE"||hs.ie&&hs.ieVersion()<5.5,hs.hideIframes&&this.showHideElements("IFRAME","hidden",n),hs.geckoMac&&this.showHideElements("*","hidden",n),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(n,t,i,r,u){var c,s,o,e,h,f;if(n&&this.objOutline&&!this.outlineWhileAnimating?this.objOutline.setPosition(this,this.x.min,this.y.min,this.x.span,this.y.span):!n&&this.objOutline&&(this.outlineWhileAnimating?this.objOutline.setPosition(this,t.x,t.y,t.w,t.h):this.objOutline.destroy()),!n)for(c=this.wrapper.childNodes.length,f=c-1;f>=0;f--)s=this.wrapper.childNodes[f],s!=this.content&&(hs.purge(s),this.wrapper.removeChild(s));for(this.fadeInOut&&(t.op=n?0:1,i.op=n),e=this,h=Math[this.easing]||Math.easeInQuad,n||(h=Math[this.easingClose]||h),f=1;f<=u;f++)o=Math.round(f*(r/u)),function(){var c=f,s={},u;for(u in t)s[u]=h(o,t[u],i[u]-t[u],r);setTimeout(function(){n&&c==1&&(e.content.style.visibility="visible",e.a.className+=" highslide-active-anchor"),e.setSize(s)},o)}();n?(setTimeout(function(){e.objOutline&&(e.objOutline.table.style.visibility="visible")},o),setTimeout(function(){e.caption&&e.writeCaption(),e.afterExpand()},o+50)):setTimeout(function(){e.afterClose()},o)},setSize:function(n){try{if(this.wrapper.style.width=n.w+2*this.offsetBorderW+"px",this.content.style.width=(n.imgW&&!isNaN(n.imgW)?n.imgW:n.w)+"px",hs.safari&&(this.content.style.maxWidth=this.content.style.width),this.content.style.height=n.h+"px",n.op&&hs.setStyles(this.wrapper,{opacity:n.op}),this.objOutline&&this.outlineWhileAnimating){var t=this.objOutline.offset-n.o;this.objOutline.setPosition(this,n.x+t,n.y+t,n.w-2*t,n.h-2*t,1)}hs.setStyles(this.wrapper,{visibility:"visible",left:n.x+"px",top:n.y+"px"})}catch(i){window.location.href=hs.getSrc(this.a)}},afterExpand:function(){this.isExpanded=!0,this.focus(),this.createOverlays(),hs.showCredits&&this.writeCredits(),this.isImage&&this.fullExpandWidth>this.x.span&&this.createFullExpand(),this.caption||this.prepareNextOutline()},prepareNextOutline:function(){var n=this.key,t=this.outlineType;new hs.Outline(t,function(){try{hs.expanders[n].preloadNext()}catch(t){}})},preloadNext:function(){var n=hs.getAdjacentAnchor(this.key,1),t;n.onclick.toString().match(/hs\.expand/)&&(t=hs.createElement("img",{src:hs.getSrc(n)}))},cancelLoading:function(){hs.expanders[this.key]=null,this.a.style.cursor=this.originalCursor,this.loading&&(hs.loading.style.left="-9999px")},writeCredits:function(){var n=hs.createElement("a",{href:hs.creditsHref,className:"highslide-credits",innerHTML:hs.creditsText,title:hs.creditsTitle});this.createOverlay({overlayId:n,position:"top left"})},getCaption:function(){if(!this.captionId&&this.thumbsUserSetId&&(this.captionId="caption-for-"+this.thumbsUserSetId),this.captionId&&(this.caption=hs.getNode(this.captionId)),!this.caption&&!this.captionText&&this.captionEval)try{this.captionText=eval(this.captionEval)}catch(t){}if(!this.caption&&this.captionText&&(this.caption=hs.createElement("div",{className:"highslide-caption",innerHTML:this.captionText})),!this.caption)for(var n=this.a.nextSibling;n&&!hs.isHsAnchor(n);){if(/highslide-caption/.test(n.className||null)){this.caption=n.cloneNode(1);break}n=n.nextSibling}this.caption&&(this.marginBottom+=this.spaceForCaption)},writeCaption:function(){var n,u,f,i,t,r;try{if(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",u=this,hs.ie&&(hs.ieVersion()<6||document.compatMode=="BackCompat")?n=this.caption.offsetHeight:(f=hs.createElement("div",{innerHTML:this.caption.innerHTML},null,null,!0),this.caption.innerHTML="",this.caption.appendChild(f),n=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",hs.captionSlideSpeed)i=(Math.round(n/50)||1)*hs.captionSlideSpeed;else{this.placeCaption(n,1);return}for(t=n%i,r=0;t<=n;t+=i,r+=10)(function(){var i=t,f=t==n?1:0;setTimeout(function(){u.placeCaption(i,f)},r)})()}catch(e){}},placeCaption:function(n,t){if(this.caption){this.caption.style.height=n+"px",this.caption.style.visibility="visible",this.y.span=this.wrapper.offsetHeight-2*this.offsetBorderH;var i=this.objOutline;i&&(i.td[4].style.height=this.wrapper.offsetHeight-2*this.objOutline.offset+"px",i.hasAlphaImageLoader&&(i.td[3].style.height=i.td[5].style.height=i.td[4].style.height)),t&&this.prepareNextOutline()}},showHideElements:function(n,t,i){for(var u=document.getElementsByTagName(n),o=n=="*"?"overflow":"visibility",f,e,r=0;r<u.length;r++)if(o=="visibility"||document.defaultView.getComputedStyle(u[r],"").getPropertyValue("overflow")=="auto"||u[r].getAttribute("hidden-by")!=null)if(f=u[r].getAttribute("hidden-by"),t=="visible"&&f)f=f.replace("["+this.key+"]",""),u[r].setAttribute("hidden-by",f),f||(u[r].style[o]=u[r].origProp);else if(t=="hidden"){e=hs.position(u[r]),e.w=u[r].offsetWidth,e.h=u[r].offsetHeight;var h=e.x+e.w<i.x||e.x>i.x+i.w,c=e.y+e.h<i.y||e.y>i.y+i.h,s=hs.getWrapperKey(u[r]);h||c||s==this.key?f=="["+this.key+"]"||hs.focusKey==s?(u[r].setAttribute("hidden-by",""),u[r].style[o]=u[r].origProp||""):f&&f.match("["+this.key+"]")&&u[r].setAttribute("hidden-by",f.replace("["+this.key+"]","")):f?f.match("["+this.key+"]")||u[r].setAttribute("hidden-by",f+"["+this.key+"]"):(u[r].setAttribute("hidden-by","["+this.key+"]"),u[r].origProp=u[r].style[o],u[r].style[o]="hidden")}},focus:function(){var t,n;for(this.wrapper.style.zIndex=hs.zIndexCounter++,t=0;t<hs.expanders.length;t++)hs.expanders[t]&&t==hs.focusKey&&(n=hs.expanders[t],n.content.className+=" highslide-"+n.contentType+"-blur",n.caption&&(n.caption.className+=" highslide-caption-blur"),n.content.style.cursor=hs.ie?"hand":"pointer",n.content.title=hs.focusTitle);this.objOutline&&(this.objOutline.table.style.zIndex=this.wrapper.style.zIndex),this.content.className="highslide-"+this.contentType,this.caption&&(this.caption.className=this.caption.className.replace(" highslide-caption-blur","")),this.content.title=hs.restoreTitle,hs.styleRestoreCursor=window.opera?"pointer":"url("+hs.graphicsDir+hs.restoreCursor+"), pointer",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(n){this.x.min=n.left+n.dX,this.y.min=n.top+n.dY,n.type=="image"&&(this.content.style.cursor="move"),hs.setStyles(this.wrapper,{left:this.x.min+"px",top:this.y.min+"px"}),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){this.isClosing=!0,hs.removeEventListener(document,"keydown",hs.keyHandler);try{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(n){this.afterClose()}}},createOverlay:function(n){var t=n.overlayId,i;(typeof t=="string"&&(t=hs.getNode(t)),t&&typeof t!="string")&&(i=hs.createElement("div",null,{left:0,top:0,position:"absolute",zIndex:3,visibility:"hidden"},this.wrapper,!0),n.opacity&&hs.setStyles(t,{opacity:n.opacity}),t.style.styleFloat="none",t.className+=" highslide-display-block",i.appendChild(t),i.hsPos=n.position,this.positionOverlay(i),n.hideOnMouseOut&&i.setAttribute("hideOnMouseOut",!0),n.opacity||(n.opacity=1),i.setAttribute("opacity",n.opacity),hs.fade(i,0,n.opacity),hs.push(this.overlays,i))},positionOverlay:function(n){var i=this.offsetBorderW,u=this.x.span-n.offsetWidth,r=this.offsetBorderH,f=parseInt(this.content.style.height)-n.offsetHeight,t=n.hsPos||"center center";/^bottom/.test(t)&&(r+=f),/^center/.test(t)&&(r+=f/2),/right$/.test(t)&&(i+=u),/center$/.test(t)&&(i+=u/2),n.style.left=i+"px",n.style.top=r+"px"},createOverlays:function(){for(var n=0;n<hs.overlays.length;n++){var t=hs.overlays[n],i=t.thumbnailId,r=t.slideshowGroup;(i||r)&&i!=this.thumbsUserSetId&&r!==this.slideshowGroup||this.createOverlay(t)}},createFullExpand:function(){var n=hs.createElement("a",{href:"javascript:hs.expanders["+this.key+"].doFullExpand();",title:hs.fullExpandTitle,className:"highslide-full-expand"});this.fullExpandLabel=n,this.createOverlay({overlayId:n,position:hs.fullExpandPosition,hideOnMouseOut:!0,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,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,this.objOutline&&this.objOutline.setPosition(this,this.x.min,this.y.min,this.x.span,this.y.span);for(var n=0;n<this.overlays.length;n++)this.positionOverlay(this.overlays[n]);this.redoShowHide()}catch(t){window.location.href=this.content.src}},redoShowHide:function(){var n={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};hs.hideSelects&&this.showHideElements("SELECT","hidden",n),hs.hideIframes&&this.showHideElements("IFRAME","hidden",n),hs.geckoMac&&this.showHideElements("*","hidden",n)},wrapperMouseHandler:function(n){var i,r,t,u,f;if(n||(n=window.event),i=/mouseover/i.test(n.type),n.target||(n.target=n.srcElement),hs.ie&&(n.relatedTarget=i?n.fromElement:n.toElement),hs.getExpander(n.relatedTarget)!=this&&!hs.dragArgs)for(r=0;r<this.overlays.length;r++)t=this.overlays[r],t.getAttribute("hideOnMouseOut")&&(u=i?0:t.getAttribute("opacity"),f=i?t.getAttribute("opacity"):0,hs.fade(t,u,f))},afterClose:function(){this.a.className=this.a.className.replace("highslide-active-anchor",""),hs.hideSelects&&this.showHideElements("SELECT","visible"),hs.hideIframes&&this.showHideElements("IFRAME","visible"),hs.geckoMac&&this.showHideElements("*","visible"),this.objOutline&&this.outlineWhileAnimating&&this.objOutline.destroy(),hs.purge(this.wrapper),hs.ie&&hs.ieVersion()<5.5?this.wrapper.innerHTML="":this.wrapper.parentNode.removeChild(this.wrapper),hs.expanders[this.key]=null,hs.cleanUp()}},HsExpander=hs.Expander,hs.addEventListener(document,"mousedown",hs.mouseClickHandler),hs.addEventListener(document,"mouseup",hs.mouseClickHandler),hs.addEventListener(window,"load",hs.preloadImages)