//Google Map Javascript

var i = 0;
var maplegend = "";
var gmarkers = [];

function myclick(i) {
        GEvent.trigger(gmarkers[i], "click");
      }

function displayInfo(index) {
  infoBox[index] = "<div class='map_info_box'>"+locationInfo[index]+"</div>";
	//new GInfoWindowTab("Photo",locationPhoto[index])
	//];
  //infoBox[index] = [
	//new GInfoWindowTab("Location","<div class='map_info_box'>"+locationInfo[index]+"</div>"),
	//new GInfoWindowTab("Photo",locationPhoto[index])
	//];
  marker[index].showtabs = infoBox[index];
  GEvent.addListener(marker[index], "click", function() {
    marker[index].openInfoWindowHtml(infoBox[index]);
	document.getElementById("location_info").innerHTML = "<p>Click a point on the map to view location information</p>" + locationInfo[index] + addInfo[index];
  });
  gmarkers.push(marker[index]);
  // add a line to the maplegend
  maplegend += "<td valign='top' align='center'><a href='javascript:myclick(" + (gmarkers.length-1) + ")' style='font-size: 9px'><img src='../images/googlemap/marker" + (index + 1) + ".png' alt='"+  (index+1) + "' width='23' height='22' border='0' /> " + markerTitle[index] + "</a><br />";
  if (!((i+1) % 3))  {
  	if (i != 27) {
		maplegend += "</tr><tr>";
	}
  }
}

function createMarker(point, index) {
  // Create a numbered icon for this point
  number = index + 1;
  var customIcon = new GIcon(baseIcon);
  customIcon.image = "../images/googlemap/marker" + number + ".png";

  // Set up GMarkerOptions object
  markerOptions = {icon:customIcon, title: markerTitle[i]};
  marker[i] = new GMarker(point, markerOptions);

  displayInfo(index)
  return marker[i];
}

var map = new GMap2(document.getElementById("fuel_sites"));
map.setCenter(new GLatLng(38.486858,-75.605633), 8);
//map.addControl(new GLargeMapControl());
//map.addControl(new GMapTypeControl());


var baseIcon = new GIcon(G_DEFAULT_ICON);
baseIcon.shadow = "";
baseIcon.iconSize = new GSize(23, 22);
baseIcon.iconAnchor = new GPoint(11,12);
baseIcon.infoWindowAnchor = new GPoint(12, 10);
baseIcon.transparent = "../images/googlemap/transparenticon.png";
baseIcon.imageMap = [ 15,21, 8,21, 1,15, 1,7, 7,1, 15,1, 21,8, 21,15 ];

var coord = new Array(29);
coord[0] = new GLatLng(39.438092,-75.752831);
coord[1] = new GLatLng(39.129906,-75.493879);
coord[2] = new GLatLng(39.070805,-75.55357);
coord[3] = new GLatLng(39.006798,-75.568879);
coord[4] = new GLatLng(38.961121,-75.429355);
coord[5] = new GLatLng(38.720863,-75.119864);
coord[6] = new GLatLng(38.57206,-75.560722);
coord[7] = new GLatLng(38.455033,-75.233471);
coord[8] = new GLatLng(38.923611,-75.957423);
coord[9] = new GLatLng(38.896406,-75.818163);
coord[10] = new GLatLng(38.810982,-76.060014);
coord[11] = new GLatLng(38.768322,-76.093583);
coord[12] = new GLatLng(38.629075,-75.859652);
coord[13] = new GLatLng(38.568627,-76.065882);
coord[14] = new GLatLng(38.566355,-76.064937);
coord[15] = new GLatLng(38.462325,-75.749149);
coord[16] = new GLatLng(38.453963,-75.558812);
coord[17] = new GLatLng(38.403434,-75.578302);
coord[18] = new GLatLng(38.377158,-75.524976);
coord[19] = new GLatLng(38.373205,-75.577097);
coord[20] = new GLatLng(38.360394,-75.595583);
coord[21] = new GLatLng(38.377065,-75.068927);
coord[22] = new GLatLng(38.334922,-75.211435);
coord[23] = new GLatLng(38.213648,-75.70125);
coord[24] = new GLatLng(38.12902,-75.695436);
coord[25] = new GLatLng(38.061067,-75.545511);
coord[26] = new GLatLng(37.838522,-75.572076);
coord[27] = new GLatLng(37.697285,-75.717988);
coord[28] = new GLatLng(37.304445,-75.966785);

var markerTitle = new Array(29);
markerTitle[0] = "Middletown, DE"
markerTitle[1] = "Dover, DE"
markerTitle[2] = "Woodside, DE"
markerTitle[3] = "Felton, DE"
markerTitle[4] = "Milford, DE"
markerTitle[5] = "Rehoboth, DE"
markerTitle[6] = "Laurel, DE"
markerTitle[7] = "Selbyville, DE"
markerTitle[8] = "Queen Anne, MD"
markerTitle[9] = "Denton, MD"
markerTitle[10] = "Easton, MD"
markerTitle[11] = "Easton, MD"
markerTitle[12] = "Hurlock, MD"
markerTitle[13] = "Cambridge, MD"
markerTitle[14] = "Cambridge, MD"
markerTitle[15] = "Mardela Springs, MD"
markerTitle[16] = "Delmar, MD"
markerTitle[17] = "Salisbury, MD"
markerTitle[18] = "Salisbury, MD"
markerTitle[19] = "Salisbury, MD"
markerTitle[20] = "Salisbury, MD"
markerTitle[21] = "Ocean City, MD"
markerTitle[22] = "Berlin, MD"
markerTitle[23] = "Princess Anne, MD"
markerTitle[24] = "Westover, MD"
markerTitle[25] = "Pocomoke City, MD"
markerTitle[26] = "Mappsville, VA"
markerTitle[27] = "Onley, VA"
markerTitle[28] = "Cheriton, VA"

var locationInfo = new Array(29);
locationInfo[0] = "<strong>Middletown, DE</strong>"
	locationInfo[0] += "<p>Middletown 301 Citgo<br />912 Rt. 301</p>"
	locationInfo[0] += "<p>Open: 24 hours</p>"
locationInfo[1] = "<strong>Dover, DE</strong>"
	locationInfo[1] += "<p>Goose Creek Citgo<br />108 E. Lebanon Rd</p>"
	locationInfo[1] += "<p>Open: 6am - 10pm, Mon-Sun</p>"
locationInfo[2] = "<strong>Woodside, DE</strong>"
	locationInfo[2] += "<p>Goose Creek Exxon/Arby's<br />Rt. 13 South & Country Road</p>"
	locationInfo[2] += "<p>Open: 6am - 11pm, 7 days a week</p>"
locationInfo[3] = "<strong>Felton, DE</strong>"
	locationInfo[3] += "<p>Goose Creek Shell<br />Rt. 13 North & Rt. 12</p>"
	locationInfo[3] += "<p>Open: 6am - 11pm, 7 days a week</p>"
locationInfo[4] = "<strong>Milford, DE</strong>"
	locationInfo[4] += "<p>Mill Bros Shell<br />1606 Bay Rd (Rt. 1 N)</p>"
	locationInfo[4] += "<p>Open: 5am - 10pm, 7 days a week</p>"
locationInfo[5] = "<strong>Rehoboth, DE</strong>"
	locationInfo[5] += "<p>High's Dairy Store - Shell<br />19464 Unit 8 Coastal Hwy</p><p>302-227-8019</p>"
	locationInfo[5] += "<p>Open: 5am - 11:15pm, 7 days a week</p>"
locationInfo[6] = "<strong>Laurel, DE</strong>"
	locationInfo[6] += "<p>Bargain Bill's Shell<br />10912 County Seat Highway</p>"
	locationInfo[6] += "<p>Open: 24 hours 7 days a week</p>"
locationInfo[7] = "<strong>Selbyville, DE</strong>"
	locationInfo[7] += "<p>Quik-Stop Exxon<br />9 South Dupont Highway</p>"
	locationInfo[7] += "<p>Open: 6am - 11pm, 7 days a week</p>"
locationInfo[8] = "<strong>Queen Anne, MD</strong>"
	locationInfo[8] += "<p>Queen Ann Shell<br />32227 Queen Anne Highway</p>"
	locationInfo[8] += "<p>Open: 5am - 12 am, 7 days a week</p>"
locationInfo[9] = "<strong>Denton, MD</strong>"
	locationInfo[9] += "<p>Denton Goose Creek Exxon<br />Rt. 313 (Just off Rt. 404)</p>"
	locationInfo[9] += "<p>Open: 24 hours, 7 days a week (Isle behind store)</p>"
locationInfo[10] = "<strong>Easton, MD</strong>"
	locationInfo[10] += "<p>Easton Fast Stop Shell<br />9543 Ocean Gateway (Rt. 50 West)</p>"
	locationInfo[10] += "<p>Open: 24 hours</p>"
locationInfo[11] = "<strong>Easton, MD</strong>"
	locationInfo[11] += "<p>Port Street Pacific Pride<br />930 Port Street</p>"
	locationInfo[11] += "<p>Open: 24 hours, 7 days a week</p>"
locationInfo[12] = "<strong>Hurlock, MD</strong>"
	locationInfo[12] += "<p>Hurlock Citgo<br />105 DE Avenue</p>"
	locationInfo[12] += "<p>Open: 24 hours, 7 days a week</p>"
locationInfo[13] = "<strong>Cambridge, MD</strong>"
	locationInfo[13] += "<p>Cambridge Shell<br />511 Maryland Avenue</p>"
	locationInfo[13] += "<p>6-11 Mon-Fri, Sun<br />6-12 Sat</p>"
locationInfo[14] = "<strong>Cambridge, MD</strong>"
	locationInfo[14] += "<p>Citgo East<br />Rt. 50 East</p>"
	locationInfo[14] += "<p>Open: 24 hours, 7 days a week</p>"
locationInfo[15] = "<strong>Mardela Springs, MD</strong>"
	locationInfo[15] += "<p>Goose Creek Exxon<br />Rt. 50 West</p>"
	locationInfo[15] += "<p>Open: 6am - 11pm, 7 days a week</p>"
locationInfo[16] = "<strong>Delmar, MD</strong>"
	locationInfo[16] += "<p>Thirsty's Shell<br />Rt. 13 South</p>"
	locationInfo[16] += "<p>Open: 6am - 11pm, 7 days a week</p>"
locationInfo[17] = "<strong>Salisbury, MD</strong>"
	locationInfo[17] += "<p>2229 Northwood Drive</p>"
	locationInfo[17] += "<p>Open: 24 hours, 7 days a week</p>"
locationInfo[18] = "<strong>Salisbury, MD</strong>"
	locationInfo[18] += "<p>Hobbs Road Citgo<br />31373 Old Ocean City Rd.</p>"
	locationInfo[18] += "<p>Open: 6am - 10pm (M-F),<br />7am - 11pm (Sat & Sun), 7 days a week<p>"
locationInfo[19] = "<strong>Salisbury, MD</strong>"
	locationInfo[19] += "<p>E. Salisbury Shell<br />1120 E. Church Street</p>"
	locationInfo[19] += "<p>Open: 6am - 11pm, 7 days a week</p>"
locationInfo[20] = "<strong>Salisbury, MD</strong>"
	locationInfo[20] += "<p>436 Eastern Shore Drive</p>"
	locationInfo[20] += "<p>Open: 24 hours, 7 days a week</p>"
locationInfo[21] = "<strong>Ocean City, MD</strong>"
	locationInfo[21] += "<p>Ocean City Exxon<br />5201 Coastal Highway</p>"
	locationInfo[21] += "<p>Open: 6am - 10pm, Mon-Sun</p>"
locationInfo[22] = "<strong>Berlin, MD</strong>"
	locationInfo[22] += "<p>Your Store Shell<br />10137 Old Ocean City Blvd.</p>"
	locationInfo[22] += "<p>Open: 6am - 11pm, 7 days a week</p>"
locationInfo[23] = "<strong>Princess Anne, MD</strong>"
	locationInfo[23] += "<p>Goose Creek Shell<br />30293 Mt. Vernon Road</p>"
	locationInfo[23] += "<p>Open: 6am - 11pm, 7 days a week</p>"
locationInfo[24] = "<strong>Westover, MD</strong>"
	locationInfo[24] += "<p>Goose Creek Texaco<br />Rt. 13 North & South</p>"
	locationInfo[24] += "<p>Open: 6am - 11pm, 7 days a week</p>"
locationInfo[25] = "<strong>Pocomoke City, MD</strong>"
	locationInfo[25] += "<p>Pocomoke City Arby's Inc.,<br />T/A Pocomoke Goose Creek<br />2322 Stockton Road</p>"
	locationInfo[25] += "<p>Open: 6am - 11pm, 7 days a week</p>"
locationInfo[26] = "<strong>Mappsville, VA</strong>"
	locationInfo[26] += "<p>Stuckey's Citgo<br />14439 Lankford Highway (Rt. 13-N)</p>"
	locationInfo[26] += "<p>Open: 7am - 9pm, 7 days a week</p>"
locationInfo[27] = "<strong>Onley, VA</strong>"
	locationInfo[27] += "<p>Onley Beverage/Sunoco<br />25188 Lankford Highway</p>"
	locationInfo[27] += "<p>Open: 7am - 11pm, 7 days a week</p>"
locationInfo[28] = "<strong>Cheriton, VA</strong>"
	locationInfo[28] += "<p>Cheriton Shell<br />Rt. 13 South</p>"
	locationInfo[28] += "<p>Open: 6am - 12am, 7 days a week</p>"

var addInfo = new Array(29)
addInfo[0] = "<ul><li>Unleaded</li><li>Midgrade</li><li>Premium</li><li>Diesel</li><li>Motor Oil</li><li>18 Wheeler Access</li></ul>";
	addInfo[0] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=%2B39%C2%B0+26%27+17.13%22,+-75%C2%B0+45%27+10.19%22+(39.438092,+-75.752831)&geocode=&hl=en&mra=mi&sll=39.437752,-75.75254&sspn=0.011087,0.01929&g=39.438092,-75.752831&ie=UTF8&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[1] = "<ul><li>Unleaded Midgrade</li><li>Premium</li></ul>"
	addInfo[1] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=%2B39%C2%B0+7%27+47.66%22,+-75%C2%B0+29%27+37.96%22+(39.129906,+-75.493879)&geocode=&hl=en&mra=mi&sll=39.129985,-75.493957&sspn=0.011136,0.01929&g=39.129906,-75.493879&ie=UTF8&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[2] = "<ul><li>Regular Unleaded</li><li>Unleaded Plus</li><li>Super Unleaded</li><li>Diesel Fuel</li><li>Kerosene</li><li>Motor Oil</li></ul>"
	addInfo[2] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=39.07122,-75.553569&geocode=&hl=en&mra=dme&mrcr=0&mrsp=1&sz=17&sll=39.071837,-75.552603&sspn=0.005572,0.009645&ie=UTF8&z=17' target='_blank'>Get Directions &raquo;</a>";
addInfo[3] = "<ul><li>Regular Unleaded</li><li>Unleaded Plus</li><li>Super Unleaded</li><li>Diesel Fuel</li><li>Kerosene</li><li>Motor Oil</li></ul>"
	addInfo[3] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=39.006863,-75.568793&geocode=&hl=en&mra=dme&mrcr=0&mrsp=1&sz=16&sll=39.006723,-75.568878&sspn=0.011155,0.01929&ie=UTF8&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[4] = "<ul><li>Regular Unleaded</li><li>Unleaded Plus</li><li>Super Unleaded</li><li>Diesel Fuel</li><li>Kerosene</li><li>Motor Oil</li></ul>"
	addInfo[4] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=38.961344,-75.429726&geocode=&hl=en&mra=dme&mrcr=0&mrsp=1&sz=16&sll=38.961046,-75.429244&sspn=0.011162,0.01929&ie=UTF8&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[5] = "<ul><li>Regular Unleaded</li><li>Unleaded Plus</li><li>Super Unleaded</li><li>Diesel Fuel</li></ul>"
	addInfo[5] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=38.720869,-75.119728&geocode=&hl=en&mra=mi&mrsp=0&sz=18&sll=38.720834,-75.119732&sspn=0.002867,0.004823&ie=UTF8&z=18' target='_blank'>Get Directions &raquo;</a>";
addInfo[6] = "<ul><li>Regular Unleaded</li><li>Unleaded Plus</li><li>Super Unleaded</li><li>Diesel Fuel</li><li>18 Wheeler Access</li></ul>"
	addInfo[6] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=38.570621,-75.562102&geocode=&hl=en&mra=mi&mrsp=0&sz=16&sll=38.570717,-75.562141&sspn=0.011223,0.01929&g=38.57206,-75.560722&ie=UTF8&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[7] = "<ul><li>Regular Unleaded</li><li>Unleaded Plus</li><li>Super Unleaded</li><li>Diesel</li><li>Fuel</li></ul>"
	addInfo[7] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=%2B38%C2%B0+27%27+18.12%22,+-75%C2%B0+14%27+0.50%22+(38.455033,+-75.233471)&geocode=&hl=en&mra=mi&sll=38.455034,-75.233448&sspn=0.011241,0.01929&g=38.455033,-75.233471&ie=UTF8&ll=38.455006,-75.233422&spn=0.011241,0.01929&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[8] = "<ul><li>Unleaded</li><li>Midgrade</li><li>Premium</li><li>Diesel</li><li>Kerosene</li><li>Motor Oil</li><li>18 Wheeler Access</li></ul>"
	addInfo[8] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=%2B38%C2%B0+55%27+25.00%22,+-75%C2%B0+57%27+26.72%22+(38.923611,+-75.957423)&geocode=&hl=en&mra=mi&sll=38.92361,-75.957423&sspn=0.011168,0.01929&g=38.923611,-75.957423&ie=UTF8&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[9] = "<ul><li>Regular Unleaded</li><li>Super Unleaded</li><li>Diesel Fuel</li><li>18 Wheeler Access</li></ul>"
	addInfo[9] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=%2B38%C2%B0+53%27+47.06%22,+-75%C2%B0+49%27+5.39%22+(38.896406,+-75.818163)&geocode=&hl=en&mra=mi&sll=38.896421,-75.818196&sspn=0.011172,0.01929&g=38.896406,-75.818163&ie=UTF8&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[10] = "<ul><li>Unleaded</li><li>Midgrade</li><li>Premium</li><li>Diesel</li><li>Motor Oil</li></ul>"
	addInfo[10] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=%2B38%C2%B0+48%27+39.54%22,+-76%C2%B0+3%27+36.05%22+(38.810982,+-76.060014)&geocode=&hl=en&mra=mi&sll=38.810982,-76.059932&sspn=0.011186,0.01929&g=38.810982,-76.060014&ie=UTF8&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[11] = "<ul><li>Regular Unleaded</li><li>Super Unleaded</li><li>Diesel Fuel</li><li>18 Wheeler Access</li></ul>"
	addInfo[11] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=38.768322,-76.093583&geocode=&hl=en&mra=dme&mrcr=0&mrsp=1&sz=16&sll=38.768356,-76.093454&sspn=0.011193,0.01929&ie=UTF8&ll=38.768289,-76.09369&spn=0.011193,0.01929&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[12] = "<ul><li>Regular Unleaded</li><li>Super Unleaded</li><li>Diesel Fuel</li><li>18 Wheeler Access</li></ul>"
	addInfo[12] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=38.629075,-75.859652&geocode=&hl=en&mra=dme&mrcr=0&mrsp=1&sz=16&sll=38.629159,-75.860016&sspn=0.011214,0.01929&ie=UTF8&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[13] = "<ul><li>Regular Unleaded</li><li>Unleaded Plus</li><li>Super Unleaded</li><li>Diesel Fuel</li></ul>"
	addInfo[13] += "<a href='http://maps.google.com/maps?daddr=%2B38%C2%B0+34%27+7.06%22,+-76%C2%B0+3%27+57.18%22+(38.568627,+-76.065882)&geocode=CVvIwdWrIaYCFbOCTAIdplN3-w&dirflg=&saddr=&f=d&hl=en&sll=38.568938,-76.065795&sspn=0.011224,0.01929&ie=UTF8&ll=38.568619,-76.065881&spn=0.011224,0.01929&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[14] = "<ul><li>Regular Unleaded</li><li>Unleaded Plus</li><li>Super Unleaded</li><li>Diesel Fuel</li><li>18 Wheeler Access</li></ul>"
	addInfo[14] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=38.629075,-75.859652&geocode=&hl=en&mra=dme&mrcr=0&mrsp=1&sz=16&sll=38.629159,-75.860016&sspn=0.011214,0.01929&ie=UTF8&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[15] = "<ul><li>Regular Unleaded</li><li>Unleaded Plus</li><li>Super Unleaded</li><li>Diesel Fuel</li><li>Kerosene</li><li>Motor Oil</li><li>18 Wheeler Access</li></ul>"
	addInfo[15] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=38.461822,-75.747578&geocode=&hl=en&mra=dme&mrcr=0&mrsp=1&sz=16&sll=38.461913,-75.747724&sspn=0.01124,0.01929&ie=UTF8&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[16] = "<ul><li>Regular Unleaded</li><li>Unleaded Plus</li><li>Super Unleaded</li><li>Diesel Fuel</li><li>Kerosene</li><li>Motor Oil</li><li>18 Wheeler Access</li></ul>"
	addInfo[16] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=%2B38%C2%B0+27%27+14.27%22,+-75%C2%B0+33%27+31.72%22+(38.453963,+-75.558812)&geocode=&hl=en&mra=mi&sll=38.453908,-75.5586&sspn=0.011242,0.01929&g=38.453963,-75.558812&ie=UTF8&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[17] = "<ul><li>Regular Unleaded</li><li>Unleaded Plus</li><li>Super Unleaded</li><li>Diesel Fuel</li><li>18 Wheeler Access</li></ul>"
	addInfo[17] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=38.403434,-75.578302&geocode=&hl=en&mra=mi&mrsp=0&sz=16&sll=38.403479,-75.57832&sspn=0.01125,0.01929&g=38.404242,-75.577907&ie=UTF8&ll=38.403478,-75.57833&spn=0.01125,0.01929&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[18] = "<ul><li>Regular Unleaded</li><li>Unleaded Plus</li><li>Super Unleaded</li><li>Diesel Fuel</li><li>18 Wheeler Access</li></ul>"
	addInfo[18] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=38.377158,-75.524976&geocode=&hl=en&mra=dme&mrcr=0&mrsp=1&sz=16&sll=38.377142,-75.52489&sspn=0.011254,0.01929&ie=UTF8&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[19] = "<ul><li>Regular Unleaded</li><li>Unleaded Plus</li><li>Super Unleaded</li><li>Diesel Fuel</li><li>Kerosene</li><li>Motor Oil</li></ul>"
	addInfo[19] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=38.373188,-75.576389&geocode=&hl=en&mra=dme&mrcr=0&mrsp=1&sz=16&sll=38.373222,-75.576282&sspn=0.011254,0.01929&ie=UTF8&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[20] = "<ul><li>Regular Unleaded</li><li>Unleaded Plus</li><li>Super Unleaded</li><li>Diesel Fuel</li><li>18 Wheeler Access</li></ul>"
	addInfo[20] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=443-499+Eastern+Shore+Dr,+Salisbury,+MD+21804&hl=en&geocode=&mra=mi&sll=38.360392,-75.595571&sspn=0.011256,0.01929&g=38.360394,-75.595583&ie=UTF8&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[21] = "<ul><li>Unleaded</li><li>Midgrade</li><li>Premium</li><li>Diesel</li></ul>"
	addInfo[22] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=%2B38%C2%B0+22%27+37.43%22,+-75%C2%B0+4%27+8.14%22+(38.377065,+-75.068927)&geocode=&hl=en&mra=mi&sll=38.377163,-75.068815&sspn=0.011254,0.01929&g=38.377065,-75.068927&ie=UTF8&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[22] = "<ul><li>Regular Unleaded</li><li>Unleaded Plus</li><li>Super Unleaded</li><li>Diesel Fuel</li><li>Kerosene</li><li>Motor Oil</li></ul>"
	addInfo[22] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=%2B38%C2%B0+20%27+5.72%22,+-75%C2%B0+12%27+41.17%22+(38.334922,+-75.211435)&geocode=&hl=en&mra=mi&sll=38.334975,-75.211389&sspn=0.01126,0.01929&g=38.334922,-75.211435&ie=UTF8&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[23] = "<ul><li>Regular Unleaded</li><li>Unleaded Plus</li><li>Super Unleaded</li><li>Diesel Fuel</li><li>Kerosene</li><li>Motor Oil</li></ul>"
	addInfo[23] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=%2B38%C2%B0+12%27+49.13%22,+-75%C2%B0+42%27+4.50%22+(38.213648,+-75.701250)&geocode=&hl=en&mra=mi&sll=38.213684,-75.70132&sspn=0.011279,0.01929&g=38.213648,-75.70125&ie=UTF8&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[24] = "<ul><li>Regular Unleaded</li><li>Unleaded Plus</li><li>Super Unleaded</li><li>Diesel Fuel</li><li>Motor Oil</li><li>18 Wheeler Access</li></ul>"
	addInfo[24] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=38.12902,-75.695436&geocode=&hl=en&mra=dme&mrcr=0&mrsp=1&sz=16&sll=38.128769,-75.694484&sspn=0.011292,0.01929&ie=UTF8&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[25] = "<ul><li>Regular Unleaded</li><li>Unleaded Plus</li><li>Super Unleaded</li><li>Diesel Fuel</li><li>Kerosene</li><li>Motor Oil</li></ul>"
	addInfo[25] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=2369-2371+MD-366,+Pocomoke+City,+MD+21851&geocode=&hl=en&mra=mi&sll=38.061055,-75.545509&sspn=0.011303,0.01929&g=38.061067,-75.545511&ie=UTF8&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[26] = "<ul><li>Regular Unleaded</li><li>Unleaded Plus</li><li>Super Unleaded</li><li>Diesel Fuel</li><li>18 Wheeler Access</li></ul>"
	addInfo[26] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=37.838522,-75.572076&geocode=&hl=en&mra=dme&mrcr=0&mrsp=1&sz=17&sll=37.838365,-75.572256&sspn=0.005668,0.009645&ie=UTF8&z=17' target='_blank'>Get Directions &raquo;</a>";
addInfo[27] = "<ul><li>Regular Unleaded</li><li>Unleaded Plus</li><li>Super Unleaded</li><li>Diesel Fuel</li><li>18 Wheeler Access</li></ul>"
	addInfo[27] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=37.696997,-75.718031&geocode=&hl=en&mra=dme&mrcr=0&mrsp=1&sz=16&sll=37.697234,-75.717908&sspn=0.011359,0.01929&ie=UTF8&ll=37.697235,-75.717902&spn=0.011359,0.01929&z=16' target='_blank'>Get Directions &raquo;</a>";
addInfo[28] = "<ul><li>Unleaded</li><li>Midgrade</li><li>Premium</li><li>Diesel</li><li>Motor Oil</li><li>18 Wheeler Access</li></ul>"
	addInfo[28] += "<a href='http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr=%2B37%C2%B0+18%27+16.00%22,+-75%C2%B0+58%27+0.43%22+(37.304445,+-75.966785)&geocode=&hl=en&mra=mi&sll=37.304436,-75.966768&sspn=0.011418,0.01929&g=37.304445,-75.966785&ie=UTF8&z=16' target='_blank'>Get Directions &raquo;</a>";

var locationPhoto = new Array(29)
for (i=0;i<29;i++)
{
locationPhoto[i] = "<img src='../images/googlemap/location"+(i+1)+".jpg' alt='' width='150' height='150' />";
}


var marker = new Array(29) 
var infoBox = new Array(29)
for (i=0;i<29;i++)
{
map.addOverlay(createMarker(coord[i], i))
}

document.getElementById("location_info").innerHTML = "<p>Click a point below or on the map to view location information</p>"
document.getElementById("map_legend").innerHTML = "<table><tr>" + maplegend + "</tr></table>";