function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=300,left = 362,top = 234');");
}

function readCookieJS(cookiename) {
 var cookiestring=""+document.cookie;
 var index1=cookiestring.indexOf(cookiename);
 if (index1==-1 || cookiename=="") return ""; 
 var index2=cookiestring.indexOf(';',index1);
 if (index2==-1) index2=cookiestring.length; 
 return unescape(cookiestring.substring(index1+cookiename.length+1,index2));
}
   
function isGoogleMapsCompatible(cookiename) {
if (GBrowserIsCompatible()) {
		var map = new GMap(document.getElementById("map"));
		//map.addControl(new GLargeMapControl());
		map.addControl(new GSmallMapControl());
		map.addControl(new GMapTypeControl());
		map.setMapType(G_MAP_TYPE); 
		
		var location = readCookieJS("siteid")
		
		if (location=="2"){
			//map.centerAndZoom(new GPoint(-104.999566, 39.749015), 5);
			map.centerAndZoom(new GPoint(-104.956784899918, 39.7420260065149), 5);
			
		}else{
			map.centerAndZoom(new GPoint(-104.92286682128906, 39.59828141820854), 5);
		}

	  }
}

function FF_TEST(){

	 alert('hey');
}

function showHideDiv(obj){

try
{
	var theDiv=document.getElementById(obj)
       
    if (theDiv.style.display=='none'){
            theDiv.style.display='block';
    }else{
            theDiv.style.display='none'; 
    }

}
	catch(err)
	{
	//Handle errors here
	}

}
