function initTabs(){var a="none";var b="none";var l=window.location.href;if(l.indexOf("#")>-1){a=l.substr(l.indexOf("#")+1)}multiTab();multiTabNext();var g=document.getElementsByTagName("ul");for(var f=0;f<g.length;f++){if(g[f].className.indexOf("tabset")!=-1){var k=[];var m=g[f].getElementsByTagName("a");for(var e=0;e<m.length;e++){if(m[e].className.indexOf("tab")!=-1){k.push(m[e]);m[e].tabs=k;var d=m[e].href.substr(m[e].href.indexOf("#")+1);var h=document.getElementById(d);if(h){if(m[e].className.indexOf("active")!=-1){h.style.display="block"}else{h.style.display="none"}}if(a!="none"&&a==d){b=m[e]}m[e].onclick=function(){var r=document.getElementById(this.href.substr(this.href.indexOf("#")+1));if(r){var n=this.href.substr(this.href.indexOf("#")+1);n=n.split("-");if(n.length==2){var q=document.getElementById("emailthislink-"+n[0]);if(q){var j=q.href.substr(q.href.indexOf("disptab")+10,4);q.href=q.href.replace(("disptab%3D"+j),("disptab%3D"+n[1]))}}else{updateEmailThisLink("disptab",this.href.substr(this.href.indexOf("#")+1),4)}for(var o=0;o<this.tabs.length;o++){var p=document.getElementById(this.tabs[o].href.substr(this.tabs[o].href.indexOf("#")+1));if(p){p.style.display="none"}this.tabs[o].className=this.tabs[o].className.replace("active","")}window.location.href=this.href;this.className+=" active";r.style.display="block";return false}}}}}}if(b!="none"){b.onclick()}}function updateEmailThisLink(b,d,a){var e=document.getElementById("emailthislink");var c=e.href.substr(e.href.indexOf(b)+10,a);e.href=e.href.replace((b+"%3D"+c),(b+"%3D"+d))}function multiTab(){var b=document.getElementById("customer-list");if(b){var e=[];var c=document.getElementsByTagName("div");var a=b.getElementsByTagName("a");for(var d=0;d<a.length;d++){e[d]=a[d].href.substr(a[d].href.indexOf("#")+1)}for(var d=0;d<a.length;d++){a[d].onclick=function(){var k=this.href.substr(this.href.indexOf("#")+1);hideTab(e,a);var m=document.getElementById("industry-thumb-text");if(m){m.innerHTML=this.innerHTML;document.getElementById("industry-thumb-selected-text").value=this.innerHTML;var l=document.getElementById("industry-selected-fpc").value;document.getElementById("industry-selected-fpc").value=k.replace("asset","ass");var g=document.getElementById("main");if(g.className.indexOf("industry-main-image")!=-1){g.className=g.className.replace(("industry-main-image-"+l),("industry-main-image-"+k.replace("asset","ass")))}}this.parentNode.className+=" active";var f=document.getElementById(k+"-sidenav");if(f){f.className="active"}for(var h=0;h<c.length;h++){if(c[h].className.indexOf(k)!=-1){c[h].style.display="block"}}return false}}}}function multiTabNext(){var d=document.getElementById("customer-main-list");if(d){var e=[];var a=document.getElementsByTagName("div");var b=d.getElementsByTagName("a");for(var c=0;c<b.length;c++){if(b[c].className.indexOf("-n")!=-1){e[c]=b[c].href.substr(b[c].href.indexOf("#")+1)}}for(var c=0;c<b.length;c++){if(b[c].className.indexOf("-n")!=-1){b[c].onclick=function(){var k=this.href.substr(this.href.indexOf("#")+1);hideNextTab(e,b);for(var h=0;h<b.length;h++){if(b[h].className.indexOf(k+"-c")!=-1){b[h].parentNode.className+=" active";var g=document.getElementById(k+"-sidenav");if(g){g.className="active"}}}for(var f=0;f<a.length;f++){if(a[f].className.indexOf(k)!=-1){a[f].style.display="block"}}return false}}}}}function hideTab(g,a){var c=document.getElementsByTagName("div");for(var e=0;e<a.length;e++){a[e].parentNode.className=a[e].parentNode.className.replace("active","")}for(var e=0;e<g.length;e++){for(var b=0;b<c.length;b++){if(c[b].className.indexOf(g[e])!=-1){c[b].style.display="none"}}}var f=document.getElementById("customer-sidelist");if(f){var d=f.getElementsByTagName("li");for(var e=0;e<d.length;e++){d[e].className=d[e].className.replace("active","")}}}function hideNextTab(g,b){var a=document.getElementsByTagName("div");for(var e=0;e<b.length;e++){if(b[e].className.indexOf("-c")!=-1){b[e].parentNode.className=b[e].parentNode.className.replace("active","")}}for(var e=0;e<g.length;e++){for(var c=0;c<a.length;c++){if(a[c].className.indexOf(g[e])!=-1){a[c].style.display="none"}}}var f=document.getElementById("customer-sidelist");if(f){var d=f.getElementsByTagName("li");for(var e=0;e<d.length;e++){d[e].className=d[e].className.replace("active","")}}}if(window.addEventListener){window.addEventListener("load",initTabs,false)}else{if(window.attachEvent&&!window.opera){window.attachEvent("onload",initTabs)}}function changeLoginLink(){var a=document.getElementById("LoginLink");if(a){if(a.innerHTML=="Login / Register"){a.href=a.href.replace("action%3DlogIN","action%3DlogOUT");a.innerHTML="Logout / Edit Profile"}}}function changeLogoutLink(){var a=document.getElementById("LoginLink");if(a){if(a.innerHTML=="Logout / Edit Profile"){a.href=a.href.replace("action%3DlogOUT","action%3DlogIN");a.innerHTML="Login / Register"}}}Fx.Scroll=new Class({Extends:Fx,options:{offset:{x:0,y:0},wheelStops:true},initialize:function(d,a){this.element=this.subject=$(d);this.parent(a);var b=this.cancel.bind(this,false);if($type(this.element)!="element"){this.element=$(this.element.getDocument().body)}var c=this.element;if(this.options.wheelStops){this.addEvent("start",function(){c.addEvent("mousewheel",b)},true);this.addEvent("complete",function(){c.removeEvent("mousewheel",b)},true)}},set:function(){var a=Array.flatten(arguments);this.element.scrollTo(a[0],a[1])},compute:function(b,c,d){var e=[];var a=2;a.times(function(f){e.push(Fx.compute(b[f],c[f],d))});return e},start:function(g,b){if(!this.check(arguments.callee,g,b)){return this}var e=this.element.getSize(),d=this.element.getScrollSize();var h=this.element.getScroll(),f={x:g,y:b};for(var c in f){var a=d[c]-e[c];if($chk(f[c])){f[c]=($type(f[c])=="number")?f[c].limit(0,a):a}else{f[c]=h[c]}f[c]+=this.options.offset[c]}return this.parent([h.x,h.y],[f.x,f.y])},toTop:function(){return this.start(false,0)},toLeft:function(){return this.start(0,false)},toRight:function(){return this.start("right",false)},toBottom:function(){return this.start(false,"bottom")},toElement:function(b){var a=$(b).getPosition(this.element);return this.start(a.x,a.y)}});Fx.Elements=new Class({Extends:Fx.CSS,initialize:function(b,a){this.elements=this.subject=$$(b);this.parent(a)},compute:function(g,f,e){var b={};for(var a in g){var d=g[a],j=f[a],h=b[a]={};for(var c in d){h[c]=this.parent(d[c],j[c],e)}}return b},set:function(d){for(var c in d){var a=d[c];for(var b in a){this.render(this.elements[c],b,a[b],this.options.unit)}}return this},start:function(b){if(!this.check(arguments.callee,b)){return this}var f={},e={};for(var a in b){var h=b[a],d=f[a]={},g=e[a]={};for(var c in h){var j=this.prepare(this.elements[a],c,h[c]);d[c]=j.from;g[c]=j.to}}return this.parent(f,e)}});var Accordion=new Class({Extends:Fx.Elements,options:{display:0,show:false,height:true,width:false,opacity:true,fixedHeight:false,fixedWidth:false,wait:false,alwaysHide:false},initialize:function(){var b=Array.link(arguments,{container:Element.type,options:Object.type,togglers:$defined,elements:$defined});this.parent(b.elements,b.options);this.togglers=$$(b.togglers);this.container=$(b.container);this.previous=-1;if(this.options.alwaysHide){this.options.wait=true}if($chk(this.options.show)){this.options.display=false;this.previous=this.options.show}if(this.options.start){this.options.display=false;this.options.show=false}this.effects={};if(this.options.opacity){this.effects.opacity="fullOpacity"}if(this.options.width){this.effects.width=this.options.fixedWidth?"fullWidth":"offsetWidth"}if(this.options.height){this.effects.height=this.options.fixedHeight?"fullHeight":"scrollHeight"}for(var c=0,a=this.togglers.length;c<a;c++){this.addSection(this.togglers[c],this.elements[c])}this.elements.each(function(e,f){if(this.options.show===f){this.fireEvent("active",[this.togglers[f],e])}else{for(var d in this.effects){e.setStyle(d,0)}}},this);if($chk(this.options.display)){this.display(this.options.display)}},addSection:function(d,f,b){d=$(d);f=$(f);var c=this.togglers.contains(d);var g=this.togglers.length;this.togglers.include(d);this.elements.include(f);if(g&&(!c||b)){b=$pick(b,g-1);d.inject(this.togglers[b],"before");f.inject(d,"after")}else{if(this.container&&!c){d.inject(this.container);f.inject(this.container)}}var a=this.togglers.indexOf(d);d.addEvent("click",this.display.bind(this,a));if(this.options.height){f.setStyles({"padding-top":0,"border-top":"none","padding-bottom":0,"border-bottom":"none"})}if(this.options.width){f.setStyles({"padding-left":0,"border-left":"none","padding-right":0,"border-right":"none"})}f.fullOpacity=1;if(this.options.fixedWidth){f.fullWidth=this.options.fixedWidth}if(this.options.fixedHeight){f.fullHeight=this.options.fixedHeight}f.setStyle("overflow","hidden");if(!c){for(var e in this.effects){f.setStyle(e,0)}}return this},display:function(a){a=($type(a)=="element")?this.elements.indexOf(a):a;if((this.timer&&this.options.wait)||(a===this.previous&&!this.options.alwaysHide)){return this}this.previous=a;var b={};this.elements.each(function(d,e){b[e]={};var f=(e!=a)||(this.options.alwaysHide&&(d.offsetHeight>0));this.fireEvent(f?"background":"active",[this.togglers[e],d]);for(var c in this.effects){b[e][c]=f?0:d[this.effects[c]]}},this);return this.start(b)}});Fx.Scroll.implement({scrollTo:function(b,a){return this.start(b,a)}});var Accordion=Fx.Accordion=new Class({Extends:Fx.Elements,options:{display:-1,show:false,height:true,width:false,opacity:true,alwaysHide:false,trigger:"click",initialDisplayFx:true,returnHeightToAuto:true},initialize:function(){var c=Array.link(arguments,{container:Element.type,options:Object.type,togglers:$defined,elements:$defined});this.parent(c.elements,c.options);this.togglers=$$(c.togglers);this.container=document.id(c.container);this.previous=-1;this.internalChain=new Chain();if(this.options.alwaysHide){this.options.wait=true}if($chk(this.options.show)){this.options.display=false;this.previous=this.options.show}if(this.options.start){this.options.display=false;this.options.show=false}this.effects={};if(this.options.opacity){this.effects.opacity="fullOpacity"}if(this.options.width){this.effects.width=this.options.fixedWidth?"fullWidth":"offsetWidth"}if(this.options.height){this.effects.height=this.options.fixedHeight?"fullHeight":"scrollHeight"}for(var b=0,a=this.togglers.length;b<a;b++){this.addSection(this.togglers[b],this.elements[b])}this.elements.each(function(e,d){for(var f in this.effects){e.setStyle(f,0)}if(this.togglers[d].className.indexOf("active")!=-1){this.options.display=d}},this);this.parent(this.elements);if($chk(this.options.display)){this.display(this.options.display,this.options.initialDisplayFx)}this.addEvent("complete",this.internalChain.callChain.bind(this.internalChain))},addSection:function(e,c){e=document.id(e);c=document.id(c);var f=this.togglers.contains(e);this.togglers.include(e);this.elements.include(c);var a=this.togglers.indexOf(e);var b=this.display.bind(this,a);e.store("accordion:display",b);e.addEvent(this.options.trigger,b);if(this.options.height){c.setStyles({"padding-top":0,"border-top":"none","padding-bottom":0,"border-bottom":"none"})}if(this.options.width){c.setStyles({"padding-left":0,"border-left":"none","padding-right":0,"border-right":"none"})}c.fullOpacity=1;if(this.options.fixedWidth){c.fullWidth=this.options.fixedWidth}if(this.options.fixedHeight){c.fullHeight=this.options.fixedHeight}c.setStyle("overflow","hidden");if(!f){for(var d in this.effects){c.setStyle(d,0)}}return this},detach:function(){this.togglers.each(function(a){a.removeEvent(this.options.trigger,a.retrieve("accordion:display"))},this)},display:function(a,b){if(!this.check(a,b)){return this}b=$pick(b,true);if(this.options.returnHeightToAuto){var d=this.elements[this.previous];if(d&&!this.selfHidden){for(var c in this.effects){d.setStyle(c,d[this.effects[c]])}}}a=($type(a)=="element")?this.elements.indexOf(a):a;if((this.timer&&this.options.wait)||(a===this.previous&&!this.options.alwaysHide)){return this}this.previous=a;var e={};this.elements.each(function(h,g){e[g]={};var f;if(g!=a){f=true}else{if(this.options.alwaysHide&&((h.offsetHeight>0&&this.options.height)||h.offsetWidth>0&&this.options.width)){f=true;this.selfHidden=true}}this.fireEvent(f?"background":"active",[this.togglers[g],h]);for(var j in this.effects){e[g][j]=f?0:h[this.effects[j]]}},this);this.internalChain.chain(function(){if(this.options.returnHeightToAuto&&!this.selfHidden){var f=this.elements[a];if(f){f.setStyle("height","auto")}}}.bind(this));return b?this.start(e):this.set(e)}});function initPage(){var d="div.course-cnt";var c=null;var b=null;c=$$(".course-cnt");b=$$(".partner-cnt");if(c!=null&&c.length>0){d="div.course-cnt"}else{if(b!=null&&b.length>0){d="div.partner-cnt"}}var a=new Accordion("div.course-service",d,{display:-1,duration:600,alwaysHide:true,event:"click",onActive:function(h,f){if(h.className.indexOf("active")==-1){h.className+=" active";if(h.getElementsByTagName("a")[0].innerHTML=="View Detail"){h.getElementsByTagName("a")[0].innerHTML="Close Detail"}else{var j=h.getElementsByTagName("a");for(var e=0;e<j.length;e++){var g=h.getElementsByTagName("a")[e];g=$(g);if(g.hasClass("plus-icon")){g.removeClass("plus-icon");g.addClass("minus-icon")}}}f.style.display="block";(function(){var l=h.id.replace("courses","coursep");var k=new Fx.Scroll(window,{duration:600});k.scrollTo(0,$(l).getTop())}).bind(h).delay(900)}},onBackground:function(h,f){h.className=h.className.replace("active","");if(h.getElementsByTagName("a")[0].innerHTML=="Close Detail"){h.getElementsByTagName("a")[0].innerHTML="View Detail"}else{var j=h.getElementsByTagName("a");for(var e=0;e<j.length;e++){var g=h.getElementsByTagName("a")[e];g=$(g);if(g.hasClass("minus-icon")){g.removeClass("minus-icon");g.addClass("plus-icon")}}}}})}if(window.addEventListener){window.addEventListener("load",initPage,false)}else{if(window.attachEvent){window.attachEvent("onload",initPage)}}var hs={lang:{loadingText:"Loading...",loadingTitle:"Click to cancel",focusTitle:"Click to bring to front",fullExpandTitle:"Expand to actual size",creditsText:"",creditsTitle:"",previousText:"Previous",nextText:"Next",moveText:"Move",closeText:"Close",closeTitle:"Close (esc)",resizeTitle:"Resize",playText:"Play",playTitle:"Play slideshow (spacebar)",pauseText:"Pause",pauseTitle:"Pause slideshow (spacebar)",previousTitle:"Previous (arrow left)",nextTitle:"Next (arrow right)",moveTitle:"Move",fullExpandText:"Full size",number:"Image %1 of %2",restoreTitle:"Click to close image, click and drag to move. Use arrow keys for next and previous."},graphicsDir:"/fw-skin/highslide/graphics/",restoreCursor:"zoomout.cur",expandSteps:10,expandDuration:250,restoreSteps:10,restoreDuration:250,marginLeft:15,marginRight:15,marginTop:15,marginBottom:15,zIndexCounter:1001,loadingOpacity:0.75,allowMultipleInstances:true,numberOfImagesToPreload:5,outlineWhileAnimating:2,outlineStartOffset:3,fullExpandPosition:"bottom right",fullExpandOpacity:1,padToMinWidth:false,showCredits:true,creditsHref:"http://vikjavev.no/highslide/",enableKeyListener:true,transitions:[],transitionDuration:500,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:"drop-shadow",wrapperClassName:"highslide-wrapper",skin:{controls:'<div class="highslide-controls"><ul><li class="highslide-previous"><a href="#" title="{hs.lang.previousTitle}"><span>{hs.lang.previousText}</span></a></li><li class="highslide-play"><a href="#" title="{hs.lang.playTitle}"><span>{hs.lang.playText}</span></a></li><li class="highslide-pause"><a href="#" title="{hs.lang.pauseTitle}"><span>{hs.lang.pauseText}</span></a></li><li class="highslide-next"><a href="#" title="{hs.lang.nextTitle}"><span>{hs.lang.nextText}</span></a></li><li class="highslide-move"><a href="#" title="{hs.lang.moveTitle}"><span>{hs.lang.moveText}</span></a></li><li class="highslide-full-expand"><a href="#" title="{hs.lang.fullExpandTitle}"><span>{hs.lang.fullExpandText}</span></a></li><li class="highslide-close"><a href="#" title="{hs.lang.closeTitle}" ><span>{hs.lang.closeText}</span></a></li></ul></div>',contentWrapper:'<div class="highslide-header"><ul><li class="highslide-previous"><a href="#" title="{hs.lang.previousTitle}" onclick="return hs.previous(this)"><span>{hs.lang.previousText}</span></a></li><li class="highslide-next"><a href="#" title="{hs.lang.nextTitle}" onclick="return hs.next(this)"><span>{hs.lang.nextText}</span></a></li><li class="highslide-move"><a href="#" title="{hs.lang.moveTitle}" onclick="return false"><span>{hs.lang.moveText}</span></a></li><li class="highslide-close"><a href="#" title="{hs.lang.closeTitle}" onclick="return hs.close(this)"><span>{hs.lang.closeText}</span></a></li></ul></div><div class="highslide-body"></div><div class="highslide-footer"><div><span class="highslide-resize" title="{hs.lang.resizeTitle}"><span></span></span></div></div>'},preloadTheseImages:[],continuePreloading:true,expanders:[],overrides:["allowSizeReduction","anchor","align","targetX","targetY","outlineType","outlineWhileAnimating","captionId","captionText","captionEval","captionOverlay","headingId","headingText","headingEval","headingOverlay","dragByHeading","autoplay","numberPosition","transitions","dimmingOpacity","contentId","width","height","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:{}},faders:[],slideshows:[],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){if(hs.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]}}},ieVersion:function(){var a=navigator.appVersion.split("MSIE");return a[1]?parseFloat(a[1]):null},getPageSize:function(){var j=document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body;var d=document.body;var h=(window.innerWidth&&window.scrollMaxX)?window.innerWidth+window.scrollMaxX:(d.scrollWidth>d.offsetWidth?d.scrollWidth:d.offsetWidth),c=(window.innerHeight&&window.scrollMaxY)?window.innerHeight+window.scrollMaxY:(d.scrollHeight>d.offsetHeight?d.scrollHeight:d.offsetHeight),e=hs.ie?j.scrollWidth:(document.documentElement.clientWidth||self.innerWidth),g=hs.ie?j.clientHeight:(document.documentElement.clientHeight||self.innerHeight);var f=hs.ie?j.clientWidth:(document.documentElement.clientWidth||self.innerWidth),a=hs.ie?j.clientHeight:self.innerHeight;return{pageWidth:h<e?e:h,pageHeight:c<g?g:c,width:f,height:a,scrollLeft:hs.ie?j.scrollLeft:pageXOffset,scrollTop:hs.ie?j.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,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}},getSelfRendered:function(){return hs.createElement("div",{className:"highslide-html-content",innerHTML:hs.replaceLang(hs.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=/{hs\.lang\.([^}]+)\}/g,d=c.match(b),e;for(var a=0;a<d.length;a++){e=d[a].replace(b,"$1");if(typeof hs.lang[e]!="undefined"){c=c.replace(d[a],hs.lang[e])}}return c},setClickEvents:function(){var c=document.getElementsByTagName("a");for(var b=0;b<c.length;b++){if(/^highslide$/.test(c[b].rel)){if(hs.fireEvent(hs,"onSetClickEvent",{element:c[b]})){c[b].onclick=function(){return hs.expand(this)}}c[b].removeAttribute("rel")}var a=/^highslide-(ajax|iframe)$/.exec(c[b].rel);if(a){(function(){var d=a[1];if(hs.fireEvent(hs,"onSetClickEvent",{element:c[b],type:d})){c[b].onclick=function(){return hs.htmlExpand(this,{objectType:d})}}})();c[b].removeAttribute("rel")}}if(!hs.pageLoaded){setTimeout(hs.setClickEvents,50)}else{hs.updateAnchors()}},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 b=hs.getAnchors();for(var d=0;d<b.htmls.length;d++){var c=b.htmls[d];if(hs.getParam(c,"objectType")=="ajax"&&hs.getParam(c,"cacheAjax")){hs.push(hs.preloadTheseAjax,c)}}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()}},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)}},discardElement:function(a){hs.garbageBin.appendChild(a);hs.garbageBin.innerHTML=""},dim:function(a){if(!hs.dimmer){hs.dimmer=hs.createElement("div",{className:"highslide-dimming",owner:"",onclick:function(){if(hs.fireEvent(hs,"onDimmerClick")){hs.close()}}},{position:"absolute",left:0},hs.container,true);hs.addEventListener(window,"resize",hs.setDimmerSize)}hs.dimmer.style.display="";hs.setDimmerSize();hs.dimmer.owner+="|"+a.key;if(hs.geckoMac&&hs.dimmingGeckoFix){hs.dimmer.style.background="url("+hs.graphicsDir+"geckodimmer.png)"}else{hs.fade(hs.dimmer,0,a.dimmingOpacity,hs.dimmingDuration)}},undim:function(a){if(!hs.dimmer){return}if(typeof a!="undefined"){hs.dimmer.owner=hs.dimmer.owner.replace("|"+a,"")}if((typeof a!="undefined"&&hs.dimmer.owner!="")||(hs.upcoming&&hs.getParam(hs.upcoming,"dimmingOpacity"))){return}if(hs.geckoMac&&hs.dimmingGeckoFix){hs.dimmer.style.background="none"}else{hs.fade(hs.dimmer,hs.dimmingOpacity,0,hs.dimmingDuration)}setTimeout(function(){hs.setStyles(hs.dimmer,{display:"none",width:0,height:0})},hs.dimmingDuration)},setDimmerSize:function(c){if(!hs.dimmer){return}var b=hs.getPageSize();var a=(hs.ie&&c&&c.wrapper)?parseInt(c.wrapper.style.top)+parseInt(c.wrapper.style.height)+(c.outline?c.outline.offset:0):0;hs.setStyles(hs.dimmer,{width:b.pageWidth+"px",height:Math.max(b.pageHeight,a)+"px"})},previousOrNext:function(b,f){hs.updateAnchors();var d=hs.last=hs.getExpander(b);try{var a=hs.upcoming=d.getAdjacentAnchor(f);a.onclick()}catch(c){hs.last=hs.upcoming=null}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}if(!hs.fireEvent(hs,"onKeyDown",a)){return true}var c=null;switch(a.keyCode){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){hs.removeEventListener(document,window.opera?"keypress":"keydown",hs.keyHandler)}if(!hs.enableKeyListener){return true}if(a.preventDefault){a.preventDefault()}else{a.returnValue=false}var b=hs.getExpander();if(b){if(c==0){b.close()}else{if(c==2){if(b.slideshow){b.slideshow.hitSpace()}}else{if(b.slideshow){b.slideshow.pause()}hs.previousOrNext(b.key,c)}}return false}}return true},registerOverlay:function(a){hs.push(hs.overlays,a)},addSlideshow:function(a){hs.push(hs.slideshows,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/))},reOrder:function(){for(var a=0;a<hs.expanders.length;a++){if(hs.expanders[a]&&hs.expanders[a].isExpanded){hs.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&&!(/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)){if(hs.fireEvent(f,"onImageClick")){f.close()}}else{if(c||(!c&&hs.hasHtmlexpanders)){hs.dragArgs.exp.redoShowHide()}}if(hs.dragArgs.exp.releaseMask){hs.dragArgs.exp.releaseMask.style.display="none"}if(c){hs.fireEvent(hs.dragArgs.exp,"onDrop",hs.dragArgs)}if(c){hs.setDimmerSize(f)}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));if(!b.hasDragged){b.hasDragged=(b.type!="image"&&f>0)||(f>(hs.dragSensitivity||5))}if(b.hasDragged&&c.clientX>5&&c.clientY>5){if(!hs.fireEvent(d,"onDrag",b)){return false}if(b.type=="resize"){d.resize(b)}else{d.move(b)}}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(hs.ie){c.relatedTarget=b?c.fromElement:c.toElement}var f=hs.getExpander(c.target);if(!f.isExpanded){return}if(!f||!c.relatedTarget||hs.getExpander(c.relatedTarget)==f||hs.dragArgs){return}hs.fireEvent(f,b?"onMouseOver":"onMouseOut",c);for(var a=0;a<f.overlays.length;a++){var d=hs.$("hsId"+f.overlays[a]);if(d&&d.hideOnMouseOut){var h=b?0:d.opacity,g=b?d.opacity:0;hs.fade(d,h,g)}}}catch(c){}},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(){a=null;hs.preloadFullImage(b+1)};a.src=hs.preloadTheseImages[b]}},preloadImages:function(c){if(c&&typeof c!="object"){hs.numberOfImagesToPreload=c}var a=hs.getAnchors();for(var b=0;b<a.images.length&&b<hs.numberOfImagesToPreload;b++){hs.push(hs.preloadTheseImages,hs.getSrc(a.images[b]))}if(hs.outlineType){new hs.Outline(hs.outlineType,function(){hs.preloadFullImage(0)})}else{hs.preloadFullImage(0)}var d=hs.createElement("img",{src:hs.graphicsDir+hs.restoreCursor})},init: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.lang.loadingTitle,innerHTML:hs.lang.loadingText,href:"javascript:;"},{position:"absolute",top:"-9999px",opacity:hs.loadingOpacity,zIndex:1},hs.container);hs.garbageBin=hs.createElement("div",null,{display:"none"},hs.container);hs.clearing=hs.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.easeInOutQuad=function(f,e,h,g){if((f/=g/2)<1){return h/2*f*f+e}return -h/2*((--f)*(f-2)-1)+e};for(var a in hs.langDefaults){if(typeof hs[a]!="undefined"){hs.lang[a]=hs[a]}else{if(typeof hs.lang[a]=="undefined"&&typeof hs.langDefaults[a]!="undefined"){hs.lang[a]=hs.langDefaults[a]}}}hs.ie6SSL=(hs.ie&&hs.ieVersion()<=6&&location.protocol=="https:");hs.fireEvent(this,"onActivate")}},domReady:function(){hs.isDomReady=true;if(hs.onDomReady){hs.onDomReady()}},updateAnchors:function(){var d=document.getElementsByTagName("*"),f=[],b=[],j=[],a={},e;for(var c=0;c<d.length;c++){e=hs.isHsAnchor(d[c]);if(e){hs.push(f,d[c]);if(e[0]=="hs.expand"){hs.push(b,d[c])}else{if(e[0]=="hs.htmlExpand"){hs.push(j,d[c])}}var h=hs.getParam(d[c],"slideshowGroup")||"none";if(!a[h]){a[h]=[]}hs.push(a[h],d[c])}}hs.anchors={all:f,groups:a,images:b,htmls:j};return hs.anchors},getAnchors:function(){return hs.anchors||hs.updateAnchors()},fade:function(e,h,c,d,b,a){if(typeof b=="undefined"){if(typeof d!="number"){d=250}if(d<25){hs.setStyles(e,{opacity:c});return}b=hs.faders.length;a=c>h?1:-1;var g=(25/(d-d%25))*Math.abs(h-c)}h=parseFloat(h);var f=(e.fade===0||e.fade===false||(e.fade==2&&hs.ie));e.style.visibility=((f?c:h)<=0)?"hidden":"visible";if(f||h<0||(a==1&&h>c)){return}if(e.fading&&e.fading.i!=b){clearTimeout(hs.faders[e.fading.i]);h=e.fading.o}e.fading={i:b,o:h,step:(g||e.fading.step)};e.style.visibility=(h<=0)?"hidden":"visible";hs.setStyles(e,{opacity:h});hs.faders[b]=setTimeout(function(){hs.fade(e,h+e.fading.step*a,c,null,b,a)},25)},close:function(a){var b=hs.getExpander(a);if(b){b.close()}return false}};hs.Outline=function(g,e){this.onLoad=e;this.outlineType=g;var a=hs.ieVersion(),f;this.hasAlphaImageLoader=hs.ie&&a>=5.5&&a<7;if(!g){if(e){e()}return}hs.init();this.table=hs.createElement("table",{cellSpacing:0},{visibility:"hidden",position:"absolute",borderCollapse:"collapse"},hs.container,true);var b=hs.createElement("tbody",null,null,this.table,1);this.td=[];for(var c=0;c<=8;c++){if(c%3==0){f=hs.createElement("tr",null,{height:"auto"},b,true)}this.td[c]=hs.createElement("td",null,null,f,true);var d=c!=4?{lineHeight:0,fontSize:0}:{position:"relative"};hs.setStyles(this.td[c],d)}this.td[4].className=g;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"};hs.discardElement(this.graphic);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)}}if(hs.pendingOutlines[this.outlineType]){hs.pendingOutlines[this.outlineType].destroy()}hs.pendingOutlines[this.outlineType]=this;if(this.onLoad){this.onLoad()}},setPosition:function(b,c,a){c=c||{x:b.x.min,y:b.y.min,w:b.x.span+b.x.p1+b.x.p2,h:b.y.span+b.y.p1+b.y.p2};if(a){this.table.style.visibility=(c.h>=4*this.offset)?"visible":"hidden"}hs.setStyles(this.table,{left:(c.x-this.offset)+"px",top:(c.y-this.offset)+"px",width:(c.w+2*(b.x.cb+this.offset))+"px"});c.w+=2*(b.x.cb-this.offset);c.h+=+2*(b.y.cb-this.offset);hs.setStyles(this.td[4],{width:c.w>=0?c.w+"px":0,height:c.h>=0?c.h+"px":0});if(this.hasAlphaImageLoader){this.td[3].style.height=this.td[5].style.height=this.td[4].style.height}},destroy:function(a){if(a){this.table.style.visibility="hidden"}else{hs.discardElement(this.table)}}};hs.Expander=function(l,f,b,m){if(document.readyState&&hs.ie&&!hs.isDomReady){hs.onDomReady=function(){new hs.Expander(l,f,b,m)};return}this.a=l;this.custom=b;this.contentType=m||"image";this.isHtml=(m=="html");this.isImage=!this.isHtml;hs.continuePreloading=false;this.overlays=[];this.last=hs.last;hs.last=null;hs.init();var n=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]}if(!this.src){this.src=l.href}var d=(f&&f.thumbnailId)?hs.$(f.thumbnailId):l;d=this.thumb=d.getElementsByTagName("img")[0]||d;this.thumbsUserSetId=d.id||l.id;if(!hs.fireEvent(this,"onInit")){return true}for(var g=0;g<hs.expanders.length;g++){if(hs.expanders[g]&&hs.expanders[g].a==l&&!(this.last&&this.transitions[1]=="crossfade")){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[n-1]){hs.expanders[n-1].close()}if(typeof hs.focusKey!="undefined"&&hs.expanders[hs.focusKey]){hs.expanders[hs.focusKey].close()}}var j=hs.getPosition(d);var k=this.x={};k.t=d.width?parseInt(d.width):d.offsetWidth;k.tpos=j.x;k.tb=(d.offsetWidth-k.t)/2;var h=this.y={};h.t=d.height?parseInt(d.height):d.offsetHeight;h.tpos=j.y;h.tb=(d.offsetHeight-h.t)/2;k.p1=k.p2=h.p1=h.p2=0;if(/area/i.test(d.tagName)){this.getImageMapAreaCorrection(d)}this.wrapper=hs.createElement("div",{id:"highslide-wrapper-"+this.key,className:this.wrapperClassName},{visibility:"hidden",position:"absolute",zIndex:hs.zIndexCounter++},null,true);this.wrapper.onmouseover=this.wrapper.onmouseout=hs.wrapperMouseHandler;if(this.contentType=="image"&&this.outlineWhileAnimating==2){this.outlineWhileAnimating=0}if(!this.outlineType||(this.last&&this.isImage&&this.transitions[1]=="crossfade")){this[this.contentType+"Create"]()}else{if(hs.pendingOutlines[this.outlineType]){this.connectOutline();this[this.contentType+"Create"]()}else{this.showLoading();var 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=this.outline=hs.pendingOutlines[this.outlineType];b.table.style.zIndex=this.wrapper.style.zIndex;hs.pendingOutlines[this.outlineType]=null},showLoading:function(){if(this.onLoadStarted||this.loading){return}this.loading=hs.loading;var c=this;this.loading.onclick=function(){c.cancelLoading()};if(!hs.fireEvent(this,"onShowLoading")){return}var c=this,a=(this.x.tpos+this.x.tb+(this.x.t-this.loading.offsetWidth)/2)+"px",b=(this.y.tpos+(this.y.t-this.loading.offsetHeight)/2)+"px";if(!d&&this.last&&this.transitions[1]=="crossfade"){var d=this.last}if(d){a=(d.x.min+d.x.cb+d.x.p1+(d.x.span-this.loading.offsetWidth)/2)+"px";b=(d.y.min+d.y.cb+d.y.p1+(d.y.span-this.loading.offsetHeight)/2)+"px";this.loading.style.zIndex=hs.zIndexCounter++}setTimeout(function(){if(c.loading){hs.setStyles(c.loading,{left:a,top:b})}},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";hs.setStyles(a,{visibility:"hidden",display:"block",position:"absolute",maxWidth:"9999px",zIndex:3});a.title=hs.lang.restoreTitle;if(hs.safari){hs.container.appendChild(a)}if(hs.ie&&hs.flushImgSize){a.src=null}a.src=this.src;this.showLoading()},htmlCreate:function(){if(!hs.fireEvent(this,"onBeforeGetContent")){return}this.content=hs.getCacheBinding(this.a);if(!this.content){this.content=hs.getNode(this.contentId)}if(!this.content){this.content=hs.getSelfRendered()}this.getInline(["maincontent"]);if(this.maincontent){var a=hs.getElementByClass(this.content,"div","highslide-body");if(a){a.appendChild(this.maincontent)}this.maincontent.style.display="block"}hs.fireEvent(this,"onAfterGetContent");this.innerContent=this.content;if(/(swf|iframe)/.test(this.objectType)){this.setObjContainerSize(this.innerContent)}hs.container.appendChild(this.wrapper);hs.setStyles(this.wrapper,{position:"static",padding:"0 "+hs.marginRight+"px 0 "+hs.marginLeft+"px"});this.content=hs.createElement("div",{className:"highslide-html"},{position:"relative",zIndex:3,overflow:"hidden"},this.wrapper);this.mediumContent=hs.createElement("div",null,null,this.content,1);this.mediumContent.appendChild(this.innerContent);hs.setStyles(this.innerContent,{position:"relative",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"}if(this.objectType=="ajax"&&!hs.getCacheBinding(this.a)){this.showLoading();var b=new hs.Ajax(this.a,this.innerContent);var c=this;b.onLoad=function(){if(hs.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 m=this.x,l=this.y;if(this.loading){hs.setStyles(this.loading,{top:"-9999px"});this.loading=null;hs.fireEvent(this,"onHideLoading")}this.marginBottom=hs.marginBottom;if(this.isImage){m.full=this.content.width;l.full=this.content.height;hs.setStyles(this.content,{width:this.x.t+"px",height:this.y.t+"px"})}else{if(this.htmlGetSize){this.htmlGetSize()}}this.wrapper.appendChild(this.content);hs.setStyles(this.wrapper,{left:this.x.tpos+"px",top:this.y.tpos+"px"});hs.container.appendChild(this.wrapper);m.cb=(this.content.offsetWidth-this.x.t)/2;l.cb=(this.content.offsetHeight-this.y.t)/2;var b=hs.marginRight+2*m.cb;this.marginBottom+=2*l.cb;this.initSlideshow();this.getOverlays();var j=m.full/l.full;var a=this.allowSizeReduction?this.minWidth:m.full;var n=this.allowSizeReduction?this.minHeight:l.full;var c={x:"auto",y:"auto"};if(this.align=="center"){c.x="center";c.y="center"}else{if(this.anchor.match(/^top/)){c.y=null}if(this.anchor.match(/right$/)){c.x="max"}if(this.anchor.match(/^bottom/)){c.y="max"}if(this.anchor.match(/left$/)){c.x=null}}var h=hs.getPageSize();m.min=m.tpos-m.cb+m.tb;m.span=Math.min(m.full,this.maxWidth||m.full);m.minSpan=Math.min(m.full,a);m.justify=c.x;m.target=this.targetX;m.marginMin=hs.marginLeft;m.marginMax=b;m.scroll=h.scrollLeft;m.clientSpan=h.width;this.justify(m);l.min=l.tpos-l.cb+l.tb;l.span=Math.min(l.full,this.maxHeight||l.full);l.minSpan=Math.min(l.full,n);l.justify=c.y;l.target=this.targetY;l.marginMin=hs.marginTop;l.marginMax=this.marginBottom;l.scroll=h.scrollTop;l.clientSpan=h.height;this.justify(l);if(this.isHtml){this.htmlSizeOperations()}if(this.overlayBox){this.sizeOverlayBox(0,1)}if(this.allowSizeReduction){if(this.isImage){this.correctRatio(j)}else{this.fitOverlayBox()}var o=this.slideshow;if(o&&this.last&&o.fixedControls&&o.useControls){var k=o.overlayOptions.position||"";for(var f in hs.oPos){for(var d=0;d<5;d++){if(k.match(hs.oPos[f][d])){this[f].min=this.last[f].min+(this.last[f].p1-this[f].p1)+(this.last[f].span-this[f].span)*[0,0,0.5,1,1][d]}}}}if(this.isImage&&this.x.full>this.x.span){this.createFullExpand();if(this.overlays.length==1){this.sizeOverlayBox()}}}this.show()}catch(g){window.location.href=this.src}},setObjContainerSize:function(a,d){var b=hs.getElementByClass(a,"DIV","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=hs.getElementByClass(this.innerContent,"DIV","highslide-body");if(this.objectType=="iframe"){this.showLoading();var g=hs.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||(hs.getPageSize()).height-c-hs.marginTop-hs.marginBottom,e=this.objectLoadTime=="before"?' onload="if (hs.expanders['+this.key+"]) hs.expanders["+this.key+'].contentLoaded()" ':"";this.body.innerHTML+='<iframe name="hs'+(new Date()).getTime()+'" frameborder="0" key="'+this.key+'"  allowtransparency="true" 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(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){var a;try{var d=this.iframe.contentDocument||this.iframe.contentWindow.document;var b=d.createElement("div");b.style.clear="both";d.body.appendChild(b);a=b.offsetTop;if(hs.ie){a+=parseInt(d.body.currentStyle.marginTop)+parseInt(d.body.currentStyle.marginBottom)-1}}catch(c){a=300}this.iframe.style.height=this.body.style.height=a+"px"}this.innerContent.appendChild(hs.clearing);if(!this.x.full){this.x.full=this.innerContent.offsetWidth}this.y.full=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)}hs.setStyles(this.wrapper,{position:"absolute",padding:"0"});hs.setStyles(this.content,{width:this.x.t+"px",height:this.y.t+"px"})},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.objectType=="swf"&&this.objectLoadTime=="before"){this.writeExtendedContent()}if(this.x.span<this.x.full&&!this.allowWidthReduction){this.x.span=this.x.full}if(this.y.span<this.y.full&&!this.allowHeightReduction){this.y.span=this.y.full}this.scrollerDiv=this.innerContent;hs.setStyles(this.mediumContent,{width:this.x.span+"px",position:"relative",left:(this.x.min-this.x.tpos)+"px",top:(this.y.min-this.y.tpos)+"px"});hs.setStyles(this.innerContent,{border:"none",width:"auto",height:"auto"});var e=hs.getElementByClass(this.innerContent,"DIV","highslide-body");if(e&&!/(iframe|swf)/.test(this.objectType)){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:"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.span<this.mediumContent.offsetHeight){this.scrollerDiv=this.content}if(this.scrollerDiv==this.content&&!this.allowWidthReduction&&!/(iframe|swf)/.test(this.objectType)){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)}},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,e=f==this.x?"x":"y";if(f.target&&f.target.match(/ /)){g=f.target.split(" ");f.target=g[0]}if(f.target&&hs.$(f.target)){f.min=hs.getPosition(hs.$(f.target))[e];if(g&&g[1]&&g[1].match(/^[-]?[0-9]+px$/)){f.min+=parseInt(g[1])}}else{if(f.justify=="auto"||f.justify=="center"){var d=false;var a=true;if(f.justify=="center"){f.min=Math.round(f.scroll+(f.clientSpan-f.span-f.marginMax-f.p1-f.p2)/2)}else{f.min=Math.round(f.min-((f.span+f.p1+f.p2-f.t)/2))}if(f.min<f.scroll+f.marginMin){f.min=f.scroll+f.marginMin;d=true}if(!b&&f.span<f.minSpan){f.span=f.minSpan;a=false}if(f.min+f.span+f.p1+f.p2>f.scroll+f.clientSpan-f.marginMax){if(!b&&d&&a){f.span=f.clientSpan-f.marginMin-f.marginMax}else{if(f.span+f.p1+f.p2<f.clientSpan-f.marginMin-f.marginMax){f.min=f.scroll+f.clientSpan-f.span-f.marginMin-f.marginMax-f.p1-f.p2}else{f.min=f.scroll+f.marginMin;if(!b&&a){f.span=f.clientSpan-f.marginMin-f.marginMax}}}}if(!b&&f.span<f.minSpan){f.span=f.minSpan;a=false}}else{if(f.justify=="max"){f.min=Math.floor(f.min-f.span+f.t)}}}if(f.min<f.marginMin){var c=f.min;f.min=f.marginMin;if(a&&!b){f.span=f.span-(f.min-c)}}},correctRatio:function(b){var a=this.x,e=this.y;var d=false;if(a.span/e.span>b){a.span=e.span*b;if(a.span<a.minSpan){a.span=a.minSpan;e.span=a.span/b}d=true}else{if(a.span/e.span<b){var c=e.span;e.span=a.span/b;d=true}}this.fitOverlayBox(b);if(d){a.min=a.tpos-a.cb+a.tb;a.minSpan=a.span;this.justify(a,true);e.min=e.tpos-e.cb+e.tb;e.minSpan=e.span;this.justify(e,true);if(this.overlayBox){this.sizeOverlayBox()}}},fitOverlayBox:function(b){var a=this.x,c=this.y;if(this.overlayBox){while(c.span>this.minHeight&&a.span>this.minWidth&&c.marginMin+c.p1+c.span+c.p2+c.marginMax>c.clientSpan){c.span-=10;if(b){a.span=c.span*b}this.sizeOverlayBox(0,1)}}},reflow:function(){hs.setStyles(this.scrollerDiv,{height:"auto",width:"auto"});this.x.span=this.innerContent.offsetWidth;this.y.span=this.innerContent.offsetHeight;var a={width:this.x.span+"px",height:this.y.span+"px"};hs.setStyles(this.content,a);if(this.outline){this.outline.setPosition(this)}},show:function(){var a={x:this.x.min-20,y:this.y.min-20,w:this.x.span+40,h:this.y.span+40};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)}hs.fireEvent(this,"onBeforeExpand");this.changeSize(1,{xmin:this.x.tpos+this.x.tb-this.x.cb,ymin:this.y.tpos+this.y.tb-this.y.cb,xspan:this.x.t,yspan:this.y.t,xp1:0,xp2:0,yp1:0,yp2:0,o:hs.outlineStartOffset},{xmin:this.x.min,ymin:this.y.min,xspan:this.x.span,yspan:this.y.span,xp1:this.x.p1,yp1:this.y.p1,xp2:this.x.p2,yp2:this.y.p2,o:this.outline?this.outline.offset:0},hs.expandDuration,hs.expandSteps)},changeSize:function(e,k,l,a,j){var n=this.transitions,f=e?(this.last?this.last.a:null):hs.upcoming,m=(n[1]&&f&&hs.getParam(f,"transitions")[1]==n[1])?n[1]:n[0];if(e&&this.isHtml&&n[1]=="crossfade"){m=n[1]="fade"}if(this[m]&&m!="expand"){this[m](e,k,l);return}if(e){hs.setStyles(this.wrapper,{opacity:1})}if(this.outline&&!this.outlineWhileAnimating){if(e){this.outline.setPosition(this)}else{this.outline.destroy((this.isHtml&&this.preserveContent))}}if(!e&&this.overlayBox){if(this.slideshow){var h=this.slideshow.controls;if(hs.getExpander(h)==this){h.parentNode.removeChild(h)}}if(this.isHtml&&this.preserveContent){this.overlayBox.style.top="-9999px";hs.container.appendChild(this.overlayBox)}else{hs.discardElement(this.overlayBox)}}if(this.fadeInOut){k.op=e?0:1;l.op=e}var m,b=this,g=Math[this.easing]||Math.easeInQuad;if(!e){g=Math[this.easingClose]||g}for(var d=1;d<=j;d++){m=Math.round(d*(a/j));(function(){var p=d,o={};for(var c in k){o[c]=g(m,k[c],l[c]-k[c],a);if(!/^op$/.test(c)){o[c]=Math.round(o[c])}}setTimeout(function(){if(e&&p==1){b.content.style.visibility="visible";b.a.className+=" highslide-active-anchor"}b.setSize(o)},m)})()}if(e){setTimeout(function(){if(b.outline){b.outline.table.style.visibility="visible"}},m);setTimeout(function(){b.afterExpand()},m+50)}else{setTimeout(function(){b.afterClose()},m)}},setSize:function(c){try{if(c.op){hs.setStyles(this.wrapper,{opacity:c.op})}hs.setStyles(this.wrapper,{width:(c.xspan+c.xp1+c.xp2+2*this.x.cb)+"px",height:(c.yspan+c.yp1+c.yp2+2*this.y.cb)+"px",left:c.xmin+"px",top:c.ymin+"px"});hs.setStyles(this.content,{top:c.yp1+"px",left:c.xp1+"px",width:c.xspan+"px",height:c.yspan+"px"});if(this.isHtml){hs.setStyles(this.mediumContent,{left:(this.x.min-c.xmin+this.x.p1-c.xp1)+"px",top:(this.y.min-c.ymin+this.y.p1-c.yp1)+"px"});this.innerContent.style.visibility="visible"}if(this.outline&&this.outlineWhileAnimating){var b=this.outline.offset-c.o;this.outline.setPosition(this,{x:c.xmin+b,y:c.ymin+b,w:c.xspan+c.xp1+c.xp2+-2*b,h:c.yspan+c.yp1+c.yp2+-2*b},1)}this.wrapper.style.visibility="visible"}catch(a){window.location.href=this.src}},fade:function(a,g,f){this.outlineWhileAnimating=false;var e=this,d=a?250:0;if(a){hs.setStyles(this.wrapper,{opacity:0});this.setSize(f);this.content.style.visibility="visible";hs.fade(this.wrapper,0,1)}if(this.outline){this.outline.table.style.zIndex=this.wrapper.style.zIndex;var b=a||-1;for(var c=g.o;b*c<=b*f.o;c+=b,d+=25){(function(){var h=a?f.o-c:g.o-c;setTimeout(function(){e.outline.setPosition(e,{x:(e.x.min+h),y:(e.y.min+h),w:(e.x.span-2*h+e.x.p1+e.x.p2),h:(e.y.span-2*h+e.y.p1+e.y.p2)},1)},d)})()}}if(a){setTimeout(function(){e.afterExpand()},d+50)}else{setTimeout(function(){if(e.outline){e.outline.destroy(e.preserveContent)}hs.fade(e.wrapper,1,0);setTimeout(function(){e.afterClose()},250)},d)}},crossfade:function(c,k,l){if(!c){return}var a=this,h=parseInt(hs.transitionDuration/25),m=this.last;hs.removeEventListener(document,"mousemove",hs.dragHandler);hs.setStyles(this.content,{width:l.xspan+"px",height:l.yspan+"px"});this.outline=this.last.outline;this.last.outline=null;this.fadeBox=hs.createElement("div",{className:"highslide-image"},{position:"absolute",zIndex:4,overflow:"hidden",display:"none"});var g={oldImg:m,newImg:this};for(var j in g){this[j]=g[j].content.cloneNode(1);hs.setStyles(this[j],{position:"absolute",border:0,visibility:"visible"});this.fadeBox.appendChild(this[j])}this.wrapper.appendChild(this.fadeBox);k={xmin:m.x.min,xspan:m.x.span,xp1:m.x.p1,xp2:m.x.p2,ymin:m.y.min,yspan:m.y.span,yp1:m.y.p1,yp2:m.y.p2,o:1/h};l.yspan=this.y.span;l.o=1;var n,f=Math.easeInOutQuad;this.crossfadeStep(k);function e(){if(a.overlayBox){a.wrapper.appendChild(a.overlayBox);for(var p=0;p<a.last.overlays.length;p++){var o=hs.$("hsId"+a.last.overlays[p]);if(o.reuse===a.key){a.overlayBox.appendChild(o)}else{hs.fade(o,o.opacity,0)}}}a.fadeBox.style.display="";a.last.content.style.display="none"}if(/rv:1\.[0-8].+Gecko/.test(navigator.userAgent)){setTimeout(e,0)}else{e()}if(hs.safari){var d=navigator.userAgent.match(/Safari\/([0-9]{3})/);if(d&&parseInt(d[1])<525){this.wrapper.style.visibility="visible"}}for(var b=1;b<=h;b++){n=Math.round(b*(hs.transitionDuration/h));(function(){var p={},q=b;for(var o in k){var r=f(n,k[o],l[o]-k[o],hs.transitionDuration);p[o]=(o!="o")?Math.round(r):r}setTimeout(function(){a.crossfadeStep(p)},n)})()}setTimeout(function(){a.crossfadeEnd()},n+100)},crossfadeStep:function(a){try{if(this.outline){this.outline.setPosition(this,{x:a.xmin,y:a.ymin,w:a.xspan+a.xp1+a.xp2,h:a.yspan+a.yp1+a.yp2},1)}this.last.wrapper.style.clip="rect("+(a.ymin-this.last.y.min)+"px, "+(a.xspan+a.xp1+a.xp2+2*this.last.x.cb+a.xmin-this.last.x.min)+"px, "+(a.yspan+a.yp1+a.yp2+2*this.last.y.cb+a.ymin-this.last.y.min)+"px, "+(a.xmin-this.last.x.min)+"px)";hs.setStyles(this.content,{top:a.yp1+"px",left:a.xp1+"px",marginTop:(this.y.min-a.ymin)+"px",marginLeft:(this.x.min-a.xmin)+"px"});hs.setStyles(this.wrapper,{top:a.ymin+"px",left:a.xmin+"px",width:(a.xp1+a.xp2+a.xspan+2*this.x.cb)+"px",height:(a.yp1+a.yp2+a.yspan+2*this.y.cb)+"px"});hs.setStyles(this.fadeBox,{width:a.xspan+"px",height:a.yspan+"px",left:a.xp1+"px",top:a.yp1+"px",visibility:"visible"});hs.setStyles(this.oldImg,{top:(this.last.y.min-a.ymin+this.last.y.p1-a.yp1)+"px",left:(this.last.x.min-a.xmin+this.last.x.p1-a.xp1)+"px"});hs.setStyles(this.newImg,{opacity:a.o,top:(this.y.min-a.ymin+this.y.p1-a.yp1)+"px",left:(this.x.min-a.xmin+this.x.p1-a.xp1)+"px"});hs.setStyles(this.overlayBox,{width:a.xspan+"px",height:a.yspan+"px",left:(a.xp1+this.x.cb)+"px",top:(a.yp1+this.y.cb)+"px"})}catch(b){}},crossfadeEnd:function(){this.wrapper.style.background=this.wrapperBG||"";this.wrapper.style.visibility=this.content.style.visibility="visible";this.fadeBox.style.display="none";this.a.className+=" highslide-active-anchor";this.afterExpand();this.last.afterClose()},reuseOverlay:function(d,c){if(!this.last){return false}for(var b=0;b<this.last.overlays.length;b++){var a=hs.$("hsId"+this.last.overlays[b]);if(a&&a.hsId==d.hsId){this.genOverlayBox();a.reuse=this.key;hs.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.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"}}}if(this.dimmingOpacity){hs.dim(this)}if(hs.upcoming&&hs.upcoming==this.a){hs.upcoming=null}this.prepareNextOutline();if(this.overlayBox){this.showOverlays()}hs.fireEvent(this,"onAfterExpand")},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=this.getAdjacentAnchor(1);if(b&&b.onclick.toString().match(/hs\.expand/)){var a=hs.createElement("img",{src:hs.getSrc(b)})}},getAdjacentAnchor:function(c){var b=this.getAnchorIndex(),a=hs.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=hs.anchors.groups[this.slideshowGroup||"none"];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=hs.anchors.groups[this.slideshowGroup||"none"];var b=hs.lang.number.replace("%1",this.getAnchorIndex()+1).replace("%2",a.length);this[this.numberPosition].innerHTML='<div class="highslide-number">'+b+"</div>"+this[this.numberPosition].innerHTML}},initSlideshow:function(){if(this.slideshow){return}if(!this.last){for(var b=0;b<hs.slideshows.length;b++){var a=hs.slideshows[b],c=a.slideshowGroup;if(c===this.slideshowGroup){this.slideshow=new hs.Slideshow(a)}}}else{this.slideshow=this.last.slideshow}var a=this.slideshow;if(!a){return}var e=a.exp=this;a.checkFirstAndLast();if(a.useControls){var d=a.overlayOptions||{};d.overlayId=a.controls;d.hsId="controls";this.createOverlay(d)}if(!this.last&&this.autoplay){a.play(true)}if(a.autoplay){a.autoplay=setTimeout(function(){hs.next(e.key)},(a.interval||500))}},cancelLoading:function(){hs.expanders[this.key]=null;if(hs.upcoming==this.a){hs.upcoming=null}hs.undim();if(this.loading){hs.loading.style.left="-9999px"}hs.fireEvent(this,"onHideLoading")},writeCredits:function(){if(this.credits){return}this.credits=hs.createElement("a",{href:hs.creditsHref,className:"highslide-credits",innerHTML:hs.lang.creditsText,title:hs.lang.creditsTitle});this.createOverlay({overlayId:this.credits,position:"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"&&!hs.fireEvent(this,"onBeforeGetCaption")){return}else{if(type=="heading"&&!hs.fireEvent(this,"onBeforeGetHeading")){return}}if(!this[type+"Id"]&&this.thumbsUserSetId){this[type+"Id"]=type+"-for-"+this.thumbsUserSetId}if(this[type+"Id"]){this[type]=hs.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){var next=this.a.nextSibling;while(next&&!hs.isHsAnchor(next)){if((new RegExp("highslide-"+type)).test(next.className||null)){this[type]=next.cloneNode(1);break}next=next.nextSibling}}if(!this[type]&&!s&&this.numberPosition==type){s="\n"}if(!this[type]&&s){this[type]=hs.createElement("div",{className:"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)}}},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.getPosition(e[f]);l.w=e[f].offsetWidth;l.h=e[f].offsetHeight;if(!this.dimmingOpacity){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.isImage){b.content.style.cursor=hs.ie?"hand":"pointer";b.content.title=hs.lang.focusTitle}hs.fireEvent(this,"onBlur")}}if(this.outline){this.outline.table.style.zIndex=this.wrapper.style.zIndex}this.content.className="highslide-"+this.contentType;if(this.isImage){this.content.title=hs.lang.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,window.opera?"keypress":"keydown",hs.keyHandler);hs.fireEvent(this,"onFocus")},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.outline){this.outline.setPosition(this)}},resize:function(g){var a,c,f=g.width/g.height;a=Math.max(g.width+g.dX,Math.min(this.minWidth,this.x.full));if(this.isImage&&Math.abs(a-this.x.full)<12){a=this.x.full}c=this.isHtml?g.height+g.dY:a/f;if(c<Math.min(this.minHeight,this.y.full)){c=Math.min(this.minHeight,this.y.full);if(this.isImage){a=c*f}}this.x.span=a;this.y.span=c;if(this.isHtml){var j=this.scrollerDiv;if(typeof this.wDiff=="undefined"){this.wDiff=this.innerContent.offsetWidth-j.offsetWidth;this.hDiff=this.innerContent.offsetHeight-j.offsetHeight}hs.setStyles(j,{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)}if(this.isHtml){this.mediumContent.style.width="auto";if(this.body){hs.setStyles(this.body,{width:"auto",height:"auto"})}}if(this.overlayBox){this.sizeOverlayBox(true)}hs.setStyles(this.wrapper,{width:(this.x.p1+this.x.p2+2*this.x.cb+this.x.span)+"px",height:(this.y.p1+this.y.p2+2*this.y.cb+this.y.span)+"px"});if(this.slideshow&&this.isImage){if(a==this.x.full){this.slideshow.disable("full-expand")}else{this.slideshow.enable("full-expand")}}if(this.outline){this.outline.setPosition(this)}},close:function(){if(this.isClosing||!this.isExpanded||(hs.upcoming&&this.transitions[1]=="crossfade")){return}this.isClosing=true;if(!hs.fireEvent(this,"onBeforeClose")){return}if(this.slideshow&&!hs.upcoming){this.slideshow.pause()}hs.removeEventListener(document,window.opera?"keypress":"keydown",hs.keyHandler);try{if(this.isHtml){this.htmlPrepareClose()}this.content.style.cursor="default";this.changeSize(0,{xmin:this.x.min,ymin:this.y.min,xspan:this.x.span,yspan:parseInt(this.content.style.height),xp1:this.x.p1,yp1:this.y.p1,xp2:this.x.p2,yp2:this.y.p2,o:this.outline?this.outline.offset:0},{xmin:this.x.tpos-this.x.cb+this.x.tb,ymin:this.y.tpos-this.y.cb+this.y.tb,xspan:this.x.t,yspan:this.y.t,xp1:0,yp1:0,xp2:0,yp2:0,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.objectType=="swf"){try{hs.$(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(hs.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";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(b){}}var d=hs.zIndexCounter++,a={display:"",zIndex:d};hs.setStyles(this.wrapper,a);this.isClosing=false;var c=this.outline||0;if(c){if(!this.outlineWhileAnimating){a.visibility="hidden"}hs.setStyles(c.table,a)}this.show()},createOverlay:function(d){var c=d.overlayId;if(typeof c=="string"){c=hs.getNode(c)}if(!c||typeof c=="string"){return}if(!hs.fireEvent(this,"onCreateOverlay",{overlay:c})){return}c.style.display="block";d.hsId=d.hsId||d.overlayId;if(this.transitions[1]=="crossfade"&&this.reuseOverlay(d,c)){return}this.genOverlayBox();var b=d.width&&/^[0-9]+(px|%)$/.test(d.width)?d.width:"auto";if(/^(left|right)panel$/.test(d.position)&&!/^[0-9]+px$/.test(d.width)){b="200px"}var a=hs.createElement("div",{id:"hsId"+hs.idCounter++,hsId:d.hsId},{position:"absolute",visibility:"hidden",width:b},this.overlayBox,true);a.appendChild(c);hs.setAttribs(a,{hideOnMouseOut:d.hideOnMouseOut,opacity:d.opacity||1,hsPos:d.position,fade:d.fade});if(this.gotOverlays){this.positionOverlay(a);if(!a.hideOnMouseOut||this.mouseIsOver){hs.fade(a,0,a.opacity)}}hs.push(this.overlays,hs.idCounter-1)},positionOverlay:function(a){var b=a.hsPos||"middle center";if(/left$/.test(b)){a.style.left=0}if(/center$/.test(b)){hs.setStyles(a,{left:"50%",marginLeft:"-"+Math.round(a.offsetWidth/2)+"px"})}if(/right$/.test(b)){a.style.right=0}if(/^leftpanel$/.test(b)){hs.setStyles(a,{right:"100%",marginRight:this.x.cb+"px",top:-this.y.cb+"px",bottom:-this.y.cb+"px",overflow:"auto"});this.x.p1=a.offsetWidth}else{if(/^rightpanel$/.test(b)){hs.setStyles(a,{left:"100%",marginLeft:this.x.cb+"px",top:-this.y.cb+"px",bottom:-this.y.cb+"px",overflow:"auto"});this.x.p2=a.offsetWidth}}if(/^top/.test(b)){a.style.top=0}if(/^middle/.test(b)){hs.setStyles(a,{top:"50%",marginTop:"-"+Math.round(a.offsetHeight/2)+"px"})}if(/^bottom/.test(b)){a.style.bottom=0}if(/^above$/.test(b)){hs.setStyles(a,{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=a.offsetHeight}else{if(/^below$/.test(b)){hs.setStyles(a,{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=a.offsetHeight;a.style.position="absolute"}}},getOverlays:function(){this.getInline(["heading","caption"],true);this.getNumber();if(this.caption){hs.fireEvent(this,"onAfterGetCaption")}if(this.heading){hs.fireEvent(this,"onAfterGetHeading")}if(this.heading&&this.dragByHeading){this.heading.className+=" highslide-move"}if(hs.showCredits){this.writeCredits()}for(var b=0;b<hs.overlays.length;b++){var e=hs.overlays[b],f=e.thumbnailId,c=e.slideshowGroup;if((!f&&!c)||(f&&f==this.thumbsUserSetId)||(c&&c===this.slideshowGroup)){if(this.isImage||(this.isHtml&&e.useOnHtml)){this.createOverlay(e)}}}var d=[];for(var b=0;b<this.overlays.length;b++){var e=hs.$("hsId"+this.overlays[b]);if(/panel$/.test(e.hsPos)){this.positionOverlay(e)}else{hs.push(d,e)}}var a=this.x.p1+this.x.full+this.x.p2;if(hs.padToMinWidth&&a<hs.minWidth){this.x.p1+=(hs.minWidth-a)/2;this.x.p2+=(hs.minWidth-a)/2}for(var b=0;b<d.length;b++){this.positionOverlay(d[b])}this.gotOverlays=true},genOverlayBox:function(){if(!this.overlayBox){this.overlayBox=hs.createElement("div",null,{position:"absolute",width:this.x.span?this.x.span+"px":this.x.full+"px",height:0,visibility:"hidden",overflow:"hidden",zIndex:hs.ie?4:null},hs.container,true)}},sizeOverlayBox:function(c,a){hs.setStyles(this.overlayBox,{width:this.x.span+"px",height:this.y.span+"px"});if(c||a){for(var b=0;b<this.overlays.length;b++){var d=hs.$("hsId"+this.overlays[b]);if(d&&/^(above|below)$/.test(d.hsPos)){if(hs.ie&&(hs.ieVersion()<=6||document.compatMode=="BackCompat")){d.style.width=(this.overlayBox.offsetWidth+2*this.x.cb-this.x.p1-this.x.p2)+"px"}this.y[d.hsPos=="above"?"p1":"p2"]=d.offsetHeight}}}if(c){hs.setStyles(this.content,{top:this.y.p1+"px"});hs.setStyles(this.overlayBox,{top:(this.y.p1+this.y.cb)+"px"})}},showOverlays:function(){var a=this.overlayBox,f=hs.getPageSize(),e=hs.mouse.x+f.scrollLeft,d=hs.mouse.y+f.scrollTop;hs.setStyles(a,{top:(this.y.p1+this.y.cb)+"px",left:(this.x.p1+this.x.cb)+"px",overflow:"visible"});if(hs.safari){a.style.visibility="visible"}this.wrapper.appendChild(a);this.mouseIsOver=this.x.min<e&&e<this.x.min+this.x.p1+this.x.span+this.x.p2&&this.y.min<d&&d<this.y.min+this.y.p1+this.y.span+this.y.p2;for(var c=0;c<this.overlays.length;c++){var g=hs.$("hsId"+this.overlays[c]);g.style.zIndex=g.hsId=="controls"?5:4;if(!g.hideOnMouseOut||this.mouseIsOver){hs.fade(g,0,g.opacity)}}},createFullExpand:function(){if(this.slideshow){this.slideshow.enable("full-expand");return}this.fullExpandLabel=hs.createElement("a",{href:"javascript:hs.expanders["+this.key+"].doFullExpand();",title:hs.lang.fullExpandTitle,className:"highslide-full-expand"});if(!hs.fireEvent(this,"onCreateFullExpand")){return}this.createOverlay({overlayId:this.fullExpandLabel,position:hs.fullExpandPosition,hideOnMouseOut:true,opacity:hs.fullExpandOpacity})},doFullExpand:function(){try{if(!hs.fireEvent(this,"onDoFullExpand")){return}if(this.fullExpandLabel){hs.discardElement(this.fullExpandLabel)}else{if(this.slideshow){this.slideshow.disable("full-expand")}}this.focus();this.x.min=parseInt(this.wrapper.style.left)-(this.x.full-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.x.full+"px",height:this.y.full+"px"});this.x.span=this.x.full;this.y.span=this.y.full;if(this.overlayBox){this.sizeOverlayBox(true)}hs.setStyles(this.wrapper,{width:(this.x.p1+2*this.x.cb+this.x.span+this.x.p2)+"px",height:(this.y.p1+2*this.y.cb+this.y.span+this.y.p2)+"px"});if(this.outline){this.outline.setPosition(this)}this.redoShowHide();hs.setDimmerSize(this)}catch(a){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};if(hs.hideSelects){this.showHideElements("SELECT","hidden",a)}if(hs.hideIframes){this.showHideElements("IFRAME","hidden",a)}if(hs.geckoMac){this.showHideElements("*","hidden",a)}},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.outline&&this.outlineWhileAnimating){this.outline.destroy()}hs.discardElement(this.wrapper)}if(hs.mask){hs.mask.style.display="none"}if(this.dimmingOpacity){hs.undim(this.key)}hs.fireEvent(this,"onAfterClose");hs.expanders[this.key]=null;hs.reOrder()}};hs.Ajax=function(b,c,d){this.a=b;this.content=c;this.pre=d};hs.Ajax.prototype={run:function(){if(!this.src){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.init();var a=window.opera||hs.ie6SSL?{src:"about:blank"}:null;this.iframe=hs.createElement("iframe",a,{position:"absolute",left:"-9999px"},hs.container);this.loadHTML()},loadHTML:function(){var b=this.cachedGet||this.xmlHttp.responseText;if(this.pre){hs.cachedGets[this.src]=b}if(!hs.ie||hs.ieVersion()>=5.5){b=b.replace(/\s/g," ").replace(new RegExp("<link[^>]*>","gi"),"").replace(new RegExp("<script[^>]*>.*?<\/script>","gi"),"");if(this.iframe){var d=this.iframe.contentDocument;if(!d&&this.iframe.contentWindow){d=this.iframe.contentWindow.document}if(!d){var f=this;setTimeout(function(){f.loadHTML()},25);return}d.open();d.write(b);d.close();try{b=d.getElementById(this.id).innerHTML}catch(c){try{b=this.iframe.document.getElementById(this.id).innerHTML}catch(c){}}}else{b=b.replace(new RegExp("^.*?<body[^>]*>(.*?)</body>.*?$","i"),"$1")}}hs.getElementByClass(this.content,"DIV","highslide-body").innerHTML=b;this.onLoad();for(var a in this){this[a]=null}}};hs.Slideshow=function(b){hs.updateAnchors();for(var a in b){this[a]=b[a]}if(this.useControls){this.getControls()}};hs.Slideshow.prototype={getControls:function(){this.controls=hs.createElement("div",{innerHTML:hs.replaceLang(hs.skin.controls)},null,hs.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]]=hs.getElementByClass(this.controls,"li","highslide-"+b[a]);this.enable(b[a])}this.btn.pause.style.display="none";this.disable("full-expand")},checkFirstAndLast:function(){if(this.repeat){return}var b=this.exp.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==hs.anchors.groups[this.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){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){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){hs.next(this.exp.key)}},pause:function(){if(this.btn){this.btn.pause.style.display="none";this.btn.play.style.display=""}clearTimeout(this.autoplay);this.autoplay=null},previous:function(){this.pause();hs.previous(this.btn.previous)},next:function(){this.pause();hs.next(this.btn.next)},move:function(){},"full-expand":function(){hs.getExpander().doFullExpand()},close:function(){hs.close(this.btn.close)}};if(document.readyState&&hs.ie){var src=(window.location.protocol=="https:")?"://0":"javascript:void(0)";document.write('<script type="text/javascript" defer="defer" src="'+src+'" onreadystatechange="if (this.readyState == \'complete\') hs.domReady();"><\/script>')}hs.langDefaults=hs.lang;var HsExpander=hs.Expander;hs.addEventListener(document,"mousemove",function(a){hs.mouse={x:a.clientX,y:a.clientY}});hs.addEventListener(document,"mousedown",hs.mouseClickHandler);hs.addEventListener(document,"mouseup",hs.mouseClickHandler);hs.addEventListener(window,"load",hs.preloadImages);hs.addEventListener(window,"load",hs.preloadAjax);hs.addEventListener(window,"load",function(){hs.pageLoaded=true});hs.setClickEvents();function opacity(f,d,a,b){var c=Math.round(b/100);var e=0;if(d>a){for(i=d;i>=a;i--){setTimeout("changeOpac("+i+",'"+f+"')",(e*c));e++}}else{if(d<a){for(i=d;i<=a;i++){setTimeout("changeOpac("+i+",'"+f+"')",(e*c));e++}}}}function changeOpac(b,c){var a=document.getElementById(c).style;a.opacity=(b/100);a.MozOpacity=(b/100);a.KhtmlOpacity=(b/100);a.filter="alpha(opacity="+b+")"}function shiftOpacity(b,a){if(document.getElementById(b).style.opacity==0){opacity(b,0,100,a)}else{opacity(b,100,0,a)}}function blendimage(f,a,e,b){var c=Math.round(b/100);var d=0;document.getElementById(f).style.backgroundImage="url("+document.getElementById(a).src+")";changeOpac(0,a);document.getElementById(a).src=e;for(i=0;i<=100;i++){setTimeout("changeOpac("+i+",'"+a+"')",(d*c));d++}}function currentOpac(d,a,c){var b=100;if(document.getElementById(d).style.opacity<100){b=document.getElementById(d).style.opacity*100}opacity(d,b,a,c)}hs.cacheAjax=false;hs.preserveContent=false;hs.onDimmerClick=function(){return true};hs.transitions=["fade"];hs.graphicsDir="/fw-skin/highslide/graphics/";hs.outlineType="rounded-white";hs.outlineWhileAnimating=false;hs.dimmingOpacity=0.5;hs.onDimmerClick=function(){return false};hs.onDimmerClick=function(){return false};hs.lang={loadingText:"Loading...",moveTitle:"",moveText:"",restoreTitle:"Click to close"};hs.registerOverlay({overlayId:"closebutton",position:"top right",fade:2});function isEmailValid(c){if(c!=""){var f=0;for(var b=0;b<c.length;b++){if(c.charAt(b)=="@"){f++}}if(f>1){return false}if(f==1&&c.charAt(0)!="@"){var e=c.indexOf(".",c.indexOf("@")+2);var d=(c.charAt((e+1))==".")?true:false;if(e==-1||d||c.length<e+2||c.charAt(c.length-1)=="."){return false}}else{return false}}else{return false}return true}function validateEmailForm(){var b="Your form cannot be submitted as provided. Please enter the required information listed below and resubmit<br/>";var c=false;if(isEmailValid(document.getElementById("Email Address").value)==false){b+="- Email Address is required<br/>";c=true}var a=document.getElementById("Friend Email").value;if(isEmailValid(a)==false){b+="- Friend&#39;s Email is required<br/>";c=true}if(document.getElementById("Comments").value==""){b+="- Personal Message is required<br/>";c=true}if(c){document.getElementById("FormErrorArea").style.visibility="visible";document.getElementById("FormErrorArea").style.display="block";document.getElementById("FormErrorArea").innerHTML='<font color="#FF0000">'+b+"</font>";document.getElementById("FormErrorArea").focus();return false}return !c}function clearEmailFields(){document.getElementById("Email Address").value=document.getElementById("Email Address").defaultValue;document.getElementById("Friend Email").value=document.getElementById("Friend Email").defaultValue;document.getElementById("Comments").value=document.getElementById("Comments").defaultValue}function validateTalkToUsForm(){var a="Your form cannot be submitted as provided. Please enter the required information listed below and resubmit<br/>";var b=false;if(document.getElementById("First Name").value==""){a+="- First Name is required<br/>";b=true}if(document.getElementById("Last Name").value==""){a+="- Last Name is required<br/>";b=true}if(document.getElementById("Title").value==""){a+="- Business Title is required<br/>";b=true}if(document.getElementById("Company").value==""){a+="- Company Name is required<br/>";b=true}if(isEmailValid(document.getElementById("Email Address").value)==false){a+="- Email Address is required<br/>";b=true}if(document.getElementById("Country").value=="Select Country"){a+="- Country is required<br/>";b=true}if(b){document.getElementById("FormErrorArea").style.visibility="visible";document.getElementById("FormErrorArea").style.display="block";document.getElementById("FormErrorArea").innerHTML='<font color="#FF0000">'+a+"</font>";document.getElementById("FormErrorArea").focus()}return !b}function clearTalkToUsFields(){document.getElementById("First Name").value=document.getElementById("First Name").defaultValue;document.getElementById("Last Name").value=document.getElementById("Last Name").defaultValue;document.getElementById("Title").value=document.getElementById("Title").defaultValue;document.getElementById("Company").value=document.getElementById("Company").defaultValue;document.getElementById("Telephone").value=document.getElementById("Telephone").defaultValue;document.getElementById("Email Address").value=document.getElementById("Email Address").defaultValue;document.getElementById("State").value="Select a State";document.getElementById("StateOther").value=document.getElementById("StateOther").defaultValue;document.getElementById("Country").value="Select Country";document.getElementById("Comments").value=document.getElementById("Comments").defaultValue}function validateSearchForm(){if(document.getElementById("KeywordField").value==""){alert("Please specify at least one keyword to search fatwire.com");document.getElementById("KeywordField").focus();return false}else{return true}}function clearSearchField(a){if(a.defaultValue==a.value){a.value="";a.style.color="#000000"}}function maybeResetSearchField(a){if(a.value==""){a.value=a.defaultValue;a.style.color="#B7B7B6"}}var arVersion=navigator.appVersion.split("MSIE");var version=parseFloat(arVersion[1]);function fixPNG(g,f,a){if((version>=5.5)&&(version<7)&&(document.body.filters)){var c=(g.id)?"id='"+g.id+"' ":"";var e=(g.className)?"class='"+g.className+"' ":"";var h=(g.title)?"title='"+g.title+"' ":"title='"+g.alt+"' ";var d="display:block;"+g.style.cssText;var b="<span "+c+e+h+' style="width:'+f+"px; height:"+a+"px;"+d+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+g.src+"', sizingMethod='scale');\"></span>";g.outerHTML=b}}function browserSafeHtmlExpand(b,a,c){return a.htmlExpand(b,c)}var Cookie=new Class({Implements:Options,options:{path:false,domain:false,duration:false,secure:false,document:document},initialize:function(b,a){this.key=b;this.setOptions(a)},write:function(b){b=encodeURIComponent(b);if(this.options.domain){b+="; domain="+this.options.domain}if(this.options.path){b+="; path="+this.options.path}if(this.options.duration){var a=new Date();a.setTime(a.getTime()+this.options.duration*24*60*60*1000);b+="; expires="+a.toGMTString()}if(this.options.secure){b+="; secure"}this.options.document.cookie=this.key+"="+b;return this},read:function(){var a=this.options.document.cookie.match("(?:^|;)\\s*"+this.key.escapeRegExp()+"=([^;]*)");return(a)?decodeURIComponent(a[1]):null},dispose:function(){new Cookie(this.key,$merge(this.options,{duration:-1})).write("");return this}});Cookie.write=function(b,c,a){return new Cookie(b,a).write(c)};Cookie.read=function(a){return new Cookie(a).read()};Cookie.dispose=function(b,a){return new Cookie(b,a).dispose()};