var map;
	
function CreateMap()
{
	map = new GMap2(document.getElementById("gmap"));
	map.setCenter(new GLatLng(51.510452, -0.122223), 10);
	map.addControl(new GSmallMapControl());

	map.addOverlay(iw);

	var icon, marker, timeout, count = 0;

	function AddMarkersIncremental()
	{
		for(var x=0; x<5; x++)
		{
			if(count == loc.length) 
			{
				clearTimeout(timeout);
				return;
			}
			
			icon = CreateIcon(loc[count].IconColour);
			map.addOverlay(CreateMarker(icon, loc[count], true));
			
			count++;
		}
		
		timeout = setTimeout(AddMarkersIncremental, 50);
	}
	
	timeout = setTimeout(AddMarkersIncremental, 500);
}