﻿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 <i>Highslide JS</i>",creditsTitle:"Go to the Highslide JS homepage",previousText:"Previous",nextText:"Next",moveText:"Move",closeText:"Close",closeTitle:"Close (esc)",resizeTitle:"Resize",playText:"Play",playTitle:"Play slideshow (spacebar)",pauseText:"Pause",pauseTitle:"Pause slideshow (spacebar)",previousTitle:"Previous (arrow left)",nextTitle:"Next (arrow right)",moveTitle:"Move",fullExpandText:"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,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:/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(f,a,e,d,c){var b=document.createElement(f);if(a){hs.extend(b,a)}if(c){hs.setStyles(b,{padding:0,border:"none",margin:0})}if(e){hs.setStyles(b,e)}if(d){d.appendChild(b)}return b},extend:function(b,a){for(var c in a){b[c]=a[c]}return b},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(c,h,g){var i,d,j;if(typeof g!="object"||g===null){var a=arguments;g={duration:a[2],easing:a[3],complete:a[4]}}if(typeof g.duration!="number"){g.duration=250}g.easing=Math[g.easing]||Math.easeInQuad;g.curAnim=hs.extend({},h);for(var f in h){var b=new hs.fx(c,g,f);i=parseFloat(hs.css(c,f))||0;d=parseFloat(h[f]);j=f!="opacity"?"px":"";b.custom(i,d,j)}},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,e){return e.toUpperCase()})];if(b=="filter"){c=c.replace(/alpha\(opacity=([0-9]+)\)/,function(d,e){return e/100})}return c===""?1:c}},getPageSize:function(){var a=document,e=window,c=a.compatMode&&a.compatMode!="BackCompat"?a.documentElement:a.body;var f=hs.ie?c.clientWidth:(a.documentElement.clientWidth||self.innerWidth),b=hs.ie?c.clientHeight:self.innerHeight;hs.page={width:f,height:b,scrollLeft:hs.ie?c.scrollLeft:pageXOffset,scrollTop:hs.ie?c.scrollTop:pageYOffset}},getPosition:function(a){var b={x:a.offsetLeft,y:a.offsetTop};while(a.offsetParent){a=a.offsetParent;b.x+=a.offsetLeft;b.y+=a.offsetTop;if(a!=document.body&&a!=document.documentElement){b.x-=a.scrollLeft;b.y-=a.scrollTop}}return b},expand:function(b,f,c,g){if(!b){b=hs.createElement("a",null,{display:"none"},hs.container)}if(typeof b.getParams=="function"){return f}try{new hs.Expander(b,f,c);return false}catch(d){return true}},getElementByClass:function(b,e,a){var c=b.getElementsByTagName(e);for(var d=0;d<c.length;d++){if((new RegExp(a)).test(c[d].className)){return c[d]}}return null},replaceLang:function(e){e=e.replace(/\s/g," ");var d=/{hs\.lang\.([^}]+)\}/g,c=e.match(d),b;if(c){for(var a=0;a<c.length;a++){b=c[a].replace(d,"$1");if(typeof hs.lang[b]!="undefined"){e=e.replace(c[a],hs.lang[b])}}}return e},focusTopmost:function(){var e=0,d=-1,b=hs.expanders,a,f;for(var c=0;c<b.length;c++){a=b[c];if(a){f=a.wrapper.style.zIndex;if(f&&f>e){e=f;d=c}}}if(d==-1){hs.focusKey=-1}else{b[d].focus()}},getParam:function(b,d){b.getParams=b.onclick;var c=b.getParams?b.getParams():null;b.getParams=null;return(c&&typeof c[d]!="undefined")?c[d]:(typeof hs[d]!="undefined"?hs[d]:null)},getSrc:function(b){var c=hs.getParam(b,"src");if(c){return c}return b.href},getNode:function(d){var e=hs.$(d),c=hs.clones[d],b={};if(!e&&!c){return null}if(!c){c=e.cloneNode(true);c.id="";hs.clones[d]=c;return e}else{return c.cloneNode(true)}},discardElement:function(a){if(a){hs.garbageBin.appendChild(a)}hs.garbageBin.innerHTML=""},dim:function(a){function b(c){return"expression( ( ( ignoreMe = document.documentElement."+c+" ? document.documentElement."+c+" : document.body."+c+" ) ) + 'px' );"}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;if(hs.geckoMac&&hs.dimmingGeckoFix){hs.setStyles(hs.dimmer,{background:"url("+hs.graphicsDir+"geckodimmer.png)",opacity:1})}else{hs.animate(hs.dimmer,{opacity:a.dimmingOpacity},hs.dimmingDuration)}},undim:function(a){if(!hs.dimmer){return}if(typeof a!="undefined"){hs.dimmer.owner=hs.dimmer.owner.replace("|"+a,"")}if((typeof a!="undefined"&&hs.dimmer.owner!="")||(hs.upcoming&&hs.getParam(hs.upcoming,"dimmingOpacity"))){return}if(hs.geckoMac&&hs.dimmingGeckoFix){hs.dimmer.style.display="none"}else{hs.animate(hs.dimmer,{opacity:0},hs.dimmingDuration,null,function(){hs.dimmer.style.display="none"})}},transit:function(a,c){var d=c=c||hs.getExpander();if(hs.upcoming){return false}else{hs.last=d}try{hs.upcoming=a;a.onclick()}catch(b){hs.last=hs.upcoming=null}try{if(!a||c.transitions[1]!="crossfade"){c.close()}}catch(b){}return false},previousOrNext:function(a,c){var b=hs.getExpander(a);if(b){return hs.transit(b.getAdjacentAnchor(c),b)}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();var c=null;switch(a.keyCode){case 70:if(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){if(b.slideshow){b.slideshow.hitSpace()}}else{if(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(c){var d=c.slideshowGroup;if(typeof d=="object"){for(var a=0;a<d.length;a++){var b={};for(var e in c){b[e]=c[e]}b.slideshowGroup=d[a];hs.push(hs.slideshows,b)}}else{hs.push(hs.slideshows,c)}},getWrapperKey:function(b,d){var a,f=/^highslide-wrapper-([0-9]+)$/;a=b;while(a.parentNode){if(a.hsKey!==undefined){return a.hsKey}if(a.id&&f.test(a.id)){return a.id.replace(f,"$1")}a=a.parentNode}if(!d){a=b;while(a.parentNode){if(a.tagName&&hs.isHsAnchor(a)){for(var e=0;e<hs.expanders.length;e++){var c=hs.expanders[e];if(c&&c.a==a){return e}}}a=a.parentNode}}return null},getExpander:function(a,b){if(typeof a=="undefined"){return hs.expanders[hs.focusKey]||null}if(typeof a=="number"){return hs.expanders[a]||null}if(typeof a=="string"){a=hs.$(a)}return hs.expanders[hs.getWrapperKey(a,b)]||null},isHsAnchor:function(b){return(b.onclick&&b.onclick.toString().replace(/\s/g," ").match(/hs.(htmlE|e)xpand/))},reOrder:function(){for(var a=0;a<hs.expanders.length;a++){if(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}var b=a.target;while(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 f=b.className.match(/highslide-(image|move|resize)/);if(f){hs.dragArgs={exp:c,type:f[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);if(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}var d=hs.dragArgs.hasDragged;if(!d&&!hs.hasFocused&&!/(move|resize)/.test(hs.dragArgs.type)){c.close()}else{if(d||(!d&&hs.hasHtmlExpanders)){hs.dragArgs.exp.doShowHide("hidden")}}hs.hasFocused=false;hs.dragArgs=null}else{if(/highslide-image-blur/.test(b.className)){b.style.cursor=hs.styleRestoreCursor}}}}return false},dragHandler:function(d){if(!hs.dragArgs){return true}if(!d){d=window.event}var b=hs.dragArgs,f=b.exp;b.dX=d.clientX-b.clickX;b.dY=d.clientY-b.clickY;var c=Math.sqrt(Math.pow(b.dX,2)+Math.pow(b.dY,2));if(!b.hasDragged){b.hasDragged=(b.type!="image"&&c>0)||(c>(hs.dragSensitivity||5))}if(b.hasDragged&&d.clientX>5&&d.clientY>5){if(b.type=="resize"){f.resize(b)}else{f.moveTo(b.left+b.dX,b.top+b.dY);if(b.type=="image"){f.content.style.cursor="move"}}}return false},wrapperMouseHandler:function(a){try{if(!a){a=window.event}var d=/mouseover/i.test(a.type);if(!a.target){a.target=a.srcElement}if(hs.ie){a.relatedTarget=d?a.fromElement:a.toElement}var b=hs.getExpander(a.target);if(!b.isExpanded){return}if(!b||!a.relatedTarget||hs.getExpander(a.relatedTarget,true)==b||hs.dragArgs){return}for(var c=0;c<b.overlays.length;c++){(function(){var e=hs.$("hsId"+b.overlays[c]);if(e&&e.hideOnMouseOut){if(d){hs.setStyles(e,{visibility:"visible",display:""})}hs.animate(e,{opacity:d?e.opacity:0},e.dur)}})()}}catch(a){}},addEventListener:function(b,c,d){if(b==document&&c=="ready"){hs.push(hs.onReady,d)}try{b.addEventListener(c,d,false)}catch(a){try{b.detachEvent("on"+c,d);b.attachEvent("on"+c,d)}catch(a){b["on"+c]=d}}},removeEventListener:function(b,c,d){try{b.removeEventListener(c,d,false)}catch(a){try{b.detachEvent("on"+c,d)}catch(a){b["on"+c]=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(d){if(d&&typeof d!="object"){hs.numberOfImagesToPreload=d}var a=hs.getAnchors();for(var c=0;c<a.images.length&&c<hs.numberOfImagesToPreload;c++){hs.push(hs.preloadTheseImages,hs.getSrc(a.images[c]))}if(hs.outlineType){new hs.Outline(hs.outlineType,function(){hs.preloadFullImage(0)})}else{hs.preloadFullImage(0)}if(hs.restoreCursor){var b=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 highslide-viewport-size"},{visibility:(hs.safari&&hs.uaVersion<525)?"visible":"hidden"},hs.container,1);Math.linearTween=function(h,e,f,g){return f*h/g+e};Math.easeInQuad=function(h,e,f,g){return f*(h/=g)*h+e};Math.easeOutQuad=function(h,e,f,g){return -f*(h/=g)*(h-2)+e};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){return}hs.isReady=true;for(var a=0;a<hs.onReady.length;a++){hs.onReady[a]()}},updateAnchors:function(){var b,c,a=[],h=[],e={},l;for(var f=0;f<hs.openerTagNames.length;f++){c=document.getElementsByTagName(hs.openerTagNames[f]);for(var k=0;k<c.length;k++){b=c[k];l=hs.isHsAnchor(b);if(l){hs.push(a,b);if(l[0]=="hs.expand"){hs.push(h,b)}var d=hs.getParam(b,"slideshowGroup")||"none";if(!e[d]){e[d]=[]}hs.push(e[d],b)}}}hs.anchors={all:a,groups:e,images:h};return hs.anchors},getAnchors:function(){return hs.anchors||hs.updateAnchors()},close:function(a){var b=hs.getExpander(a);if(b){b.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);if(this.options.step){this.options.step.call(this.elem,this.now,this)}},custom:function(a,d,e){this.startTime=(new Date()).getTime();this.start=a;this.end=d;this.unit=e;this.now=this.start;this.pos=this.state=0;var b=this;function c(f){return b.step(f)}c.elem=this.elem;if(c()&&hs.timers.push(c)==1){hs.timerId=setInterval(function(){var g=hs.timers;for(var f=0;f<g.length;f++){if(!g[f]()){g.splice(f--,1)}}if(!g.length){clearInterval(hs.timerId)}},13)}},step:function(b){var e=(new Date()).getTime();if(b||e>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var a=true;for(var c in this.options.curAnim){if(this.options.curAnim[c]!==true){a=false}}if(a){if(this.options.complete){this.options.complete.call(this.elem)}}return false}else{var d=e-this.startTime;this.state=d/this.options.duration;this.pos=this.options.easing(d,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(b){try{if(b.elem.style&&b.elem.style[b.prop]!=null){b.elem.style[b.prop]=b.now+b.unit}else{b.elem[b.prop]=b.now}}catch(a){}}}});hs.Outline=function(c,b){this.onLoad=b;this.outlineType=c;var g=hs.uaVersion,f;this.hasAlphaImageLoader=hs.ie&&g>=5.5&&g<7;if(!c){if(b){b()}return}hs.init();this.table=hs.createElement("table",{cellSpacing:0},{visibility:"hidden",position:"absolute",borderCollapse:"collapse",width:0},hs.container,true);var e=hs.createElement("tbody",null,null,this.table,1);this.td=[];for(var a=0;a<=8;a++){if(a%3==0){f=hs.createElement("tr",null,{height:"auto"},e,true)}this.td[a]=hs.createElement("td",null,null,f,true);var d=a!=4?{lineHeight:0,fontSize:0}:{position:"relative"};hs.setStyles(this.td[a],d)}this.td[4].className=c+" highslide-outline";this.preloadGraphic()};hs.Outline.prototype={preloadGraphic:function(){var c=hs.graphicsDir+(hs.outlinesDir||"outlines/")+this.outlineType+".png";var a=hs.safari?hs.container:null;this.graphic=hs.createElement("img",null,{position:"absolute",top:"-9999px"},a,true);var b=this;this.graphic.onload=function(){b.onGraphicLoad()};this.graphic.src=c},onGraphicLoad:function(){var d=this.offset=this.graphic.width/4,e=[[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],a={height:(2*d)+"px",width:(2*d)+"px"};for(var c=0;c<=8;c++){if(e[c]){if(this.hasAlphaImageLoader){var f=(c==1||c==7)?"100%":this.graphic.width+"px";var b=hs.createElement("div",null,{width:"100%",height:"100%",position:"relative",overflow:"hidden"},this.td[c],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:(e[c][0]*d)+"px",top:(e[c][1]*d)+"px"},b,true)}else{hs.setStyles(this.td[c],{background:"url("+this.graphic.src+") "+(e[c][0]*d)+"px "+(e[c][1]*d)+"px"})}if(window.opera&&(c==3||c==5)){hs.createElement("div",null,a,this.td[c],true)}hs.setStyles(this.td[c],a)}}this.graphic=null;if(hs.pendingOutlines[this.outlineType]){hs.pendingOutlines[this.outlineType].destroy()}hs.pendingOutlines[this.outlineType]=this;if(this.onLoad){this.onLoad()}},setPosition:function(e,d,g,a,b){var c=this.exp,f=c.wrapper.style,d=d||0,e=e||{x:c.x.pos+d,y:c.y.pos+d,w:c.x.get("wsize")-2*d,h:c.y.get("wsize")-2*d};if(g){this.table.style.visibility=(e.h>=4*this.offset)?"visible":"hidden"}hs.setStyles(this.table,{left:(e.x-this.offset)+"px",top:(e.y-this.offset)+"px",width:(e.w+2*this.offset)+"px"});e.w-=2*this.offset;e.h-=2*this.offset;hs.setStyles(this.td[4],{width:e.w>=0?e.w+"px":0,height:e.h>=0?e.h+"px":0});if(this.hasAlphaImageLoader){this.td[3].style.height=this.td[5].style.height=this.td[4].style.height}},destroy:function(a){if(a){this.table.style.visibility="hidden"}else{hs.discardElement(this.table)}}};hs.Dimension=function(b,a){this.exp=b;this.dim=a;this.ucwh=a=="x"?"Width":"Height";this.wh=this.ucwh.toLowerCase();this.uclt=a=="x"?"Left":"Top";this.lt=this.uclt.toLowerCase();this.ucrb=a=="x"?"Right":"Bottom";this.rb=this.ucrb.toLowerCase();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.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(b){var a=this.exp;if(a.isImage&&(a.useBox||hs.padToMinWidth)){this.imgSize=b;this.size=Math.max(this.size,this.imgSize);a.content.style[this.lt]=this.get("imgPad")+"px"}else{this.size=b}a.content.style[this.wh]=b+"px";a.wrapper.style[this.wh]=this.get("wsize")+"px";if(a.outline){a.outline.setPosition()}if(this.dim=="x"&&a.overlayBox){a.sizeOverlayBox(true)}if(this.dim=="x"&&a.slideshow&&a.isImage){if(b==this.full){a.slideshow.disable("full-expand")}else{a.slideshow.enable("full-expand")}}},setPos:function(a){this.pos=a;this.exp.wrapper.style[this.lt]=a+"px";if(this.exp.outline){this.exp.outline.setPosition()}}};hs.Expander=function(b,k,d,c){if(document.readyState&&hs.ie&&!hs.isReady){hs.addEventListener(document,"ready",function(){new hs.Expander(b,k,d,c)});return}this.a=b;this.custom=d;this.contentType=c||"image";this.isImage=!this.isHtml;hs.continuePreloading=false;this.overlays=[];this.last=hs.last;hs.last=null;hs.init();var h=this.key=hs.expanders.length;for(var g=0;g<hs.overrides.length;g++){var j=hs.overrides[g];this[j]=k&&typeof k[j]!="undefined"?k[j]:hs[j]}if(!this.src){this.src=b.href}var e=(k&&k.thumbnailId)?hs.$(k.thumbnailId):b;e=this.thumb=e.getElementsByTagName("img")[0]||e;this.thumbsUserSetId=e.id||b.id;for(var g=0;g<hs.expanders.length;g++){if(hs.expanders[g]&&hs.expanders[g].a==b&&!(this.last&&this.transitions[1]=="crossfade")){hs.expanders[g].focus();return false}}if(!hs.allowSimultaneousLoading){for(var g=0;g<hs.expanders.length;g++){if(hs.expanders[g]&&hs.expanders[g].thumb!=e&&!hs.expanders[g].onLoadStarted){hs.expanders[g].cancelLoading()}}}hs.expanders[h]=this;if(!hs.allowMultipleInstances&&!hs.upcoming){if(hs.expanders[h-1]){hs.expanders[h-1].close()}if(typeof hs.focusKey!="undefined"&&hs.expanders[hs.focusKey]){hs.expanders[hs.focusKey].close()}}this.el=e;this.tpos=hs.getPosition(e);hs.getPageSize();var l=this.x=new hs.Dimension(this,"x");l.calcThumb();var m=this.y=new hs.Dimension(this,"y");m.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 f=this;new hs.Outline(this.outlineType,function(){f.connectOutline();f[f.contentType+"Create"]()})}}return true};hs.Expander.prototype={error:function(a){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){return}this.loading=hs.loading;var a=this;this.loading.onclick=function(){a.cancelLoading()};var a=this,b=this.x.get("loadingPos")+"px",c=this.y.get("loadingPos")+"px";if(!d&&this.last&&this.transitions[1]=="crossfade"){var d=this.last}if(d){b=d.x.get("loadingPosXfade")+"px";c=d.y.get("loadingPosXfade")+"px";this.loading.style.zIndex=hs.zIndexCounter++}setTimeout(function(){if(a.loading){hs.setStyles(a.loading,{left:b,top:c,zIndex:hs.zIndexCounter++})}},100)},imageCreate:function(){var a=this;var b=document.createElement("img");this.content=b;b.onload=function(){if(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;if(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){return}this.content.onload=null;if(this.onLoadStarted){return}else{this.onLoadStarted=true}var j=this.x,k=this.y;if(this.loading){hs.setStyles(this.loading,{top:"-9999px"});this.loading=null}j.full=this.content.width;k.full=this.content.height;hs.setStyles(this.content,{width:j.t+"px",height:k.t+"px"});this.wrapper.appendChild(this.content);hs.container.appendChild(this.wrapper);j.calcBorders();k.calcBorders();hs.setStyles(this.wrapper,{left:(j.tpos+j.tb-j.cb)+"px",top:(k.tpos+j.tb-k.cb)+"px"});this.initSlideshow();this.getOverlays();var g=j.full/k.full;j.calcExpanded();this.justify(j);k.calcExpanded();this.justify(k);if(this.overlayBox){this.sizeOverlayBox(0,1)}if(this.allowSizeReduction){this.correctRatio(g);var h=this.slideshow;if(h&&this.last&&h.controls&&h.fixedControls){var f=h.overlayOptions.position||"",d;for(var a in hs.oPos){for(var c=0;c<5;c++){d=this[a];if(f.match(hs.oPos[a][c])){d.pos=this.last[a].pos+(this.last[a].p1-d.p1)+(this.last[a].size-d.size)*[0,0,0.5,1,1][c];if(h.fixedControls=="fit"){if(d.pos+d.size+d.p1+d.p2>d.scroll+d.clientSize-d.marginMax){d.pos=d.scroll+d.clientSize-d.size-d.marginMin-d.marginMax-d.p1-d.p2}if(d.pos<d.scroll+d.marginMin){d.pos=d.scroll+d.marginMin}}}}}}if(this.isImage&&this.x.full>(this.x.imgSize||this.x.size)){this.createFullExpand();if(this.overlays.length==1){this.sizeOverlayBox()}}}this.show()}catch(b){this.error(b)}},justify:function(e,d){var g,f=e.target,b=e==this.x?"x":"y";if(f&&f.match(/ /)){g=f.split(" ");f=g[0]}if(f&&hs.$(f)){e.pos=hs.getPosition(hs.$(f))[b];if(g&&g[1]&&g[1].match(/^[-]?[0-9]+px$/)){e.pos+=parseInt(g[1])}if(e.size<e.minSize){e.size=e.minSize}}else{if(e.justify=="auto"||e.justify=="center"){var c=false;var a=e.exp.allowSizeReduction;if(e.justify=="center"){e.pos=Math.round(e.scroll+(e.clientSize+e.marginMin-e.marginMax-e.get("wsize"))/2)}else{e.pos=Math.round(e.pos-((e.get("wsize")-e.t)/2))}if(e.pos<e.scroll+e.marginMin){e.pos=e.scroll+e.marginMin;c=true}if(!d&&e.size<e.minSize){e.size=e.minSize;a=false}if(e.pos+e.get("wsize")>e.scroll+e.clientSize-e.marginMax){if(!d&&c&&a){e.size=Math.min(e.size,e.get(b=="y"?"fitsize":"maxsize"))}else{if(e.get("wsize")<e.get("fitsize")){e.pos=e.scroll+e.clientSize-e.marginMax-e.get("wsize")}else{e.pos=e.scroll+e.marginMin;if(!d&&a){e.size=e.get(b=="y"?"fitsize":"maxsize")}}}}if(!d&&e.size<e.minSize){e.size=e.minSize;a=false}}else{if(e.justify=="max"){e.pos=Math.floor(e.pos-e.size+e.t)}}}if(e.pos<e.marginMin){var h=e.pos;e.pos=e.marginMin;if(a&&!d){e.size=e.size-(e.pos-h)}}},correctRatio:function(b){var d=this.x,f=this.y,a=false,e=Math.min(d.full,d.size),g=Math.min(f.full,f.size),c=(this.useBox||hs.padToMinWidth);if(e/g>b){e=g*b;if(e<d.minSize){e=d.minSize;g=e/b}a=true}else{if(e/g<b){g=e/b;a=true}}if(hs.padToMinWidth&&d.full<d.minSize){d.imgSize=d.full;f.size=f.imgSize=f.full}else{if(this.useBox){d.imgSize=e;f.imgSize=g}else{d.size=e;f.size=g}}a=this.fitOverlayBox(c?null:b,a);if(c&&f.size<f.imgSize){f.imgSize=f.size;d.imgSize=f.size*b}if(a||c){d.pos=d.tpos-d.cb+d.tb;d.minSize=d.size;this.justify(d,true);f.pos=f.tpos-f.cb+f.tb;f.minSize=f.size;this.justify(f,true);if(this.overlayBox){this.sizeOverlayBox()}}},fitOverlayBox:function(b,a){var c=this.x,d=this.y;if(this.overlayBox){while(d.size>this.minHeight&&c.size>this.minWidth&&d.get("wsize")>d.get("fitsize")){d.size-=10;if(b){c.size=d.size*b}this.sizeOverlayBox(0,1);a=true}}return a},show:function(){var a=this.x,b=this.y;this.doShowHide("hidden");if(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(i,g,b){var h=this.transitions,e=i?(this.last?this.last.a:null):hs.upcoming,f=(h[1]&&e&&hs.getParam(e,"transitions")[1]==h[1])?h[1]:h[0];if(this[f]&&f!="expand"){this[f](i,g);return}if(this.outline&&!this.outlineWhileAnimating){if(i){this.outline.setPosition()}else{this.outline.destroy()}}if(!i){this.destroyOverlays()}var d=this,j=d.x,k=d.y,c=this.easing;if(!i){c=this.easingClose||c}var a=i?function(){if(d.outline){d.outline.table.style.visibility="visible"}setTimeout(function(){d.afterExpand()},50)}:function(){d.afterClose()};if(i){hs.setStyles(this.wrapper,{width:j.t+"px",height:k.t+"px"})}if(this.fadeInOut){hs.setStyles(this.wrapper,{opacity:i?0:1});hs.extend(g.wrapper,{opacity:i})}hs.animate(this.wrapper,g.wrapper,{duration:b,easing:c,step:function(o,l){if(d.outline&&d.outlineWhileAnimating&&l.prop=="top"){var m=i?l.pos:1-l.pos;var n={w:j.t+(j.get("wsize")-j.t)*m,h:k.t+(k.get("wsize")-k.t)*m,x:j.tpos+(j.pos-j.tpos)*m,y:k.tpos+(k.pos-k.tpos)*m};d.outline.setPosition(n,0,1)}}});hs.animate(this.content,g.content,b,c,a);if(i){this.wrapper.style.visibility="visible";this.content.style.visibility="visible";this.a.className+=" highslide-active-anchor"}},fade:function(j,h){this.outlineWhileAnimating=false;var c=this,g=j?hs.expandDuration:0;if(j){hs.animate(this.wrapper,h.wrapper,0);hs.setStyles(this.wrapper,{opacity:0,visibility:"visible"});hs.animate(this.content,h.content,0);this.content.style.visibility="visible";hs.animate(this.wrapper,{opacity:1},g,null,function(){c.afterExpand()})}if(this.outline){this.outline.table.style.zIndex=this.wrapper.style.zIndex;var a=j||-1,e=this.outline.offset,f=j?3:e,b=j?e:3;for(var d=f;a*d<=a*b;d+=a,g+=25){(function(){var i=j?b-d:f-d;setTimeout(function(){c.outline.setPosition(0,i,1)},g)})()}}if(j){}else{setTimeout(function(){if(c.outline){c.outline.destroy(c.preserveContent)}c.destroyOverlays();hs.animate(c.wrapper,{opacity:0},hs.restoreDuration,null,function(){c.afterClose()})},g)}},crossfade:function(m,l,d){if(!m){return}var b=this,e=this.last,p=this.x,q=this.y,f=e.x,g=e.y,o=this.wrapper,a=this.content,k=this.overlayBox;hs.removeEventListener(document,"mousemove",hs.dragHandler);hs.setStyles(a,{width:(p.imgSize||p.size)+"px",height:(q.imgSize||q.size)+"px"});if(k){k.style.overflow="visible"}this.outline=e.outline;if(this.outline){this.outline.exp=b}e.outline=null;var c=hs.createElement("div",{className:"highslide-image"},{position:"absolute",zIndex:4,overflow:"hidden",display:"none"});var j={oldImg:e,newImg:this};for(var i in j){this[i]=j[i].content.cloneNode(1);hs.setStyles(this[i],{position:"absolute",border:0,visibility:"visible"});c.appendChild(this[i])}o.appendChild(c);if(k){k.className="";o.appendChild(k)}c.style.display="";e.content.style.display="none";if(hs.safari){var h=navigator.userAgent.match(/Safari\/([0-9]{3})/);if(h&&parseInt(h[1])<525){this.wrapper.style.visibility="visible"}}hs.animate(o,{width:p.size},{duration:hs.transitionDuration,step:function(y,r){var u=r.pos,s=1-u;var v,x={},w=["pos","size","p1","p2"];for(var t in w){v=w[t];x["x"+v]=s*f[v]+u*p[v];x["y"+v]=s*g[v]+u*q[v];x.ximgSize=s*(f.imgSize||f.size)+u*(p.imgSize||p.size);x.ximgPad=s*f.get("imgPad")+u*p.get("imgPad");x.yimgSize=s*(g.imgSize||g.size)+u*(q.imgSize||q.size);x.yimgPad=s*g.get("imgPad")+u*q.get("imgPad")}if(b.outline){b.outline.setPosition({x:x.xpos,y:x.ypos,w:x.xsize+x.xp1+x.xp2+2*p.cb,h:x.ysize+x.yp1+x.yp2+2*q.cb})}e.wrapper.style.clip="rect("+(x.ypos-g.pos)+"px, "+(x.xsize+x.xp1+x.xp2+x.xpos+2*f.cb-f.pos)+"px, "+(x.ysize+x.yp1+x.yp2+x.ypos+2*g.cb-g.pos)+"px, "+(x.xpos-f.pos)+"px)";hs.setStyles(a,{top:(x.yp1+q.get("imgPad"))+"px",left:(x.xp1+p.get("imgPad"))+"px",marginTop:(q.pos-x.ypos)+"px",marginLeft:(p.pos-x.xpos)+"px"});hs.setStyles(o,{top:x.ypos+"px",left:x.xpos+"px",width:(x.xp1+x.xp2+x.xsize+2*p.cb)+"px",height:(x.yp1+x.yp2+x.ysize+2*q.cb)+"px"});hs.setStyles(c,{width:(x.ximgSize||x.xsize)+"px",height:(x.yimgSize||x.ysize)+"px",left:(x.xp1+x.ximgPad)+"px",top:(x.yp1+x.yimgPad)+"px",visibility:"visible"});hs.setStyles(b.oldImg,{top:(g.pos-x.ypos+g.p1-x.yp1+g.get("imgPad")-x.yimgPad)+"px",left:(f.pos-x.xpos+f.p1-x.xp1+f.get("imgPad")-x.ximgPad)+"px"});hs.setStyles(b.newImg,{opacity:u,top:(q.pos-x.ypos+q.p1-x.yp1+q.get("imgPad")-x.yimgPad)+"px",left:(p.pos-x.xpos+p.p1-x.xp1+p.get("imgPad")-x.ximgPad)+"px"});if(k){hs.setStyles(k,{width:x.xsize+"px",height:x.ysize+"px",left:(x.xp1+p.cb)+"px",top:(x.yp1+q.cb)+"px"})}},complete:function(){o.style.visibility=a.style.visibility="visible";a.style.display="block";c.style.display="none";b.a.className+=" highslide-active-anchor";b.afterExpand();e.afterClose();b.last=null}})},reuseOverlay:function(c,a){if(!this.last){return false}for(var b=0;b<this.last.overlays.length;b++){var d=hs.$("hsId"+this.last.overlays[b]);if(d&&d.hsId==c.hsId){this.genOverlayBox();d.reuse=this.key;hs.push(this.overlays,this.last.overlays[b]);return true}}return false},afterExpand:function(){this.isExpanded=true;this.focus();if(this.dimmingOpacity){hs.dim(this)}if(hs.upcoming&&hs.upcoming==this.a){hs.upcoming=null}this.prepareNextOutline();var c=hs.page,a=hs.mouse.x+c.scrollLeft,b=hs.mouse.y+c.scrollTop;this.mouseIsOver=this.x.pos<a&&a<this.x.pos+this.x.get("wsize")&&this.y.pos<b&&b<this.y.pos+this.y.get("wsize");if(this.overlayBox){this.showOverlays()}},prepareNextOutline:function(){var a=this.key;var b=this.outlineType;new hs.Outline(b,function(){try{hs.expanders[a].preloadNext()}catch(c){}})},preloadNext:function(){var b=this.getAdjacentAnchor(1);if(b&&b.onclick.toString().match(/hs\.expand/)){var a=hs.createElement("img",{src:hs.getSrc(b)})}},getAdjacentAnchor:function(c){var b=this.getAnchorIndex(),a=hs.anchors.groups[this.slideshowGroup||"none"];if(!a[b+c]&&this.slideshow&&this.slideshow.repeat){if(c==1){return a[0]}else{if(c==-1){return a[a.length-1]}}}return a[b+c]||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){var b=hs.lang.number.replace("%1",this.getAnchorIndex()+1).replace("%2",a.length);this[this.numberPosition].innerHTML='<div class="highslide-number">'+b+"</div>"+this[this.numberPosition].innerHTML}}},initSlideshow:function(){if(!this.last){for(var a=0;a<hs.slideshows.length;a++){var e=hs.slideshows[a],d=e.slideshowGroup;if(typeof d=="undefined"||d===null||d===this.slideshowGroup){this.slideshow=new hs.Slideshow(this.key,e)}}}else{this.slideshow=this.last.slideshow}var e=this.slideshow;if(!e){return}var b=e.expKey=this.key;e.checkFirstAndLast();e.disable("full-expand");if(e.controls){var c=e.overlayOptions||{};c.overlayId=e.controls;c.hsId="controls";this.createOverlay(c)}if(e.thumbstrip){e.thumbstrip.add(this)}if(!this.last&&this.autoplay){e.play(true)}if(e.autoplay){e.autoplay=setTimeout(function(){hs.next(b)},(e.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){return}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(types,addOverlay){for(var i=0;i<types.length;i++){var type=types[i],s=null;if(!this[type+"Id"]&&this.thumbsUserSetId){this[type+"Id"]=type+"-for-"+this.thumbsUserSetId}if(this[type+"Id"]){this[type]=hs.getNode(this[type+"Id"])}if(!this[type]&&!this[type+"Text"]&&this[type+"Eval"]){try{s=eval(this[type+"Eval"])}catch(e){}}if(!this[type]&&this[type+"Text"]){s=this[type+"Text"]}if(!this[type]&&!s){this[type]=hs.getNode(this.a["_"+type+"Id"]);if(!this[type]){var next=this.a.nextSibling;while(next&&!hs.isHsAnchor(next)){if((new RegExp("highslide-"+type)).test(next.className||null)){if(!next.id){this.a["_"+type+"Id"]=next.id="hsId"+hs.idCounter++}this[type]=hs.getNode(next.id);break}next=next.nextSibling}}}if(!this[type]&&!s&&this.numberPosition==type){s="\n"}if(!this[type]&&s){this[type]=hs.createElement("div",{className:"highslide-"+type,innerHTML:s})}if(addOverlay&&this[type]){var o={position:(type=="heading")?"above":"below"};for(var x in this[type+"Overlay"]){o[x]=this[type+"Overlay"][x]}o.overlayId=this[type];this.createOverlay(o)}}},doShowHide:function(a){if(hs.hideSelects){this.showHideElements("SELECT",a)}if(hs.hideIframes){this.showHideElements("IFRAME",a)}if(hs.geckoMac){this.showHideElements("*",a)}},showHideElements:function(h,j){var d=document.getElementsByTagName(h);var g=h=="*"?"overflow":"visibility";for(var f=0;f<d.length;f++){if(g=="visibility"||(document.defaultView.getComputedStyle(d[f],"").getPropertyValue("overflow")=="auto"||d[f].getAttribute("hidden-by")!=null)){var e=d[f].getAttribute("hidden-by");if(j=="visible"&&e){e=e.replace("["+this.key+"]","");d[f].setAttribute("hidden-by",e);if(!e){d[f].style[g]=d[f].origProp}}else{if(j=="hidden"){var c=hs.getPosition(d[f]);c.w=d[f].offsetWidth;c.h=d[f].offsetHeight;if(!this.dimmingOpacity){var a=(c.x+c.w<this.x.get("opos")||c.x>this.x.get("opos")+this.x.get("osize"));var b=(c.y+c.h<this.y.get("opos")||c.y>this.y.get("opos")+this.y.get("osize"))}var k=hs.getWrapperKey(d[f]);if(!a&&!b&&k!=this.key){if(!e){d[f].setAttribute("hidden-by","["+this.key+"]");d[f].origProp=d[f].style[g];d[f].style[g]="hidden"}else{if(e.indexOf("["+this.key+"]")==-1){d[f].setAttribute("hidden-by",e+"["+this.key+"]")}}}else{if((e=="["+this.key+"]"||hs.focusKey==k)&&k!=this.key){d[f].setAttribute("hidden-by","");d[f].style[g]=d[f].origProp||""}else{if(e&&e.indexOf("["+this.key+"]")>-1){d[f].setAttribute("hidden-by",e.replace("["+this.key+"]",""))}}}}}}}},focus:function(){this.wrapper.style.zIndex=hs.zIndexCounter+=2;for(var b=0;b<hs.expanders.length;b++){if(hs.expanders[b]&&b==hs.focusKey){var a=hs.expanders[b];a.content.className+=" highslide-"+a.contentType+"-blur";a.content.style.cursor=hs.ie?"hand":"pointer";a.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 d,b,c=a.width/a.height;d=Math.max(a.width+a.dX,Math.min(this.minWidth,this.x.full));if(this.isImage&&Math.abs(d-this.x.full)<12){d=this.x.full}b=d/c;if(b<Math.min(this.minHeight,this.y.full)){b=Math.min(this.minHeight,this.y.full);if(this.isImage){d=b*c}}this.resizeTo(d,b)},resizeTo:function(b,a){this.y.setSize(a);this.x.setSize(b);this.wrapper.style.height=this.y.get("wsize")+"px"},close:function(){if(this.isClosing||!this.isExpanded){return}if(this.transitions[1]=="crossfade"&&hs.upcoming){hs.getExpander(hs.upcoming).cancelLoading();hs.upcoming=null}this.isClosing=true;if(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(b){var a=b.overlayId,d=(b.relativeTo=="viewport"&&!/panel$/.test(b.position));if(typeof a=="string"){a=hs.getNode(a)}if(b.html){a=hs.createElement("div",{innerHTML:b.html})}if(!a||typeof a=="string"){return}a.style.display="block";b.hsId=b.hsId||b.overlayId;if(this.transitions[1]=="crossfade"&&this.reuseOverlay(b,a)){return}this.genOverlayBox();var e=b.width&&/^[0-9]+(px|%)$/.test(b.width)?b.width:"auto";if(/^(left|right)panel$/.test(b.position)&&!/^[0-9]+px$/.test(b.width)){e="200px"}var c=hs.createElement("div",{id:"hsId"+hs.idCounter++,hsId:b.hsId},{position:"absolute",visibility:"hidden",width:e,direction:hs.lang.cssDirection||"",opacity:0},d?hs.viewport:this.overlayBox,true);if(d){c.hsKey=this.key}c.appendChild(a);hs.extend(c,{opacity:1,offsetX:0,offsetY:0,dur:(b.fade===0||b.fade===false||(b.fade==2&&hs.ie))?0:250});hs.extend(c,b);if(this.gotOverlays){this.positionOverlay(c);if(!c.hideOnMouseOut||this.mouseIsOver){hs.animate(c,{opacity:c.opacity},c.dur)}}hs.push(this.overlays,hs.idCounter-1)},positionOverlay:function(c){var d=c.position||"middle center",f=(c.relativeTo=="viewport"),a=c.offsetX,b=c.offsetY;if(f){hs.viewport.style.display="block";c.hsKey=this.key;if(c.offsetWidth>c.parentNode.offsetWidth){c.style.width="100%"}}else{if(c.parentNode!=this.overlayBox){this.overlayBox.appendChild(c)}}if(/left$/.test(d)){c.style.left=a+"px"}if(/center$/.test(d)){hs.setStyles(c,{left:"50%",marginLeft:(a-Math.round(c.offsetWidth/2))+"px"})}if(/right$/.test(d)){c.style.right=-a+"px"}if(/^leftpanel$/.test(d)){hs.setStyles(c,{right:"100%",marginRight:this.x.cb+"px",top:-this.y.cb+"px",bottom:-this.y.cb+"px",overflow:"auto"});this.x.p1=c.offsetWidth}else{if(/^rightpanel$/.test(d)){hs.setStyles(c,{left:"100%",marginLeft:this.x.cb+"px",top:-this.y.cb+"px",bottom:-this.y.cb+"px",overflow:"auto"});this.x.p2=c.offsetWidth}}var e=c.parentNode.offsetHeight;c.style.height="auto";if(f&&c.offsetHeight>e){c.style.height=hs.ieLt7?e+"px":"100%"}if(/^top/.test(d)){c.style.top=b+"px"}if(/^middle/.test(d)){hs.setStyles(c,{top:"50%",marginTop:(b-Math.round(c.offsetHeight/2))+"px"})}if(/^bottom/.test(d)){c.style.bottom=-b+"px"}if(/^above$/.test(d)){hs.setStyles(c,{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=c.offsetHeight}else{if(/^below$/.test(d)){hs.setStyles(c,{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=c.offsetHeight;c.style.position="absolute"}}},getOverlays:function(){this.getInline(["heading","caption"],true);this.getNumber();if(this.heading&&this.dragByHeading){this.heading.className+=" highslide-move"}if(hs.showCredits){this.writeCredits()}for(var a=0;a<hs.overlays.length;a++){var b=hs.overlays[a],e=b.thumbnailId,d=b.slideshowGroup;if((!e&&!d)||(e&&e==this.thumbsUserSetId)||(d&&d===this.slideshowGroup)){this.createOverlay(b)}}var c=[];for(var a=0;a<this.overlays.length;a++){var b=hs.$("hsId"+this.overlays[a]);if(/panel$/.test(b.position)){this.positionOverlay(b)}else{hs.push(c,b)}}for(var 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:"auto"},hs.container,true)}},sizeOverlayBox:function(b,a){var f=this.overlayBox,g=this.x,h=this.y;hs.setStyles(f,{width:g.size+"px",height:h.size+"px"});if(b||a){for(var c=0;c<this.overlays.length;c++){var e=hs.$("hsId"+this.overlays[c]);var d=(hs.ieLt7||document.compatMode=="BackCompat");if(e&&/^(above|below)$/.test(e.position)){if(d){e.style.width=(f.offsetWidth+2*g.cb+g.p1+g.p2)+"px"}h[e.position=="above"?"p1":"p2"]=e.offsetHeight}if(e&&d&&/^(left|right)panel$/.test(e.position)){e.style.height=(f.offsetHeight+2*h.cb)+"px"}}}if(b){hs.setStyles(this.content,{top:h.p1+"px"});hs.setStyles(f,{top:(h.p1+h.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(var c=0;c<this.overlays.length;c++){var d=hs.$("hsId"+this.overlays[c]);d.style.zIndex=d.hsId=="controls"?5:4;if(!d.hideOnMouseOut||this.mouseIsOver){d.style.visibility="visible";hs.setStyles(d,{visibility:"visible",display:""});hs.animate(d,{opacity:d.opacity},d.dur)}}},destroyOverlays:function(){if(!this.overlays.length){return}if(this.slideshow){var a=this.slideshow.controls;if(a&&hs.getExpander(a)==this){a.parentNode.removeChild(a)}}for(var b=0;b<this.overlays.length;b++){var d=hs.$("hsId"+this.overlays[b]);if(d&&d.parentNode==hs.viewport&&hs.getExpander(d)==this){hs.discardElement(d)}}hs.discardElement(this.overlayBox)},createFullExpand:function(){if(this.slideshow&&this.slideshow.controls){this.slideshow.enable("full-expand");return}this.fullExpandLabel=hs.createElement("a",{href:"javascript:hs.expanders["+this.key+"].doFullExpand();",title:hs.lang.fullExpandTitle,className:"highslide-full-expand"});this.createOverlay({overlayId:this.fullExpandLabel,position:hs.fullExpandPosition,hideOnMouseOut:true,opacity:hs.fullExpandOpacity})},doFullExpand:function(){try{if(this.fullExpandLabel){hs.discardElement(this.fullExpandLabel)}this.focus();var c=this.x.size;this.resizeTo(this.x.full,this.y.full);var b=this.x.pos-(this.x.size-c)/2;if(b<hs.marginLeft){b=hs.marginLeft}this.moveTo(b,this.y.pos);this.doShowHide("hidden")}catch(a){this.error(a)}},afterClose:function(){this.a.className=this.a.className.replace("highslide-active-anchor","");this.doShowHide("visible");if(this.outline&&this.outlineWhileAnimating){this.outline.destroy()}hs.discardElement(this.wrapper);this.destroyOverlays();if(!hs.viewport.childNodes.length){hs.viewport.style.display="none"}if(this.dimmingOpacity){hs.undim(this.key)}hs.expanders[this.key]=null;hs.reOrder()}};hs.Slideshow=function(a,b){if(hs.dynamicallyUpdateAnchors!==false){hs.updateAnchors()}this.expKey=a;for(var c in b){this[c]=b[c]}if(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={};var c=this;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){return}var b=hs.expanders[this.expKey],a=b.getAnchorIndex(),c=/disabled$/;if(a==0){this.disable("previous")}else{if(c.test(this.btn.previous.getElementsByTagName("a")[0].className)){this.enable("previous")}}if(a+1==hs.anchors.groups[b.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(c){if(!this.btn){return}var e=this,b=this.btn[c].getElementsByTagName("a")[0],d=/disabled$/;b.onclick=function(){e[c]();return false};if(d.test(b.className)){b.className=b.className.replace(d,"")}},disable:function(c){if(!this.btn){return}var b=this.btn[c].getElementsByTagName("a")[0];b.onclick=function(){return false};if(!/disabled$/.test(b.className)){b.className+=" disabled"}},hitSpace:function(){if(this.autoplay){this.pause()}else{this.play()}},play:function(a){if(this.btn){this.btn.play.style.display="none";this.btn.pause.style.display=""}this.autoplay=true;if(!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(q){function a(v){var B=b.childNodes[0].childNodes[0].childNodes[0].childNodes;for(var w=0;w<B.length;w++){var A=B[w].childNodes[0].childNodes[0];if(A.id=="currentProductImage"){var z=document.getElementById("currentProductImageWidth");var x=document.getElementById("currentProductImageHeight");var y=document.getElementById("currentProductImageTopPadding");A.width=z.getAttribute("text");A.height=x.getAttribute("text");A.style.cssText="padding-top: "+y.getAttribute("text")+"px"}}hs.extend(l||{},{overlayId:c,hsId:"thumbstrip",className:"highslide-thumbstrip-"+k+"-overlay "+(l.className||"")});if(hs.ieLt7){l.fade=0}v.createOverlay(l);hs.setStyles(c.parentNode,{overflow:"hidden"})}function m(i){p(undefined,Math.round(i*c[h?"offsetWidth":"offsetHeight"]*0.7))}function p(B,L){if(B===undefined){for(var C=0;C<f.length;C++){if(f[C]==hs.expanders[q.expKey].a){B=C;break}}}if(B===undefined){return}var y=c.getElementsByTagName("a"),v=y[B],z=v.parentNode,D=h?"Left":"Top",K=h?"Right":"Bottom",N=h?"Width":"Height",H="offset"+D,I="offset"+N,J=b.parentNode.parentNode[I],G=J-r[I],A=parseInt(r.style[h?"left":"top"])||0,M=A,F=20;if(L!==undefined){M=A-L;if(M>0){M=0}if(M<G){M=G}}else{for(var C=0;C<y.length;C++){y[C].className=""}v.className="highslide-active-anchor";var w=B>0?y[B-1].parentNode[H]:z[H],x=z[H]+z[I]+(y[B+1]?y[B+1].parentNode[I]:0);if(x>J-A){M=J-x}else{if(w<-A){M=-w}}}var E=z[H]+(z[I]-j[I])/2+M;hs.animate(r,h?{left:M}:{top:M},null,"easeOutQuad");hs.animate(j,h?{left:E}:{top:E},null,"easeOutQuad");o.style.display=M<0?"block":"none";n.style.display=(M>G)?"block":"none"}var f=hs.anchors.groups[hs.expanders[q.expKey].slideshowGroup||"none"],l=q.thumbstrip,k=l.mode||"horizontal",e=(k=="float"),u=e?["div","ul","li","span"]:["table","tbody","tr","td"],h=(k=="horizontal"),c=hs.createElement("div",{className:"highslide-thumbstrip highslide-thumbstrip-"+k,innerHTML:'<div class="highslide-thumbstrip-inner"><'+u[0]+"><"+u[1]+"></"+u[1]+"></"+u[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),d=c.childNodes,b=d[0],o=d[1],n=d[2],j=d[3],r=b.firstChild,s=c.getElementsByTagName(u[1])[0],t;for(var g=0;g<f.length;g++){if(g==0||!h){t=hs.createElement(u[2],null,null,s)}(function(){var i=f[g],v=hs.createElement(u[3],null,null,t),w=g;hs.createElement("a",{href:i.href,onclick:function(){hs.getExpander(this).focus();return hs.transit(i)},innerHTML:hs.stripItemFormatter?hs.stripItemFormatter(i):i.innerHTML},null,v)})()}if(!e){o.onclick=function(){m(-1)};n.onclick=function(){m(1)};hs.addEventListener(s,document.onmousewheel!==undefined?"mousewheel":"DOMMouseScroll",function(v){var i=0;v=v||window.event;if(v.wheelDelta){i=v.wheelDelta/120;if(hs.opera){i=-i}}else{if(v.detail){i=-v.detail/3}}if(i){m(-i*0.2)}if(v.preventDefault){v.preventDefault()}v.returnValue=false})}return{add:a,selectThumb:p}};hs.langDefaults=hs.lang;var HsExpander=hs.Expander;if(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.addEventListener(document,"ready",function(){if(hs.expandCursor||hs.dimmingOpacity){var c=hs.createElement("style",{type:"text/css"},null,document.getElementsByTagName("HEAD")[0]);function a(f,d){if(!hs.ie){c.appendChild(document.createTextNode(f+" {"+d+"}"))}else{var e=document.styleSheets[document.styleSheets.length-1];if(typeof(e.addRule)=="object"){e.addRule(f,d)}}}function b(d){return"expression( ( ( ignoreMe = document.documentElement."+d+" ? document.documentElement."+d+" : document.body."+d+" ) ) + 'px' );"}if(hs.expandCursor){a(".highslide img","cursor: url("+hs.graphicsDir+hs.expandCursor+"), pointer !important;")}a(".highslide-viewport-size",(hs.ieLt7||(hs.ie&&document.compatMode=="BackCompat"))?"position: absolute; left:"+b("scrollLeft")+"top:"+b("scrollTop")+"width:"+b("clientWidth")+"height:"+b("clientHeight"):"position: fixed; width: 100%; height: 100%; left: 0; top: 0")}});hs.addEventListener(window,"resize",function(){hs.getPageSize();if(hs.viewport){for(var b=0;b<hs.viewport.childNodes.length;b++){var c=hs.viewport.childNodes[b],a=hs.getExpander(c);a.positionOverlay(c);if(c.hsId=="thumbstrip"){a.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)};
