if(!hs){var hs={lang:{cssDirection:"ltr",loadingText:"Loading...",loadingTitle:"Click to cancel",restoreTitle:"Click to close image"},expandCursor:null,restoreCursor:null,expandDuration:250,restoreDuration:250,marginLeft:15,marginRight:15,marginTop:15,marginBottom:15,zIndexCounter:1001,loadingOpacity:0.75,outlineWhileAnimating:2,outlineStartOffset:3,padToMinWidth:false,minWidth:200,minHeight:200,allowSizeReduction:true,outlineType:"rounded-white",expanders:[],overrides:["allowSizeReduction","useBox",
"outlineType","outlineWhileAnimating","width","height","wrapperClassName","minWidth","minHeight","maxWidth","maxHeight","slideshowGroup","easing","easingClose","fadeInOut","src"],timers:[],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),$:function(a){if(a)return document.getElementById(a)},
push:function(a,b){a[a.length]=b},createElement:function(a,b,c,d,e){a=document.createElement(a);b&&hs.extend(a,b);e&&hs.setStyles(a,{padding:0,border:"none",margin:0});c&&hs.setStyles(a,c);d&&d.appendChild(a);return a},extend:function(a,b){for(var c in b)a[c]=b[c];return a},setStyles:function(a,b){for(var c in b)if(hs.ie&&c=="opacity")if(b[c]>0.99)a.style.removeAttribute("filter");else a.style.filter="alpha(opacity="+b[c]*100+")";else a.style[c]=b[c]},animate:function(a,b,c){var d,e,f;if(typeof c!=
"object"||c===null){d=arguments;c={duration:d[2],easing:d[3],complete:d[4]}}if(typeof c.duration!="number")c.duration=250;c.easing=Math[c.easing]||Math.easeInQuad;c.curAnim=hs.extend({},b);for(var g in b){var h=new hs.fx(a,c,g);d=parseFloat(hs.css(a,g))||0;e=parseFloat(b[g]);f=g!="opacity"?"px":"";h.custom(d,e,f)}},css:function(a,b){if(document.defaultView)return document.defaultView.getComputedStyle(a,null).getPropertyValue(b);else{if(b=="opacity")b="filter";a=a.currentStyle[b.replace(/\-(\w)/g,
function(c,d){return d.toUpperCase()})];if(b=="filter")a=a.replace(/alpha\(opacity=([0-9]+)\)/,function(c,d){return d/100});return a===""?1:a}},getPageSize:function(){var a=document,b=a.compatMode&&a.compatMode!="BackCompat"?a.documentElement:a.body;a=hs.ie?b.clientWidth:a.documentElement.clientWidth||self.innerWidth;var c=hs.ie?b.clientHeight:self.innerHeight;hs.page={width:a,height:c,scrollLeft:hs.ie?b.scrollLeft:pageXOffset,scrollTop:hs.ie?b.scrollTop:pageYOffset}},getPosition:function(a){for(var b=
{x:a.offsetLeft,y:a.offsetTop};a.offsetParent;){a=a.offsetParent;b.x+=a.offsetLeft;b.y+=a.offsetTop;if(a!=document.body&&a!=document.documentElement){b.x-=a.scrollLeft;b.y-=a.scrollTop}}return b},expand:function(a,b,c){a||(a=hs.createElement("a",null,{display:"none"},hs.container));if(typeof a.getParams=="function")return b;try{new hs.Expander(a,b,c);return false}catch(d){return true}},getParam:function(a,b){a.getParams=a.onclick;var c=a.getParams?a.getParams():null;a.getParams=null;return c&&typeof c[b]!=
"undefined"?c[b]:typeof hs[b]!="undefined"?hs[b]:null},getSrc:function(a){var b=hs.getParam(a,"src");if(b)return b;return a.href},discardElement:function(a){a&&hs.garbageBin.appendChild(a);hs.garbageBin.innerHTML=""},getWrapperKey:function(a,b){var c,d=/^highslide-wrapper-([0-9]+)$/;for(c=a;c.parentNode;){if(c.id&&d.test(c.id))return c.id.replace(d,"$1");c=c.parentNode}if(!b)for(c=a;c.parentNode;){if(c.tagName&&hs.isHsAnchor(c))for(a=0;a<hs.expanders.length;a++)if((b=hs.expanders[a])&&b.a==c)return a;
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){a==document&&b=="ready"&&hs.push(hs.onReady,c);try{a.addEventListener(b,c,false)}catch(d){try{a.detachEvent("on"+
b,c);a.attachEvent("on"+b,c)}catch(e){a["on"+b]=c}}},removeEventListener:function(a,b,c){try{a.removeEventListener(b,c,false)}catch(d){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 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);Math.linearTween=function(b,c,d,e){return d*b/e+c};Math.easeInQuad=function(b,c,d,e){return d*
(b/=e)*b+c}}},ready:function(){if(!hs.isReady){hs.isReady=true;for(var a=0;a<hs.onReady.length;a++)hs.onReady[a]()}},close:function(a){(a=hs.getExpander(a))&&a.close();return false}};hs.fx=function(a,b,c){this.options=b;this.elem=a;this.prop=c;if(!b.orig)b.orig={}};hs.fx.prototype={update:function(){(hs.fx.step[this.prop]||hs.fx.step._default)(this);this.options.step&&this.options.step.call(this.elem,this.now,this)},custom:function(a,b,c){function d(f){return e.step(f)}this.startTime=(new Date).getTime();
this.start=a;this.end=b;this.unit=c;this.now=this.start;this.pos=this.state=0;var e=this;d.elem=this.elem;if(d()&&hs.timers.push(d)==1)hs.timerId=setInterval(function(){for(var f=hs.timers,g=0;g<f.length;g++)f[g]()||f.splice(g--,1);f.length||clearInterval(hs.timerId)},13)},step:function(a){var b=(new Date).getTime();if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();a=this.options.curAnim[this.prop]=true;for(var c in this.options.curAnim)if(this.options.curAnim[c]!==
true)a=false;a&&this.options.complete&&this.options.complete.call(this.elem);return false}else{c=b-this.startTime;this.state=c/this.options.duration;this.pos=this.options.easing(c,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};hs.extend(hs.fx,{step:{opacity:function(a){hs.setStyles(a.elem,{opacity:a.now})},_default:function(a){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(b){}}}});
hs.Outline=function(a,b){this.onLoad=b;this.outlineType=a;var c=hs.uaVersion,d;this.hasAlphaImageLoader=hs.ie&&c>=5.5&&c<7;if(a){hs.init();this.table=hs.createElement("table",{cellSpacing:0},{visibility:"hidden",position:"absolute",borderCollapse:"collapse",width:0},hs.container,true);b=hs.createElement("tbody",null,null,this.table,1);this.td=[];for(c=0;c<=8;c++){if(c%3==0)d=hs.createElement("tr",null,{height:"auto"},b,true);this.td[c]=hs.createElement("td",null,null,d,true);var e=c!=4?{lineHeight:0,
fontSize:0}:{position:"relative"};hs.setStyles(this.td[c],e)}this.td[4].className=a+" highslide-outline";this.preloadGraphic()}else b&&b()};hs.Outline.prototype={preloadGraphic:function(){var a="http://fraubrit.de/i/"+this.outlineType+".png",b=hs.safari?hs.container:null;this.graphic=hs.createElement("img",null,{position:"absolute",top:"-9999px"},b,true);var c=this;this.graphic.onload=function(){c.onGraphicLoad()};this.graphic.src=a},onGraphicLoad:function(){for(var a=this.offset=this.graphic.width/4,b=[[0,0],[0,-4],
[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],c={height:2*a+"px",width:2*a+"px"},d=0;d<=8;d++)if(b[d]){if(this.hasAlphaImageLoader){var e=d==1||d==7?"100%":this.graphic.width+"px",f=hs.createElement("div",null,{width:"100%",height:"100%",position:"relative",overflow:"hidden"},this.td[d],true);hs.createElement("div",null,{filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale, src='"+this.graphic.src+"')",position:"absolute",width:e,height:this.graphic.height+"px",left:b[d][0]*
a+"px",top:b[d][1]*a+"px"},f,true)}else hs.setStyles(this.td[d],{background:"url("+this.graphic.src+") "+b[d][0]*a+"px "+b[d][1]*a+"px"});if(window.opera&&(d==3||d==5))hs.createElement("div",null,c,this.td[d],true);hs.setStyles(this.td[d],c)}this.graphic=null;hs.pendingOutlines[this.outlineType]&&hs.pendingOutlines[this.outlineType].destroy();hs.pendingOutlines[this.outlineType]=this;this.onLoad&&this.onLoad()},setPosition:function(a,b,c){var d=this.exp;b=b||0;a=a||{x:d.x.pos+b,y:d.y.pos+b,w:d.x.get("wsize")-
2*b,h:d.y.get("wsize")-2*b};if(c)this.table.style.visibility=a.h>=4*this.offset?"visible":"hidden";hs.setStyles(this.table,{left:a.x-this.offset+"px",top:a.y-this.offset+"px",width:a.w+2*this.offset+"px"});a.w-=2*this.offset;a.h-=2*this.offset;hs.setStyles(this.td[4],{width:a.w>=0?a.w+"px":0,height:a.h>=0?a.h+"px":0});if(this.hasAlphaImageLoader)this.td[3].style.height=this.td[5].style.height=this.td[4].style.height},destroy:function(a){if(a)this.table.style.visibility="hidden";else hs.discardElement(this.table)}};
hs.Dimension=function(a,b){this.exp=a;this.dim=b;this.ucwh=b=="x"?"Width":"Height";this.wh=this.ucwh.toLowerCase();this.uclt=b=="x"?"Left":"Top";this.lt=this.uclt.toLowerCase();this.ucrb=b=="x"?"Right":"Bottom";this.rb=this.ucrb.toLowerCase()};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-(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";this.pos=this.tpos-this.cb+this.tb;if(this.maxHeight&&this.dim=="x")a.maxWidth=Math.min(a.maxWidth||this.full,a.maxHeight*this.full/a.y.full);this.size=Math.min(this.full,a["max"+this.ucwh]||this.full);this.minSize=a.allowSizeReduction?Math.min(a["min"+this.ucwh],this.full):this.full;if(a.isImage&&a.useBox){this.size=
a[this.wh];this.imgSize=this.full}if(this.dim=="x"&&hs.padToMinWidth)this.minSize=a.minWidth;this.marginMin=hs["margin"+this.uclt];this.scroll=hs.page["scroll"+this.uclt];this.clientSize=hs.page[this.wh]},setSize:function(a){var b=this.exp;if(b.isImage&&(b.useBox||hs.padToMinWidth)){this.imgSize=a;this.size=Math.max(this.size,this.imgSize);b.content.style[this.lt]=this.get("imgPad")+"px"}else this.size=a;b.content.style[this.wh]=a+"px";b.wrapper.style[this.wh]=this.get("wsize")+"px";b.outline&&b.outline.setPosition()},
setPos:function(a){this.pos=a;this.exp.wrapper.style[this.lt]=a+"px";this.exp.outline&&this.exp.outline.setPosition()}};hs.Expander=function(a,b,c,d){if(document.readyState&&hs.ie&&!hs.isReady)hs.addEventListener(document,"ready",function(){new hs.Expander(a,b,c,d)});else{this.a=a;this.custom=c;this.contentType=d||"image";this.isImage=!this.isHtml;hs.init();for(var e=this.key=hs.expanders.length,f=0;f<hs.overrides.length;f++){var g=hs.overrides[f];this[g]=b&&typeof b[g]!="undefined"?b[g]:hs[g]}if(!this.src)this.src=
a.href;g=b&&b.thumbnailId?hs.$(b.thumbnailId):a;g=this.thumb=g.getElementsByTagName("img")[0]||g;this.thumbsUserSetId=g.id||a.id;for(f=0;f<hs.expanders.length;f++)if(hs.expanders[f]&&hs.expanders[f].a==a){hs.expanders[f].focus();return false}if(!hs.allowSimultaneousLoading)for(f=0;f<hs.expanders.length;f++)hs.expanders[f]&&hs.expanders[f].thumb!=g&&!hs.expanders[f].onLoadStarted&&hs.expanders[f].cancelLoading();hs.expanders[e]=this;hs.expanders[e-1]&&hs.expanders[e-1].close();typeof hs.focusKey!=
"undefined"&&hs.expanders[hs.focusKey]&&hs.expanders[hs.focusKey].close();this.el=g;this.tpos=hs.getPosition(g);hs.getPageSize();e=this.x=new hs.Dimension(this,"x");e.calcThumb();e=this.y=new hs.Dimension(this,"y");e.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);if(this.contentType=="image"&&this.outlineWhileAnimating==2)this.outlineWhileAnimating=
0;if(this.outlineType)if(hs.pendingOutlines[this.outlineType]){this.connectOutline();this[this.contentType+"Create"]()}else{this.showLoading();var h=this;new hs.Outline(this.outlineType,function(){h.connectOutline();h[h.contentType+"Create"]()})}else this[this.contentType+"Create"]();return true}};hs.Expander.prototype={error:function(){window.location.href=this.src},connectOutline:function(){var a=this.outline=hs.pendingOutlines[this.outlineType];a.exp=this;a.table.style.zIndex=this.wrapper.style.zIndex-
1;hs.pendingOutlines[this.outlineType]=null},showLoading:function(){if(!(this.onLoadStarted||this.loading)){this.loading=hs.loading;var a=this;this.loading.onclick=function(){a.cancelLoading()};a=this;var b=this.x.get("loadingPos")+"px",c=this.y.get("loadingPos")+"px";setTimeout(function(){a.loading&&hs.setStyles(a.loading,{left:b,top:c,zIndex:hs.zIndexCounter++})},100)}},imageCreate:function(){var a=this,b=document.createElement("img");this.content=b;b.onload=function(){hs.expanders[a.key]&&a.contentLoaded()};
b.onclick=function(){try{a.close()}catch(c){}};if(hs.blockRightClick)b.oncontextmenu=function(){return false};b.className="highslide-image";hs.setStyles(b,{visibility:"hidden",display:"block",position:"absolute",maxWidth:"9999px",zIndex:3});b.title=hs.lang.restoreTitle;hs.safari&&hs.container.appendChild(b);if(hs.ie&&hs.flushImgSize)b.src=null;b.src=this.src;this.showLoading()},contentLoaded:function(){try{if(this.content){this.content.onload=null;if(!this.onLoadStarted){this.onLoadStarted=true;var a=
this.x,b=this.y;if(this.loading){hs.setStyles(this.loading,{top:"-9999px"});this.loading=null}a.full=this.content.width;b.full=this.content.height;hs.setStyles(this.content,{width:a.t+"px",height:b.t+"px"});this.wrapper.appendChild(this.content);hs.container.appendChild(this.wrapper);a.calcBorders();b.calcBorders();hs.setStyles(this.wrapper,{left:a.tpos+a.tb-a.cb+"px",top:b.tpos+a.tb-b.cb+"px"});var c=a.full/b.full;a.calcExpanded();this.justify(a);b.calcExpanded();this.justify(b);this.allowSizeReduction&&
this.correctRatio(c);this.show()}}}catch(d){this.error(d)}},justify:function(a,b){var c=a==this.x?"x":"y",d=false,e=a.exp.allowSizeReduction;a.pos=Math.round(a.pos-(a.get("wsize")-a.t)/2);if(a.pos<a.scroll+a.marginMin){a.pos=a.scroll+a.marginMin;d=true}if(!b&&a.size<a.minSize){a.size=a.minSize;e=false}if(a.pos+a.get("wsize")>a.scroll+a.clientSize-a.marginMax)if(!b&&d&&e)a.size=Math.min(a.size,a.get(c=="y"?"fitsize":"maxsize"));else if(a.get("wsize")<a.get("fitsize"))a.pos=a.scroll+a.clientSize-a.marginMax-
a.get("wsize");else{a.pos=a.scroll+a.marginMin;if(!b&&e)a.size=a.get(c=="y"?"fitsize":"maxsize")}if(!b&&a.size<a.minSize){a.size=a.minSize;e=false}if(a.pos<a.marginMin){c=a.pos;a.pos=a.marginMin;if(e&&!b)a.size-=a.pos-c}},correctRatio:function(a){var b=this.x,c=this.y,d=false,e=Math.min(b.full,b.size),f=Math.min(c.full,c.size),g=this.useBox||hs.padToMinWidth;if(e/f>a){e=f*a;if(e<b.minSize){e=b.minSize;f=e/a}d=true}else if(e/f<a){f=e/a;d=true}if(hs.padToMinWidth&&b.full<b.minSize){b.imgSize=b.full;
c.size=c.imgSize=c.full}else if(this.useBox){b.imgSize=e;c.imgSize=f}else{b.size=e;c.size=f}if(g&&c.size<c.imgSize){c.imgSize=c.size;b.imgSize=c.size*a}if(d||g){b.pos=b.tpos-b.cb+b.tb;b.minSize=b.size;this.justify(b,true);c.pos=c.tpos-c.cb+c.tb;c.minSize=c.size;this.justify(c,true);this.overlayBox&&this.sizeOverlayBox()}},show:function(){var a=this.x,b=this.y;this.changeSize(1,{wrapper:{width:a.get("wsize"),height:b.get("wsize"),left:a.pos,top:b.pos},content:{left:a.p1+a.get("imgPad"),top:b.p1+b.get("imgPad"),
width:a.imgSize||a.size,height:b.imgSize||b.size}},hs.expandDuration)},changeSize:function(a,b,c){if(this.outline&&!this.outlineWhileAnimating)a?this.outline.setPosition():this.outline.destroy();var d=this,e=d.x,f=d.y,g=this.easing;a||(g=this.easingClose||g);var h=a?function(){if(d.outline)d.outline.table.style.visibility="visible";setTimeout(function(){d.afterExpand()},50)}:function(){d.afterClose()};a&&hs.setStyles(this.wrapper,{width:e.t+"px",height:f.t+"px"});if(this.fadeInOut){hs.setStyles(this.wrapper,
{opacity:a?0:1});hs.extend(b.wrapper,{opacity:a})}hs.animate(this.wrapper,b.wrapper,{duration:c,easing:g,step:function(i,j){if(d.outline&&d.outlineWhileAnimating&&j.prop=="top"){i=a?j.pos:1-j.pos;i={w:e.t+(e.get("wsize")-e.t)*i,h:f.t+(f.get("wsize")-f.t)*i,x:e.tpos+(e.pos-e.tpos)*i,y:f.tpos+(f.pos-f.tpos)*i};d.outline.setPosition(i,0,1)}}});hs.animate(this.content,b.content,c,g,h);if(a){this.wrapper.style.visibility="visible";this.content.style.visibility="visible";this.a.className+=" highslide-active-anchor"}},
afterExpand:function(){this.isExpanded=true;this.focus();this.prepareNextOutline()},prepareNextOutline:function(){var a=this.outlineType;new hs.Outline(a)},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":"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)){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:{left:0,top:0,width:this.x.t,height:this.y.t}},hs.restoreDuration)}catch(a){this.afterClose()}}},afterClose:function(){this.a.className=this.a.className.replace("highslide-active-anchor",
"");this.outline&&this.outlineWhileAnimating&&this.outline.destroy();hs.discardElement(this.wrapper);hs.expanders[this.key]=null}};hs.langDefaults=hs.lang;var HsExpander=hs.Expander;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){var a=hs.createElement("style",
{type:"text/css"},null,document.getElementsByTagName("HEAD")[0]);function b(c,d){if(hs.ie){var e=document.styleSheets[document.styleSheets.length-1];typeof e.addRule=="object"&&e.addRule(c,d)}else a.appendChild(document.createTextNode(c+" {"+d+"}"))}hs.expandCursor&&b(".highslide img","cursor: pointer !important;")}});hs.addEventListener(window,"resize",function(){hs.getPageSize()})};
