	
//<![CDATA[
	function roundTo(number, places)
		{
		  // Rounds the given number to the specifed number of decimal places.
		  //  Example: roundTo(3.1415926535, 4) = 3.1416
		  return Math.round(number * Math.pow(10, places)) / Math.pow(10, places);
		};
		
	var overlays = [];

	function init() {
		var point = new google.maps.LatLng(initLat,initLon);
		
		
        var myOptions = {
			zoom: initZoom,
			center: point,
			mapTypeId:google.maps.MapTypeId.ROADMAP
		};
		
		
		var map = new google.maps.Map(document.getElementById("map"),myOptions);
		
		map.setOptions({
			mapTypeControl: true,
			mapTypeControlOptions: {
				style: google.maps.MapTypeControlStyle.DROPDOWN_MENU, 
				mapTypeIds: [google.maps.MapTypeId.ROADMAP,
							google.maps.MapTypeId.SATELLITE,
							google.maps.MapTypeId.HYBRID,
							google.maps.MapTypeId.TERRAIN]
			},
			navigationControl:true,
			navigationControlOptions: {style: google.maps.NavigationControlStyle.SMALL},
			scaleControl:true});
	
		// Create and place PC marker
		var myIcon = new google.maps.MarkerImage("http://www.hometownlocator.com/images/PCmarker.png",
			new google.maps.Size(20, 34),
			new google.maps.Point(0, 0),
			new google.maps.Point(6, 34));
			
		var iconShadow = new google.maps.MarkerImage("http://www.google.com/mapfiles/shadow50.png",
			new google.maps.Size(37, 34),
			new google.maps.Point(0, 0),
			new google.maps.Point(6, 34));
			
		var marker = new google.maps.Marker({
			position: point,
			map: map,
			icon: myIcon,
			shadow: iconShadow,
			title: Name
		});
  		marker.setMap(map);
		
		overlays.push(marker);		   
				   	

    }
	
	//This method may not be the best for this JS file, but it will clear anything in the overlays[] array.
	function clearOverlays(){
		for (var n=0, overlay; overlay = overlays[n]; n++){
			overlay.setMap(null);
		}
		//Clear overlays from the collection.
		overlays = [];
	}
	
	
    //]]>
	
	
	
	
