// JavaScript Document

function initializeGoogleMap(mapID,latCoord,longCoord,zoomRate,largeMapControlBoolean,mapTypeControlBoolean,mapSearchControlBoolean,mapType)
{
	map = new GMap2(document.getElementById(mapID));
    map.setCenter(new GLatLng(latCoord, longCoord), zoomRate);
	
	if( largeMapControlBoolean == true) {
		map.addControl(new GLargeMapControl());
	}
	
	if(mapTypeControlBoolean) {
   		map.addControl(new GMapTypeControl());
	}
	
	if(mapSearchControlBoolean) {
   		map.addControl(new google.maps.LocalSearch(), new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(10,20)));
	}
	
	if(mapType == "HYBRID") {
		map.setMapType(G_HYBRID_MAP);
	}
	else if(mapType == "SATELLITE") {
		map.setMapType(G_SATELLITE_MAP);
	}
	else if(mapType == "NORMAL") {
		map.setMapType(G_NORMAL_MAP);
	}
	
	
	return map;
}

