var map;
function mapLoad() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.addControl(new GScaleControl());
        map.setCenter(new GLatLng(48.148422,-122.185285), 11);
var point = new GLatLng(48.148422,-122.185285);
var marker=new GMarker(point);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowTabsHtml(infoTabs);
		});
map.addOverlay(marker);
var infoTabs = [new GInfoWindowTab("Medallion Hotels", "<span style=\"font-size:12px;\"><strong>Medallion Hotel</strong><br />16710 Smokey Point Blvd.<br />Arlington, WA 98223<br /><a href=\"javascript:directionsSeattle();\">Driving Directions from Seattle, WA</a><br /><a href=\"javascript:directionsVancouver();\">Driving Directions from Vancouver, BC</a>")];
marker.openInfoWindowTabsHtml(infoTabs);
      }
 }
$(document).ready(function(){
	mapLoad();
});
$(document).unload(function(){
	GUnload();
});
function directionsVancouver(){
directionsPanel = document.getElementById("directionsPanel");
directionsPanel.innerHTML='';
  directions = new GDirections(map,directionsPanel);
  directions.load("Vancouver, BC to 16710 Smokey Point Blvd. Arlington, WA 98223");
}
function directionsSeattle(){
directionsPanel = document.getElementById("directionsPanel");
directionsPanel.innerHTML='';
  directions = new GDirections(map,directionsPanel);
  directions.load("Seattle, WA to 16710 Smokey Point Blvd. Arlington, WA 98223");
}
