//=================================================================================================
//	You can delete these three functions if not needed.
//-------------------------------------------------------------------------------------------------
function customBodyLoad( sender )
{
}
//=================================================================================================
function customBodyResize( sender, size )
{
}
//=================================================================================================
function customBodyScroll( sender )
{
}
//=================================================================================================
function toggleSpotlight(selected, count)
{
	for (var i = 1; i <= count; i++)
	{
		var spotlight = $("spotlight_" + i);
		if (spotlight)
			spotlight.style.display = "none";
	}
	
	var current = $("spotlight_" + selected)
	
	if (current)
		current.style.display = "block";	
}
//=================================================================================================
var map;
var baseIcon;
var baseUrl;
//=================================================================================================

function initBaseIcon()
{
	baseIcon = new GIcon();
	baseIcon.image =  baseUrl +"img/mapIcon.png";
	baseIcon.shadow =  baseUrl +"img/mapIconShadow.png";
	baseIcon.iconSize = new GSize(43, 60);
	baseIcon.shadowSize = new GSize(47, 63);
	baseIcon.iconAnchor = new GPoint(21, 60);
	baseIcon.infoWindowAnchor = new GPoint(9, 2);
}
//=================================================================================================
function initializeMap()
{
      if (GBrowserIsCompatible()) 
      {
        map = new GMap2(document.getElementById("map_canvas"));      
        map.addControl( new GLargeMapControl3D() );
		  map.addControl( new GMapTypeControl() );	
		  initBaseIcon();
		}
}
//=================================================================================================    
function addToMap(latitude, longitude)
{
	markerOptions = { icon:baseIcon };

	 var point = new GLatLng(latitude, longitude);
	 map.addOverlay(new GMarker(point, markerOptions));
	 map.setCenter(point, 15);
}
