	function createMarker(point,name,html,icontype) {
		var icon = new GIcon();
		icon.image = "images/map_icon.png";
		icon.shadow = "images/map_icon_shadow.png";
		icon.iconSize = new GSize(51, 18);
		icon.shadowSize = new GSize(56, 17);
		icon.iconAnchor = new GPoint(37, 59);
		icon.infoWindowAnchor = new GPoint(31, 8);
		
		var marker = new GMarker(point, icontype);
		//var marker = new GMarker(point, {title:name}, icon);
		
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(html);
		});
		return marker;
	}

    function load() {
		var map = new GMap(document.getElementById("map"));
		map.addControl(new GSmallMapControl(), new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(10, 10)));
		map.addControl(new GMapTypeControl(), new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(10, 10)));
		
		map.centerAndZoom(new GPoint(-3.196, 51.455), 3);
		// Add a polyline.
		/*var polyline = new GPolyline([
		new GPoint(-3.1820, 51.4811),
		new GPoint(-3.184, 51.48104),
		new GPoint(-3.1855, 51.481057),
		new GPoint(-3.1861, 51.48106),
		new GPoint(-3.1868, 51.48111),
		new GPoint(-3.1870, 51.48116),
		new GPoint(-3.1872, 51.48121),
		new GPoint(-3.1876, 51.48132),
		new GPoint(-3.1881, 51.48149),
		new GPoint(-3.1888, 51.48158),
		new GPoint(-3.1892, 51.48152),
		new GPoint(-3.1899, 51.48146),
		new GPoint(-3.1910, 51.48132),
		new GPoint(-3.1920, 51.48120),
		new GPoint(-3.1926, 51.48103),
		new GPoint(-3.1929, 51.48103),
		new GPoint(-3.1936, 51.48108),
		new GPoint(-3.1964, 51.481555),
		new GPoint(-3.1966, 51.481557),
		new GPoint(-3.1968, 51.4817),
		new GPoint(-3.1971, 51.4821),
		new GPoint(-3.1973, 51.4823),
		new GPoint(-3.1985, 51.48345),
		new GPoint(-3.1995, 51.4841),
		new GPoint(-3.2000, 51.4844),
		new GPoint(-3.2010, 51.4849)],
		"#ff0000", 6);
		map.addOverlay(polyline);*/			
		
		var point = new GLatLng(51.455, -3.1967);
		var icon = new GIcon();
		icon.image = "images/map_icon.png";
		icon.shadow = "images/map_icon_shadow.png";
		icon.iconSize = new GSize(80, 65);
		icon.shadowSize = new GSize(80, 65);
		icon.iconAnchor = new GPoint(10, 40);
		icon.infoWindowAnchor = new GPoint(0,0);

		var markerInfo = '<p style="color:#37362e;"><b>B&B Audio Concepts</b><br/>4 Romilly Crescent<br/>Cardiff<br/>CF11 9NR</p>';
		var tooltip = "B&B Autos, Cardiff";
		var marker = createMarker(point, tooltip, markerInfo, icon);
		map.addOverlay(marker);
		
		var point = new GLatLng(51.4822, -3.1837);
		var icon = new GIcon();
		icon.image = "images/map_castle.png";
		icon.shadow = "images/map_castle_shadow.png";
		icon.iconSize = new GSize(72,64);
		icon.shadowSize = new GSize(72,64);
		icon.iconAnchor = new GPoint(36, 32);
		icon.infoWindowAnchor = new GPoint(25,42);

		var markerInfo = '<p style="color:#37362e;"><b>Cardiff Castle</b><br/><font style="font-size:11px; color:#37362e;">Our store and works garage<br/>is just 5 minutes from<br/>Cardiff city centre.</font></p>';
		var tooltip = "Cardiff Castle";
		var marker = createMarker(point, tooltip, markerInfo, icon);
		map.addOverlay(marker);
    }