function directions() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("partnershipMap"));
var Icon = new GIcon();
Icon.image = "http://www.houston.org/partnership/newhmpage/images/marker_green.png";
Icon.shadow = "http://www.houston.org/partnership/newhmpage/images/shadow50.png";
Icon.iconSize = new GSize(20, 34);
Icon.shadowSize = new GSize(37, 34);
Icon.iconAnchor = new GPoint(9, 34);
Icon.infoWindowAnchor = new GPoint(9, 2);
Icon.infoShadowAnchor = new GPoint(18, 25);
Icon.transparent = "http://www.houston.org/partnership/newhmpage/images/markerTransparent.png";
Icon.printImage = "http://www.houston.org/partnership/newhmpage/images/marker_green.png";
Icon.mozPrintImage = "http://www.houston.org/partnership/newhmpage/images/marker_green.png";
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.addControl(new GOverviewMapControl());
var geocoder = new GClientGeocoder();
geocoder.getLocations('1200 Smith Houston, TX 77002', function(result) {
var x = result.Placemark[0].Point.coordinates;
map.setCenter(new GLatLng(x[1],x[0]), 14);
var marker = new GMarker(map.getCenter(), Icon);
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml('<table width=\"300\"><tr><td valign=\"top\"><img src=\"http://www.houston.org/partnership/newhmpage/images/GHP-stacked-cmyk.gif" height=\"0\" width=\"0\"></td><td>Greater Houston Partnership<br>1200 Smith<br>Suite 700<br>Houston, TX 77002-4400</td></tr></table>');
});
map.setMapType(G_NORMAL_MAP);
map.addOverlay(marker);
marker.openInfoWindowHtml('<table width=\"300\"><tr><td valign=\"top\"><img src=\"http://www.houston.org/newhmpage/images/opphou-partnership-logo.gif" height=\"0\" width=\"0\"></td><td>Greater Houston Partnership<br>1200 Smith<br>Suite 700<br>Houston, TX 77002-4400</td></tr></table>');
}
);
}
}



function parking() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("parking"));
var Icon = new GIcon();
Icon.image = "http://www.houston.org/partnership/newhmpage/images/marker_green.png";
Icon.shadow = "http://www.houston.org/partnership/newhmpage/images/shadow50.png";
Icon.iconSize = new GSize(20, 34);
Icon.shadowSize = new GSize(37, 34);
Icon.iconAnchor = new GPoint(9, 34);
Icon.infoWindowAnchor = new GPoint(9, 2);
Icon.infoShadowAnchor = new GPoint(18, 25);
Icon.transparent = "http://www.houston.org/partnership/newhmpage/images/markerTransparent.png";
Icon.printImage = "http://www.houston.org/partnership/newhmpage/images/marker_green.png";
Icon.mozPrintImage = "http://www.houston.org/partnership/newhmpage/images/marker_green.png";
map.addControl(new GSmallMapControl());
var geocoder = new GClientGeocoder();
geocoder.getLocations('300 Clay Houston, TX 77002', function(result)
{
var x = result.Placemark[0].Point.coordinates;
map.setCenter(new GLatLng(x[1],x[0]), 17);
var marker = new GMarker(map.getCenter(), Icon);
GEvent.addListener(marker, "click", function()
{
marker.openInfoWindowHtml('<table width=\"300\"><tr><td valign=\"top\"><img src=\"http://www.houston.org/partnership/newhmpage/images/parking.gif" height=\"53\" width=\"54\"></td><td>Parking - Allen Center Garage<br>300 Clay Houston, TX 77002<br>713-951-7420</td></tr></table>');
});
map.setMapType(G_NORMAL_MAP);
map.addOverlay(marker);
marker.openInfoWindowHtml('<table width=\"300\"><tr><td valign=\"top\"><img src=\"http://www.houston.org/partnership/newhmpage/images/parking.gif" height=\"53\" width=\"54\"></td><td>Parking - Allen Center Garage<br>300 Clay Houston, TX 77002<br>713-951-7420</td></tr></table>');
}
);
}
}

function start() {
  directions();
  parking();
}
window.onload = start;

