var hs={lang:{loadingText:"Loading...",loadingTitle:"Click to cancel",focusTitle:"Click to bring to front",fullExpandTitle:"Expand to actual size",creditsText:"Powered by <i>Highslide JS</i>",creditsTitle:"Go to the Highslide JS homepage",previousText:"Previous",nextText:"Next",moveText:"Move",closeText:"Close",closeTitle:"Close (esc)",resizeTitle:"Resize",playText:"Play",playTitle:"Play slideshow (spacebar)",pauseText:"Pause",pauseTitle:"Pause slideshow (spacebar)",previousTitle:"Previous (arrow left)",nextTitle:"Next (arrow right)",moveTitle:"Move",fullExpandText:"Full size",restoreTitle:"Click to close image, click and drag to move. Use arrow keys for next and previous."},graphicsDir:"highslide/graphics/",restoreCursor:"zoomout.cur",expandSteps:10,expandDuration:250,restoreSteps:10,restoreDuration:250,marginLeft:15,marginRight:15,marginTop:15,marginBottom:15,zIndexCounter:1001,loadingOpacity:0.75,allowMultipleInstances:true,numberOfImagesToPreload:5,outlineWhileAnimating:2,outlineStartOffset:3,fullExpandPosition:"bottom right",fullExpandOpacity:1,padToMinWidth:false,showCredits:false,creditsHref:"http://vikjavev.no/highslide/",enableKeyListener:true,allowWidthReduction:false,allowHeightReduction:true,preserveContent:true,objectLoadTime:"before",cacheAjax:true,anchor:"auto",align:"auto",targetX:null,targetY:null,dragByHeading:true,minWidth:200,minHeight:200,allowSizeReduction:true,outlineType:"drop-shadow",wrapperClassName:"highslide-wrapper",skin:{contentWrapper:'<div class="highslide-header"><ul><li class="highslide-previous"><a href="#" title="{hs.lang.previousTitle}" onclick="return hs.previous(this)"><span>{hs.lang.previousText}</span></a></li><li class="highslide-next"><a href="#" title="{hs.lang.nextTitle}" onclick="return hs.next(this)"><span>{hs.lang.nextText}</span></a></li><li class="highslide-move"><a href="#" title="{hs.lang.moveTitle}" onclick="return false"><span>{hs.lang.moveText}</span></a></li><li class="highslide-close"><a href="#" title="{hs.lang.closeTitle}" onclick="return hs.close(this)"><span>{hs.lang.closeText}</span></a></li></ul></div><div class="highslide-body"></div><div class="highslide-footer"><div><span class="highslide-resize" title="{hs.lang.resizeTitle}"><span></span></span></div></div>'},preloadTheseImages:[],continuePreloading:true,expanders:[],overrides:["allowSizeReduction","anchor","align","targetX","targetY","outlineType","outlineWhileAnimating","captionId","captionText","captionEval","captionOverlay","headingId","headingText","headingEval","headingOverlay","dragByHeading","contentId","width","height","allowWidthReduction","allowHeightReduction","preserveContent","maincontentId","maincontentText","maincontentEval","objectType","cacheAjax","objectWidth","objectHeight","objectLoadTime","swfOptions","wrapperClassName","minWidth","minHeight","maxWidth","maxHeight","slideshowGroup","easing","easingClose","fadeInOut","src"],overlays:[],idCounter:0,oPos:{x:["leftpanel","left","center","right","rightpanel"],y:["above","top","middle","bottom","below"]},mouse:{},headingOverlay:{},captionOverlay:{},swfOptions:{flashvars:{},params:{},attributes:{}},faders:[],pendingOutlines:{},sleeping:[],preloadTheseAjax:[],cacheBindings:[],cachedGets:{},clones:{},ie:(document.all&&!window.opera),safari:/Safari/.test(navigator.userAgent),geckoMac:/Macintosh.+rv:1\.[0-8].+Gecko/.test(navigator.userAgent),$: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(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){if(hs.ie&&a=="opacity"){if(c[a]>0.99){b.style.removeAttribute("filter")}else{b.style.filter="alpha(opacity="+(c[a]*100)+")"}}else{b.style[a]=c[a]}}},ieVersion:function(){var a=navigator.appVersion.split("MSIE");return a[1]?parseFloat(a[1]):null},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}},getPosition: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}},getSelfRendered:function(){return hs.createElement("div",{className:"highslide-html-content",innerHTML:hs.replaceLang(hs.skin.contentWrapper)})},getElementByClass:function(e,c,d){var b=e.getElementsByTagName(c);for(var a=0;a<b.length;a++){if((new RegExp(d)).test(b[a].className)){return b[a]}}return null},replaceLang:function(c){c=c.replace(/\s/g," ");var b=/{hs\.lang\.([^}]+)\}/g,d=c.match(b),e;for(var a=0;a<d.length;a++){e=d[a].replace(b,"$1");if(hs.lang[e]){c=c.replace(d[a],hs.lang[e])}}return c},setClickEvents:function(){var c=document.getElementsByTagName("a");for(var b=0;b<c.length;b++){if(/^highslide$/.test(c[b].rel)){c[b].onclick=function(){return hs.expand(this)};c[b].removeAttribute("rel")}var a=/^highslide-(ajax|iframe)$/.exec(c[b].rel);if(a){(function(){var d=a[1];c[b].onclick=function(){return hs.htmlExpand(this,{objectType:d})}})();c[b].removeAttribute("rel")}}if(!hs.pageLoaded){setTimeout(hs.setClickEvents,50)}else{hs.updateAnchors()}},getCacheBinding:function(b){for(var d=0;d<hs.cacheBindings.length;d++){if(hs.cacheBindings[d][0]==b){var e=hs.cacheBindings[d][1];hs.cacheBindings[d][1]=e.cloneNode(1);return e}}return null},preloadAjax:function(f){var b=hs.getAnchors();for(var d=0;d<b.htmls.length;d++){var c=b.htmls[d];if(hs.getParam(c,"objectType")=="ajax"&&hs.getParam(c,"cacheAjax")){hs.push(hs.preloadTheseAjax,c)}}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(var c=0;c<hs.expanders.length;c++){if(hs.expanders[c]){if(hs.expanders[c].wrapper.style.zIndex&&hs.expanders[c].wrapper.style.zIndex>b){b=hs.expanders[c].wrapper.style.zIndex;a=c}}}if(a==-1){hs.focusKey=-1}else{hs.expanders[a].focus()}},getParam:function(b,d){b.getParams=b.onclick;var c=b.getParams?b.getParams():null;b.getParams=null;return(c&&typeof c[d]!="undefined")?c[d]:(typeof hs[d]!="undefined"?hs[d]:null)},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)}},discardElement:function(a){hs.garbageBin.appendChild(a);hs.garbageBin.innerHTML=""},previousOrNext:function(b,f){var d=hs.last=hs.getExpander(b);try{var a=hs.upcoming=d.getAdjacentAnchor(f);a.onclick()}catch(c){hs.last=hs.upcoming=null}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 true}var c=null;switch(a.keyCode){case 32:case 34:case 39:case 40:c=1;break;case 8:case 33:case 37:case 38:c=-1;break;case 27:case 13:c=0}if(c!==null){hs.removeEventListener(document,"keydown",hs.keyHandler);if(!hs.enableKeyListener){return true}if(a.preventDefault){a.preventDefault()}else{a.returnValue=false}var b=hs.getExpander();if(b){if(c==0){b.close();return false}else{return hs.previousOrNext(b.key,c)}}}return true},registerOverlay:function(a){hs.push(hs.overlays,a)},getWrapperKey:function(b){var d,c=/^highslide-wrapper-([0-9]+)$/;d=b;while(d.parentNode){if(d.id&&c.test(d.id)){return d.id.replace(c,"$1")}d=d.parentNode}d=b;while(d.parentNode){if(d.tagName&&hs.isHsAnchor(d)){for(var a=0;a<hs.expanders.length;a++){var e=hs.expanders[a];if(e&&e.a==d){return a}}}d=d.parentNode}return null},getExpander:function(a){if(typeof a=="undefined"){return hs.expanders[hs.focusKey]||null}if(typeof a=="number"){return hs.expanders[a]||null}if(typeof a=="string"){a=hs.$(a)}return hs.expanders[hs.getWrapperKey(a)]||null},isHsAnchor:function(b){return(b.onclick&&b.onclick.toString().replace(/\s/g," ").match(/hs.(htmlE|e)xpand/))},reOrder:function(){for(var a=0;a<hs.expanders.length;a++){if(hs.expanders[a]&&hs.expanders[a].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&&(f.isClosing||!f.isExpanded)){return true}if(f&&d.type=="mousedown"){if(d.target.form){return true}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};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=hs.dragArgs.hasDragged;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}}}}return false},dragHandler:function(c){if(!hs.dragArgs){return true}if(!c){c=window.event}var b=hs.dragArgs,d=b.exp;b.dX=c.clientX-b.clickX;b.dY=c.clientY-b.clickY;var f=Math.sqrt(Math.pow(b.dX,2)+Math.pow(b.dY,2));if(!b.hasDragged){b.hasDragged=(b.type!="image"&&f>0)||(f>(hs.dragSensitivity||5))}if(b.hasDragged&&c.clientX>5&&c.clientY>5){if(b.type=="resize"){d.resize(b)}else{d.move(b)}}return false},wrapperMouseHandler:function(c){try{if(!c){c=window.event}var b=/mouseover/i.test(c.type);if(!c.target){c.target=c.srcElement}if(hs.ie){c.relatedTarget=b?c.fromElement:c.toElement}var f=hs.getExpander(c.target);if(!f||!c.relatedTarget||hs.getExpander(c.relatedTarget)==f||hs.dragArgs){return}for(var a=0;a<f.overlays.length;a++){var d=hs.$("hsId"+f.overlays[a]);if(d&&d.hideOnMouseOut){var h=b?0:d.opacity,g=b?d.opacity:0;hs.fade(d,h,g)}}}catch(c){}},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(){a=null;hs.preloadFullImage(b+1)};a.src=hs.preloadTheseImages[b]}},preloadImages:function(c){if(c&&typeof c!="object"){hs.numberOfImagesToPreload=c}var a=hs.getAnchors();for(var b=0;b<a.images.length&&b<hs.numberOfImagesToPreload;b++){hs.push(hs.preloadTheseImages,hs.getSrc(a.images[b]))}if(hs.outlineType){new hs.Outline(hs.outlineType,function(){hs.preloadFullImage(0)})}else{hs.preloadFullImage(0)}var d=hs.createElement("img",{src:hs.graphicsDir+hs.restoreCursor})},init: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.lang.loadingTitle,innerHTML:hs.lang.loadingText,href:"javascript:;"},{position:"absolute",opacity:hs.loadingOpacity,left:"-9999px",zIndex:1},hs.container);hs.garbageBin=hs.createElement("div",null,{display:"none"},hs.container);hs.clearing=hs.createElement("div",null,{clear:"both",paddingTop:"1px"},null,true);Math.linearTween=function(f,e,h,g){return h*f/g+e};Math.easeInQuad=function(f,e,h,g){return h*(f/=g)*f+e};for(var a in hs.langDefaults){hs.lang[a]=hs[a]||hs.lang[a]||hs.langDefaults[a]}hs.ie6SSL=(hs.ie&&hs.ieVersion()<=6&&location.protocol=="https:");hs.getAnchors()}},updateAnchors:function(){var d=document.getElementsByTagName("*"),f=[],b=[],j=[],a={},e;for(var c=0;c<d.length;c++){e=hs.isHsAnchor(d[c]);if(e){hs.push(f,d[c]);if(e[0]=="hs.expand"){hs.push(b,d[c])}else{if(e[0]=="hs.htmlExpand"){hs.push(j,d[c])}}var h=hs.getParam(d[c],"slideshowGroup")||"none";if(!a[h]){a[h]=[]}hs.push(a[h],d[c])}}hs.anchors={all:f,groups:a,images:b,htmls:j};return hs.anchors},getAnchors:function(){return hs.anchors||hs.updateAnchors()},fade:function(e,h,c,d,b,a){if(typeof b=="undefined"){if(typeof d!="number"){d=250}if(d<25){hs.setStyles(e,{opacity:c});return}b=hs.faders.length;a=c>h?1:-1;var g=(25/(d-d%25))*Math.abs(h-c)}h=parseFloat(h);var f=(e.fade===0||e.fade===false||(e.fade==2&&hs.ie));e.style.visibility=((f?c:h)<=0)?"hidden":"visible";if(f||h<0||(a==1&&h>c)){return}if(e.fading&&e.fading.i!=b){clearTimeout(hs.faders[e.fading.i]);h=e.fading.o}e.fading={i:b,o:h,step:(g||e.fading.step)};e.style.visibility=(h<=0)?"hidden":"visible";hs.setStyles(e,{opacity:h});hs.faders[b]=setTimeout(function(){hs.fade(e,h+e.fading.step*a,c,null,b,a)},25)},close:function(a){var b=hs.getExpander(a);if(b){b.close()}return false}};hs.Outline=function(g,e){this.onLoad=e;this.outlineType=g;var a=hs.ieVersion(),f;this.hasAlphaImageLoader=hs.ie&&a>=5.5&&a<7;if(!g){if(e){e()}return}hs.init();this.table=hs.createElement("table",{cellSpacing:0},{visibility:"hidden",position:"absolute",borderCollapse:"collapse"},hs.container,true);var b=hs.createElement("tbody",null,null,this.table,1);this.td=[];for(var c=0;c<=8;c++){if(c%3==0){f=hs.createElement("tr",null,{height:"auto"},b,true)}this.td[c]=hs.createElement("td",null,null,f,true);var d=c!=4?{lineHeight:0,fontSize:0}:{position:"relative"};hs.setStyles(this.td[c],d)}this.td[4].className=g;this.preloadGraphic()};hs.Outline.prototype={preloadGraphic:function(){var b=hs.graphicsDir+(hs.outlinesDir||"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"};hs.discardElement(this.graphic);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)}}if(hs.pendingOutlines[this.outlineType]){hs.pendingOutlines[this.outlineType].destroy()}hs.pendingOutlines[this.outlineType]=this;if(this.onLoad){this.onLoad()}},setPosition:function(b,c,a){c=c||{x:b.x.min,y:b.y.min,w:b.x.span+b.x.p1+b.x.p2,h:b.y.span+b.y.p1+b.y.p2};if(a){this.table.style.visibility=(c.h>=4*this.offset)?"visible":"hidden"}hs.setStyles(this.table,{left:(c.x-this.offset)+"px",top:(c.y-this.offset)+"px",width:(c.w+2*(b.x.cb+this.offset))+"px"});c.w+=2*(b.x.cb-this.offset);c.h+=+2*(b.y.cb-this.offset);hs.setStyles(this.td[4],{width:c.w>=0?c.w+"px":0,height:c.h>=0?c.h+"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.discardElement(this.table)}}};hs.Expander=function(l,f,b,m){this.a=l;this.custom=b;this.contentType=m||"image";this.isHtml=(m=="html");this.isImage=!this.isHtml;hs.continuePreloading=false;this.overlays=[];hs.init();var n=this.key=hs.expanders.length;for(var g=0;g<hs.overrides.length;g++){var c=hs.overrides[g];this[c]=f&&typeof f[c]!="undefined"?f[c]:hs[c]}if(!this.src){this.src=l.href}var d=(f&&f.thumbnailId)?hs.$(f.thumbnailId):l;d=this.thumb=d.getElementsByTagName("img")[0]||d;this.thumbsUserSetId=d.id||l.id;for(var g=0;g<hs.expanders.length;g++){if(hs.expanders[g]&&hs.expanders[g].a==l){hs.expanders[g].focus();return false}}for(var g=0;g<hs.expanders.length;g++){if(hs.expanders[g]&&hs.expanders[g].thumb!=d&&!hs.expanders[g].onLoadStarted){hs.expanders[g].cancelLoading()}}hs.expanders[this.key]=this;if(!hs.allowMultipleInstances){if(hs.expanders[n-1]){hs.expanders[n-1].close()}if(typeof hs.focusKey!="undefined"&&hs.expanders[hs.focusKey]){hs.expanders[hs.focusKey].close()}}var j=hs.getPosition(d);var k=this.x={};k.t=d.width?parseInt(d.width):d.offsetWidth;k.tpos=j.x;k.tb=(d.offsetWidth-k.t)/2;var h=this.y={};h.t=d.height?parseInt(d.height):d.offsetHeight;h.tpos=j.y;h.tb=(d.offsetHeight-h.t)/2;k.p1=k.p2=h.p1=h.p2=0;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=this.wrapper.onmouseout=hs.wrapperMouseHandler;if(this.contentType=="image"&&this.outlineWhileAnimating==2){this.outlineWhileAnimating=0}if(!this.outlineType){this[this.contentType+"Create"]()}else{if(hs.pendingOutlines[this.outlineType]){this.connectOutline();this[this.contentType+"Create"]()}else{this.showLoading();var e=this;new hs.Outline(this.outlineType,function(){e.connectOutline();e[e.contentType+"Create"]()})}}return true};hs.Expander.prototype={connectOutline:function(a,c){var b=this.outline=hs.pendingOutlines[this.outlineType];b.table.style.zIndex=this.wrapper.style.zIndex;hs.pendingOutlines[this.outlineType]=null},showLoading:function(){if(this.onLoadStarted||this.loading){return}this.loading=hs.loading;var c=this;this.loading.onclick=function(){c.cancelLoading()};var c=this,a=(this.x.tpos+this.x.tb+(this.x.t-this.loading.offsetWidth)/2)+"px",b=(this.y.tpos+(this.y.t-this.loading.offsetHeight)/2)+"px";setTimeout(function(){if(c.loading){hs.setStyles(c.loading,{left:a,top:b})}},100)},imageCreate:function(){var b=this;var a=document.createElement("img");this.content=a;a.onload=function(){if(hs.expanders[b.key]){b.contentLoaded()}};if(hs.blockRightClick){a.oncontextmenu=function(){return false}}a.className="highslide-image";hs.setStyles(a,{visibility:"hidden",display:"block",position:"absolute",maxWidth:"9999px",zIndex:3});a.title=hs.lang.restoreTitle;if(hs.safari){hs.container.appendChild(a)}if(hs.ie&&hs.flushImgSize){a.src=null}a.src=this.src;this.showLoading()},htmlCreate:function(){this.content=hs.getCacheBinding(this.a);if(!this.content){this.content=hs.getNode(this.contentId)}if(!this.content){this.content=hs.getSelfRendered()}this.getInline(["maincontent"]);if(this.maincontent){var a=hs.getElementByClass(this.content,"div","highslide-body");if(a){a.appendChild(this.maincontent)}this.maincontent.style.display="block"}this.innerContent=this.content;if(/(swf|iframe)/.test(this.objectType)){this.setObjContainerSize(this.innerContent)}hs.container.appendChild(this.wrapper);hs.setStyles(this.wrapper,{position:"static",padding:"0 "+hs.marginRight+"px 0 "+hs.marginLeft+"px"});this.content=hs.createElement("div",{className:"highslide-html"},{position:"relative",zIndex:3,overflow:"hidden"},this.wrapper);this.mediumContent=hs.createElement("div",null,null,this.content,1);this.mediumContent.appendChild(this.innerContent);hs.setStyles(this.innerContent,{position:"relative",display:"block"});if(this.width){this.innerContent.style.width=this.width+"px"}if(this.height){this.innerContent.style.height=this.height+"px"}if(this.innerContent.offsetWidth<this.minWidth){this.innerContent.style.width=this.minWidth+"px"}if(this.objectType=="ajax"&&!hs.getCacheBinding(this.a)){this.showLoading();var b=new hs.Ajax(this.a,this.innerContent);var c=this;b.onLoad=function(){if(hs.expanders[c.key]){c.contentLoaded()}};b.onError=function(){location.href=c.src};b.run()}else{this.contentLoaded()}},contentLoaded:function(){try{if(!this.content){return}this.content.onload=null;if(this.onLoadStarted){return}else{this.onLoadStarted=true}var i=this.x,h=this.y;if(this.loading){hs.setStyles(this.loading,{left:"-9999px",top:"-9999px"});this.loading=null}this.marginBottom=hs.marginBottom;if(this.isImage){i.full=this.content.width;h.full=this.content.height;hs.setStyles(this.content,{width:this.x.t+"px",height:this.y.t+"px"})}else{if(this.htmlGetSize){this.htmlGetSize()}}this.wrapper.appendChild(this.content);this.content.style.position="relative";hs.setStyles(this.wrapper,{left:this.x.tpos+"px",top:this.y.tpos+"px"});hs.container.appendChild(this.wrapper);i.cb=(this.content.offsetWidth-this.x.t)/2;h.cb=(this.content.offsetHeight-this.y.t)/2;var b=hs.marginRight+2*i.cb;this.marginBottom+=2*h.cb;this.getOverlays();var g=i.full/h.full;var a=this.allowSizeReduction?this.minWidth:i.full;var j=this.allowSizeReduction?this.minHeight:h.full;var c={x:"auto",y:"auto"};if(this.align=="center"){c.x="center";c.y="center"}else{if(this.anchor.match(/^top/)){c.y=null}if(this.anchor.match(/right$/)){c.x="max"}if(this.anchor.match(/^bottom/)){c.y="max"}if(this.anchor.match(/left$/)){c.x=null}}var f=hs.getPageSize();i.min=i.tpos-i.cb+i.tb;i.span=Math.min(i.full,this.maxWidth||i.full);i.minSpan=Math.min(i.full,a);i.justify=c.x;i.target=this.targetX;i.marginMin=hs.marginLeft;i.marginMax=b;i.scroll=f.scrollLeft;i.clientSpan=f.width;this.justify(i);h.min=h.tpos-h.cb+h.tb;h.span=Math.min(h.full,this.maxHeight||h.full);h.minSpan=Math.min(h.full,j);h.justify=c.y;h.target=this.targetY;h.marginMin=hs.marginTop;h.marginMax=this.marginBottom;h.scroll=f.scrollTop;h.clientSpan=f.height;this.justify(h);if(this.isHtml){this.htmlSizeOperations()}if(this.overlayBox){this.sizeOverlayBox(0,1)}if(this.allowSizeReduction){if(this.isImage){this.correctRatio(g)}if(this.isImage&&this.x.full>this.x.span){this.createFullExpand();if(this.overlays.length==1){this.sizeOverlayBox()}}}this.show()}catch(d){window.location.href=this.src}},setObjContainerSize:function(a,d){var b=hs.getElementByClass(a,"DIV","highslide-body");if(/(iframe|swf)/.test(this.objectType)){if(this.objectWidth){b.style.width=this.objectWidth+"px"}if(this.objectHeight){b.style.height=this.objectHeight+"px"}}},writeExtendedContent:function(){if(this.hasExtendedContent){return}var c=this;this.body=hs.getElementByClass(this.innerContent,"DIV","highslide-body");if(this.objectType=="swf"){this.body.id=this.body.id||"hs-flash-id-"+this.key;var b=this.swfOptions;if(typeof b.params.wmode=="undefined"){b.params.wmode="transparent"}if(swfobject){swfobject.embedSWF(this.src,this.body.id,this.objectWidth,this.objectHeight,b.version||"7",b.expressInstallSwfurl,b.flashvars,b.params,b.attributes)}}this.hasExtendedContent=true},htmlGetSize:function(){this.innerContent.appendChild(hs.clearing);if(!this.x.full){this.x.full=this.innerContent.offsetWidth}this.y.full=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)}hs.setStyles(this.wrapper,{position:"absolute"});hs.setStyles(this.content,{width:this.x.t+"px",height:this.y.t+"px"})},htmlSizeOperations:function(){this.setObjContainerSize(this.innerContent);if(this.objectType=="swf"&&this.objectLoadTime=="before"){this.writeExtendedContent()}if(this.x.span<this.x.full&&!this.allowWidthReduction){this.x.span=this.x.full}if(this.y.span<this.y.full&&!this.allowHeightReduction){this.y.span=this.y.full}this.scrollerDiv=this.innerContent;hs.setStyles(this.mediumContent,{width:this.x.span+"px",position:"relative",left:(this.x.min-this.x.tpos)+"px",top:(this.y.min-this.y.tpos)+"px"});hs.setStyles(this.innerContent,{border:"none",width:"auto",height:"auto"});var e=hs.getElementByClass(this.innerContent,"DIV","highslide-body");if(e&&!/(iframe|swf)/.test(this.objectType)){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.scrollingContent&&this.y.span<this.mediumContent.offsetHeight){this.scrollerDiv=this.content}if(this.scrollerDiv==this.content&&!this.allowWidthReduction&&!/(iframe|swf)/.test(this.objectType)){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(e,b){var f,d=e==this.x?"x":"y";if(e.target&&e.target.match(/ /)){f=e.target.split(" ");e.target=f[0]}if(e.target&&hs.$(e.target)){e.min=hs.getPosition(hs.$(e.target))[d];if(f&&f[1]&&f[1].match(/^[-]?[0-9]+px$/)){e.min+=parseInt(f[1])}}else{if(e.justify=="auto"||e.justify=="center"){var c=false;var a=true;if(e.justify=="center"){e.min=Math.round(e.scroll+(e.clientSpan-e.span-e.marginMax-e.p1-e.p2)/2)}else{e.min=Math.round(e.min-((e.span+e.p1+e.p2-e.t)/2))}if(e.min<e.scroll+e.marginMin){e.min=e.scroll+e.marginMin;c=true}if(!b&&e.span<e.minSpan){e.span=e.minSpan;a=false}if(e.min+e.span+e.p1+e.p2>e.scroll+e.clientSpan-e.marginMax){if(!b&&c&&a){e.span=e.clientSpan-e.marginMin-e.marginMax}else{if(e.span+e.p1+e.p2<e.clientSpan-e.marginMin-e.marginMax){e.min=e.scroll+e.clientSpan-e.span-e.marginMin-e.marginMax-e.p1-e.p2}else{e.min=e.scroll+e.marginMin;if(!b&&a){e.span=e.clientSpan-e.marginMin-e.marginMax}}}}if(!b&&e.span<e.minSpan){e.span=e.minSpan;a=false}}else{if(e.justify=="max"){e.min=Math.floor(e.min-e.span+e.t)}}}if(e.min<e.marginMin){tmpMin=e.min;e.min=e.marginMin;if(a&&!b){e.span=e.span-(e.min-tmpMin)}}},correctRatio:function(b){var a=this.x,f=this.y;var e=false;if(a.span/f.span>b){a.span=f.span*b;if(a.span<a.minSpan){a.span=a.minSpan;f.span=a.span/b}e=true}else{if(a.span/f.span<b){var c=f.span;f.span=a.span/b;e=true}}if(this.overlayBox){while(f.span>this.minHeight&&a.span>this.minWidth&&f.marginMin+f.p1+f.span+f.p2+f.marginMax>f.clientSpan){var d;f.span-=10;a.span=f.span*b;this.sizeOverlayBox(0,1)}}if(e){a.min=a.tpos-a.cb+a.tb;a.minSpan=a.span;this.justify(a,true);f.min=f.tpos-f.cb+f.tb;f.minSpan=f.span;this.justify(f,true);if(this.overlayBox){this.sizeOverlayBox()}}},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.outline){this.outline.setPosition(this)}},show:function(){var a={x:this.x.min-20,y:this.y.min-20,w:this.x.span+40,h:this.y.span+40};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(hs.geckoMac){this.showHideElements("*","hidden",a)}this.changeSize(1,{xmin:this.x.tpos+this.x.tb-this.x.cb,ymin:this.y.tpos+this.y.tb-this.y.cb,xspan:this.x.t,yspan:this.y.t,xp1:0,xp2:0,yp1:0,yp2:0,o:hs.outlineStartOffset},{xmin:this.x.min,ymin:this.y.min,xspan:this.x.span,yspan:this.y.span,xp1:this.x.p1,yp1:this.y.p1,xp2:this.x.p2,yp2:this.y.p2,o:this.outline?this.outline.offset:0},hs.expandDuration,hs.expandSteps)},changeSize:function(d,g,h,a,f){if(this.outline&&!this.outlineWhileAnimating){if(d){this.outline.setPosition(this)}else{this.outline.destroy((this.isHtml&&this.preserveContent))}}if(!d&&this.overlayBox){if(this.isHtml&&this.preserveContent){this.overlayBox.style.left="-9999px";hs.container.appendChild(this.overlayBox)}else{hs.discardElement(this.overlayBox)}}if(this.fadeInOut){g.op=d?0:1;h.op=d}var j,b=this,e=Math[this.easing]||Math.easeInQuad;if(!d){e=Math[this.easingClose]||e}for(var c=1;c<=f;c++){j=Math.round(c*(a/f));(function(){var l=c,k={};for(var i in g){k[i]=e(j,g[i],h[i]-g[i],a);if(!/^op$/.test(i)){k[i]=Math.round(k[i])}}setTimeout(function(){if(d&&l==1){b.content.style.visibility="visible";b.a.className+=" highslide-active-anchor"}b.setSize(k)},j)})()}if(d){setTimeout(function(){if(b.outline){b.outline.table.style.visibility="visible"}},j);setTimeout(function(){b.afterExpand()},j+50)}else{setTimeout(function(){b.afterClose()},j)}},setSize:function(c){try{if(c.op){hs.setStyles(this.wrapper,{opacity:c.op})}hs.setStyles(this.wrapper,{width:(c.xspan+c.xp1+c.xp2+2*this.x.cb)+"px",height:(c.yspan+c.yp1+c.yp2+2*this.y.cb)+"px",left:c.xmin+"px",top:c.ymin+"px"});hs.setStyles(this.content,{top:c.yp1+"px",left:c.xp1+"px",width:c.xspan+"px",height:c.yspan+"px"});if(this.isHtml){hs.setStyles(this.mediumContent,{left:(this.x.min-c.xmin+this.x.p1-c.xp1)+"px",top:(this.y.min-c.ymin+this.y.p1-c.yp1)+"px"});this.innerContent.style.visibility="visible"}if(this.outline&&this.outlineWhileAnimating){var b=this.outline.offset-c.o;this.outline.setPosition(this,{x:c.xmin+b,y:c.ymin+b,w:c.xspan+c.xp1+c.xp2+-2*b,h:c.yspan+c.yp1+c.yp2+-2*b},1)}this.wrapper.style.visibility="visible"}catch(a){window.location.href=this.src}},afterExpand:function(){this.isExpanded=true;this.focus();if(this.isHtml&&this.objectLoadTime=="after"){this.writeExtendedContent()}if(this.isHtml){}this.prepareNextOutline();if(this.overlayBox){this.showOverlays()}},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=this.getAdjacentAnchor(1);if(b&&b.onclick.toString().match(/hs\.expand/)){var a=hs.createElement("img",{src:hs.getSrc(b)})}},getAdjacentAnchor:function(c){var b=this.getAnchorIndex(),a=hs.anchors.groups[this.slideshowGroup||"none"];if(!a[b+c]&&this.slideshow&&this.slideshow.repeat){if(c==1){return a[0]}else{if(c==-1){return a[a.length-1]}}}return a[b+c]||null},getAnchorIndex:function(){var a=hs.anchors.groups[this.slideshowGroup||"none"];for(var b=0;b<a.length;b++){if(a[b]==this.a){return b}}return null},cancelLoading:function(){hs.expanders[this.key]=null;if(this.loading){hs.loading.style.left="-9999px"}},writeCredits:function(){this.credits=hs.createElement("a",{href:hs.creditsHref,className:"highslide-credits",innerHTML:hs.lang.creditsText,title:hs.lang.creditsTitle});this.createOverlay({overlayId:this.credits,position:"top left"})},getInline:function(types,addOverlay){for(var i=0;i<types.length;i++){var type=types[i],s=null;if(!this[type+"Id"]&&this.thumbsUserSetId){this[type+"Id"]=type+"-for-"+this.thumbsUserSetId}if(this[type+"Id"]){this[type]=hs.getNode(this[type+"Id"])}if(!this[type]&&!this[type+"Text"]&&this[type+"Eval"]){try{s=eval(this[type+"Eval"])}catch(e){}}if(!this[type]&&this[type+"Text"]){s=this[type+"Text"]}if(!this[type]&&!s){var next=this.a.nextSibling;while(next&&!hs.isHsAnchor(next)){if((new RegExp("highslide-"+type)).test(next.className||null)){this[type]=next.cloneNode(1);break}next=next.nextSibling}}if(!this[type]&&s){this[type]=hs.createElement("div",{className:"highslide-"+type,innerHTML:s})}if(addOverlay&&this[type]){var o={position:(type=="heading")?"above":"below"};for(var x in this[type+"Overlay"]){o[x]=this[type+"Overlay"][x]}o.overlayId=this[type];this.createOverlay(o)}}},showHideElements:function(c,b,g){var e=document.getElementsByTagName(c);var a=c=="*"?"overflow":"visibility";for(var f=0;f<e.length;f++){if(a=="visibility"||(document.defaultView.getComputedStyle(e[f],"").getPropertyValue("overflow")=="auto"||e[f].getAttribute("hidden-by")!=null)){var j=e[f].getAttribute("hidden-by");if(b=="visible"&&j){j=j.replace("["+this.key+"]","");e[f].setAttribute("hidden-by",j);if(!j){e[f].style[a]=e[f].origProp}}else{if(b=="hidden"){var l=hs.getPosition(e[f]);l.w=e[f].offsetWidth;l.h=e[f].offsetHeight;var k=(l.x+l.w<g.x||l.x>g.x+g.w);var h=(l.y+l.h<g.y||l.y>g.y+g.h);var d=hs.getWrapperKey(e[f]);if(!k&&!h&&d!=this.key){if(!j){e[f].setAttribute("hidden-by","["+this.key+"]");e[f].origProp=e[f].style[a];e[f].style[a]="hidden"}else{if(!j.match("["+this.key+"]")){e[f].setAttribute("hidden-by",j+"["+this.key+"]")}}}else{if(j=="["+this.key+"]"||hs.focusKey==d){e[f].setAttribute("hidden-by","");e[f].style[a]=e[f].origProp||""}else{if(j&&j.match("["+this.key+"]")){e[f].setAttribute("hidden-by",j.replace("["+this.key+"]",""))}}}}}}}},focus:function(){this.wrapper.style.zIndex=hs.zIndexCounter++;for(var a=0;a<hs.expanders.length;a++){if(hs.expanders[a]&&a==hs.focusKey){var b=hs.expanders[a];b.content.className+=" highslide-"+b.contentType+"-blur";if(b.isImage){b.content.style.cursor=hs.ie?"hand":"pointer";b.content.title=hs.lang.focusTitle}}}if(this.outline){this.outline.table.style.zIndex=this.wrapper.style.zIndex}this.content.className="highslide-"+this.contentType;if(this.isImage){this.content.title=hs.lang.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;if(a.type=="image"){this.content.style.cursor="move"}hs.setStyles(this.wrapper,{left:this.x.min+"px",top:this.y.min+"px"});if(this.outline){this.outline.setPosition(this)}},resize:function(g){var a,c,f=g.width/g.height;a=Math.max(g.width+g.dX,Math.min(this.minWidth,this.x.full));if(this.isImage&&Math.abs(a-this.x.full)<12){a=this.x.full}c=this.isHtml?g.height+g.dY:a/f;if(c<Math.min(this.minHeight,this.y.full)){c=Math.min(this.minHeight,this.y.full);if(this.isImage){a=c*f}}this.x.span=a;this.y.span=c;if(this.isHtml){var i=this.scrollerDiv;if(typeof this.wDiff=="undefined"){this.wDiff=this.innerContent.offsetWidth-i.offsetWidth;this.hDiff=this.innerContent.offsetHeight-i.offsetHeight}hs.setStyles(i,{width:(this.x.span-this.wDiff)+"px",height:(this.y.span-this.hDiff)+"px"})}var b={width:this.x.span+"px",height:this.y.span+"px"};hs.setStyles(this.content,b);if(this.isHtml){this.mediumContent.style.width="auto";if(this.body){hs.setStyles(this.body,{width:"auto",height:"auto"})}}if(this.overlayBox){this.sizeOverlayBox(true)}hs.setStyles(this.wrapper,{width:(this.x.p1+this.x.p2+2*this.x.cb+this.x.span)+"px",height:(this.y.p1+this.y.p2+2*this.y.cb+this.y.span)+"px"});if(this.outline){this.outline.setPosition(this)}},close:function(){if(this.isClosing||!this.isExpanded){return}this.isClosing=true;hs.removeEventListener(document,"keydown",hs.keyHandler);try{if(this.isHtml){this.htmlPrepareClose()}this.content.style.cursor="default";this.changeSize(0,{xmin:this.x.min,ymin:this.y.min,xspan:this.x.span,yspan:parseInt(this.content.style.height),xp1:this.x.p1,yp1:this.y.p1,xp2:this.x.p2,yp2:this.y.p2,o:this.outline?this.outline.offset:0},{xmin:this.x.tpos-this.x.cb+this.x.tb,ymin:this.y.tpos-this.y.cb+this.y.tb,xspan:this.x.t,yspan:this.y.t,xp1:0,yp1:0,xp2:0,yp2:0,o:hs.outlineStartOffset},hs.restoreDuration,hs.restoreSteps)}catch(a){this.afterClose()}},htmlPrepareClose:function(){if(hs.geckoMac){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.objectType=="swf"){try{hs.$(this.body.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(this.objectType=="swf"){swfobject.removeSWF(this.body.id)}this.body.innerHTML=""},sleep:function(){if(this.outline){this.outline.table.style.display="none"}this.wrapper.style.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(b){}}var d=hs.zIndexCounter++,a={display:"",zIndex:d};hs.setStyles(this.wrapper,a);this.isClosing=false;var c=this.outline||0;if(c){if(!this.outlineWhileAnimating){a.visibility="hidden"}hs.setStyles(c.table,a)}this.show()},createOverlay:function(d){var c=d.overlayId;if(typeof c=="string"){c=hs.getNode(c)}if(!c||typeof c=="string"){return}c.style.display="block";this.genOverlayBox();var b=d.width&&/^[0-9]+(px|%)$/.test(d.width)?d.width:"auto";if(/^(left|right)panel$/.test(d.position)&&!/^[0-9]+px$/.test(d.width)){b="200px"}var a=hs.createElement("div",{id:"hsId"+hs.idCounter++,hsId:d.hsId},{position:"absolute",width:b},this.overlayBox,true);a.appendChild(c);if(d.hideOnMouseOut){a.hideOnMouseOut=true}a.opacity=d.opacity||1;a.hsPos=d.position;a.fade=d.fade;if(this.gotOverlays){this.positionOverlay(a);if(!a.hideOnMouseOut||this.mouseIsOver){hs.fade(a,0,a.opacity)}}hs.push(this.overlays,hs.idCounter-1)},positionOverlay:function(a){var b=a.hsPos||"middle center";if(/left$/.test(b)){a.style.left=0}if(/center$/.test(b)){hs.setStyles(a,{left:"50%",marginLeft:"-"+Math.round(a.offsetWidth/2)+"px"})}if(/right$/.test(b)){a.style.right=0}if(/^leftpanel$/.test(b)){hs.setStyles(a,{right:"100%",marginRight:this.x.cb+"px",top:-this.y.cb+"px",bottom:-this.y.cb+"px",overflow:"auto"});this.x.p1=a.offsetWidth}else{if(/^rightpanel$/.test(b)){hs.setStyles(a,{left:"100%",marginLeft:this.x.cb+"px",top:-this.y.cb+"px",bottom:-this.y.cb+"px",overflow:"auto"});this.x.p2=a.offsetWidth}}if(/^top/.test(b)){a.style.top=0}if(/^middle/.test(b)){hs.setStyles(a,{top:"50%",marginTop:"-"+Math.round(a.offsetHeight/2)+"px"})}if(/^bottom/.test(b)){a.style.bottom=0}if(/^above$/.test(b)){hs.setStyles(a,{left:(-this.x.p1-this.x.cb)+"px",right:(-this.x.p2-this.x.cb)+"px",bottom:"100%",marginBottom:this.y.cb+"px",width:"auto"});this.y.p1=a.offsetHeight}else{if(/^below$/.test(b)){hs.setStyles(a,{left:(-this.x.p1-this.x.cb)+"px",right:(-this.x.p2-this.x.cb)+"px",top:"100%",marginTop:this.y.cb+"px",width:"auto"});this.y.p2=a.offsetHeight}}},getOverlays:function(){this.getInline(["heading","caption"],true);if(this.heading&&this.dragByHeading){this.heading.className+=" highslide-move"}if(hs.showCredits){this.writeCredits()}for(var b=0;b<hs.overlays.length;b++){var e=hs.overlays[b],f=e.thumbnailId,c=e.slideshowGroup;if((!f&&!c)||(f&&f==this.thumbsUserSetId)||(c&&c===this.slideshowGroup)){if(this.isImage||(this.isHtml&&e.useOnHtml)){this.createOverlay(e)}}}var d=[];for(var b=0;b<this.overlays.length;b++){var e=hs.$("hsId"+this.overlays[b]);if(/panel$/.test(e.hsPos)){this.positionOverlay(e)}else{hs.push(d,e)}}var a=this.x.p1+this.x.full+this.x.p2;if(hs.padToMinWidth&&a<hs.minWidth){this.x.p1+=(hs.minWidth-a)/2;this.x.p2+=(hs.minWidth-a)/2}for(var b=0;b<d.length;b++){this.positionOverlay(d[b])}this.gotOverlays=true},genOverlayBox:function(){if(!this.overlayBox){this.overlayBox=hs.createElement("div",null,{position:"absolute",width:this.x.span?this.x.span+"px":this.x.full+"px",height:0,visibility:"hidden",overflow:"hidden",zIndex:5},hs.container,true)}},sizeOverlayBox:function(c,a){hs.setStyles(this.overlayBox,{width:this.x.span+"px",height:this.y.span+"px"});if(c||a){for(var b=0;b<this.overlays.length;b++){var d=hs.$("hsId"+this.overlays[b]);if(d&&/^(above|below)$/.test(d.hsPos)){if(hs.ie&&(hs.ieVersion()<=6||document.compatMode=="BackCompat")){d.style.width=(this.overlayBox.offsetWidth+2*this.x.cb-this.x.p1-this.x.p2)+"px"}this.y[d.hsPos=="above"?"p1":"p2"]=d.offsetHeight}}}if(c){hs.setStyles(this.content,{top:this.y.p1+"px"});hs.setStyles(this.overlayBox,{top:(this.y.p1+this.y.cb)+"px"})}},showOverlays:function(){hs.setStyles(this.overlayBox,{top:(this.y.p1+this.y.cb)+"px",left:(this.x.p1+this.x.cb)+"px",overflow:"visible"});this.wrapper.appendChild(this.overlayBox);if(hs.safari){var b=this.content.style;b.display="inline";setTimeout(function(){b.display="block"},50)}var d=hs.getPageSize(),e=hs.mouse.x+d.scrollLeft,c=hs.mouse.y+d.scrollTop;this.mouseIsOver=this.x.min<e&&e<this.x.min+this.x.p1+this.x.span+this.x.p2&&this.y.min<c&&c<this.y.min+this.y.p1+this.y.span+this.y.p2;for(var a=0;a<this.overlays.length;a++){var f=hs.$("hsId"+this.overlays[a]);if(!f.hideOnMouseOut||this.mouseIsOver){hs.fade(f,0,f.opacity)}}},createFullExpand:function(){this.fullExpandLabel=hs.createElement("a",{href:"javascript:hs.expanders["+this.key+"].doFullExpand();",title:hs.lang.fullExpandTitle,className:"highslide-full-expand"});this.createOverlay({overlayId:this.fullExpandLabel,position:hs.fullExpandPosition,hideOnMouseOut:true,opacity:hs.fullExpandOpacity})},doFullExpand:function(){try{if(this.fullExpandLabel){hs.discardElement(this.fullExpandLabel)}this.focus();this.x.min=parseInt(this.wrapper.style.left)-(this.x.full-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.x.full+"px",height:this.y.full+"px"});this.x.span=this.x.full;this.y.span=this.y.full;if(this.overlayBox){this.sizeOverlayBox(true)}hs.setStyles(this.wrapper,{width:(this.x.p1+2*this.x.cb+this.x.span+this.x.p2)+"px",height:(this.y.p1+2*this.y.cb+this.y.span+this.y.p2)+"px"});if(this.outline){this.outline.setPosition(this)}this.redoShowHide()}catch(a){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};if(hs.hideSelects){this.showHideElements("SELECT","hidden",a)}if(hs.hideIframes){this.showHideElements("IFRAME","hidden",a)}if(hs.geckoMac){this.showHideElements("*","hidden",a)}},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(hs.geckoMac){this.showHideElements("*","visible")}if(this.isHtml&&this.preserveContent){this.sleep()}else{if(this.outline&&this.outlineWhileAnimating){this.outline.destroy()}hs.discardElement(this.wrapper)}if(hs.mask){hs.mask.style.display="none"}hs.expanders[this.key]=null;hs.reOrder()}};hs.Ajax=function(b,c,d){this.a=b;this.content=c;this.pre=d};hs.Ajax.prototype={run:function(){if(!this.src){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.init();var a=window.opera||hs.ie6SSL?{src:"about:blank"}:null;this.iframe=hs.createElement("iframe",a,{position:"absolute",left:"-9999px"},hs.container);this.loadHTML()},loadHTML:function(){var b=this.cachedGet||this.xmlHttp.responseText;if(this.pre){hs.cachedGets[this.src]=b}if(!hs.ie||hs.ieVersion()>=5.5){b=b.replace(/\s/g," ").replace(new RegExp("<link[^>]*>","gi"),"").replace(new RegExp("<script[^>]*>.*?<\/script>","gi"),"");if(this.iframe){var d=this.iframe.contentDocument;if(!d&&this.iframe.contentWindow){d=this.iframe.contentWindow.document}if(!d){var f=this;setTimeout(function(){f.loadHTML()},25);return}d.open();d.write(b);d.close();try{b=d.getElementById(this.id).innerHTML}catch(c){try{b=this.iframe.document.getElementById(this.id).innerHTML}catch(c){}}}else{b=b.replace(new RegExp("^.*?<body[^>]*>(.*?)</body>.*?$","i"),"$1")}}hs.getElementByClass(this.content,"DIV","highslide-body").innerHTML=b;this.onLoad();for(var a in this){this[a]=null}}};hs.langDefaults=hs.lang;var HsExpander=hs.Expander;hs.addEventListener(document,"mousemove",function(a){hs.mouse={x:a.clientX,y:a.clientY}});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();