if(!hs){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 Highslide JS",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:"1:1",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:true,outlineWhileAnimating:2,outlineStartOffset:3,padToMinWidth:false,fullExpandPosition:"bottom right",fullExpandOpacity:1,showCredits:true,creditsHref:"http://highslide.com/",creditsTarget:"_self",enableKeyListener:true,openerTagNames:["a"],transitions:[],transitionDuration:250,dimmingOpacity:0,dimmingDuration:50,allowWidthReduction:false,allowHeightReduction:true,preserveContent:true,objectLoadTime:"before",anchor:"auto",align:"auto",targetX:null,targetY:null,dragByHeading:true,minWidth:200,minHeight:200,allowSizeReduction:true,outlineType:"drop-shadow",skin:{controls:'
',contentWrapper:''},expanders:[],overrides:["allowSizeReduction","useBox","anchor","align","targetX","targetY","outlineType","outlineWhileAnimating","captionId","captionText","captionEval","captionOverlay","headingId","headingText","headingEval","headingOverlay","creditsPosition","dragByHeading","autoplay","numberPosition","transitions","dimmingOpacity","width","height","contentId","allowWidthReduction","allowHeightReduction","preserveContent","maincontentId","maincontentText","maincontentEval","objectType","objectWidth","objectHeight","objectLoadTime","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:{},timers:[],slideshows:[],pendingOutlines:{},sleeping:[],clones:{},onReady:[],uaVersion:/Trident\/4\.0/.test(navigator.userAgent)?8:parseFloat((navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1]),ie:document.all&&!window.opera,safari:/Safari/.test(navigator.userAgent),geckoMac:/Macintosh.+rv:1\.[0-8].+Gecko/.test(navigator.userAgent),$:function(a){if(a)return document.getElementById(a)},push:function(a,b){a[a.length]=b},createElement:function(a,b,c,d,f){a=document.createElement(a);b&&hs.extend(a,b);f&&hs.setStyles(a,{padding:0,border:"none",margin:0});c&&hs.setStyles(a,c);d&&d.appendChild(a);return a},extend:function(a,b){for(var c in b)a[c]=b[c];return a},setStyles:function(a,b){for(var c in b)if(hs.ie&&c=="opacity")if(b[c]>0.99)a.style.removeAttribute("filter");else a.style.filter="alpha(opacity="+b[c]*100+")";else a.style[c]=b[c]},animate:function(a,b,c){var d,f,e;if(typeof c!="object"||c===null){d=arguments;c={duration:d[2],easing:d[3],complete:d[4]}}if(typeof c.duration!="number")c.duration=250;c.easing=Math[c.easing]||Math.easeInQuad;c.curAnim=hs.extend({},b);for(var g in b){var i=new hs.fx(a,c,g);d=parseFloat(hs.css(a,g))||0;f=parseFloat(b[g]);e=g!="opacity"?"px":"";i.custom(d,f,e)}},css:function(a,b){if(document.defaultView)return document.defaultView.getComputedStyle(a,null).getPropertyValue(b);else{if(b=="opacity")b="filter";a=a.currentStyle[b.replace(/\-(\w)/g,function(c,d){return d.toUpperCase()})];if(b=="filter")a=a.replace(/alpha\(opacity=([0-9]+)\)/,function(c,d){return d/100});return a===""?1:a}},getPageSize:function(){var a=document,b=a.compatMode&&a.compatMode!="BackCompat"?a.documentElement:a.body;hs.page={width:hs.ie?b.clientWidth:a.documentElement.clientWidth||self.innerWidth,height:hs.ie?b.clientHeight:self.innerHeight,scrollLeft:hs.ie?b.scrollLeft:pageXOffset,scrollTop:hs.ie?b.scrollTop:pageYOffset}},getPosition:function(a){for(var b={x:a.offsetLeft,y:a.offsetTop};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(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 f=0;fa){a=d;b=f}if(b==-1)hs.focusKey=-1;else c[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;if(c)return c.cloneNode(true);else{c=b.cloneNode(true);c.id="";hs.clones[a]=c;return b}},discardElement:function(a){a&&hs.garbageBin.appendChild(a);hs.garbageBin.innerHTML=""},dim:function(a){if(!hs.dimmer)hs.dimmer=hs.createElement("div",{className:"highslide-dimming highslide-viewport-size",owner:"",onclick:function(){hs.close()}},{visibility:"visible",opacity:0},hs.container,true);hs.dimmer.style.display="";hs.dimmer.owner+="|"+a.key;hs.geckoMac&&hs.dimmingGeckoFix?hs.setStyles(hs.dimmer,{background:"url("+hs.graphicsDir+"geckodimmer.png)",opacity:1}):hs.animate(hs.dimmer,{opacity:a.dimmingOpacity},hs.dimmingDuration)},undim:function(a){if(hs.dimmer){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")))if(hs.geckoMac&&hs.dimmingGeckoFix)hs.dimmer.style.display="none";else hs.animate(hs.dimmer,{opacity:0},hs.dimmingDuration,null,function(){hs.dimmer.style.display="none"})}},transit:function(a,b){var c=b=b||hs.getExpander();if(hs.upcoming)return false;else hs.last=c;try{hs.upcoming=a;a.onclick()}catch(d){hs.last=hs.upcoming=null}try{if(!a||b.transitions[1]!="crossfade")b.close()}catch(f){}return false},previousOrNext:function(a,b){return(a=hs.getExpander(a))?hs.transit(a.getAdjacentAnchor(b),a):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;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){if(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,hs.extend(a,{hsId:"hsId"+hs.idCounter++}))},addSlideshow:function(a){var b=a.slideshowGroup;if(typeof b=="object")for(var c=0;c1)return true;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 true;if(c&&a.type=="mousedown"){if(a.target.form)return true;var d=b.className.match(/highslide-(image|move|resize)/);if(d){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();if(/highslide-(image|html)-blur/.test(c.content.className)){c.focus();hs.hasFocused=true}return false}else/highslide-html/.test(b.className)&&hs.focusKey!=c.key&&c.focus()}else if(a.type=="mouseup"){hs.removeEventListener(document,"mousemove",hs.dragHandler);if(hs.dragArgs){if(hs.styleRestoreCursor&&hs.dragArgs.type=="image")hs.dragArgs.exp.content.style.cursor=hs.styleRestoreCursor;!hs.dragArgs.hasDragged&&!hs.hasFocused&&!/(move|resize)/.test(hs.dragArgs.type)&&c.close();if(hs.dragArgs.exp.releaseMask)hs.dragArgs.exp.releaseMask.style.display="none";hs.hasFocused=false;hs.dragArgs=null}else if(/highslide-image-blur/.test(b.className))b.style.cursor=hs.styleRestoreCursor}return false},dragHandler:function(a){if(!hs.dragArgs)return true;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,true);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(b.type=="resize")c.resize(b);else{c.moveTo(b.left+b.dX,b.top+b.dY);if(b.type=="image")c.content.style.cursor="move"}return false},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)if(!(!c||!a.relatedTarget||hs.getExpander(a.relatedTarget,true)==c||hs.dragArgs))for(var d=0;d=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();a=this.options.curAnim[this.prop]=true;for(var c in this.options.curAnim)if(this.options.curAnim[c]!==true)a=false;a&&this.options.complete&&this.options.complete.call(this.elem);return false}else{c=b-this.startTime;this.state=c/this.options.duration;this.pos=this.options.easing(c,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};hs.extend(hs.fx,{step:{opacity:function(a){hs.setStyles(a.elem,{opacity:a.now})},_default:function(a){try{if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=a.now+a.unit;else a.elem[a.prop]=a.now}catch(b){}}}});hs.Outline=function(a,b){this.onLoad=b;this.outlineType=a;var c=hs.uaVersion,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,true);b=hs.createElement("tbody",null,null,this.table,1);this.td=[];for(c=0;c<=8;c++){if(c%3==0)d=hs.createElement("tr",null,{height:"auto"},b,true);this.td[c]=hs.createElement("td",null,null,d,true);hs.setStyles(this.td[c],c!=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,true);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 f=d==1||d==7?"100%":this.graphic.width+"px",e=hs.createElement("div",null,{width:"100%",height:"100%",position:"relative",overflow:"hidden"},this.td[d],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:b[d][0]*a+"px",top:b[d][1]*a+"px"},e,true)}else hs.setStyles(this.td[d],{background:"url("+this.graphic.src+") "+b[d][0]*a+"px "+b[d][1]*a+"px"});if(window.opera&&(d==3||d==5))hs.createElement("div",null,c,this.td[d],true);hs.setStyles(this.td[d],c)}this.graphic=null;hs.pendingOutlines[this.outlineType]&&hs.pendingOutlines[this.outlineType].destroy();hs.pendingOutlines[this.outlineType]=this;this.onLoad&&this.onLoad()},setPosition:function(a,b,c){var d=this.exp;b=b||0;a=a||{x:d.x.pos+b,y:d.y.pos+b,w:d.x.get("wsize")-2*b,h:d.y.get("wsize")-2*b};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*this.offset+"px"});a.w-=2*this.offset;a.h-=2*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(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();this.p1=this.p2=0};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"maxsize":return this.get("fitsize")-2*this.cb-this.p1-this.p2;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]},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;if(this.tpos==0||this.tpos==-1)this.tpos=hs.page[this.wh]/2+hs.page["scroll"+this.uclt]},calcExpanded:function(){var a=this.exp;this.justify="auto";if(a.align=="center")this.justify="center";else if((new RegExp(this.lt)).test(a.anchor))this.justify=null;else if((new RegExp(this.rb)).test(a.anchor))this.justify="max";this.pos=this.tpos-this.cb+this.tb;if(this.maxHeight&&this.dim=="x")a.maxWidth=Math.min(a.maxWidth||this.full,a.maxHeight*this.full/a.y.full);this.size=Math.min(this.full,a["max"+this.ucwh]||this.full);this.minSize=a.allowSizeReduction?Math.min(a["min"+this.ucwh],this.full):this.full;if(a.isImage&&a.useBox){this.size=a[this.wh];this.imgSize=this.full}if(this.dim=="x"&&hs.padToMinWidth)this.minSize=a.minWidth;this.target=a["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){var b=this.exp;if(b.isImage&&(b.useBox||hs.padToMinWidth)){this.imgSize=a;this.size=Math.max(this.size,this.imgSize);b.content.style[this.lt]=this.get("imgPad")+"px"}else this.size=a;b.content.style[this.wh]=a+"px";b.wrapper.style[this.wh]=this.get("wsize")+"px";b.outline&&b.outline.setPosition();if(b.releaseMask)b.releaseMask.style[this.wh]=a+"px";if(this.dim=="y"&&b.iDoc&&b.body.style.height!="auto")try{b.iDoc.body.style.overflow="auto"}catch(c){}if(b.isHtml){var d=b.scrollerDiv;if(this.sizeDiff===undefined)this.sizeDiff=b.innerContent["offset"+this.ucwh]-d["offset"+this.ucwh];d.style[this.wh]=this.size-this.sizeDiff+"px";if(this.dim=="x")b.mediumContent.style.width="auto";if(b.body)b.body.style[this.wh]="auto"}this.dim=="x"&&b.overlayBox&&b.sizeOverlayBox(true);if(this.dim=="x"&&b.slideshow&&b.isImage)a==this.full?b.slideshow.disable("full-expand"):b.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()}};hs.Expander=function(a,b,c,d){if(document.readyState&&hs.ie&&!hs.isReady)hs.addEventListener(document,"ready",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;this.overlays=[];this.last=hs.last;hs.last=null;hs.init();for(var f=this.key=hs.expanders.length,e=0;ee.scroll+e.clientSize-e.marginMax)e.pos=e.scroll+e.clientSize-e.size-e.marginMin-e.marginMax-e.p1-e.p2;if(e.pos(this.x.imgSize||this.x.size)){this.createFullExpand();this.overlays.length==1&&this.sizeOverlayBox()}}this.show()}}}catch(i){this.error(i)}},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;a=this.innerContent.offsetHeight-this.body.offsetHeight;a=this.objectHeight||hs.page.height-a-hs.marginTop-hs.marginBottom;var b=this.objectLoadTime=="before"?' onload="if (hs.expanders['+this.key+"]) hs.expanders["+this.key+'].contentLoaded()" ':"";this.body.innerHTML+='';this.ruler=this.body.getElementsByTagName("div")[0];this.iframe=this.body.getElementsByTagName("iframe")[0];this.objectLoadTime=="after"&&this.correctIframeSize()}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 a;try{var b=this.iDoc=this.iframe.contentDocument||this.iframe.contentWindow.document,c=b.createElement("div");c.style.clear="both";b.body.appendChild(c);a=c.offsetTop;if(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;hs.discardElement(this.ruler);if(a<0)a=0;var b=this.innerContent.offsetHeight-this.iframe.offsetHeight;if(this.iDoc&&!this.objectHeight&&!this.height&&this.y.size==this.y.full)try{this.iDoc.body.style.overflow="hidden"}catch(c){}hs.setStyles(this.iframe,{width:Math.abs(this.x.size-a)+"px",height:Math.abs(this.y.size-b)+"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);if(this.x.sizea.offsetHeight)a.style.width=parseInt(a.style.width)+f+"px";this.scrollerDiv=this.scrollingContent=a}this.iframe&&this.objectLoadTime=="before"&&this.correctIframeSize();if(!this.scrollingContent&&this.y.sizethis.scrollerDiv.parentNode.offsetHeight&&setTimeout("try { hs.expanders["+this.key+"].scrollerDiv.style.overflow = 'auto'; } catch(e) {}",hs.expandDuration)},justify:function(a,b){var c,d=a.target,f=a==this.x?"x":"y";if(d&&d.match(/ /)){c=d.split(" ");d=c[0]}if(d&&hs.$(d)){a.pos=hs.getPosition(hs.$(d))[f];if(c&&c[1]&&c[1].match(/^[-]?[0-9]+px$/))a.pos+=parseInt(c[1]);if(a.sizea.scroll+a.clientSize-a.marginMax)if(!b&&c&&e)a.size=Math.min(a.size,a.get(f=="y"?"fitsize":"maxsize"));else if(a.get("wsize")a){f=e*a;if(fthis.minHeight&&c.size>this.minWidth&&d.get("wsize")>d.get("fitsize");){d.size-=10;if(a)c.size=d.size*a;this.sizeOverlayBox(0,1);b=true}return b},reflow:function(){if(this.scrollerDiv){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(){var a=this.x,b=this.y;this.changeSize(1,{wrapper:{width:a.get("wsize"),height:b.get("wsize"),left:a.pos,top:b.pos},content:{left:a.p1+a.get("imgPad"),top:b.p1+b.get("imgPad"),width:a.imgSize||a.size,height:b.imgSize||b.size}},hs.expandDuration)},changeSize:function(a,b,c){var d=this.transitions,f=a?this.last?this.last.a:null:hs.upcoming;d=d[1]&&f&&hs.getParam(f,"transitions")[1]==d[1]?d[1]:d[0];if(this[d]&&d!="expand")this[d](a,b);else{if(this.outline&&!this.outlineWhileAnimating)a?this.outline.setPosition():this.outline.destroy(this.isHtml&&this.preserveContent);a||this.destroyOverlays();var e=this,g=e.x,i=e.y;d=this.easing;a||(d=this.easingClose||d);f=a?function(){if(e.outline)e.outline.table.style.visibility="visible";setTimeout(function(){e.afterExpand()},50)}:function(){e.afterClose()};a&&hs.setStyles(this.wrapper,{width:g.t+"px",height:i.t+"px"});a&&this.isHtml&&hs.setStyles(this.wrapper,{left:g.tpos-g.cb+g.tb+"px",top:i.tpos-i.cb+i.tb+"px"});if(this.fadeInOut){hs.setStyles(this.wrapper,{opacity:a?0:1});hs.extend(b.wrapper,{opacity:a})}hs.animate(this.wrapper,b.wrapper,{duration:c,easing:d,step:function(l,j){if(e.outline&&e.outlineWhileAnimating&&j.prop=="top"){var k=a?j.pos:1-j.pos;k={w:g.t+(g.get("wsize")-g.t)*k,h:i.t+(i.get("wsize")-i.t)*k,x:g.tpos+(g.pos-g.tpos)*k,y:i.tpos+(i.pos-i.tpos)*k};e.outline.setPosition(k,0,1)}if(e.isHtml){if(j.prop=="left")e.mediumContent.style.left=g.pos-l+"px";if(j.prop=="top")e.mediumContent.style.top=i.pos-l+"px"}}});hs.animate(this.content,b.content,c,d,f);if(a){this.wrapper.style.visibility="visible";this.content.style.visibility="visible";if(this.isHtml)this.innerContent.style.visibility="visible";this.a.className+=" highslide-active-anchor"}}},fade:function(a,b){this.outlineWhileAnimating=false;var c=this,d=a?hs.expandDuration:0;if(a){hs.animate(this.wrapper,b.wrapper,0);hs.setStyles(this.wrapper,{opacity:0,visibility:"visible"});hs.animate(this.content,b.content,0);this.content.style.visibility="visible";hs.animate(this.wrapper,{opacity:1},d,null,function(){c.afterExpand()})}if(this.outline){this.outline.table.style.zIndex=this.wrapper.style.zIndex;b=a||-1;for(var f=this.outline.offset,e=a?3:f,g=a?f:3,i=e;b*i<=b*g;i+=b,d+=25)(function(){var l=a?g-i:e-i;setTimeout(function(){c.outline.setPosition(0,l,1)},d)})()}a||setTimeout(function(){c.outline&&c.outline.destroy(c.preserveContent);c.destroyOverlays();hs.animate(c.wrapper,{opacity:0},hs.restoreDuration,null,function(){c.afterClose()})},d)},crossfade:function(a){if(a){var b=this,c=this.last,d=this.x,f=this.y,e=c.x,g=c.y,i=this.wrapper,l=this.content,j=this.overlayBox;hs.removeEventListener(document,"mousemove",hs.dragHandler);hs.setStyles(l,{width:(d.imgSize||d.size)+"px",height:(f.imgSize||f.size)+"px"});if(j)j.style.overflow="visible";if(this.outline=c.outline)this.outline.exp=b;c.outline=null;var k=hs.createElement("div",{className:"highslide-image"},{position:"absolute",zIndex:4,overflow:"hidden",display:"none"});a={oldImg:c,newImg:this};for(var p in a){this[p]=a[p].content.cloneNode(1);hs.setStyles(this[p],{position:"absolute",border:0,visibility:"visible"});k.appendChild(this[p])}i.appendChild(k);this.isHtml&&hs.setStyles(this.mediumContent,{left:0,top:0});if(j){j.className="";i.appendChild(j)}k.style.display="";c.content.style.display="none";if(hs.safari)if((p=navigator.userAgent.match(/Safari\/([0-9]{3})/))&&parseInt(p[1])<525)this.wrapper.style.visibility="visible";hs.animate(i,{width:d.size},{duration:hs.transitionDuration,step:function(m,n){m=n.pos;n=1-m;var o,h={},q=["pos","size","p1","p2"];for(var r in q){o=q[r];h["x"+o]=Math.round(n*e[o]+m*d[o]);h["y"+o]=Math.round(n*g[o]+m*f[o]);h.ximgSize=Math.round(n*(e.imgSize||e.size)+m*(d.imgSize||d.size));h.ximgPad=Math.round(n*e.get("imgPad")+m*d.get("imgPad"));h.yimgSize=Math.round(n*(g.imgSize||g.size)+m*(f.imgSize||f.size));h.yimgPad=Math.round(n*g.get("imgPad")+m*f.get("imgPad"))}b.outline&&b.outline.setPosition({x:h.xpos,y:h.ypos,w:h.xsize+h.xp1+h.xp2+2*d.cb,h:h.ysize+h.yp1+h.yp2+2*f.cb});c.wrapper.style.clip="rect("+(h.ypos-g.pos)+"px, "+(h.xsize+h.xp1+h.xp2+h.xpos+2*e.cb-e.pos)+"px, "+(h.ysize+h.yp1+h.yp2+h.ypos+2*g.cb-g.pos)+"px, "+(h.xpos-e.pos)+"px)";hs.setStyles(l,{top:h.yp1+f.get("imgPad")+"px",left:h.xp1+d.get("imgPad")+"px",marginTop:f.pos-h.ypos+"px",marginLeft:d.pos-h.xpos+"px"});hs.setStyles(i,{top:h.ypos+"px",left:h.xpos+"px",width:h.xp1+h.xp2+h.xsize+2*d.cb+"px",height:h.yp1+h.yp2+h.ysize+2*f.cb+"px"});hs.setStyles(k,{width:(h.ximgSize||h.xsize)+"px",height:(h.yimgSize||h.ysize)+"px",left:h.xp1+h.ximgPad+"px",top:h.yp1+h.yimgPad+"px",visibility:"visible"});hs.setStyles(b.oldImg,{top:g.pos-h.ypos+g.p1-h.yp1+g.get("imgPad")-h.yimgPad+"px",left:e.pos-h.xpos+e.p1-h.xp1+e.get("imgPad")-h.ximgPad+"px"});hs.setStyles(b.newImg,{opacity:m,top:f.pos-h.ypos+f.p1-h.yp1+f.get("imgPad")-h.yimgPad+"px",left:d.pos-h.xpos+d.p1-h.xp1+d.get("imgPad")-h.ximgPad+"px"});j&&hs.setStyles(j,{width:h.xsize+"px",height:h.ysize+"px",left:h.xp1+d.cb+"px",top:h.yp1+f.cb+"px"})},complete:function(){i.style.visibility=l.style.visibility="visible";l.style.display="block";k.style.display="none";b.a.className+=" highslide-active-anchor";b.afterExpand();c.afterClose();b.last=null}})}},reuseOverlay:function(a){if(!this.last)return false;for(var b=0;b'+hs.lang.number.replace("%1",this.getAnchorIndex()+1).replace("%2",a.length)+""+this[this.numberPosition].innerHTML}},initSlideshow:function(){if(this.last)this.slideshow=this.last.slideshow;else for(var a=0;aa.parentNode.offsetWidth)a.style.width="100%"}else a.parentNode!=this.overlayBox&&this.overlayBox.appendChild(a);if(/left$/.test(b))a.style.left=d+"px";/center$/.test(b)&&hs.setStyles(a,{left:"50%",marginLeft:d-Math.round(a.offsetWidth/2)+"px"});if(/right$/.test(b))a.style.right=-d+"px";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}d=a.parentNode.offsetHeight;a.style.height="auto";if(c&&a.offsetHeight>d)a.style.height=hs.ieLt7?d+"px":"100%";if(/^top/.test(b))a.style.top=f+"px";/^middle/.test(b)&&hs.setStyles(a,{top:"50%",marginTop:f-Math.round(a.offsetHeight/2)+"px"});if(/^bottom/.test(b))a.style.bottom=-f+"px";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();if(this.heading&&this.dragByHeading)this.heading.className+=" highslide-move";hs.showCredits&&this.writeCredits();for(var a=0;a