function gMap_initialize()
{
	var latlng = new google.maps.LatLng(52.9117987, -1.453242);
	var myOptions =
	{
		zoom: 13,
		center: latlng,
		scaleControl: true,
		navigationControl: true,
		mapTypeControl: false,
		mapTypeId: google.maps.MapTypeId.ROADMAP
	};

	var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);

	//var contentString = "<span style='float:right;'><img src='../images/logo-map.jpg' alt='Gordon Scott logo' height='75' width='75' /></span>" +	// add info bubble to marker
	var contentString = "Unit 3,<br/>" +	// add info bubble to marker
	"Evolve Retail,<br/>" +
	"Technology House,<br/>" +
	"Mallard Way,<br/>" +
	"Pride Park,<br/>" +
	"Derby,<br/>" +
	"DE24 8GX<br/>" +
	"<strong>Tel</strong>: 01332 547 152";

	var infowindow = new google.maps.InfoWindow(
	{
		content: contentString
	});

	var marker = new google.maps.Marker(
	{
		position: latlng,
		map: map,
		title: 'Evolve Retail, Technology House, Mallard Way, Pride Park, Derby, DE24 8GX. Tel: 01332 547 152'
	});

	google.maps.event.addListener(marker, 'click', function()
	{
		infowindow.open(map,marker);
	});
}


$(document).ready(function()
{
	if ($("div#map_canvas").length)
	{
		$.getScript("http://maps.google.com/maps/api/js?sensor=false&region=GB&callback=gMap_initialize");
	}



	$("ul.projects li a").click(function(e)
	{
		e.preventDefault();

		var theID = $(this).attr("id").substring(12);

		$("div.projects").hide();
		$("div#welcomeArea_" + theID).show();

	});


	var url = document.location.toString();
	var curPage = url.split("/")[3];

	$("div.projects p a").each(function(i,a)
	{
		aURL = a.toString().split("/")[3];
		if (aURL == curPage)
		{
			$(a).css({ fontWeight: "bold" });

			$("div.projects").hide();
			$("div#welcomeArea_" + $(a).parents("div.projects").attr("id").substring(12)).show();

			return false;
		}
	});


});
