// JavaScript utilities.js Document

function initialize() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map_canvas"));
		map.setCenter(new GLatLng(38.61003,-121.427593), 13);
		//map.setUIToDefault();		
		var point = new GPoint(38.61003,-121.427593);
		var marker = new GMarker(point);
		map.addOverlay(marker);
		marker.openInfoWindowHtml("1900 Point West Way, Sacramento, CA, 95815");
	}
}

function setWindow(tref) {
	var w = 900;
	var h = 500;
	/*wleft = (screen.width - w) / 2;
  wtop = (screen.height - h) / 2;*/
	var wleft = (screen.availWidth/2)-(w/2);
	var wtop = (screen.availHeight/2)-(h/2);

	window.open(tref, 'TVCContactFormWindow', 
		'width=' + w + ', height=' + h + ', ' +
    'left=' + wleft + ', top=' + wtop + ', ' +
    'location=no, menubar=no, ' +
    'status=no, toolbar=no, scrollbars=no, resizable=no');	
}
