		var map;
		var pas;
		var icon;
		var marker;
		var addrHTML;
		var closingHTML;
		var direcHTML;
		var direcToHTML;
		var direcFromHTML;
		var infoTabs;

		function setDirec(direction){
			if (direction=="to"){
				infoTabs = [
				  new GInfoWindowTab("Address", addrHTML + direcToHTML + closingHTML) //,
//				  new GInfoWindowTab("Our Building", "<img src='/images/dcpasOffice.jpg' />")
				];
//				marker.openInfoWindowHtml(addrHTML + direcToHTML + closingHTML);
			} else if (direction=="from"){
				infoTabs = [
				  new GInfoWindowTab("Address", addrHTML + direcFromHTML + closingHTML) //,
//				  new GInfoWindowTab("Our Building", "<img src='/images/dcpasOffice.jpg' />")
				];
//				marker.openInfoWindowHtml(addrHTML + direcFromHTML + closingHTML);
			} else {
				infoTabs = [
				  new GInfoWindowTab("Address", addrHTML + direcHTML + closingHTML) //,
//				  new GInfoWindowTab("Our Building", "<img src='/images/dcpasOffice.jpg' />")
				];
//			marker.openInfoWindowHtml(addrHTML + direcHTML + closingHTML);
			}
			marker.openInfoWindowTabsHtml(infoTabs);
		}
    
    function load() {
      if (GBrowserIsCompatible()) {
				map = new GMap2(document.getElementById("map"));
				map.addControl(new GSmallMapControl());

				//pas = new GLatLng(38.922661, -77.042684);
				pas = new GLatLng(38.91979100, -77.04113700);

				map.setCenter(pas, 16);

				icon = new GIcon();
				icon.image = "http://www.dcpas.com/images/mapIcon.png";
				icon.shadow = "http://www.dcpas.com/images/mapIconShadow.png";
				icon.iconSize = new GSize(25, 19);
				icon.shadowSize = new GSize(25, 19);
				icon.iconAnchor = new GPoint(0, 18);
				icon.infoWindowAnchor = new GPoint(17, 1);

				marker = new GMarker(pas,icon);

				map.addOverlay(marker);

				addrHTML = "<div style='font: 8pt Arial; margin-right: 10px;'><b>Psychological Assessment Solutions, LLC</b><br />1748 Kalorama Road, NW<br/>Washington, DC 20009<br/><br/>Phone: 202.327.5452<br/>Fax: 202.298.1163<br/>Email: <a style=\"font-size: 8pt;\" href=\"mailto:info@dcpas.com\">info@dcpas.com</a><br/><br/>";
				closingHTML = "</div>";
				direcHTML = "Get Directions: "+
				"<a style='font-size: 8pt; text-decoration: underline;' href='javascript:setDirec(\"to\")'>To Here</a>" +
				" - " +
				"<a style='font-size: 8pt; text-decoration: underline;' href='javascript:setDirec(\"from\")'>From Here</a>";
				direcToHTML = "<b>Get Directions: </b>"+
				"To Here" +
				" - " +
				"<a style='font-size: 8pt; text-decoration: underline;' href='javascript:setDirec(\"from\")'>From Here</a>" +
				"<br>Start address:<form style=\"margin-top: 2px; margin-bottom: 0px;\" action=\"http://maps.google.com/maps\" method=\"get\" target=\"_blank\">" +
        "<input style=\"border: 1px gray inset; font: 8pt Arial;\" type=\"text\" SIZE=40 MAXLENGTH=40 name=\"saddr\" id=\"saddr\" value=\"\" />" +
        "<br>" +
        "<INPUT style=\"border: 1px gray outset; font: 8pt Arial;\" value=\"Get Directions\" TYPE=\"SUBMIT\">" +
        "<input type=\"hidden\" name=\"daddr\" value=\"1748 Kalorama Road, NW Washington, DC 20009 (Psychological Assessment Solutions)\"/></form>" +
        "<div style=\"font: 7pt Arial; color: #AAAAAA;\" onMouseOver=\"this.className='cursor';\" onclick='javascript:setDirec(\"none\");'>&lt;&lt;Back</div>";
				direcFromHTML = "<b>Get Directions: </b>"+
				"<a style='font-size: 8pt; text-decoration: underline;' href='javascript:setDirec(\"to\")'>To Here</a>" +
				" - " +
				"From Here" +
				"<br>Destination address:<form style=\"margin-top: 2px; margin-bottom: 0px;\" action=\"http://maps.google.com/maps\" method=\"get\" target=\"_blank\">" +
        "<input style=\"border: 1px gray inset; font: 8pt Arial;\" type=\"text\" SIZE=40 MAXLENGTH=40 name=\"daddr\" id=\"daddr\" value=\"\" />" +
        "<br>" +
        "<INPUT style=\"border: 1px gray outset; font: 8pt Arial;\" value=\"Get Directions\" TYPE=\"SUBMIT\">" +
        "<input type=\"hidden\" name=\"saddr\" value=\"1748 Kalorama Road, NW Washington, DC 20009 (Psychological Assessment Solutions)\"/></form>" +
        "<div style=\"font: 7pt Arial; color: #AAAAAA; \" onMouseOver=\"this.className='cursor';\" onclick='javascript:setDirec(\"none\");'>&lt;&lt;Back</div>";

				infoTabs = [
				  new GInfoWindowTab("Address", addrHTML + direcHTML + closingHTML) //,
//				  new GInfoWindowTab("Our Building", "<img src='/images/dcpasOffice.jpg' />")
				];

				marker.openInfoWindowTabsHtml(infoTabs);

        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowTabsHtml(infoTabs);
        });

      }
    }
