
var popUpWindowIDHandler=null;function getBrowserDimensions(){var dimensions={};if(typeof(window.innerWidth)=="number"){dimensions.width=window.innerWidth;dimensions.height=window.innerHeight;}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){dimensions.width=document.documentElement.clientWidth;dimensions.height=document.documentElement.clientHeight;}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){dimensions.width=document.body.clientWidth;dimensions.height=document.body.clientHeight;}
return dimensions;}
function getBrowserScrollPosition(){var position=document.body.scrollTop;if(position==0){if(window.pageYOffset){position=window.pageYOffset;}else{position=(document.body.parentElement)?document.body.parentElement.scrollTop:0;}}
return position;}
function showElement(element){$(element).style.display="inline";}
function hideElement(element){$(element).style.display="none";}
function stopEventBubbling(e){if(!e){var e=window.event;}
e.cancelBubble=true;if(e.stopPropagation){e.stopPropagation()};}
function findPos(obj){var curleft=curtop=0;if(obj.offsetParent){curleft=obj.offsetLeft
curtop=obj.offsetTop
while(obj=obj.offsetParent){curleft+=obj.offsetLeft
curtop+=obj.offsetTop}}
return[curleft,curtop];}
var stickyLocked="no";var currentSticky="";var currentStickyParent="";function stickyShow(parentElement,stickyID,adjX,adjY,multipleWindow){var theSticky=document.getElementById(stickyID);if(!multipleWindow){if(null!=popUpWindowIDHandler){stickyHide(popUpWindowIDHandler);}
popUpWindowIDHandler=stickyID;}
theSticky.style.display="block";adjX=(null==adjX||undefined==adjX)?0:parseInt(adjX);adjY=(null==adjY||undefined==adjY)?10:parseInt(adjY);var thePosn=findPos(parentElement);var posnX=(thePosn[1])+adjX;var posnY=(thePosn[0])+adjY;theSticky.style.top=posnX+"px";theSticky.style.left=posnY+"px";}
function stickyHide(stickyID){var theSticky=document.getElementById(stickyID);theSticky.style.display="none";}
var blinkyLocked="no";function blinkyShow(parentElement,blinkyID){var parentElement=$(parentElement);if(typeof(window.blinkyParentLookup)=="undefined"){window.blinkyParentLookup={};}
window.blinkyParentLookup[blinkyID]=parentElement;parentElement.blinkyHoverTimerID=setTimeout("blinkyReallyShow('"+blinkyID+"')",500);}
function blinkyReallyShow(blinkyID){var blinky=$(blinkyID);if(blinky==null){return;}
var blinkyWidth=Element.getWidth(blinky);var blinkyHeight=Element.getHeight(blinky);var blinkyOwner=window.blinkyParentLookup[blinkyID];var blinkyOwnerPosition=Position.cumulativeOffset(blinkyOwner);var blinkyOwnerTop=blinkyOwnerPosition[1];var blinkyOwnerLeft=blinkyOwnerPosition[0];var blinkyOwnerBottom=blinkyOwnerTop+Element.getHeight(blinkyOwner);var blinkyOwnerRight=blinkyOwnerLeft+Element.getWidth(blinkyOwner);var desiredX=blinkyOwnerRight;var desiredY=blinkyOwnerBottom;var browserDimensions=getBrowserDimensions();var scrollTop=getBrowserScrollPosition();var scrollBottom=scrollTop+browserDimensions.height;var spaceAbove=blinkyOwnerTop-scrollTop;var spaceBelow=scrollBottom-blinkyOwnerBottom;if(blinkyHeight>spaceBelow){if(blinkyHeight<spaceAbove){desiredY=blinkyOwnerTop-blinkyHeight;}else{desiredY=scrollBottom-blinkyHeight;}}
var offsetParent=Position.offsetParent(blinky);var offsetParentPosition=Position.cumulativeOffset(offsetParent);var offsetX=desiredX-offsetParentPosition[0];var offsetY=desiredY-offsetParentPosition[1];blinky.style.left=offsetX+"px";blinky.style.top=offsetY+"px";blinky.style.display="block";}
function blinkyHide(blinkyID){var blinky=$(blinkyID);var blinkyOwner=window.blinkyParentLookup[blinkyID];if(typeof(blinkyOwner.blinkyHoverTimerID)!="undefined"){clearTimeout(blinkyOwner.blinkyHoverTimerID);}
blinky.style.display="none";}
function loadStylesheet(filename,media){if(!(document.getElementById)||!(document.childNodes)||!(document.createElement)||!(document.getElementsByTagName)){return;}
var link=document.createElement("link");link.href=filename;link.rel="stylesheet";link.type="text/css";link.media=media;document.getElementsByTagName('head')[0].appendChild(link);}
function getElementsByClassName(oElm,strTagName,strClassName){var arrElements=(strTagName=="*"&&oElm.all)?oElm.all:oElm.getElementsByTagName(strTagName);var arrReturnElements=new Array();strClassName=strClassName.replace(/\-/g,"\\-");var oRegExp=new RegExp("(^|\\s)"+strClassName+"(\\s|$)");var oElement;for(var i=0;i<arrElements.length;i++){oElement=arrElements[i];if(oRegExp.test(oElement.className)){arrReturnElements.push(oElement);}}
return(arrReturnElements)}
function getPageSize(){if(window.innerHeight&&window.scrollMaxY||window.innerWidth&&window.scrollMaxX){yScroll=window.innerHeight+window.scrollMaxY;xScroll=window.innerWidth+window.scrollMaxX;var deff=document.documentElement;var wff=(deff&&deff.clientWidth)||document.body.clientWidth||window.innerWidth||self.innerWidth;var hff=(deff&&deff.clientHeight)||document.body.clientHeight||window.innerHeight||self.innerHeight;xScroll-=(window.innerWidth-wff);yScroll-=(window.innerHeight-hff);}else if(document.body.scrollHeight>document.body.offsetHeight||document.body.scrollWidth>document.body.offsetWidth){yScroll=document.body.scrollHeight;xScroll=document.body.scrollWidth;}else{yScroll=document.body.offsetHeight;xScroll=document.body.offsetWidth;}
return{"height":yScroll,"width":xScroll};}
var contextImageMapHelp={init:function(){var allAnchors=document.getElementsByTagName("a");var anchorLength=allAnchors.length;for(var i=0;i<anchorLength;i++){if(("hasPopupArrowInLeft"==allAnchors[i].className)||("hasPopupArrowInRight"==allAnchors[i].className)){anchoredTo=allAnchors[i].getAttribute("href");anchoredTo=anchoredTo.substring(anchoredTo.indexOf("#")+1,anchoredTo.length-7)+"StickyOverlay";allAnchors[i].setAttribute("popUpLinked",anchoredTo);allAnchors[i].onclick=function(){if("hasPopupArrowInLeft"==this.className){adjX=-115;adjY=+12;}
else{adjX=-115;adjY=-294;}
anchoredTo=this.getAttribute("popUpLinked")
stickyShow(this,anchoredTo,adjX,adjY,false);return false;}}
else if("closePanel"==allAnchors[i].className){divObj=allAnchors[i].parentNode.parentNode.id;allAnchors[i].setAttribute('href',"#"+divObj);allAnchors[i].onclick=function(){anchoredTo=this.getAttribute("href");anchoredTo=anchoredTo.substring(anchoredTo.indexOf("#")+1,anchoredTo.length);stickyHide(anchoredTo);popUpWindowIDHandler=null;return false;}}}
var allMapArea=document.getElementsByTagName("area");var mapAreaLength=allMapArea.length;for(var i=0;i<mapAreaLength;i++){if(("hasPopupArrowInLeft"==allMapArea[i].className)||("hasPopupArrowInRight"==allMapArea[i].className)){anchoredTo=allMapArea[i].getAttribute("href");anchoredTo=anchoredTo.substring(anchoredTo.indexOf("#")+1,anchoredTo.length-7)+"StickyOverlay";allMapArea[i].setAttribute("popUpLinked",anchoredTo);allMapArea[i].onclick=function(){coordsStr=this.getAttribute("coords");coords=coordsStr.split(",");if("hasPopupArrowInLeft"==this.className){adjX=document.all?30:coords[1]-125;adjY=document.all?46:coords[0]-3;}
else{adjX=document.all?30:coords[1]-125;adjY=document.all?-266:coords[0]-316;}
anchoredTo=this.getAttribute("popUpLinked")
stickyShow(this,anchoredTo,adjX,adjY,false);return false;}}}}};function addToEvent(element,evType,fn)
{if(element.addEventListener){element.addEventListener(evType,fn,false);return true;}
else if(element.attachEvent){var r=element.attachEvent('on'+evType,fn);return r;}
else{element['on'+evType]=fn;}}
addLoadEvent(contextImageMapHelp.init);