var WINDOW_HTML = '<div id="gMap_style"><h4>Almond Valley Property Centre</h4><hr /><p>Suite 115<br />Eucal Business Centre<br />Craigshill</p></div>';

function initialize() 
{
	if (GBrowserIsCompatible()) {	
	var map = new GMap2(document.getElementById("gMap"));
	
	// Add zoom controls for map
	map.addControl(new GSmallMapControl());
	
	// Add type controls for map
	map.addControl(new GMapTypeControl());
	
	// Set position for map
	map.setCenter(new GLatLng(55.90286729998795, -3.499917984008789), 16);
	
	// Define custom icon, size and position
	var icon = new GIcon(); icon.image = "images/icons/gmap.gif";
	icon.iconSize = new GSize(32, 32);
	icon.iconAnchor = new GPoint(0, 0);
	icon.infoWindowAnchor = new GPoint(20,20);
	
	// Add custom icon / marker with position pn map
	var marker = new GMarker(new GLatLng(55.90286729998795, -3.499917984008789), icon);
	map.addOverlay(marker);
	
	// Add information window to map
	GEvent.addListener(marker, "click", function() {
	marker.openInfoWindowHtml(WINDOW_HTML);
	});
	marker.openInfoWindowHtml(WINDOW_HTML);			
	}

}   