if(!hs){var hs={lang:{cssDirection:'ltr',loadingText:'Loading...',loadingTitle:'Click to cancel',restoreTitle:'Click to close image'},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,minWidth:200,minHeight:200,expanders:[],overrides:['wrapperClassName','minWidth','minHeight','maxWidth','maxHeight','slideshowGroup','easing','easingClose','fadeInOut','src'],timers:[],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),$:function(a){if(a)return document.getElementById(a)},push:function(a,b){a[a.length]=b},createElement:function(a,b,c,d,e){var f=document.createElement(a);if(b)hs.extend(f,b);if(e)hs.setStyles(f,{padding:0,border:'none',margin:0});if(c)hs.setStyles(f,c);if(d)d.appendChild(f);return f},extend:function(a,b){for(var x in b)a[x]=b[x];return a},setStyles:function(a,b){for(var x in b){if(hs.ie&&x=='opacity'){if(b[x]>0.99)a.style.removeAttribute('filter');else a.style.filter='alpha(opacity='+(b[x]*100)+')'}else a.style[x]=b[x]}},animate:function(a,b,c){var d,end,unit;if(typeof c!='object'||c===null){var f=arguments;c={duration:f[2],easing:f[3],complete:f[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 e=new hs.fx(a,c,g);d=parseFloat(hs.css(a,g))||0;end=parseFloat(b[g]);unit=g!='opacity'?'px':'';e.custom(d,end,unit)}},css:function(c,d){if(document.defaultView){return document.defaultView.getComputedStyle(c,null).getPropertyValue(d)}else{if(d=='opacity')d='filter';var e=c.currentStyle[d.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()})];if(d=='filter')e=e.replace(/alpha\(opacity=([0-9]+)\)/,function(a,b){return b/100});return e===''?1:e}},getPageSize:function(){var d=document,w=window,iebody=d.compatMode&&d.compatMode!='BackCompat'?d.documentElement:d.body;var a=hs.ie?iebody.clientWidth:(d.documentElement.clientWidth||self.innerWidth),height=hs.ie?iebody.clientHeight:self.innerHeight;hs.page={width:a,height:height,scrollLeft:hs.ie?iebody.scrollLeft:pageXOffset,scrollTop:hs.ie?iebody.scrollTop:pageYOffset}},getPosition:function(a){var p={x:a.offsetLeft,y:a.offsetTop};while(a.offsetParent){a=a.offsetParent;p.x+=a.offsetLeft;p.y+=a.offsetTop;if(a!=document.body&&a!=document.documentElement){p.x-=a.scrollLeft;p.y-=a.scrollTop}}return p},expand:function(a,b,c,d){if(!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(e){return true}},getParam:function(a,b){a.getParams=a.onclick;var p=a.getParams?a.getParams():null;a.getParams=null;return(p&&typeof p[b]!='undefined')?p[b]:(typeof hs[b]!='undefined'?hs[b]:null)},getSrc:function(a){var b=hs.getParam(a,'src');if(b)return b;return a.href},discardElement:function(d){if(d)hs.garbageBin.appendChild(d);hs.garbageBin.innerHTML=''},getWrapperKey:function(a,b){var c,re=/^highslide-wrapper-([0-9]+)$/;c=a;while(c.parentNode){if(c.id&&re.test(c.id))return c.id.replace(re,"$1");c=c.parentNode}if(!b){c=a;while(c.parentNode){if(c.tagName&&hs.isHsAnchor(c)){for(var d=0;d<hs.expanders.length;d++){var e=hs.expanders[d];if(e&&e.a==c)return d}}c=c.parentNode}}return null},getExpander:function(a,b){if(typeof a=='undefined')return hs.expanders[hs.focusKey]||null;if(typeof a=='number')return hs.expanders[a]||null;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/))},addEventListener:function(a,b,c){if(a==document&&b=='ready')hs.push(hs.onReady,c);try{a.addEventListener(b,c,false)}catch(e){try{a.detachEvent('on'+b,c);a.attachEvent('on'+b,c)}catch(e){a['on'+b]=c}}},removeEventListener:function(a,b,c){try{a.removeEventListener(b,c,false)}catch(e){try{a.detachEvent('on'+b,c)}catch(e){a['on'+b]=null}}},init:function(){if(!hs.container){hs.getPageSize();hs.ieLt7=hs.ie&&hs.uaVersion<7;for(var x in hs.langDefaults){if(typeof hs[x]!='undefined')hs.lang[x]=hs[x];else if(typeof hs.lang[x]=='undefined'&&typeof hs.langDefaults[x]!='undefined')hs.lang[x]=hs.langDefaults[x]}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);Math.linearTween=function(t,b,c,d){return c*t/d+b};Math.easeInQuad=function(t,b,c,d){return c*(t/=d)*t+b}}},ready:function(){if(hs.isReady)return;hs.isReady=true;for(var i=0;i<hs.onReady.length;i++)hs.onReady[i]()},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(b,c,d){this.startTime=(new Date()).getTime();this.start=b;this.end=c;this.unit=d;this.now=this.start;this.pos=this.state=0;var e=this;function t(a){return e.step(a)}t.elem=this.elem;if(t()&&hs.timers.push(t)==1){hs.timerId=setInterval(function(){var a=hs.timers;for(var i=0;i<a.length;i++)if(!a[i]())a.splice(i--,1);if(!a.length){clearInterval(hs.timerId)}},13)}},step:function(a){var t=(new Date()).getTime();if(a||t>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var b=true;for(var i in this.options.curAnim)if(this.options.curAnim[i]!==true)b=false;if(b){if(this.options.complete)this.options.complete.call(this.elem)}return false}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=this.options.easing(n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};hs.extend(hs.fx,{step:{opacity:function(a){hs.setStyles(a.elem,{opacity:a.now})},_default:function(a){try{if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=a.now+a.unit;else a.elem[a.prop]=a.now}catch(e){}}}});hs.Dimension=function(a,b){this.exp=a;this.dim=b;this.ucwh=b=='x'?'Width':'Height';this.wh=this.ucwh.toLowerCase();this.uclt=b=='x'?'Left':'Top';this.lt=this.uclt.toLowerCase();this.ucrb=b=='x'?'Right':'Bottom';this.rb=this.ucrb.toLowerCase()};hs.Dimension.prototype={get:function(a){switch(a){case'loadingPos':return this.tpos+this.tb+(this.t-hs.loading['offset'+this.ucwh])/2;case'wsize':return this.size+2*this.cb;case'fitsize':return this.clientSize-this.marginMin-this.marginMax;case'maxsize':return this.get('fitsize')-2*this.cb;case'opos':return this.pos;case'osize':return this.get('wsize')}},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';this.pos=this.tpos-this.cb+this.tb;if(this.maxHeight&&this.dim=='x')a.maxWidth=Math.min(a.maxWidth||this.full,a.maxHeight*this.full/a.y.full);this.size=Math.min(this.full,a['max'+this.ucwh]||this.full);this.minSize=this.full;this.marginMin=hs['margin'+this.uclt];this.scroll=hs.page['scroll'+this.uclt];this.clientSize=hs.page[this.wh]},setSize:function(i){var a=this.exp;this.size=i;a.content.style[this.wh]=i+'px';a.wrapper.style[this.wh]=this.get('wsize')+'px'},setPos:function(i){this.pos=i;this.exp.wrapper.style[this.lt]=i+'px'}};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)});return}this.a=a;this.custom=c;this.contentType=d||'image';this.isImage=!this.isHtml;hs.init();var e=this.key=hs.expanders.length;for(var i=0;i<hs.overrides.length;i++){var f=hs.overrides[i];this[f]=b&&typeof b[f]!='undefined'?b[f]:hs[f]}if(!this.src)this.src=a.href;var g=(b&&b.thumbnailId)?hs.$(b.thumbnailId):a;g=this.thumb=g.getElementsByTagName('img')[0]||g;this.thumbsUserSetId=g.id||a.id;for(var i=0;i<hs.expanders.length;i++){if(hs.expanders[i]&&hs.expanders[i].a==a){hs.expanders[i].focus();return false}}if(!hs.allowSimultaneousLoading)for(var i=0;i<hs.expanders.length;i++){if(hs.expanders[i]&&hs.expanders[i].thumb!=g&&!hs.expanders[i].onLoadStarted){hs.expanders[i].cancelLoading()}}hs.expanders[e]=this;if(hs.expanders[e-1])hs.expanders[e-1].close();if(typeof hs.focusKey!='undefined'&&hs.expanders[hs.focusKey])hs.expanders[hs.focusKey].close();this.el=g;this.tpos=hs.getPosition(g);hs.getPageSize();var x=this.x=new hs.Dimension(this,'x');x.calcThumb();var y=this.y=new hs.Dimension(this,'y');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[this.contentType+'Create']();return true};hs.Expander.prototype={error:function(e){window.location.href=this.src},showLoading:function(){if(this.onLoadStarted||this.loading)return;this.loading=hs.loading;var a=this;this.loading.onclick=function(){a.cancelLoading()};var a=this,l=this.x.get('loadingPos')+'px',t=this.y.get('loadingPos')+'px';setTimeout(function(){if(a.loading)hs.setStyles(a.loading,{left:l,top:t,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()};b.onclick=function(){try{a.close()}catch(e){}};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 x=this.x,y=this.y;if(this.loading){hs.setStyles(this.loading,{top:'-9999px'});this.loading=null}x.full=this.content.width;y.full=this.content.height;hs.setStyles(this.content,{width:x.t+'px',height:y.t+'px'});this.wrapper.appendChild(this.content);hs.container.appendChild(this.wrapper);x.calcBorders();y.calcBorders();hs.setStyles(this.wrapper,{left:(x.tpos+x.tb-x.cb)+'px',top:(y.tpos+x.tb-y.cb)+'px'});var a=x.full/y.full;x.calcExpanded();this.justify(x);y.calcExpanded();this.justify(y);this.show()}catch(e){this.error(e)}},justify:function(p,a){var b,tgt=p.target,dim=p==this.x?'x':'y';var c=false;p.pos=Math.round(p.pos-((p.get('wsize')-p.t)/2));if(p.pos<p.scroll+p.marginMin){p.pos=p.scroll+p.marginMin;c=true}if(p.pos+p.get('wsize')>p.scroll+p.clientSize-p.marginMax){if(!a&&c){}else if(p.get('wsize')<p.get('fitsize')){p.pos=p.scroll+p.clientSize-p.marginMax-p.get('wsize')}else{p.pos=p.scroll+p.marginMin}}if(p.pos<p.marginMin){var d=p.pos;p.pos=p.marginMin}},show:function(){var x=this.x,y=this.y;this.changeSize(1,{wrapper:{width:x.get('wsize'),height:y.get('wsize'),left:x.pos,top:y.pos},content:{width:x.size,height:y.size}},hs.expandDuration)},changeSize:function(c,d,e){var f=this,x=f.x,y=f.y,easing=this.easing;if(!c)easing=this.easingClose||easing;var g=c?function(){setTimeout(function(){f.afterExpand()},50)}:function(){f.afterClose()};if(c)hs.setStyles(this.wrapper,{width:x.t+'px',height:y.t+'px'});if(this.fadeInOut){hs.setStyles(this.wrapper,{opacity:c?0:1});hs.extend(d.wrapper,{opacity:c})}hs.animate(this.wrapper,d.wrapper,{duration:e,easing:easing,step:function(a,b){}});hs.animate(this.content,d.content,e,easing,g);if(c){this.wrapper.style.visibility='visible';this.content.style.visibility='visible';this.a.className+=' highslide-active-anchor'}},afterExpand:function(){this.isExpanded=true;this.focus()},cancelLoading:function(){hs.discardElement(this.wrapper);hs.expanders[this.key]=null;if(this.loading)hs.loading.style.left='-9999px'},focus:function(){this.wrapper.style.zIndex=hs.zIndexCounter+=2;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},close:function(){if(this.isClosing||!this.isExpanded)return;this.isClosing=true;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:{width:this.x.t,height:this.y.t}},hs.restoreDuration)}catch(e){this.afterClose()}},afterClose:function(){this.a.className=this.a.className.replace('highslide-active-anchor','');hs.discardElement(this.wrapper);hs.expanders[this.key]=null}};hs.langDefaults=hs.lang;var HsExpander=hs.Expander;if(hs.ie){(function(){try{document.documentElement.doScroll('left')}catch(e){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){var d=hs.createElement('style',{type:'text/css'},null,document.getElementsByTagName('HEAD')[0]);function addRule(a,b){if(!hs.ie){d.appendChild(document.createTextNode(a+" {"+b+"}"))}else{var c=document.styleSheets[document.styleSheets.length-1];if(typeof(c.addRule)=="object")c.addRule(a,b)}}function fix(a){return'expression( ( ( ignoreMe = document.documentElement.'+a+' ? document.documentElement.'+a+' : document.body.'+a+' ) ) + \'px\' );'}if(hs.expandCursor)addRule('.highslide img','cursor: url('+hs.graphicsDir+hs.expandCursor+'), pointer !important;')}});hs.addEventListener(window,'resize',function(){hs.getPageSize()})}