var hs={lang:{cssDirection:"ltr",loadingText:"Loading...",loadingTitle:"Click to cancel",focusTitle:"Click to bring to front",fullExpandTitle:"Expand to actual size (f)",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",number:"Image %1 of %2",restoreTitle:"Click to close image, click and drag to move. Use arrow keys for next and previous."},graphicsDir:"highslide/graphics/",restoreCursor:"zoomout.cur",expandDuration:250,restoreDuration:250,marginLeft:15,marginRight:15,marginTop:15,marginBottom:15,zIndexCounter:1001,loadingOpacity:.75,allowMultipleInstances:true,numberOfImagesToPreload:5,outlineWhileAnimating:2,outlineStartOffset:3,fullExpandPosition:"bottom right",fullExpandOpacity:1,padToMinWidth:false,showCredits:true,creditsHref:"http://highslide.com",enableKeyListener:true,transitions:[],transitionDuration:500,dimmingOpacity:0,dimmingDuration:50,allowWidthReduction:false,allowHeightReduction:true,preserveContent:false,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:{controls:'<div class="highslide-controls"><ul><li class="highslide-previous"><a href="#" title="{hs.lang.previousTitle}"><span>{hs.lang.previousText}</span></a></li><li class="highslide-play"><a href="#" title="{hs.lang.playTitle}"><span>{hs.lang.playText}</span></a></li><li class="highslide-pause"><a href="#" title="{hs.lang.pauseTitle}"><span>{hs.lang.pauseText}</span></a></li><li class="highslide-next"><a href="#" title="{hs.lang.nextTitle}"><span>{hs.lang.nextText}</span></a></li><li class="highslide-move"><a href="#" title="{hs.lang.moveTitle}"><span>{hs.lang.moveText}</span></a></li><li class="highslide-full-expand"><a href="#" title="{hs.lang.fullExpandTitle}"><span>{hs.lang.fullExpandText}</span></a></li><li class="highslide-close"><a href="#" title="{hs.lang.closeTitle}" ><span>{hs.lang.closeText}</span></a></li></ul></div>',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","autoplay","numberPosition","transitions","dimmingOpacity","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:[],slideshows:[],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(f,b,d,c,e){var a=document.createElement(f);b&&hs.setAttribs(a,b);e&&hs.setStyles(a,{padding:0,border:"none",margin:0});d&&hs.setStyles(a,d);c&&c.appendChild(a);return a},setAttribs:function(c,a){for(var b in a)c[b]=a[b]},setStyles:function(c,b){for(var a in b)if(hs.ie&&a=="opacity")if(b[a]>.99)c.style.removeAttribute("filter");else c.style.filter="alpha(opacity="+b[a]*100+")";else c.style[a]=b[a]},ieVersion:function(){var a=navigator.appVersion.split("MSIE");return a[1]?parseFloat(a[1]):null},getPageSize:function(){var a=document,c=window,b=a.compatMode&&a.compatMode!="BackCompat"?a.documentElement:a.body,d=a.body,g=c.innerWidth&&c.scrollMaxX?c.innerWidth+c.scrollMaxX:Math.max(d.scrollWidth,d.offsetWidth),h=c.innerHeight&&window.scrollMaxY?c.innerHeight+c.scrollMaxY:Math.max(d.scrollHeight,d.offsetHeight),f=hs.ie?b.scrollWidth:a.documentElement.clientWidth||self.innerWidth,e=hs.ie?Math.max(b.scrollHeight,b.clientHeight):a.documentElement.clientHeight||self.innerHeight,j=hs.ie?b.clientWidth:a.documentElement.clientWidth||self.innerWidth,i=hs.ie?b.clientHeight:self.innerHeight;return{pageWidth:Math.max(f,g),pageHeight:Math.max(e,h),width:j,height:i,scrollLeft:hs.ie?b.scrollLeft:pageXOffset,scrollTop:hs.ie?b.scrollTop:pageYOffset}},getPosition:function(a){if(/area/i.test(a.tagName))for(var d=document.getElementsByTagName("img"),c=0;c<d.length;c++){var e=d[c].useMap;if(e&&e.replace(/^.*?#/,"")==a.parentNode.name){a=d[c];break}}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,c,e,d){if(!b)b=hs.createElement("a",null,{display:"none"},hs.container);if(typeof b.getParams=="function")return c;if(d=="html"){for(var a=0;a<hs.sleeping.length;a++)if(hs.sleeping[a]&&hs.sleeping[a].a==b){hs.sleeping[a].awake();hs.sleeping[a]=null;return false}hs.hasHtmlExpanders=true}try{new hs.Expander(b,c,e,d);return false}catch(f){return true}},htmlExpand:function(c,b,a){return hs.expand(c,b,a,"html")},getSelfRendered:function(){return hs.createElement("div",{className:"highslide-html-content",innerHTML:hs.replaceLang(hs.skin.contentWrapper)})},getElementByClass:function(e,d,c){for(var b=e.getElementsByTagName(d),a=0;a<b.length;a++)if((new RegExp(c)).test(b[a].className))return b[a];return null},replaceLang:function(a){a=a.replace(/\s/g," ");for(var e=/{hs\.lang\.([^}]+)\}/g,c=a.match(e),d,b=0;b<c.length;b++){d=c[b].replace(e,"$1");if(typeof hs.lang[d]!="undefined")a=a.replace(c[b],hs.lang[d])}return a},setClickEvents:function(){for(var b=document.getElementsByTagName("a"),a=0;a<b.length;a++){var c=hs.isUnobtrusiveAnchor(b[a]);if(c&&!b[a].hsHasSetClick){(function(){var d=c;if(hs.fireEvent(hs,"onSetClickEvent",{element:b[a],type:d}))b[a].onclick=c=="image"?function(){return hs.expand(this)}:function(){return hs.htmlExpand(this,{objectType:d})}})();b[a].hsHasSetClick=true}}if(!hs.pageLoaded)setTimeout(hs.setClickEvents,50);else hs.updateAnchors()},isUnobtrusiveAnchor:function(a){return a.rel=="highslide"?"image":a.rel=="highslide-ajax"?"ajax":a.rel=="highslide-iframe"?"iframe":a.rel=="highslide-swf"?"swf":void 0},getCacheBinding:function(c){for(var a=0;a<hs.cacheBindings.length;a++)if(hs.cacheBindings[a][0]==c){var b=hs.cacheBindings[a][1];hs.cacheBindings[a][1]=b.cloneNode(1);return b}return null},preloadAjax:function(){for(var c=hs.getAnchors(),b=0;b<c.htmls.length;b++){var a=c.htmls[b];hs.getParam(a,"objectType")=="ajax"&&hs.getParam(a,"cacheAjax")&&hs.push(hs.preloadTheseAjax,a)}hs.preloadAjaxElement(0)},preloadAjaxElement:function(d){if(!hs.preloadTheseAjax[d])return;var c=hs.preloadTheseAjax[d],a=hs.getNode(hs.getParam(c,"contentId"));if(!a)a=hs.getSelfRendered();var b=new hs.Ajax(c,a,1);b.onError=function(){};b.onLoad=function(){hs.push(hs.cacheBindings,[c,a]);hs.preloadAjaxElement(d+1)};b.run()},focusTopmost:function(){for(var c=0,b=-1,a=0;a<hs.expanders.length;a++)if(hs.expanders[a])if(hs.expanders[a].wrapper.style.zIndex&&hs.expanders[a].wrapper.style.zIndex>c){c=hs.expanders[a].wrapper.style.zIndex;b=a}if(b==-1)hs.focusKey=-1;else hs.expanders[b].focus()},getParam:function(a,b){a.getParams=a.onclick;var c=a.getParams?a.getParams():null;a.getParams=null;return c&&typeof c[b]!="undefined"?c[b]:typeof hs[b]!="undefined"?hs[b]:null},getSrc:function(b){var a=hs.getParam(b,"src");return a?a:b.href},getNode:function(c){var b=hs.$(c),a=hs.clones[c],d={};if(!b&&!a)return null;if(!a){a=b.cloneNode(true);a.id="";hs.clones[c]=a;return b}else return a.cloneNode(true)},discardElement:function(a){hs.garbageBin.appendChild(a);hs.garbageBin.innerHTML=""},dim:function(a){if(!hs.dimmer){hs.dimmer=hs.createElement("div",{className:"highslide-dimming",owner:"",onclick:function(){hs.fireEvent(hs,"onDimmerClick")&&hs.close()}},{position:"absolute",left:0},hs.container,true);hs.addEventListener(window,"resize",hs.setDimmerSize)}hs.dimmer.style.display="";hs.setDimmerSize();hs.dimmer.owner+="|"+a.key;if(hs.geckoMac&&hs.dimmingGeckoFix)hs.dimmer.style.background="url("+hs.graphicsDir+"geckodimmer.png)";else hs.fade(hs.dimmer,0,a.dimmingOpacity,hs.dimmingDuration)},undim:function(a){if(!hs.dimmer)return;if(typeof a!="undefined")hs.dimmer.owner=hs.dimmer.owner.replace("|"+a,"");if(typeof a!="undefined"&&hs.dimmer.owner!=""||hs.upcoming&&hs.getParam(hs.upcoming,"dimmingOpacity"))return;if(hs.geckoMac&&hs.dimmingGeckoFix)hs.dimmer.style.background="none";else hs.fade(hs.dimmer,hs.dimmingOpacity,0,hs.dimmingDuration,function(){hs.setStyles(hs.dimmer,{display:"none",width:0,height:0})})},setDimmerSize:function(a){if(!hs.dimmer)return;var b=hs.getPageSize(),c=hs.ie&&a&&a.wrapper?parseInt(a.wrapper.style.top)+parseInt(a.wrapper.style.height)+(a.outline?a.outline.offset:0):0;hs.setStyles(hs.dimmer,{width:b.pageWidth+"px",height:Math.max(b.pageHeight,c)+"px"})},previousOrNext:function(c,d){hs.updateAnchors();var a=hs.last=hs.getExpander(c);try{var b=hs.upcoming=a.getAdjacentAnchor(d);b.onclick()}catch(e){hs.last=hs.upcoming=null}try{a.close()}catch(e){}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(typeof a.target.form!="undefined")return true;if(!hs.fireEvent(hs,"onKeyDown",a))return true;var b=hs.getExpander(),c=null;switch(a.keyCode){case 70:b&&b.doFullExpand();return true;case 32:c=2;break;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){c!=2&&hs.removeEventListener(document,window.opera?"keypress":"keydown",hs.keyHandler);if(!hs.enableKeyListener)return true;if(a.preventDefault)a.preventDefault();else a.returnValue=false;if(b){if(c==0)b.close();else if(c==2)b.slideshow&&b.slideshow.hitSpace();else{b.slideshow&&b.slideshow.pause();hs.previousOrNext(b.key,c)}return false}}return true},registerOverlay:function(a){hs.push(hs.overlays,a)},addSlideshow:function(a){var b=a.slideshowGroup;if(typeof b=="object")for(var c=0;c<b.length;c++){var d={};for(var e in a)d[e]=a[e];d.slideshowGroup=b[c];hs.push(hs.slideshows,d)}else hs.push(hs.slideshows,a)},getWrapperKey:function(c,f){var a,e=/^highslide-wrapper-([0-9]+)$/;a=c;while(a.parentNode){if(a.id&&e.test(a.id))return a.id.replace(e,"$1");a=a.parentNode}if(!f){a=c;while(a.parentNode){if(a.tagName&&hs.isHsAnchor(a))for(var b=0;b<hs.expanders.length;b++){var d=hs.expanders[b];if(d&&d.a==a)return b}a=a.parentNode}}return null},getExpander:function(a,b){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,b)]||null},isHsAnchor:function(a){return a.onclick&&a.onclick.toString().replace(/\s/g," ").match(/hs.(htmlE|e)xpand/)},reOrder:function(){for(var a=0;a<hs.expanders.length;a++)hs.expanders[a]&&hs.expanders[a].isExpanded&&hs.focusTopmost()},fireEvent:function(a,b,c){return a&&a[b]?a[b](a,c)!==false:true},mouseClickHandler:function(b){if(!b)b=window.event;if(b.button>1)return true;if(!b.target)b.target=b.srcElement;var c=b.target;while(c.parentNode&&!/highslide-(image|move|html|resize)/.test(c.className))c=c.parentNode;var a=hs.getExpander(c);if(a&&(a.isClosing||!a.isExpanded))return true;if(a&&b.type=="mousedown"){if(b.target.form)return true;var e=c.className.match(/highslide-(image|move|resize)/);if(e){hs.dragArgs={exp:a,type:e[1],left:a.x.pos,width:a.x.size,top:a.y.pos,height:a.y.size,clickX:b.clientX,clickY:b.clientY};hs.addEventListener(document,"mousemove",hs.dragHandler);b.preventDefault&&b.preventDefault();if(/highslide-(image|html)-blur/.test(a.content.className)){a.focus();hs.hasFocused=true}return false}else if(/highslide-html/.test(c.className)&&hs.focusKey!=a.key){a.focus();a.doShowHide("hidden")}}else if(b.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 d=hs.dragArgs.hasDragged;if(!d&&!hs.hasFocused&&!/(move|resize)/.test(hs.dragArgs.type))hs.fireEvent(a,"onImageClick")&&a.close();else(d||!d&&hs.hasHtmlExpanders)&&hs.dragArgs.exp.doShowHide("hidden");if(hs.dragArgs.exp.releaseMask)hs.dragArgs.exp.releaseMask.style.display="none";d&&hs.fireEvent(hs.dragArgs.exp,"onDrop",hs.dragArgs);d&&hs.setDimmerSize(a);hs.hasFocused=false;hs.dragArgs=null}else if(/highslide-image-blur/.test(c.className))c.style.cursor=hs.styleRestoreCursor}return false},dragHandler:function(c){if(!hs.dragArgs)return true;if(!c)c=window.event;var a=hs.dragArgs,b=a.exp;if(b.iframe){if(!b.releaseMask)b.releaseMask=hs.createElement("div",null,{position:"absolute",width:b.x.size+"px",height:b.y.size+"px",left:b.x.cb+"px",top:b.y.cb+"px",zIndex:4,background:hs.ie?"white":"none",opacity:.01},b.wrapper,true);if(b.releaseMask.style.display=="none")b.releaseMask.style.display=""}a.dX=c.clientX-a.clickX;a.dY=c.clientY-a.clickY;var d=Math.sqrt(Math.pow(a.dX,2)+Math.pow(a.dY,2));if(!a.hasDragged)a.hasDragged=a.type!="image"&&d>0||d>(hs.dragSensitivity||5);if(a.hasDragged&&c.clientX>5&&c.clientY>5){if(!hs.fireEvent(b,"onDrag",a))return false;if(a.type=="resize")b.resize(a);else{b.moveTo(a.left+a.dX,a.top+a.dY);if(a.type=="image")b.content.style.cursor="move"}}return false},wrapperMouseHandler:function(a){try{if(!a)a=window.event;var d=/mouseover/i.test(a.type);if(!a.target)a.target=a.srcElement;if(hs.ie)a.relatedTarget=d?a.fromElement:a.toElement;var b=hs.getExpander(a.target);if(!b.isExpanded)return;if(!b||!a.relatedTarget||hs.getExpander(a.relatedTarget,true)==b||hs.dragArgs)return;hs.fireEvent(b,d?"onMouseOver":"onMouseOut",a);for(var e=0;e<b.overlays.length;e++){var c=hs.$("hsId"+b.overlays[e]);if(c&&c.hideOnMouseOut){var f=d?0:c.opacity,g=d?c.opacity:0;hs.fade(c,f,g)}}}catch(a){}},addEventListener:function(c,a,b){try{c.addEventListener(a,b,false)}catch(d){try{c.detachEvent("on"+a,b);c.attachEvent("on"+a,b)}catch(d){c["on"+a]=b}}},removeEventListener:function(b,a,c){try{b.removeEventListener(a,c,false)}catch(d){try{b.detachEvent("on"+a,c)}catch(d){b["on"+a]=null}}},preloadFullImage:function(a){if(hs.continuePreloading&&hs.preloadTheseImages[a]&&hs.preloadTheseImages[a]!="undefined"){var b=document.createElement("img");b.onload=function(){b=null;hs.preloadFullImage(a+1)};b.src=hs.preloadTheseImages[a]}},preloadImages:function(b){if(b&&typeof b!="object")hs.numberOfImagesToPreload=b;for(var c=hs.getAnchors(),a=0;a<c.images.length&&a<hs.numberOfImagesToPreload;a++)hs.push(hs.preloadTheseImages,hs.getSrc(c.images[a]));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",{className:"highslide-container"},{position:"absolute",left:0,top:0,width:"100%",zIndex:hs.zIndexCounter,direction:"ltr"},document.body,true);hs.loading=hs.createElement("a",{className:"highslide-loading",title:hs.lang.loadingTitle,innerHTML:hs.lang.loadingText,href:"javascript:;"},{position:"absolute",top:"-9999px",opacity:hs.loadingOpacity,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(d,a,b,c){return b*d/c+a};Math.easeInQuad=function(a,b,c,d){return c*(a/=d)*a+b};Math.easeInOutQuad=function(a,b,c,d){return(a/=d/2)<1?c/2*a*a+b:-c/2*(--a*(a-2)-1)+b};for(var a in hs.langDefaults)if(typeof hs[a]!="undefined")hs.lang[a]=hs[a];else if(typeof hs.lang[a]=="undefined"&&typeof hs.langDefaults[a]!="undefined")hs.lang[a]=hs.langDefaults[a];hs.ie6SSL=hs.ie&&hs.ieVersion()<=6&&location.protocol=="https:";hs.hideSelects=hs.ie&&hs.ieVersion()<7;hs.hideIframes=window.opera&&navigator.appVersion<9||navigator.vendor=="KDE"||hs.ie&&hs.ieVersion()<5.5;hs.fireEvent(this,"onActivate")}},domReady:function(){hs.isDomReady=true;hs.fixCursor();hs.onDomReady&&hs.onDomReady()},fixCursor:function(){for(var c,a,d=document.styleSheets,e=/^(url\().*?(zoomin\.cur.*?)$/,b=0;b<d.length;b++)for(c=0;c<d[b].rules.length;c++){a=d[b].rules[c];if(a.selectorText==".highslide IMG"&&e.test(a.style.cursor)){a.style.cursor=a.style.cursor.replace(e,"$1"+hs.graphicsDir+"$2");return}}},updateAnchors:function(){for(var b=document.all||document.getElementsByTagName("*"),h=[],f=[],g=[],c={},d,a=0;a<b.length;a++){d=hs.isHsAnchor(b[a]);if(d){hs.push(h,b[a]);if(d[0]=="hs.expand")hs.push(f,b[a]);else d[0]=="hs.htmlExpand"&&hs.push(g,b[a]);var e=hs.getParam(b[a],"slideshowGroup")||"none";if(!c[e])c[e]=[];hs.push(c[e],b[a])}}hs.anchors={all:h,groups:c,images:f,htmls:g};return hs.anchors},getAnchors:function(){return hs.anchors||hs.updateAnchors()},fade:function(a,b,c,e,g,d,f){if(typeof d=="undefined"){if(typeof e!="number")e=250;if(e<25){hs.setStyles(a,{opacity:c});return}d=hs.faders.length;f=c>b?1:-1;var i=25/(e-e%25)*Math.abs(b-c)}b=parseFloat(b);var h=a.fade===0||a.fade===false||a.fade==2&&hs.ie;a.style.visibility=(h?c:b)<=0?"hidden":"visible";if(h||b<0||f==1&&b>c){g&&g();return}if(a.fading&&a.fading.i!=d){clearTimeout(hs.faders[a.fading.i]);b=a.fading.o}a.fading={i:d,o:b,step:i||a.fading.step};a.style.visibility=b<=0?"hidden":"visible";hs.setStyles(a,{opacity:b});hs.faders[d]=setTimeout(function(){hs.fade(a,b+a.fading.step*f,c,null,g,d,f)},25)},close:function(b){var a=hs.getExpander(b);a&&a.close();return false}};hs.Outline=function(b,c){this.onLoad=c;this.outlineType=b;var e=hs.ieVersion(),d;this.hasAlphaImageLoader=hs.ie&&e>=5.5&&e<7;if(!b){c&&c();return}hs.init();this.table=hs.createElement("table",{cellSpacing:0},{visibility:"hidden",position:"absolute",borderCollapse:"collapse",width:0},hs.container,true);var g=hs.createElement("tbody",null,null,this.table,1);this.td=[];for(var a=0;a<=8;a++){if(a%3==0)d=hs.createElement("tr",null,{height:"auto"},g,true);this.td[a]=hs.createElement("td",null,null,d,true);var f=a!=4?{lineHeight:0,fontSize:0}:{position:"relative"};hs.setStyles(this.td[a],f)}this.td[4].className=b+" highslide-outline";this.preloadGraphic()};hs.Outline.prototype={preloadGraphic:function(){var c=hs.graphicsDir+(hs.outlinesDir||"outlines/")+this.outlineType+".png",a=hs.safari?hs.container:null;this.graphic=hs.createElement("img",null,{position:"absolute",top:"-9999px"},a,true);var b=this;this.graphic.onload=function(){b.onGraphicLoad()};this.graphic.src=c},onGraphicLoad:function(){for(var b=this.offset=this.graphic.width/4,c=[[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],d={height:2*b+"px",width:2*b+"px"},a=0;a<=8;a++)if(c[a]){if(this.hasAlphaImageLoader){var f=a==1||a==7?"100%":this.graphic.width+"px",e=hs.createElement("div",null,{width:"100%",height:"100%",position:"relative",overflow:"hidden"},this.td[a],true);hs.createElement("div",null,{filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale, src='"+this.graphic.src+"')",position:"absolute",width:f,height:this.graphic.height+"px",left:c[a][0]*b+"px",top:c[a][1]*b+"px"},e,true)}else hs.setStyles(this.td[a],{background:"url("+this.graphic.src+") "+c[a][0]*b+"px "+c[a][1]*b+"px"});window.opera&&(a==3||a==5)&&hs.createElement("div",null,d,this.td[a],true);hs.setStyles(this.td[a],d)}this.graphic=null;hs.pendingOutlines[this.outlineType]&&hs.pendingOutlines[this.outlineType].destroy();hs.pendingOutlines[this.outlineType]=this;this.onLoad&&this.onLoad()},setPosition:function(b,a,c){a=a||{x:b.x.pos,y:b.y.pos,w:b.x.size+b.x.p1+b.x.p2,h:b.y.size+b.y.p1+b.y.p2};if(c)this.table.style.visibility=a.h>=4*this.offset?"visible":"hidden";hs.setStyles(this.table,{left:a.x-this.offset+"px",top:a.y-this.offset+"px",width:a.w+2*(b.x.cb+this.offset)+"px"});a.w+=2*(b.x.cb-this.offset);a.h+=+2*(b.y.cb-this.offset);hs.setStyles(this.td[4],{width:a.w>=0?a.w+"px":0,height:a.h>=0?a.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.Dimension=function(b,a){this.exp=b;this.dim=a;this.ucwh=a=="x"?"Width":"Height";this.wh=this.ucwh.toLowerCase();this.uclt=a=="x"?"Left":"Top";this.lt=this.uclt.toLowerCase();this.ucrb=a=="x"?"Right":"Bottom";this.rb=this.ucrb.toLowerCase()};hs.Dimension.prototype={"get":function(a){switch(a){case"loadingPos":return this.tpos+this.tb+(this.t-hs.loading["offset"+this.ucwh])/2;case"loadingPosXfade":return this.pos+this.cb+this.p1+(this.size-hs.loading["offset"+this.ucwh])/2;case"wsize":return this.size+2*this.cb+this.p1+this.p2;case"fitsize":return this.clientSize-this.marginMin-this.marginMax;case"opos":return this.pos-(this.exp.outline?this.exp.outline.offset:0);case"osize":return this.get("wsize")+(this.exp.outline?2*this.exp.outline.offset:0);case"imgPad":return this.imgSize?Math.round((this.size-this.imgSize)/2):0}},calcBorders:function(){this.cb=(this.exp.content["offset"+this.ucwh]-this.t)/2;this.marginMax=hs["margin"+this.ucrb]+2*this.cb},calcThumb:function(){this.t=this.exp.el[this.wh]?parseInt(this.exp.el[this.wh]):this.exp.el["offset"+this.ucwh];this.tpos=this.exp.tpos[this.dim];this.tb=(this.exp.el["offset"+this.ucwh]-this.t)/2;this.p1=this.p2=0;if(this.t==0&&this.tpos==0)this.tpos=hs.page[this.wh]/2+hs.page["scroll"+this.uclt]},calcExpanded:function(){this.justify="auto";if(this.exp.align=="center")this.justify="center";else if((new RegExp(this.lt)).test(this.exp.anchor))this.justify=null;else if((new RegExp(this.rb)).test(this.exp.anchor))this.justify="max";this.pos=this.tpos-this.cb+this.tb;this.size=Math.min(this.full,this.exp["max"+this.ucwh]||this.full);this.minSize=this.exp.allowSizeReduction?Math.min(this.exp["min"+this.ucwh],this.full):this.full;this.target=this.exp["target"+this.dim.toUpperCase()];this.marginMin=hs["margin"+this.uclt];this.scroll=hs.page["scroll"+this.uclt];this.clientSize=hs.page[this.wh]},setSize:function(a){this.size=a;this.exp.content.style[this.wh]=a+"px";this.exp.wrapper.style[this.wh]=this.get("wsize")+"px";this.exp.outline&&this.exp.outline.setPosition(this.exp);if(this.exp.releaseMask)this.exp.releaseMask.style[this.wh]=a+"px";if(this.exp.isHtml){var b=this.exp.scrollerDiv;if(!this.sizeDiff)this.sizeDiff=this.exp.innerContent["offset"+this.ucwh]-b["offset"+this.ucwh];b.style[this.wh]=this.size-this.sizeDiff+"px";if(this.dim=="x")this.exp.mediumContent.style.width="auto";if(this.exp.body)this.exp.body.style[this.wh]="auto"}this.dim=="x"&&this.exp.overlayBox&&this.exp.sizeOverlayBox(true);if(this.dim=="x"&&this.exp.slideshow&&this.exp.isImage)if(a==this.full)this.exp.slideshow.disable("full-expand");else this.exp.slideshow.enable("full-expand")},setPos:function(a){this.pos=a;this.exp.wrapper.style[this.lt]=a+"px";this.exp.outline&&this.exp.outline.setPosition(this.exp)}};hs.Expander=function(d,c,h,f){if(document.readyState&&hs.ie&&!hs.isDomReady){hs.onDomReady=function(){new hs.Expander(d,c,h,f)};return}this.a=d;this.custom=h;this.contentType=f||"image";this.isHtml=f=="html";this.isImage=!this.isHtml;hs.continuePreloading=false;this.overlays=[];this.last=hs.last;hs.last=null;hs.init();for(var i=this.key=hs.expanders.length,a=0;a<hs.overrides.length;a++){var e=hs.overrides[a];this[e]=c&&typeof c[e]!="undefined"?c[e]:hs[e]}if(!this.src)this.src=d.href;var b=c&&c.thumbnailId?hs.$(c.thumbnailId):d;b=this.thumb=b.getElementsByTagName("img")[0]||b;this.thumbsUserSetId=b.id||d.id;if(!hs.fireEvent(this,"onInit"))return true;for(var a=0;a<hs.expanders.length;a++)if(hs.expanders[a]&&hs.expanders[a].a==d&&!(this.last&&this.transitions[1]=="crossfade")){hs.expanders[a].focus();return false}for(var a=0;a<hs.expanders.length;a++)hs.expanders[a]&&hs.expanders[a].thumb!=b&&!hs.expanders[a].onLoadStarted&&hs.expanders[a].cancelLoading();hs.expanders[this.key]=this;if(!hs.allowMultipleInstances){hs.expanders[i-1]&&hs.expanders[i-1].close();typeof hs.focusKey!="undefined"&&hs.expanders[hs.focusKey]&&hs.expanders[hs.focusKey].close()}this.el=b;this.tpos=hs.getPosition(b);hs.page=hs.getPageSize();var j=this.x=new hs.Dimension(this,"x");j.calcThumb();var k=this.y=new hs.Dimension(this,"y");k.calcThumb();/area/i.test(b.tagName)&&this.getImageMapAreaCorrection(b);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.last&&this.isImage&&this.transitions[1]=="crossfade")this[this.contentType+"Create"]();else if(hs.pendingOutlines[this.outlineType]){this.connectOutline();this[this.contentType+"Create"]()}else{this.showLoading();var g=this;new hs.Outline(this.outlineType,function(){g.connectOutline();g[g.contentType+"Create"]()})}return true};hs.Expander.prototype={connectOutline:function(){var a=this.outline=hs.pendingOutlines[this.outlineType];a.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 b=this;this.loading.onclick=function(){b.cancelLoading()};if(!hs.fireEvent(this,"onShowLoading"))return;var b=this,c=this.x.get("loadingPos")+"px",d=this.y.get("loadingPos")+"px";if(!a&&this.last&&this.transitions[1]=="crossfade")var a=this.last;if(a){c=a.x.get("loadingPosXfade")+"px";d=a.y.get("loadingPosXfade")+"px";this.loading.style.zIndex=hs.zIndexCounter++}setTimeout(function(){b.loading&&hs.setStyles(b.loading,{left:c,top:d,zIndex:hs.zIndexCounter++})},100)},imageCreate:function(){var b=this,a=document.createElement("img");this.content=a;a.onload=function(){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;hs.safari&&hs.container.appendChild(a);if(hs.ie&&hs.flushImgSize)a.src=null;a.src=this.src;this.showLoading()},htmlCreate:function(){if(!hs.fireEvent(this,"onBeforeGetContent"))return;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 c=hs.getElementByClass(this.content,"div","highslide-body");c&&c.appendChild(this.maincontent);this.maincontent.style.display="block"}hs.fireEvent(this,"onAfterGetContent");this.innerContent=this.content;/(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",direction:hs.lang.cssDirection||""});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 a=new hs.Ajax(this.a,this.innerContent),b=this;a.onLoad=function(){hs.expanders[b.key]&&b.contentLoaded()};a.onError=function(){location.href=b.src};a.run()}else if(this.objectType=="iframe"&&this.objectLoadTime=="before")this.writeExtendedContent();else this.contentLoaded()},contentLoaded:function(){try{if(!this.content)return;this.content.onload=null;if(this.onLoadStarted)return;else this.onLoadStarted=true;var d=this.x,e=this.y;if(this.loading){hs.setStyles(this.loading,{top:"-9999px"});this.loading=null;hs.fireEvent(this,"onHideLoading")}if(this.isImage){d.full=this.content.width;e.full=this.content.height;hs.setStyles(this.content,{width:this.x.t+"px",height:this.y.t+"px"})}else this.htmlGetSize&&this.htmlGetSize();this.wrapper.appendChild(this.content);hs.setStyles(this.wrapper,{left:this.x.tpos+"px",top:this.y.tpos+"px"});hs.container.appendChild(this.wrapper);d.calcBorders();e.calcBorders();this.initSlideshow();this.getOverlays();var g=d.full/e.full;d.calcExpanded();this.justify(d);e.calcExpanded();this.justify(e);this.isHtml&&this.htmlSizeOperations();this.overlayBox&&this.sizeOverlayBox(0,1);if(this.allowSizeReduction){if(this.isImage)this.correctRatio(g);else this.fitOverlayBox();var c=this.slideshow;if(c&&this.last&&c.controls&&c.fixedControls){var h=c.overlayOptions.position||"",a;for(var b in hs.oPos)for(var f=0;f<5;f++){a=this[b];if(h.match(hs.oPos[b][f])){a.pos=this.last[b].pos+(this.last[b].p1-a.p1)+(this.last[b].size-a.size)*([0,0,.5,1,1])[f];if(c.fixedControls=="fit"){if(a.pos+a.size+a.p1+a.p2>a.scroll+a.clientSize-a.marginMax)a.pos=a.scroll+a.clientSize-a.size-a.marginMin-a.marginMax-a.p1-a.p2;if(a.pos<a.scroll+a.marginMin)a.pos=a.scroll+a.marginMin}}}}if(this.isImage&&this.x.full>this.x.size){this.createFullExpand();this.overlays.length==1&&this.sizeOverlayBox()}}this.show()}catch(i){window.location.href=this.src}},setObjContainerSize:function(b){var a=hs.getElementByClass(b,"DIV","highslide-body");if(/(iframe|swf)/.test(this.objectType)){if(this.objectWidth)a.style.width=this.objectWidth+"px";if(this.objectHeight)a.style.height=this.objectHeight+"px"}},writeExtendedContent:function(){if(this.hasExtendedContent)return;var f=this;this.body=hs.getElementByClass(this.innerContent,"DIV","highslide-body");if(this.objectType=="iframe"){this.showLoading();var b=hs.clearing.cloneNode(1);this.body.appendChild(b);this.newWidth=this.innerContent.offsetWidth;if(!this.objectWidth)this.objectWidth=b.offsetWidth;var d=this.innerContent.offsetHeight-this.body.offsetHeight,e=this.objectHeight||hs.getPageSize().height-d-hs.marginTop-hs.marginBottom,c=this.objectLoadTime=="before"?' onload="if (hs.expanders['+this.key+"]) hs.expanders["+this.key+'].contentLoaded()" ':"";this.body.innerHTML+='<iframe name="hs'+(new Date).getTime()+'" frameborder="0" key="'+this.key+'"  allowtransparency="true" style="width:'+this.objectWidth+"px; height:"+e+'px" '+c+' src="'+this.src+'"></iframe>';this.ruler=this.body.getElementsByTagName("div")[0];this.iframe=this.body.getElementsByTagName("iframe")[0];this.objectLoadTime=="after"&&this.correctIframeSize()}if(this.objectType=="swf"){this.body.id=this.body.id||"hs-flash-id-"+this.key;var a=this.swfOptions;if(typeof a.params.wmode=="undefined")a.params.wmode="transparent";swfobject&&swfobject.embedSWF(this.src,this.body.id,this.objectWidth,this.objectHeight,a.version||"7",a.expressInstallSwfurl,a.flashvars,a.params,a.attributes)}this.hasExtendedContent=true},htmlGetSize:function(){if(this.iframe&&!this.objectHeight)this.iframe.style.height=this.body.style.height=this.getIframePageHeight()+"px";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",padding:"0"});hs.setStyles(this.content,{width:this.x.t+"px",height:this.y.t+"px"})},getIframePageHeight:function(){var b;try{var a=this.iframe.contentDocument||this.iframe.contentWindow.document,c=a.createElement("div");c.style.clear="both";a.body.appendChild(c);b=c.offsetTop;if(hs.ie)b+=parseInt(a.body.currentStyle.marginTop)+parseInt(a.body.currentStyle.marginBottom)-1}catch(d){b=300}return b},correctIframeSize:function(){var a=this.innerContent.offsetWidth-this.ruler.offsetWidth;if(a<0)a=0;var b=this.innerContent.offsetHeight-this.body.offsetHeight;hs.setStyles(this.iframe,{width:this.x.size-a+"px",height:this.y.size-b+"px"});hs.setStyles(this.body,{width:this.iframe.style.width,height:this.iframe.style.height});this.scrollingContent=this.iframe;this.scrollerDiv=this.scrollingContent},htmlSizeOperations:function(){this.setObjContainerSize(this.innerContent);this.objectType=="swf"&&this.objectLoadTime=="before"&&this.writeExtendedContent();if(this.x.size<this.x.full&&!this.allowWidthReduction)this.x.size=this.x.full;if(this.y.size<this.y.full&&!this.allowHeightReduction)this.y.size=this.y.full;this.scrollerDiv=this.innerContent;hs.setStyles(this.mediumContent,{width:this.x.size+"px",position:"relative",left:this.x.pos-this.x.tpos+"px",top:this.y.pos-this.y.tpos+"px"});hs.setStyles(this.innerContent,{border:"none",width:"auto",height:"auto"});var a=hs.getElementByClass(this.innerContent,"DIV","highslide-body");if(a&&!/(iframe|swf)/.test(this.objectType)){var b=a;a=hs.createElement(b.nodeName,null,{overflow:"hidden"},null,true);b.parentNode.insertBefore(a,b);a.appendChild(hs.clearing);a.appendChild(b);var e=this.innerContent.offsetWidth-a.offsetWidth,d=this.innerContent.offsetHeight-a.offsetHeight;a.removeChild(hs.clearing);var c=hs.safari||navigator.vendor=="KDE"?1:0;hs.setStyles(a,{width:this.x.size-e-c+"px",height:this.y.size-d+"px",overflow:"auto",position:"relative"});if(c&&b.offsetHeight>a.offsetHeight)a.style.width=parseInt(a.style.width)+c+"px";this.scrollingContent=a;this.scrollerDiv=this.scrollingContent}this.iframe&&this.objectLoadTime=="before"&&this.correctIframeSize();if(!this.scrollingContent&&this.y.size<this.mediumContent.offsetHeight)this.scrollerDiv=this.content;if(this.scrollerDiv==this.content&&!this.allowWidthReduction&&!/(iframe|swf)/.test(this.objectType))this.x.size+=17;this.scrollerDiv&&this.scrollerDiv.offsetHeight>this.scrollerDiv.parentNode.offsetHeight&&setTimeout("try { hs.expanders["+this.key+"].scrollerDiv.style.overflow = 'auto'; } catch(e) {}",hs.expandDuration)},getImageMapAreaCorrection:function(g){for(var a=g.coords.split(","),b=0;b<a.length;b++)a[b]=parseInt(a[b]);if(g.shape.toLowerCase()=="circle"){this.x.tpos+=a[0]-a[2];this.y.tpos+=a[1]-a[2];this.x.t=this.y.t=2*a[2]}else{for(var c,d,e=c=a[0],f=d=a[1],b=0;b<a.length;b++)if(b%2==0){e=Math.min(e,a[b]);c=Math.max(c,a[b])}else{f=Math.min(f,a[b]);d=Math.max(d,a[b])}this.x.tpos+=e;this.x.t=c-e;this.y.tpos+=f;this.y.t=d-f}},justify:function(a,e){var c,b=a.target,h=a==this.x?"x":"y";if(b&&b.match(/ /)){c=b.split(" ");b=c[0]}if(b&&hs.$(b)){a.pos=hs.getPosition(hs.$(b))[h];if(c&&c[1]&&c[1].match(/^[-]?[0-9]+px$/))a.pos+=parseInt(c[1])}else if(a.justify=="auto"||a.justify=="center"){var f=false,d=hs.allowSizeReduction;if(a.justify=="center")a.pos=Math.round(a.scroll+(a.clientSize-a.marginMax-a.get("wsize"))/2);else a.pos=Math.round(a.pos-(a.get("wsize")-a.t)/2);if(a.pos<a.scroll+a.marginMin){a.pos=a.scroll+a.marginMin;f=true}if(!e&&a.size<a.minSize){a.size=a.minSize;d=false}if(a.pos+a.get("wsize")>a.scroll+a.clientSize-a.marginMax)if(!e&&f&&d)a.size=a.get("fitsize");else if(a.get("wsize")<a.get("fitsize"))a.pos=a.scroll+a.clientSize-a.marginMax-a.get("wsize");else{a.pos=a.scroll+a.marginMin;if(!e&&d)a.size=a.get("fitsize")}if(!e&&a.size<a.minSize){a.size=a.minSize;d=false}}else if(a.justify=="max")a.pos=Math.floor(a.pos-a.size+a.t);if(a.pos<a.marginMin){var g=a.pos;a.pos=a.marginMin;if(d&&!e)a.size=a.size-(a.pos-g)}},correctRatio:function(c){var a=this.x,b=this.y,d=false;if(a.size/b.size>c){a.size=b.size*c;if(a.size<a.minSize){if(hs.padToMinWidth)a.imgSize=a.size;a.size=a.minSize;if(!a.imgSize)b.size=a.size/c}d=true}else if(a.size/b.size<c){var e=b.size;b.size=a.size/c;d=true}this.fitOverlayBox(c);if(d){a.pos=a.tpos-a.cb+a.tb;a.minSize=a.size;this.justify(a,true);b.pos=b.tpos-b.cb+b.tb;b.minSize=b.size;this.justify(b,true);this.overlayBox&&this.sizeOverlayBox()}},fitOverlayBox:function(b){var c=this.x,a=this.y;if(this.overlayBox)while(a.size>this.minHeight&&c.size>this.minWidth&&a.get("wsize")>a.get("fitsize")){a.size-=10;if(b)c.size=a.size*b;this.sizeOverlayBox(0,1)}},reflow:function(){var a=/iframe/i.test(this.scrollerDiv.tagName)?this.getIframePageHeight()+1+"px":"auto";if(this.body)this.body.style.height=a;this.scrollerDiv.style.height=a;this.y.setSize(this.innerContent.offsetHeight)},show:function(){this.doShowHide("hidden");hs.fireEvent(this,"onBeforeExpand");this.changeSize(1,{xpos:this.x.tpos+this.x.tb-this.x.cb,ypos:this.y.tpos+this.y.tb-this.y.cb,xsize:this.x.t,ysize:this.y.t,xp1:0,xp2:0,yp1:0,yp2:0,ximgSize:this.x.t,ximgPad:0,o:hs.outlineStartOffset},{xpos:this.x.pos,ypos:this.y.pos,xsize:this.x.size,ysize:this.y.size,xp1:this.x.p1,yp1:this.y.p1,xp2:this.x.p2,yp2:this.y.p2,ximgSize:this.x.imgSize,ximgPad:this.x.get("imgPad"),o:this.outline?this.outline.offset:0},hs.expandDuration)},changeSize:function(a,e,f,k){var d=this.transitions,j=a?this.last?this.last.a:null:hs.upcoming,b=d[1]&&j&&hs.getParam(j,"transitions")[1]==d[1]?d[1]:d[0];if(a&&j&&this.isHtml&&d[1]=="crossfade")b=d[1]="fade";if(this[b]&&b!="expand"){this[b](a,e,f);return}a&&hs.setStyles(this.wrapper,{opacity:1});if(this.outline&&!this.outlineWhileAnimating)if(a)this.outline.setPosition(this);else this.outline.destroy(this.isHtml&&this.preserveContent);if(!a&&this.overlayBox){if(this.slideshow){var g=this.slideshow.controls;g&&hs.getExpander(g)==this&&g.parentNode.removeChild(g)}if(this.isHtml&&this.preserveContent){this.overlayBox.style.top="-9999px";hs.container.appendChild(this.overlayBox)}else hs.discardElement(this.overlayBox)}if(this.fadeInOut){e.op=a?0:1;f.op=a}var b,c=this,i=Math[this.easing]||Math.easeInQuad,l=(a?hs.expandSteps:hs.restoreSteps)||parseInt(k/25)||1;if(!a)i=Math[this.easingClose]||i;for(var h=1;h<=l;h++){b=Math.round(h*(k/l));(function(){var j=h,g={};for(var d in e){g[d]=i(b,e[d],f[d]-e[d],k);if(isNaN(g[d]))g[d]=f[d];if(!/^op$/.test(d))g[d]=Math.round(g[d])}setTimeout(function(){if(a&&j==1){c.content.style.visibility="visible";c.a.className+=" highslide-active-anchor"}c.setSize(g)},b)})()}if(a){setTimeout(function(){if(c.outline)c.outline.table.style.visibility="visible"},b);setTimeout(function(){c.afterExpand()},b+50)}else setTimeout(function(){c.afterClose()},b)},setSize:function(a){try{a.op&&hs.setStyles(this.wrapper,{opacity:a.op});hs.setStyles(this.wrapper,{width:a.xsize+a.xp1+a.xp2+2*this.x.cb+"px",height:a.ysize+a.yp1+a.yp2+2*this.y.cb+"px",left:a.xpos+"px",top:a.ypos+"px"});hs.setStyles(this.content,{top:a.yp1+"px",left:a.xp1+a.ximgPad+"px",width:(a.ximgSize||a.xsize)+"px",height:a.ysize+"px"});if(this.isHtml){hs.setStyles(this.mediumContent,{left:this.x.pos-a.xpos+this.x.p1-a.xp1+"px",top:this.y.pos-a.ypos+this.y.p1-a.yp1+"px"});this.innerContent.style.visibility="visible"}if(this.outline&&this.outlineWhileAnimating){var b=this.outline.offset-a.o;this.outline.setPosition(this,{x:a.xpos+b,y:a.ypos+b,w:a.xsize+a.xp1+a.xp2+-2*b,h:a.ysize+a.yp1+a.yp2+-2*b},1)}this.wrapper.style.visibility="visible"}catch(c){window.location.href=this.src}},fade:function(b,g,f){this.outlineWhileAnimating=false;var a=this,d=b?250:0;if(b){hs.setStyles(this.wrapper,{opacity:0});this.setSize(f);this.content.style.visibility="visible";hs.fade(this.wrapper,0,1)}if(this.outline){this.outline.table.style.zIndex=this.wrapper.style.zIndex;for(var e=b||-1,c=g.o;e*c<=e*f.o;c+=e,d+=25)(function(){var e=b?f.o-c:g.o-c;setTimeout(function(){a.outline.setPosition(a,{x:a.x.pos+e,y:a.y.pos+e,w:a.x.size-2*e+a.x.p1+a.x.p2,h:a.y.size-2*e+a.y.p1+a.y.p2},1)},d)})()}if(b)setTimeout(function(){a.afterExpand()},d+50);else setTimeout(function(){a.outline&&a.outline.destroy(a.preserveContent);hs.fade(a.wrapper,1,0);setTimeout(function(){a.afterClose()},250)},d)},crossfade:function(m,d,c){if(!m)return;var b=this,e=parseInt(hs.transitionDuration/25)||1,a=this.last;hs.removeEventListener(document,"mousemove",hs.dragHandler);hs.setStyles(this.content,{width:(c.ximgSize||c.xsize)+"px",height:c.ysize+"px"});this.outline=this.last.outline;this.last.outline=null;this.fadeBox=hs.createElement("div",{className:"highslide-image"},{position:"absolute",zIndex:4,overflow:"hidden",display:"none"});var j={oldImg:a,newImg:this};for(var h in j){this[h]=j[h].content.cloneNode(1);hs.setStyles(this[h],{position:"absolute",border:0,visibility:"visible"});this.fadeBox.appendChild(this[h])}this.wrapper.appendChild(this.fadeBox);d={xpos:a.x.pos,xsize:a.x.size,xp1:a.x.p1,xp2:a.x.p2,ximgSize:a.x.imgSize||a.x.size,ximgPad:a.x.get("imgPad"),ypos:a.y.pos,ysize:a.y.size,yp1:a.y.p1,yp2:a.y.p2,o:1/e};c.ysize=this.y.size;c.o=1;if(!c.ximgSize)c.ximgSize=c.xsize;var g,l=Math.easeInOutQuad;e>1&&this.crossfadeStep(d);function k(){if(b.overlayBox){b.overlayBox.className="";b.wrapper.appendChild(b.overlayBox);for(var c=0;c<b.last.overlays.length;c++){var a=hs.$("hsId"+b.last.overlays[c]);if(a.reuse===b.key)b.overlayBox.appendChild(a);else hs.fade(a,a.opacity,0)}}b.fadeBox.style.display="";b.last.content.style.display="none"}if(/rv:1\.[0-8].+Gecko/.test(navigator.userAgent))setTimeout(k,0);else k();if(hs.safari){var i=navigator.userAgent.match(/Safari\/([0-9]{3})/);if(i&&parseInt(i[1])<525)this.wrapper.style.visibility="visible"}for(var f=1;f<=e;f++){g=Math.round(f*(hs.transitionDuration/e));(function(){var h={},i=f;for(var a in d){var e=l(g,d[a],c[a]-d[a],hs.transitionDuration);if(isNaN(e))e=c[a];h[a]=a!="o"?Math.round(e):e}setTimeout(function(){b.crossfadeStep(h)},g)})()}setTimeout(function(){b.crossfadeEnd()},g+100)},crossfadeStep:function(a){try{this.outline&&this.outline.setPosition(this,{x:a.xpos,y:a.ypos,w:a.xsize+a.xp1+a.xp2,h:a.ysize+a.yp1+a.yp2},1);this.last.wrapper.style.clip="rect("+(a.ypos-this.last.y.pos)+"px, "+(a.xsize+a.xp1+a.xp2+a.xpos+2*this.last.x.cb-this.last.x.pos)+"px, "+(a.ysize+a.yp1+a.yp2+a.ypos+2*this.last.y.cb-this.last.y.pos)+"px, "+(a.xpos-this.last.x.pos)+"px)";hs.setStyles(this.content,{top:a.yp1+"px",left:a.xp1+this.x.get("imgPad")+"px",marginTop:this.y.pos-a.ypos+"px",marginLeft:this.x.pos-a.xpos+"px"});hs.setStyles(this.wrapper,{top:a.ypos+"px",left:a.xpos+"px",width:a.xp1+a.xp2+a.xsize+2*this.x.cb+"px",height:a.yp1+a.yp2+a.ysize+2*this.y.cb+"px"});hs.setStyles(this.fadeBox,{width:(a.ximgSize||a.xsize)+"px",height:a.ysize+"px",left:a.xp1+a.ximgPad+"px",top:a.yp1+"px",visibility:"visible"});hs.setStyles(this.oldImg,{top:this.last.y.pos-a.ypos+this.last.y.p1-a.yp1+"px",left:this.last.x.pos-a.xpos+this.last.x.p1-a.xp1+this.last.x.get("imgPad")-a.ximgPad+"px"});hs.setStyles(this.newImg,{opacity:a.o,top:this.y.pos-a.ypos+this.y.p1-a.yp1+"px",left:this.x.pos-a.xpos+this.x.p1-a.xp1+this.x.get("imgPad")-a.ximgPad+"px"});hs.setStyles(this.overlayBox,{width:a.xsize+"px",height:a.ysize+"px",left:a.xp1+this.x.cb+"px",top:a.yp1+this.y.cb+"px"})}catch(b){}},crossfadeEnd:function(){this.wrapper.style.background=this.wrapperBG||"";this.wrapper.style.visibility=this.content.style.visibility="visible";this.fadeBox.style.display="none";this.a.className+=" highslide-active-anchor";this.afterExpand();this.last.afterClose()},reuseOverlay:function(c){if(!this.last)return false;for(var a=0;a<this.last.overlays.length;a++){var b=hs.$("hsId"+this.last.overlays[a]);if(b&&b.hsId==c.hsId){this.genOverlayBox();b.reuse=this.key;hs.push(this.overlays,this.last.overlays[a]);return true}}return false},afterExpand:function(){this.isExpanded=true;this.focus();this.isHtml&&this.objectLoadTime=="after"&&this.writeExtendedContent();if(this.isHtml)if(this.iframe){try{var a=this,e=this.iframe.contentDocument||this.iframe.contentWindow.document;hs.addEventListener(e,"mousedown",function(){hs.focusKey!=a.key&&a.focus()})}catch(f){}if(hs.ie&&typeof this.isClosing!="boolean")this.iframe.style.width=this.objectWidth-1+"px"}this.dimmingOpacity&&hs.dim(this);if(hs.upcoming&&hs.upcoming==this.a)hs.upcoming=null;this.prepareNextOutline();var d=hs.page,b=hs.mouse.x+d.scrollLeft,c=hs.mouse.y+d.scrollTop;this.mouseIsOver=this.x.pos<b&&b<this.x.pos+this.x.get("wsize")&&this.y.pos<c&&c<this.y.pos+this.y.get("wsize");this.overlayBox&&this.showOverlays();hs.fireEvent(this,"onAfterExpand")},prepareNextOutline:function(){var b=this.key,a=this.outlineType;new hs.Outline(a,function(){try{hs.expanders[b].preloadNext()}catch(a){}})},preloadNext:function(){var a=this.getAdjacentAnchor(1);if(a&&a.onclick.toString().match(/hs\.expand/))var b=hs.createElement("img",{src:hs.getSrc(a)})},getAdjacentAnchor:function(b){var c=this.getAnchorIndex(),a=hs.anchors.groups[this.slideshowGroup||"none"];if(!a[c+b]&&this.slideshow&&this.slideshow.repeat)if(b==1)return a[0];else if(b==-1)return a[a.length-1];return a[c+b]||null},getAnchorIndex:function(){for(var b=hs.anchors.groups[this.slideshowGroup||"none"],a=0;a<b.length;a++)if(b[a]==this.a)return a;return null},getNumber:function(){if(this[this.numberPosition]){var a=hs.anchors.groups[this.slideshowGroup||"none"],b=hs.lang.number.replace("%1",this.getAnchorIndex()+1).replace("%2",a.length);this[this.numberPosition].innerHTML='<div class="highslide-number">'+b+"</div>"+this[this.numberPosition].innerHTML}},initSlideshow:function(){if(this.slideshow)return;if(!this.last)for(var c=0;c<hs.slideshows.length;c++){var a=hs.slideshows[c],b=a.slideshowGroup;if(typeof b=="undefined"||b===null||b===this.slideshowGroup)this.slideshow=new hs.Slideshow(a)}else this.slideshow=this.last.slideshow;var a=this.slideshow;if(!a)return;var e=a.exp=this;a.checkFirstAndLast();a.disable("full-expand");if(a.controls){var d=a.overlayOptions||{};d.overlayId=a.controls;d.hsId="controls";this.createOverlay(d)}!this.last&&this.autoplay&&a.play(true);if(a.autoplay)a.autoplay=setTimeout(function(){hs.next(e.key)},a.interval||500)},cancelLoading:function(){hs.expanders[this.key]=null;if(hs.upcoming==this.a)hs.upcoming=null;hs.undim();if(this.loading)hs.loading.style.left="-9999px";hs.fireEvent(this,"onHideLoading")},writeCredits:function(){if(this.credits)return;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",hsId:"credits"})},getInline:function(f,h){for(var d=0;d<f.length;d++){var a=f[d],b=null;if(a=="caption"&&!hs.fireEvent(this,"onBeforeGetCaption"))return;else if(a=="heading"&&!hs.fireEvent(this,"onBeforeGetHeading"))return;if(!this[a+"Id"]&&this.thumbsUserSetId)this[a+"Id"]=a+"-for-"+this.thumbsUserSetId;if(this[a+"Id"])this[a]=hs.getNode(this[a+"Id"]);if(!this[a]&&!this[a+"Text"]&&this[a+"Eval"])try{b=eval(this[a+"Eval"])}catch(i){}if(!this[a]&&this[a+"Text"])b=this[a+"Text"];if(!this[a]&&!b){var c=this.a.nextSibling;while(c&&!hs.isHsAnchor(c)){if((new RegExp("highslide-"+a)).test(c.className||null)){this[a]=c.cloneNode(1);break}c=c.nextSibling}}if(!this[a]&&!b&&this.numberPosition==a)b="\n";if(!this[a]&&b)this[a]=hs.createElement("div",{className:"highslide-"+a,innerHTML:b});if(h&&this[a]){var e={position:a=="heading"?"above":"below"};for(var g in this[a+"Overlay"])e[g]=this[a+"Overlay"][g];e.overlayId=this[a];this.createOverlay(e)}}},doShowHide:function(a){hs.hideSelects&&this.showHideElements("SELECT",a);hs.hideIframes&&this.showHideElements("IFRAME",a);hs.geckoMac&&this.showHideElements("*",a)},showHideElements:function(h,g){for(var b=document.getElementsByTagName(h),e=h=="*"?"overflow":"visibility",a=0;a<b.length;a++)if(e=="visibility"||(document.defaultView.getComputedStyle(b[a],"").getPropertyValue("overflow")=="auto"||b[a].getAttribute("hidden-by")!=null)){var c=b[a].getAttribute("hidden-by");if(g=="visible"&&c){c=c.replace("["+this.key+"]","");b[a].setAttribute("hidden-by",c);if(!c)b[a].style[e]=b[a].origProp}else if(g=="hidden"){var d=hs.getPosition(b[a]);d.w=b[a].offsetWidth;d.h=b[a].offsetHeight;if(!this.dimmingOpacity)var i=d.x+d.w<this.x.get("opos")||d.x>this.x.get("opos")+this.x.get("osize"),j=d.y+d.h<this.y.get("opos")||d.y>this.y.get("opos")+this.y.get("osize");var f=hs.getWrapperKey(b[a]);if(!i&&!j&&f!=this.key)if(!c){b[a].setAttribute("hidden-by","["+this.key+"]");b[a].origProp=b[a].style[e];b[a].style[e]="hidden"}else!c.match("["+this.key+"]")&&b[a].setAttribute("hidden-by",c+"["+this.key+"]");else if((c=="["+this.key+"]"||hs.focusKey==f)&&f!=this.key){b[a].setAttribute("hidden-by","");b[a].style[e]=b[a].origProp||""}else c&&c.match("["+this.key+"]")&&b[a].setAttribute("hidden-by",c.replace("["+this.key+"]",""))}}},focus:function(){this.wrapper.style.zIndex=hs.zIndexCounter++;for(var b=0;b<hs.expanders.length;b++)if(hs.expanders[b]&&b==hs.focusKey){var a=hs.expanders[b];a.content.className+=" highslide-"+a.contentType+"-blur";if(a.isImage){a.content.style.cursor=hs.ie?"hand":"pointer";a.content.title=hs.lang.focusTitle}hs.fireEvent(this,"onBlur")}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,window.opera?"keypress":"keydown",hs.keyHandler);hs.fireEvent(this,"onFocus")},moveTo:function(a,b){this.x.setPos(a);this.y.setPos(b)},resize:function(a){var b,c,d=a.width/a.height;b=Math.max(a.width+a.dX,Math.min(this.minWidth,this.x.full));if(this.isImage&&Math.abs(b-this.x.full)<12)b=this.x.full;c=this.isHtml?a.height+a.dY:b/d;if(c<Math.min(this.minHeight,this.y.full)){c=Math.min(this.minHeight,this.y.full);if(this.isImage)b=c*d}this.resizeTo(b,c)},resizeTo:function(b,a){this.y.setSize(a);this.x.setSize(b)},close:function(){if(this.isClosing||!this.isExpanded||hs.upcoming&&this.transitions[1]=="crossfade")return;this.isClosing=true;if(!hs.fireEvent(this,"onBeforeClose"))return;this.slideshow&&!hs.upcoming&&this.slideshow.pause();hs.removeEventListener(document,window.opera?"keypress":"keydown",hs.keyHandler);try{this.isHtml&&this.htmlPrepareClose();this.content.style.cursor="default";this.changeSize(0,{xpos:this.x.pos,ypos:this.y.pos,xsize:this.x.size,ysize:this.y.size,xp1:this.x.p1,yp1:this.y.p1,xp2:this.x.p2,yp2:this.y.p2,ximgSize:this.x.imgSize,ximgPad:this.x.get("imgPad"),o:this.outline?this.outline.offset:0},{xpos:this.x.tpos-this.x.cb+this.x.tb,ypos:this.y.tpos-this.y.cb+this.y.tb,xsize:this.x.t,ysize:this.y.t,xp1:0,yp1:0,xp2:0,yp2:0,ximgSize:this.x.imgSize?this.x.t:null,ximgPad:0,o:hs.outlineStartOffset},hs.restoreDuration)}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.size+"px",height:this.y.size+"px",left:this.x.pos+"px",top:this.y.pos+"px",display:"block"})}if(this.objectType=="swf")try{hs.$(this.body.id).StopPlay()}catch(a){}this.objectLoadTime=="after"&&!this.preserveContent&&this.destroyObject();if(this.scrollerDiv&&this.scrollerDiv!=this.scrollingContent)this.scrollerDiv.style.overflow="hidden"},destroyObject:function(){if(hs.ie&&this.iframe)try{this.iframe.contentWindow.document.body.innerHTML=""}catch(a){}this.objectType=="swf"&&swfobject.removeSWF(this.body.id);this.body.innerHTML=""},sleep:function(){if(this.outline)this.outline.table.style.display="none";this.releaseMask=null;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(d){}var c=hs.zIndexCounter++,a={display:"",zIndex:c};hs.setStyles(this.wrapper,a);this.isClosing=false;var b=this.outline||0;if(b){if(!this.outlineWhileAnimating)a.visibility="hidden";hs.setStyles(b.table,a)}this.show()},createOverlay:function(a){var b=a.overlayId;if(typeof b=="string")b=hs.getNode(b);if(!b||typeof b=="string")return;if(!hs.fireEvent(this,"onCreateOverlay",{overlay:b}))return;b.style.display="block";a.hsId=a.hsId||a.overlayId;if(this.transitions[1]=="crossfade"&&this.reuseOverlay(a,b))return;this.genOverlayBox();var d=a.width&&/^[0-9]+(px|%)$/.test(a.width)?a.width:"auto";if(/^(left|right)panel$/.test(a.position)&&!/^[0-9]+px$/.test(a.width))d="200px";var c=hs.createElement("div",{id:"hsId"+hs.idCounter++,hsId:a.hsId},{position:"absolute",visibility:"hidden",width:d,direction:hs.lang.cssDirection||""},this.overlayBox,true);c.appendChild(b);hs.setAttribs(c,{hideOnMouseOut:a.hideOnMouseOut,opacity:a.opacity||1,hsPos:a.position,fade:a.fade});if(this.gotOverlays){this.positionOverlay(c);(!c.hideOnMouseOut||this.mouseIsOver)&&hs.fade(c,0,c.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;/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;/^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,{position:"relative",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;a.style.position="absolute"}},getOverlays:function(){this.getInline(["heading","caption"],true);this.getNumber();this.caption&&hs.fireEvent(this,"onAfterGetCaption");this.heading&&hs.fireEvent(this,"onAfterGetHeading");if(this.heading&&this.dragByHeading)this.heading.className+=" highslide-move";hs.showCredits&&this.writeCredits();for(var a=0;a<hs.overlays.length;a++){var b=hs.overlays[a],c=b.thumbnailId,e=b.slideshowGroup;if(!c&&!e||c&&c==this.thumbsUserSetId||e&&e===this.slideshowGroup)(this.isImage||this.isHtml&&b.useOnHtml)&&this.createOverlay(b)}for(var d=[],a=0;a<this.overlays.length;a++){var b=hs.$("hsId"+this.overlays[a]);if(/panel$/.test(b.hsPos))this.positionOverlay(b);else hs.push(d,b)}for(var a=0;a<d.length;a++)this.positionOverlay(d[a]);this.gotOverlays=true},genOverlayBox:function(){if(!this.overlayBox)this.overlayBox=hs.createElement("div",{className:this.wrapperClassName},{position:"absolute",width:this.x.size?this.x.size+"px":this.x.full+"px",height:0,visibility:"hidden",overflow:"hidden",zIndex:hs.ie?4:null},hs.container,true)},sizeOverlayBox:function(c,d){hs.setStyles(this.overlayBox,{width:this.x.size+"px",height:this.y.size+"px"});if(c||d)for(var b=0;b<this.overlays.length;b++){var a=hs.$("hsId"+this.overlays[b]);if(a&&/^(above|below)$/.test(a.hsPos)){if(hs.ie&&(hs.ieVersion()<=6||document.compatMode=="BackCompat"))a.style.width=this.overlayBox.offsetWidth+2*this.x.cb+this.x.p1+this.x.p2+"px";this.y[a.hsPos=="above"?"p1":"p2"]=a.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(){var b=this.overlayBox;b.className="";hs.setStyles(b,{top:this.y.p1+this.y.cb+"px",left:this.x.p1+this.x.cb+"px",overflow:"visible"});if(hs.safari)b.style.visibility="visible";this.wrapper.appendChild(b);for(var c=0;c<this.overlays.length;c++){var a=hs.$("hsId"+this.overlays[c]);a.style.zIndex=a.hsId=="controls"?5:4;(!a.hideOnMouseOut||this.mouseIsOver)&&hs.fade(a,0,a.opacity)}},createFullExpand:function(){if(this.slideshow&&this.slideshow.controls){this.slideshow.enable("full-expand");return}this.fullExpandLabel=hs.createElement("a",{href:"javascript:hs.expanders["+this.key+"].doFullExpand();",title:hs.lang.fullExpandTitle,className:"highslide-full-expand"});if(!hs.fireEvent(this,"onCreateFullExpand"))return;this.createOverlay({overlayId:this.fullExpandLabel,position:hs.fullExpandPosition,hideOnMouseOut:true,opacity:hs.fullExpandOpacity})},doFullExpand:function(){try{if(!hs.fireEvent(this,"onDoFullExpand"))return;this.fullExpandLabel&&hs.discardElement(this.fullExpandLabel);this.focus();var a=this.x.pos-(this.x.full-this.x.size)/2;if(a<hs.marginLeft)a=hs.marginLeft;this.moveTo(a,this.y.pos);this.resizeTo(this.x.full,this.y.full);this.doShowHide("hidden");hs.setDimmerSize(this)}catch(b){window.location.href=this.content.src}},afterClose:function(){this.a.className=this.a.className.replace("highslide-active-anchor","");this.doShowHide("visible");if(this.isHtml&&this.preserveContent)this.sleep();else{this.outline&&this.outlineWhileAnimating&&this.outline.destroy();hs.discardElement(this.wrapper)}if(hs.mask)hs.mask.style.display="none";this.dimmingOpacity&&hs.undim(this.key);hs.fireEvent(this,"onAfterClose");hs.expanders[this.key]=null;hs.reOrder()}};hs.Ajax=function(c,a,b){this.a=c;this.content=a;this.pre=b};hs.Ajax.prototype={run:function(){if(!this.src)this.src=hs.getSrc(this.a);if(this.src.match("#")){var b=this.src.split("#");this.src=b[0];this.id=b[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(c){try{this.xmlHttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{this.xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){this.onError()}}}var a=this;this.xmlHttp.onreadystatechange=function(){if(a.xmlHttp.readyState==4)if(a.id)a.getElementContent();else a.loadHTML()};this.xmlHttp.open("GET",this.src,true);this.xmlHttp.setRequestHeader("X-Requested-With","XMLHttpRequest");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",top:"-9999px"},hs.container);this.loadHTML()},loadHTML:function(){var a=this.cachedGet||this.xmlHttp.responseText;if(this.pre)hs.cachedGets[this.src]=a;if(!hs.ie||hs.ieVersion()>=5.5){a=a.replace(/\s/g," ").replace(new RegExp("<link[^>]*>","gi"),"").replace(new RegExp("<script[^>]*>.*?<\/script>","gi"),"");if(this.iframe){var b=this.iframe.contentDocument;if(!b&&this.iframe.contentWindow)b=this.iframe.contentWindow.document;if(!b){var c=this;setTimeout(function(){c.loadHTML()},25);return}b.open();b.write(a);b.close();try{a=b.getElementById(this.id).innerHTML}catch(e){try{a=this.iframe.document.getElementById(this.id).innerHTML}catch(e){}}}else a=a.replace(new RegExp("^.*?<body[^>]*>(.*?)</body>.*?$","i"),"$1")}hs.getElementByClass(this.content,"DIV","highslide-body").innerHTML=a;this.onLoad();for(var d in this)this[d]=null}};hs.Slideshow=function(a){hs.updateAnchors();for(var b in a)this[b]=a[b];this.useControls&&this.getControls()};hs.Slideshow.prototype={getControls:function(){this.controls=hs.createElement("div",{innerHTML:hs.replaceLang(hs.skin.controls)},null,hs.container);var b=["play","pause","previous","next","move","full-expand","close"];this.btn={};for(var c=this,a=0;a<b.length;a++){this.btn[b[a]]=hs.getElementByClass(this.controls,"li","highslide-"+b[a]);this.enable(b[a])}this.btn.pause.style.display="none"},checkFirstAndLast:function(){if(this.repeat||!this.controls)return;var a=this.exp.getAnchorIndex(),b=/disabled$/;if(a==0)this.disable("previous");else b.test(this.btn.previous.getElementsByTagName("a")[0].className)&&this.enable("previous");if(a+1==hs.anchors.groups[this.exp.slideshowGroup||"none"].length){this.disable("next");this.disable("play")}else if(b.test(this.btn.next.getElementsByTagName("a")[0].className)){this.enable("next");this.enable("play")}},enable:function(b){if(!this.btn)return;var d=this,a=this.btn[b].getElementsByTagName("a")[0],c=/disabled$/;a.onclick=function(){d[b]();return false};if(c.test(a.className))a.className=a.className.replace(c,"")},disable:function(b){if(!this.btn)return;var a=this.btn[b].getElementsByTagName("a")[0];a.onclick=function(){return false};if(!/disabled$/.test(a.className))a.className+=" disabled"},hitSpace:function(){if(this.autoplay)this.pause();else this.play()},play:function(a){if(this.btn){this.btn.play.style.display="none";this.btn.pause.style.display=""}this.autoplay=true;!a&&hs.next(this.exp.key)},pause:function(){if(this.btn){this.btn.pause.style.display="none";this.btn.play.style.display=""}clearTimeout(this.autoplay);this.autoplay=null},previous:function(){this.pause();hs.previous(this.btn.previous)},next:function(){this.pause();hs.next(this.btn.next)},move:function(){},"full-expand":function(){hs.getExpander().doFullExpand()},close:function(){hs.close(this.btn.close)}};document.readyState&&hs.ie&&(function(){try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,50);return}hs.domReady()})();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();
