rendered paste bodylocation.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content=" We are a local web management company based in lorain county Ohio. If you are looking for a company to take care of all your internet needs we offer web design, hosting, domain regisration, complete management, advice, and much more. our goal is to get our local small businesses up to todays web standards. ">
<meta name="keywords" content="web design, hosting, local, elyria, ohio, lorain, wellington, electronic business cards, marketing, management, web services, bsalva, graphic, design, north olmstead, grafton, lagrange, spencer, wakeman, sheffield, avon, server, photagraphy, logo, creation, lorain county, medina, county, medina county, Huron county, huron, internet, web, website, web advice">
<meta name="author" content="Bryan Salva">
<meta name="reply-to" content="bsalva">
<meta name="robots" content="all">
<title>Eaton Fabricating Co.Inc.</title>
<link href="css/layout.css" rel="stylesheet" type="text/css" />
<link href="css/location.css" rel="stylesheet" type="text/css" />
<script src="Scripts/suckerfish.js" type="text/javascript"></script>
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA2MLHicAYw7EJkPHsYKO6CBS9-At7Tob_HmDA7EfIWADyZJBswRQnWo1oFCR7fC5Illuw8qooMqjpXg"
type="text/javascript"></script>
<script type="text/javascript">
var map;
var gdir;
var geocoder = null;
var addressMarker;
function initialize() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"), {draggableCursor: 'crosshair', draggingCursor: 'move'});
gdir = new GDirections(map, document.getElementById("directions"));
GEvent.addListener(gdir, "load", onGDirectionsLoad);
GEvent.addListener(gdir, "error", handleErrors);
map.setCenter(new GLatLng(41.27601647194078,-82.06531763076782), 14);
map.addControl(new GLargeMapControl(), new GControlPosition(G_ANCHOR_TOP_LEFT));
map.addControl(new GMapTypeControl(), new GControlPosition(G_ANCHOR_TOP_RIGHT));
map.addControl(new GScaleControl(), new GControlPosition(G_ANCHOR_BOTTOM_LEFT));
map.setMapType(G_HYBRID_MAP);
function createInfoMarker(point, address) {
var marker = new GMarker(point);
GEvent.addListener(marker, "click",
function() {
marker.openInfoWindowHtml(address);
}
);
return marker;
}
//Eaton Fabricating
var point = new GPoint(-82.06482410430908,41.27548430166768);
address = "Eaton Fabricating Co.Inc.<br />1009 McAlpin Ct <br />Grafton, OH 44044";
var marker = createInfoMarker(point, address);
map.addOverlay(marker);
}
}
function setDirections(fromAddress, toAddress, locale) {
gdir.load("from: " + fromAddress + " to: " + toAddress,
{ "locale": locale });
}
function handleErrors(){
if (gdir.getStatus().code == G_GEO_UNKNOWN_ADDRESS)
alert("No corresponding geographic location could be found for one of the specified addresses. This may be due to the fact that the address is relatively new, or it may be incorrect.\nError code: " + gdir.getStatus().code);
else if (gdir.getStatus().code == G_GEO_SERVER_ERROR)
alert("A geocoding or directions request could not be successfully processed, yet the exact reason for the failure is not known.\n Error code: " + gdir.getStatus().code);
else if (gdir.getStatus().code == G_GEO_MISSING_QUERY)
alert("The HTTP q parameter was either missing or had no value. For geocoder requests, this means that an empty address was specified as input. For directions requests, this means that no query was specified in the input.\n Error code: " + gdir.getStatus().code);
// else if (gdir.getStatus().code == G_UNAVAILABLE_ADDRESS) <--- Doc bug... this is either not defined, or Doc is wrong
// alert("The geocode for the given address or the route for the given directions query cannot be returned due to legal or contractual reasons.\n Error code: " + gdir.getStatus().code);
else if (gdir.getStatus().code == G_GEO_BAD_KEY)
alert("The given key is either invalid or does not match the domain for which it was given. \n Error code: " + gdir.getStatus().code);
else if (gdir.getStatus().code == G_GEO_BAD_REQUEST)
alert("A directions request could not be successfully parsed.\n Error code: " + gdir.getStatus().code);
else alert("An unknown error occurred.");
}
function onGDirectionsLoad(){
// Use this function to access information about the latest load()
// results.
// e.g.
// document.getElementById("getStatus").innerHTML = gdir.getStatus().code;
// and yada yada yada...
}
</script>
</head>
<body onload="initialize()" onunload="GUnload()">
<div id ="wrapper">
<div id= "header">
<?php include("/home/bms85/public_html/testphp/scripts/menu.php"); ?>
</div>
<div id="shadow"><img src="images/eaton_02.png" id="Image1" /></div>
<div id= "content"><div id="map" style="width:615px; height:340px"></div><img src="images/bottom_bar.gif"/>
<div id="directions"> </div>
</div>
<div id= "sidebar">
<div id="form">
<h2 class="title">Driving directions</h2>
<form action="#" onsubmit="setDirections(this.from.value, this.to.value, this.locale.value); return false">
<p> </p>
<table width="273" border="0" align="center" cellpadding="3" cellspacing="5">
<tr>
<td width="103"><div align="right"><strong>From:</strong></div></td>
<td width="154"><input type="text" size="25" id="fromAddress" name="from"value="(street City, state zip)"/></td>
</tr>
<tr>
<td><div align="right"><strong>Language: </strong></div></td>
<td><select id="locale" name="locale">
<option value="en" selected>English</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="ja">Japanese</option>
<option value="es">Spanish</option>
</select></td>
</tr>
<tr>
<td><div align="right">
<input type="hidden" size="25" id="toAddress" name="to"value="1009 McAlpin Ct Grafton, OH 44044" />
</div></td>
<td><input name="submit" type="submit" value="Get Directions!" /></td>
</tr>
</table>
<p> </p>
<p><br/>
<br/>
<br/>
</p>
</form></div>
</div>
<div id= "clear"></div>
<div id= "footer"></div>
</div>
© Copyright 2008 Eaton Fabricating Co.inc.<br />
All Rights Reserved.
</body>
</html>
Menu.php
<div id= "menu">
<ul id="nav">
<li><a href="index.php" title="Our Home Page" class="first">Home</a></li>
<li><a href="#">Products</a>
<ul>
<li><a href="washers.php">Washers</a></li>
<li><a href="batch_cure_ovens.php">Batch cure ovens</a></li>
<li><a href="dryoff_cure_ovens.php">Dry-off cure ovens</a></li>
</ul>
</li>
<li><a href="Services_capabilities.php">Services/Capabilities</a>
<ul>
<li><a href="laser_cutting.php">Laser Cutting</a></li>
<li><a href="pre_assembly.php">Pre Assembly</a></li>
<li><a href="bending_bending.php">Precision Bending</a></li>
<li><a href="custom_welding.php">Custom Welding</a></li>
<li><a href="powder_coating.php">Powder Coating</a></li>
<li><a href="laser_etching.php">Laser Etching</a></li>
</ul>
</li>
<li><a href="#">Company</a>
<ul>
<li><a href="mission_statement.php">Mission statement</a></li>
<li><a href="quality_policy.php">Quality policy</a></li>
<li><a href="location.php">Location</a></li>
<li><a href="shipping_options.php">Shipping options</a></li>
</ul>
</li>
<li><a href="contact.php">Contact Us</a></li>
</ul>
</div>