var hs={lang:{cssDirection:"ltr",loadingText:"\ub85c\ub529...",loadingTitle:"\ucde8\uc18c\ud558\ub824\uba74 \ud074\ub9ad\ud558\uc138\uc694.",focusTitle:"\uc55e\uc73c\ub85c \uc774\ub3d9\ud558\ub824\uba74 \ud074\ub9ad\ud558\uc138\uc694.",fullExpandTitle:"\uc6d0\ubcf8 \ubcf4\uae30[F\ud0a4]",creditsText:"",creditsTitle:"Panfocus.com",previousText:"\uc774\uc804",nextText:"\ub2e4\uc74c",moveText:"\uc774\ub3d9",closeText:"\ub2eb\uae30",closeTitle:"\ub05d\ub0b4\uae30(esc)",resizeTitle:"\ub9ac\uc0ac\uc774\uc988",
playText:"\uc2e4\ud589",playTitle:"\uc2ac\ub77c\uc774\ub4dc\uc1fc(spacebar)",pauseText:"\uc77c\uc2dc\uc815\uc9c0",pauseTitle:"\uc77c\uc2dc\uc815\uc9c0(spacebar)",previousTitle:"\uc774\uc804(\u2190\ud0a4)",nextTitle:"\ub2e4\uc74c(\u2192\ud0a4)",moveTitle:"\uc774\ub3d9",fullExpandText:"1:1",number:"Image %1 of %2",restoreTitle:"\uc774\ubbf8\uc9c0\ub97c \ub2eb\uc73c\ub824\uba74 \ud074\ub9ad\ud558\uc138\uc694, \ud654\uba74 \uc774\ub3d9\uc740 \ud074\ub9ad & \ub4dc\ub798\uadf8. \uc774\uc804,\ub2e4\uc74c \uc774\ubbf8\uc9c0\ubcf4\uae30\ub294 \u2190 \u2192 \ud0a4 \uc0ac\uc6a9."},
graphicsDir:"./addons/highslide-xe/graphics/",expandCursor:"",restoreCursor:"",expandDuration:250,restoreDuration:250,marginLeft:15,marginRight:15,marginTop:15,marginBottom:15,zIndexCounter:1001,loadingOpacity:0.75,allowMultipleInstances:true,numberOfImagesToPreload:5,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,anchor:"auto",align:"auto",targetX:null,targetY:null,dragByHeading:true,minWidth:200,minHeight:200,allowSizeReduction:true,outlineType:"drop-shadow",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>'},
preloadTheseImages:[],continuePreloading:true,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","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:{},clones:{},onReady:[],uaVersion: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 h=new hs.fx(a,c,g);d=parseFloat(hs.css(a,g))||0;f=parseFloat(b[g]);e=g!="opacity"?"px":"";h.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";var c=a.currentStyle[b.replace(/\-(\w)/g,function(d,f){return f.toUpperCase()})];if(b=="filter")c=c.replace(/alpha\(opacity=([0-9]+)\)/,function(d,f){return f/100});return c===""?1:c}},getPageSize:function(){var a=document,b=window,c=a.compatMode&&a.compatMode!="BackCompat"?a.documentElement:a.body,d=a.body,f=b.innerWidth&&b.scrollMaxX?b.innerWidth+b.scrollMaxX:Math.max(d.scrollWidth,d.offsetWidth);b=b.innerHeight&&window.scrollMaxY?b.innerHeight+b.scrollMaxY:Math.max(d.scrollHeight,d.offsetHeight);
d=hs.ie?c.scrollWidth:a.documentElement.clientWidth||self.innerWidth;var e=hs.ie?Math.max(c.scrollHeight,c.clientHeight):a.documentElement.clientHeight||self.innerHeight;a=hs.ie?c.clientWidth:a.documentElement.clientWidth||self.innerWidth;var g=hs.ie?c.clientHeight:self.innerHeight;hs.page={pageWidth:Math.max(d,f),pageHeight:Math.max(e,b),width:a,height:g,scrollLeft:hs.ie?c.scrollLeft:pageXOffset,scrollTop:hs.ie?c.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){a||(a=hs.createElement("a",null,{display:"none"},hs.container));if(typeof a.getParams=="function")return b;try{new hs.Expander(a,b,c);return false}catch(d){return true}},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){a=
a.replace(/\s/g," ");var b=/{hs\.lang\.([^}]+)\}/g,c=a.match(b),d;if(c)for(var f=0;f<c.length;f++){d=c[f].replace(b,"$1");if(typeof hs.lang[d]!="undefined")a=a.replace(c[f],hs.lang[d])}return a},focusTopmost:function(){for(var a=0,b=-1,c=hs.expanders,d,f=0;f<c.length;f++)if(d=c[f])if((d=d.wrapper.style.zIndex)&&d>a){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",owner:"",onclick:function(){hs.close()}},
{position:"absolute",visibility:"visible",left:0,opacity:0},hs.container,true);hs.addEventListener(window,"resize",hs.setDimmerSize)}hs.dimmer.style.display="";hs.setDimmerSize();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,"");
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.animate(hs.dimmer,{opacity:0},hs.dimmingDuration,null,function(){hs.setStyles(hs.dimmer,{display:"none",width:0,height:0})}))}},setDimmerSize:function(a){hs.getPageSize();if(hs.dimmer){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:hs.page.pageWidth+"px",height:Math.max(hs.page.pageHeight,a)+"px"})}},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){var c=hs.getExpander(a);if(c){adj=c.getAdjacentAnchor(b);return hs.transit(adj,c)}else return false},previous:function(a){return hs.previousOrNext(a,-1)},next:function(a){return hs.previousOrNext(a,
1)},keyHandler:function(a){if(!a)a=window.event;if(!a.target)a.target=a.srcElement;if(typeof a.target.form!="undefined")return true;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;c<b.length;c++){var d={};for(var f in a)d[f]=a[f];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.hsKey!==undefined)return c.hsKey;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 f=hs.expanders[d];if(f&&f.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;if(typeof a=="string")a=hs.$(a);
return hs.expanders[hs.getWrapperKey(a,b)]||null},isHsAnchor:function(a){return a.onclick&&a.onclick.toString().replace(/\s/g," ").match(/hs.(htmlE|e)xpand/)},reOrder:function(){for(var a=0;a<hs.expanders.length;a++)hs.expanders[a]&&hs.expanders[a].isExpanded&&hs.focusTopmost()},mouseClickHandler:function(a){if(!a)a=window.event;if(a.button>1)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)/)){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();if(/highslide-(image|html)-blur/.test(c.content.className)){c.focus();hs.hasFocused=true}return false}}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;a=hs.dragArgs.hasDragged;if(!a&&!hs.hasFocused&&!/(move|resize)/.test(hs.dragArgs.type))c.close();else if(a||!a&&hs.hasHtmlExpanders)hs.dragArgs.exp.doShowHide("hidden");a&&hs.setDimmerSize(c);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{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<c.overlays.length;d++)(function(){var e=hs.$("hsId"+c.overlays[d]);if(e&&e.hideOnMouseOut){b&&hs.setStyles(e,{visibility:"visible",display:""});hs.animate(e,{opacity:b?e.opacity:0},e.dur)}})()}catch(f){}},addEventListener:function(a,b,c){a==
document&&b=="ready"&&hs.push(hs.onReady,c);try{a.addEventListener(b,c,false)}catch(d){try{a.detachEvent("on"+b,c);a.attachEvent("on"+b,c)}catch(f){a["on"+b]=c}}},removeEventListener:function(a,b,c){try{a.removeEventListener(b,c,false)}catch(d){try{a.detachEvent("on"+b,c)}catch(f){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;a=hs.getAnchors();for(var b=0;b<a.images.length&&b<hs.numberOfImagesToPreload;b++)hs.push(hs.preloadTheseImages,hs.getSrc(a.images[b]));if(hs.outlineType)new hs.Outline(hs.outlineType,function(){hs.preloadFullImage(0)});else hs.preloadFullImage(0);hs.restoreCursor&&hs.createElement("img",{src:hs.graphicsDir+hs.restoreCursor})},init:function(){if(!hs.container){hs.getPageSize();hs.ieLt7=
hs.ie&&hs.uaVersion<7;for(var a in hs.langDefaults)if(typeof hs[a]!="undefined")hs.lang[a]=hs[a];else if(typeof hs.lang[a]=="undefined"&&typeof hs.langDefaults[a]!="undefined")hs.lang[a]=hs.langDefaults[a];hs.container=hs.createElement("div",{className:"highslide-container"},{position:"absolute",left:0,top:0,width:"100%",zIndex:hs.zIndexCounter,direction:"ltr"},document.body,true);hs.loading=hs.createElement("a",{className:"highslide-loading",title:hs.lang.loadingTitle,innerHTML:hs.lang.loadingText,
href:"javascript:;"},{position:"absolute",top:"-9999px",opacity:hs.loadingOpacity,zIndex:1},hs.container);hs.garbageBin=hs.createElement("div",null,{display:"none"},hs.container);hs.viewport=hs.createElement("div",{className:"highslide-viewport"},{visibility:hs.safari&&hs.uaVersion<525?"visible":"hidden"},hs.container,1);Math.linearTween=function(b,c,d,f){return d*b/f+c};Math.easeInQuad=function(b,c,d,f){return d*(b/=f)*b+c};Math.easeOutQuad=function(b,c,d,f){return-d*(b/=f)*(b-2)+c};hs.hideSelects=
hs.ieLt7;hs.hideIframes=window.opera&&hs.uaVersion<9||navigator.vendor=="KDE"||hs.ie&&hs.uaVersion<5.5}},ready:function(){if(!hs.isReady){hs.isReady=true;for(var a=0;a<hs.onReady.length;a++)hs.onReady[a]()}},updateAnchors:function(){for(var a,b,c=[],d=[],f={},e,g=0;g<hs.openerTagNames.length;g++){b=document.getElementsByTagName(hs.openerTagNames[g]);for(var h=0;h<b.length;h++){a=b[h];if(e=hs.isHsAnchor(a)){hs.push(c,a);e[0]=="hs.expand"&&hs.push(d,a);e=hs.getParam(a,"slideshowGroup")||"none";f[e]||
(f[e]=[]);hs.push(f[e],a)}}}hs.anchors={all:c,groups:f,images:d};return hs.anchors},getAnchors:function(){return hs.anchors||hs.updateAnchors()},close:function(a){(a=hs.getExpander(a))&&a.close();return false}};hs.fx=function(a,b,c){this.options=b;this.elem=a;this.prop=c;if(!b.orig)b.orig={}};
hs.fx.prototype={update:function(){(hs.fx.step[this.prop]||hs.fx.step._default)(this);this.options.step&&this.options.step.call(this.elem,this.now,this)},custom:function(a,b,c){function d(e){return f.step(e)}this.startTime=(new Date).getTime();this.start=a;this.end=b;this.unit=c;this.now=this.start;this.pos=this.state=0;var f=this;d.elem=this.elem;if(d()&&hs.timers.push(d)==1)hs.timerId=setInterval(function(){for(var e=hs.timers,g=0;g<e.length;g++)e[g]()||e.splice(g--,1);e.length||clearInterval(hs.timerId)},
13)},step:function(a){var b=(new Date).getTime();if(a||b>=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){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}}});
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);c=hs.createElement("tbody",null,null,this.table,1);this.td=[];for(var f=0;f<=8;f++){if(f%3==0)d=hs.createElement("tr",null,{height:"auto"},c,true);this.td[f]=hs.createElement("td",null,null,d,true);hs.setStyles(this.td[f],
f!=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<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;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();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.isImage=!this.isHtml;hs.continuePreloading=false;this.overlays=[];this.last=hs.last;hs.last=null;hs.init();for(var f=this.key=hs.expanders.length,e=0;e<hs.overrides.length;e++){var g=hs.overrides[e];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;g=this.thumb=g.getElementsByTagName("img")[0]||g;this.thumbsUserSetId=g.id||a.id;for(e=0;e<hs.expanders.length;e++)if(hs.expanders[e]&&hs.expanders[e].a==a&&!(this.last&&this.transitions[1]=="crossfade")){hs.expanders[e].focus();return false}if(!hs.allowSimultaneousLoading)for(e=0;e<hs.expanders.length;e++)hs.expanders[e]&&hs.expanders[e].thumb!=g&&!hs.expanders[e].onLoadStarted&&hs.expanders[e].cancelLoading();hs.expanders[f]=this;if(!hs.allowMultipleInstances&&!hs.upcoming){hs.expanders[f-
1]&&hs.expanders[f-1].close();typeof hs.focusKey!="undefined"&&hs.expanders[hs.focusKey]&&hs.expanders[hs.focusKey].close()}this.el=g;this.tpos=hs.getPosition(g);hs.getPageSize();(this.x=new hs.Dimension(this,"x")).calcThumb();(this.y=new hs.Dimension(this,"y")).calcThumb();this.wrapper=hs.createElement("div",{id:"highslide-wrapper-"+this.key,className:"highslide-wrapper "+this.wrapperClassName},{visibility:"hidden",position:"absolute",zIndex:hs.zIndexCounter+=2},null,true);this.wrapper.onmouseover=
this.wrapper.onmouseout=hs.wrapperMouseHandler;if(this.contentType=="image"&&this.outlineWhileAnimating==2)this.outlineWhileAnimating=0;if(!this.outlineType||this.last&&this.isImage&&this.transitions[1]=="crossfade")this[this.contentType+"Create"]();else if(hs.pendingOutlines[this.outlineType]){this.connectOutline();this[this.contentType+"Create"]()}else{this.showLoading();var h=this;new hs.Outline(this.outlineType,function(){h.connectOutline();h[h.contentType+"Create"]()})}return true}};
hs.Expander.prototype={error:function(){window.location.href=this.src},connectOutline:function(){var a=this.outline=hs.pendingOutlines[this.outlineType];a.exp=this;a.table.style.zIndex=this.wrapper.style.zIndex-1;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()};a=this;var 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 false};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()},contentLoaded:function(){try{if(this.content){this.content.onload=null;if(!this.onLoadStarted){this.onLoadStarted=true;var a=this.x,b=this.y;if(this.loading){hs.setStyles(this.loading,{top:"-9999px"});this.loading=null}a.full=this.content.width;b.full=this.content.height;hs.setStyles(this.content,
{width:a.t+"px",height:b.t+"px"});this.wrapper.appendChild(this.content);hs.container.appendChild(this.wrapper);a.calcBorders();b.calcBorders();hs.setStyles(this.wrapper,{left:a.tpos+a.tb-a.cb+"px",top:b.tpos+a.tb-b.cb+"px"});this.initSlideshow();this.getOverlays();var c=a.full/b.full;a.calcExpanded();this.justify(a);b.calcExpanded();this.justify(b);this.overlayBox&&this.sizeOverlayBox(0,1);if(this.allowSizeReduction){this.correctRatio(c);var d=this.slideshow;if(d&&this.last&&d.controls&&d.fixedControls){var f=
d.overlayOptions.position||"",e;for(var g in hs.oPos)for(a=0;a<5;a++){e=this[g];if(f.match(hs.oPos[g][a])){e.pos=this.last[g].pos+(this.last[g].p1-e.p1)+(this.last[g].size-e.size)*[0,0,0.5,1,1][a];if(d.fixedControls=="fit"){if(e.pos+e.size+e.p1+e.p2>e.scroll+e.clientSize-e.marginMax)e.pos=e.scroll+e.clientSize-e.size-e.marginMin-e.marginMax-e.p1-e.p2;if(e.pos<e.scroll+e.marginMin)e.pos=e.scroll+e.marginMin}}}}if(this.isImage&&this.x.full>(this.x.imgSize||this.x.size)){this.createFullExpand();this.overlays.length==
1&&this.sizeOverlayBox()}}this.show()}}}catch(h){this.error(h)}},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.size<a.minSize)a.size=a.minSize}else if(a.justify=="auto"||a.justify=="center"){c=false;var e=a.exp.allowSizeReduction;a.pos=a.justify=="center"?Math.round(a.scroll+(a.clientSize+a.marginMin-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=true}if(!b&&a.size<a.minSize){a.size=a.minSize;e=false}if(a.pos+a.get("wsize")>a.scroll+a.clientSize-a.marginMax)if(!b&&c&&e)a.size=a.get(f=="y"?"fitsize":"maxsize");else if(a.get("wsize")<a.get("fitsize"))a.pos=a.scroll+a.clientSize-a.marginMax-a.get("wsize");else{a.pos=a.scroll+a.marginMin;if(!b&&e)a.size=a.get(f=="y"?"fitsize":"maxsize")}if(!b&&a.size<a.minSize){a.size=a.minSize;e=false}}else if(a.justify==
"max")a.pos=Math.floor(a.pos-a.size+a.t);if(a.pos<a.marginMin){f=a.pos;a.pos=a.marginMin;if(e&&!b)a.size-=a.pos-f}},correctRatio:function(a){var b=this.x,c=this.y,d=false,f=Math.min(b.full,b.size),e=Math.min(c.full,c.size),g=this.useBox||hs.padToMinWidth;if(f/e>a){f=e*a;if(f<b.minSize){f=b.minSize;e=f/a}d=true}else if(f/e<a){e=f/a;d=true}if(hs.padToMinWidth&&b.full<b.minSize){b.imgSize=b.full;c.size=c.imgSize=c.full}else if(this.useBox){b.imgSize=f;c.imgSize=e}else{b.size=f;c.size=e}this.fitOverlayBox(g?
null:a);if(g&&c.size<c.imgSize){c.imgSize=c.size;b.imgSize=c.size*a}if(d||g){b.pos=b.tpos-b.cb+b.tb;b.minSize=b.size;this.justify(b,true);c.pos=c.tpos-c.cb+c.tb;c.minSize=c.size;this.justify(c,true);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)}},show:function(){var a=this.x,b=this.y;this.doShowHide("hidden");
this.slideshow&&this.slideshow.thumbstrip&&this.slideshow.thumbstrip.selectThumb();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();a||this.destroyOverlays();var e=this,g=e.x,h=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:h.t+"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(i,k){if(e.outline&&e.outlineWhileAnimating&&k.prop=="top"){var m=a?k.pos:1-k.pos;m={w:g.t+(g.get("wsize")-g.t)*m,h:h.t+(h.get("wsize")-h.t)*m,x:g.tpos+(g.pos-g.tpos)*m,y:h.tpos+(h.pos-h.tpos)*m};e.outline.setPosition(m,0,1)}}});hs.animate(this.content,b.content,c,d,f);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 f=a||-1,e=this.outline.offset,g=a?3:e,h=a?e:3,i=g;f*i<=f*h;i+=f,d+=25)(function(){var k=a?h-i:g-i;setTimeout(function(){c.outline.setPosition(0,
k,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,b){if(a){var c=this,d=hs.transitionDuration,f=c.last,e=c.x,g=c.y,h=f.x,i=f.y,k=c.overlayBox,m=this.wrapper,u=this.content;hs.removeEventListener(document,"mousemove",hs.dragHandler);if(this.outline=f.outline)this.outline.exp=c;f.outline=null;f.wrapper.style.overflow="hidden";hs.setStyles(m,
{left:h.pos+"px",top:i.pos+"px",width:h.get("wsize")+"px",height:i.get("wsize")+"px"});hs.setStyles(u,{display:"none",width:(e.imgSize||e.size)+"px",height:(g.imgSize||g.size)+"px",left:e.p1+e.get("imgPad")+"px",top:g.p1+g.get("imgPad")+"px"});for(var p=hs.createElement("div",{className:"highslide-image"},{position:"absolute",zIndex:4,overflow:"hidden",display:"none",left:h.p1+h.get("imgPad")+"px",top:i.p1+i.get("imgPad")+"px",width:(h.imgSize||h.size)+"px",height:(i.imgSize||i.size)+"px"}),q=0;q<
this.overlays.length;q++){var v=hs.$("hsId"+this.overlays[q]);if(v.style.visibility=="hidden")v.style.display="none"}k&&hs.setStyles(k,{overflow:"visible",left:h.p1+h.cb+"px",top:i.p1+i.cb+"px",width:h.size+"px",height:i.size+"px"});q={oldImg:f,newImg:this};for(var r in q){this[r]=q[r].content.cloneNode(1);hs.setStyles(this[r],{position:"absolute",border:0,visibility:"visible"});p.appendChild(this[r])}hs.setStyles(this.oldImg,{left:0,top:0});hs.setStyles(this.newImg,{display:"block",opacity:0,left:e.pos-
h.pos+e.p1-h.p1+e.get("imgPad")-h.get("imgPad")+"px",top:g.pos-i.pos+g.p1-i.p1+g.get("imgPad")-i.get("imgPad")+"px"});m.appendChild(p);if(k){k.className="";m.appendChild(k)}p.style.display="";f.content.style.display="none";if(hs.safari)if((r=navigator.userAgent.match(/Safari\/([0-9]{3})/))&&parseInt(r[1])<525)m.style.visibility="visible";hs.animate(f.wrapper,{left:e.pos,top:g.pos,width:e.get("wsize"),height:g.get("wsize")},d);hs.animate(p,{width:e.imgSize||e.size,height:g.imgSize||g.size,left:e.p1+
e.get("imgPad"),top:g.p1+g.get("imgPad")},d);hs.animate(this.oldImg,{left:h.pos-e.pos+h.p1-e.p1+h.get("imgPad")-e.get("imgPad"),top:i.pos-g.pos+i.p1-g.p1+i.get("imgPad")-g.get("imgPad")},d);hs.animate(this.newImg,{opacity:1,left:0,top:0},d);k&&hs.animate(k,{left:e.p1+e.cb,top:g.p1+g.cb,width:e.size,height:g.size},d);if(this.outline)var w=function(j,n){if(n.prop=="top"){var l=c.wrapper.style;l={w:parseInt(l.width),h:parseInt(l.height),x:parseInt(l.left),y:parseInt(l.top)};c.outline.setPosition(l)}};
hs.animate(m,b.wrapper,{duration:d,complete:function(){m.style.visibility=u.style.visibility="visible";u.style.display="block";p.style.display="none";c.a.className+=" highslide-active-anchor";c.afterExpand();f.afterClose();c.last=null},step:w});p.style.visibility="visible"}},reuseOverlay:function(a){if(!this.last)return false;for(var b=0;b<this.last.overlays.length;b++){var c=hs.$("hsId"+this.last.overlays[b]);if(c&&c.hsId==a.hsId){this.genOverlayBox();c.reuse=this.key;hs.push(this.overlays,this.last.overlays[b]);
return true}}return false},afterExpand:function(){this.isExpanded=true;this.focus();this.dimmingOpacity&&hs.dim(this);if(hs.upcoming&&hs.upcoming==this.a)hs.upcoming=null;this.prepareNextOutline();var a=hs.page,b=hs.mouse.x+a.scrollLeft;a=hs.mouse.y+a.scrollTop;this.mouseIsOver=this.x.pos<b&&b<this.x.pos+this.x.get("wsize")&&this.y.pos<a&&a<this.y.pos+this.y.get("wsize");this.overlayBox&&this.showOverlays()},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(){var a=hs.getAnchors().groups[this.slideshowGroup||"none"];if(a)for(var 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"];if(a)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.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(this.key,b)}if(b=this.slideshow){var d=b.expKey=this.key;b.checkFirstAndLast();b.disable("full-expand");if(b.controls){a=b.overlayOptions||{};a.overlayId=b.controls;a.hsId="controls";this.createOverlay(a)}b.thumbstrip&&b.thumbstrip.add(this);!this.last&&this.autoplay&&b.play(true);if(b.autoplay)b.autoplay=setTimeout(function(){hs.next(d)},b.interval||500)}},cancelLoading:function(){hs.discardElement(this.wrapper);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"},writeCredits:function(){if(!this.credits){this.credits=hs.createElement("a",{href:hs.creditsHref,target:hs.creditsTarget,className:"highslide-credits",innerHTML:hs.lang.creditsText,title:hs.lang.creditsTitle});this.createOverlay({overlayId:this.credits,position:this.creditsPosition||"top left",hsId:"credits"})}},getInline:function(a,b){for(var c=0;c<a.length;c++){var d=a[c],f=null;if(!this[d+
"Id"]&&this.thumbsUserSetId)this[d+"Id"]=d+"-for-"+this.thumbsUserSetId;if(this[d+"Id"])this[d]=hs.getNode(this[d+"Id"]);if(!this[d]&&!this[d+"Text"]&&this[d+"Eval"])try{f=eval(this[d+"Eval"])}catch(e){}if(!this[d]&&this[d+"Text"])f=this[d+"Text"];if(!this[d]&&!f)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}if(!this[d]&&!f&&this.numberPosition==d)f="\n";if(!this[d]&&f)this[d]=hs.createElement("div",
{className:"highslide-"+d,innerHTML:f});if(b&&this[d]){f={position:d=="heading"?"above":"below"};for(var h in this[d+"Overlay"])f[h]=this[d+"Overlay"][h];f.overlayId=this[d];this.createOverlay(f)}}},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",f=0;f<c.length;f++)if(d=="visibility"||
document.defaultView.getComputedStyle(c[f],"").getPropertyValue("overflow")=="auto"||c[f].getAttribute("hidden-by")!=null){var e=c[f].getAttribute("hidden-by");if(b=="visible"&&e){e=e.replace("["+this.key+"]","");c[f].setAttribute("hidden-by",e);if(!e)c[f].style[d]=c[f].origProp}else if(b=="hidden"){var g=hs.getPosition(c[f]);g.w=c[f].offsetWidth;g.h=c[f].offsetHeight;if(!this.dimmingOpacity)var h=g.x+g.w<this.x.get("opos")||g.x>this.x.get("opos")+this.x.get("osize"),i=g.y+g.h<this.y.get("opos")||
g.y>this.y.get("opos")+this.y.get("osize");g=hs.getWrapperKey(c[f]);if(!h&&!i&&g!=this.key)if(e)e.indexOf("["+this.key+"]")==-1&&c[f].setAttribute("hidden-by",e+"["+this.key+"]");else{c[f].setAttribute("hidden-by","["+this.key+"]");c[f].origProp=c[f].style[d];c[f].style[d]="hidden"}else if((e=="["+this.key+"]"||hs.focusKey==g)&&g!=this.key){c[f].setAttribute("hidden-by","");c[f].style[d]=c[f].origProp||""}else e&&e.indexOf("["+this.key+"]")>-1&&c[f].setAttribute("hidden-by",e.replace("["+this.key+
"]",""))}}},focus:function(){this.wrapper.style.zIndex=hs.zIndexCounter+=2;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";b.content.style.cursor=hs.ie?"hand":"pointer";b.content.title=hs.lang.focusTitle}if(this.outline)this.outline.table.style.zIndex=this.wrapper.style.zIndex-1;this.content.className="highslide-"+this.contentType;this.content.title=hs.lang.restoreTitle;if(hs.restoreCursor){hs.styleRestoreCursor=
window.opera?"pointer":"url("+hs.graphicsDir+hs.restoreCursor+"), pointer";if(hs.ie&&hs.uaVersion<6)hs.styleRestoreCursor="hand";this.content.style.cursor=hs.styleRestoreCursor}hs.focusKey=this.key;hs.addEventListener(document,window.opera?"keypress":"keydown",hs.keyHandler)},moveTo:function(a,b){this.x.setPos(a);this.y.setPos(b)},resize:function(a){var b,c=a.width/a.height;a=Math.max(a.width+a.dX,Math.min(this.minWidth,this.x.full));if(this.isImage&&Math.abs(a-this.x.full)<12)a=this.x.full;b=a/c;
if(b<Math.min(this.minHeight,this.y.full)){b=Math.min(this.minHeight,this.y.full);if(this.isImage)a=b*c}this.resizeTo(a,b)},resizeTo:function(a,b){this.y.setSize(b);this.x.setSize(a)},close:function(){if(!(this.isClosing||!this.isExpanded)){if(this.transitions[1]=="crossfade"&&hs.upcoming){hs.getExpander(hs.upcoming).cancelLoading();hs.upcoming=null}this.isClosing=true;this.slideshow&&!hs.upcoming&&this.slideshow.pause();hs.removeEventListener(document,window.opera?"keypress":"keydown",hs.keyHandler);
try{this.content.style.cursor="default";this.changeSize(0,{wrapper:{width:this.x.t,height:this.y.t,left:this.x.tpos-this.x.cb+this.x.tb,top:this.y.tpos-this.y.cb+this.y.tb},content:{left:0,top:0,width:this.x.t,height:this.y.t}},hs.restoreDuration)}catch(a){this.afterClose()}}},createOverlay:function(a){var b=a.overlayId,c=a.relativeTo=="viewport"&&!/panel$/.test(a.position);if(typeof b=="string")b=hs.getNode(b);if(a.html)b=hs.createElement("div",{innerHTML:a.html});if(!(!b||typeof b=="string")){b.style.display=
"block";a.hsId=a.hsId||a.overlayId;if(!(this.transitions[1]=="crossfade"&&this.reuseOverlay(a,b))){this.genOverlayBox();var d=a.width&&/^[0-9]+(px|%)$/.test(a.width)?a.width:"auto";if(/^(left|right)panel$/.test(a.position)&&!/^[0-9]+px$/.test(a.width))d="200px";d=hs.createElement("div",{id:"hsId"+hs.idCounter++,hsId:a.hsId},{position:"absolute",visibility:"hidden",width:d,direction:hs.lang.cssDirection||"",opacity:0},c?hs.viewport:this.overlayBox,true);if(c)d.hsKey=this.key;d.appendChild(b);hs.extend(d,
{opacity:1,offsetX:0,offsetY:0,dur:a.fade===0||a.fade===false||a.fade==2&&hs.ie?0:250});hs.extend(d,a);if(this.gotOverlays){this.positionOverlay(d);if(!d.hideOnMouseOut||this.mouseIsOver)hs.animate(d,{opacity:d.opacity},d.dur)}hs.push(this.overlays,hs.idCounter-1)}}},positionOverlay:function(a){var b=a.position||"middle center",c=a.relativeTo=="viewport",d=a.offsetX,f=a.offsetY;if(c){hs.viewport.style.display="block";a.hsKey=this.key;if(a.offsetWidth>a.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<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.createOverlay(b)}c=[];for(a=0;a<this.overlays.length;a++){b=hs.$("hsId"+this.overlays[a]);/panel$/.test(b.position)?this.positionOverlay(b):hs.push(c,b)}for(a=0;a<c.length;a++)this.positionOverlay(c[a]);this.gotOverlays=true},genOverlayBox:function(){if(!this.overlayBox)this.overlayBox=hs.createElement("div",{className:this.wrapperClassName},{position:"absolute",width:(this.x.size||(this.useBox?this.width:null)||this.x.full)+"px",height:(this.y.size||this.y.full)+"px",
visibility:"hidden",overflow:"hidden",zIndex:hs.ie?4:null},hs.container,true)},sizeOverlayBox:function(a,b){var c=this.overlayBox,d=this.x,f=this.y;hs.setStyles(c,{width:d.size+"px",height:f.size+"px"});if(a||b)for(var e=0;e<this.overlays.length;e++){var g=hs.$("hsId"+this.overlays[e]),h=hs.ieLt7||document.compatMode=="BackCompat";if(g&&/^(above|below)$/.test(g.position)){if(h)g.style.width=c.offsetWidth+2*d.cb+d.p1+d.p2+"px";f[g.position=="above"?"p1":"p2"]=g.offsetHeight}if(g&&h&&/^(left|right)panel$/.test(g.position))g.style.height=
c.offsetHeight+2*f.cb+"px"}if(a){hs.setStyles(this.content,{top:f.p1+"px"});hs.setStyles(c,{top:f.p1+f.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;if(!b.hideOnMouseOut||this.mouseIsOver){b.style.visibility=
"visible";hs.setStyles(b,{visibility:"visible",display:""});hs.animate(b,{opacity:b.opacity},b.dur)}}},destroyOverlays:function(){if(this.overlays.length){for(var a=0;a<this.overlays.length;a++){var b=hs.$("hsId"+this.overlays[a]);b.parentNode==hs.viewport&&hs.discardElement(b)}if(this.slideshow)(a=this.slideshow.controls)&&hs.getExpander(a)==this&&a.parentNode.removeChild(a);hs.discardElement(this.overlayBox)}},createFullExpand:function(){if(this.slideshow&&this.slideshow.controls)this.slideshow.enable("full-expand");
else{this.fullExpandLabel=hs.createElement("a",{href:"javascript:hs.expanders["+this.key+"].doFullExpand();",title:hs.lang.fullExpandTitle,className:"highslide-full-expand"});this.createOverlay({overlayId:this.fullExpandLabel,position:hs.fullExpandPosition,hideOnMouseOut:true,opacity:hs.fullExpandOpacity})}},doFullExpand:function(){try{this.fullExpandLabel&&hs.discardElement(this.fullExpandLabel);this.focus();var a=this.x.size;this.resizeTo(this.x.full,this.y.full);var b=this.x.pos-(this.x.size-a)/
2;if(b<hs.marginLeft)b=hs.marginLeft;this.moveTo(b,this.y.pos);this.doShowHide("hidden");hs.setDimmerSize(this)}catch(c){this.error(c)}},afterClose:function(){this.a.className=this.a.className.replace("highslide-active-anchor","");this.doShowHide("visible");this.outline&&this.outlineWhileAnimating&&this.outline.destroy();hs.discardElement(this.wrapper);if(!hs.viewport.childNodes.length)hs.viewport.style.display="none";this.dimmingOpacity&&hs.undim(this.key);hs.expanders[this.key]=null;hs.reOrder()}};
hs.Slideshow=function(a,b){hs.dynamicallyUpdateAnchors!==false&&hs.updateAnchors();this.expKey=a;for(var c in b)this[c]=b[c];this.useControls&&this.getControls();if(this.thumbstrip)this.thumbstrip=hs.Thumbstrip(this)};
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=hs.expanders[this.expKey],b=a.getAnchorIndex(),
c=/disabled$/;if(b==0)this.disable("previous");else c.test(this.btn.previous.getElementsByTagName("a")[0].className)&&this.enable("previous");if(b+1==hs.anchors.groups[a.slideshowGroup||"none"].length){this.disable("next");this.disable("play")}else if(c.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 false};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 false};/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=true;a||hs.next(this.expKey)},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)}};
hs.Thumbstrip=function(a){function b(j){c(undefined,Math.round(j*k[i?"offsetWidth":"offsetHeight"]*0.7))}function c(j,n){if(j===undefined)for(var l=0;l<d.length;l++)if(d[l]==hs.expanders[a.expKey].a){j=l;break}if(j!==undefined){var s=k.getElementsByTagName("a"),C=s[j],t=C.parentNode,y="offset"+(i?"Left":"Top"),x="offset"+(i?"Width":"Height"),A=m.parentNode.parentNode[x],B=A-v[x],z=parseInt(v.style[i?"left":"top"])||0,o=z;if(n!==undefined){o=z-n;if(o>0)o=0;if(o<B)o=B}else{for(l=0;l<s.length;l++)s[l].className=
"";C.className="highslide-active-anchor";l=j>0?s[j-1].parentNode[y]:t[y];s=t[y]+t[x]+(s[j+1]?s[j+1].parentNode[x]:0);if(s>A-z)o=A-s;else if(l<-z)o=-l}t=t[y]+(t[x]-q[x])/2+o;hs.animate(v,i?{left:o}:{top:o},null,"easeOutQuad");hs.animate(q,i?{left:t}:{top:t},null,"easeOutQuad");u.style.display=o<0?"block":"none";p.style.display=o>B?"block":"none"}}var d=hs.anchors.groups[hs.expanders[a.expKey].slideshowGroup||"none"],f=a.thumbstrip,e=f.mode||"horizontal",g=e=="float",h=g?["div","ul","li","span"]:["table",
"tbody","tr","td"],i=e=="horizontal",k=hs.createElement("div",{className:"highslide-thumbstrip highslide-thumbstrip-"+e,innerHTML:'<div class="highslide-thumbstrip-inner"><'+h[0]+"><"+h[1]+"></"+h[1]+"></"+h[0]+'></div><div class="highslide-scroll-up"><div></div></div><div class="highslide-scroll-down"><div></div></div><div class="highslide-marker"><div></div></div>'},{display:"none"},hs.container);e=k.childNodes;var m=e[0],u=e[1],p=e[2],q=e[3],v=m.firstChild;e=k.getElementsByTagName(h[1])[0];for(var r,
w=0;w<d.length;w++){if(w==0||!i)r=hs.createElement(h[2],null,null,e);(function(){var j=d[w],n=hs.createElement(h[3],null,null,r);hs.createElement("a",{href:j.href,onclick:function(){hs.getExpander(this).focus();return hs.transit(j)},innerHTML:hs.stripItemFormatter?hs.stripItemFormatter(j):j.innerHTML},null,n)})()}if(!g){u.onclick=function(){b(-1)};p.onclick=function(){b(1)};hs.addEventListener(e,document.onmousewheel!==undefined?"mousewheel":"DOMMouseScroll",function(j){var n=0;j=j||window.event;
if(j.wheelDelta){n=j.wheelDelta/120;if(hs.opera)n=-n}else if(j.detail)n=-j.detail/3;n&&b(-n*0.2);j.preventDefault&&j.preventDefault();j.returnValue=false})}return{add:function(j){hs.extend(f||{},{overlayId:k,hsId:"thumbstrip"});if(hs.ieLt7)f.fade=0;j.createOverlay(f);hs.setStyles(k.parentNode,{overflow:"hidden"})},selectThumb:c}};hs.ie&&function(){try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,50);return}hs.ready()}();
hs.addEventListener(document,"DOMContentLoaded",hs.ready);hs.addEventListener(window,"load",hs.ready);hs.langDefaults=hs.lang;var HsExpander=hs.Expander;
hs.addEventListener(window,"load",function(){if(hs.expandCursor){var a="cursor: url("+hs.graphicsDir+hs.expandCursor+"), pointer !important;",b=hs.createElement("style",{type:"text/css"},null,document.getElementsByTagName("HEAD")[0]);if(hs.ie){b=document.styleSheets[document.styleSheets.length-1];typeof b.addRule=="object"&&b.addRule(".highslide img",a)}else b.appendChild(document.createTextNode(".highslide img {"+a+"}"))}});
hs.addEventListener(window,"resize",function(){hs.getPageSize();if(hs.viewport)for(var a=0;a<hs.viewport.childNodes.length;a++){var b=hs.viewport.childNodes[a],c=hs.getExpander(b);c.positionOverlay(b);b.hsId=="thumbstrip"&&c.slideshow.thumbstrip.selectThumb()}});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(document,"ready",hs.getAnchors);hs.addEventListener(window,"load",hs.preloadImages);