var hs={lang:{cssDirection:"ltr",loadingText:"",loadingTitle:"",focusTitle:"",fullExpandTitle:"",creditsText:"",creditsTitle:"",previousText:"",nextText:"",moveText:"",closeText:"",closeTitle:"",resizeTitle:"",playText:"",playTitle:"",pauseText:"",pauseTitle:"",previousTitle:"",nextTitle:"",moveTitle:"",fullExpandText:"1:1",number:"%1 / %2",restoreTitle:""},graphicsDir:"/images/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:false,numberOfImagesToPreload:5,outlineWhileAnimating:2,outlineStartOffset:3,padToMinWidth:true,fullExpandPosition:"bottom right",fullExpandOpacity:1,showCredits:false,creditsHref:"",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",wrapperClassName:"highslide-wrapper",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(id){
if(id){
return document.getElementById(id);
}
},push:function(_1,_2){
_1[_1.length]=_2;
},createElement:function(_3,_4,_5,_6,_7){
var el=document.createElement(_3);
if(_4){
hs.extend(el,_4);
}
if(_7){
hs.setStyles(el,{padding:0,border:"none",margin:0});
}
if(_5){
hs.setStyles(el,_5);
}
if(_6){
_6.appendChild(el);
}
return el;
},extend:function(el,_8){
for(var x in _8){
el[x]=_8[x];
}
return el;
},setStyles:function(el,_9){
for(var x in _9){
if(hs.ie&&x=="opacity"){
if(_9[x]>0.99){
el.style.removeAttribute("filter");
}else{
el.style.filter="alpha(opacity="+(_9[x]*100)+")";
}
}else{
el.style[x]=_9[x];
}
}
},animate:function(el,_a,_b){
var _c,_d,_e;
if(typeof _b!="object"||_b===null){
var _f=arguments;
_b={duration:_f[2],easing:_f[3],complete:_f[4]};
}
if(typeof _b.duration!="number"){
_b.duration=250;
}
_b.easing=Math[_b.easing]||Math.easeInQuad;
_b.curAnim=hs.extend({},_a);
for(var _10 in _a){
var e=new hs.fx(el,_b,_10);
_c=parseFloat(hs.css(el,_10))||0;
_d=parseFloat(_a[_10]);
_e=_10!="opacity"?"px":"";
e.custom(_c,_d,_e);
}
},css:function(el,_11){
if(document.defaultView){
return document.defaultView.getComputedStyle(el,null).getPropertyValue(_11);
}else{
if(_11=="opacity"){
_11="filter";
}
var val=el.currentStyle[_11.replace(/\-(\w)/g,function(a,b){
return b.toUpperCase();
})];
if(_11=="filter"){
val=val.replace(/alpha\(opacity=([0-9]+)\)/,function(a,b){
return b/100;
});
}
return val===""?1:val;
}
},getPageSize:function(){
var d=document,w=window,_12=d.compatMode&&d.compatMode!="BackCompat"?d.documentElement:d.body;
var b=d.body;
var _13=(w.innerWidth&&w.scrollMaxX)?w.innerWidth+w.scrollMaxX:Math.max(b.scrollWidth,b.offsetWidth),_14=(w.innerHeight&&window.scrollMaxY)?w.innerHeight+w.scrollMaxY:Math.max(b.scrollHeight,b.offsetHeight),_15=hs.ie?_12.scrollWidth:(d.documentElement.clientWidth||self.innerWidth),_16=hs.ie?Math.max(_12.scrollHeight,_12.clientHeight):(d.documentElement.clientHeight||self.innerHeight);
var _17=hs.ie?_12.clientWidth:(d.documentElement.clientWidth||self.innerWidth),_18=hs.ie?_12.clientHeight:self.innerHeight;
return {pageWidth:Math.max(_15,_13),pageHeight:Math.max(_16,_14),width:_17,height:_18,scrollLeft:hs.ie?_12.scrollLeft:pageXOffset,scrollTop:hs.ie?_12.scrollTop:pageYOffset};
},getPosition:function(el){
var p={x:el.offsetLeft,y:el.offsetTop};
while(el.offsetParent){
el=el.offsetParent;
p.x+=el.offsetLeft;
p.y+=el.offsetTop;
if(el!=document.body&&el!=document.documentElement){
p.x-=el.scrollLeft;
p.y-=el.scrollTop;
}
}
return p;
},expand:function(a,_19,_1a,_1b){
if(!a){
a=hs.createElement("a",null,{display:"none"},hs.container);
}
if(typeof a.getParams=="function"){
return _19;
}
try{
new hs.Expander(a,_19,_1a);
return false;
}
catch(e){
return true;
}
},getElementByClass:function(el,_1c,_1d){
var els=el.getElementsByTagName(_1c);
for(var i=0;i<els.length;i++){
if((new RegExp(_1d)).test(els[i].className)){
return els[i];
}
}
return null;
},replaceLang:function(s){
s=s.replace(/\s/g," ");
var re=/{hs\.lang\.([^}]+)\}/g,_1e=s.match(re),_1f;
if(_1e){
for(var i=0;i<_1e.length;i++){
_1f=_1e[i].replace(re,"$1");
if(typeof hs.lang[_1f]!="undefined"){
s=s.replace(_1e[i],hs.lang[_1f]);
}
}
}
return s;
},focusTopmost:function(){
var _20=0,_21=-1,_22=hs.expanders,exp,_23;
for(var i=0;i<_22.length;i++){
exp=_22[i];
if(exp){
_23=exp.wrapper.style.zIndex;
if(_23&&_23>_20){
_20=_23;
_21=i;
}
}
}
if(_21==-1){
hs.focusKey=-1;
}else{
_22[_21].focus();
}
},getParam:function(a,_24){
a.getParams=a.onclick;
var p=a.getParams?a.getParams():null;
a.getParams=null;
return (p&&typeof p[_24]!="undefined")?p[_24]:(typeof hs[_24]!="undefined"?hs[_24]:null);
},getSrc:function(a){
var src=hs.getParam(a,"src");
if(src){
return src;
}
return a.href;
},getNode:function(id){
var _25=hs.$(id),_26=hs.clones[id],a={};
if(!_25&&!_26){
return null;
}
if(!_26){
_26=_25.cloneNode(true);
_26.id="";
hs.clones[id]=_26;
return _25;
}else{
return _26.cloneNode(true);
}
},discardElement:function(d){
hs.garbageBin.appendChild(d);
hs.garbageBin.innerHTML="";
},dim:function(exp){
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+="|"+exp.key;
if(hs.geckoMac&&hs.dimmingGeckoFix){
hs.setStyles(hs.dimmer,{background:"url("+hs.graphicsDir+"geckodimmer.png)",opacity:1});
}else{
hs.animate(hs.dimmer,{opacity:exp.dimmingOpacity},hs.dimmingDuration);
}
},undim:function(key){
if(!hs.dimmer){
return;
}
if(typeof key!="undefined"){
hs.dimmer.owner=hs.dimmer.owner.replace("|"+key,"");
}
if((typeof key!="undefined"&&hs.dimmer.owner!="")||(hs.upcoming&&hs.getParam(hs.upcoming,"dimmingOpacity"))){
return;
}
if(hs.geckoMac&&hs.dimmingGeckoFix){
hs.setStyles(hs.dimmer,{background:"none",width:0,height:0});
}else{
hs.animate(hs.dimmer,{opacity:0},hs.dimmingDuration,null,function(){
hs.setStyles(hs.dimmer,{display:"none",width:0,height:0});
});
}
},setDimmerSize:function(exp){
if(!hs.dimmer){
return;
}
var h=(hs.ie&&exp&&exp.wrapper)?parseInt(exp.wrapper.style.top)+parseInt(exp.wrapper.style.height)+(exp.outline?exp.outline.offset:0):0;
hs.setStyles(hs.dimmer,{width:hs.page.pageWidth+"px",height:Math.max(hs.page.pageHeight,h)+"px"});
},transit:function(adj,exp){
var _27=exp=exp||hs.getExpander();
if(hs.upcoming){
return false;
}else{
hs.last=_27;
}
try{
hs.upcoming=adj;
adj.onclick();
}
catch(e){
hs.last=hs.upcoming=null;
}
try{
if(!adj||exp.transitions[1]!="crossfade"){
exp.close();
}
}
catch(e){
}
return false;
},previousOrNext:function(el,op){
var exp=hs.getExpander(el);
if(exp){
adj=exp.getAdjacentAnchor(op);
return hs.transit(adj,exp);
}else{
return false;
}
},previous:function(el){
return hs.previousOrNext(el,-1);
},next:function(el){
return hs.previousOrNext(el,1);
},keyHandler:function(e){
if(!e){
e=window.event;
}
if(!e.target){
e.target=e.srcElement;
}
if(typeof e.target.form!="undefined"){
return true;
}
var exp=hs.getExpander();
var op=null;
switch(e.keyCode){
case 70:
if(exp){
exp.doFullExpand();
}
return true;
case 32:
op=2;
break;
case 34:
case 39:
case 40:
op=1;
break;
case 8:
case 33:
case 37:
case 38:
op=-1;
break;
case 27:
case 13:
op=0;
}
if(op!==null){
if(op!=2){
hs.removeEventListener(document,window.opera?"keypress":"keydown",hs.keyHandler);
}
if(!hs.enableKeyListener){
return true;
}
if(e.preventDefault){
e.preventDefault();
}else{
e.returnValue=false;
}
if(exp){
if(op==0){
exp.close();
}else{
if(op==2){
if(exp.slideshow){
exp.slideshow.hitSpace();
}
}else{
if(exp.slideshow){
exp.slideshow.pause();
}
hs.previousOrNext(exp.key,op);
}
}
return false;
}
}
return true;
},registerOverlay:function(_28){
hs.push(hs.overlays,hs.extend(_28,{hsId:"hsId"+hs.idCounter++}));
},addSlideshow:function(_29){
var sg=_29.slideshowGroup;
if(typeof sg=="object"){
for(var i=0;i<sg.length;i++){
var o={};
for(var x in _29){
o[x]=_29[x];
}
o.slideshowGroup=sg[i];
hs.push(hs.slideshows,o);
}
}else{
hs.push(hs.slideshows,_29);
}
},getWrapperKey:function(_2a,_2b){
var el,re=/^highslide-wrapper-([0-9]+)$/;
el=_2a;
while(el.parentNode){
if(el.hsKey!==undefined){
return el.hsKey;
}
if(el.id&&re.test(el.id)){
return el.id.replace(re,"$1");
}
el=el.parentNode;
}
if(!_2b){
el=_2a;
while(el.parentNode){
if(el.tagName&&hs.isHsAnchor(el)){
for(var key=0;key<hs.expanders.length;key++){
var exp=hs.expanders[key];
if(exp&&exp.a==el){
return key;
}
}
}
el=el.parentNode;
}
}
return null;
},getExpander:function(el,_2c){
if(typeof el=="undefined"){
return hs.expanders[hs.focusKey]||null;
}
if(typeof el=="number"){
return hs.expanders[el]||null;
}
if(typeof el=="string"){
el=hs.$(el);
}
return hs.expanders[hs.getWrapperKey(el,_2c)]||null;
},isHsAnchor:function(a){
return (a.onclick&&a.onclick.toString().replace(/\s/g," ").match(/hs.(htmlE|e)xpand/));
},reOrder:function(){
for(var i=0;i<hs.expanders.length;i++){
if(hs.expanders[i]&&hs.expanders[i].isExpanded){
hs.focusTopmost();
}
}
},mouseClickHandler:function(e){
if(!e){
e=window.event;
}
if(e.button>1){
return true;
}
if(!e.target){
e.target=e.srcElement;
}
var el=e.target;
while(el.parentNode&&!(/highslide-(image|move|html|resize)/.test(el.className))){
el=el.parentNode;
}
var exp=hs.getExpander(el);
if(exp&&(exp.isClosing||!exp.isExpanded)){
return true;
}
if(exp&&e.type=="mousedown"){
if(e.target.form){
return true;
}
var _2d=el.className.match(/highslide-(image|move|resize)/);
if(_2d){
hs.dragArgs={exp:exp,type:_2d[1],left:exp.x.pos,width:exp.x.size,top:exp.y.pos,height:exp.y.size,clickX:e.clientX,clickY:e.clientY};
hs.addEventListener(document,"mousemove",hs.dragHandler);
if(e.preventDefault){
e.preventDefault();
}
if(/highslide-(image|html)-blur/.test(exp.content.className)){
exp.focus();
hs.hasFocused=true;
}
return false;
}
}else{
if(e.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 _2e=hs.dragArgs.hasDragged;
if(!_2e&&!hs.hasFocused&&!/(move|resize)/.test(hs.dragArgs.type)){
exp.close();
}else{
if(_2e||(!_2e&&hs.hasHtmlExpanders)){
hs.dragArgs.exp.doShowHide("hidden");
}
}
if(_2e){
hs.setDimmerSize(exp);
}
hs.hasFocused=false;
hs.dragArgs=null;
}else{
if(/highslide-image-blur/.test(el.className)){
el.style.cursor=hs.styleRestoreCursor;
}
}
}
}
return false;
},dragHandler:function(e){
if(!hs.dragArgs){
return true;
}
if(!e){
e=window.event;
}
var a=hs.dragArgs,exp=a.exp;
a.dX=e.clientX-a.clickX;
a.dY=e.clientY-a.clickY;
var _2f=Math.sqrt(Math.pow(a.dX,2)+Math.pow(a.dY,2));
if(!a.hasDragged){
a.hasDragged=(a.type!="image"&&_2f>0)||(_2f>(hs.dragSensitivity||5));
}
if(a.hasDragged&&e.clientX>5&&e.clientY>5){
if(a.type=="resize"){
exp.resize(a);
}else{
exp.moveTo(a.left+a.dX,a.top+a.dY);
if(a.type=="image"){
exp.content.style.cursor="move";
}
}
}
return false;
},wrapperMouseHandler:function(e){
try{
if(!e){
e=window.event;
}
var _30=/mouseover/i.test(e.type);
if(!e.target){
e.target=e.srcElement;
}
if(hs.ie){
e.relatedTarget=_30?e.fromElement:e.toElement;
}
var exp=hs.getExpander(e.target);
if(!exp.isExpanded){
return;
}
if(!exp||!e.relatedTarget||hs.getExpander(e.relatedTarget,true)==exp||hs.dragArgs){
return;
}
for(var i=0;i<exp.overlays.length;i++){
(function(){
var o=hs.$("hsId"+exp.overlays[i]);
if(o&&o.hideOnMouseOut){
if(_30){
hs.setStyles(o,{visibility:"visible"});
}
hs.animate(o,{opacity:_30?o.opacity:0},o.dur);
}
})();
}
}
catch(e){
}
},addEventListener:function(el,_31,_32){
if(el==document&&_31=="ready"){
hs.push(hs.onReady,_32);
}
try{
el.addEventListener(_31,_32,false);
}
catch(e){
try{
el.detachEvent("on"+_31,_32);
el.attachEvent("on"+_31,_32);
}
catch(e){
el["on"+_31]=_32;
}
}
},removeEventListener:function(el,_33,_34){
try{
el.removeEventListener(_33,_34,false);
}
catch(e){
try{
el.detachEvent("on"+_33,_34);
}
catch(e){
el["on"+_33]=null;
}
}
},preloadFullImage:function(i){
if(hs.continuePreloading&&hs.preloadTheseImages[i]&&hs.preloadTheseImages[i]!="undefined"){
var img=document.createElement("img");
img.onload=function(){
img=null;
hs.preloadFullImage(i+1);
};
img.src=hs.preloadTheseImages[i];
}
},preloadImages:function(_35){
if(_35&&typeof _35!="object"){
hs.numberOfImagesToPreload=_35;
}
var arr=hs.getAnchors();
for(var i=0;i<arr.images.length&&i<hs.numberOfImagesToPreload;i++){
hs.push(hs.preloadTheseImages,hs.getSrc(arr.images[i]));
}
if(hs.outlineType){
new hs.Outline(hs.outlineType,function(){
hs.preloadFullImage(0);
});
}else{
hs.preloadFullImage(0);
}
if(hs.restoreCursor){
var cur=hs.createElement("img",{src:hs.graphicsDir+hs.restoreCursor});
}
},init:function(){
if(!hs.container){
hs.page=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);
hs.viewport=hs.createElement("div",{className:"highslide-viewport"},null,hs.container,1);
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;
};
Math.easeOutQuad=function(t,b,c,d){
return -c*(t/=d)*(t-2)+b;
};
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 i=0;i<hs.onReady.length;i++){
hs.onReady[i]();
}
},updateAnchors:function(){
var el,els,all=[],_36=[],_37={},re;
for(var i=0;i<hs.openerTagNames.length;i++){
els=document.getElementsByTagName(hs.openerTagNames[i]);
for(var j=0;j<els.length;j++){
el=els[j];
re=hs.isHsAnchor(el);
if(re){
hs.push(all,el);
if(re[0]=="hs.expand"){
hs.push(_36,el);
}
var g=hs.getParam(el,"slideshowGroup")||"none";
if(!_37[g]){
_37[g]=[];
}
hs.push(_37[g],el);
}
}
}
hs.anchors={all:all,groups:_37,images:_36};
return hs.anchors;
},getAnchors:function(){
return hs.anchors||hs.updateAnchors();
},close:function(el){
var exp=hs.getExpander(el);
if(exp){
exp.close();
}
return false;
}};
hs.fx=function(_38,_39,_3a){
this.options=_39;
this.elem=_38;
this.prop=_3a;
if(!_39.orig){
_39.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(_3b,to,_3c){
this.startTime=(new Date()).getTime();
this.start=_3b;
this.end=to;
this.unit=_3c;
this.now=this.start;
this.pos=this.state=0;
var _3d=this;
function t(_3e){
return _3d.step(_3e);
};
t.elem=this.elem;
if(t()&&hs.timers.push(t)==1){
hs.timerId=setInterval(function(){
var _3f=hs.timers;
for(var i=0;i<_3f.length;i++){
if(!_3f[i]()){
_3f.splice(i--,1);
}
}
if(!_3f.length){
clearInterval(hs.timerId);
}
},13);
}
},step:function(_40){
var t=(new Date()).getTime();
if(_40||t>=this.options.duration+this.startTime){
this.now=this.end;
this.pos=this.state=1;
this.update();
this.options.curAnim[this.prop]=true;
var _41=true;
for(var i in this.options.curAnim){
if(this.options.curAnim[i]!==true){
_41=false;
}
}
if(_41){
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(fx){
hs.setStyles(fx.elem,{opacity:fx.now});
},_default:function(fx){
if(fx.elem.style&&fx.elem.style[fx.prop]!=null){
fx.elem.style[fx.prop]=fx.now+fx.unit;
}else{
fx.elem[fx.prop]=fx.now;
}
}}});
hs.Outline=function(_42,_43){
this.onLoad=_43;
this.outlineType=_42;
var v=hs.uaVersion,tr;
this.hasAlphaImageLoader=hs.ie&&v>=5.5&&v<7;
if(!_42){
if(_43){
_43();
}
return;
}
hs.init();
this.table=hs.createElement("table",{cellSpacing:0},{visibility:"hidden",position:"absolute",borderCollapse:"collapse",width:0},hs.container,true);
var _44=hs.createElement("tbody",null,null,this.table,1);
this.td=[];
for(var i=0;i<=8;i++){
if(i%3==0){
tr=hs.createElement("tr",null,{height:"auto"},_44,true);
}
this.td[i]=hs.createElement("td",null,null,tr,true);
var _45=i!=4?{lineHeight:0,fontSize:0}:{position:"relative"};
hs.setStyles(this.td[i],_45);
}
this.td[4].className=_42+" highslide-outline";
this.preloadGraphic();
};
hs.Outline.prototype={preloadGraphic:function(){
var src=hs.graphicsDir+(hs.outlinesDir||"outlines/")+this.outlineType+".png";
var _46=hs.safari?hs.container:null;
this.graphic=hs.createElement("img",null,{position:"absolute",top:"-9999px"},_46,true);
var _47=this;
this.graphic.onload=function(){
_47.onGraphicLoad();
};
this.graphic.src=src;
},onGraphicLoad:function(){
var o=this.offset=this.graphic.width/4,pos=[[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],dim={height:(2*o)+"px",width:(2*o)+"px"};
for(var i=0;i<=8;i++){
if(pos[i]){
if(this.hasAlphaImageLoader){
var w=(i==1||i==7)?"100%":this.graphic.width+"px";
var div=hs.createElement("div",null,{width:"100%",height:"100%",position:"relative",overflow:"hidden"},this.td[i],true);
hs.createElement("div",null,{filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale, src='"+this.graphic.src+"')",position:"absolute",width:w,height:this.graphic.height+"px",left:(pos[i][0]*o)+"px",top:(pos[i][1]*o)+"px"},div,true);
}else{
hs.setStyles(this.td[i],{background:"url("+this.graphic.src+") "+(pos[i][0]*o)+"px "+(pos[i][1]*o)+"px"});
}
if(window.opera&&(i==3||i==5)){
hs.createElement("div",null,dim,this.td[i],true);
}
hs.setStyles(this.td[i],dim);
}
}
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(pos,_48,vis,dur,_49){
var exp=this.exp,stl=exp.wrapper.style,_48=_48||0,pos=pos||{x:exp.x.pos+_48,y:exp.y.pos+_48,w:exp.x.get("wsize")-2*_48,h:exp.y.get("wsize")-2*_48};
if(vis){
this.table.style.visibility=(pos.h>=4*this.offset)?"visible":"hidden";
}
hs.setStyles(this.table,{left:(pos.x-this.offset)+"px",top:(pos.y-this.offset)+"px",width:(pos.w+2*this.offset)+"px"});
pos.w-=2*this.offset;
pos.h-=2*this.offset;
hs.setStyles(this.td[4],{width:pos.w>=0?pos.w+"px":0,height:pos.h>=0?pos.h+"px":0});
if(this.hasAlphaImageLoader){
this.td[3].style.height=this.td[5].style.height=this.td[4].style.height;
}
},destroy:function(_4a){
if(_4a){
this.table.style.visibility="hidden";
}else{
hs.discardElement(this.table);
}
}};
hs.Dimension=function(exp,dim){
this.exp=exp;
this.dim=dim;
this.ucwh=dim=="x"?"Width":"Height";
this.wh=this.ucwh.toLowerCase();
this.uclt=dim=="x"?"Left":"Top";
this.lt=this.uclt.toLowerCase();
this.ucrb=dim=="x"?"Right":"Bottom";
this.rb=this.ucrb.toLowerCase();
this.p1=this.p2=0;
};
hs.Dimension.prototype={get:function(key){
switch(key){
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]+2*this.cb;
},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=(hs.page[this.wh]/2)+hs.page["scroll"+this.uclt];
}
},calcExpanded:function(){
var exp=this.exp;
this.justify="auto";
if(exp.align=="center"){
this.justify="center";
}else{
if(new RegExp(this.lt).test(exp.anchor)){
this.justify=null;
}else{
if(new RegExp(this.rb).test(exp.anchor)){
this.justify="max";
}
}
}
this.pos=this.tpos-this.cb+this.tb;
this.size=Math.min(this.full,exp["max"+this.ucwh]||this.full);
this.minSize=exp.allowSizeReduction?Math.min(exp["min"+this.ucwh],this.full):this.full;
if(exp.isImage&&exp.useBox){
this.size=exp[this.wh];
this.imgSize=this.full;
}
if(this.dim=="x"&&hs.padToMinWidth){
this.minSize=exp.minWidth;
}
this.target=exp["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(i){
var exp=this.exp;
if(exp.isImage&&(exp.useBox||hs.padToMinWidth)){
this.imgSize=i;
this.size=Math.max(this.size,this.imgSize);
exp.content.style[this.lt]=this.get("imgPad")+"px";
}else{
this.size=i;
}
exp.content.style[this.wh]=i+"px";
exp.wrapper.style[this.wh]=this.get("wsize")+"px";
if(exp.outline){
exp.outline.setPosition();
}
if(this.dim=="x"&&exp.overlayBox){
exp.sizeOverlayBox(true);
}
if(this.dim=="x"&&exp.slideshow&&exp.isImage){
if(i==this.full){
exp.slideshow.disable("full-expand");
}else{
exp.slideshow.enable("full-expand");
}
}
},setPos:function(i){
this.pos=i;
this.exp.wrapper.style[this.lt]=i+"px";
if(this.exp.outline){
this.exp.outline.setPosition();
}
}};
hs.Expander=function(a,_4b,_4c,_4d){
if(document.readyState&&hs.ie&&!hs.isReady){
hs.addEventListener(document,"ready",function(){
new hs.Expander(a,_4b,_4c,_4d);
});
return;
}
this.a=a;
this.custom=_4c;
this.contentType=_4d||"image";
this.isImage=!this.isHtml;
hs.continuePreloading=false;
this.overlays=[];
this.last=hs.last;
hs.last=null;
hs.init();
var key=this.key=hs.expanders.length;
for(var i=0;i<hs.overrides.length;i++){
var _4e=hs.overrides[i];
this[_4e]=_4b&&typeof _4b[_4e]!="undefined"?_4b[_4e]:hs[_4e];
}
if(!this.src){
this.src=a.href;
}
var el=(_4b&&_4b.thumbnailId)?hs.$(_4b.thumbnailId):a;
el=this.thumb=el.getElementsByTagName("img")[0]||el;
this.thumbsUserSetId=el.id||a.id;
for(var i=0;i<hs.expanders.length;i++){
if(hs.expanders[i]&&hs.expanders[i].a==a&&!(this.last&&this.transitions[1]=="crossfade")){
hs.expanders[i].focus();
return false;
}
}
for(var i=0;i<hs.expanders.length;i++){
if(hs.expanders[i]&&hs.expanders[i].thumb!=el&&!hs.expanders[i].onLoadStarted){
hs.expanders[i].cancelLoading();
}
}
hs.expanders[this.key]=this;
if(!hs.allowMultipleInstances&&!hs.upcoming){
if(hs.expanders[key-1]){
hs.expanders[key-1].close();
}
if(typeof hs.focusKey!="undefined"&&hs.expanders[hs.focusKey]){
hs.expanders[hs.focusKey].close();
}
}
this.el=el;
this.tpos=hs.getPosition(el);
hs.page=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:this.wrapperClassName},{visibility:"hidden",position:"absolute",zIndex:hs.zIndexCounter++},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 exp=this;
new hs.Outline(this.outlineType,function(){
exp.connectOutline();
exp[exp.contentType+"Create"]();
});
}
}
return true;
};
hs.Expander.prototype={error:function(e){
window.location.href=this.src;
},connectOutline:function(){
var _4f=this.outline=hs.pendingOutlines[this.outlineType];
_4f.exp=this;
_4f.table.style.zIndex=this.wrapper.style.zIndex;
hs.pendingOutlines[this.outlineType]=null;
},showLoading:function(){
if(this.onLoadStarted||this.loading){
return;
}
this.loading=hs.loading;
var exp=this;
this.loading.onclick=function(){
exp.cancelLoading();
};
var exp=this,l=this.x.get("loadingPos")+"px",t=this.y.get("loadingPos")+"px";
if(!tgt&&this.last&&this.transitions[1]=="crossfade"){
var tgt=this.last;
}
if(tgt){
l=tgt.x.get("loadingPosXfade")+"px";
t=tgt.y.get("loadingPosXfade")+"px";
this.loading.style.zIndex=hs.zIndexCounter++;
}
setTimeout(function(){
if(exp.loading){
hs.setStyles(exp.loading,{left:l,top:t,zIndex:hs.zIndexCounter++});
}
},100);
},imageCreate:function(){
var exp=this;
var img=document.createElement("img");
this.content=img;
img.onload=function(){
if(hs.expanders[exp.key]){
exp.contentLoaded();
}
};
if(hs.blockRightClick){
img.oncontextmenu=function(){
return false;
};
}
img.className="highslide-image";
hs.setStyles(img,{visibility:"hidden",display:"block",position:"absolute",maxWidth:"9999px",zIndex:3});
img.title=hs.lang.restoreTitle;
if(hs.safari){
hs.container.appendChild(img);
}
if(hs.ie){
img.src="res://";
}
img.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"});
this.initSlideshow();
this.getOverlays();
var _50=x.full/y.full;
x.calcExpanded();
this.justify(x);
y.calcExpanded();
this.justify(y);
if(this.overlayBox){
this.sizeOverlayBox(0,1);
}
if(this.allowSizeReduction){
this.correctRatio(_50);
var ss=this.slideshow;
if(ss&&this.last&&ss.controls&&ss.fixedControls){
var pos=ss.overlayOptions.position||"",p;
for(var dim in hs.oPos){
for(var i=0;i<5;i++){
p=this[dim];
if(pos.match(hs.oPos[dim][i])){
p.pos=this.last[dim].pos+(this.last[dim].p1-p.p1)+(this.last[dim].size-p.size)*[0,0,0.5,1,1][i];
if(ss.fixedControls=="fit"){
if(p.pos+p.size+p.p1+p.p2>p.scroll+p.clientSize-p.marginMax){
p.pos=p.scroll+p.clientSize-p.size-p.marginMin-p.marginMax-p.p1-p.p2;
}
if(p.pos<p.scroll+p.marginMin){
p.pos=p.scroll+p.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(e){
this.error(e);
}
},justify:function(p,_51){
var _52,tgt=p.target,dim=p==this.x?"x":"y";
if(tgt&&tgt.match(/ /)){
_52=tgt.split(" ");
tgt=_52[0];
}
if(tgt&&hs.$(tgt)){
p.pos=hs.getPosition(hs.$(tgt))[dim];
if(_52&&_52[1]&&_52[1].match(/^[-]?[0-9]+px$/)){
p.pos+=parseInt(_52[1]);
}
if(p.size<p.minSize){
p.size=p.minSize;
}
}else{
if(p.justify=="auto"||p.justify=="center"){
var _53=false;
var _54=p.exp.allowSizeReduction;
if(p.justify=="center"){
p.pos=Math.round(p.scroll+(p.clientSize+p.marginMin-p.marginMax-p.get("wsize"))/2);
}else{
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;
_53=true;
}
if(!_51&&p.size<p.minSize){
p.size=p.minSize;
_54=false;
}
if(p.pos+p.get("wsize")>p.scroll+p.clientSize-p.marginMax){
if(!_51&&_53&&_54){
p.size=p.get(dim=="y"?"fitsize":"maxsize");
}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(!_51&&_54){
p.size=p.get(dim=="y"?"fitsize":"maxsize");
}
}
}
}
if(!_51&&p.size<p.minSize){
p.size=p.minSize;
_54=false;
}
}else{
if(p.justify=="max"){
p.pos=Math.floor(p.pos-p.size+p.t);
}
}
}
if(p.pos<p.marginMin){
var _55=p.pos;
p.pos=p.marginMin;
if(_54&&!_51){
p.size=p.size-(p.pos-_55);
}
}
},correctRatio:function(_56){
var x=this.x,y=this.y,_57=false,_58=Math.min(x.full,x.size),_59=Math.min(y.full,y.size),_5a=(this.useBox||hs.padToMinWidth);
if(_58/_59>_56){
_58=_59*_56;
if(_58<x.minSize){
_58=x.minSize;
_59=_58/_56;
}
_57=true;
}else{
if(_58/_59<_56){
_59=_58/_56;
_57=true;
}
}
if(hs.padToMinWidth&&x.full<x.minSize){
x.imgSize=x.full;
y.size=y.imgSize=y.full;
}else{
if(this.useBox){
x.imgSize=_58;
y.imgSize=_59;
}else{
x.size=_58;
y.size=_59;
}
}
this.fitOverlayBox(_5a?null:_56);
if(_5a&&y.size<y.imgSize){
y.imgSize=y.size;
x.imgSize=y.size*_56;
}
if(_57||_5a){
x.pos=x.tpos-x.cb+x.tb;
x.minSize=x.size;
this.justify(x,true);
y.pos=y.tpos-y.cb+y.tb;
y.minSize=y.size;
this.justify(y,true);
if(this.overlayBox){
this.sizeOverlayBox();
}
}
},fitOverlayBox:function(_5b){
var x=this.x,y=this.y;
if(this.overlayBox){
while(y.size>this.minHeight&&x.size>this.minWidth&&y.get("wsize")>y.get("fitsize")){
y.size-=10;
if(_5b){
x.size=y.size*_5b;
}
this.sizeOverlayBox(0,1);
}
}
},show:function(){
var x=this.x,y=this.y;
this.doShowHide("hidden");
if(this.slideshow&&this.slideshow.thumbstrip){
this.slideshow.thumbstrip.selectThumb();
}
this.changeSize(1,{wrapper:{width:x.get("wsize"),height:y.get("wsize"),left:x.pos,top:y.pos},content:{left:x.p1+x.get("imgPad"),top:y.p1+y.get("imgPad"),width:x.imgSize||x.size,height:y.imgSize||y.size}},hs.expandDuration);
},changeSize:function(up,to,dur){
var _5c=this.transitions,_5d=up?(this.last?this.last.a:null):hs.upcoming,t=(_5c[1]&&_5d&&hs.getParam(_5d,"transitions")[1]==_5c[1])?_5c[1]:_5c[0];
if(this[t]&&t!="expand"){
this[t](up,to);
return;
}
if(this.outline&&!this.outlineWhileAnimating){
if(up){
this.outline.setPosition();
}else{
this.outline.destroy();
}
}
if(!up){
this.destroyOverlays();
}
var exp=this,x=exp.x,y=exp.y,_5e=this.easing;
if(!up){
_5e=this.easingClose||_5e;
}
var _5f=up?function(){
if(exp.outline){
exp.outline.table.style.visibility="visible";
}
setTimeout(function(){
exp.afterExpand();
},50);
}:function(){
exp.afterClose();
};
if(up){
hs.setStyles(this.wrapper,{width:x.t+"px",height:y.t+"px"});
}
if(this.fadeInOut){
hs.setStyles(this.wrapper,{opacity:up?0:1});
hs.extend(to.wrapper,{opacity:up});
}
hs.animate(this.wrapper,to.wrapper,{duration:dur,easing:_5e,step:function(val,_60){
if(exp.outline&&exp.outlineWhileAnimating&&_60.prop=="top"){
var fac=up?_60.pos:1-_60.pos;
var pos={w:x.t+(x.get("wsize")-x.t)*fac,h:y.t+(y.get("wsize")-y.t)*fac,x:x.tpos+(x.pos-x.tpos)*fac,y:y.tpos+(y.pos-y.tpos)*fac};
exp.outline.setPosition(pos,0,1);
}
}});
hs.animate(this.content,to.content,dur,_5e,_5f);
if(up){
this.wrapper.style.visibility="visible";
this.content.style.visibility="visible";
this.a.className+=" highslide-active-anchor";
}
},fade:function(up,to){
this.outlineWhileAnimating=false;
var exp=this,t=up?hs.expandDuration:0;
if(up){
hs.animate(this.wrapper,to.wrapper,0);
hs.setStyles(this.wrapper,{opacity:0,visibility:"visible"});
hs.animate(this.content,to.content,0);
this.content.style.visibility="visible";
hs.animate(this.wrapper,{opacity:1},t,null,function(){
exp.afterExpand();
});
}
if(this.outline){
this.outline.table.style.zIndex=this.wrapper.style.zIndex;
var dir=up||-1,_61=this.outline.offset,_62=up?3:_61,_63=up?_61:3;
for(var i=_62;dir*i<=dir*_63;i+=dir,t+=25){
(function(){
var o=up?_63-i:_62-i;
setTimeout(function(){
exp.outline.setPosition(0,o,1);
},t);
})();
}
}
if(up){
}else{
setTimeout(function(){
if(exp.outline){
exp.outline.destroy(exp.preserveContent);
}
exp.destroyOverlays();
hs.animate(exp.wrapper,{opacity:0},null,null,function(){
exp.afterClose();
});
},t);
}
},crossfade:function(up,to){
if(!up){
return;
}
var exp=this,dur=hs.transitionDuration,_64=exp.last,x=exp.x,y=exp.y,_65=_64.x,_66=_64.y,_67=exp.overlayBox,_68=this.wrapper,_69=this.content;
hs.removeEventListener(document,"mousemove",hs.dragHandler);
this.outline=_64.outline;
if(this.outline){
this.outline.exp=exp;
}
_64.outline=null;
_64.wrapper.style.overflow="hidden";
hs.setStyles(_68,{left:_65.pos+"px",top:_66.pos+"px",width:_65.get("wsize")+"px",height:_66.get("wsize")+"px"});
hs.setStyles(_69,{display:"none",width:(x.imgSize||x.size)+"px",height:(y.imgSize||y.size)+"px",left:(x.p1+x.get("imgPad"))+"px",top:(y.p1+y.get("imgPad"))+"px"});
var _6a=hs.createElement("div",{className:"highslide-image"},{position:"absolute",zIndex:4,overflow:"hidden",display:"none",left:(_65.p1+_65.get("imgPad"))+"px",top:(_66.p1+_66.get("imgPad"))+"px",width:(_65.imgSize||_65.size)+"px",height:(_66.imgSize||_66.size)+"px"});
for(var i=0;i<this.overlays.length;i++){
var o=hs.$("hsId"+this.overlays[i]);
if(o.style.visibility=="hidden"){
o.style.display="none";
}
}
if(_67){
hs.setStyles(_67,{overflow:"visible",left:(_65.p1+_65.cb)+"px",top:(_66.p1+_66.cb)+"px",width:_65.size+"px",height:_66.size+"px"});
}
var _6b={oldImg:_64,newImg:this};
for(var n in _6b){
this[n]=_6b[n].content.cloneNode(1);
hs.setStyles(this[n],{position:"absolute",border:0,visibility:"visible"});
_6a.appendChild(this[n]);
}
hs.setStyles(this.oldImg,{left:0,top:0});
hs.setStyles(this.newImg,{display:"block",opacity:0,left:(x.pos-_65.pos+x.p1-_65.p1+x.get("imgPad")-_65.get("imgPad"))+"px",top:(y.pos-_66.pos+y.p1-_66.p1+y.get("imgPad")-_66.get("imgPad"))+"px"});
_68.appendChild(_6a);
if(_67){
_67.className="";
_68.appendChild(_67);
}
_6a.style.display="";
_64.content.style.display="none";
if(hs.safari){
var _6c=navigator.userAgent.match(/Safari\/([0-9]{3})/);
if(_6c&&parseInt(_6c[1])<525){
_68.style.visibility="visible";
}
}
function end(){
_68.style.visibility=_69.style.visibility="visible";
_69.style.display="block";
_6a.style.display="none";
exp.a.className+=" highslide-active-anchor";
exp.afterExpand();
_64.afterClose();
exp.last=null;
};
hs.animate(_64.wrapper,{left:x.pos,top:y.pos,width:x.get("wsize"),height:y.get("wsize")},dur);
hs.animate(_6a,{width:x.imgSize||x.size,height:y.imgSize||y.size,left:x.p1+x.get("imgPad"),top:y.p1+y.get("imgPad")},dur);
hs.animate(this.oldImg,{left:(_65.pos-x.pos+_65.p1-x.p1+_65.get("imgPad")-x.get("imgPad")),top:(_66.pos-y.pos+_66.p1-y.p1+_66.get("imgPad")-y.get("imgPad"))},dur);
hs.animate(this.newImg,{opacity:1,left:0,top:0},dur);
if(_67){
hs.animate(_67,{left:x.p1+x.cb,top:y.p1+y.cb,width:x.size,height:y.size},dur);
}
if(this.outline){
var _6d=function(val,_6e){
if(_6e.prop=="top"){
var stl=exp.wrapper.style;
var pos={w:parseInt(stl.width),h:parseInt(stl.height),x:parseInt(stl.left),y:parseInt(stl.top)};
exp.outline.setPosition(pos);
}
};
}
hs.animate(_68,to.wrapper,{duration:dur,complete:end,step:_6d});
_6a.style.visibility="visible";
},reuseOverlay:function(o,el){
if(!this.last){
return false;
}
for(var i=0;i<this.last.overlays.length;i++){
var _6f=hs.$("hsId"+this.last.overlays[i]);
if(_6f&&_6f.hsId==o.hsId){
this.genOverlayBox();
_6f.reuse=this.key;
hs.push(this.overlays,this.last.overlays[i]);
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 p=hs.page,mX=hs.mouse.x+p.scrollLeft,mY=hs.mouse.y+p.scrollTop;
this.mouseIsOver=this.x.pos<mX&&mX<this.x.pos+this.x.get("wsize")&&this.y.pos<mY&&mY<this.y.pos+this.y.get("wsize");
if(this.overlayBox){
this.showOverlays();
}
},prepareNextOutline:function(){
var key=this.key;
var _70=this.outlineType;
new hs.Outline(_70,function(){
try{
hs.expanders[key].preloadNext();
}
catch(e){
}
});
},preloadNext:function(){
var _71=this.getAdjacentAnchor(1);
if(_71&&_71.onclick.toString().match(/hs\.expand/)){
var img=hs.createElement("img",{src:hs.getSrc(_71)});
}
},getAdjacentAnchor:function(op){
var _72=this.getAnchorIndex(),as=hs.anchors.groups[this.slideshowGroup||"none"];
if(!as[_72+op]&&this.slideshow&&this.slideshow.repeat){
if(op==1){
return as[0];
}else{
if(op==-1){
return as[as.length-1];
}
}
}
return as[_72+op]||null;
},getAnchorIndex:function(){
var arr=hs.getAnchors().groups[this.slideshowGroup||"none"];
if(arr){
for(var i=0;i<arr.length;i++){
if(arr[i]==this.a){
return i;
}
}
}
return null;
},getNumber:function(){
if(this[this.numberPosition]){
var arr=hs.anchors.groups[this.slideshowGroup||"none"];
if(arr){
var s=hs.lang.number.replace("%1",this.getAnchorIndex()+1).replace("%2",arr.length);
this[this.numberPosition].innerHTML="<div class=\"highslide-number\">"+s+"</div>"+this[this.numberPosition].innerHTML;
}
}
},initSlideshow:function(){
if(!this.last){
for(var i=0;i<hs.slideshows.length;i++){
var ss=hs.slideshows[i],sg=ss.slideshowGroup;
if(typeof sg=="undefined"||sg===null||sg===this.slideshowGroup){
this.slideshow=new hs.Slideshow(this.key,ss);
}
}
}else{
this.slideshow=this.last.slideshow;
}
var ss=this.slideshow;
if(!ss){
return;
}
var key=ss.expKey=this.key;
ss.checkFirstAndLast();
ss.disable("full-expand");
if(ss.controls){
var o=ss.overlayOptions||{};
o.overlayId=ss.controls;
o.hsId="controls";
this.createOverlay(o);
}
if(ss.thumbstrip){
ss.thumbstrip.add(this);
}
if(!this.last&&this.autoplay){
ss.play(true);
}
if(ss.autoplay){
ss.autoplay=setTimeout(function(){
hs.next(key);
},(ss.interval||500));
}
},cancelLoading:function(){
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,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(_73,_74){
for(var i=0;i<_73.length;i++){
var _75=_73[i],s=null;
if(!this[_75+"Id"]&&this.thumbsUserSetId){
this[_75+"Id"]=_75+"-for-"+this.thumbsUserSetId;
}
if(this[_75+"Id"]){
this[_75]=hs.getNode(this[_75+"Id"]);
}
if(!this[_75]&&!this[_75+"Text"]&&this[_75+"Eval"]){
try{
s=eval(this[_75+"Eval"]);
}
catch(e){
}
}
if(!this[_75]&&this[_75+"Text"]){
s=this[_75+"Text"];
}
if(!this[_75]&&!s){
var _76=this.a.nextSibling;
while(_76&&!hs.isHsAnchor(_76)){
if((new RegExp("highslide-"+_75)).test(_76.className||null)){
this[_75]=_76.cloneNode(1);
break;
}
_76=_76.nextSibling;
}
}
if(!this[_75]&&!s&&this.numberPosition==_75){
s="\n";
}
if(!this[_75]&&s){
this[_75]=hs.createElement("div",{className:"highslide-"+_75,innerHTML:s});
}
if(_74&&this[_75]){
var o={position:(_75=="heading")?"above":"below"};
for(var x in this[_75+"Overlay"]){
o[x]=this[_75+"Overlay"][x];
}
o.overlayId=this[_75];
this.createOverlay(o);
}
}
},doShowHide:function(_77){
if(hs.hideSelects){
this.showHideElements("SELECT",_77);
}
if(hs.hideIframes){
this.showHideElements("IFRAME",_77);
}
if(hs.geckoMac){
this.showHideElements("*",_77);
}
},showHideElements:function(_78,_79){
var els=document.getElementsByTagName(_78);
var _7a=_78=="*"?"overflow":"visibility";
for(var i=0;i<els.length;i++){
if(_7a=="visibility"||(document.defaultView.getComputedStyle(els[i],"").getPropertyValue("overflow")=="auto"||els[i].getAttribute("hidden-by")!=null)){
var _7b=els[i].getAttribute("hidden-by");
if(_79=="visible"&&_7b){
_7b=_7b.replace("["+this.key+"]","");
els[i].setAttribute("hidden-by",_7b);
if(!_7b){
els[i].style[_7a]=els[i].origProp;
}
}else{
if(_79=="hidden"){
var _7c=hs.getPosition(els[i]);
_7c.w=els[i].offsetWidth;
_7c.h=els[i].offsetHeight;
if(!this.dimmingOpacity){
var _7d=(_7c.x+_7c.w<this.x.get("opos")||_7c.x>this.x.get("opos")+this.x.get("osize"));
var _7e=(_7c.y+_7c.h<this.y.get("opos")||_7c.y>this.y.get("opos")+this.y.get("osize"));
}
var _7f=hs.getWrapperKey(els[i]);
if(!_7d&&!_7e&&_7f!=this.key){
if(!_7b){
els[i].setAttribute("hidden-by","["+this.key+"]");
els[i].origProp=els[i].style[_7a];
els[i].style[_7a]="hidden";
}else{
if(_7b.indexOf("["+this.key+"]")==-1){
els[i].setAttribute("hidden-by",_7b+"["+this.key+"]");
}
}
}else{
if((_7b=="["+this.key+"]"||hs.focusKey==_7f)&&_7f!=this.key){
els[i].setAttribute("hidden-by","");
els[i].style[_7a]=els[i].origProp||"";
}else{
if(_7b&&_7b.indexOf("["+this.key+"]")>-1){
els[i].setAttribute("hidden-by",_7b.replace("["+this.key+"]",""));
}
}
}
}
}
}
}
},focus:function(){
this.wrapper.style.zIndex=hs.zIndexCounter++;
for(var i=0;i<hs.expanders.length;i++){
if(hs.expanders[i]&&i==hs.focusKey){
var _80=hs.expanders[i];
_80.content.className+=" highslide-"+_80.contentType+"-blur";
_80.content.style.cursor=hs.ie?"hand":"pointer";
_80.content.title=hs.lang.focusTitle;
}
}
if(this.outline){
this.outline.table.style.zIndex=this.wrapper.style.zIndex;
}
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(x,y){
this.x.setPos(x);
this.y.setPos(y);
},resize:function(e){
var w,h,r=e.width/e.height;
w=Math.max(e.width+e.dX,Math.min(this.minWidth,this.x.full));
if(this.isImage&&Math.abs(w-this.x.full)<12){
w=this.x.full;
}
h=w/r;
if(h<Math.min(this.minHeight,this.y.full)){
h=Math.min(this.minHeight,this.y.full);
if(this.isImage){
w=h*r;
}
}
this.resizeTo(w,h);
},resizeTo:function(w,h){
this.y.setSize(h);
this.x.setSize(w);
},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(e){
this.afterClose();
}
},createOverlay:function(o){
var el=o.overlayId,_81=(o.relativeTo=="viewport"&&!/panel$/.test(o.position));
if(typeof el=="string"){
el=hs.getNode(el);
}
if(o.html){
el=hs.createElement("div",{innerHTML:o.html});
}
if(!el||typeof el=="string"){
return;
}
el.style.display="block";
o.hsId=o.hsId||o.overlayId;
if(this.transitions[1]=="crossfade"&&this.reuseOverlay(o,el)){
return;
}
this.genOverlayBox();
var _82=o.width&&/^[0-9]+(px|%)$/.test(o.width)?o.width:"auto";
if(/^(left|right)panel$/.test(o.position)&&!/^[0-9]+px$/.test(o.width)){
_82="200px";
}
var _83=hs.createElement("div",{id:"hsId"+hs.idCounter++,hsId:o.hsId},{position:"absolute",visibility:"hidden",width:_82,direction:hs.lang.cssDirection||"",opacity:0},_81?hs.viewport:this.overlayBox,true);
if(_81){
_83.hsKey=this.key;
}
_83.appendChild(el);
hs.extend(_83,{opacity:1,offsetX:0,offsetY:0,dur:(o.fade===0||o.fade===false||(o.fade==2&&hs.ie))?0:250});
hs.extend(_83,o);
if(this.gotOverlays){
this.positionOverlay(_83);
if(!_83.hideOnMouseOut||this.mouseIsOver){
hs.animate(_83,{opacity:_83.opacity},_83.dur);
}
}
hs.push(this.overlays,hs.idCounter-1);
},positionOverlay:function(_84){
var p=_84.position||"middle center",_85=(_84.relativeTo=="viewport"),_86=_84.offsetX,_87=_84.offsetY;
if(_85){
hs.viewport.style.display="block";
_84.hsKey=this.key;
if(_84.offsetWidth>_84.parentNode.offsetWidth){
_84.style.width="100%";
}
}else{
if(_84.parentNode!=this.overlayBox){
this.overlayBox.appendChild(_84);
}
}
if(/left$/.test(p)){
_84.style.left=_86+"px";
}
if(/center$/.test(p)){
hs.setStyles(_84,{left:"50%",marginLeft:(_86-Math.round(_84.offsetWidth/2))+"px"});
}
if(/right$/.test(p)){
_84.style.right=-_86+"px";
}
if(/^leftpanel$/.test(p)){
hs.setStyles(_84,{right:"100%",marginRight:this.x.cb+"px",top:-this.y.cb+"px",bottom:-this.y.cb+"px",overflow:"auto"});
this.x.p1=_84.offsetWidth;
}else{
if(/^rightpanel$/.test(p)){
hs.setStyles(_84,{left:"100%",marginLeft:this.x.cb+"px",top:-this.y.cb+"px",bottom:-this.y.cb+"px",overflow:"auto"});
this.x.p2=_84.offsetWidth;
}
}
var _88=_84.parentNode.offsetHeight;
_84.style.height="auto";
if(_85&&_84.offsetHeight>_88){
_84.style.height=hs.ieLt7?_88+"px":"100%";
}
if(/^top/.test(p)){
_84.style.top=_87+"px";
}
if(/^middle/.test(p)){
hs.setStyles(_84,{top:"50%",marginTop:(_87-Math.round(_84.offsetHeight/2))+"px"});
}
if(/^bottom/.test(p)){
_84.style.bottom=-_87+"px";
}
if(/^above$/.test(p)){
hs.setStyles(_84,{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=_84.offsetHeight;
}else{
if(/^below$/.test(p)){
hs.setStyles(_84,{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=_84.offsetHeight;
_84.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 i=0;i<hs.overlays.length;i++){
var o=hs.overlays[i],tId=o.thumbnailId,sg=o.slideshowGroup;
if((!tId&&!sg)||(tId&&tId==this.thumbsUserSetId)||(sg&&sg===this.slideshowGroup)){
this.createOverlay(o);
}
}
var os=[];
for(var i=0;i<this.overlays.length;i++){
var o=hs.$("hsId"+this.overlays[i]);
if(/panel$/.test(o.position)){
this.positionOverlay(o);
}else{
hs.push(os,o);
}
}
for(var i=0;i<os.length;i++){
this.positionOverlay(os[i]);
}
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(_89,_8a){
var _8b=this.overlayBox,x=this.x,y=this.y;
hs.setStyles(_8b,{width:x.size+"px",height:y.size+"px"});
if(_89||_8a){
for(var i=0;i<this.overlays.length;i++){
var o=hs.$("hsId"+this.overlays[i]);
var ie6=(hs.ieLt7||document.compatMode=="BackCompat");
if(o&&/^(above|below)$/.test(o.position)){
if(ie6){
o.style.width=(_8b.offsetWidth+2*x.cb+x.p1+x.p2)+"px";
}
y[o.position=="above"?"p1":"p2"]=o.offsetHeight;
}
if(o&&ie6&&/^(left|right)panel$/.test(o.position)){
o.style.height=(_8b.offsetHeight+2*y.cb)+"px";
}
}
}
if(_89){
hs.setStyles(this.content,{top:y.p1+"px"});
hs.setStyles(_8b,{top:(y.p1+y.cb)+"px"});
}
},showOverlays:function(){
var b=this.overlayBox;
b.className="";
hs.setStyles(b,{top:(this.y.p1+this.y.cb)+"px",left:(this.x.p1+this.x.cb)+"px",overflow:"visible"});
if(hs.safari){
b.style.visibility="visible";
}
this.wrapper.appendChild(b);
for(var i=0;i<this.overlays.length;i++){
var o=hs.$("hsId"+this.overlays[i]);
o.style.zIndex=o.hsId=="controls"?5:4;
if(!o.hideOnMouseOut||this.mouseIsOver){
o.style.visibility="visible";
hs.setStyles(o,{visibility:"visible",display:""});
hs.animate(o,{opacity:o.opacity},o.dur);
}
}
},destroyOverlays:function(){
if(!this.overlays.length){
return;
}
for(var i=0;i<this.overlays.length;i++){
var o=hs.$("hsId"+this.overlays[i]);
if(o.parentNode==hs.viewport){
hs.discardElement(o);
}
}
if(this.slideshow){
var c=this.slideshow.controls;
if(c&&hs.getExpander(c)==this){
c.parentNode.removeChild(c);
}
}
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 _8c=this.x.size;
this.resizeTo(this.x.full,this.y.full);
var _8d=this.x.pos-(this.x.size-_8c)/2;
if(_8d<hs.marginLeft){
_8d=hs.marginLeft;
}
this.moveTo(_8d,this.y.pos);
this.doShowHide("hidden");
hs.setDimmerSize(this);
}
catch(e){
this.error(e);
}
},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);
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(_8e,_8f){
if(hs.dynamicallyUpdateAnchors!==false){
hs.updateAnchors();
}
this.expKey=_8e;
for(var x in _8f){
this[x]=_8f[x];
}
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 _90=["play","pause","previous","next","move","full-expand","close"];
this.btn={};
var _91=this;
for(var i=0;i<_90.length;i++){
this.btn[_90[i]]=hs.getElementByClass(this.controls,"li","highslide-"+_90[i]);
this.enable(_90[i]);
}
this.btn.pause.style.display="none";
},checkFirstAndLast:function(){
if(this.repeat||!this.controls){
return;
}
var exp=hs.expanders[this.expKey],cur=exp.getAnchorIndex(),re=/disabled$/;
if(cur==0){
this.disable("previous");
}else{
if(re.test(this.btn.previous.getElementsByTagName("a")[0].className)){
this.enable("previous");
}
}
if(cur+1==hs.anchors.groups[exp.slideshowGroup||"none"].length){
this.disable("next");
this.disable("play");
}else{
if(re.test(this.btn.next.getElementsByTagName("a")[0].className)){
this.enable("next");
this.enable("play");
}
}
},enable:function(btn){
if(!this.btn){
return;
}
var sls=this,a=this.btn[btn].getElementsByTagName("a")[0],re=/disabled$/;
a.onclick=function(){
sls[btn]();
return false;
};
if(re.test(a.className)){
a.className=a.className.replace(re,"");
}
},disable:function(btn){
if(!this.btn){
return;
}
var a=this.btn[btn].getElementsByTagName("a")[0];
a.onclick=function(){
return false;
};
if(!/disabled$/.test(a.className)){
a.className+=" disabled";
}
},hitSpace:function(){
if(this.autoplay){
this.pause();
}else{
this.play();
}
},play:function(_92){
if(this.btn){
this.btn.play.style.display="none";
this.btn.pause.style.display="";
}
this.autoplay=true;
if(!_92){
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(_93){
function add(exp){
hs.extend(_94||{},{overlayId:dom,hsId:"thumbstrip"});
if(hs.ieLt7){
_94.fade=0;
}
exp.createOverlay(_94);
hs.setStyles(dom.parentNode,{overflow:"hidden"});
};
function _95(_96){
_97(undefined,Math.round(_96*dom[isX?"offsetWidth":"offsetHeight"]*0.7));
};
function _97(i,_98){
if(i===undefined){
for(var j=0;j<_99.length;j++){
if(_99[j]==hs.expanders[_93.expKey].a){
i=j;
break;
}
}
}
var as=dom.getElementsByTagName("a"),_9a=as[i],_9b=_9a.parentNode,_9c=isX?"Left":"Top",_9d=isX?"Right":"Bottom",_9e=isX?"Width":"Height",_9f="offset"+_9c,_a0="offset"+_9e,_a1=div.parentNode.parentNode[_a0],_a2=_a1-_a3[_a0],_a4=parseInt(_a3.style[isX?"left":"top"])||0,_a5=_a4,_a6=20;
if(_98!==undefined){
_a5=_a4-_98;
if(_a5>0){
_a5=0;
}
if(_a5<_a2){
_a5=_a2;
}
}else{
for(var j=0;j<as.length;j++){
as[j].className="";
}
_9a.className="highslide-active-anchor";
var _a7=i>0?as[i-1].parentNode[_9f]:_9b[_9f],_a8=_9b[_9f]+_9b[_a0]+(as[i+1]?as[i+1].parentNode[_a0]:0);
if(_a8>_a1-_a4){
_a5=_a1-_a8;
}else{
if(_a7<-_a4){
_a5=-_a7;
}
}
}
var _a9=_9b[_9f]+(_9b[_a0]-_aa[_a0])/2+_a5;
hs.animate(_a3,isX?{left:_a5}:{top:_a5},null,"easeOutQuad");
hs.animate(_aa,isX?{left:_a9}:{top:_a9},null,"easeOutQuad");
_ab.style.display=_a5<0?"block":"none";
_ac.style.display=(_a5>_a2)?"block":"none";
};
var _99=hs.anchors.groups[hs.expanders[_93.expKey].slideshowGroup||"none"],_94=_93.thumbstrip,_ad=_94.mode||"horizontal",_ae=(_ad=="float"),_af=_ae?["div","ul","li","span"]:["table","tbody","tr","td"],isX=(_ad=="horizontal"),dom=hs.createElement("div",{className:"highslide-thumbstrip highslide-thumbstrip-"+_ad,innerHTML:"<div class=\"highslide-thumbstrip-inner\">"+"<"+_af[0]+"><"+_af[1]+"></"+_af[1]+"></"+_af[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),_b0=dom.childNodes,div=_b0[0],_ab=_b0[1],_ac=_b0[2],_aa=_b0[3],_a3=div.firstChild,_b1=dom.getElementsByTagName(_af[1])[0],tr;
for(var i=0;i<_99.length;i++){
if(i==0||!isX){
tr=hs.createElement(_af[2],null,null,_b1);
}
(function(){
var a=_99[i],_b2=hs.createElement(_af[3],null,null,tr),pI=i;
hs.createElement("a",{href:a.href,onclick:function(){
return hs.transit(a);
},innerHTML:hs.stripItemFormatter?hs.stripItemFormatter(a):a.innerHTML},null,_b2);
})();
}
if(!_ae){
_ab.onclick=function(){
_95(-1);
};
_ac.onclick=function(){
_95(1);
};
hs.addEventListener(_b1,document.onmousewheel!==undefined?"mousewheel":"DOMMouseScroll",function(e){
var _b3=0;
e=e||window.event;
if(e.wheelDelta){
_b3=e.wheelDelta/120;
if(hs.opera){
_b3=-_b3;
}
}else{
if(e.detail){
_b3=-e.detail/3;
}
}
if(_b3){
_95(-_b3*0.2);
}
if(e.preventDefault){
e.preventDefault();
}
e.returnValue=false;
});
}
return {add:add,selectThumb:_97};
};
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.langDefaults=hs.lang;
var HsExpander=hs.Expander;
hs.addEventListener(window,"load",function(){
if(hs.expandCursor){
var sel=".highslide img",dec="cursor: url("+hs.graphicsDir+hs.expandCursor+"), pointer !important;";
var _b4=hs.createElement("style",{type:"text/css"},null,document.getElementsByTagName("HEAD")[0]);
if(!hs.ie){
_b4.appendChild(document.createTextNode(sel+" {"+dec+"}"));
}else{
var _b5=document.styleSheets[document.styleSheets.length-1];
if(typeof (_b5.addRule)=="object"){
_b5.addRule(sel,dec);
}
}
}
});
hs.addEventListener(window,"resize",function(){
hs.page=hs.getPageSize();
if(hs.viewport){
for(var i=0;i<hs.viewport.childNodes.length;i++){
var _b6=hs.viewport.childNodes[i],exp=hs.getExpander(_b6);
exp.positionOverlay(_b6);
if(_b6.hsId=="thumbstrip"){
exp.slideshow.thumbstrip.selectThumb();
}
}
}
});
hs.addEventListener(document,"mousemove",function(e){
hs.mouse={x:e.clientX,y:e.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);


