<?php
############################################################################
# A Project of TNET Services, Inc. and Saratoga-Weather.org (Canada/World-ML template set)
############################################################################
#
#   Project:    Sample Included Website Design
#   Module:     sample.php
#   Purpose:    Sample Page
#   Authors:    Kevin W. Reed <kreed@tnet.com>
#               TNET Services, Inc.
#
# 	Copyright:	(c) 1992-2007 Copyright TNET Services, Inc.
############################################################################
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
############################################################################
#	This document uses Tab 4 Settings
############################################################################
require_once("Settings.php");
require_once("common.php");
############################################################################
$TITLE = langtransstr($SITE['organ']) . " - " .langtransstr('Home');
$showGizmo = true;  // set to false to exclude the gizmo
include("top.php");
############################################################################
?>
<script  src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAU_9xPeDdqJ7VhHkxd5hVtRRpkRMiY3BZIHariNiAMEX3aT39BBSMzEuFe4N YVDRyOqqLTJJDkey8Sw"
      type="text/javascript"></script>
    <script type="text/javascript">

    function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
        var center = new GLatLng(42.406, -71.527);
        map.setCenter(center, 13);
 var marker = new GMarker(center, {title: "Rockbottom Observatory"});       
 
 	  GEvent.addListener(marker, "click", function() {
        marker.openInfoWindowHtml('<div style="width:250px">Rockbottom Observatory<br>18 Rockbottom Rd<br>Stow, Ma 01775<br><br>Get Driving Directions:<form action="http://maps.google.com/maps" method="get"><p><label for="saddr">Enter your address or zip code</label><input type="text" name="saddr" id="saddr" value=""><input type="submit" value="Go"><input type="hidden" name="daddr" value="18 ROCKBOTTOM RD STOW MA 01775"><input type="hidden" name="hl" value="en"></p></form></div>');
      });
  
     GEvent.addListener(marker, "dragstart", function() {
          map.closeInfoWindow();
        });

        GEvent.addListener(marker, "dragend", function() {
          marker.openInfoWindowHtml("Just bouncing along...");
        });
 
       map.addOverlay(marker); 
       }  
    }
    
    </script>
    </head>
<body onload="load()" onunload="GUnload()">
<?php
############################################################################
include("header.php");
############################################################################
include("menubar.php");
############################################################################
?>

<div id="main-copy">
<div class="column-dark">
	<img src="<?php echo $SITE['imagesDir']; ?>spacer.gif" alt="spacer"
	height="2" width="620" style="padding:0; margin:0; border: none" />
	<div align="center">
	<?php if(isset($SITE['ajaxDashboard']) and file_exists($SITE['ajaxDashboard']))
	 { include_once("ajax-dashboard.php");
	   } else {
		print "<p>&nbsp;</p>\n";
		print "<p>&nbsp;</p>\n";
		print "<p>Note: ajax-dashboard not included since weather station not yet specified.</p>\n";
        for ($i=0;$i<10;$i++) { print "<p>&nbsp;</p>\n"; }
	}?>
</div><!-- end column-dark -->
 </table>
</div><!-- end main-copy -->

<?php
############################################################################
include("footer.php");
############################################################################
# End of Page
############################################################################
?>