   //<!--
	var debugdiv;
	var address;
	var map = new Object;
	var marker = new Object;
	var directionsPanel;
	var directions;
	var iconmark = new Object;
	var address = "<b>CD Whyte Ridge Pharmacy</b><br />\n"+
		"123 G Scurfield Blvd<br />\n"+
		"Winnipeg, MB<br />\n"+
		"R3T 1L6<br />\n"+
		'<a href="http://maps.google.com/maps?'+
		'hl=en&q=whyte+ridge+pharmacy&ie=UTF8'+
		'&om=1&t=h&ll=49.817126,-97.192875&'+
		'spn=0.001713,0.003616&z=18&iwloc=A"'+
		' target="_blank">Get Directions</a>';	
		
    function load() {
		debugdiv = document.getElementById('debug');
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map"));
		var center = new GLatLng(49.81578628112445, -97.19324469566345);
		var pinpoint = new GLatLng(49.81684545053437, -97.19338417053222);
		
		var iconMark = new GIcon();
		iconMark.image = "/images/rxicon.png";
		iconMark.iconSize = new GSize(29, 35);
		iconMark.iconAnchor = new GPoint(29, 35);
		
		iconMark.shadow = "/images/rxicon_sh.png";
		iconMark.shadowSize = new GSize(50, 35);
		
		iconMark.infoWindowAnchor = new GPoint(0, 0);	
		
		
		map.addControl(new GSmallMapControl());
		//map.addControl(new GMapTypeControl());
		map.setCenter(center, 15);
		var marker = createMarker(pinpoint,address,iconMark);
		GEvent.addListener(marker, "dragstart",
								function() {  map.closeInfoWindow();  });
		map.addOverlay(marker);
		GEvent.addListener(map, "moveend",
			function (){
				debugdiv.innerHTML = map.getCenter();
				});
		directionsPanel = document.getElementById("my_textual_div");
		directionsPanel.innerHTML = '';
		directions = new GDirections(map, directionsPanel);
      }
    }
	
	// Creates a marker at the given point with the given number label
	function createMarker(point,html,markIcon){
		
		var marker = new GMarker(point,{icon: markIcon,draggable: false});
		//var marker = new GMarker(point);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(html);
			});
		return marker;
		}

	function startaddress(theForm){
		var start = theForm.start_location.value;
		
		directions.load(start+" to 123 G Scurfield Blvd, Winnipeg, MB");
		GEvent.addListener(directions, "error",function() {
			makeerror('Error: Start location not found');
			});
		return false;
		}
		
	var errorMSG = '';
	function makeerror(msg){
		if(msg == errorMSG){
			return false;
		}else{
			errorMSG = msg;
			setTimeout('alert("'+msg+'");errorMSG = false;',100);
			}
		}
    //-->