  // Check to see if this browser can run the Google API
  if (GBrowserIsCompatible()) {

    var to_html = '';
    var from_html = '';
//    var point = new GLatLng( 38.957715,-95.306974);
    var point = new GLatLng( 38.95849,-95.30635);
    var marker = new GMarker(point);

    // functions that open the directions forms
    function tohere() {
    marker.openInfoWindowHtml(to_html);
    }
    function fromhere(i) {
    marker.openInfoWindowHtml(from_html);
    }

    // Display the map, with some controls and set the initial location
    var map = new GMap2(document.getElementById("map"));
    map.addControl(new GSmallMapControl());
    map.addControl(new GMapTypeControl());
    map.setCenter(point, 16);
 
    // Set up office location marker with info window
var address = '1440 Wakarusa, Lawrence, KS 66049';
var html = '<p>DARcorporation<br />1440 Wakarusa Dr. Ste. 500<br />Lawrence, KS 66049<br /><a href="http://www.darcorp.com/">http://www.darcorp.com/</a></p>';

    // The info window version with the "to here" form open
    to_html = html + '<strong>Directions: To here</strong> - <a href="javascript:fromhere()">From here</a>' +
       '<br />Start address:<form action="http://maps.google.com/maps" method="get">' +
       '<input type="text" size="40" maxlength="40" name="saddr" id="saddr" value="" /><br />' +
       '<input value="Get Directions" type="submit" />' +
       '<input type="hidden" name="daddr" value="' + address +
       '" />';

    // The info window version with the "from here" form open
    from_html = html + '<strong>Directions:</strong> <a href="javascript:tohere()">To here</a> - <strong>From here</strong>' +
       '<br />End address:<form action="http://maps.google.com/maps" method="get">' +
       '<input type="text" size="40" maxlength="40" name="daddr" id="daddr" value="" /><br />' +
       '<input value="Get Directions" type="submit" />' +
       '<input type="hidden" name="saddr" value="' + address +
       '" />';

   // The inactive version of the direction info
    html = html + '<strong>Directions:</strong> <a href="javascript:tohere()">To here</a> - <a href="javascript:fromhere()">From here</a>';

    map.addOverlay(marker);
    marker.openInfoWindowHtml(html);
    
    GEvent.addListener(marker, "click", function() {
      map.setCenter(point, 16);
      marker.openInfoWindowHtml(html);
      map.setZoom(15);
    });
    
    //sets zoom level
    map.setZoom(15);
  }