function embedMap() {
  var base = "http://www.moodyshare.com/uploadedImages/ShareHome/Library/";
  var fileType = ".jpg";	
	
  //create share map as base map type
  function ShareMapType() {
  };
	  
  ShareMapType.prototype.tileSize = new google.maps.Size(256,256);
  ShareMapType.prototype.maxZoom = 4;
  
  ShareMapType.prototype.getTile = function(coord, zoom, ownerDocument) {
	var div = ownerDocument.createElement('DIV');
	if (zoom=4) {
		div.innerHTML = '<img src="'+base+'Map/'+zoom+'_'+coord.x+'_'+coord.y+fileType+'" />'
	}
	else {
		div.innerHTML = '<img src="'+base+'Map/4_1_4'+fileType+'" />'
	};
	return div;
  };

  ShareMapType.prototype.name = "Share Map";
  ShareMapType.prototype.alt = "Moody Radio Share 2011 Map";
  
  var shareMapType = new ShareMapType();
	
  //create the map
  var latlng = new google.maps.LatLng(39.0965, -103.5307);
  var myOptions = {
	zoom: 4,
	center: latlng,
	disableDefaultUI: true,
	draggable: false,
	disableDoubleClickZoom: true,
	scrollwheel: false,
	navigationControl: false,
	mapTypeControl: false,
	scaleControl: false,
	mapTypeId: 'share',
//	mapTypeId: google.maps.MapTypeId.TERRAIN,
//	mapTypeControlOptions: {
//		mapTypeIds: ['share', google.maps.MapTypeId.ROADMAP],
//		style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
//	},
	streetViewControl: false
  };
  var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
  
  //now attach the coordinate map type to the map's registry
  map.mapTypes.set('share',shareMapType);

  //we can now set the map to use the 'share' map type
  map.setMapTypeId('share');
  
//  //center map initially
//  google.maps.event.addListenerOnce(map, 'idle', function() {
//	map.setCenter(latlng);
//	map.setZoom(4);
//  });
  
//  //add position report listener for debug
//  google.maps.event.addListener(map, 'click', function() {
//	alert(map.getCenter());
//  });  
	  
  //add Moody map layer
  var moodyOverlayOptions = {
	preserveViewport: true
  };	
  var moodyOverlay = new google.maps.KmlLayer('http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=104462304323080991487.0004954269497b5b06bd7&output=kml',moodyOverlayOptions);
  moodyOverlay.setMap(map);  
  
};

//function to return map to initial center point
function centerMap() {
	map.setCenter(latlng);
};
