 var gmarkers = [];
      var htmls = [];
      var to_htmls = [];
      var from_htmls = [];
	  var ff = [];
      var i=0;
	   // A function to create the marker and set up the event window
      function createMarker(point,name,html) {
        var marker = new GMarker(point);
	  var fd = html;
        // The info window version with the "to here" form open
        to_htmls[i] = html + '<br><div style=padding-bottom:5px;font-size:14px;text-align:left>Directions: <b>To here</b> - <a href="javascript:fromhere(' + i + ')">From here</a>' +
           '<br>Start Address:<form action="http://maps.google.com/maps" method="get" target="_blank">' +
           '<input type="text" SIZE=30 MAXLENGTH=40 name="saddr" id="saddr" value="" class="input-box-big" /><br/>' +
           '<div align="center"><INPUT value="Get Directions" TYPE="image" src="images/get-direction.gif" vspace="3"></div>' +
           '<input type="hidden" name="daddr" value="' + point.lat() + ',' + point.lng() + 
                  // "(" + name + ")" + 
           '"/></div>';
        // The info window version with the "to here" form open
        from_htmls[i] = html + '<br><div style=padding-bottom:5px;font-size:14px;text-align:left>Directions: <a href="javascript:tohere(' + i + ')">To here</a> - <b>From here</b>' +
           '<br>End Address:<form action="http://maps.google.com/maps" method="get"" target="_blank">' +
           '<input type="text" SIZE=30 MAXLENGTH=40 name="daddr" id="daddr" value="" class="input-box-big"  /><br/>' +
           '<div align="center"><INPUT value="Get Directions" TYPE="image" src="images/get-direction.gif" vspace="3"></div>' +
           '<input type="hidden" name="saddr" value="' + point.lat() + ',' + point.lng() +
                  // "(" + name + ")" + 
           '"/></div>';
        
		
		
		   // The inactive version of the direction info
		
        html = html + '<br><div style=padding-bottom:5px;font-size:14px;text-align:left>Directions: <a href="javascript:tohere('+i+')">To here</a> - <a href="javascript:fromhere('+i+')">From here</a></div>';

		GEvent.addListener(marker, "mouseover", function() { marker.openInfoWindowHtml(html); });
        gmarkers[i] = marker;
        htmls[i] = html;
        i++;
        return marker;
      }

      // functions that open the directions forms
      function tohere(i) {
        gmarkers[i].openInfoWindowHtml(to_htmls[i]);
      }
      function fromhere(i) {
        gmarkers[i].openInfoWindowHtml(from_htmls[i]);
      }
 var map = new GMap2(document.getElementById("map"));

	  map.addControl(new GLargeMapControl());


var point = new GLatLng(40.0651230,-75.5336090);
		        map.setCenter(point,8);
		var marker = createMarker(point, "", "<div style=padding-bottom:5px;font-size:14px;text-align:left><b>Executive Office Link</b><br>5 Great Valley Parkway</div><div style=line-height:8px;text-align:left>Malvern, PA 19355</div>");
				 map.addOverlay(marker);

