/********************************************************************/
// ElectricStorm's script to set up the Glassbrooks Google map.
/********************************************************************/

/* this script uses the google maps api to add an interactive map to the visitus page */
function initialize() { 
	if (GBrowserIsCompatible()) { //check browser compatibility
		
		var officeCoords = new GLatLng(53.74710, -3.021295); 
		
		//making the map
		var map = new GMap2(document.getElementById("map_canvas")); //create new map in the map_canvas div	
		map.setCenter(officeCoords, 13); //initialize map by setting lat and long co-ords and zoom
		map.addControl(new GLargeMapControl()); //add full pan/zoom controls
		
		//making the marker
		var marker = new GMarker(officeCoords); //create a marker object with studio co-ords
		map.addOverlay(marker); //add the marker to the map
		
	}
}

// window.onload = initialize; //(initialized in everypage.php)
window.onunload = GUnload; //free up memory associated with this app
