/******************************************************************************
Name:    Highslide JS
Version: 4.1.8 (October 27 2009)
Config:  default +events +unobtrusive +imagemap +slideshow +positioning +transitions +viewport +thumbstrip +inline +ajax +iframe +flash
Author:  Torstein Hønsi
Support: http://highslide.com/support

Licence:
Highslide JS is licensed under a Creative Commons Attribution-NonCommercial 2.5
License (http://creativecommons.org/licenses/by-nc/2.5/).

You are free:
	* to copy, distribute, display, and perform the work
	* to make derivative works

Under the following conditions:
	* Attribution. You must attribute the work in the manner  specified by  the
	  author or licensor.
	* Noncommercial. You may not use this work for commercial purposes.

* For  any  reuse  or  distribution, you  must make clear to others the license
  terms of this work.
* Any  of  these  conditions  can  be  waived  if  you  get permission from the 
  copyright holder.

Your fair use and other rights are in no way affected by the above.
******************************************************************************/
if(!RShs){var RShs={lang:{cssDirection:"ltr",loadingText:"Bitte warten...",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:"Zur&uuml;ck",nextText:"Vorw&auml;rts",moveText:"Fenster Bewegen",closeText:"Fenster Schliessen",closeTitle:"Close (esc)",resizeTitle:"Resize",playText:"Play",playTitle:"Play slideshow (spacebar)",pauseText:"Pause",pauseTitle:"Pause slideshow (spacebar)",previousTitle:"Zurück (Linke Pfeiltaste)",nextTitle:"Vorwärts (Rechte Pfeiltaste)",moveTitle:"Bewegen",fullExpandText:"1:1",number:"Image %1 of %2",restoreTitle:"Zum Schliessen klicken."},graphicsDir:"http://re-share.de/js/highslide/graphics/",expandCursor:"lupe.png",restoreCursor:"lupe_close.png",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:false,creditsHref:"http://highslide.com/",creditsTarget:"_self",enableKeyListener:true,openerTagNames:["a","area"],transitions:[],transitionDuration:250,dimmingOpacity:0,dimmingDuration:50,allowWidthReduction:false,allowHeightReduction:true,preserveContent:true,objectLoadTime:"before",cacheAjax:true,anchor:"auto",align:"auto",targetX:null,targetY:null,dragByHeading:true,minWidth:200,minHeight:200,allowSizeReduction:true,outlineType:"rounded-white",skin:{controls:'<div class="reshare_reshare_highslide-controls"><ul><li class="reshare_reshare_highslide-previous"><a href="#" title="{RShs.lang.previousTitle}"><span>{RShs.lang.previousText}</span></a></li><li class="reshare_reshare_highslide-play"><a href="#" title="{RShs.lang.playTitle}"><span>{RShs.lang.playText}</span></a></li><li class="reshare_highslide-pause"><a href="#" title="{RShs.lang.pauseTitle}"><span>{RShs.lang.pauseText}</span></a></li><li class="reshare_highslide-next"><a href="#" title="{RShs.lang.nextTitle}"><span>{RShs.lang.nextText}</span></a></li><li class="reshare_highslide-move"><a href="#" title="{RShs.lang.moveTitle}"><span>{RShs.lang.moveText}</span></a></li><li class="reshare_highslide-full-expand"><a href="#" title="{RShs.lang.fullExpandTitle}"><span>{RShs.lang.fullExpandText}</span></a></li><li class="reshare_highslide-close"><a href="#" title="{RShs.lang.closeTitle}" ><span>{RShs.lang.closeText}</span></a></li></ul></div>',contentWrapper:'<div class="reshare_highslide-header"><ul><li class="reshare_highslide-previous"><a href="#" title="{RShs.lang.previousTitle}" onclick="return RShs.previous(this)"><span>{RShs.lang.previousText}</span></a></li><li class="reshare_highslide-next"><a href="#" title="{RShs.lang.nextTitle}" onclick="return RShs.next(this)"><span>{RShs.lang.nextText}</span></a></li><li class="reshare_highslide-move"><a href="#" title="{RShs.lang.moveTitle}" onclick="return false"><span>{RShs.lang.moveText}</span></a></li><li class="reshare_highslide-close"><a href="#" title="{RShs.lang.closeTitle}" onclick="return RShs.close(this)"><span>{RShs.lang.closeText}</span></a></li></ul></div><div class="reshare_highslide-body"></div><div class="reshare_highslide-footer"><div><span class="reshare_highslide-resize" title="{RShs.lang.resizeTitle}"><span></span></span></div></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","contentId","allowWidthReduction","allowHeightReduction","preserveContent","maincontentId","maincontentText","maincontentEval","objectType","cacheAjax","objectWidth","objectHeight","objectLoadTime","swfOptions","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:{},swfOptions:{flashvars:{},params:{},attributes:{}},timers:[],slideshows:[],pendingOutlines:{},sleeping:[],preloadTheseAjax:[],cacheBindings:[],cachedGets:{},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(a,f,e,d,c){var b=document.createElement(a);if(f){RShs.extend(b,f)}if(c){RShs.setStyles(b,{padding:0,border:"none",margin:0})}if(e){RShs.setStyles(b,e)}if(d){d.appendChild(b)}return b},extend:function(b,c){for(var a in c){b[a]=c[a]}return b},setStyles:function(b,c){for(var a in c){if(RShs.ie&&a=="opacity"){if(c[a]>0.99){b.style.removeAttribute("filter")}else{b.style.filter="alpha(opacity="+(c[a]*100)+")"}}else{b.style[a]=c[a]}}},animate:function(f,a,d){var c,g,j;if(typeof d!="object"||d===null){var i=arguments;d={duration:i[2],easing:i[3],complete:i[4]}}if(typeof d.duration!="number"){d.duration=250}d.easing=Math[d.easing]||Math.easeInQuad;d.curAnim=RShs.extend({},a);for(var b in a){var h=new RShs.fx(f,d,b);c=parseFloat(RShs.css(f,b))||0;g=parseFloat(a[b]);j=b!="opacity"?"px":"";h.custom(c,g,j)}},css:function(a,c){if(document.defaultView){return document.defaultView.getComputedStyle(a,null).getPropertyValue(c)}else{if(c=="opacity"){c="filter"}var b=a.currentStyle[c.replace(/\-(\w)/g,function(e,d){return d.toUpperCase()})];if(c=="filter"){b=b.replace(/alpha\(opacity=([0-9]+)\)/,function(e,d){return d/100})}return b===""?1:b}},getPageSize:function(){var f=document,b=window,e=f.compatMode&&f.compatMode!="BackCompat"?f.documentElement:f.body;var c=RShs.ie?e.clientWidth:(f.documentElement.clientWidth||self.innerWidth),a=RShs.ie?e.clientHeight:self.innerHeight;RShs.page={width:c,height:a,scrollLeft:RShs.ie?e.scrollLeft:pageXOffset,scrollTop:RShs.ie?e.scrollTop:pageYOffset}},getPosition:function(c){if(/area/i.test(c.tagName)){var e=document.getElementsByTagName("img");for(var b=0;b<e.length;b++){var a=e[b].useMap;if(a&&a.replace(/^.*?#/,"")==c.parentNode.name){c=e[b];break}}}var d={x:c.offsetLeft,y:c.offsetTop};while(c.offsetParent){c=c.offsetParent;d.x+=c.offsetLeft;d.y+=c.offsetTop;if(c!=document.body&&c!=document.documentElement){d.x-=c.scrollLeft;d.y-=c.scrollTop}}return d},expand:function(b,h,f,d){if(!b){b=RShs.createElement("a",null,{display:"none"},RShs.container)}if(typeof b.getParams=="function"){return h}if(d=="html"){for(var c=0;c<RShs.sleeping.length;c++){if(RShs.sleeping[c]&&RShs.sleeping[c].a==b){RShs.sleeping[c].awake();RShs.sleeping[c]=null;return false}}RShs.hasHtmlExpanders=true}try{new RShs.Expander(b,h,f,d);return false}catch(g){return true}},htmlExpand:function(b,d,c){return RShs.expand(b,d,c,"html")},getSelfRendered:function(){return RShs.createElement("div",{className:"reshare_highslide-html-content",innerHTML:RShs.replaceLang(RShs.skin.contentWrapper)})},getElementByClass:function(e,c,d){var b=e.getElementsByTagName(c);for(var a=0;a<b.length;a++){if((new RegExp(d)).test(b[a].className)){return b[a]}}return null},replaceLang:function(c){c=c.replace(/\s/g," ");var b=/{RShs\.lang\.([^}]+)\}/g,d=c.match(b),e;if(d){for(var a=0;a<d.length;a++){e=d[a].replace(b,"$1");if(typeof RShs.lang[e]!="undefined"){c=c.replace(d[a],RShs.lang[e])}}}return c},setClickEvents:function(){var b=document.getElementsByTagName("a");for(var a=0;a<b.length;a++){var c=RShs.isUnobtrusiveAnchor(b[a]);if(c&&!b[a].hsHasSetClick){(function(){var d=c;if(RShs.fireEvent(hs,"onSetClickEvent",{element:b[a],type:d})){b[a].onclick=(c=="image")?function(){return RShs.expand(this)}:function(){return RShs.htmlExpand(this,{objectType:d})}}})();b[a].hsHasSetClick=true}}RShs.getAnchors()},isUnobtrusiveAnchor:function(a){if(a.rel=="highslide"){return"image"}else{if(a.rel=="reshare_highslide-ajax"){return"ajax"}else{if(a.rel=="reshare_highslide-iframe"){return"iframe"}else{if(a.rel=="reshare_highslide-swf"){return"swf"}}}}},getCacheBinding:function(b){for(var d=0;d<RShs.cacheBindings.length;d++){if(RShs.cacheBindings[d][0]==b){var e=RShs.cacheBindings[d][1];RShs.cacheBindings[d][1]=e.cloneNode(1);return e}}return null},preloadAjax:function(f){var b=RShs.getAnchors();for(var d=0;d<b.htmls.length;d++){var c=b.htmls[d];if(RShs.getParam(c,"objectType")=="ajax"&&RShs.getParam(c,"cacheAjax")){RShs.push(RShs.preloadTheseAjax,c)}}RShs.preloadAjaxElement(0)},preloadAjaxElement:function(d){if(!RShs.preloadTheseAjax[d]){return}var b=RShs.preloadTheseAjax[d];var c=RShs.getNode(RShs.getParam(b,"contentId"));if(!c){c=RShs.getSelfRendered()}var e=new RShs.Ajax(b,c,1);e.onError=function(){};e.onLoad=function(){RShs.push(RShs.cacheBindings,[b,c]);RShs.preloadAjaxElement(d+1)};e.run()},focusTopmost:function(){var c=0,b=-1,a=RShs.expanders,e,f;for(var d=0;d<a.length;d++){e=a[d];if(e){f=e.wrapper.style.zIndex;if(f&&f>c){c=f;b=d}}}if(b==-1){RShs.focusKey=-1}else{a[b].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 RShs[d]!="undefined"?RShs[d]:null)},getSrc:function(b){var c=RShs.getParam(b,"src");if(c){return c}return b.href},getNode:function(e){var c=RShs.$(e),d=RShs.clones[e],b={};if(!c&&!d){return null}if(!d){d=c.cloneNode(true);d.id="";RShs.clones[e]=d;return c}else{return d.cloneNode(true)}},discardElement:function(a){if(a){RShs.garbageBin.appendChild(a)}RShs.garbageBin.innerHTML=""},dim:function(a){if(!RShs.dimmer){RShs.dimmer=RShs.createElement("div",{className:"reshare_highslide-dimming reshare_highslide-viewport-size",owner:"",onclick:function(){if(RShs.fireEvent(hs,"onDimmerClick")){RShs.close()}}},{visibility:"visible",opacity:0},RShs.container,true)}RShs.dimmer.style.display="";RShs.dimmer.owner+="|"+a.key;if(RShs.geckoMac&&RShs.dimmingGeckoFix){RShs.setStyles(RShs.dimmer,{background:"url("+RShs.graphicsDir+"geckodimmer.png)",opacity:1})}else{RShs.animate(RShs.dimmer,{opacity:a.dimmingOpacity},RShs.dimmingDuration)}},undim:function(a){if(!RShs.dimmer){return}if(typeof a!="undefined"){RShs.dimmer.owner=RShs.dimmer.owner.replace("|"+a,"")}if((typeof a!="undefined"&&RShs.dimmer.owner!="")||(RShs.upcoming&&RShs.getParam(RShs.upcoming,"dimmingOpacity"))){return}if(RShs.geckoMac&&RShs.dimmingGeckoFix){RShs.dimmer.style.display="none"}else{RShs.animate(RShs.dimmer,{opacity:0},RShs.dimmingDuration,null,function(){RShs.dimmer.style.display="none"})}},transit:function(a,d){var b=d=d||RShs.getExpander();if(RShs.upcoming){return false}else{RShs.last=b}try{RShs.upcoming=a;a.onclick()}catch(c){RShs.last=RShs.upcoming=null}try{if(!a||d.transitions[1]!="crossfade"){d.close()}}catch(c){}return false},previousOrNext:function(a,c){var b=RShs.getExpander(a);if(b){return RShs.transit(b.getAdjacentAnchor(c),b)}else{return false}},previous:function(a){return RShs.previousOrNext(a,-1)},next:function(a){return RShs.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}if(!RShs.fireEvent(hs,"onKeyDown",a)){return true}var b=RShs.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){RShs.removeEventListener(document,window.opera?"keypress":"keydown",RShs.keyHandler)}if(!RShs.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()}RShs.previousOrNext(b.key,c)}}return false}}return true},registerOverlay:function(a){RShs.push(RShs.overlays,RShs.extend(a,{hsId:"hsId"+RShs.idCounter++}))},addSlideshow:function(b){var d=b.slideshowGroup;if(typeof d=="object"){for(var c=0;c<d.length;c++){var e={};for(var a in b){e[a]=b[a]}e.slideshowGroup=d[c];RShs.push(RShs.slideshows,e)}}else{RShs.push(RShs.slideshows,b)}},getWrapperKey:function(c,b){var e,d=/^reshare_highslide-wrapper-([0-9]+)$/;e=c;while(e.parentNode){if(e.hsKey!==undefined){return e.hsKey}if(e.id&&d.test(e.id)){return e.id.replace(d,"$1")}e=e.parentNode}if(!b){e=c;while(e.parentNode){if(e.tagName&&RShs.isHsAnchor(e)){for(var a=0;a<RShs.expanders.length;a++){var f=RShs.expanders[a];if(f&&f.a==e){return a}}}e=e.parentNode}}return null},getExpander:function(b,a){if(typeof b=="undefined"){return RShs.expanders[RShs.focusKey]||null}if(typeof b=="number"){return RShs.expanders[b]||null}if(typeof b=="string"){b=RShs.$(b)}return RShs.expanders[RShs.getWrapperKey(b,a)]||null},isHsAnchor:function(b){return(b.onclick&&b.onclick.toString().replace(/\s/g," ").match(/RShs.(htmlE|e)xpand/))},reOrder:function(){for(var a=0;a<RShs.expanders.length;a++){if(RShs.expanders[a]&&RShs.expanders[a].isExpanded){RShs.focusTopmost()}}},fireEvent:function(c,a,b){return c&&c[a]?(c[a](c,b)!==false):true},mouseClickHandler:function(d){if(!d){d=window.event}if(d.button>1){return true}if(!d.target){d.target=d.srcElement}var b=d.target;while(b.parentNode&&!(/reshare_highslide-(image|move|html|resize)/.test(b.className))){b=b.parentNode}var f=RShs.getExpander(b);if(f&&(f.isClosing||!f.isExpanded)){return true}if(f&&d.type=="mousedown"){if(d.target.form){return true}var a=b.className.match(/reshare_highslide-(image|move|resize)/);if(a){RShs.dragArgs={exp:f,type:a[1],left:f.x.pos,width:f.x.size,top:f.y.pos,height:f.y.size,clickX:d.clientX,clickY:d.clientY};RShs.addEventListener(document,"mousemove",RShs.dragHandler);if(d.preventDefault){d.preventDefault()}if(/reshare_highslide-(image|html)-blur/.test(f.content.className)){f.focus();RShs.hasFocused=true}return false}else{if(/reshare_highslide-html/.test(b.className)&&RShs.focusKey!=f.key){f.focus();f.doShowHide("hidden")}}}else{if(d.type=="mouseup"){RShs.removeEventListener(document,"mousemove",RShs.dragHandler);if(RShs.dragArgs){if(RShs.styleRestoreCursor&&RShs.dragArgs.type=="image"){RShs.dragArgs.exp.content.style.cursor=RShs.styleRestoreCursor}var c=RShs.dragArgs.hasDragged;if(!c&&!RShs.hasFocused&&!/(move|resize)/.test(RShs.dragArgs.type)){if(RShs.fireEvent(f,"onImageClick")){f.close()}}else{if(c||(!c&&RShs.hasHtmlExpanders)){RShs.dragArgs.exp.doShowHide("hidden")}}if(RShs.dragArgs.exp.releaseMask){RShs.dragArgs.exp.releaseMask.style.display="none"}if(c){RShs.fireEvent(RShs.dragArgs.exp,"onDrop",RShs.dragArgs)}RShs.hasFocused=false;RShs.dragArgs=null}else{if(/reshare_highslide-image-blur/.test(b.className)){b.style.cursor=RShs.styleRestoreCursor}}}}return false},dragHandler:function(c){if(!RShs.dragArgs){return true}if(!c){c=window.event}var b=RShs.dragArgs,d=b.exp;if(d.iframe){if(!d.releaseMask){d.releaseMask=RShs.createElement("div",null,{position:"absolute",width:d.x.size+"px",height:d.y.size+"px",left:d.x.cb+"px",top:d.y.cb+"px",zIndex:4,background:(RShs.ie?"white":"none"),opacity:0.01},d.wrapper,true)}if(d.releaseMask.style.display=="none"){d.releaseMask.style.display=""}}b.dX=c.clientX-b.clickX;b.dY=c.clientY-b.clickY;var f=Math.sqrt(Math.pow(b.dX,2)+Math.pow(b.dY,2));if(!b.hasDragged){b.hasDragged=(b.type!="image"&&f>0)||(f>(RShs.dragSensitivity||5))}if(b.hasDragged&&c.clientX>5&&c.clientY>5){if(!RShs.fireEvent(d,"onDrag",b)){return false}if(b.type=="resize"){d.resize(b)}else{d.moveTo(b.left+b.dX,b.top+b.dY);if(b.type=="image"){d.content.style.cursor="move"}}}return false},wrapperMouseHandler:function(c){try{if(!c){c=window.event}var b=/mouseover/i.test(c.type);if(!c.target){c.target=c.srcElement}if(RShs.ie){c.relatedTarget=b?c.fromElement:c.toElement}var d=RShs.getExpander(c.target);if(!d.isExpanded){return}if(!d||!c.relatedTarget||RShs.getExpander(c.relatedTarget,true)==d||RShs.dragArgs){return}RShs.fireEvent(d,b?"onMouseOver":"onMouseOut",c);for(var a=0;a<d.overlays.length;a++){(function(){var e=RShs.$("hsId"+d.overlays[a]);if(e&&e.hideOnMouseOut){if(b){RShs.setStyles(e,{visibility:"visible",display:""})}RShs.animate(e,{opacity:b?e.opacity:0},e.dur)}})()}}catch(c){}},addEventListener:function(a,c,b){if(a==document&&c=="ready"){RShs.push(RShs.onReady,b)}try{a.addEventListener(c,b,false)}catch(d){try{a.detachEvent("on"+c,b);a.attachEvent("on"+c,b)}catch(d){a["on"+c]=b}}},removeEventListener:function(a,c,b){try{a.removeEventListener(c,b,false)}catch(d){try{a.detachEvent("on"+c,b)}catch(d){a["on"+c]=null}}},preloadFullImage:function(b){if(RShs.continuePreloading&&RShs.preloadTheseImages[b]&&RShs.preloadTheseImages[b]!="undefined"){var a=document.createElement("img");a.onload=function(){a=null;RShs.preloadFullImage(b+1)};a.src=RShs.preloadTheseImages[b]}},preloadImages:function(c){if(c&&typeof c!="object"){RShs.numberOfImagesToPreload=c}var a=RShs.getAnchors();for(var b=0;b<a.images.length&&b<RShs.numberOfImagesToPreload;b++){RShs.push(RShs.preloadTheseImages,RShs.getSrc(a.images[b]))}if(RShs.outlineType){new RShs.Outline(RShs.outlineType,function(){RShs.preloadFullImage(0)})}else{RShs.preloadFullImage(0)}if(RShs.restoreCursor){var d=RShs.createElement("img",{src:RShs.graphicsDir+RShs.restoreCursor})}},init:function(){if(!RShs.container){RShs.getPageSize();RShs.ieLt7=RShs.ie&&RShs.uaVersion<7;RShs.ie6SSL=RShs.ieLt7&&location.protocol=="https:";for(var a in RShs.langDefaults){if(typeof RShs[a]!="undefined"){RShs.lang[a]=RShs[a]}else{if(typeof RShs.lang[a]=="undefined"&&typeof RShs.langDefaults[a]!="undefined"){RShs.lang[a]=RShs.langDefaults[a]}}}RShs.container=RShs.createElement("div",{className:"reshare_highslide-container"},{position:"absolute",left:0,top:0,width:"100%",zIndex:RShs.zIndexCounter,direction:"ltr"},document.body,true);RShs.loading=RShs.createElement("a",{className:"reshare_highslide-loading",title:RShs.lang.loadingTitle,innerHTML:RShs.lang.loadingText,href:"javascript:;"},{position:"absolute",top:"-9999px",opacity:RShs.loadingOpacity,zIndex:1},RShs.container);RShs.garbageBin=RShs.createElement("div",null,{display:"none"},RShs.container);RShs.viewport=RShs.createElement("div",{className:"reshare_highslide-viewport reshare_highslide-viewport-size"},{visibility:(RShs.safari&&RShs.uaVersion<525)?"visible":"hidden"},RShs.container,1);RShs.clearing=RShs.createElement("div",null,{clear:"both",paddingTop:"1px"},null,true);Math.linearTween=function(f,e,h,g){return h*f/g+e};Math.easeInQuad=function(f,e,h,g){return h*(f/=g)*f+e};Math.easeOutQuad=function(f,e,h,g){return -h*(f/=g)*(f-2)+e};RShs.hideSelects=RShs.ieLt7;RShs.hideIframes=((window.opera&&RShs.uaVersion<9)||navigator.vendor=="KDE"||(RShs.ie&&RShs.uaVersion<5.5));RShs.fireEvent(this,"onActivate")}},ready:function(){if(RShs.isReady){return}RShs.isReady=true;for(var a=0;a<RShs.onReady.length;a++){RShs.onReady[a]()}},updateAnchors:function(){var a,d,l=[],h=[],k=[],b={},m;for(var e=0;e<RShs.openerTagNames.length;e++){d=document.getElementsByTagName(RShs.openerTagNames[e]);for(var c=0;c<d.length;c++){a=d[c];m=RShs.isHsAnchor(a);if(m){RShs.push(l,a);if(m[0]=="RShs.expand"){RShs.push(h,a)}else{if(m[0]=="RShs.htmlExpand"){RShs.push(k,a)}}var f=RShs.getParam(a,"slideshowGroup")||"none";if(!b[f]){b[f]=[]}RShs.push(b[f],a)}}}RShs.anchors={all:l,groups:b,images:h,htmls:k};return RShs.anchors},getAnchors:function(){return RShs.anchors||RShs.updateAnchors()},close:function(a){var b=RShs.getExpander(a);if(b){b.close()}return false}};RShs.fx=function(b,a,c){this.options=a;this.elem=b;this.prop=c;if(!a.orig){a.orig={}}};RShs.fx.prototype={update:function(){(RShs.fx.step[this.prop]||RShs.fx.step._default)(this);if(this.options.step){this.options.step.call(this.elem,this.now,this)}},custom:function(e,d,c){this.startTime=(new Date()).getTime();this.start=e;this.end=d;this.unit=c;this.now=this.start;this.pos=this.state=0;var a=this;function b(f){return a.step(f)}b.elem=this.elem;if(b()&&RShs.timers.push(b)==1){RShs.timerId=setInterval(function(){var g=RShs.timers;for(var f=0;f<g.length;f++){if(!g[f]()){g.splice(f--,1)}}if(!g.length){clearInterval(RShs.timerId)}},13)}},step:function(d){var c=(new Date()).getTime();if(d||c>=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 b in this.options.curAnim){if(this.options.curAnim[b]!==true){a=false}}if(a){if(this.options.complete){this.options.complete.call(this.elem)}}return false}else{var e=c-this.startTime;this.state=e/this.options.duration;this.pos=this.options.easing(e,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};RShs.extend(RShs.fx,{step:{opacity:function(a){RShs.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){}}}});RShs.Outline=function(g,e){this.onLoad=e;this.outlineType=g;var a=RShs.uaVersion,f;this.hasAlphaImageLoader=RShs.ie&&a>=5.5&&a<7;if(!g){if(e){e()}return}RShs.init();this.table=RShs.createElement("table",{cellSpacing:0},{visibility:"hidden",position:"absolute",borderCollapse:"collapse",width:0},RShs.container,true);var b=RShs.createElement("tbody",null,null,this.table,1);this.td=[];for(var c=0;c<=8;c++){if(c%3==0){f=RShs.createElement("tr",null,{height:"auto"},b,true)}this.td[c]=RShs.createElement("td",null,null,f,true);var d=c!=4?{lineHeight:0,fontSize:0}:{position:"relative"};RShs.setStyles(this.td[c],d)}this.td[4].className=g+" reshare_highslide-outline";this.preloadGraphic()};RShs.Outline.prototype={preloadGraphic:function(){var b=RShs.graphicsDir+(RShs.outlinesDir||"outlines/")+this.outlineType+".png";var a=RShs.safari?RShs.container:null;this.graphic=RShs.createElement("img",null,{position:"absolute",top:"-9999px"},a,true);var c=this;this.graphic.onload=function(){c.onGraphicLoad()};this.graphic.src=b},onGraphicLoad:function(){var d=this.offset=this.graphic.width/4,f=[[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],c={height:(2*d)+"px",width:(2*d)+"px"};for(var b=0;b<=8;b++){if(f[b]){if(this.hasAlphaImageLoader){var a=(b==1||b==7)?"100%":this.graphic.width+"px";var e=RShs.createElement("div",null,{width:"100%",height:"100%",position:"relative",overflow:"hidden"},this.td[b],true);RShs.createElement("div",null,{filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale, src='"+this.graphic.src+"')",position:"absolute",width:a,height:this.graphic.height+"px",left:(f[b][0]*d)+"px",top:(f[b][1]*d)+"px"},e,true)}else{RShs.setStyles(this.td[b],{background:"url("+this.graphic.src+") "+(f[b][0]*d)+"px "+(f[b][1]*d)+"px"})}if(window.opera&&(b==3||b==5)){RShs.createElement("div",null,c,this.td[b],true)}RShs.setStyles(this.td[b],c)}}this.graphic=null;if(RShs.pendingOutlines[this.outlineType]){RShs.pendingOutlines[this.outlineType].destroy()}RShs.pendingOutlines[this.outlineType]=this;if(this.onLoad){this.onLoad()}},setPosition:function(g,e,c,b,f){var d=this.exp,a=d.wrapper.style,e=e||0,g=g||{x:d.x.pos+e,y:d.y.pos+e,w:d.x.get("wsize")-2*e,h:d.y.get("wsize")-2*e};if(c){this.table.style.visibility=(g.h>=4*this.offset)?"visible":"hidden"}RShs.setStyles(this.table,{left:(g.x-this.offset)+"px",top:(g.y-this.offset)+"px",width:(g.w+2*this.offset)+"px"});g.w-=2*this.offset;g.h-=2*this.offset;RShs.setStyles(this.td[4],{width:g.w>=0?g.w+"px":0,height:g.h>=0?g.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{RShs.discardElement(this.table)}}};RShs.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};RShs.Dimension.prototype={get:function(a){switch(a){case"loadingPos":return this.tpos+this.tb+(this.t-RShs.loading["offset"+this.ucwh])/2;case"loadingPosXfade":return this.pos+this.cb+this.p1+(this.size-RShs.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=RShs["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=(RShs.page[this.wh]/2)+RShs.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.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"&&RShs.padToMinWidth){this.minSize=a.minWidth}this.target=a["target"+this.dim.toUpperCase()];this.marginMin=RShs["margin"+this.uclt];this.scroll=RShs.page["scroll"+this.uclt];this.clientSize=RShs.page[this.wh]},setSize:function(a){var f=this.exp;if(f.isImage&&(f.useBox||RShs.padToMinWidth)){this.imgSize=a;this.size=Math.max(this.size,this.imgSize);f.content.style[this.lt]=this.get("imgPad")+"px"}else{this.size=a}f.content.style[this.wh]=a+"px";f.wrapper.style[this.wh]=this.get("wsize")+"px";if(f.outline){f.outline.setPosition()}if(f.releaseMask){f.releaseMask.style[this.wh]=a+"px"}if(this.dim=="y"&&f.iDoc&&f.body.style.height!="auto"){try{f.iDoc.body.style.overflow="auto"}catch(b){}}if(f.isHtml){var c=f.scrollerDiv;if(this.sizeDiff===undefined){this.sizeDiff=f.innerContent["offset"+this.ucwh]-c["offset"+this.ucwh]}c.style[this.wh]=(this.size-this.sizeDiff)+"px";if(this.dim=="x"){f.mediumContent.style.width="auto"}if(f.body){f.body.style[this.wh]="auto"}}if(this.dim=="x"&&f.overlayBox){f.sizeOverlayBox(true)}if(this.dim=="x"&&f.slideshow&&f.isImage){if(a==this.full){f.slideshow.disable("full-expand")}else{f.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()}}};RShs.Expander=function(k,f,b,l){if(document.readyState&&RShs.ie&&!RShs.isReady){RShs.addEventListener(document,"ready",function(){new RShs.Expander(k,f,b,l)});return}this.a=k;this.custom=b;this.contentType=l||"image";this.isHtml=(l=="html");this.isImage=!this.isHtml;RShs.continuePreloading=false;this.overlays=[];this.last=RShs.last;RShs.last=null;RShs.init();var m=this.key=RShs.expanders.length;for(var g=0;g<RShs.overrides.length;g++){var c=RShs.overrides[g];this[c]=f&&typeof f[c]!="undefined"?f[c]:RShs[c]}if(!this.src){this.src=k.href}var d=(f&&f.thumbnailId)?RShs.$(f.thumbnailId):k;d=this.thumb=d.getElementsByTagName("img")[0]||d;this.thumbsUserSetId=d.id||k.id;if(!RShs.fireEvent(this,"onInit")){return true}for(var g=0;g<RShs.expanders.length;g++){if(RShs.expanders[g]&&RShs.expanders[g].a==k&&!(this.last&&this.transitions[1]=="crossfade")){RShs.expanders[g].focus();return false}}if(!RShs.allowSimultaneousLoading){for(var g=0;g<RShs.expanders.length;g++){if(RShs.expanders[g]&&RShs.expanders[g].thumb!=d&&!RShs.expanders[g].onLoadStarted){RShs.expanders[g].cancelLoading()}}}RShs.expanders[m]=this;if(!RShs.allowMultipleInstances&&!RShs.upcoming){if(RShs.expanders[m-1]){RShs.expanders[m-1].close()}if(typeof RShs.focusKey!="undefined"&&RShs.expanders[RShs.focusKey]){RShs.expanders[RShs.focusKey].close()}}this.el=d;this.tpos=RShs.getPosition(d);RShs.getPageSize();var j=this.x=new RShs.Dimension(this,"x");j.calcThumb();var h=this.y=new RShs.Dimension(this,"y");h.calcThumb();if(/area/i.test(d.tagName)){this.getImageMapAreaCorrection(d)}this.wrapper=RShs.createElement("div",{id:"reshare_highslide-wrapper-"+this.key,className:"reshare_highslide-wrapper "+this.wrapperClassName},{visibility:"hidden",position:"absolute",zIndex:RShs.zIndexCounter+=2},null,true);this.wrapper.onmouseover=this.wrapper.onmouseout=RShs.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(RShs.pendingOutlines[this.outlineType]){this.connectOutline();this[this.contentType+"Create"]()}else{this.showLoading();var e=this;new RShs.Outline(this.outlineType,function(){e.connectOutline();e[e.contentType+"Create"]()})}}return true};RShs.Expander.prototype={error:function(a){window.location.href=this.src},connectOutline:function(){var a=this.outline=RShs.pendingOutlines[this.outlineType];a.exp=this;a.table.style.zIndex=this.wrapper.style.zIndex-1;RShs.pendingOutlines[this.outlineType]=null},showLoading:function(){if(this.onLoadStarted||this.loading){return}this.loading=RShs.loading;var c=this;this.loading.onclick=function(){c.cancelLoading()};if(!RShs.fireEvent(this,"onShowLoading")){return}var c=this,a=this.x.get("loadingPos")+"px",b=this.y.get("loadingPos")+"px";if(!d&&this.last&&this.transitions[1]=="crossfade"){var d=this.last}if(d){a=d.x.get("loadingPosXfade")+"px";b=d.y.get("loadingPosXfade")+"px";this.loading.style.zIndex=RShs.zIndexCounter++}setTimeout(function(){if(c.loading){RShs.setStyles(c.loading,{left:a,top:b,zIndex:RShs.zIndexCounter++})}},100)},imageCreate:function(){var b=this;var a=document.createElement("img");this.content=a;a.onload=function(){if(RShs.expanders[b.key]){b.contentLoaded()}};if(RShs.blockRightClick){a.oncontextmenu=function(){return false}}a.className="reshare_highslide-image";RShs.setStyles(a,{visibility:"hidden",display:"block",position:"absolute",maxWidth:"9999px",zIndex:3});a.title=RShs.lang.restoreTitle;if(RShs.safari){RShs.container.appendChild(a)}if(RShs.ie&&RShs.flushImgSize){a.src=null}a.src=this.src;this.showLoading()},htmlCreate:function(){if(!RShs.fireEvent(this,"onBeforeGetContent")){return}this.content=RShs.getCacheBinding(this.a);if(!this.content){this.content=RShs.getNode(this.contentId)}if(!this.content){this.content=RShs.getSelfRendered()}this.getInline(["maincontent"]);if(this.maincontent){var a=RShs.getElementByClass(this.content,"div","reshare_highslide-body");if(a){a.appendChild(this.maincontent)}this.maincontent.style.display="block"}RShs.fireEvent(this,"onAfterGetContent");var d=this.innerContent=this.content;if(/(swf|iframe)/.test(this.objectType)){this.setObjContainerSize(d)}RShs.container.appendChild(this.wrapper);RShs.setStyles(this.wrapper,{position:"static",padding:"0 "+RShs.marginRight+"px 0 "+RShs.marginLeft+"px"});this.content=RShs.createElement("div",{className:"reshare_highslide-html"},{position:"relative",zIndex:3,overflow:"hidden"},this.wrapper);this.mediumContent=RShs.createElement("div",null,null,this.content,1);this.mediumContent.appendChild(d);RShs.setStyles(d,{position:"relative",display:"block",direction:RShs.lang.cssDirection||""});if(this.width){d.style.width=this.width+"px"}if(this.height){RShs.setStyles(d,{height:this.height+"px",overflow:"hidden"})}if(d.offsetWidth<this.minWidth){d.style.width=this.minWidth+"px"}if(this.objectType=="ajax"&&!RShs.getCacheBinding(this.a)){this.showLoading();var c=this;var b=new RShs.Ajax(this.a,d);b.src=this.src;b.onLoad=function(){if(RShs.expanders[c.key]){c.contentLoaded()}};b.onError=function(){location.href=c.src};b.run()}else{if(this.objectType=="iframe"&&this.objectLoadTime=="before"){this.writeExtendedContent()}else{this.contentLoaded()}}},contentLoaded:function(){try{if(!this.content){return}this.content.onload=null;if(this.onLoadStarted){return}else{this.onLoadStarted=true}var j=this.x,g=this.y;if(this.loading){RShs.setStyles(this.loading,{top:"-9999px"});this.loading=null;RShs.fireEvent(this,"onHideLoading")}if(this.isImage){j.full=this.content.width;g.full=this.content.height;RShs.setStyles(this.content,{width:j.t+"px",height:g.t+"px"});this.wrapper.appendChild(this.content);RShs.container.appendChild(this.wrapper)}else{if(this.htmlGetSize){this.htmlGetSize()}}j.calcBorders();g.calcBorders();RShs.setStyles(this.wrapper,{left:(j.tpos+j.tb-j.cb)+"px",top:(g.tpos+j.tb-g.cb)+"px"});this.initSlideshow();this.getOverlays();var f=j.full/g.full;j.calcExpanded();this.justify(j);g.calcExpanded();this.justify(g);if(this.isHtml){this.htmlSizeOperations()}if(this.overlayBox){this.sizeOverlayBox(0,1)}if(this.allowSizeReduction){if(this.isImage){this.correctRatio(f)}else{this.fitOverlayBox()}var k=this.slideshow;if(k&&this.last&&k.controls&&k.fixedControls){var h=k.overlayOptions.position||"",a;for(var c in RShs.oPos){for(var b=0;b<5;b++){a=this[c];if(h.match(RShs.oPos[c][b])){a.pos=this.last[c].pos+(this.last[c].p1-a.p1)+(this.last[c].size-a.size)*[0,0,0.5,1,1][b];if(k.fixedControls=="fit"){if(a.pos+a.size+a.p1+a.p2>a.scroll+a.clientSize-a.marginMax){a.pos=a.scroll+a.clientSize-a.size-a.marginMin-a.marginMax-a.p1-a.p2}if(a.pos<a.scroll+a.marginMin){a.pos=a.scroll+a.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(d){this.error(d)}},setObjContainerSize:function(a,d){var b=RShs.getElementByClass(a,"DIV","reshare_highslide-body");if(/(iframe|swf)/.test(this.objectType)){if(this.objectWidth){b.style.width=this.objectWidth+"px"}if(this.objectHeight){b.style.height=this.objectHeight+"px"}}},writeExtendedContent:function(){if(this.hasExtendedContent){return}var f=this;this.body=RShs.getElementByClass(this.innerContent,"DIV","reshare_highslide-body");if(this.objectType=="iframe"){this.showLoading();var g=RShs.clearing.cloneNode(1);this.body.appendChild(g);this.newWidth=this.innerContent.offsetWidth;if(!this.objectWidth){this.objectWidth=g.offsetWidth}var c=this.innerContent.offsetHeight-this.body.offsetHeight,d=this.objectHeight||RShs.page.height-c-RShs.marginTop-RShs.marginBottom,e=this.objectLoadTime=="before"?' onload="if (RShs.expanders['+this.key+"]) RShs.expanders["+this.key+'].contentLoaded()" ':"";this.body.innerHTML+='<iframe name="hs'+(new Date()).getTime()+'" frameborder="0" key="'+this.key+'"  style="width:'+this.objectWidth+"px; height:"+d+'px" '+e+' src="'+this.src+'" ></iframe>';this.ruler=this.body.getElementsByTagName("div")[0];this.iframe=this.body.getElementsByTagName("iframe")[0];if(this.objectLoadTime=="after"){this.correctIframeSize()}}if(this.objectType=="swf"){this.body.id=this.body.id||"hs-flash-id-"+this.key;var b=this.swfOptions;if(!b.params){b.params={}}if(typeof b.params.wmode=="undefined"){b.params.wmode="transparent"}if(swfobject){swfobject.embedSWF(this.src,this.body.id,this.objectWidth,this.objectHeight,b.version||"7",b.expressInstallSwfurl,b.flashvars,b.params,b.attributes)}}this.hasExtendedContent=true},htmlGetSize:function(){if(this.iframe&&!this.objectHeight){this.iframe.style.height=this.body.style.height=this.getIframePageHeight()+"px"}this.innerContent.appendChild(RShs.clearing);if(!this.x.full){this.x.full=this.innerContent.offsetWidth}this.y.full=this.innerContent.offsetHeight;this.innerContent.removeChild(RShs.clearing);if(RShs.ie&&this.newHeight>parseInt(this.innerContent.currentStyle.height)){this.newHeight=parseInt(this.innerContent.currentStyle.height)}RShs.setStyles(this.wrapper,{position:"absolute",padding:"0"});RShs.setStyles(this.content,{width:this.x.t+"px",height:this.y.t+"px"})},getIframePageHeight:function(){var a;try{var d=this.iDoc=this.iframe.contentDocument||this.iframe.contentWindow.document;var b=d.createElement("div");b.style.clear="both";d.body.appendChild(b);a=b.offsetTop;if(RShs.ie){a+=parseInt(d.body.currentStyle.marginTop)+parseInt(d.body.currentStyle.marginBottom)-1}}catch(c){a=300}return a},correctIframeSize:function(){var b=this.innerContent.offsetWidth-this.ruler.offsetWidth;RShs.discardElement(this.ruler);if(b<0){b=0}var a=this.innerContent.offsetHeight-this.iframe.offsetHeight;if(this.iDoc&&!this.objectHeight&&!this.height&&this.y.size==this.y.full){try{this.iDoc.body.style.overflow="hidden"}catch(c){}}RShs.setStyles(this.iframe,{width:Math.abs(this.x.size-b)+"px",height:Math.abs(this.y.size-a)+"px"});RShs.setStyles(this.body,{width:this.iframe.style.width,height:this.iframe.style.height});this.scrollingContent=this.iframe;this.scrollerDiv=this.scrollingContent},htmlSizeOperations:function(){this.setObjContainerSize(this.innerContent);if(this.objectType=="swf"&&this.objectLoadTime=="before"){this.writeExtendedContent()}if(this.x.size<this.x.full&&!this.allowWidthReduction){this.x.size=this.x.full}if(this.y.size<this.y.full&&!this.allowHeightReduction){this.y.size=this.y.full}this.scrollerDiv=this.innerContent;RShs.setStyles(this.mediumContent,{position:"relative",width:this.x.size+"px"});RShs.setStyles(this.innerContent,{border:"none",width:"auto",height:"auto"});var e=RShs.getElementByClass(this.innerContent,"DIV","reshare_highslide-body");if(e&&!/(iframe|swf)/.test(this.objectType)){var b=e;e=RShs.createElement(b.nodeName,null,{overflow:"hidden"},null,true);b.parentNode.insertBefore(e,b);e.appendChild(RShs.clearing);e.appendChild(b);var c=this.innerContent.offsetWidth-e.offsetWidth;var a=this.innerContent.offsetHeight-e.offsetHeight;e.removeChild(RShs.clearing);var d=RShs.safari||navigator.vendor=="KDE"?1:0;RShs.setStyles(e,{width:(this.x.size-c-d)+"px",height:(this.y.size-a)+"px",overflow:"auto",position:"relative"});if(d&&b.offsetHeight>e.offsetHeight){e.style.width=(parseInt(e.style.width)+d)+"px"}this.scrollingContent=e;this.scrollerDiv=this.scrollingContent}if(this.iframe&&this.objectLoadTime=="before"){this.correctIframeSize()}if(!this.scrollingContent&&this.y.size<this.mediumContent.offsetHeight){this.scrollerDiv=this.content}if(this.scrollerDiv==this.content&&!this.allowWidthReduction&&!/(iframe|swf)/.test(this.objectType)){this.x.size+=17}if(this.scrollerDiv&&this.scrollerDiv.offsetHeight>this.scrollerDiv.parentNode.offsetHeight){setTimeout("try { RShs.expanders["+this.key+"].scrollerDiv.style.overflow = 'auto'; } catch(e) {}",RShs.expandDuration)}},getImageMapAreaCorrection:function(d){var h=d.coords.split(",");for(var b=0;b<h.length;b++){h[b]=parseInt(h[b])}if(d.shape.toLowerCase()=="circle"){this.x.tpos+=h[0]-h[2];this.y.tpos+=h[1]-h[2];this.x.t=this.y.t=2*h[2]}else{var f,e,a=f=h[0],g=e=h[1];for(var b=0;b<h.length;b++){if(b%2==0){a=Math.min(a,h[b]);f=Math.max(f,h[b])}else{g=Math.min(g,h[b]);e=Math.max(e,h[b])}}this.x.tpos+=a;this.x.t=f-a;this.y.tpos+=g;this.y.t=e-g}},justify:function(f,b){var g,h=f.target,e=f==this.x?"x":"y";if(h&&h.match(/ /)){g=h.split(" ");h=g[0]}if(h&&RShs.$(h)){f.pos=RShs.getPosition(RShs.$(h))[e];if(g&&g[1]&&g[1].match(/^[-]?[0-9]+px$/)){f.pos+=parseInt(g[1])}if(f.size<f.minSize){f.size=f.minSize}}else{if(f.justify=="auto"||f.justify=="center"){var d=false;var a=f.exp.allowSizeReduction;if(f.justify=="center"){f.pos=Math.round(f.scroll+(f.clientSize+f.marginMin-f.marginMax-f.get("wsize"))/2)}else{f.pos=Math.round(f.pos-((f.get("wsize")-f.t)/2))}if(f.pos<f.scroll+f.marginMin){f.pos=f.scroll+f.marginMin;d=true}if(!b&&f.size<f.minSize){f.size=f.minSize;a=false}if(f.pos+f.get("wsize")>f.scroll+f.clientSize-f.marginMax){if(!b&&d&&a){f.size=Math.min(f.size,f.get(e=="y"?"fitsize":"maxsize"))}else{if(f.get("wsize")<f.get("fitsize")){f.pos=f.scroll+f.clientSize-f.marginMax-f.get("wsize")}else{f.pos=f.scroll+f.marginMin;if(!b&&a){f.size=f.get(e=="y"?"fitsize":"maxsize")}}}}if(!b&&f.size<f.minSize){f.size=f.minSize;a=false}}else{if(f.justify=="max"){f.pos=Math.floor(f.pos-f.size+f.t)}}}if(f.pos<f.marginMin){var c=f.pos;f.pos=f.marginMin;if(a&&!b){f.size=f.size-(f.pos-c)}}},correctRatio:function(c){var a=this.x,g=this.y,e=false,d=Math.min(a.full,a.size),b=Math.min(g.full,g.size),f=(this.useBox||RShs.padToMinWidth);if(d/b>c){d=b*c;if(d<a.minSize){d=a.minSize;b=d/c}e=true}else{if(d/b<c){b=d/c;e=true}}if(RShs.padToMinWidth&&a.full<a.minSize){a.imgSize=a.full;g.size=g.imgSize=g.full}else{if(this.useBox){a.imgSize=d;g.imgSize=b}else{a.size=d;g.size=b}}e=this.fitOverlayBox(f?null:c,e);if(f&&g.size<g.imgSize){g.imgSize=g.size;a.imgSize=g.size*c}if(e||f){a.pos=a.tpos-a.cb+a.tb;a.minSize=a.size;this.justify(a,true);g.pos=g.tpos-g.cb+g.tb;g.minSize=g.size;this.justify(g,true);if(this.overlayBox){this.sizeOverlayBox()}}},fitOverlayBox:function(b,c){var a=this.x,d=this.y;if(this.overlayBox&&(this.isImage||this.allowHeightReduction)){while(d.size>this.minHeight&&a.size>this.minWidth&&d.get("wsize")>d.get("fitsize")){d.size-=10;if(b){a.size=d.size*b}this.sizeOverlayBox(0,1);c=true}}return c},reflow:function(){if(this.scrollerDiv){var a=/iframe/i.test(this.scrollerDiv.tagName)?(this.getIframePageHeight()+1)+"px":"auto";if(this.body){this.body.style.height=a}this.scrollerDiv.style.height=a;this.y.setSize(this.innerContent.offsetHeight)}},show:function(){var a=this.x,b=this.y;this.doShowHide("hidden");RShs.fireEvent(this,"onBeforeExpand");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}},RShs.expandDuration)},changeSize:function(d,i,b){var k=this.transitions,e=d?(this.last?this.last.a:null):RShs.upcoming,j=(k[1]&&e&&RShs.getParam(e,"transitions")[1]==k[1])?k[1]:k[0];if(this[j]&&j!="expand"){this[j](d,i);return}if(this.outline&&!this.outlineWhileAnimating){if(d){this.outline.setPosition()}else{this.outline.destroy((this.isHtml&&this.preserveContent))}}if(!d){this.destroyOverlays()}var c=this,h=c.x,g=c.y,f=this.easing;if(!d){f=this.easingClose||f}var a=d?function(){if(c.outline){c.outline.table.style.visibility="visible"}setTimeout(function(){c.afterExpand()},50)}:function(){c.afterClose()};if(d){RShs.setStyles(this.wrapper,{width:h.t+"px",height:g.t+"px"})}if(d&&this.isHtml){RShs.setStyles(this.wrapper,{left:(h.tpos-h.cb+h.tb)+"px",top:(g.tpos-g.cb+g.tb)+"px"})}if(this.fadeInOut){RShs.setStyles(this.wrapper,{opacity:d?0:1});RShs.extend(i.wrapper,{opacity:d})}RShs.animate(this.wrapper,i.wrapper,{duration:b,easing:f,step:function(n,l){if(c.outline&&c.outlineWhileAnimating&&l.prop=="top"){var m=d?l.pos:1-l.pos;var o={w:h.t+(h.get("wsize")-h.t)*m,h:g.t+(g.get("wsize")-g.t)*m,x:h.tpos+(h.pos-h.tpos)*m,y:g.tpos+(g.pos-g.tpos)*m};c.outline.setPosition(o,0,1)}if(c.isHtml){if(l.prop=="left"){c.mediumContent.style.left=(h.pos-n)+"px"}if(l.prop=="top"){c.mediumContent.style.top=(g.pos-n)+"px"}}}});RShs.animate(this.content,i.content,b,f,a);if(d){this.wrapper.style.visibility="visible";this.content.style.visibility="visible";if(this.isHtml){this.innerContent.style.visibility="visible"}this.a.className+=" reshare_highslide-active-anchor"}},fade:function(f,h){this.outlineWhileAnimating=false;var c=this,j=f?RShs.expandDuration:0;if(f){RShs.animate(this.wrapper,h.wrapper,0);RShs.setStyles(this.wrapper,{opacity:0,visibility:"visible"});RShs.animate(this.content,h.content,0);this.content.style.visibility="visible";RShs.animate(this.wrapper,{opacity:1},j,null,function(){c.afterExpand()})}if(this.outline){this.outline.table.style.zIndex=this.wrapper.style.zIndex;var b=f||-1,d=this.outline.offset,a=f?3:d,g=f?d:3;for(var e=a;b*e<=b*g;e+=b,j+=25){(function(){var i=f?g-e:a-e;setTimeout(function(){c.outline.setPosition(0,i,1)},j)})()}}if(f){}else{setTimeout(function(){if(c.outline){c.outline.destroy(c.preserveContent)}c.destroyOverlays();RShs.animate(c.wrapper,{opacity:0},RShs.restoreDuration,null,function(){c.afterClose()})},j)}},crossfade:function(g,o,p){if(!g){return}var f=this,q=this.last,m=this.x,l=this.y,d=q.x,b=q.y,a=this.wrapper,j=this.content,c=this.overlayBox;RShs.removeEventListener(document,"mousemove",RShs.dragHandler);RShs.setStyles(j,{width:(m.imgSize||m.size)+"px",height:(l.imgSize||l.size)+"px"});if(c){c.style.overflow="visible"}this.outline=q.outline;if(this.outline){this.outline.exp=f}q.outline=null;var i=RShs.createElement("div",{className:"reshare_highslide-image"},{position:"absolute",zIndex:4,overflow:"hidden",display:"none"});var k={oldImg:q,newImg:this};for(var e in k){this[e]=k[e].content.cloneNode(1);RShs.setStyles(this[e],{position:"absolute",border:0,visibility:"visible"});i.appendChild(this[e])}a.appendChild(i);if(this.isHtml){RShs.setStyles(this.mediumContent,{left:0,top:0})}if(c){c.className="";a.appendChild(c)}i.style.display="";q.content.style.display="none";if(RShs.safari){var h=navigator.userAgent.match(/Safari\/([0-9]{3})/);if(h&&parseInt(h[1])<525){this.wrapper.style.visibility="visible"}}RShs.animate(a,{width:m.size},{duration:RShs.transitionDuration,step:function(v,s){var y=s.pos,r=1-y;var x,t={},u=["pos","size","p1","p2"];for(var w in u){x=u[w];t["x"+x]=Math.round(r*d[x]+y*m[x]);t["y"+x]=Math.round(r*b[x]+y*l[x]);t.ximgSize=Math.round(r*(d.imgSize||d.size)+y*(m.imgSize||m.size));t.ximgPad=Math.round(r*d.get("imgPad")+y*m.get("imgPad"));t.yimgSize=Math.round(r*(b.imgSize||b.size)+y*(l.imgSize||l.size));t.yimgPad=Math.round(r*b.get("imgPad")+y*l.get("imgPad"))}if(f.outline){f.outline.setPosition({x:t.xpos,y:t.ypos,w:t.xsize+t.xp1+t.xp2+2*m.cb,h:t.ysize+t.yp1+t.yp2+2*l.cb})}q.wrapper.style.clip="rect("+(t.ypos-b.pos)+"px, "+(t.xsize+t.xp1+t.xp2+t.xpos+2*d.cb-d.pos)+"px, "+(t.ysize+t.yp1+t.yp2+t.ypos+2*b.cb-b.pos)+"px, "+(t.xpos-d.pos)+"px)";RShs.setStyles(j,{top:(t.yp1+l.get("imgPad"))+"px",left:(t.xp1+m.get("imgPad"))+"px",marginTop:(l.pos-t.ypos)+"px",marginLeft:(m.pos-t.xpos)+"px"});RShs.setStyles(a,{top:t.ypos+"px",left:t.xpos+"px",width:(t.xp1+t.xp2+t.xsize+2*m.cb)+"px",height:(t.yp1+t.yp2+t.ysize+2*l.cb)+"px"});RShs.setStyles(i,{width:(t.ximgSize||t.xsize)+"px",height:(t.yimgSize||t.ysize)+"px",left:(t.xp1+t.ximgPad)+"px",top:(t.yp1+t.yimgPad)+"px",visibility:"visible"});RShs.setStyles(f.oldImg,{top:(b.pos-t.ypos+b.p1-t.yp1+b.get("imgPad")-t.yimgPad)+"px",left:(d.pos-t.xpos+d.p1-t.xp1+d.get("imgPad")-t.ximgPad)+"px"});RShs.setStyles(f.newImg,{opacity:y,top:(l.pos-t.ypos+l.p1-t.yp1+l.get("imgPad")-t.yimgPad)+"px",left:(m.pos-t.xpos+m.p1-t.xp1+m.get("imgPad")-t.ximgPad)+"px"});if(c){RShs.setStyles(c,{width:t.xsize+"px",height:t.ysize+"px",left:(t.xp1+m.cb)+"px",top:(t.yp1+l.cb)+"px"})}},complete:function(){a.style.visibility=j.style.visibility="visible";j.style.display="block";i.style.display="none";f.a.className+=" reshare_highslide-active-anchor";f.afterExpand();q.afterClose();f.last=null}})},reuseOverlay:function(d,c){if(!this.last){return false}for(var b=0;b<this.last.overlays.length;b++){var a=RShs.$("hsId"+this.last.overlays[b]);if(a&&a.hsId==d.hsId){this.genOverlayBox();a.reuse=this.key;RShs.push(this.overlays,this.last.overlays[b]);return true}}return false},afterExpand:function(){this.isExpanded=true;this.focus();if(this.isHtml&&this.objectLoadTime=="after"){this.writeExtendedContent()}if(this.iframe){try{var g=this,f=this.iframe.contentDocument||this.iframe.contentWindow.document;RShs.addEventListener(f,"mousedown",function(){if(RShs.focusKey!=g.key){g.focus()}})}catch(d){}if(RShs.ie&&typeof this.isClosing!="boolean"){this.iframe.style.width=(this.objectWidth-1)+"px"}}if(this.dimmingOpacity){RShs.dim(this)}if(RShs.upcoming&&RShs.upcoming==this.a){RShs.upcoming=null}this.prepareNextOutline();var c=RShs.page,b=RShs.mouse.x+c.scrollLeft,a=RShs.mouse.y+c.scrollTop;this.mouseIsOver=this.x.pos<b&&b<this.x.pos+this.x.get("wsize")&&this.y.pos<a&&a<this.y.pos+this.y.get("wsize");if(this.overlayBox){this.showOverlays()}RShs.fireEvent(this,"onAfterExpand")},prepareNextOutline:function(){var a=this.key;var b=this.outlineType;new RShs.Outline(b,function(){try{RShs.expanders[a].preloadNext()}catch(c){}})},preloadNext:function(){var b=this.getAdjacentAnchor(1);if(b&&b.onclick.toString().match(/RShs\.expand/)){var a=RShs.createElement("img",{src:RShs.getSrc(b)})}},getAdjacentAnchor:function(c){var b=this.getAnchorIndex(),a=RShs.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=RShs.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=RShs.anchors.groups[this.slideshowGroup||"none"];if(a){var b=RShs.lang.number.replace("%1",this.getAnchorIndex()+1).replace("%2",a.length);this[this.numberPosition].innerHTML='<div class="reshare_highslide-number">'+b+"</div>"+this[this.numberPosition].innerHTML}}},initSlideshow:function(){if(!this.last){for(var c=0;c<RShs.slideshows.length;c++){var b=RShs.slideshows[c],d=b.slideshowGroup;if(typeof d=="undefined"||d===null||d===this.slideshowGroup){this.slideshow=new RShs.Slideshow(this.key,b)}}}else{this.slideshow=this.last.slideshow}var b=this.slideshow;if(!b){return}var a=b.expKey=this.key;b.checkFirstAndLast();b.disable("full-expand");if(b.controls){var e=b.overlayOptions||{};e.overlayId=b.controls;e.hsId="controls";this.createOverlay(e)}if(b.thumbstrip){b.thumbstrip.add(this)}if(!this.last&&this.autoplay){b.play(true)}if(b.autoplay){b.autoplay=setTimeout(function(){RShs.next(a)},(b.interval||500))}},cancelLoading:function(){RShs.discardElement(this.wrapper);RShs.expanders[this.key]=null;if(RShs.upcoming==this.a){RShs.upcoming=null}RShs.undim(this.key);if(this.loading){RShs.loading.style.left="-9999px"}RShs.fireEvent(this,"onHideLoading")},writeCredits:function(){if(this.credits){return}this.credits=RShs.createElement("a",{href:RShs.creditsHref,target:RShs.creditsTarget,className:"reshare_highslide-credits",innerHTML:RShs.lang.creditsText,title:RShs.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(type=="caption"&&!RShs.fireEvent(this,"onBeforeGetCaption")){return}else{if(type=="heading"&&!RShs.fireEvent(this,"onBeforeGetHeading")){return}}if(!this[type+"Id"]&&this.thumbsUserSetId){this[type+"Id"]=type+"-for-"+this.thumbsUserSetId}if(this[type+"Id"]){this[type]=RShs.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]=RShs.getNode(this.a["_"+type+"Id"]);if(!this[type]){var next=this.a.nextSibling;while(next&&!RShs.isHsAnchor(next)){if((new RegExp("reshare_highslide-"+type)).test(next.className||null)){if(!next.id){this.a["_"+type+"Id"]=next.id="hsId"+RShs.idCounter++}this[type]=RShs.getNode(next.id);break}next=next.nextSibling}}}if(!this[type]&&!s&&this.numberPosition==type){s="\n"}if(!this[type]&&s){this[type]=RShs.createElement("div",{className:"reshare_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(RShs.hideSelects){this.showHideElements("SELECT",a)}if(RShs.hideIframes){this.showHideElements("IFRAME",a)}if(RShs.geckoMac){this.showHideElements("*",a)}},showHideElements:function(c,b){var e=document.getElementsByTagName(c);var a=c=="*"?"overflow":"visibility";for(var f=0;f<e.length;f++){if(a=="visibility"||(document.defaultView.getComputedStyle(e[f],"").getPropertyValue("overflow")=="auto"||e[f].getAttribute("hidden-by")!=null)){var h=e[f].getAttribute("hidden-by");if(b=="visible"&&h){h=h.replace("["+this.key+"]","");e[f].setAttribute("hidden-by",h);if(!h){e[f].style[a]=e[f].origProp}}else{if(b=="hidden"){var k=RShs.getPosition(e[f]);k.w=e[f].offsetWidth;k.h=e[f].offsetHeight;if(!this.dimmingOpacity){var j=(k.x+k.w<this.x.get("opos")||k.x>this.x.get("opos")+this.x.get("osize"));var g=(k.y+k.h<this.y.get("opos")||k.y>this.y.get("opos")+this.y.get("osize"))}var d=RShs.getWrapperKey(e[f]);if(!j&&!g&&d!=this.key){if(!h){e[f].setAttribute("hidden-by","["+this.key+"]");e[f].origProp=e[f].style[a];e[f].style[a]="hidden"}else{if(h.indexOf("["+this.key+"]")==-1){e[f].setAttribute("hidden-by",h+"["+this.key+"]")}}}else{if((h=="["+this.key+"]"||RShs.focusKey==d)&&d!=this.key){e[f].setAttribute("hidden-by","");e[f].style[a]=e[f].origProp||""}else{if(h&&h.indexOf("["+this.key+"]")>-1){e[f].setAttribute("hidden-by",h.replace("["+this.key+"]",""))}}}}}}}},focus:function(){this.wrapper.style.zIndex=RShs.zIndexCounter+=2;for(var a=0;a<RShs.expanders.length;a++){if(RShs.expanders[a]&&a==RShs.focusKey){var b=RShs.expanders[a];b.content.className+=" reshare_highslide-"+b.contentType+"-blur";if(b.isImage){b.content.style.cursor=RShs.ie?"hand":"pointer";b.content.title=RShs.lang.focusTitle}RShs.fireEvent(b,"onBlur")}}if(this.outline){this.outline.table.style.zIndex=this.wrapper.style.zIndex-1}this.content.className="reshare_highslide-"+this.contentType;if(this.isImage){this.content.title=RShs.lang.restoreTitle;if(RShs.restoreCursor){RShs.styleRestoreCursor=window.opera?"pointer":"url("+RShs.graphicsDir+RShs.restoreCursor+"), pointer";if(RShs.ie&&RShs.uaVersion<6){RShs.styleRestoreCursor="hand"}this.content.style.cursor=RShs.styleRestoreCursor}}RShs.focusKey=this.key;RShs.addEventListener(document,window.opera?"keypress":"keydown",RShs.keyHandler);RShs.fireEvent(this,"onFocus")},moveTo:function(a,b){this.x.setPos(a);this.y.setPos(b)},resize:function(d){var a,b,c=d.width/d.height;a=Math.max(d.width+d.dX,Math.min(this.minWidth,this.x.full));if(this.isImage&&Math.abs(a-this.x.full)<12){a=this.x.full}b=this.isHtml?d.height+d.dY:a/c;if(b<Math.min(this.minHeight,this.y.full)){b=Math.min(this.minHeight,this.y.full);if(this.isImage){a=b*c}}this.resizeTo(a,b)},resizeTo:function(a,b){this.y.setSize(b);this.x.setSize(a);this.wrapper.style.height=this.y.get("wsize")+"px"},close:function(){if(this.isClosing||!this.isExpanded){return}if(this.transitions[1]=="crossfade"&&RShs.upcoming){RShs.getExpander(RShs.upcoming).cancelLoading();RShs.upcoming=null}if(!RShs.fireEvent(this,"onBeforeClose")){return}this.isClosing=true;if(this.slideshow&&!RShs.upcoming){this.slideshow.pause()}RShs.removeEventListener(document,window.opera?"keypress":"keydown",RShs.keyHandler);try{if(this.isHtml){this.htmlPrepareClose()}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}},RShs.restoreDuration)}catch(a){this.afterClose()}},htmlPrepareClose:function(){if(RShs.geckoMac){if(!RShs.mask){RShs.mask=RShs.createElement("div",null,{position:"absolute"},RShs.container)}RShs.setStyles(RShs.mask,{width:this.x.size+"px",height:this.y.size+"px",left:this.x.pos+"px",top:this.y.pos+"px",display:"block"})}if(this.objectType=="swf"){try{RShs.$(this.body.id).StopPlay()}catch(a){}}if(this.objectLoadTime=="after"&&!this.preserveContent){this.destroyObject()}if(this.scrollerDiv&&this.scrollerDiv!=this.scrollingContent){this.scrollerDiv.style.overflow="hidden"}},destroyObject:function(){if(RShs.ie&&this.iframe){try{this.iframe.contentWindow.document.body.innerHTML=""}catch(a){}}if(this.objectType=="swf"){swfobject.removeSWF(this.body.id)}this.body.innerHTML=""},sleep:function(){if(this.outline){this.outline.table.style.display="none"}this.releaseMask=null;this.wrapper.style.display="none";RShs.push(RShs.sleeping,this)},awake:function(){try{RShs.expanders[this.key]=this;if(!RShs.allowMultipleInstances&&RShs.focusKey!=this.key){try{RShs.expanders[RShs.focusKey].close()}catch(b){}}var d=RShs.zIndexCounter++,a={display:"",zIndex:d};RShs.setStyles(this.wrapper,a);this.isClosing=false;var c=this.outline||0;if(c){if(!this.outlineWhileAnimating){a.visibility="hidden"}RShs.setStyles(c.table,a)}if(this.slideshow){this.initSlideshow()}this.show()}catch(b){}},createOverlay:function(e){var d=e.overlayId,a=(e.relativeTo=="viewport"&&!/panel$/.test(e.position));if(typeof d=="string"){d=RShs.getNode(d)}if(e.html){d=RShs.createElement("div",{innerHTML:e.html})}if(!d||typeof d=="string"){return}if(!RShs.fireEvent(this,"onCreateOverlay",{overlay:d})){return}d.style.display="block";e.hsId=e.hsId||e.overlayId;if(this.transitions[1]=="crossfade"&&this.reuseOverlay(e,d)){return}this.genOverlayBox();var c=e.width&&/^[0-9]+(px|%)$/.test(e.width)?e.width:"auto";if(/^(left|right)panel$/.test(e.position)&&!/^[0-9]+px$/.test(e.width)){c="200px"}var b=RShs.createElement("div",{id:"hsId"+RShs.idCounter++,hsId:e.hsId},{position:"absolute",visibility:"hidden",width:c,direction:RShs.lang.cssDirection||"",opacity:0},a?RShs.viewport:this.overlayBox,true);if(a){b.hsKey=this.key}b.appendChild(d);RShs.extend(b,{opacity:1,offsetX:0,offsetY:0,dur:(e.fade===0||e.fade===false||(e.fade==2&&RShs.ie))?0:250});RShs.extend(b,e);if(this.gotOverlays){this.positionOverlay(b);if(!b.hideOnMouseOut||this.mouseIsOver){RShs.animate(b,{opacity:b.opacity},b.dur)}}RShs.push(this.overlays,RShs.idCounter-1)},positionOverlay:function(e){var f=e.position||"middle center",c=(e.relativeTo=="viewport"),b=e.offsetX,a=e.offsetY;if(c){RShs.viewport.style.display="block";e.hsKey=this.key;if(e.offsetWidth>e.parentNode.offsetWidth){e.style.width="100%"}}else{if(e.parentNode!=this.overlayBox){this.overlayBox.appendChild(e)}}if(/left$/.test(f)){e.style.left=b+"px"}if(/center$/.test(f)){RShs.setStyles(e,{left:"50%",marginLeft:(b-Math.round(e.offsetWidth/2))+"px"})}if(/right$/.test(f)){e.style.right=-b+"px"}if(/^leftpanel$/.test(f)){RShs.setStyles(e,{right:"100%",marginRight:this.x.cb+"px",top:-this.y.cb+"px",bottom:-this.y.cb+"px",overflow:"auto"});this.x.p1=e.offsetWidth}else{if(/^rightpanel$/.test(f)){RShs.setStyles(e,{left:"100%",marginLeft:this.x.cb+"px",top:-this.y.cb+"px",bottom:-this.y.cb+"px",overflow:"auto"});this.x.p2=e.offsetWidth}}var d=e.parentNode.offsetHeight;e.style.height="auto";if(c&&e.offsetHeight>d){e.style.height=RShs.ieLt7?d+"px":"100%"}if(/^top/.test(f)){e.style.top=a+"px"}if(/^middle/.test(f)){RShs.setStyles(e,{top:"50%",marginTop:(a-Math.round(e.offsetHeight/2))+"px"})}if(/^bottom/.test(f)){e.style.bottom=-a+"px"}if(/^above$/.test(f)){RShs.setStyles(e,{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=e.offsetHeight}else{if(/^below$/.test(f)){RShs.setStyles(e,{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=e.offsetHeight;e.style.position="absolute"}}},getOverlays:function(){this.getInline(["heading","caption"],true);this.getNumber();if(this.caption){RShs.fireEvent(this,"onAfterGetCaption")}if(this.heading){RShs.fireEvent(this,"onAfterGetHeading")}if(this.heading&&this.dragByHeading){this.heading.className+=" reshare_highslide-move"}if(RShs.showCredits){this.writeCredits()}for(var a=0;a<RShs.overlays.length;a++){var d=RShs.overlays[a],e=d.thumbnailId,b=d.slideshowGroup;if((!e&&!b)||(e&&e==this.thumbsUserSetId)||(b&&b===this.slideshowGroup)){if(this.isImage||(this.isHtml&&d.useOnHtml)){this.createOverlay(d)}}}var c=[];for(var a=0;a<this.overlays.length;a++){var d=RShs.$("hsId"+this.overlays[a]);if(/panel$/.test(d.position)){this.positionOverlay(d)}else{RShs.push(c,d)}}for(var a=0;a<c.length;a++){this.positionOverlay(c[a])}this.gotOverlays=true},genOverlayBox:function(){if(!this.overlayBox){this.overlayBox=RShs.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:RShs.ie?4:"auto"},RShs.container,true)}},sizeOverlayBox:function(f,d){var c=this.overlayBox,a=this.x,h=this.y;RShs.setStyles(c,{width:a.size+"px",height:h.size+"px"});if(f||d){for(var e=0;e<this.overlays.length;e++){var g=RShs.$("hsId"+this.overlays[e]);var b=(RShs.ieLt7||document.compatMode=="BackCompat");if(g&&/^(above|below)$/.test(g.position)){if(b){g.style.width=(c.offsetWidth+2*a.cb+a.p1+a.p2)+"px"}h[g.position=="above"?"p1":"p2"]=g.offsetHeight}if(g&&b&&/^(left|right)panel$/.test(g.position)){g.style.height=(c.offsetHeight+2*h.cb)+"px"}}}if(f){RShs.setStyles(this.content,{top:h.p1+"px"});RShs.setStyles(c,{top:(h.p1+h.cb)+"px"})}},showOverlays:function(){var a=this.overlayBox;a.className="";RShs.setStyles(a,{top:(this.y.p1+this.y.cb)+"px",left:(this.x.p1+this.x.cb)+"px",overflow:"visible"});if(RShs.safari){a.style.visibility="visible"}this.wrapper.appendChild(a);for(var c=0;c<this.overlays.length;c++){var d=RShs.$("hsId"+this.overlays[c]);d.style.zIndex=d.hsId=="controls"?5:4;if(!d.hideOnMouseOut||this.mouseIsOver){d.style.visibility="visible";RShs.setStyles(d,{visibility:"visible",display:""});RShs.animate(d,{opacity:d.opacity},d.dur)}}},destroyOverlays:function(){if(!this.overlays.length){return}if(this.slideshow){var d=this.slideshow.controls;if(d&&RShs.getExpander(d)==this){d.parentNode.removeChild(d)}}for(var a=0;a<this.overlays.length;a++){var b=RShs.$("hsId"+this.overlays[a]);if(b&&b.parentNode==RShs.viewport&&RShs.getExpander(b)==this){RShs.discardElement(b)}}if(this.isHtml&&this.preserveContent){this.overlayBox.style.top="-9999px";RShs.container.appendChild(this.overlayBox)}else{RShs.discardElement(this.overlayBox)}},createFullExpand:function(){if(this.slideshow&&this.slideshow.controls){this.slideshow.enable("full-expand");return}this.fullExpandLabel=RShs.createElement("a",{href:"javascript:RShs.expanders["+this.key+"].doFullExpand();",title:RShs.lang.fullExpandTitle,className:"reshare_highslide-full-expand"});if(!RShs.fireEvent(this,"onCreateFullExpand")){return}this.createOverlay({overlayId:this.fullExpandLabel,position:RShs.fullExpandPosition,hideOnMouseOut:true,opacity:RShs.fullExpandOpacity})},doFullExpand:function(){try{if(!RShs.fireEvent(this,"onDoFullExpand")){return}if(this.fullExpandLabel){RShs.discardElement(this.fullExpandLabel)}this.focus();var b=this.x.size;this.resizeTo(this.x.full,this.y.full);var a=this.x.pos-(this.x.size-b)/2;if(a<RShs.marginLeft){a=RShs.marginLeft}this.moveTo(a,this.y.pos);this.doShowHide("hidden")}catch(c){this.error(c)}},afterClose:function(){this.a.className=this.a.className.replace("reshare_highslide-active-anchor","");this.doShowHide("visible");if(this.isHtml&&this.preserveContent&&this.transitions[1]!="crossfade"){this.sleep()}else{if(this.outline&&this.outlineWhileAnimating){this.outline.destroy()}RShs.discardElement(this.wrapper)}if(RShs.mask){RShs.mask.style.display="none"}this.destroyOverlays();if(!RShs.viewport.childNodes.length){RShs.viewport.style.display="none"}if(this.dimmingOpacity){RShs.undim(this.key)}RShs.fireEvent(this,"onAfterClose");RShs.expanders[this.key]=null;RShs.reOrder()}};RShs.Ajax=function(b,c,d){this.a=b;this.content=c;this.pre=d};RShs.Ajax.prototype={run:function(){var d;if(!this.src){this.src=RShs.getSrc(this.a)}if(this.src.match("#")){var a=this.src.split("#");this.src=a[0];this.id=a[1]}if(RShs.cachedGets[this.src]){this.cachedGet=RShs.cachedGets[this.src];if(this.id){this.getElementContent()}else{this.loadHTML()}return}try{d=new XMLHttpRequest()}catch(b){try{d=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{d=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){this.onError()}}}var f=this;d.onreadystatechange=function(){if(f.xhr.readyState==4){if(f.id){f.getElementContent()}else{f.loadHTML()}}};var c=this.src;this.xhr=d;if(RShs.forceAjaxReload){c=c.replace(/$/,(/\?/.test(c)?"&":"?")+"dummy="+(new Date()).getTime())}d.open("GET",c,true);d.setRequestHeader("X-Requested-With","XMLHttpRequest");d.setRequestHeader("Content-Type","application/x-www-form-urlencoded");d.send(null)},getElementContent:function(){RShs.init();var a=window.opera||RShs.ie6SSL?{src:"about:blank"}:null;this.iframe=RShs.createElement("iframe",a,{position:"absolute",top:"-9999px"},RShs.container);this.loadHTML()},loadHTML:function(){var c=this.cachedGet||this.xhr.responseText,b;if(this.pre){RShs.cachedGets[this.src]=c}if(!RShs.ie||RShs.uaVersion>=5.5){c=c.replace(new RegExp("<link[^>]*>","gi"),"").replace(new RegExp("<script[^>]*>.*?<\/script>","gi"),"");if(this.iframe){var f=this.iframe.contentDocument;if(!f&&this.iframe.contentWindow){f=this.iframe.contentWindow.document}if(!f){var g=this;setTimeout(function(){g.loadHTML()},25);return}f.open();f.write(c);f.close();try{c=f.getElementById(this.id).innerHTML}catch(d){try{c=this.iframe.document.getElementById(this.id).innerHTML}catch(d){}}RShs.discardElement(this.iframe)}else{b=/(<body[^>]*>|<\/body>)/ig;if(b.test(c)){c=c.split(b)[RShs.ie?1:2]}}}RShs.getElementByClass(this.content,"DIV","reshare_highslide-body").innerHTML=c;this.onLoad();for(var a in this){this[a]=null}}};RShs.Slideshow=function(c,b){if(RShs.dynamicallyUpdateAnchors!==false){RShs.updateAnchors()}this.expKey=c;for(var a in b){this[a]=b[a]}if(this.useControls){this.getControls()}if(this.thumbstrip){this.thumbstrip=RShs.Thumbstrip(this)}};RShs.Slideshow.prototype={getControls:function(){this.controls=RShs.createElement("div",{innerHTML:RShs.replaceLang(RShs.skin.controls)},null,RShs.container);var b=["play","pause","previous","next","move","full-expand","close"];this.btn={};var c=this;for(var a=0;a<b.length;a++){this.btn[b[a]]=RShs.getElementByClass(this.controls,"li","reshare_highslide-"+b[a]);this.enable(b[a])}this.btn.pause.style.display="none"},checkFirstAndLast:function(){if(this.repeat||!this.controls){return}var c=RShs.expanders[this.expKey],b=c.getAnchorIndex(),a=/disabled$/;if(b==0){this.disable("previous")}else{if(a.test(this.btn.previous.getElementsByTagName("a")[0].className)){this.enable("previous")}}if(b+1==RShs.anchors.groups[c.slideshowGroup||"none"].length){this.disable("next");this.disable("play")}else{if(a.test(this.btn.next.getElementsByTagName("a")[0].className)){this.enable("next");this.enable("play")}}},enable:function(d){if(!this.btn){return}var c=this,b=this.btn[d].getElementsByTagName("a")[0],e=/disabled$/;b.onclick=function(){c[d]();return false};if(e.test(b.className)){b.className=b.className.replace(e,"")}},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){RShs.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();RShs.previous(this.btn.previous)},next:function(){this.pause();RShs.next(this.btn.next)},move:function(){},"full-expand":function(){RShs.getExpander().doFullExpand()},close:function(){RShs.close(this.btn.close)}};RShs.Thumbstrip=function(k){function p(i){RShs.extend(f||{},{overlayId:r,hsId:"thumbstrip",className:"reshare_highslide-thumbstrip-"+m+"-overlay "+(f.className||"")});if(RShs.ieLt7){f.fade=0}i.createOverlay(f);RShs.setStyles(r.parentNode,{overflow:"hidden"})}function c(i){d(undefined,Math.round(i*r[h?"offsetWidth":"offsetHeight"]*0.7))}function d(L,M){if(L===undefined){for(var K=0;K<j.length;K++){if(j[K]==RShs.expanders[k.expKey].a){L=K;break}}}if(L===undefined){return}var G=r.getElementsByTagName("a"),z=G[L],w=z.parentNode,y=h?"Left":"Top",N=h?"Right":"Bottom",I=h?"Width":"Height",B="offset"+y,H="offset"+I,x=n.parentNode.parentNode[H],F=x-s[H],v=parseInt(s.style[h?"left":"top"])||0,C=v,D=20;if(M!==undefined){C=v-M;if(F>0){F=0}if(C>0){C=0}if(C<F){C=F}}else{for(var K=0;K<G.length;K++){G[K].className=""}z.className="reshare_highslide-active-anchor";var J=L>0?G[L-1].parentNode[B]:w[B],A=w[B]+w[H]+(G[L+1]?G[L+1].parentNode[H]:0);if(A>x-v){C=x-A}else{if(J<-v){C=-J}}}var E=w[B]+(w[H]-g[H])/2+C;RShs.animate(s,h?{left:C}:{top:C},null,"easeOutQuad");RShs.animate(g,h?{left:E}:{top:E},null,"easeOutQuad");l.style.display=C<0?"block":"none";t.style.display=(C>F)?"block":"none"}var j=RShs.anchors.groups[RShs.expanders[k.expKey].slideshowGroup||"none"],f=k.thumbstrip,m=f.mode||"horizontal",u=(m=="float"),o=u?["div","ul","li","span"]:["table","tbody","tr","td"],h=(m=="horizontal"),r=RShs.createElement("div",{className:"reshare_highslide-thumbstrip reshare_highslide-thumbstrip-"+m,innerHTML:'<div class="reshare_highslide-thumbstrip-inner"><'+o[0]+"><"+o[1]+"></"+o[1]+"></"+o[0]+'></div><div class="reshare_highslide-scroll-up"><div></div></div><div class="reshare_highslide-scroll-down"><div></div></div><div class="reshare_highslide-marker"><div></div></div>'},{display:"none"},RShs.container),e=r.childNodes,n=e[0],l=e[1],t=e[2],g=e[3],s=n.firstChild,a=r.getElementsByTagName(o[1])[0],b;for(var q=0;q<j.length;q++){if(q==0||!h){b=RShs.createElement(o[2],null,null,a)}(function(){var v=j[q],i=RShs.createElement(o[3],null,null,b),w=q;RShs.createElement("a",{href:v.href,onclick:function(){RShs.getExpander(this).focus();return RShs.transit(v)},innerHTML:RShs.stripItemFormatter?RShs.stripItemFormatter(v):v.innerHTML},null,i)})()}if(!u){l.onclick=function(){c(-1)};t.onclick=function(){c(1)};RShs.addEventListener(a,document.onmousewheel!==undefined?"mousewheel":"DOMMouseScroll",function(i){var v=0;i=i||window.event;if(i.wheelDelta){v=i.wheelDelta/120;if(RShs.opera){v=-v}}else{if(i.detail){v=-i.detail/3}}if(v){c(-v*0.2)}if(i.preventDefault){i.preventDefault()}i.returnValue=false})}return{add:p,selectThumb:d}};RShs.langDefaults=RShs.lang;var HsExpander=RShs.Expander;if(RShs.ie){(function(){try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,50);return}RShs.ready()})()}RShs.addEventListener(document,"DOMContentLoaded",RShs.ready);RShs.addEventListener(window,"load",RShs.ready);RShs.addEventListener(document,"ready",function(){if(RShs.expandCursor||RShs.dimmingOpacity){var c=RShs.createElement("style",{type:"text/css"},null,document.getElementsByTagName("HEAD")[0]);function b(e,f){if(!RShs.ie){c.appendChild(document.createTextNode(e+" {"+f+"}"))}else{var d=document.styleSheets[document.styleSheets.length-1];if(typeof(d.addRule)=="object"){d.addRule(e,f)}}}function a(d){return"expression( ( ( ignoreMe = document.documentElement."+d+" ? document.documentElement."+d+" : document.body."+d+" ) ) + 'px' );"}if(RShs.expandCursor){b(".highslide img","cursor: url("+RShs.graphicsDir+RShs.expandCursor+"), pointer !important;")}b(".reshare_highslide-viewport-size",RShs.ie&&(RShs.uaVersion<7||document.compatMode=="BackCompat")?"position: absolute; left:"+a("scrollLeft")+"top:"+a("scrollTop")+"width:"+a("clientWidth")+"height:"+a("clientHeight"):"position: fixed; width: 100%; height: 100%; left: 0; top: 0")}});RShs.addEventListener(window,"resize",function(){RShs.getPageSize();if(RShs.viewport){for(var a=0;a<RShs.viewport.childNodes.length;a++){var b=RShs.viewport.childNodes[a],c=RShs.getExpander(b);c.positionOverlay(b);if(b.hsId=="thumbstrip"){c.slideshow.thumbstrip.selectThumb()}}}});RShs.addEventListener(document,"mousemove",function(a){RShs.mouse={x:a.clientX,y:a.clientY}});RShs.addEventListener(document,"mousedown",RShs.mouseClickHandler);RShs.addEventListener(document,"mouseup",RShs.mouseClickHandler);RShs.addEventListener(document,"ready",RShs.setClickEvents);RShs.addEventListener(window,"load",RShs.preloadImages);RShs.addEventListener(window,"load",RShs.preloadAjax)};

RShs.captionEval = 'this.thumb.alt';
