var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); 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:"../highslide.com/default.htm",creditsTarget:"_self",enableKeyListener:true,openerTagNames:["a"],transitions:[],transitionDuration:250,dimmingOpacity:0,dimmingDuration:50,anchor:"auto",align:"auto",targetX:null,targetY:null,dragByHeading:true,minWidth:200,minHeight:200,allowSizeReduction:true,outlineType:"drop-shadow",skin:{controls:'
'},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,wrapperClassName,minWidth,minHeight,maxWidth,maxHeight,pageOrigin,slideshowGroup,easing,easingClose,fadeInOut,src".split(","),overlays:[],idCounter:0,oPos:{x:["leftpanel","left","center","right","rightpanel"],y:["above","top","middle","bottom","below"]},mouse:{},headingOverlay:{},captionOverlay:{},timers:[],slideshows:[],pendingOutlines:{},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,e){a=document.createElement(a);b&&hs.extend(a,b);e&&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)hs.ieLt9&&c=="opacity"?b[c]>0.99?a.style.removeAttribute("filter"):a.style.filter="alpha(opacity="+b[c]*100+")":a.style[c]=b[c]},animate:function(a,b,c){var d,e,f;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;e=parseFloat(b[g]);f=g!="opacity"?"px":"";i.custom(d,e,f)}},css:function(a,b){if(a.style[b])return a.style[b];else if(document.defaultView)return document.defaultView.getComputedStyle(a,null).getPropertyValue(b);else{b=="opacity"&&(b="filter");var c=a.currentStyle[b.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()})];b=="filter"&&(c=c.replace(/alpha\(opacity=([0-9]+)\)/,function(a,b){return b/100}));return c===""?1:c}},getPageSize:function(){var a=document,b=a.compatMode&&a.compatMode!="BackCompat"?a.documentElement:a.body;hs.page={width:hs.ieLt9?b.clientWidth:a.documentElement.clientWidth||self.innerWidth,height:hs.ieLt9?b.clientHeight:self.innerHeight,scrollLeft:hs.ieLt9?b.scrollLeft:window.pageXOffset,scrollTop:hs.ieLt9?b.scrollTop:window.pageYOffset};return hs.page},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,a!=document.body&&a!=document.documentElement&&(b.x-=a.scrollLeft,b.y-=a.scrollTop);return b},expand:function(a,b,c){a||(a=hs.createElement("a",null,{display:"none"},hs.container));if(typeof a.getParams=="function")return b;try{return new hs.Expander(a,b,c),false}catch(d){return true}},getElementByClass:function(a,b,c){a=a.getElementsByTagName(b);for(b=0;ba)a=d,b=e;b==-1?hs.focusKey=-1: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");return b?b:a.href},getNode:function(a){var b=hs.$(a),c=hs.clones[a];return!b&&!c?null:c?c.cloneNode(true):(c=b.cloneNode(true),c.id="",hs.clones[a]=c,b)},discardElement:function(a){a&&hs.garbageBin.appendChild(a);hs.garbageBin.innerHTML=""},dim:function(a){if(!hs.dimmer)b=true,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="";var b=hs.dimmer.owner=="";hs.dimmer.owner+="|"+a.key;b&&(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")))hs.geckoMac&&hs.dimmingGeckoFix?hs.dimmer.style.display="none":hs.animate(hs.dimmer,{opacity:0},hs.dimmingDuration,null,function(){hs.dimmer.style.display="none"})}},transit:function(a,b){var c=b||hs.getExpander(),b=c;if(hs.upcoming)return false;else hs.last=c;hs.removeEventListener(document,window.opera?"keypress":"keydown",hs.keyHandler);try{hs.upcoming=a,a.onclick()}catch(d){hs.last=hs.upcoming=null}try{(!a||b.transitions[1]!="crossfade")&&b.close()}catch(e){}return false},previousOrNext:function(a,b){var c=hs.getExpander(a);return c?hs.transit(c.getAdjacentAnchor(b),c):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:return b&&b.doFullExpand(),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){hs.removeEventListener(document,window.opera?"keypress":"keydown",hs.keyHandler);if(!hs.enableKeyListener)return true;a.preventDefault?a.preventDefault():a.returnValue=false;if(b)return c==0?b.close():c==2?b.slideshow&&b.slideshow.hitSpace():(b.slideshow&&b.slideshow.pause(),hs.previousOrNext(b.key,c)),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;if(b=b.className.match(/highslide-(image|move|resize)/))if(hs.dragArgs={exp:c,type:b[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=true}else if(a.type=="mouseup")if(hs.removeEventListener(document,"mousemove",hs.dragHandler),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();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;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 if(c.moveTo(b.left+b.dX,b.top+b.dY),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(!a.relatedTarget)a.relatedTarget=b?a.fromElement:a.toElement;var c=hs.getExpander(a.target);if(c.isExpanded&&c&&a.relatedTarget&&!(hs.getExpander(a.relatedTarget,true)==c||hs.dragArgs))for(a=0;a=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();var a=this.options.curAnim[this.prop]=true,c;for(c in this.options.curAnim)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{a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}catch(b){}}}});hs.Outline=function(a,b){this.onLoad=b;this.outlineType=a;var c;this.hasAlphaImageLoader=hs.ie&&hs.uaVersion<7;if(a){hs.init();this.table=hs.createElement("table",{cellSpacing:0},{visibility:"hidden",position:"absolute",borderCollapse:"collapse",width:0},hs.container,true);var d=hs.createElement("tbody",null,null,this.table,1);this.td=[];for(var e=0;e<=8;e++)e%3==0&&(c=hs.createElement("tr",null,{height:"auto"},d,true)),this.td[e]=hs.createElement("td",null,null,c,true),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.uaVersion<525?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 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],true);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,true)}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],true);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){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){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();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(RegExp(this.lt).test(a.anchor))this.justify=null;else if(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;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"):this.size=a;b.content.style[this.wh]=a+"px";b.wrapper.style[this.wh]=this.get("wsize")+"px";b.outline&&b.outline.setPosition();this.dim=="x"&&b.overlayBox&&b.sizeOverlayBox(true);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){var h;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.isImage=!this.isHtml;this.overlays=[];this.last=hs.last;hs.last=null;hs.init();for(var e=this.key=hs.expanders.length,f=0;ff.scroll+f.clientSize-f.marginMax)f.pos=f.scroll+f.clientSize-f.size-f.marginMin-f.marginMax-f.p1-f.p2;if(f.pos(this.x.imgSize||this.x.size))this.createFullExpand(),this.overlays.length==1&&this.sizeOverlayBox()}this.show()}}catch(i){this.error(i)}},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)){if(a.pos=hs.getPosition(hs.$(d))[e],c&&c[1]&&c[1].match(/^[-]?[0-9]+px$/)&&(a.pos+=parseInt(c[1])),a.sizea.scroll+a.clientSize-a.marginMax)if(!b&&c&&f)a.size=Math.min(a.size,a.get(e=="y"?"fitsize":"maxsize"));else if(a.get("wsize")a){e=f*a;if(ethis.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},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,e=a?this.last?this.last.a:null:hs.upcoming,d=d[1]&&e&&hs.getParam(e,"transitions")[1]==d[1]?d[1]:d[0];if(this[d]&&d!="expand")this[d](a,b);else{this.outline&&!this.outlineWhileAnimating&&(a?this.outline.setPosition():this.outline.destroy());a||this.destroyOverlays();var f=this,g=f.x,i=f.y,d=this.easing;a||(d=this.easingClose||d);e=a?function(){if(f.outline)f.outline.table.style.visibility="visible";setTimeout(function(){f.afterExpand()},50)}:function(){f.afterClose()};a&&hs.setStyles(this.wrapper,{width:g.t+"px",height:i.t+"px"});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(b,c){if(f.outline&&f.outlineWhileAnimating&&c.prop=="top"){var d=a?c.pos:1-c.pos,d={w:g.t+(g.get("wsize")-g.t)*d,h:i.t+(i.get("wsize")-i.t)*d,x:g.tpos+(g.pos-g.tpos)*d,y:i.tpos+(i.pos-i.tpos)*d};f.outline.setPosition(d,0,1)}}});hs.animate(this.content,b.content,c,d,e);if(a)this.wrapper.style.visibility="visible",this.content.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;for(var e=a||-1,f=this.outline.offset,g=a?3:f,i=a?f:3,j=g;e*j<=e*i;j+=e,d+=25)(function(){var b=a?i-j:g-j;setTimeout(function(){c.outline.setPosition(0,b,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,e=this.y,f=c.x,g=c.y,i=this.wrapper,j=this.content,l=this.overlayBox;hs.removeEventListener(document,"mousemove",hs.dragHandler);hs.setStyles(j,{width:(d.imgSize||d.size)+"px",height:(e.imgSize||e.size)+"px"});if(l)l.style.overflow="visible";if(this.outline=c.outline)this.outline.exp=b;c.outline=null;var p=hs.createElement("div",{className:"highslide-"+this.contentType},{position:"absolute",zIndex:4,overflow:"hidden",display:"none"}),a={oldImg:c,newImg:this},m;for(m in a)this[m]=a[m].content.cloneNode(1),hs.setStyles(this[m],{position:"absolute",border:0,visibility:"visible"}),p.appendChild(this[m]);i.appendChild(p);if(l)l.className="",i.appendChild(l);p.style.display="";c.content.style.display="none";if(hs.safari&&hs.uaVersion<525)this.wrapper.style.visibility="visible";hs.animate(i,{width:d.size},{duration:hs.transitionDuration,step:function(a,m){var k=m.pos,o=1-k,n,h={},q=["pos","size","p1","p2"],r;for(r in q)n=q[r],h["x"+n]=Math.round(o*f[n]+k*d[n]),h["y"+n]=Math.round(o*g[n]+k*e[n]),h.ximgSize=Math.round(o*(f.imgSize||f.size)+k*(d.imgSize||d.size)),h.ximgPad=Math.round(o*f.get("imgPad")+k*d.get("imgPad")),h.yimgSize=Math.round(o*(g.imgSize||g.size)+k*(e.imgSize||e.size)),h.yimgPad=Math.round(o*g.get("imgPad")+k*e.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*e.cb});c.wrapper.style.clip="rect("+(h.ypos-g.pos)+"px, "+(h.xsize+h.xp1+h.xp2+h.xpos+2*f.cb-f.pos)+"px, "+(h.ysize+h.yp1+h.yp2+h.ypos+2*g.cb-g.pos)+"px, "+(h.xpos-f.pos)+"px)";hs.setStyles(j,{top:h.yp1+e.get("imgPad")+"px",left:h.xp1+d.get("imgPad")+"px",marginTop:e.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*e.cb+"px"});hs.setStyles(p,{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:f.pos-h.xpos+f.p1-h.xp1+f.get("imgPad")-h.ximgPad+"px"});hs.setStyles(b.newImg,{opacity:k,top:e.pos-h.ypos+e.p1-h.yp1+e.get("imgPad")-h.yimgPad+"px",left:d.pos-h.xpos+d.p1-h.xp1+d.get("imgPad")-h.ximgPad+"px"});l&&hs.setStyles(l,{width:h.xsize+"px",height:h.ysize+"px",left:h.xp1+d.cb+"px",top:h.yp1+e.cb+"px"})},complete:function(){i.style.visibility=j.style.visibility="visible";j.style.display="block";hs.discardElement(p);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=e+"px";/^middle/.test(b)&&hs.setStyles(a,{top:"50%",marginTop:e-Math.round(a.offsetHeight/2)+"px"});if(/^bottom/.test(b))a.style.bottom=-e+"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();this.heading&&this.dragByHeading&&(this.heading.className+=" highslide-move");hs.showCredits&&this.writeCredits();for(var a=0;a