function createTarget(t){window.open("", t, "width=600,height=270");return true;}function switchFontSize(c,b){var a=$E("BODY");switch(b){case"inc":if(CurrentFontSize+1<7){a.removeClass("fs"+CurrentFontSize);CurrentFontSize++;a.addClass("fs"+CurrentFontSize)}break;case"dec":if(CurrentFontSize-1>0){a.removeClass("fs"+CurrentFontSize);CurrentFontSize--;a.addClass("fs"+CurrentFontSize)}break;default:a.removeClass("fs"+CurrentFontSize);CurrentFontSize=b;a.addClass("fs"+CurrentFontSize)}Cookie.set(c,CurrentFontSize,{duration:365})}function switchTool(b,a){createCookie(b,a,365);window.location.reload()}function createCookie(c,d,e){if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a="; expires="+b.toGMTString()}else{a=""}document.cookie=c+"="+d+a+"; path=/"}String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};function jaAddEvent(d,c,a){if(d.addEventListener){d.addEventListener(c,a,false);return true}else{if(d.attachEvent){var b=d.attachEvent("on"+c,a);return b}else{return false}}}function equalHeight(){if($("ja-botsl")){makeEqualHeight($$("#ja-botsl .moduletable"))}}function makeEqualHeight(b){if(!b||b.length<2){return}var a=0;b.each(function(e,c){var d=e.getCoordinates().height;a=(a<d)?d:a},this);b.each(function(d,c){d.setStyle("height",a-d.getStyle("padding-top").toInt()-d.getStyle("padding-bottom").toInt())},this)}function getDeepestDiv(a){while(a.getChildren().length==1&&(a.getChildren()[0].tagName=="DIV")){a=a.getChildren()[0]}return a}function preloadImages(){var c=new Array();for(var a=0;a<arguments.length;a++){var b=arguments[a];c[a]=new Image();c[a].src=b}}function makeTransBg(b,g,f,a,e){var d=b;if(!d){return}if($type(d)!="array"){d=[d]}if(!f){f="crop"}if(!e){e=0}var c=siteurl+"images/blank.png";d.each(function(l){var j=g;if(l.tagName=="IMG"){if(!j){j=l.src}if(!(/\.png$/i).test(j)||(/blank\.png$/i).test(j)){return}l.setStyle("height",l.offsetHeight);l.setStyle("width",l.offsetWidth);l.src=c;l.setStyle("visibility","visible");l.setStyle("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+j+", sizingMethod='"+f+"')")}else{if(!j){j=l.getStyle("backgroundImage")}var k=new RegExp("urls*[(\"']*([^'\")]*)['\")]*");if((m=k.exec(j))){j=m[1]}if(!(/\.png$/i).test(j)||(/blank\.png$/i).test(j)){return}if(!a){l.setStyles({background:"none"});if(l.getStyle("position")!="absolute"&&l.getStyle("position")!="relative"){l.setStyle("position","relative")}l.getChildren().each(function(n){if(n.getStyle("position")!="absolute"&&n.getStyle("position")!="relative"){n.setStyle("position","relative")}n.setStyle("z-index",2)});var h=new Element("IMG");h.src=c;h.width=l.offsetWidth-e;h.height=l.offsetHeight-e;h.setStyles({position:"absolute",top:0,left:-l.getStyle("padding-left").toInt()});h.className="TransBG";h.setStyle("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+j+", sizingMethod='"+f+"')");h.inject(l,"top")}else{l.setStyle("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+j+", sizingMethod='"+f+"')")}}}.bind(this))}function isIE6(){version=0;if(navigator.appVersion.indexOf("MSIE")!=-1){temp=navigator.appVersion.split("MSIE");version=parseFloat(temp[1])}return(version&&(version<7))}function getElementsByClass(f,b,k){var h=new Array();var d=0;if(b==null){b=document}if(k==null){k="*"}var c=b.getElementsByTagName(k);var a=c.length;var g=new RegExp("(^|\\s)"+f+"(\\s|$)");for(var e=0;e<a;e++){if(g.test(c[e].className)){h[d]=c[e];d++}}return h}jaAddFirstItemToTopmenu=function(){li=$E("#ja-footer ul li");if(li){li.addClass("ja-firstitem")}};function addMouseOver(a){objs=getElementsByClass(a,document,"DIV");if(objs){for(i=0;i<objs.length;i++){objs[i].onmouseover=function(){this.className+=" hover"};objs[i].onmouseout=function(){this.className=this.className.replace(new RegExp(" hover\\b"),"")}}}}jaIE6hover=function(){addMouseOver("jazin-box");addMouseOver("ja-headtool")};window.addEvent("load",function(){equalHeight();jaAddFirstItemToTopmenu();jaIE6hover()});if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(o,b,p,e,k,l,g,f,d,n){if(!document.getElementById){return}this.DETECT_KEY=n?n:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(o){this.setAttribute("swf",o)}if(b){this.setAttribute("id",b)}if(p){this.setAttribute("width",p)}if(e){this.setAttribute("height",e)}if(k){this.setAttribute("version",new deconcept.PlayerVersion(k.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(l){this.addParam("bgcolor",l)}var a=g?g:"high";this.addParam("quality",a);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var j=(f)?f:window.location;this.setAttribute("xiRedirectUrl",j);this.setAttribute("redirectUrl","");if(d){this.setAttribute("redirectUrl",d)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var c=new Array();var b;var a=this.getVariables();for(b in a){c[c.length]=b+"="+a[b]}return c},getSWFHTML:function(){var b="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';b+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var f=this.getParams();for(var e in f){b+=[e]+'="'+f[e]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){b+='flashvars="'+d+'"'}b+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var e in c){b+='<param name="'+e+'" value="'+c[e]+'" />'}var a=this.getVariablePairs().join("&");if(a.length>0){b+='<param name="flashvars" value="'+a+'" />'}b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")){var a=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(a)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=(typeof b=="string")?document.getElementById(b):b;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var f=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){f=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var b=1;var c=3;while(b){try{c++;b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);f=new deconcept.PlayerVersion([c,0,0])}catch(d){b=null}}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=new deconcept.PlayerVersion([6,0,21]);b.AllowScriptAccess="always"}catch(d){if(f.major==6){return f}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(b!=null){f=new deconcept.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}}return f};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(c){var d=document.location.search||document.location.hash;if(c==null){return d}if(d){var b=d.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==c){return b[a].substring((b[a].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var b=document.getElementsByTagName("OBJECT");for(var c=b.length-1;c>=0;c--){b[c].style.display="none";for(var a in b[c]){if(typeof b[c][a]=="function"){b[c][a]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var hs={graphicsDir:"graphics/",restoreCursor:"zoomout.cur",expandSteps:10,expandDuration:250,restoreSteps:10,restoreDuration:250,marginLeft:15,marginRight:15,marginTop:15,marginBottom:15,zIndexCounter:1001,restoreTitle:"Click to close image, click and drag to move. Use arrow keys for next and previous.",loadingText:"Loading...",loadingTitle:"Click to cancel",loadingOpacity:0.75,focusTitle:"Click to bring to front",allowMultipleInstances:true,numberOfImagesToPreload:5,captionSlideSpeed:1,padToMinWidth:false,outlineWhileAnimating:2,outlineStartOffset:3,fullExpandTitle:"Expand to actual size",fullExpandPosition:"bottom right",fullExpandOpacity:1,showCredits:true,creditsText:"Powered by <i>Highslide JS</i>",creditsHref:"http://vikjavev.no/highslide/",creditsTitle:"Go to the Highslide JS homepage",enableKeyListener:true,previousText:"Previous",nextText:"Next",moveText:"Move",closeText:"Close",closeTitle:"Click to close",resizeTitle:"Resize",allowWidthReduction:false,allowHeightReduction:true,preserveContent:true,objectLoadTime:"before",cacheAjax:true,captionId:null,spaceForCaption:30,slideshowGroup:null,minWidth:200,minHeight:200,allowSizeReduction:true,outlineType:"drop-shadow",wrapperClassName:"highslide-wrapper",preloadTheseImages:[],continuePreloading:true,expanders:[],overrides:["allowSizeReduction","outlineType","outlineWhileAnimating","spaceForCaption","captionId","captionText","captionEval","contentId","width","height","allowWidthReduction","allowHeightReduction","preserveContent","objectType","cacheAjax","objectWidth","objectHeight","objectLoadTime","swfObject","wrapperClassName","minWidth","minHeight","slideshowGroup","easing","easingClose","fadeInOut"],overlays:[],faders:[],pendingOutlines:{},sleeping:[],preloadTheseAjax:[],cacheBindings:[],cachedGets:{},clones:{},ie:(document.all&&!window.opera),safari:/Safari/.test(navigator.userAgent),geckoMac:/Macintosh.+rv:1\.[0-8].+Gecko/.test(navigator.userAgent),$:function(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){hs.setAttribs(b,f)}if(c){hs.setStyles(b,{padding:0,border:"none",margin:0})}if(e){hs.setStyles(b,e)}if(d){d.appendChild(b)}return b},setAttribs:function(b,c){for(var a in c){b[a]=c[a]}},setStyles:function(b,c){for(var a in c){try{if(hs.ie&&a=="opacity"){b.style.filter=(c[a]==1)?"":"alpha(opacity="+(c[a]*100)+")"}else{b.style[a]=c[a]}}catch(d){}}},ieVersion:function(){var a=navigator.appVersion.split("MSIE");return a[1]?parseFloat(a[1]):null},getPageSize:function(){var c=document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body;var b=hs.ie?c.clientWidth:(document.documentElement.clientWidth||self.innerWidth),a=hs.ie?c.clientHeight:self.innerHeight;return{width:b,height:a,scrollLeft:hs.ie?c.scrollLeft:pageXOffset,scrollTop:hs.ie?c.scrollTop:pageYOffset}},position:function(a){var b={x:a.offsetLeft,y:a.offsetTop};while(a.offsetParent){a=a.offsetParent;b.x+=a.offsetLeft;b.y+=a.offsetTop;if(a!=document.body&&a!=document.documentElement){b.x-=a.scrollLeft;b.y-=a.scrollTop}}return b},expand:function(b,f,c){if(b.getParams){return f}try{new hs.Expander(b,f,c);return false}catch(d){return true}},htmlExpand:function(b,g,d){if(b.getParams){return g}for(var c=0;c<hs.sleeping.length;c++){if(hs.sleeping[c]&&hs.sleeping[c].a==b){hs.sleeping[c].awake();hs.sleeping[c]=null;return false}}try{hs.hasHtmlexpanders=true;new hs.Expander(b,g,d,"html");return false}catch(f){return true}},getElementByClass:function(e,c,d){var b=e.getElementsByTagName(c);for(var a=0;a<b.length;a++){if(b[a].className==d){return b[a]}}return null},getSelfRendered:function(){var a='<div class="highslide-header"><ul><li class="highslide-previous"><a onclick="return hs.previous(this)" href="#">'+hs.previousText+'</a></li><li class="highslide-next"><a onclick="return hs.next(this)" href="#">'+hs.nextText+'</a></li><li class="highslide-move"><a href="#" onclick="return false">'+hs.moveText+'</a></li><li class="highslide-close"><a onclick="return hs.close(this)" title="'+hs.closeTitle+'" href="#">'+hs.closeText+'</a></li></ul></div><div class="highslide-body"></div><div class="highslide-footer"><div><span class="highslide-resize" title="'+hs.resizeTitle+'"><span></span></span></div></div>';return hs.createElement("div",{className:"highslide-html-content",innerHTML:a})},getCacheBinding:function(b){for(var d=0;d<hs.cacheBindings.length;d++){if(hs.cacheBindings[d][0]==b){var e=hs.cacheBindings[d][1];hs.cacheBindings[d][1]=e.cloneNode(1);return e}}return null},preloadAjax:function(f){var g=document.getElementsByTagName("A");var b,d;for(var c=0;c<g.length;c++){b=g[c];d=hs.isHsAnchor(b);if(typeof d=="array"&&d[0]=="hs.htmlExpand"&&hs.getParam(b,"objectType")=="ajax"&&hs.getParam(b,"cacheAjax")){hs.push(hs.preloadTheseAjax,b)}}hs.preloadAjaxElement(0)},preloadAjaxElement:function(d){if(!hs.preloadTheseAjax[d]){return}var b=hs.preloadTheseAjax[d];var c=hs.getNode(hs.getParam(b,"contentId"));if(!c){c=hs.getSelfRendered()}var e=new hs.Ajax(b,c,1);e.onError=function(){};e.onLoad=function(){hs.push(hs.cacheBindings,[b,c]);hs.preloadAjaxElement(d+1)};e.run()},focusTopmost:function(){var b=0,a=-1;for(var c=0;c<hs.expanders.length;c++){if(hs.expanders[c]){if(hs.expanders[c].wrapper.style.zIndex&&hs.expanders[c].wrapper.style.zIndex>b){b=hs.expanders[c].wrapper.style.zIndex;a=c}}}if(a==-1){hs.focusKey=-1}else{hs.expanders[a].focus()}},getAdjacentAnchor:function(e,g){var a=document.getElementsByTagName("A"),b={},f=-1,c=0;for(var d=0;d<a.length;d++){if(hs.isHsAnchor(a[d])&&((hs.expanders[e].slideshowGroup==hs.getParam(a[d],"slideshowGroup")))){b[c]=a[d];if(hs.expanders[e]&&a[d]==hs.expanders[e].a){f=c}c++}}return b[f+g]||null},getParam:function(b,d){b.getParams=b.onclick;var c=b.getParams?b.getParams():null;b.getParams=null;return(c&&typeof c[d]!="undefined")?c[d]:(typeof hs[d]!="undefined"?hs[d]:null)},getSrc:function(b){var c=hs.getParam(b,"src");if(c){return c}return b.href},getNode:function(e){var c=hs.$(e),d=hs.clones[e],b={};if(!c&&!d){return null}if(!d){d=c.cloneNode(true);d.id="";hs.clones[e]=d;return c}else{return d.cloneNode(true)}},purge:function(f){if(!hs.ie){return}var c=f.attributes,e,b,g;if(c){b=c.length;for(var e=0;e<b;e+=1){g=c[e].name;if(typeof f[g]==="function"){f[g]=null}}}c=f.childNodes;if(c){b=c.length;for(var e=0;e<b;e+=1){hs.purge(f.childNodes[e])}}},previousOrNext:function(b,f){var d=hs.last=hs.getExpander(b);try{var a=hs.upcoming=hs.getAdjacentAnchor(d.key,f);a.onclick()}catch(c){}try{d.close()}catch(c){}return false},previous:function(a){return hs.previousOrNext(a,-1)},next:function(a){return hs.previousOrNext(a,1)},keyHandler:function(a){if(!a){a=window.event}if(!a.target){a.target=a.srcElement}if(a.target.form){return true}var b=null;switch(a.keyCode){case 32:case 34:case 39:case 40:b=1;break;case 8:case 33:case 37:case 38:b=-1;break;case 27:case 13:b=0}if(b!==null){hs.removeEventListener(document,"keydown",hs.keyHandler);if(!hs.enableKeyListener){return true}if(a.preventDefault){a.preventDefault()}else{a.returnValue=false}if(b==0){try{hs.getExpander().close()}catch(a){}return false}else{return hs.previousOrNext(hs.focusKey,b)}}return true},registerOverlay:function(a){hs.push(hs.overlays,a)},getWrapperKey:function(b){var d,c=/^highslide-wrapper-([0-9]+)$/;d=b;while(d.parentNode){if(d.id&&c.test(d.id)){return d.id.replace(c,"$1")}d=d.parentNode}d=b;while(d.parentNode){if(d.tagName&&hs.isHsAnchor(d)){for(var a=0;a<hs.expanders.length;a++){var e=hs.expanders[a];if(e&&e.a==d){return a}}}d=d.parentNode}return null},getExpander:function(a){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)]||null},isHsAnchor:function(b){return(b.onclick&&b.onclick.toString().replace(/\s/g," ").match(/hs.(htmlE|e)xpand/))},cleanUp:function(){for(var a=0;a<hs.expanders.length;a++){if(hs.expanders[a]&&hs.expanders[a].isExpanded){hs.focusTopmost()}}},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&&!(/highslide-(image|move|html|resize)/.test(b.className))){b=b.parentNode}var f=hs.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(/highslide-(image|move|resize)/);if(a){hs.dragArgs={exp:f,type:a[1],left:f.x.min,width:f.x.span,top:f.y.min,height:f.y.span,clickX:d.clientX,clickY:d.clientY};hs.addEventListener(document,"mousemove",hs.dragHandler);if(d.preventDefault){d.preventDefault()}if(/highslide-(image|html)-blur/.test(f.content.className)){f.focus();hs.hasFocused=true}return false}else{if(/highslide-html/.test(b.className)&&hs.focusKey!=f.key){f.focus();f.redoShowHide()}}}else{if(d.type=="mouseup"){hs.removeEventListener(document,"mousemove",hs.dragHandler);if(hs.dragArgs){if(hs.dragArgs.type=="image"){hs.dragArgs.exp.content.style.cursor=hs.styleRestoreCursor}var c=hs.dragArgs.hasDragged;if(!c&&!hs.hasFocused&&!/(move|resize)/.test(hs.dragArgs.type)){f.close()}else{if(c||(!c&&hs.hasHtmlexpanders)){hs.dragArgs.exp.redoShowHide()}}if(hs.dragArgs.exp.releaseMask){hs.dragArgs.exp.releaseMask.style.display="none"}hs.hasFocused=false;hs.dragArgs=null}else{if(/highslide-image-blur/.test(b.className)){b.style.cursor=hs.styleRestoreCursor}}}}return false},dragHandler:function(c){if(!hs.dragArgs){return true}if(!c){c=window.event}var b=hs.dragArgs,d=b.exp;if(d.iframe){if(!d.releaseMask){d.releaseMask=hs.createElement("div",null,{position:"absolute",width:d.x.span+"px",height:d.y.span+"px",left:0,top:0,zIndex:4,background:(hs.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));b.hasDragged=(b.type!="image"&&f>0)||(f>(hs.dragSensitivity||5));if(b.hasDragged){if(b.type=="resize"){d.resize(b)}else{d.move(b)}}return false},addEventListener:function(a,c,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(hs.continuePreloading&&hs.preloadTheseImages[b]&&hs.preloadTheseImages[b]!="undefined"){var a=document.createElement("img");a.onload=function(){hs.preloadFullImage(b+1)};a.src=hs.preloadTheseImages[b]}},preloadImages:function(f){if(f&&typeof f!="object"){hs.numberOfImagesToPreload=f}var b,e,c=0;var h=document.getElementsByTagName("A");for(var d=0;d<h.length;d++){b=h[d];e=hs.isHsAnchor(b);if(e&&e[0]=="hs.expand"){if(c<hs.numberOfImagesToPreload){hs.preloadTheseImages[c]=hs.getSrc(b);c++}}}new hs.Outline(hs.outlineType,function(){hs.preloadFullImage(0)});var g=hs.createElement("img",{src:hs.graphicsDir+hs.restoreCursor})},genContainer:function(){if(!hs.container){hs.container=hs.createElement("div",null,{position:"absolute",left:0,top:0,width:"100%",zIndex:hs.zIndexCounter},document.body,true);hs.loading=hs.createElement("a",{className:"highslide-loading",title:hs.loadingTitle,innerHTML:hs.loadingText,href:"javascript:void(0)"},{position:"absolute",opacity:hs.loadingOpacity,left:"-9999px",zIndex:1},hs.container);hs.clearing=hs.createElement("div",null,{clear:"both",paddingTop:"1px"},null,true);Math.linearTween=function(e,a,g,f){return g*e/f+a};Math.easeInQuad=function(e,a,g,f){return g*(e/=f)*e+a}}},fade:function(e,g,c,d,b,a){if(typeof b=="undefined"){if(typeof d!="number"){d=250}if(d<25){hs.setStyles(e,{opacity:c,visibility:(g<c?"visible":"hidden")});return}b=hs.faders.length;a=c>g?1:-1;var f=(25/(d-d%25))*Math.abs(g-c)}g=parseFloat(g);e.style.visibility=(g<=0)?"hidden":"visible";if(g<0||(a==1&&g>c)){return}if(e.fading&&e.fading.i!=b){clearTimeout(hs.faders[e.fading.i]);g=e.fading.o}e.fading={i:b,o:g,step:(f||e.fading.step)};e.style.visibility=(g<=0)?"hidden":"visible";hs.setStyles(e,{opacity:g});hs.faders[b]=setTimeout(function(){hs.fade(e,g+e.fading.step*a,c,null,b,a)},25)},close:function(a){try{hs.getExpander(a).close()}catch(b){}return false}};hs.Outline=function(f,d){this.onLoad=d;this.outlineType=f;var a=hs.ieVersion(),e;this.hasAlphaImageLoader=hs.ie&&a>=5.5&&a<7;if(!f){if(d){d()}return}hs.genContainer();this.table=hs.createElement("table",{cellSpacing:0},{visibility:"hidden",position:"absolute",borderCollapse:"collapse"},hs.container,true);this.tbody=hs.createElement("tbody",null,null,this.table,1);this.td=[];for(var b=0;b<=8;b++){if(b%3==0){e=hs.createElement("tr",null,{height:"auto"},this.tbody,true)}this.td[b]=hs.createElement("td",null,null,e,true);var c=b!=4?{lineHeight:0,fontSize:0}:{position:"relative"};hs.setStyles(this.td[b],c)}this.td[4].className=f;this.preloadGraphic()};hs.Outline.prototype={preloadGraphic:function(){var b=hs.graphicsDir+(hs.outlinesDir||"outlines/")+this.outlineType+".png";var a=hs.safari?hs.container:null;this.graphic=hs.createElement("img",null,{position:"absolute",left:"-9999px",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=hs.createElement("div",null,{width:"100%",height:"100%",position:"relative",overflow:"hidden"},this.td[b],true);hs.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{hs.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)){hs.createElement("div",null,c,this.td[b],true)}hs.setStyles(this.td[b],c)}}hs.pendingOutlines[this.outlineType]=this;if(this.onLoad){this.onLoad()}},setPosition:function(e,a,f,b,c,d){if(d){this.table.style.visibility=(c>=4*this.offset)?"visible":"hidden"}this.table.style.left=(a-this.offset)+"px";this.table.style.top=(f-this.offset)+"px";this.table.style.width=(b+2*(e.offsetBorderW+this.offset))+"px";b+=2*(e.offsetBorderW-this.offset);c+=+2*(e.offsetBorderH-this.offset);this.td[4].style.width=b>=0?b+"px":0;this.td[4].style.height=c>=0?c+"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.purge(this.table);try{this.table.parentNode.removeChild(this.table)}catch(b){}}}};hs.Expander=function(j,f,b,k){this.a=j;this.custom=b;this.contentType=k||"image";this.isHtml=(k=="html");this.isImage=!this.isHtml;hs.continuePreloading=false;hs.genContainer();var l=this.key=hs.expanders.length;for(var g=0;g<hs.overrides.length;g++){var c=hs.overrides[g];this[c]=f&&typeof f[c]!="undefined"?f[c]:hs[c]}var d=this.thumb=((f&&f.thumbnailId)?hs.$(f.thumbnailId):null)||j.getElementsByTagName("img")[0]||j;this.thumbsUserSetId=d.id||j.id;for(var g=0;g<hs.expanders.length;g++){if(hs.expanders[g]&&hs.expanders[g].a==j){hs.expanders[g].focus();return false}}for(var g=0;g<hs.expanders.length;g++){if(hs.expanders[g]&&hs.expanders[g].thumb!=d&&!hs.expanders[g].onLoadStarted){hs.expanders[g].cancelLoading()}}hs.expanders[this.key]=this;if(!hs.allowMultipleInstances){if(hs.expanders[l-1]){hs.expanders[l-1].close()}if(typeof hs.focusKey!="undefined"&&hs.expanders[hs.focusKey]){hs.expanders[hs.focusKey].close()}}this.overlays=[];var h=hs.position(d);this.thumbWidth=d.width?d.width:d.offsetWidth;this.thumbHeight=d.height?d.height:d.offsetHeight;this.thumbLeft=h.x;this.thumbTop=h.y;this.thumbOffsetBorderW=(this.thumb.offsetWidth-this.thumbWidth)/2;this.thumbOffsetBorderH=(this.thumb.offsetHeight-this.thumbHeight)/2;this.wrapper=hs.createElement("div",{id:"highslide-wrapper-"+this.key,className:this.wrapperClassName},{visibility:"hidden",position:"absolute",zIndex:hs.zIndexCounter++},null,true);this.wrapper.onmouseover=function(a){try{hs.expanders[l].wrapperMouseHandler(a)}catch(a){}};this.wrapper.onmouseout=function(a){try{hs.expanders[l].wrapperMouseHandler(a)}catch(a){}};if(this.contentType=="image"&&this.outlineWhileAnimating==2){this.outlineWhileAnimating=0}if(hs.pendingOutlines[this.outlineType]){this.connectOutline();this[this.contentType+"Create"]()}else{if(!this.outlineType){this[this.contentType+"Create"]()}else{this.displayLoading();var e=this;new hs.Outline(this.outlineType,function(){e.connectOutline();e[e.contentType+"Create"]()})}}return true};hs.Expander.prototype={connectOutline:function(a,c){var b=hs.pendingOutlines[this.outlineType];this.objOutline=b;b.table.style.zIndex=this.wrapper.style.zIndex;hs.pendingOutlines[this.outlineType]=null},displayLoading:function(){if(this.onLoadStarted||this.loading){return}this.originalCursor=this.a.style.cursor;this.a.style.cursor="wait";this.loading=hs.loading;var b=this;this.loading.onclick=function(){b.cancelLoading()};this.loading.style.top=(this.thumbTop+(this.thumbHeight-this.loading.offsetHeight)/2)+"px";var b=this,a=(this.thumbLeft+this.thumbOffsetBorderW+(this.thumbWidth-this.loading.offsetWidth)/2)+"px";setTimeout(function(){if(b.loading){b.loading.style.left=a}},100)},imageCreate:function(){var b=this;var a=document.createElement("img");this.content=a;a.onload=function(){if(hs.expanders[b.key]){b.contentLoaded()}};if(hs.blockRightClick){a.oncontextmenu=function(){return false}}a.className="highslide-image";a.style.visibility="hidden";a.style.display="block";a.style.position="absolute";a.style.maxWidth="none";a.style.zIndex=3;a.title=hs.restoreTitle;if(hs.safari){hs.container.appendChild(a)}if(hs.ie&&hs.flushImgSize){a.src=null}a.src=hs.getSrc(this.a);this.displayLoading()},htmlCreate:function(){this.tempContainer=hs.createElement("div",{className:this.wrapperClassName},{padding:"0 "+hs.marginRight+"px 0 "+hs.marginLeft+"px",visibility:"hidden"},hs.container);this.content=hs.getCacheBinding(this.a);if(!this.content){this.content=hs.getNode(this.contentId)}if(!this.content){this.content=hs.getSelfRendered()}this.innerContent=this.content;if(this.swfObject||this.objectType=="iframe"){this.setObjContainerSize(this.innerContent)}this.tempContainer.appendChild(this.innerContent);hs.setStyles(this.innerContent,{position:"relative",visibility:"hidden"});this.innerContent.className+=" highslide-display-block";if(this.width){this.innerContent.style.width=this.width+"px"}if(this.height){this.innerContent.style.height=this.height+"px"}if(this.innerContent.offsetWidth<this.minWidth){this.innerContent.style.width=this.minWidth+"px"}this.content=hs.createElement("div",{className:"highslide-html"},{position:"relative",zIndex:3,overflow:"hidden",width:this.thumbWidth+"px",height:this.thumbHeight+"px"});if(this.objectType=="ajax"&&!hs.getCacheBinding(this.a)){var a=new hs.Ajax(this.a,this.innerContent);var b=this;a.onLoad=function(){if(hs.expanders[b.key]){b.contentLoaded()}};a.onError=function(){location.href=hs.getSrc(this.a)};a.run()}else{if(this.objectType=="iframe"&&this.objectLoadTime=="before"){this.writeExtendedContent()}else{this.contentLoaded()}}},contentLoaded:function(){try{if(!this.content){return}if(this.onLoadStarted){return}else{this.onLoadStarted=true}if(this.loading){this.loading.style.left="-9999px";this.loading=null;this.a.style.cursor=this.originalCursor||""}this.marginBottom=hs.marginBottom;if(this.isImage){this.newWidth=this.content.width;this.newHeight=this.content.height;this.fullExpandWidth=this.newWidth;this.fullExpandHeight=this.newHeight;this.content.style.width=this.thumbWidth+"px";this.content.style.height=this.thumbHeight+"px";this.getCaption()}else{if(this.htmlGetSize){this.htmlGetSize()}}this.wrapper.appendChild(this.content);this.content.style.position="relative";if(this.caption){this.wrapper.appendChild(this.caption)}this.wrapper.style.left=this.thumbLeft+"px";this.wrapper.style.top=this.thumbTop+"px";hs.container.appendChild(this.wrapper);this.offsetBorderW=(this.content.offsetWidth-this.thumbWidth)/2;this.offsetBorderH=(this.content.offsetHeight-this.thumbHeight)/2;var d=hs.marginRight+2*this.offsetBorderW;this.marginBottom+=2*this.offsetBorderH;var j=this.newWidth/this.newHeight;var b=this.allowSizeReduction?this.minWidth:this.newWidth;var n=this.allowSizeReduction?this.minHeight:this.newHeight;var f={x:"auto",y:"auto"};var h=hs.getPageSize();this.x={min:parseInt(this.thumbLeft)-this.offsetBorderW+this.thumbOffsetBorderW,span:this.newWidth,minSpan:(this.newWidth<b&&!hs.padToMinWidth)?this.newWidth:b,marginMin:hs.marginLeft,marginMax:d,scroll:h.scrollLeft,clientSpan:h.width,thumbSpan:this.thumbWidth};var c=this.x.min+parseInt(this.thumbWidth);this.x=this.justify(this.x);this.y={min:parseInt(this.thumbTop)-this.offsetBorderH+this.thumbOffsetBorderH,span:this.newHeight,minSpan:this.newHeight<n?this.newHeight:n,marginMin:hs.marginTop,marginMax:this.marginBottom,scroll:h.scrollTop,clientSpan:h.height,thumbSpan:this.thumbHeight};var a=this.y.min+parseInt(this.thumbHeight);this.y=this.justify(this.y);if(this.isHtml){this.htmlSizeOperations()}if(this.isImage){this.correctRatio(j)}var l=this.x;var k=this.y;this.show()}catch(g){window.location.href=hs.getSrc(this.a)}},setObjContainerSize:function(a,d){var b=hs.getElementByClass(a,"DIV","highslide-body");if(this.objectType=="iframe"){if(this.objectWidth){b.style.width=this.objectWidth+"px"}if(this.objectHeight){b.style.height=this.objectHeight+"px"}}if(this.swfObject){b.style.width=this.swfObject.attributes.width+"px";b.style.height=this.swfObject.attributes.height+"px"}},writeExtendedContent:function(b){if(this.hasExtendedContent){return}var f=this;this.body=hs.getElementByClass(this.innerContent,"DIV","highslide-body");if(this.objectType=="iframe"){this.displayLoading();this.ruler=hs.clearing.cloneNode(1);this.body.appendChild(this.ruler);this.newWidth=this.innerContent.offsetWidth;if(!this.objectWidth){this.objectWidth=this.ruler.offsetWidth}var c=this.innerContent.offsetHeight-this.body.offsetHeight;var d=this.objectHeight||(hs.getPageSize()).height-c-hs.marginTop-hs.marginBottom;var e=(hs.ie&&this.objectLoadTime=="before")?'onload="if(hs.expanders['+this.key+"])hs.expanders["+this.key+'].contentLoaded();"':"";var a=hs.ie?'<iframe name="hsIframe'+this.key+'" '+e+"/>":"iframe";this.iframe=hs.createElement(a,{name:"hsIframe"+this.key,frameBorder:0,allowTransparency:true},{width:this.objectWidth+"px",height:d+"px"},this.body);if(this.objectLoadTime=="before"){if(!hs.ie){this.iframe.onload=function(){if(hs.expanders[f.key]){f.contentLoaded()}}}}if(hs.safari){this.iframe.src=null}this.iframe.src=hs.getSrc(this.a);if(this.objectLoadTime=="after"){this.correctIframeSize()}}else{if(this.swfObject){this.body.id=this.body.id||"hs-flash-id-"+this.key;this.swfObject.write(this.body.id)}}this.hasExtendedContent=true},htmlGetSize:function(){if(this.iframe&&!this.objectHeight){try{var d=this.iframe.contentDocument||this.iframe.contentWindow.document;var b=d.createElement("div");b.style.clear="both";d.body.appendChild(b);var a=b.offsetTop;if(hs.ie){a+=parseInt(d.body.currentStyle.marginTop)+parseInt(d.body.currentStyle.marginBottom)-1}this.iframe.style.height=this.body.style.height=a+"px"}catch(c){this.iframe.style.height="300px"}}this.innerContent.appendChild(hs.clearing);if(!this.newWidth){this.newWidth=this.innerContent.offsetWidth}this.newHeight=this.innerContent.offsetHeight;this.innerContent.removeChild(hs.clearing);if(hs.ie&&this.newHeight>parseInt(this.innerContent.currentStyle.height)){this.newHeight=parseInt(this.innerContent.currentStyle.height)}},correctIframeSize:function(){var b=this.innerContent.offsetWidth-this.ruler.offsetWidth;if(b<0){b=0}var a=this.innerContent.offsetHeight-this.body.offsetHeight;hs.setStyles(this.iframe,{width:(this.x.span-b)+"px",height:(this.y.span-a)+"px"});hs.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.swfObject&&this.objectLoadTime=="before"){this.writeExtendedContent()}if(this.x.span<this.newWidth&&!this.allowWidthReduction){this.x.span=this.newWidth}if(this.y.span<this.newHeight&&!this.allowHeightReduction){this.y.span=this.newHeight}this.scrollerDiv=this.innerContent;this.mediumContent=hs.createElement("div",null,{width:this.x.span+"px",position:"relative",left:(this.x.min-this.thumbLeft)+"px",top:(this.y.min-this.thumbTop)+"px"},this.content,true);this.mediumContent.appendChild(this.innerContent);hs.container.removeChild(this.tempContainer);hs.setStyles(this.innerContent,{border:"none",width:"auto",height:"auto"});var e=hs.getElementByClass(this.innerContent,"DIV","highslide-body");if(e&&!this.swfObject&&this.objectType!="iframe"){var b=e;e=hs.createElement(b.nodeName,null,{overflow:"hidden"},null,true);b.parentNode.insertBefore(e,b);e.appendChild(hs.clearing);e.appendChild(b);var c=this.innerContent.offsetWidth-e.offsetWidth;var a=this.innerContent.offsetHeight-e.offsetHeight;e.removeChild(hs.clearing);var d=hs.safari||navigator.vendor=="KDE"?1:0;hs.setStyles(e,{width:(this.x.span-c-d)+"px",height:(this.y.span-a)+"px",overflow:"hidden",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.span<this.mediumContent.offsetHeight){this.scrollerDiv=this.content}if(this.scrollerDiv==this.content&&!this.allowWidthReduction&&this.objectType!="iframe"){this.x.span+=17}if(this.scrollerDiv&&this.scrollerDiv.offsetHeight>this.scrollerDiv.parentNode.offsetHeight){setTimeout("try { hs.expanders["+this.key+"].scrollerDiv.style.overflow = 'auto'; } catch(e) {}",hs.expandDuration)}},justify:function(d){var e,c=d==this.x?"x":"y";var b=false;var a=true;d.min=Math.round(d.min-((d.span-d.thumbSpan)/2));if(d.min<d.scroll+d.marginMin){d.min=d.scroll+d.marginMin;b=true}if(d.span<d.minSpan){d.span=d.minSpan;a=false}if(d.min+d.span>d.scroll+d.clientSpan-d.marginMax){if(b&&a){d.span=d.clientSpan-d.marginMin-d.marginMax}else{if(d.span<d.clientSpan-d.marginMin-d.marginMax){d.min=d.scroll+d.clientSpan-d.span-d.marginMin-d.marginMax}else{d.min=d.scroll+d.marginMin;if(a){d.span=d.clientSpan-d.marginMin-d.marginMax}}}}if(d.span<d.minSpan){d.span=d.minSpan;a=false}if(d.min<d.marginMin){tmpMin=d.min;d.min=d.marginMin;if(a){d.span=d.span-(d.min-tmpMin)}}return d},correctRatio:function(c){var b=this.x;var f=this.y;var e=false;if(b.span/f.span>c){var a=b.span;b.span=f.span*c;if(b.span<b.minSpan){if(hs.padToMinWidth){b.imgSpan=b.span}b.span=b.minSpan;if(!b.imgSpan){f.span=b.span/c}}e=true}else{if(b.span/f.span<c){var d=f.span;f.span=b.span/c;e=true}}if(e){b.min=parseInt(this.thumbLeft)-this.offsetBorderW+this.thumbOffsetBorderW;b.minSpan=b.span;this.x=this.justify(b);f.min=parseInt(this.thumbTop)-this.offsetBorderH+this.thumbOffsetBorderH;f.minSpan=f.span;this.y=this.justify(f)}},show:function(){var a={x:this.x.min-20,y:this.y.min-20,w:this.x.span+40,h:this.y.span+40+this.spaceForCaption};hs.hideSelects=(hs.ie&&hs.ieVersion()<7);if(hs.hideSelects){this.showHideElements("SELECT","hidden",a)}hs.hideIframes=((window.opera&&navigator.appVersion<9)||navigator.vendor=="KDE"||(hs.ie&&hs.ieVersion()<5.5));if(hs.hideIframes){this.showHideElements("IFRAME","hidden",a)}if(hs.geckoMac){this.showHideElements("*","hidden",a)}if(this.x.imgSpan){this.content.style.margin="0 auto"}this.changeSize(1,{x:this.thumbLeft+this.thumbOffsetBorderW-this.offsetBorderW,y:this.thumbTop+this.thumbOffsetBorderH-this.offsetBorderH,w:this.thumbWidth,h:this.thumbHeight,imgW:this.thumbWidth,o:hs.outlineStartOffset},{x:this.x.min,y:this.y.min,w:this.x.span,h:this.y.span,imgW:this.x.imgSpan,o:this.objOutline?this.objOutline.offset:0},hs.expandDuration,hs.expandSteps)},changeSize:function(f,j,k,a,h){if(f&&this.objOutline&&!this.outlineWhileAnimating){this.objOutline.setPosition(this,this.x.min,this.y.min,this.x.span,this.y.span)}else{if(!f&&this.objOutline){if(this.outlineWhileAnimating){this.objOutline.setPosition(this,j.x,j.y,j.w,j.h)}else{this.objOutline.destroy((this.isHtml&&this.preserveContent))}}}if(!f){var c=this.wrapper.childNodes.length;for(var e=c-1;e>=0;e--){var b=this.wrapper.childNodes[e];if(b!=this.content){hs.purge(b);this.wrapper.removeChild(b)}}}if(this.fadeInOut){j.op=f?0:1;k.op=f}var l,d=this,g=Math[this.easing]||Math.easeInQuad;if(!f){g=Math[this.easingClose]||g}for(var e=1;e<=h;e++){l=Math.round(e*(a/h));(function(){var p=e,o={};for(var n in j){o[n]=g(l,j[n],k[n]-j[n],a)}setTimeout(function(){if(f&&p==1){d.content.style.visibility="visible";d.a.className+=" highslide-active-anchor"}d.setSize(o)},l)})()}if(f){setTimeout(function(){if(d.objOutline){d.objOutline.table.style.visibility="visible"}},l);setTimeout(function(){if(d.caption){d.writeCaption()}d.afterExpand()},l+50)}else{setTimeout(function(){d.afterClose()},l)}},setSize:function(c){try{if(this.isHtml){hs.setStyles(this.content,{width:c.w+"px",height:c.h+"px"});hs.setStyles(this.mediumContent,{left:(this.x.min-c.x)+"px",top:(this.y.min-c.y)+"px"});this.innerContent.style.visibility="visible"}else{this.wrapper.style.width=(c.w+2*this.offsetBorderW)+"px";this.content.style.width=((c.imgW&&!isNaN(c.imgW))?c.imgW:c.w)+"px";if(hs.safari){this.content.style.maxWidth=this.content.style.width}this.content.style.height=c.h+"px"}if(c.op){hs.setStyles(this.wrapper,{opacity:c.op})}if(this.objOutline&&this.outlineWhileAnimating){var b=this.objOutline.offset-c.o;this.objOutline.setPosition(this,c.x+b,c.y+b,c.w-2*b,c.h-2*b,1)}hs.setStyles(this.wrapper,{visibility:"visible",left:c.x+"px",top:c.y+"px"})}catch(a){window.location.href=hs.getSrc(this.a)}},afterExpand:function(){this.isExpanded=true;this.focus();if(this.isHtml&&this.objectLoadTime=="after"){this.writeExtendedContent()}if(this.isHtml){if(this.iframe){try{var c=this,b=this.iframe.contentDocument||this.iframe.contentWindow.document;hs.addEventListener(b,"mousedown",function(){if(hs.focusKey!=c.key){c.focus()}})}catch(a){}if(hs.ie&&typeof this.isClosing!="boolean"){this.iframe.style.width=(this.objectWidth-1)+"px"}}}this.createOverlays();if(hs.showCredits){this.writeCredits()}if(this.isImage&&this.fullExpandWidth>this.x.span){this.createFullExpand()}if(!this.caption){this.prepareNextOutline()}},prepareNextOutline:function(){var a=this.key;var b=this.outlineType;new hs.Outline(b,function(){try{hs.expanders[a].preloadNext()}catch(c){}})},preloadNext:function(){var b=hs.getAdjacentAnchor(this.key,1);if(b.onclick.toString().match(/hs\.expand/)){var a=hs.createElement("img",{src:hs.getSrc(b)})}},cancelLoading:function(){hs.expanders[this.key]=null;this.a.style.cursor=this.originalCursor;if(this.loading){hs.loading.style.left="-9999px"}},writeCredits:function(){var a=hs.createElement("a",{href:hs.creditsHref,className:"highslide-credits",innerHTML:hs.creditsText,title:hs.creditsTitle});this.createOverlay({overlayId:a,position:"top left"})},getCaption:function(){if(!this.captionId&&this.thumbsUserSetId){this.captionId="caption-for-"+this.thumbsUserSetId}if(this.captionId){this.caption=hs.getNode(this.captionId)}if(!this.caption&&!this.captionText&&this.captionEval){try{this.captionText=eval(this.captionEval)}catch(e){}}if(!this.caption&&this.captionText){this.caption=hs.createElement("div",{className:"highslide-caption",innerHTML:this.captionText})}if(!this.caption){var next=this.a.nextSibling;while(next&&!hs.isHsAnchor(next)){if(/highslide-caption/.test(next.className||null)){this.caption=next.cloneNode(1);break}next=next.nextSibling}}if(this.caption){this.marginBottom+=this.spaceForCaption}},writeCaption:function(){try{hs.setStyles(this.wrapper,{width:this.wrapper.offsetWidth+"px",height:this.wrapper.offsetHeight+"px"});hs.setStyles(this.caption,{visibility:"hidden",marginTop:hs.safari?0:"-"+this.y.span+"px"});this.caption.className+=" highslide-display-block";var a,j=this;if(hs.ie&&(hs.ieVersion()<6||document.compatMode=="BackCompat")){a=this.caption.offsetHeight}else{var b=hs.createElement("div",{innerHTML:this.caption.innerHTML},null,null,true);this.caption.innerHTML="";this.caption.appendChild(b);a=this.caption.childNodes[0].offsetHeight;this.caption.innerHTML=this.caption.childNodes[0].innerHTML}hs.setStyles(this.caption,{overflow:"hidden",height:0,zIndex:2,marginTop:0});this.wrapper.style.height="auto";if(hs.captionSlideSpeed){var f=(Math.round(a/50)||1)*hs.captionSlideSpeed}else{this.placeCaption(a,1);return}for(var d=a%f,c=0;d<=a;d+=f,c+=10){(function(){var h=d,e=(d==a)?1:0;setTimeout(function(){j.placeCaption(h,e)},c)})()}}catch(g){}},placeCaption:function(a,b){if(!this.caption){return}this.caption.style.height=a+"px";this.caption.style.visibility="visible";this.y.span=this.wrapper.offsetHeight-2*this.offsetBorderH;var c=this.objOutline;if(c){c.td[4].style.height=(this.wrapper.offsetHeight-2*this.objOutline.offset)+"px";if(c.hasAlphaImageLoader){c.td[3].style.height=c.td[5].style.height=c.td[4].style.height}}if(b){this.prepareNextOutline()}},showHideElements:function(c,b,g){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 j=e[f].getAttribute("hidden-by");if(b=="visible"&&j){j=j.replace("["+this.key+"]","");e[f].setAttribute("hidden-by",j);if(!j){e[f].style[a]=e[f].origProp}}else{if(b=="hidden"){var l=hs.position(e[f]);l.w=e[f].offsetWidth;l.h=e[f].offsetHeight;var k=(l.x+l.w<g.x||l.x>g.x+g.w);var h=(l.y+l.h<g.y||l.y>g.y+g.h);var d=hs.getWrapperKey(e[f]);if(!k&&!h&&d!=this.key){if(!j){e[f].setAttribute("hidden-by","["+this.key+"]");e[f].origProp=e[f].style[a];e[f].style[a]="hidden"}else{if(!j.match("["+this.key+"]")){e[f].setAttribute("hidden-by",j+"["+this.key+"]")}}}else{if(j=="["+this.key+"]"||hs.focusKey==d){e[f].setAttribute("hidden-by","");e[f].style[a]=e[f].origProp||""}else{if(j&&j.match("["+this.key+"]")){e[f].setAttribute("hidden-by",j.replace("["+this.key+"]",""))}}}}}}}},focus:function(){this.wrapper.style.zIndex=hs.zIndexCounter++;for(var a=0;a<hs.expanders.length;a++){if(hs.expanders[a]&&a==hs.focusKey){var b=hs.expanders[a];b.content.className+=" highslide-"+b.contentType+"-blur";if(b.caption){b.caption.className+=" highslide-caption-blur"}if(b.isImage){b.content.style.cursor=hs.ie?"hand":"pointer";b.content.title=hs.focusTitle}}}if(this.objOutline){this.objOutline.table.style.zIndex=this.wrapper.style.zIndex}this.content.className="highslide-"+this.contentType;if(this.caption){this.caption.className=this.caption.className.replace(" highslide-caption-blur","")}if(this.isImage){this.content.title=hs.restoreTitle;hs.styleRestoreCursor=window.opera?"pointer":"url("+hs.graphicsDir+hs.restoreCursor+"), pointer";if(hs.ie&&hs.ieVersion()<6){hs.styleRestoreCursor="hand"}this.content.style.cursor=hs.styleRestoreCursor}hs.focusKey=this.key;hs.addEventListener(document,"keydown",hs.keyHandler)},move:function(a){this.x.min=a.left+a.dX;this.y.min=a.top+a.dY;if(a.type=="image"){this.content.style.cursor="move"}hs.setStyles(this.wrapper,{left:this.x.min+"px",top:this.y.min+"px"});if(this.objOutline){this.objOutline.setPosition(this,this.x.min,this.y.min,this.x.span,this.y.span)}},resize:function(c){this.x.span=c.width+c.dX;this.y.span=c.height+c.dY;if(this.x.span<this.minWidth){this.x.span=this.minWidth}if(this.y.span<this.minHeight){this.y.span=this.minHeight}var f=this.scrollerDiv;if(typeof this.wDiff=="undefined"){this.wDiff=this.innerContent.offsetWidth-f.offsetWidth;this.hDiff=this.innerContent.offsetHeight-f.offsetHeight}hs.setStyles(f,{width:(this.x.span-this.wDiff)+"px",height:(this.y.span-this.hDiff)+"px"});var b={width:this.x.span+"px",height:this.y.span+"px"};hs.setStyles(this.content,b);if(this.releaseMask){hs.setStyles(this.releaseMask,b)}this.mediumContent.style.width="auto";hs.setStyles(this.body,{width:"auto",height:"auto"});for(var a=0;a<this.overlays.length;a++){this.positionOverlay(this.overlays[a])}if(this.objOutline){this.objOutline.setPosition(this,this.x.min,this.y.min,this.x.span,this.y.span)}},close:function(){if(this.isClosing||!this.isExpanded){return}this.isClosing=true;hs.removeEventListener(document,"keydown",hs.keyHandler);try{if(this.isHtml){this.htmlPrepareClose()}this.content.style.cursor="default";this.changeSize(0,{x:this.x.min,y:this.y.min,w:this.x.span,h:parseInt(this.content.style.height),imgW:this.x.imgSpan,o:this.objOutline?this.objOutline.offset:0},{x:this.thumbLeft-this.offsetBorderW+this.thumbOffsetBorderW,y:this.thumbTop-this.offsetBorderH+this.thumbOffsetBorderH,w:this.thumbWidth,h:this.thumbHeight,imgW:this.thumbWidth,o:hs.outlineStartOffset},hs.restoreDuration,hs.restoreSteps)}catch(a){this.afterClose()}},htmlPrepareClose:function(){if(hs.geckoMac){if(!hs.mask){hs.mask=hs.createElement("div",null,{position:"absolute"},hs.container)}hs.setStyles(hs.mask,{width:this.x.span+"px",height:this.y.span+"px",left:this.x.min+"px",top:this.y.min+"px",display:"block"})}if(this.swfObject){try{hs.$(this.swfObject.getAttribute("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(hs.ie&&this.iframe){try{this.iframe.contentWindow.document.body.innerHTML=""}catch(a){}}this.body.innerHTML=""},sleep:function(){if(this.objOutline){this.objOutline.table.className="highslide-display-none"}this.releaseMask=null;this.wrapper.className+=" highslide-display-none";hs.push(hs.sleeping,this)},awake:function(){hs.expanders[this.key]=this;if(!hs.allowMultipleInstances&&hs.focusKey!=this.key){try{hs.expanders[hs.focusKey].close()}catch(a){}}this.wrapper.className=this.wrapper.className.replace(/highslide-display-none/,"");var c=hs.zIndexCounter++;this.wrapper.style.zIndex=c;this.isClosing=false;var b=this.objOutline||0;if(b){if(!this.outlineWhileAnimating){b.table.style.visibility="hidden"}b.table.className=null;b.table.style.zIndex=c}this.show()},createOverlay:function(c){var b=c.overlayId;if(typeof b=="string"){b=hs.getNode(b)}if(!b||typeof b=="string"){return}var a=hs.createElement("div",null,{left:0,top:0,position:"absolute",zIndex:3,visibility:"hidden"},this.wrapper,true);if(c.opacity){hs.setStyles(b,{opacity:c.opacity})}b.style.styleFloat="none";b.className+=" highslide-display-block";a.appendChild(b);a.hsPos=c.position;this.positionOverlay(a);if(c.hideOnMouseOut){a.setAttribute("hideOnMouseOut",true)}if(!c.opacity){c.opacity=1}a.setAttribute("opacity",c.opacity);hs.fade(a,0,c.opacity);hs.push(this.overlays,a)},positionOverlay:function(c){var f=this.offsetBorderW;var a=this.x.span-c.offsetWidth;var e=this.offsetBorderH;var b=parseInt(this.content.style.height)-c.offsetHeight;var d=c.hsPos||"center center";if(/^bottom/.test(d)){e+=b}if(/^center/.test(d)){e+=b/2}if(/right$/.test(d)){f+=a}if(/center$/.test(d)){f+=a/2}c.style.left=f+"px";c.style.top=e+"px"},createOverlays:function(){for(var a=0;a<hs.overlays.length;a++){var c=hs.overlays[a],d=c.thumbnailId,b=c.slideshowGroup;if((!d&&!b)||d==this.thumbsUserSetId||b===this.slideshowGroup){if(this.isImage||(this.isHtml&&c.useOnHtml)){this.createOverlay(c)}}}},createFullExpand:function(){var b=hs.createElement("a",{href:"javascript:hs.expanders["+this.key+"].doFullExpand();",title:hs.fullExpandTitle,className:"highslide-full-expand"});this.fullExpandLabel=b;this.createOverlay({overlayId:b,position:hs.fullExpandPosition,hideOnMouseOut:true,opacity:hs.fullExpandOpacity})},doFullExpand:function(){try{hs.purge(this.fullExpandLabel);this.fullExpandLabel.parentNode.removeChild(this.fullExpandLabel);this.focus();this.x.min=parseInt(this.wrapper.style.left)-(this.fullExpandWidth-this.content.width)/2;if(this.x.min<hs.marginLeft){this.x.min=hs.marginLeft}this.wrapper.style.left=this.x.min+"px";hs.setStyles(this.content,{width:this.fullExpandWidth+"px",height:this.fullExpandHeight+"px"});this.x.span=this.fullExpandWidth;this.wrapper.style.width=(this.x.span+2*this.offsetBorderW)+"px";this.y.span=this.wrapper.offsetHeight-2*this.offsetBorderH;if(this.objOutline){this.objOutline.setPosition(this,this.x.min,this.y.min,this.x.span,this.y.span)}for(var a=0;a<this.overlays.length;a++){this.positionOverlay(this.overlays[a])}this.redoShowHide()}catch(b){window.location.href=this.content.src}},redoShowHide:function(){var a={x:parseInt(this.wrapper.style.left)-20,y:parseInt(this.wrapper.style.top)-20,w:this.content.offsetWidth+40,h:this.content.offsetHeight+40+this.spaceForCaption};if(hs.hideSelects){this.showHideElements("SELECT","hidden",a)}if(hs.hideIframes){this.showHideElements("IFRAME","hidden",a)}if(hs.geckoMac){this.showHideElements("*","hidden",a)}},wrapperMouseHandler:function(c){if(!c){c=window.event}var b=/mouseover/i.test(c.type);if(!c.target){c.target=c.srcElement}if(hs.ie){c.relatedTarget=b?c.fromElement:c.toElement}if(hs.getExpander(c.relatedTarget)==this||hs.dragArgs){return}for(var a=0;a<this.overlays.length;a++){var d=this.overlays[a];if(d.getAttribute("hideOnMouseOut")){var g=b?0:d.getAttribute("opacity"),f=b?d.getAttribute("opacity"):0;hs.fade(d,g,f)}}},afterClose:function(){this.a.className=this.a.className.replace("highslide-active-anchor","");if(hs.hideSelects){this.showHideElements("SELECT","visible")}if(hs.hideIframes){this.showHideElements("IFRAME","visible")}if(hs.geckoMac){this.showHideElements("*","visible")}if(this.isHtml&&this.preserveContent){this.sleep()}else{if(this.objOutline&&this.outlineWhileAnimating){this.objOutline.destroy()}hs.purge(this.wrapper);if(hs.ie&&hs.ieVersion()<5.5){this.wrapper.innerHTML=""}else{this.wrapper.parentNode.removeChild(this.wrapper)}}if(hs.mask){hs.mask.style.display="none"}hs.expanders[this.key]=null;hs.cleanUp()}};hs.Ajax=function(b,c,d){this.a=b;this.content=c;this.pre=d};hs.Ajax.prototype={run:function(){this.src=hs.getSrc(this.a);if(this.src.match("#")){var a=this.src.split("#");this.src=a[0];this.id=a[1]}if(hs.cachedGets[this.src]){this.cachedGet=hs.cachedGets[this.src];if(this.id){this.getElementContent()}else{this.loadHTML()}return}try{this.xmlHttp=new XMLHttpRequest()}catch(b){try{this.xmlHttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{this.xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){this.onError()}}}var c=this;this.xmlHttp.onreadystatechange=function(){if(c.xmlHttp.readyState==4){if(c.id){c.getElementContent()}else{c.loadHTML()}}};this.xmlHttp.open("GET",this.src,true);this.xmlHttp.send(null)},getElementContent:function(){hs.genContainer();var b=window.opera?{src:this.src}:null;this.iframe=hs.createElement("iframe",b,{position:"absolute",left:"-9999px"},hs.container);try{this.loadHTML()}catch(a){var c=this;setTimeout(function(){c.loadHTML()},1)}},loadHTML:function(){var a=this.cachedGet||this.xmlHttp.responseText;if(this.pre){hs.cachedGets[this.src]=a}if(!hs.ie||hs.ieVersion()>=5.5){a=a.replace(/\s/g," ");a=a.replace(new RegExp("<link[^>]*>","gi"),"");a=a.replace(new RegExp("<script[^>]*>.*?<\/script>","gi"),"");if(this.iframe){var c=this.iframe.contentDocument||this.iframe.contentWindow.document;c.open();c.write(a);c.close();try{a=c.getElementById(this.id).innerHTML}catch(b){try{a=this.iframe.document.getElementById(this.id).innerHTML}catch(b){}}hs.container.removeChild(this.iframe)}else{a=a.replace(new RegExp("^.*?<body[^>]*>(.*?)</body>.*?$","i"),"$1")}}hs.getElementByClass(this.content,"DIV","highslide-body").innerHTML=a;this.onLoad()}};var HsExpander=hs.Expander;hs.addEventListener(document,"mousedown",hs.mouseClickHandler);hs.addEventListener(document,"mouseup",hs.mouseClickHandler);hs.addEventListener(window,"load",hs.preloadImages);hs.addEventListener(window,"load",hs.preloadAjax);function resize_iframe(){var a=window.innerWidth;if(document.body.clientHeight){a=document.body.clientHeight}document.getElementById("glu").style.height=parseInt(a-document.getElementById("glu").offsetTop-8)+"px"}window.onresize=resize_iframe;
