function WAMapRef(mapObj)  {
  this.obj = mapObj;
  this.directions = false;
  this.icons = [];
  this.markers = [];
  this.addresses = [];
  this.points = [];
  this.getPointByAddress = getPointByAddressFunc;
  this.addressFailed = true;
  return this;
}

function WAMapPoint(theMarker, theAddress, theIcon)  {
  this.icon = theIcon;
  this.marker = theMarker;
  this.address = theAddress;
  return this;
}

function getPointByAddressFunc(value,attname)  {
  if (!attname) attname = "street";
  for (var x=0; x < this.addresses.length; x++) {
    if (eval("this.addresses[x]."+attname) == value)  {
      return WAMapPoint(this.markers[x],this.addresses[x],this.icons[x]);
    }
  }
  return false;
}

function getHTTPObject(){   
  if (window.ActiveXObject)        
    return new ActiveXObject("Microsoft.XMLHTTP");   
  else if (window.XMLHttpRequest)        
    return new XMLHttpRequest();   
  else {
    return null;
  }
}

function searchCache(searchStr, zip) {
	var xmlDoc = null;
  if (window.ActiveXObject) {//IE
    xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
  } else if(navigator.userAgent && navigator.userAgent.toLowerCase().indexOf('webkit') >= 0) { //webkit (Safari, Chrome)
  	var coordinates = '';
    xmlDoc = getHTTPObject();
    if(xmlDoc) {
      xmlDoc.onreadystatechange = function() {
        if(xmlDoc.readyState == 4) {
          var x = xmlDoc.responseXML.getElementsByTagName("geocode_entry");
          var geocode, id;
          searchStr = searchStr.replace(/,/g, ''); //remove commas
          for (i=0; i < x.length; i++) {
            id = x[i].getAttribute("ID");
            if (id == searchStr) {
              coordinates = x[i].getElementsByTagName("geocode")[0].childNodes[0].nodeValue;
              return coordinates;
            }
          }
        }
      };
      xmlDoc.open("GET", "_promaps_cache/_promaps_geocache.xml", false);
      xmlDoc.send(null);
    }
    
    return coordinates;
  } else if (document.implementation.createDocument) {//gecko (Mozilla, Firefox, Opera)
    xmlDoc=document.implementation.createDocument("","",null);
  } else {
    return '';
  }
  if (xmlDoc != null) {
    xmlDoc.async=false;
    try {
      if(xmlDoc.load("_promaps_cache/_promaps_geocache.xml")) {
        var x=xmlDoc.getElementsByTagName("geocode_entry");
        var geocode, id;
        searchStr = searchStr.replace(/,/g, ''); //remove commas
        for (i=0; i < x.length; i++) {
          id = x[i].getAttribute("ID");
          if (id == searchStr) {
            return x[i].getElementsByTagName("geocode")[0].childNodes[0].nodeValue;
          }
        } 
      } 
    }
    catch(err) {
      return '';
    }
  }
  return '';
}

function addToCache(fullAddress,zip, geocode){
  httpObject = getHTTPObject();
  if (httpObject != null) {
    httpObject.open("POST", "google_javascript/promaps_geocache_.js", true);
    httpObject.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    var entryId = fullAddress.replace(/,/g, '');
    if (zip != '') {
      fullAddress = fullAddress.replace(zip+',', '');
    }
    entryId = escape(entryId);
    fullAddress = escape(fullAddress);
    geocode = escape(geocode);
    httpObject.send("sender=promapsforgoogle&action=add&entryId="+entryId+"&address="
+fullAddress+"&geocode="+geocode);
  }
}


function wagmp_map_1() {
  if(GBrowserIsCompatible()) {
    if(!document.getElementById('wagmp_map_1')) return false;
    var map = new GMap2(document.getElementById('wagmp_map_1'));
    wagmp_map_1_obj = new WAMapRef(map);
    map.enableContinuousZoom();
    map.enableDoubleClickZoom();
    map.addControl(new GSmallMapControl());
    map.addControl(new GScaleControl());
    map.addControl(new GMapTypeControl());
    map.addControl(new GOverviewMapControl());
    var geocoder = new GClientGeocoder();
    
    var fromAddress = {
      enabled: false,
      street: '',
      city: '',
      state: '',
      zip: '',
      country: '',
      full: ''
    };

    var icon_0 = new GIcon();
    icon_0.image = 'google_javascript/images/traditionalflat_yosemite.png';
    icon_0.shadow = 'google_javascript/images/traditionalflat_shadow.png';
    icon_0.iconSize = new GSize(34,35);
    icon_0.shadowSize = new GSize(34,35);
    icon_0.iconAnchor = new GPoint(9,33);
    icon_0.infoWindowAnchor = new GPoint(19,0);
    icon_0.printImage = 'google_javascript/images/traditionalflat_yosemite.gif';
    icon_0.mozPrintImage = 'google_javascript/images/traditionalflat_yosemite_mozprint.png';
    icon_0.printShadow = 'google_javascript/images/traditionalflat_shadow.gif';
    icon_0.transparent = 'google_javascript/images/traditionalflat_yosemite_transparent.png';

    var address_0 = {
      street: '10700 Winterpock Road',
      city: 'Chesterfield',
      state: 'VA',
      zip: '23832-2447',
      country: '',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>BETHIA United Methodist Church</strong><br />10700 Winterpock Road<br />Chesterfield, VA 23832-2447</span>',
      full: '10700 Winterpock Road, Chesterfield, VA, 23832-2447',
      isdefault: false,
      addressType: 'address',
      loop: '',
      latitude: '',
      longitude: '',
      markerStyle: 'Google Traditional (flat)',
      markerColor: 'Yosemite'
    };
    
    if (address_0.addressType == "coordinates") {
      var cacheReturn = '';
    } else {
      var cacheReturn = searchCache(address_0.full, address_0.zip);
    }
    if (cacheReturn != "" || (address_0.addressType == "coordinates")) {
      if(address_0.addressType == "coordinates") {
        var latitude = address_0.latitude;
        var longitude = address_0.longitude;
      } else {
        var latitude = cacheReturn.substring(1,cacheReturn.indexOf(",")-1);
        var longitude = cacheReturn.substring(cacheReturn.indexOf(",")+1,(cacheReturn.length)-1);
      }
      var point = new GLatLng(latitude, longitude);
      if (point && !isNaN(latitude)) {
        wagmp_map_1_obj.addressFailed = false;
        var marker_0 = new GMarker(point, icon_0);
        GEvent.addListener(marker_0, 'click', function() {
          marker_0.openInfoWindowHtml(address_0.infowindowtext);
        });
        if(!fromAddress.enabled || 'address_0' != 'address_0') {
          if('address_0' == 'address_0')
          map.setCenter(point, 7);
          map.addOverlay(marker_0);
        }
          wagmp_map_1_obj.markers.push(marker_0);
          wagmp_map_1_obj.addresses.push(address_0);
          wagmp_map_1_obj.icons.push(icon_0);
          wagmp_map_1_obj.points.push(point);
        } else {
        if (wagmp_map_1_obj.addressFailed) {
          map.setCenter(new GLatLng(30, -98), 3);
        }
        wagmp_map_1_obj.addressFailed = true;
      }
    } else if (address_0.addressType == "address") {
      geocoder.getLatLng (
      address_0.full,
      function(point) {
        if(point) {
          this.addressFailed = false;
          addToCache(address_0.full, '', point);
          var marker_0 = new GMarker(point, icon_0);
          GEvent.addListener(marker_0, 'click', function() {
            marker_0.openInfoWindowHtml(address_0.infowindowtext);
          });
          if(!fromAddress.enabled || 'address_0' != 'address_0') {
            if('address_0' == 'address_0')
            map.setCenter(point, 7);
            map.addOverlay(marker_0);
          }
              wagmp_map_1_obj.markers.push(marker_0);
          wagmp_map_1_obj.addresses.push(address_0);
          wagmp_map_1_obj.icons.push(icon_0);
          wagmp_map_1_obj.points.push(point);
        
        } else {
          var noZipAddress = address_0.full.replace((address_0.zip+','), '');
          geocoder.getLatLng (noZipAddress,
            function(point) {
              if(point) {
                wagmp_map_1_obj.addressFailed = false;
                addToCache(address_0.full, address_0.zip, point);
                var marker_0 = new GMarker(point, icon_0);
                GEvent.addListener(marker_0, 'click', function() {
                  marker_0.openInfoWindowHtml(address_0.infowindowtext);
                });
                if (!fromAddress.enabled || 'address_0' != 'address_0') {
                  if('address_0' == 'address_0')
                  map.setCenter(point, 7);
                  map.addOverlay(marker_0);
                }
                    wagmp_map_1_obj.markers.push(marker_0);
          wagmp_map_1_obj.addresses.push(address_0);
          wagmp_map_1_obj.icons.push(icon_0);
          wagmp_map_1_obj.points.push(point);
        
              } else {
                if (wagmp_map_1_obj.addressFailed) {
                  map.setCenter(new GLatLng(30, -98), 3);
                }
                  wagmp_map_1_obj.addressFailed = true;
              }
            }
          );
        }
      }
    );
  }

    var icon_1 = new GIcon();
    icon_1.image = 'google_javascript/images/traditionalflat_moab.png';
    icon_1.shadow = 'google_javascript/images/traditionalflat_shadow.png';
    icon_1.iconSize = new GSize(34,35);
    icon_1.shadowSize = new GSize(34,35);
    icon_1.iconAnchor = new GPoint(9,33);
    icon_1.infoWindowAnchor = new GPoint(19,0);
    icon_1.printImage = 'google_javascript/images/traditionalflat_moab.gif';
    icon_1.mozPrintImage = 'google_javascript/images/traditionalflat_moab_mozprint.png';
    icon_1.printShadow = 'google_javascript/images/traditionalflat_shadow.gif';
    icon_1.transparent = 'google_javascript/images/traditionalflat_moab_transparent.png';

    var address_1 = {
      street: '2531 Buford Road',
      city: 'Richmond',
      state: 'VA',
      zip: '23235-3419',
      country: '',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>BON AIR BAPTIST CHURCH</strong><br />2531 Buford Road<br />Richmond, VA 23235-3419</span>',
      full: '2531 Buford Road, Richmond, VA, 23235-3419',
      isdefault: false,
      addressType: 'address',
      loop: '',
      latitude: '',
      longitude: '',
      markerStyle: 'Google Traditional (flat)',
      markerColor: 'Moab'
    };
    
    if (address_1.addressType == "coordinates") {
      var cacheReturn = '';
    } else {
      var cacheReturn = searchCache(address_1.full, address_1.zip);
    }
    if (cacheReturn != "" || (address_1.addressType == "coordinates")) {
      if(address_1.addressType == "coordinates") {
        var latitude = address_1.latitude;
        var longitude = address_1.longitude;
      } else {
        var latitude = cacheReturn.substring(1,cacheReturn.indexOf(",")-1);
        var longitude = cacheReturn.substring(cacheReturn.indexOf(",")+1,(cacheReturn.length)-1);
      }
      var point = new GLatLng(latitude, longitude);
      if (point && !isNaN(latitude)) {
        wagmp_map_1_obj.addressFailed = false;
        var marker_1 = new GMarker(point, icon_1);
        GEvent.addListener(marker_1, 'click', function() {
          marker_1.openInfoWindowHtml(address_1.infowindowtext);
        });
        if(!fromAddress.enabled || 'address_1' != 'address_0') {
          if('address_1' == 'address_0')
          map.setCenter(point, 7);
          map.addOverlay(marker_1);
        }
          wagmp_map_1_obj.markers.push(marker_1);
          wagmp_map_1_obj.addresses.push(address_1);
          wagmp_map_1_obj.icons.push(icon_1);
          wagmp_map_1_obj.points.push(point);
        } else {
        if (wagmp_map_1_obj.addressFailed) {
          map.setCenter(new GLatLng(30, -98), 3);
        }
        wagmp_map_1_obj.addressFailed = true;
      }
    } else if (address_1.addressType == "address") {
      geocoder.getLatLng (
      address_1.full,
      function(point) {
        if(point) {
          this.addressFailed = false;
          addToCache(address_1.full, '', point);
          var marker_1 = new GMarker(point, icon_1);
          GEvent.addListener(marker_1, 'click', function() {
            marker_1.openInfoWindowHtml(address_1.infowindowtext);
          });
          if(!fromAddress.enabled || 'address_1' != 'address_0') {
            if('address_1' == 'address_0')
            map.setCenter(point, 7);
            map.addOverlay(marker_1);
          }
              wagmp_map_1_obj.markers.push(marker_1);
          wagmp_map_1_obj.addresses.push(address_1);
          wagmp_map_1_obj.icons.push(icon_1);
          wagmp_map_1_obj.points.push(point);
        
        } else {
          var noZipAddress = address_1.full.replace((address_1.zip+','), '');
          geocoder.getLatLng (noZipAddress,
            function(point) {
              if(point) {
                wagmp_map_1_obj.addressFailed = false;
                addToCache(address_1.full, address_1.zip, point);
                var marker_1 = new GMarker(point, icon_1);
                GEvent.addListener(marker_1, 'click', function() {
                  marker_1.openInfoWindowHtml(address_1.infowindowtext);
                });
                if (!fromAddress.enabled || 'address_1' != 'address_0') {
                  if('address_1' == 'address_0')
                  map.setCenter(point, 7);
                  map.addOverlay(marker_1);
                }
                    wagmp_map_1_obj.markers.push(marker_1);
          wagmp_map_1_obj.addresses.push(address_1);
          wagmp_map_1_obj.icons.push(icon_1);
          wagmp_map_1_obj.points.push(point);
        
              } else {
                if (wagmp_map_1_obj.addressFailed) {
                  map.setCenter(new GLatLng(30, -98), 3);
                }
                  wagmp_map_1_obj.addressFailed = true;
              }
            }
          );
        }
      }
    );
  }

    var icon_2 = new GIcon();
    icon_2.image = 'google_javascript/images/traditionalflat_granitepine.png';
    icon_2.shadow = 'google_javascript/images/traditionalflat_shadow.png';
    icon_2.iconSize = new GSize(34,35);
    icon_2.shadowSize = new GSize(34,35);
    icon_2.iconAnchor = new GPoint(9,33);
    icon_2.infoWindowAnchor = new GPoint(19,0);
    icon_2.printImage = 'google_javascript/images/traditionalflat_granitepine.gif';
    icon_2.mozPrintImage = 'google_javascript/images/traditionalflat_granitepine_mozprint.png';
    icon_2.printShadow = 'google_javascript/images/traditionalflat_shadow.gif';
    icon_2.transparent = 'google_javascript/images/traditionalflat_granitepine_transparent.png';

    var address_2 = {
      street: '4295 Aiken Dr.',
      city: 'Warrenton',
      state: 'VA',
      zip: '20187',
      country: '',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>FIRESIDE WESLEYAN CHURCH:</strong><br />4295 Aiken Dr.<br />Warrenton, VA 20187</span>',
      full: '4295 Aiken Dr., Warrenton, VA, 20187',
      isdefault: false,
      addressType: 'address',
      loop: '',
      latitude: '',
      longitude: '',
      markerStyle: 'Google Traditional (flat)',
      markerColor: 'Granite Pine'
    };
    
    if (address_2.addressType == "coordinates") {
      var cacheReturn = '';
    } else {
      var cacheReturn = searchCache(address_2.full, address_2.zip);
    }
    if (cacheReturn != "" || (address_2.addressType == "coordinates")) {
      if(address_2.addressType == "coordinates") {
        var latitude = address_2.latitude;
        var longitude = address_2.longitude;
      } else {
        var latitude = cacheReturn.substring(1,cacheReturn.indexOf(",")-1);
        var longitude = cacheReturn.substring(cacheReturn.indexOf(",")+1,(cacheReturn.length)-1);
      }
      var point = new GLatLng(latitude, longitude);
      if (point && !isNaN(latitude)) {
        wagmp_map_1_obj.addressFailed = false;
        var marker_2 = new GMarker(point, icon_2);
        GEvent.addListener(marker_2, 'click', function() {
          marker_2.openInfoWindowHtml(address_2.infowindowtext);
        });
        if(!fromAddress.enabled || 'address_2' != 'address_0') {
          if('address_2' == 'address_0')
          map.setCenter(point, 7);
          map.addOverlay(marker_2);
        }
          wagmp_map_1_obj.markers.push(marker_2);
          wagmp_map_1_obj.addresses.push(address_2);
          wagmp_map_1_obj.icons.push(icon_2);
          wagmp_map_1_obj.points.push(point);
        } else {
        if (wagmp_map_1_obj.addressFailed) {
          map.setCenter(new GLatLng(30, -98), 3);
        }
        wagmp_map_1_obj.addressFailed = true;
      }
    } else if (address_2.addressType == "address") {
      geocoder.getLatLng (
      address_2.full,
      function(point) {
        if(point) {
          this.addressFailed = false;
          addToCache(address_2.full, '', point);
          var marker_2 = new GMarker(point, icon_2);
          GEvent.addListener(marker_2, 'click', function() {
            marker_2.openInfoWindowHtml(address_2.infowindowtext);
          });
          if(!fromAddress.enabled || 'address_2' != 'address_0') {
            if('address_2' == 'address_0')
            map.setCenter(point, 7);
            map.addOverlay(marker_2);
          }
              wagmp_map_1_obj.markers.push(marker_2);
          wagmp_map_1_obj.addresses.push(address_2);
          wagmp_map_1_obj.icons.push(icon_2);
          wagmp_map_1_obj.points.push(point);
        
        } else {
          var noZipAddress = address_2.full.replace((address_2.zip+','), '');
          geocoder.getLatLng (noZipAddress,
            function(point) {
              if(point) {
                wagmp_map_1_obj.addressFailed = false;
                addToCache(address_2.full, address_2.zip, point);
                var marker_2 = new GMarker(point, icon_2);
                GEvent.addListener(marker_2, 'click', function() {
                  marker_2.openInfoWindowHtml(address_2.infowindowtext);
                });
                if (!fromAddress.enabled || 'address_2' != 'address_0') {
                  if('address_2' == 'address_0')
                  map.setCenter(point, 7);
                  map.addOverlay(marker_2);
                }
                    wagmp_map_1_obj.markers.push(marker_2);
          wagmp_map_1_obj.addresses.push(address_2);
          wagmp_map_1_obj.icons.push(icon_2);
          wagmp_map_1_obj.points.push(point);
        
              } else {
                if (wagmp_map_1_obj.addressFailed) {
                  map.setCenter(new GLatLng(30, -98), 3);
                }
                  wagmp_map_1_obj.addressFailed = true;
              }
            }
          );
        }
      }
    );
  }

    var icon_3 = new GIcon();
    icon_3.image = 'google_javascript/images/traditionalflat_desertspice.png';
    icon_3.shadow = 'google_javascript/images/traditionalflat_shadow.png';
    icon_3.iconSize = new GSize(34,35);
    icon_3.shadowSize = new GSize(34,35);
    icon_3.iconAnchor = new GPoint(9,33);
    icon_3.infoWindowAnchor = new GPoint(19,0);
    icon_3.printImage = 'google_javascript/images/traditionalflat_desertspice.gif';
    icon_3.mozPrintImage = 'google_javascript/images/traditionalflat_desertspice_mozprint.png';
    icon_3.printShadow = 'google_javascript/images/traditionalflat_shadow.gif';
    icon_3.transparent = 'google_javascript/images/traditionalflat_desertspice_transparent.png';

    var address_3 = {
      street: '1637 Holland Road',
      city: 'Suffolk',
      state: 'VA',
      zip: '23434-6734',
      country: '',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>HILLCREST BAPTIST CHURCH</strong><br />1637 Holland Road<br />Suffolk, VA 23434-6734</span>',
      full: '1637 Holland Road, Suffolk, VA, 23434-6734',
      isdefault: false,
      addressType: 'address',
      loop: '',
      latitude: '',
      longitude: '',
      markerStyle: 'Google Traditional (flat)',
      markerColor: 'Desert Spice'
    };
    
    if (address_3.addressType == "coordinates") {
      var cacheReturn = '';
    } else {
      var cacheReturn = searchCache(address_3.full, address_3.zip);
    }
    if (cacheReturn != "" || (address_3.addressType == "coordinates")) {
      if(address_3.addressType == "coordinates") {
        var latitude = address_3.latitude;
        var longitude = address_3.longitude;
      } else {
        var latitude = cacheReturn.substring(1,cacheReturn.indexOf(",")-1);
        var longitude = cacheReturn.substring(cacheReturn.indexOf(",")+1,(cacheReturn.length)-1);
      }
      var point = new GLatLng(latitude, longitude);
      if (point && !isNaN(latitude)) {
        wagmp_map_1_obj.addressFailed = false;
        var marker_3 = new GMarker(point, icon_3);
        GEvent.addListener(marker_3, 'click', function() {
          marker_3.openInfoWindowHtml(address_3.infowindowtext);
        });
        if(!fromAddress.enabled || 'address_3' != 'address_0') {
          if('address_3' == 'address_0')
          map.setCenter(point, 7);
          map.addOverlay(marker_3);
        }
          wagmp_map_1_obj.markers.push(marker_3);
          wagmp_map_1_obj.addresses.push(address_3);
          wagmp_map_1_obj.icons.push(icon_3);
          wagmp_map_1_obj.points.push(point);
        } else {
        if (wagmp_map_1_obj.addressFailed) {
          map.setCenter(new GLatLng(30, -98), 3);
        }
        wagmp_map_1_obj.addressFailed = true;
      }
    } else if (address_3.addressType == "address") {
      geocoder.getLatLng (
      address_3.full,
      function(point) {
        if(point) {
          this.addressFailed = false;
          addToCache(address_3.full, '', point);
          var marker_3 = new GMarker(point, icon_3);
          GEvent.addListener(marker_3, 'click', function() {
            marker_3.openInfoWindowHtml(address_3.infowindowtext);
          });
          if(!fromAddress.enabled || 'address_3' != 'address_0') {
            if('address_3' == 'address_0')
            map.setCenter(point, 7);
            map.addOverlay(marker_3);
          }
              wagmp_map_1_obj.markers.push(marker_3);
          wagmp_map_1_obj.addresses.push(address_3);
          wagmp_map_1_obj.icons.push(icon_3);
          wagmp_map_1_obj.points.push(point);
        
        } else {
          var noZipAddress = address_3.full.replace((address_3.zip+','), '');
          geocoder.getLatLng (noZipAddress,
            function(point) {
              if(point) {
                wagmp_map_1_obj.addressFailed = false;
                addToCache(address_3.full, address_3.zip, point);
                var marker_3 = new GMarker(point, icon_3);
                GEvent.addListener(marker_3, 'click', function() {
                  marker_3.openInfoWindowHtml(address_3.infowindowtext);
                });
                if (!fromAddress.enabled || 'address_3' != 'address_0') {
                  if('address_3' == 'address_0')
                  map.setCenter(point, 7);
                  map.addOverlay(marker_3);
                }
                    wagmp_map_1_obj.markers.push(marker_3);
          wagmp_map_1_obj.addresses.push(address_3);
          wagmp_map_1_obj.icons.push(icon_3);
          wagmp_map_1_obj.points.push(point);
        
              } else {
                if (wagmp_map_1_obj.addressFailed) {
                  map.setCenter(new GLatLng(30, -98), 3);
                }
                  wagmp_map_1_obj.addressFailed = true;
              }
            }
          );
        }
      }
    );
  }

    var icon_4 = new GIcon();
    icon_4.image = 'google_javascript/images/traditionalflat_cabosunset.png';
    icon_4.shadow = 'google_javascript/images/traditionalflat_shadow.png';
    icon_4.iconSize = new GSize(34,35);
    icon_4.shadowSize = new GSize(34,35);
    icon_4.iconAnchor = new GPoint(9,33);
    icon_4.infoWindowAnchor = new GPoint(19,0);
    icon_4.printImage = 'google_javascript/images/traditionalflat_cabosunset.gif';
    icon_4.mozPrintImage = 'google_javascript/images/traditionalflat_cabosunset_mozprint.png';
    icon_4.printShadow = 'google_javascript/images/traditionalflat_shadow.gif';
    icon_4.transparent = 'google_javascript/images/traditionalflat_cabosunset_transparent.png';

    var address_4 = {
      street: '10900 Iron Bridge Road',
      city: 'Chester',
      state: 'VA',
      zip: '23831-1437',
      country: '',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>IRONBRIDGE BAPTIST CHURCH</strong><br />10900 Iron Bridge Road<br />Chester, VA 23831-1437</span>',
      full: '10900 Iron Bridge Road, Chester, VA, 23831-1437',
      isdefault: false,
      addressType: 'address',
      loop: '',
      latitude: '',
      longitude: '',
      markerStyle: 'Google Traditional (flat)',
      markerColor: 'Cabo Sunset'
    };
    
    if (address_4.addressType == "coordinates") {
      var cacheReturn = '';
    } else {
      var cacheReturn = searchCache(address_4.full, address_4.zip);
    }
    if (cacheReturn != "" || (address_4.addressType == "coordinates")) {
      if(address_4.addressType == "coordinates") {
        var latitude = address_4.latitude;
        var longitude = address_4.longitude;
      } else {
        var latitude = cacheReturn.substring(1,cacheReturn.indexOf(",")-1);
        var longitude = cacheReturn.substring(cacheReturn.indexOf(",")+1,(cacheReturn.length)-1);
      }
      var point = new GLatLng(latitude, longitude);
      if (point && !isNaN(latitude)) {
        wagmp_map_1_obj.addressFailed = false;
        var marker_4 = new GMarker(point, icon_4);
        GEvent.addListener(marker_4, 'click', function() {
          marker_4.openInfoWindowHtml(address_4.infowindowtext);
        });
        if(!fromAddress.enabled || 'address_4' != 'address_0') {
          if('address_4' == 'address_0')
          map.setCenter(point, 7);
          map.addOverlay(marker_4);
        }
          wagmp_map_1_obj.markers.push(marker_4);
          wagmp_map_1_obj.addresses.push(address_4);
          wagmp_map_1_obj.icons.push(icon_4);
          wagmp_map_1_obj.points.push(point);
        } else {
        if (wagmp_map_1_obj.addressFailed) {
          map.setCenter(new GLatLng(30, -98), 3);
        }
        wagmp_map_1_obj.addressFailed = true;
      }
    } else if (address_4.addressType == "address") {
      geocoder.getLatLng (
      address_4.full,
      function(point) {
        if(point) {
          this.addressFailed = false;
          addToCache(address_4.full, '', point);
          var marker_4 = new GMarker(point, icon_4);
          GEvent.addListener(marker_4, 'click', function() {
            marker_4.openInfoWindowHtml(address_4.infowindowtext);
          });
          if(!fromAddress.enabled || 'address_4' != 'address_0') {
            if('address_4' == 'address_0')
            map.setCenter(point, 7);
            map.addOverlay(marker_4);
          }
              wagmp_map_1_obj.markers.push(marker_4);
          wagmp_map_1_obj.addresses.push(address_4);
          wagmp_map_1_obj.icons.push(icon_4);
          wagmp_map_1_obj.points.push(point);
        
        } else {
          var noZipAddress = address_4.full.replace((address_4.zip+','), '');
          geocoder.getLatLng (noZipAddress,
            function(point) {
              if(point) {
                wagmp_map_1_obj.addressFailed = false;
                addToCache(address_4.full, address_4.zip, point);
                var marker_4 = new GMarker(point, icon_4);
                GEvent.addListener(marker_4, 'click', function() {
                  marker_4.openInfoWindowHtml(address_4.infowindowtext);
                });
                if (!fromAddress.enabled || 'address_4' != 'address_0') {
                  if('address_4' == 'address_0')
                  map.setCenter(point, 7);
                  map.addOverlay(marker_4);
                }
                    wagmp_map_1_obj.markers.push(marker_4);
          wagmp_map_1_obj.addresses.push(address_4);
          wagmp_map_1_obj.icons.push(icon_4);
          wagmp_map_1_obj.points.push(point);
        
              } else {
                if (wagmp_map_1_obj.addressFailed) {
                  map.setCenter(new GLatLng(30, -98), 3);
                }
                  wagmp_map_1_obj.addressFailed = true;
              }
            }
          );
        }
      }
    );
  }

    var icon_5 = new GIcon();
    icon_5.image = 'google_javascript/images/traditionalflat_tahitisea.png';
    icon_5.shadow = 'google_javascript/images/traditionalflat_shadow.png';
    icon_5.iconSize = new GSize(34,35);
    icon_5.shadowSize = new GSize(34,35);
    icon_5.iconAnchor = new GPoint(9,33);
    icon_5.infoWindowAnchor = new GPoint(19,0);
    icon_5.printImage = 'google_javascript/images/traditionalflat_tahitisea.gif';
    icon_5.mozPrintImage = 'google_javascript/images/traditionalflat_tahitisea_mozprint.png';
    icon_5.printShadow = 'google_javascript/images/traditionalflat_shadow.gif';
    icon_5.transparent = 'google_javascript/images/traditionalflat_tahitisea_transparent.png';

    var address_5 = {
      street: '873 Little Neck Road',
      city: 'Virginia Beach',
      state: 'VA',
      zip: '23452-5904',
      country: '',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>KING\'S GRANT BAPTIST CHURCH</strong><br />873 Little Neck Road<br />Virginia Beach, VA 23452-5904</span>',
      full: '873 Little Neck Road, Virginia Beach, VA, 23452-5904',
      isdefault: false,
      addressType: 'address',
      loop: '',
      latitude: '',
      longitude: '',
      markerStyle: 'Google Traditional (flat)',
      markerColor: 'Tahiti Sea'
    };
    
    if (address_5.addressType == "coordinates") {
      var cacheReturn = '';
    } else {
      var cacheReturn = searchCache(address_5.full, address_5.zip);
    }
    if (cacheReturn != "" || (address_5.addressType == "coordinates")) {
      if(address_5.addressType == "coordinates") {
        var latitude = address_5.latitude;
        var longitude = address_5.longitude;
      } else {
        var latitude = cacheReturn.substring(1,cacheReturn.indexOf(",")-1);
        var longitude = cacheReturn.substring(cacheReturn.indexOf(",")+1,(cacheReturn.length)-1);
      }
      var point = new GLatLng(latitude, longitude);
      if (point && !isNaN(latitude)) {
        wagmp_map_1_obj.addressFailed = false;
        var marker_5 = new GMarker(point, icon_5);
        GEvent.addListener(marker_5, 'click', function() {
          marker_5.openInfoWindowHtml(address_5.infowindowtext);
        });
        if(!fromAddress.enabled || 'address_5' != 'address_0') {
          if('address_5' == 'address_0')
          map.setCenter(point, 7);
          map.addOverlay(marker_5);
        }
          wagmp_map_1_obj.markers.push(marker_5);
          wagmp_map_1_obj.addresses.push(address_5);
          wagmp_map_1_obj.icons.push(icon_5);
          wagmp_map_1_obj.points.push(point);
        } else {
        if (wagmp_map_1_obj.addressFailed) {
          map.setCenter(new GLatLng(30, -98), 3);
        }
        wagmp_map_1_obj.addressFailed = true;
      }
    } else if (address_5.addressType == "address") {
      geocoder.getLatLng (
      address_5.full,
      function(point) {
        if(point) {
          this.addressFailed = false;
          addToCache(address_5.full, '', point);
          var marker_5 = new GMarker(point, icon_5);
          GEvent.addListener(marker_5, 'click', function() {
            marker_5.openInfoWindowHtml(address_5.infowindowtext);
          });
          if(!fromAddress.enabled || 'address_5' != 'address_0') {
            if('address_5' == 'address_0')
            map.setCenter(point, 7);
            map.addOverlay(marker_5);
          }
              wagmp_map_1_obj.markers.push(marker_5);
          wagmp_map_1_obj.addresses.push(address_5);
          wagmp_map_1_obj.icons.push(icon_5);
          wagmp_map_1_obj.points.push(point);
        
        } else {
          var noZipAddress = address_5.full.replace((address_5.zip+','), '');
          geocoder.getLatLng (noZipAddress,
            function(point) {
              if(point) {
                wagmp_map_1_obj.addressFailed = false;
                addToCache(address_5.full, address_5.zip, point);
                var marker_5 = new GMarker(point, icon_5);
                GEvent.addListener(marker_5, 'click', function() {
                  marker_5.openInfoWindowHtml(address_5.infowindowtext);
                });
                if (!fromAddress.enabled || 'address_5' != 'address_0') {
                  if('address_5' == 'address_0')
                  map.setCenter(point, 7);
                  map.addOverlay(marker_5);
                }
                    wagmp_map_1_obj.markers.push(marker_5);
          wagmp_map_1_obj.addresses.push(address_5);
          wagmp_map_1_obj.icons.push(icon_5);
          wagmp_map_1_obj.points.push(point);
        
              } else {
                if (wagmp_map_1_obj.addressFailed) {
                  map.setCenter(new GLatLng(30, -98), 3);
                }
                  wagmp_map_1_obj.addressFailed = true;
              }
            }
          );
        }
      }
    );
  }

    var icon_6 = new GIcon();
    icon_6.image = 'google_javascript/images/traditionalflat_poppy.png';
    icon_6.shadow = 'google_javascript/images/traditionalflat_shadow.png';
    icon_6.iconSize = new GSize(34,35);
    icon_6.shadowSize = new GSize(34,35);
    icon_6.iconAnchor = new GPoint(9,33);
    icon_6.infoWindowAnchor = new GPoint(19,0);
    icon_6.printImage = 'google_javascript/images/traditionalflat_poppy.gif';
    icon_6.mozPrintImage = 'google_javascript/images/traditionalflat_poppy_mozprint.png';
    icon_6.printShadow = 'google_javascript/images/traditionalflat_shadow.gif';
    icon_6.transparent = 'google_javascript/images/traditionalflat_poppy_transparent.png';

    var address_6 = {
      street: 'One Church Lane',
      city: 'Locust Grove',
      state: 'VA',
      zip: '22508',
      country: '',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>LAKE OF THE WOODS CHURCH</strong><br />One Church Lane<br />Locust Grove, VA 22508</span>',
      full: 'One Church Lane, Locust Grove, VA, 22508',
      isdefault: false,
      addressType: 'address',
      loop: '',
      latitude: '',
      longitude: '',
      markerStyle: 'Google Traditional (flat)',
      markerColor: 'Poppy'
    };
    
    if (address_6.addressType == "coordinates") {
      var cacheReturn = '';
    } else {
      var cacheReturn = searchCache(address_6.full, address_6.zip);
    }
    if (cacheReturn != "" || (address_6.addressType == "coordinates")) {
      if(address_6.addressType == "coordinates") {
        var latitude = address_6.latitude;
        var longitude = address_6.longitude;
      } else {
        var latitude = cacheReturn.substring(1,cacheReturn.indexOf(",")-1);
        var longitude = cacheReturn.substring(cacheReturn.indexOf(",")+1,(cacheReturn.length)-1);
      }
      var point = new GLatLng(latitude, longitude);
      if (point && !isNaN(latitude)) {
        wagmp_map_1_obj.addressFailed = false;
        var marker_6 = new GMarker(point, icon_6);
        GEvent.addListener(marker_6, 'click', function() {
          marker_6.openInfoWindowHtml(address_6.infowindowtext);
        });
        if(!fromAddress.enabled || 'address_6' != 'address_0') {
          if('address_6' == 'address_0')
          map.setCenter(point, 7);
          map.addOverlay(marker_6);
        }
          wagmp_map_1_obj.markers.push(marker_6);
          wagmp_map_1_obj.addresses.push(address_6);
          wagmp_map_1_obj.icons.push(icon_6);
          wagmp_map_1_obj.points.push(point);
        } else {
        if (wagmp_map_1_obj.addressFailed) {
          map.setCenter(new GLatLng(30, -98), 3);
        }
        wagmp_map_1_obj.addressFailed = true;
      }
    } else if (address_6.addressType == "address") {
      geocoder.getLatLng (
      address_6.full,
      function(point) {
        if(point) {
          this.addressFailed = false;
          addToCache(address_6.full, '', point);
          var marker_6 = new GMarker(point, icon_6);
          GEvent.addListener(marker_6, 'click', function() {
            marker_6.openInfoWindowHtml(address_6.infowindowtext);
          });
          if(!fromAddress.enabled || 'address_6' != 'address_0') {
            if('address_6' == 'address_0')
            map.setCenter(point, 7);
            map.addOverlay(marker_6);
          }
              wagmp_map_1_obj.markers.push(marker_6);
          wagmp_map_1_obj.addresses.push(address_6);
          wagmp_map_1_obj.icons.push(icon_6);
          wagmp_map_1_obj.points.push(point);
        
        } else {
          var noZipAddress = address_6.full.replace((address_6.zip+','), '');
          geocoder.getLatLng (noZipAddress,
            function(point) {
              if(point) {
                wagmp_map_1_obj.addressFailed = false;
                addToCache(address_6.full, address_6.zip, point);
                var marker_6 = new GMarker(point, icon_6);
                GEvent.addListener(marker_6, 'click', function() {
                  marker_6.openInfoWindowHtml(address_6.infowindowtext);
                });
                if (!fromAddress.enabled || 'address_6' != 'address_0') {
                  if('address_6' == 'address_0')
                  map.setCenter(point, 7);
                  map.addOverlay(marker_6);
                }
                    wagmp_map_1_obj.markers.push(marker_6);
          wagmp_map_1_obj.addresses.push(address_6);
          wagmp_map_1_obj.icons.push(icon_6);
          wagmp_map_1_obj.points.push(point);
        
              } else {
                if (wagmp_map_1_obj.addressFailed) {
                  map.setCenter(new GLatLng(30, -98), 3);
                }
                  wagmp_map_1_obj.addressFailed = true;
              }
            }
          );
        }
      }
    );
  }

    var icon_7 = new GIcon();
    icon_7.image = 'google_javascript/images/traditionalflat_nautica.png';
    icon_7.shadow = 'google_javascript/images/traditionalflat_shadow.png';
    icon_7.iconSize = new GSize(34,35);
    icon_7.shadowSize = new GSize(34,35);
    icon_7.iconAnchor = new GPoint(9,33);
    icon_7.infoWindowAnchor = new GPoint(19,0);
    icon_7.printImage = 'google_javascript/images/traditionalflat_nautica.gif';
    icon_7.mozPrintImage = 'google_javascript/images/traditionalflat_nautica_mozprint.png';
    icon_7.printShadow = 'google_javascript/images/traditionalflat_shadow.gif';
    icon_7.transparent = 'google_javascript/images/traditionalflat_nautica_transparent.png';

    var address_7 = {
      street: '11220 Nuckols Road',
      city: 'Glen Allen',
      state: 'VA',
      zip: '23059',
      country: '',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>MOUNT VERNON BAPTIST CHURCH</strong><br />11220 Nuckols Road<br />Glen Allen, VA 23059</span>',
      full: '11220 Nuckols Road, Glen Allen, VA, 23059',
      isdefault: false,
      addressType: 'address',
      loop: '',
      latitude: '',
      longitude: '',
      markerStyle: 'Google Traditional (flat)',
      markerColor: 'Nautica'
    };
    
    if (address_7.addressType == "coordinates") {
      var cacheReturn = '';
    } else {
      var cacheReturn = searchCache(address_7.full, address_7.zip);
    }
    if (cacheReturn != "" || (address_7.addressType == "coordinates")) {
      if(address_7.addressType == "coordinates") {
        var latitude = address_7.latitude;
        var longitude = address_7.longitude;
      } else {
        var latitude = cacheReturn.substring(1,cacheReturn.indexOf(",")-1);
        var longitude = cacheReturn.substring(cacheReturn.indexOf(",")+1,(cacheReturn.length)-1);
      }
      var point = new GLatLng(latitude, longitude);
      if (point && !isNaN(latitude)) {
        wagmp_map_1_obj.addressFailed = false;
        var marker_7 = new GMarker(point, icon_7);
        GEvent.addListener(marker_7, 'click', function() {
          marker_7.openInfoWindowHtml(address_7.infowindowtext);
        });
        if(!fromAddress.enabled || 'address_7' != 'address_0') {
          if('address_7' == 'address_0')
          map.setCenter(point, 7);
          map.addOverlay(marker_7);
        }
          wagmp_map_1_obj.markers.push(marker_7);
          wagmp_map_1_obj.addresses.push(address_7);
          wagmp_map_1_obj.icons.push(icon_7);
          wagmp_map_1_obj.points.push(point);
        } else {
        if (wagmp_map_1_obj.addressFailed) {
          map.setCenter(new GLatLng(30, -98), 3);
        }
        wagmp_map_1_obj.addressFailed = true;
      }
    } else if (address_7.addressType == "address") {
      geocoder.getLatLng (
      address_7.full,
      function(point) {
        if(point) {
          this.addressFailed = false;
          addToCache(address_7.full, '', point);
          var marker_7 = new GMarker(point, icon_7);
          GEvent.addListener(marker_7, 'click', function() {
            marker_7.openInfoWindowHtml(address_7.infowindowtext);
          });
          if(!fromAddress.enabled || 'address_7' != 'address_0') {
            if('address_7' == 'address_0')
            map.setCenter(point, 7);
            map.addOverlay(marker_7);
          }
              wagmp_map_1_obj.markers.push(marker_7);
          wagmp_map_1_obj.addresses.push(address_7);
          wagmp_map_1_obj.icons.push(icon_7);
          wagmp_map_1_obj.points.push(point);
        
        } else {
          var noZipAddress = address_7.full.replace((address_7.zip+','), '');
          geocoder.getLatLng (noZipAddress,
            function(point) {
              if(point) {
                wagmp_map_1_obj.addressFailed = false;
                addToCache(address_7.full, address_7.zip, point);
                var marker_7 = new GMarker(point, icon_7);
                GEvent.addListener(marker_7, 'click', function() {
                  marker_7.openInfoWindowHtml(address_7.infowindowtext);
                });
                if (!fromAddress.enabled || 'address_7' != 'address_0') {
                  if('address_7' == 'address_0')
                  map.setCenter(point, 7);
                  map.addOverlay(marker_7);
                }
                    wagmp_map_1_obj.markers.push(marker_7);
          wagmp_map_1_obj.addresses.push(address_7);
          wagmp_map_1_obj.icons.push(icon_7);
          wagmp_map_1_obj.points.push(point);
        
              } else {
                if (wagmp_map_1_obj.addressFailed) {
                  map.setCenter(new GLatLng(30, -98), 3);
                }
                  wagmp_map_1_obj.addressFailed = true;
              }
            }
          );
        }
      }
    );
  }

    var icon_8 = new GIcon();
    icon_8.image = 'google_javascript/images/traditionalflat_deepjungle.png';
    icon_8.shadow = 'google_javascript/images/traditionalflat_shadow.png';
    icon_8.iconSize = new GSize(34,35);
    icon_8.shadowSize = new GSize(34,35);
    icon_8.iconAnchor = new GPoint(9,33);
    icon_8.infoWindowAnchor = new GPoint(19,0);
    icon_8.printImage = 'google_javascript/images/traditionalflat_deepjungle.gif';
    icon_8.mozPrintImage = 'google_javascript/images/traditionalflat_deepjungle_mozprint.png';
    icon_8.printShadow = 'google_javascript/images/traditionalflat_shadow.gif';
    icon_8.transparent = 'google_javascript/images/traditionalflat_deepjungle_transparent.png';

    var address_8 = {
      street: '4215 Melrose Avenue',
      city: 'Roanoke',
      state: 'VA',
      zip: '24017',
      country: '',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>NEW CENTURY CHURCH</strong><br />4215 Melrose Avenue<br />Roanoke, VA 24017</span>',
      full: '4215 Melrose Avenue, Roanoke, VA, 24017',
      isdefault: false,
      addressType: 'address',
      loop: '',
      latitude: '',
      longitude: '',
      markerStyle: 'Google Traditional (flat)',
      markerColor: 'Deep Jungle'
    };
    
    if (address_8.addressType == "coordinates") {
      var cacheReturn = '';
    } else {
      var cacheReturn = searchCache(address_8.full, address_8.zip);
    }
    if (cacheReturn != "" || (address_8.addressType == "coordinates")) {
      if(address_8.addressType == "coordinates") {
        var latitude = address_8.latitude;
        var longitude = address_8.longitude;
      } else {
        var latitude = cacheReturn.substring(1,cacheReturn.indexOf(",")-1);
        var longitude = cacheReturn.substring(cacheReturn.indexOf(",")+1,(cacheReturn.length)-1);
      }
      var point = new GLatLng(latitude, longitude);
      if (point && !isNaN(latitude)) {
        wagmp_map_1_obj.addressFailed = false;
        var marker_8 = new GMarker(point, icon_8);
        GEvent.addListener(marker_8, 'click', function() {
          marker_8.openInfoWindowHtml(address_8.infowindowtext);
        });
        if(!fromAddress.enabled || 'address_8' != 'address_0') {
          if('address_8' == 'address_0')
          map.setCenter(point, 7);
          map.addOverlay(marker_8);
        }
          wagmp_map_1_obj.markers.push(marker_8);
          wagmp_map_1_obj.addresses.push(address_8);
          wagmp_map_1_obj.icons.push(icon_8);
          wagmp_map_1_obj.points.push(point);
        } else {
        if (wagmp_map_1_obj.addressFailed) {
          map.setCenter(new GLatLng(30, -98), 3);
        }
        wagmp_map_1_obj.addressFailed = true;
      }
    } else if (address_8.addressType == "address") {
      geocoder.getLatLng (
      address_8.full,
      function(point) {
        if(point) {
          this.addressFailed = false;
          addToCache(address_8.full, '', point);
          var marker_8 = new GMarker(point, icon_8);
          GEvent.addListener(marker_8, 'click', function() {
            marker_8.openInfoWindowHtml(address_8.infowindowtext);
          });
          if(!fromAddress.enabled || 'address_8' != 'address_0') {
            if('address_8' == 'address_0')
            map.setCenter(point, 7);
            map.addOverlay(marker_8);
          }
              wagmp_map_1_obj.markers.push(marker_8);
          wagmp_map_1_obj.addresses.push(address_8);
          wagmp_map_1_obj.icons.push(icon_8);
          wagmp_map_1_obj.points.push(point);
        
        } else {
          var noZipAddress = address_8.full.replace((address_8.zip+','), '');
          geocoder.getLatLng (noZipAddress,
            function(point) {
              if(point) {
                wagmp_map_1_obj.addressFailed = false;
                addToCache(address_8.full, address_8.zip, point);
                var marker_8 = new GMarker(point, icon_8);
                GEvent.addListener(marker_8, 'click', function() {
                  marker_8.openInfoWindowHtml(address_8.infowindowtext);
                });
                if (!fromAddress.enabled || 'address_8' != 'address_0') {
                  if('address_8' == 'address_0')
                  map.setCenter(point, 7);
                  map.addOverlay(marker_8);
                }
                    wagmp_map_1_obj.markers.push(marker_8);
          wagmp_map_1_obj.addresses.push(address_8);
          wagmp_map_1_obj.icons.push(icon_8);
          wagmp_map_1_obj.points.push(point);
        
              } else {
                if (wagmp_map_1_obj.addressFailed) {
                  map.setCenter(new GLatLng(30, -98), 3);
                }
                  wagmp_map_1_obj.addressFailed = true;
              }
            }
          );
        }
      }
    );
  }

    var icon_9 = new GIcon();
    icon_9.image = 'google_javascript/images/traditionalflat_slate.png';
    icon_9.shadow = 'google_javascript/images/traditionalflat_shadow.png';
    icon_9.iconSize = new GSize(34,35);
    icon_9.shadowSize = new GSize(34,35);
    icon_9.iconAnchor = new GPoint(9,33);
    icon_9.infoWindowAnchor = new GPoint(19,0);
    icon_9.printImage = 'google_javascript/images/traditionalflat_slate.gif';
    icon_9.mozPrintImage = 'google_javascript/images/traditionalflat_slate_mozprint.png';
    icon_9.printShadow = 'google_javascript/images/traditionalflat_shadow.gif';
    icon_9.transparent = 'google_javascript/images/traditionalflat_slate_transparent.png';

    var address_9 = {
      street: '8508 Beaver Bridge Road',
      city: 'Moseley',
      state: 'VA',
      zip: '23120',
      country: '',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>PARKWAY BAPTIST CHURCH</strong><br />8508 Beaver Bridge Road<br />Moseley, VA 23120</span>',
      full: '8508 Beaver Bridge Road, Moseley, VA, 23120',
      isdefault: false,
      addressType: 'address',
      loop: '',
      latitude: '',
      longitude: '',
      markerStyle: 'Google Traditional (flat)',
      markerColor: 'Slate'
    };
    
    if (address_9.addressType == "coordinates") {
      var cacheReturn = '';
    } else {
      var cacheReturn = searchCache(address_9.full, address_9.zip);
    }
    if (cacheReturn != "" || (address_9.addressType == "coordinates")) {
      if(address_9.addressType == "coordinates") {
        var latitude = address_9.latitude;
        var longitude = address_9.longitude;
      } else {
        var latitude = cacheReturn.substring(1,cacheReturn.indexOf(",")-1);
        var longitude = cacheReturn.substring(cacheReturn.indexOf(",")+1,(cacheReturn.length)-1);
      }
      var point = new GLatLng(latitude, longitude);
      if (point && !isNaN(latitude)) {
        wagmp_map_1_obj.addressFailed = false;
        var marker_9 = new GMarker(point, icon_9);
        GEvent.addListener(marker_9, 'click', function() {
          marker_9.openInfoWindowHtml(address_9.infowindowtext);
        });
        if(!fromAddress.enabled || 'address_9' != 'address_0') {
          if('address_9' == 'address_0')
          map.setCenter(point, 7);
          map.addOverlay(marker_9);
        }
          wagmp_map_1_obj.markers.push(marker_9);
          wagmp_map_1_obj.addresses.push(address_9);
          wagmp_map_1_obj.icons.push(icon_9);
          wagmp_map_1_obj.points.push(point);
        } else {
        if (wagmp_map_1_obj.addressFailed) {
          map.setCenter(new GLatLng(30, -98), 3);
        }
        wagmp_map_1_obj.addressFailed = true;
      }
    } else if (address_9.addressType == "address") {
      geocoder.getLatLng (
      address_9.full,
      function(point) {
        if(point) {
          this.addressFailed = false;
          addToCache(address_9.full, '', point);
          var marker_9 = new GMarker(point, icon_9);
          GEvent.addListener(marker_9, 'click', function() {
            marker_9.openInfoWindowHtml(address_9.infowindowtext);
          });
          if(!fromAddress.enabled || 'address_9' != 'address_0') {
            if('address_9' == 'address_0')
            map.setCenter(point, 7);
            map.addOverlay(marker_9);
          }
              wagmp_map_1_obj.markers.push(marker_9);
          wagmp_map_1_obj.addresses.push(address_9);
          wagmp_map_1_obj.icons.push(icon_9);
          wagmp_map_1_obj.points.push(point);
        
        } else {
          var noZipAddress = address_9.full.replace((address_9.zip+','), '');
          geocoder.getLatLng (noZipAddress,
            function(point) {
              if(point) {
                wagmp_map_1_obj.addressFailed = false;
                addToCache(address_9.full, address_9.zip, point);
                var marker_9 = new GMarker(point, icon_9);
                GEvent.addListener(marker_9, 'click', function() {
                  marker_9.openInfoWindowHtml(address_9.infowindowtext);
                });
                if (!fromAddress.enabled || 'address_9' != 'address_0') {
                  if('address_9' == 'address_0')
                  map.setCenter(point, 7);
                  map.addOverlay(marker_9);
                }
                    wagmp_map_1_obj.markers.push(marker_9);
          wagmp_map_1_obj.addresses.push(address_9);
          wagmp_map_1_obj.icons.push(icon_9);
          wagmp_map_1_obj.points.push(point);
        
              } else {
                if (wagmp_map_1_obj.addressFailed) {
                  map.setCenter(new GLatLng(30, -98), 3);
                }
                  wagmp_map_1_obj.addressFailed = true;
              }
            }
          );
        }
      }
    );
  }

    var icon_10 = new GIcon();
    icon_10.image = 'google_javascript/images/traditionalflat_moab.png';
    icon_10.shadow = 'google_javascript/images/traditionalflat_shadow.png';
    icon_10.iconSize = new GSize(34,35);
    icon_10.shadowSize = new GSize(34,35);
    icon_10.iconAnchor = new GPoint(9,33);
    icon_10.infoWindowAnchor = new GPoint(19,0);
    icon_10.printImage = 'google_javascript/images/traditionalflat_moab.gif';
    icon_10.mozPrintImage = 'google_javascript/images/traditionalflat_moab_mozprint.png';
    icon_10.printShadow = 'google_javascript/images/traditionalflat_shadow.gif';
    icon_10.transparent = 'google_javascript/images/traditionalflat_moab_transparent.png';

    var address_10 = {
      street: '7511 North Spring Run Road',
      city: 'Midlothian',
      state: 'VA',
      zip: '23112',
      country: '',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>SWIFT CREEK BAPTIST CHURCH</strong><br />7511 North Spring Run Road<br />Midlothian, VA 23112</span>',
      full: '7511 North Spring Run Road, Midlothian, VA, 23112',
      isdefault: false,
      addressType: 'address',
      loop: '',
      latitude: '',
      longitude: '',
      markerStyle: 'Google Traditional (flat)',
      markerColor: 'Moab'
    };
    
    if (address_10.addressType == "coordinates") {
      var cacheReturn = '';
    } else {
      var cacheReturn = searchCache(address_10.full, address_10.zip);
    }
    if (cacheReturn != "" || (address_10.addressType == "coordinates")) {
      if(address_10.addressType == "coordinates") {
        var latitude = address_10.latitude;
        var longitude = address_10.longitude;
      } else {
        var latitude = cacheReturn.substring(1,cacheReturn.indexOf(",")-1);
        var longitude = cacheReturn.substring(cacheReturn.indexOf(",")+1,(cacheReturn.length)-1);
      }
      var point = new GLatLng(latitude, longitude);
      if (point && !isNaN(latitude)) {
        wagmp_map_1_obj.addressFailed = false;
        var marker_10 = new GMarker(point, icon_10);
        GEvent.addListener(marker_10, 'click', function() {
          marker_10.openInfoWindowHtml(address_10.infowindowtext);
        });
        if(!fromAddress.enabled || 'address_10' != 'address_0') {
          if('address_10' == 'address_0')
          map.setCenter(point, 7);
          map.addOverlay(marker_10);
        }
          wagmp_map_1_obj.markers.push(marker_10);
          wagmp_map_1_obj.addresses.push(address_10);
          wagmp_map_1_obj.icons.push(icon_10);
          wagmp_map_1_obj.points.push(point);
        } else {
        if (wagmp_map_1_obj.addressFailed) {
          map.setCenter(new GLatLng(30, -98), 3);
        }
        wagmp_map_1_obj.addressFailed = true;
      }
    } else if (address_10.addressType == "address") {
      geocoder.getLatLng (
      address_10.full,
      function(point) {
        if(point) {
          this.addressFailed = false;
          addToCache(address_10.full, '', point);
          var marker_10 = new GMarker(point, icon_10);
          GEvent.addListener(marker_10, 'click', function() {
            marker_10.openInfoWindowHtml(address_10.infowindowtext);
          });
          if(!fromAddress.enabled || 'address_10' != 'address_0') {
            if('address_10' == 'address_0')
            map.setCenter(point, 7);
            map.addOverlay(marker_10);
          }
              wagmp_map_1_obj.markers.push(marker_10);
          wagmp_map_1_obj.addresses.push(address_10);
          wagmp_map_1_obj.icons.push(icon_10);
          wagmp_map_1_obj.points.push(point);
        
        } else {
          var noZipAddress = address_10.full.replace((address_10.zip+','), '');
          geocoder.getLatLng (noZipAddress,
            function(point) {
              if(point) {
                wagmp_map_1_obj.addressFailed = false;
                addToCache(address_10.full, address_10.zip, point);
                var marker_10 = new GMarker(point, icon_10);
                GEvent.addListener(marker_10, 'click', function() {
                  marker_10.openInfoWindowHtml(address_10.infowindowtext);
                });
                if (!fromAddress.enabled || 'address_10' != 'address_0') {
                  if('address_10' == 'address_0')
                  map.setCenter(point, 7);
                  map.addOverlay(marker_10);
                }
                    wagmp_map_1_obj.markers.push(marker_10);
          wagmp_map_1_obj.addresses.push(address_10);
          wagmp_map_1_obj.icons.push(icon_10);
          wagmp_map_1_obj.points.push(point);
        
              } else {
                if (wagmp_map_1_obj.addressFailed) {
                  map.setCenter(new GLatLng(30, -98), 3);
                }
                  wagmp_map_1_obj.addressFailed = true;
              }
            }
          );
        }
      }
    );
  }

    var icon_11 = new GIcon();
    icon_11.image = 'google_javascript/images/traditionalflat_pacifica.png';
    icon_11.shadow = 'google_javascript/images/traditionalflat_shadow.png';
    icon_11.iconSize = new GSize(34,35);
    icon_11.shadowSize = new GSize(34,35);
    icon_11.iconAnchor = new GPoint(9,33);
    icon_11.infoWindowAnchor = new GPoint(19,0);
    icon_11.printImage = 'google_javascript/images/traditionalflat_pacifica.gif';
    icon_11.mozPrintImage = 'google_javascript/images/traditionalflat_pacifica_mozprint.png';
    icon_11.printShadow = 'google_javascript/images/traditionalflat_shadow.gif';
    icon_11.transparent = 'google_javascript/images/traditionalflat_pacifica_transparent.png';

    var address_11 = {
      street: '15396 Patrick Henry Hwy',
      city: 'Amelia',
      state: 'VA',
      zip: '23002',
      country: '',
      infowindow: 'custom',
      infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>AMELIA COMMUNITY CHURCH</strong><br />15396 Patrick Henry Hwy<br />Amelia, VA 23002</span>',
      full: '15396 Patrick Henry Hwy, Amelia, VA, 23002',
      isdefault: true,
      addressType: 'address',
      loop: '',
      latitude: '',
      longitude: '',
      markerStyle: 'Google Traditional (flat)',
      markerColor: 'Pacifica'
    };
    
    if (address_11.addressType == "coordinates") {
      var cacheReturn = '';
    } else {
      var cacheReturn = searchCache(address_11.full, address_11.zip);
    }
    if (cacheReturn != "" || (address_11.addressType == "coordinates")) {
      if(address_11.addressType == "coordinates") {
        var latitude = address_11.latitude;
        var longitude = address_11.longitude;
      } else {
        var latitude = cacheReturn.substring(1,cacheReturn.indexOf(",")-1);
        var longitude = cacheReturn.substring(cacheReturn.indexOf(",")+1,(cacheReturn.length)-1);
      }
      var point = new GLatLng(latitude, longitude);
      if (point && !isNaN(latitude)) {
        wagmp_map_1_obj.addressFailed = false;
        var marker_11 = new GMarker(point, icon_11);
        GEvent.addListener(marker_11, 'click', function() {
          marker_11.openInfoWindowHtml(address_11.infowindowtext);
        });
        if(!fromAddress.enabled || 'address_11' != 'address_0') {
          if('address_11' == 'address_0')
          map.setCenter(point, 7);
          map.addOverlay(marker_11);
if('address_11' == 'address_0')
            marker_11.openInfoWindowHtml(address_11.infowindowtext);
        }
          wagmp_map_1_obj.markers.push(marker_11);
          wagmp_map_1_obj.addresses.push(address_11);
          wagmp_map_1_obj.icons.push(icon_11);
          wagmp_map_1_obj.points.push(point);
        } else {
        if (wagmp_map_1_obj.addressFailed) {
          map.setCenter(new GLatLng(30, -98), 3);
        }
        wagmp_map_1_obj.addressFailed = true;
      }
    } else if (address_11.addressType == "address") {
      geocoder.getLatLng (
      address_11.full,
      function(point) {
        if(point) {
          this.addressFailed = false;
          addToCache(address_11.full, '', point);
          var marker_11 = new GMarker(point, icon_11);
          GEvent.addListener(marker_11, 'click', function() {
            marker_11.openInfoWindowHtml(address_11.infowindowtext);
          });
          if(!fromAddress.enabled || 'address_11' != 'address_0') {
            if('address_11' == 'address_0')
            map.setCenter(point, 7);
            map.addOverlay(marker_11);
if('address_11' == 'address_0')
            marker_11.openInfoWindowHtml(address_11.infowindowtext);
          }
              wagmp_map_1_obj.markers.push(marker_11);
          wagmp_map_1_obj.addresses.push(address_11);
          wagmp_map_1_obj.icons.push(icon_11);
          wagmp_map_1_obj.points.push(point);
        
        } else {
          var noZipAddress = address_11.full.replace((address_11.zip+','), '');
          geocoder.getLatLng (noZipAddress,
            function(point) {
              if(point) {
                wagmp_map_1_obj.addressFailed = false;
                addToCache(address_11.full, address_11.zip, point);
                var marker_11 = new GMarker(point, icon_11);
                GEvent.addListener(marker_11, 'click', function() {
                  marker_11.openInfoWindowHtml(address_11.infowindowtext);
                });
                if (!fromAddress.enabled || 'address_11' != 'address_0') {
                  if('address_11' == 'address_0')
                  map.setCenter(point, 7);
                  map.addOverlay(marker_11);
if('address_11' == 'address_0')
            marker_11.openInfoWindowHtml(address_11.infowindowtext);
                }
                    wagmp_map_1_obj.markers.push(marker_11);
          wagmp_map_1_obj.addresses.push(address_11);
          wagmp_map_1_obj.icons.push(icon_11);
          wagmp_map_1_obj.points.push(point);
        
              } else {
                if (wagmp_map_1_obj.addressFailed) {
                  map.setCenter(new GLatLng(30, -98), 3);
                }
                  wagmp_map_1_obj.addressFailed = true;
              }
            }
          );
        }
      }
    );
  }


  }
}
