this.standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
		function centerDiv(divid){
		divobj = document.getElementById(divid);
		//Centers a div element on the page
		var ie=document.all && !window.opera
		var dom=document.getElementById
		var scroll_top=(ie)? this.standardbody.scrollTop : window.pageYOffset
		var scroll_left=(ie)? this.standardbody.scrollLeft : window.pageXOffset
		var docwidth=(ie)? this.standardbody.clientWidth : window.innerWidth
		var docheight=(ie)? this.standardbody.clientHeight: window.innerHeight
		var docheightcomplete=(this.standardbody.offsetHeight>this.standardbody.scrollHeight)? this.standardbody.offsetHeight : this.standardbody.scrollHeight //Full scroll height of document
		var objwidth=divobj.offsetWidth //width of div element
		var objheight=divobj.offsetHeight //height of div element
		var topposition=(docheight>objheight)? scroll_top+docheight/2-objheight/2+"px" : scroll_top+10+"px" //Vertical position of div element: Either centered, or if element height larger than viewpoint height, 10px from top of viewpoint
		divobj.style.left=docwidth/2-objwidth/2+"px" //Center div element horizontally
		divobj.style.top=Math.floor(parseInt(topposition))+"px"
		divobj.style.visibility="visible"
}

function closeMap (divid)
{
	divobj = document.getElementById(divid);
	divobj.style.visibility="hidden"
}