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