rendered paste bodyvar Zoom = 3;var lat=39;var lon=-95;var layer;var regionLayer;var mapType=0;function setMapMOA(){ setMapTypeMOAs(); initialize();}function setMapAlert(){ setMapTypeAlert(); initialize();}function region1() { lat=44; lon=-70.6; Zoom=6 regionLayer="Region = 1"; if(mapType=0){ setMapMOA(); }else if(mapType=1){ setMapTypeAlert(); }else {setMapTypeMOAs();} initialize(); $("#regionID").text("Region I: CT, MA, ME, NH, RI, VT");}function setMapTypeMOAs(){ mapType=0; layer = new google.maps.FusionTablesLayer({ query: { select: 'geometry', from: '2512566', where: regionLayer }, styles: [{ where: "'Certified' = '0'", polygonOptions: { fillColor: "#FF0000", strokeWeight: "int" }, polylineOptions: { strokeColor: "#", strokeWeight: "int" } }, { where: "'Certified' = '1'", polygonOptions: { fillColor: "#FFFF33", strokeWeight: "int" }, polylineOptions: { strokeColor: "#", strokeWeight: "int" } }, { where: "'Certified' = '2'", polygonOptions: { fillColor: "#0000FF", strokeWeight: "int" }, polylineOptions: { strokeColor: "#", strokeWeight: "int" } }, { where: "'Certified' = '3'", polygonOptions: { fillColor: "#00FF00", strokeWeight: "int" }, polylineOptions: { strokeColor: "#", strokeWeight: "int" } }] });}function setMapTypeAlert(){ mapType=1; layer = new google.maps.FusionTablesLayer({ query: { select: 'geometry', from: '2512566', where: regionLayer }, styles: [{ where: "'Alerting Authorities' = '1'", polygonOptions: { fillColor: "#FF0000", strokeWeight: "int" }, polylineOptions: { strokeColor: "#", strokeWeight: "int" } }, { where: "'Alerting Authorities' = '2'", polygonOptions: { fillColor: "#0000FF", strokeWeight: "int" }, polylineOptions: { strokeColor: "#", strokeWeight: "int" } }, { where: "'Alerting Authorities' = '3'", polygonOptions: { fillColor: "#00FF00", strokeWeight: "int" }, polylineOptions: { strokeColor: "#", strokeWeight: "int" } }] });}function initialize(){ var RegionCenter = new google.maps.LatLng(lat, lon); map = new google.maps.Map(document.getElementById('map_canvas'), { center: RegionCenter, zoom: Zoom, mapTypeId: 'roadmap', panControl: false, zoomControl: false, mapTypeControl: false, scaleControl: false, streetViewControl: false, overviewMapControl: false }); layer.setMap(map); google.maps.event.addDomListener(window, 'load', initialize);}