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:true,creditsText:"Powered by <i>Highslide JS</i>",creditsHref:"http://vikjavev.no/highslide/",creditsTitle:"Go to the Highslide JS homepage",enableKeyListener: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","wrapperClassName","minWidth","minHeight","slideshowGroup"],overlays:[],faders:[],pendingOutlines:{},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 c=document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body;var b=hs.ie?c.clientWidth:(document.documentElement.clientWidth||self.innerWidth),a=hs.ie?c.clientHeight:self.innerHeight;return{width:b,height:a,scrollLeft:hs.ie?c.scrollLeft:pageXOffset,scrollTop:hs.ie?c.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}},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])}}},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}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()}}},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(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)){f.close()}else{if(c||(!c&&hs.hasHtmlexpanders)){hs.dragArgs.exp.redoShowHide()}}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;hs.dragArgs.dX=a.clientX-hs.dragArgs.clickX;hs.dragArgs.dY=a.clientY-hs.dragArgs.clickY;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)}},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.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;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()";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()},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;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";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"};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,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,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);this.correctRatio(j);var l=this.x;var k=this.y;this.show()}catch(g){window.location.href=hs.getSrc(this.a)}},justify:function(d){var e,c=d==this.x?"x":"y";var b=false;var a=true;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}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)}},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"}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){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()}}}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 s=i<l?p:q,u={},t=i;for(var n in s){u[n]=s[n]}setTimeout(function(){if(k&&t==1){e.content.style.visibility="visible";e.a.className+=" highslide-active-anchor"}e.setSize(u)},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)}},setSize:function(c){try{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();this.createOverlays();if(hs.showCredits){this.writeCredits()}if(this.fullExpandWidth>this.x.span){this.createFullExpand()}if(!this.caption){this.prepareNextOutline()}},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;this.a.style.cursor=this.originalCursor;if(this.loading){hs.loading.style.left="-9999px"}},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(!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 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()}},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;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"}a.content.style.cursor=hs.ie?"hand":"pointer";a.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","")}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(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)}},close:function(){if(this.isClosing||!this.isExpanded){return}this.isClosing=true;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(a){this.afterClose()}},createOverlay:function(c){var b=c.overlayId;if(typeof b=="string"){b=hs.getNode(b)}if(!b||typeof b=="string"){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){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;this.createOverlay({overlayId:b,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 a=0;a<this.overlays.length;a++){this.positionOverlay(this.overlays[a])}this.redoShowHide()}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}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.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)}hs.expanders[this.key]=null;hs.cleanUp()}};var HsExpander=hs.Expander;hs.addEventListener(document,"mousedown",hs.mouseClickHandler);hs.addEventListener(document,"mouseup",hs.mouseClickHandler);hs.addEventListener(window,"load",hs.preloadImages);hs.allowWidthReduction=false;hs.allowHeightReduction=true;hs.objectLoadTime="before";hs.cacheAjax=true;hs.preserveContent=false;hs.push(hs.overrides,"contentId");hs.push(hs.overrides,"allowWidthReduction");hs.push(hs.overrides,"allowHeightReduction");hs.push(hs.overrides,"objectType");hs.push(hs.overrides,"objectWidth");hs.push(hs.overrides,"objectHeight");hs.push(hs.overrides,"objectLoadTime");hs.push(hs.overrides,"swfObject");hs.push(hs.overrides,"cacheAjax");hs.push(hs.overrides,"preserveContent");hs.preloadTheseAjax=new Array;hs.cacheBindings=new Array;hs.sleeping=new Array;hs.cacheCounter=0;hs.htmlExpand=function(b,g,d){if(!hs.$(g.contentId)&&!hs.origNodes[g.contentId]){return true}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 HsExpander(b,g,d,"html");return false}catch(f){return true}};hs.identifyContainer=function(b,a){for(i=0;i<b.childNodes.length;i++){if(b.childNodes[i].className==a){return b.childNodes[i]}}};hs.geckoBug=function(a){return(!hs.ie&&a.className&&a.className=="highslide-body"&&hs.expanders[hs.getWrapperKey(a)]&&hs.expanders[hs.getWrapperKey(a)].swfObject)};hs.preloadAjax=function(f){var g=document.getElementsByTagName("A");var b,d,c=0;for(i=0;i<g.length;i++){b=g[i];d=hs.isHsAnchor(b);if(d&&d[0]=="hs.htmlExpand"&&hs.getParam(b,"objectType")=="ajax"&&hs.getParam(b,"cacheAjax")){hs.preloadTheseAjax[c]=b;c++}}hs.preloadAjaxElement(0)};hs.preloadAjaxElement=function(d){if(!hs.preloadTheseAjax[d]){return}var b=hs.preloadTheseAjax[d];var f=hs.getOrigContent(b,hs.getParam(b,"contentId"));var c=hs.cloneNode(f.id);var e=new HsAjax(b,c);e.onError=function(){};e.onLoad=function(){hs.setId(c,/-hsOrig$/,1);hs.setId(c,"-hsCache"+hs.cacheCounter);hs.genContainer();hs.container.appendChild(c);hs.cacheBindings[c.id]=b;hs.cacheCounter++;hs.preloadAjaxElement(d+1)};e.run()};hs.getCacheBinding=function(c){for(var b in hs.cacheBindings){if(hs.cacheBindings[b]==c){return hs.$(b)}}return false};hs.getOrigContent=function(c,d){var b=hs.getCacheBinding(c);if(b){return b}return hs.origNodes[d]?hs.origNodes[d]:hs.$(d)};HsExpander.prototype.htmlCreate=function(){this.origContent=hs.getOrigContent(this.a,this.contentId);this.tempContainer=hs.createElement("div",null,{padding:"0 "+hs.marginRight+"px 0 "+hs.marginLeft+"px",position:"absolute",left:0,top:0},document.body);this.innerContent=hs.cloneNode(this.origContent.id);hs.setId(this.innerContent,/-hsCache[0-9]+/,1);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"},null,true);if(this.objectType=="ajax"&&!hs.getCacheBinding(this.a)){var a=new HsAjax(this.a,this.innerContent);var b=this;a.onLoad=function(){b.onLoad()};a.onError=function(){location.href=hs.getSrc(this.a)};a.run()}else{this.onLoad()}};HsExpander.prototype.htmlGetSize=function(){var a=hs.createElement("div",null,{clear:"both",borderTop:"1px solid white"},this.innerContent,true);this.newWidth=this.innerContent.offsetWidth;this.newHeight=this.innerContent.offsetHeight;this.innerContent.removeChild(a);if(hs.ie&&this.newHeight>parseInt(this.innerContent.currentStyle.height)){this.newHeight=parseInt(this.innerContent.currentStyle.height)}};HsExpander.prototype.setObjContainerSize=function(a,d){if(this.swfObject||this.objectType=="iframe"){var b=hs.identifyContainer(a,"highslide-body");b.style.width=this.swfObject?this.swfObject.attributes.width+"px":this.objectWidth+"px";b.style.height=this.swfObject?this.swfObject.attributes.height+"px":this.objectHeight+"px"}};HsExpander.prototype.writeExtendedContent=function(){if(this.hasExtendedContent){return}this.objContainer=hs.identifyContainer(this.innerContent,"highslide-body");if(this.objectType=="iframe"){if(hs.ie&&hs.ieVersion()<5.5){window.location.href=hs.getSrc(this.a)}var a=this.key;this.iframe=hs.createElement("iframe",{frameBorder:0},{width:this.objectWidth+"px",height:this.objectHeight+"px"},this.objContainer);if(hs.safari){this.iframe.src=null}this.iframe.src=hs.getSrc(this.a);if(this.objectLoadTime=="after"){this.correctIframeSize()}}else{if(this.swfObject){this.objContainer.id=this.objContainer.id||"hs-flash-id-"+this.key;this.swfObject.write(this.objContainer.id)}}this.hasExtendedContent=true};HsExpander.prototype.correctIframeSize=function(){var b=this.innerContent.offsetWidth-this.objContainer.offsetWidth;if(b<0){b=0}var a=this.innerContent.offsetHeight-this.objContainer.offsetHeight;hs.setStyles(this.iframe,{width:(this.x.span-b)+"px",height:(this.y.span-a)+"px"});hs.setStyles(this.objContainer,{width:this.iframe.style.width,height:this.iframe.style.height});this.scrollingContent=this.iframe;this.scrollerDiv=this.scrollingContent};HsExpander.prototype.htmlSizeOperations=function(){this.setObjContainerSize(this.innerContent);if(this.objectLoadTime=="before"){this.writeExtendedContent()}if(this.x.span<this.newWidth&&!this.allowWidthReduction){this.x.span=this.newWidth}if(this.y.span<this.newHeight&&!this.allowHeightReduction){this.y.span=this.newHeight}this.scrollerDiv=this.innerContent;this.mediumContent=hs.createElement("div",null,{width:this.x.span+"px",position:"relative",left:(this.x.min-this.thumbLeft)+"px",top:(this.y.min-this.thumbTop)+"px"},this.content,true);this.mediumContent.appendChild(this.innerContent);document.body.removeChild(this.tempContainer);hs.setStyles(this.innerContent,{border:"none",width:"auto",height:"auto"});var e=hs.identifyContainer(this.innerContent,"highslide-body");if(e&&!this.swfObject&&this.objectType!="iframe"){var b=e.cloneNode(true);e.innerHTML="";e.id=null;hs.setStyles(e,{margin:0,border:"none",padding:0,overflow:"hidden"});e.appendChild(b);var c=this.innerContent.offsetWidth-e.offsetWidth;var a=this.innerContent.offsetHeight-e.offsetHeight;var d=hs.safari||navigator.vendor=="KDE"?1:0;hs.setStyles(e,{width:(this.x.span-c-d)+"px",height:(this.y.span-a+1)+"px",overflow:"auto",position:"relative"});if(b.offsetHeight>e.offsetHeight){if(d){e.style.width=(parseInt(e.style.width)+d)+"px"}}this.scrollingContent=e;this.scrollerDiv=this.scrollingContent}if(this.iframe&&this.objectLoadTime=="before"){this.correctIframeSize()}if(!this.scrollingContent&&this.y.span<this.mediumContent.offsetHeight){this.scrollerDiv=this.content}if(this.scrollerDiv==this.content&&!this.allowWidthReduction&&this.objectType!="iframe"){this.x.span+=17}if(this.scrollerDiv&&this.scrollerDiv.offsetHeight>this.scrollerDiv.parentNode.offsetHeight){setTimeout("try { hs.expanders["+this.key+"].scrollerDiv.style.overflow = 'auto'; } catch(e) {}",hs.expandDuration)}};HsExpander.prototype.htmlSetSize=function(c,d,a,k,j,b){try{hs.setStyles(this.wrapper,{visibility:"visible",left:a+"px",top:k+"px"});hs.setStyles(this.content,{width:c+"px",height:d+"px"});hs.setStyles(this.mediumContent,{left:(this.x.min-a)+"px",top:(this.y.min-k)+"px"});this.innerContent.style.visibility="visible";if(this.objOutline&&this.outlineWhileAnimating){var g=this.objOutline.offset-j;this.positionOutline(a+g,k+g,c-2*g,d-2*g,1)}if(b==1){setTimeout("try { hs.expanders["+this.key+"].onExpanded(); } catch(e) {}",0)}else{if(b==-1){setTimeout("try { hs.expanders["+this.key+"].onEndClose(); } catch(e) {}",0)}}}catch(f){window.location.href=hs.getSrc(this.a)}};HsExpander.prototype.reflow=function(){hs.setStyles(this.scrollerDiv,{height:"auto",width:"auto"});this.x.span=this.innerContent.offsetWidth;this.y.span=this.innerContent.offsetHeight;var a={width:this.x.span+"px",height:this.y.span+"px"};hs.setStyles(this.content,a);this.positionOutline(this.x.min,this.y.min,this.x.span,this.y.span)};HsExpander.prototype.htmlOnClose=function(){if(this.objectLoadTime=="after"&&!this.preserveContent){this.destroyObject()}if(this.scrollerDiv&&this.scrollerDiv!=this.scrollingContent){this.scrollerDiv.style.overflow="hidden"}if(this.swfObject){hs.$(this.swfObject.getAttribute("id")).StopPlay()}};HsExpander.prototype.destroyObject=function(){this.objContainer.innerHTML=""};HsExpander.prototype.sleep=function(){if(this.objOutline){this.objOutline.table.className="highslide-display-none"}this.wrapper.className+=" highslide-display-none";hs.setId(this.content,"-hsSleeping"+this.key);hs.push(hs.sleeping,this)};HsExpander.prototype.awake=function(){hs.expanders[this.key]=this;this.wrapper.className=this.wrapper.className.replace(/highslide-display-none/,"");var a=hs.zIndexCounter++;this.wrapper.style.zIndex=a;if(o=this.objOutline){if(!this.outlineWhileAnimating){o.table.style.visibility="hidden"}o.table.className=null;o.table.style.zIndex=a}hs.setId(this.content,"-hsSleeping"+this.key,1);this.show()};HsAjax=function(b,c){this.a=b;this.content=c};HsAjax.prototype.run=function(){try{this.xmlHttp=new XMLHttpRequest()}catch(b){try{this.xmlHttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{this.xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){this.onError()}}}this.src=hs.getSrc(this.a);if(this.src.match("#")){var a=this.src.split("#");this.src=a[0];this.id=a[1]}var c=this;this.xmlHttp.onreadystatechange=function(){if(c.xmlHttp.readyState==4){if(c.id){c.getElementContent()}else{c.loadHTML()}}};this.xmlHttp.open("GET",this.src,true);this.xmlHttp.send(null)};HsAjax.prototype.getElementContent=function(){hs.genContainer();var b=window.opera?{src:this.src}:null;this.iframe=hs.createElement("iframe",b,{position:"absolute",left:"-9999px"},hs.container);try{this.loadHTML()}catch(a){var c=this;setTimeout(function(){c.loadHTML()},1)}};HsAjax.prototype.loadHTML=function(){var a=this.xmlHttp.responseText;if(!hs.ie||hs.ieVersion()>=5.5){a=a.replace(/\s/g," ");if(this.iframe){var c=this.iframe.contentDocument||this.iframe.contentWindow.document;c.open();c.write(a.replace(new RegExp("<link[^>]*>","gi"),""));c.close();try{a=c.getElementById(this.id).innerHTML}catch(b){}hs.container.removeChild(this.iframe)}else{a=a.replace(new RegExp("^.*?<body[^>]*>(.*?)</body>.*?$","i"),"$1")}}hs.identifyContainer(this.content,"highslide-body").innerHTML=a;this.onLoad()};hs.addEventListener(window,"load",hs.preloadAjax);