<!--
	function setHeightsInit() {
		setHeights('loc1','map1');
		setHeights('loc2','map2');
	}

	function setHeights(div1,div2) {	
			divHeight1 = document.getElementById(div1).offsetHeight;
			divHeight2 = document.getElementById(div2).offsetHeight;
				
			divPadding=0;
			
			if (divHeight1 > divHeight2) {
				document.getElementById(div2).style.height = divHeight1-divPadding + "px" ;
			} else if (divHeight1 < divHeight2){
				document.getElementById(div1).style.height = divHeight2-divPadding + "px" ;
			}	
			
		}
		
function changeImages(whichID,whichImage) {
	document.getElementById(whichID).src=whichImage;
}


function popUp(url,w,h,name,resizable,scrollbar,menu,tool,status,directories,x,y){

	this.strUrl = url;
	//x and y for window screen position not required at the moment
	this.intX = x;
	this.intY = y;

	this.strName = name;
	this.strResizable = (resizable=="yes" || resizable==1) ? "resizable=yes" : "";
	this.strScroll = (scrollbar=="yes" || scrollbar==1) ? "scrollbars=yes" : "";
	this.strMenu = (menu=="yes" || menu==1) ? "menubar=yes" : "";
	this.strTool = (tool=="yes" || tool==1) ? "toolbar=yes" : "";
	this.strStatus = (status=="yes" || status==1) ? "status=yes" : "";
	this.strDirectories = (directories=="yes" || directories==1) ? "directories=yes" : "";
	this.intW = (!isNaN(w)) ? "width="+w: "";
	this.intH = (!isNaN(h)) ? "height="+h: "";
	
	this.arrOptions = new Array(this.strResizable,this.strScroll,this.strMenu,this.strTool,this.strStatus,this.strDirectories,this.intW,this.intH);
	this.strOptions = "";
	
	//build the options
	for(var i=0;i<this.arrOptions.length;i++){
		if(this.arrOptions[i].length>0){
			this.strOptions+=this.arrOptions[i]+",";
		}
	}
	//remove any trailing ","
	if(this.strOptions.length>0){
		this.strOptions=this.strOptions.substring(0,this.strOptions.length-1);
	}
	
	this.win=window.open(this.strUrl,this.strName,this.strOptions);
	this.win.focus();
}

function genPopUp(url,w,h,name,resizable,scrollbar,menu,tool,status,directories,x,y){
	//no requirement to hold popups in global references at the moment
	new popUp(url,w,h,name,resizable,scrollbar,menu,tool,status,directories,x,y)
	return false;
}

// -->