function LoadStates()
{
  
  //North Carolina (TODO: Need better coastal border)
    points = [  
        new google.maps.LatLng(36.55 ,-75.929),      //top right
        new google.maps.LatLng(36.55 ,-75.966),
        new google.maps.LatLng(36.55 ,-75.884),
        new google.maps.LatLng(36.55 ,-75.894),
        new google.maps.LatLng(36.55 ,-75.988),
        new google.maps.LatLng(36.55 ,-76.006),
        new google.maps.LatLng(36.55 ,-76.035),
        new google.maps.LatLng(36.55 ,-76.156),
        new google.maps.LatLng(36.55 ,-76.161),
        new google.maps.LatLng(36.542 ,-78.917),
        new google.maps.LatLng(36.542 ,-79.138),
        new google.maps.LatLng(36.588 ,-81.677),     //top left
        new google.maps.LatLng(36.338 ,-81.706),
        new google.maps.LatLng(36.301 ,-81.908),
        new google.maps.LatLng(36.12 ,-82.033),
        new google.maps.LatLng(36.116 ,-82.354),
        new google.maps.LatLng(35.955 ,-82.561),
        new google.maps.LatLng(36.065 ,-82.638),
        new google.maps.LatLng(35.944 ,-82.898),
        new google.maps.LatLng(35.773 ,-82.993),
        new google.maps.LatLng(35.562 ,-83.499),
        new google.maps.LatLng(35.518 ,-83.881),
        new google.maps.LatLng(35.274 ,-84.046),
        new google.maps.LatLng(35.225 ,-84.29),
        new google.maps.LatLng(34.988 ,-84.322),      //left side of GA border
        new google.maps.LatLng(35 ,-83.108),
        new google.maps.LatLng(35.215 ,-82.394),
        new google.maps.LatLng(35.149 ,-81.032),
        new google.maps.LatLng(35.047 ,-81.043),
        new google.maps.LatLng(35.107 ,-80.935),
        new google.maps.LatLng(34.935 ,-80.782),
        new google.maps.LatLng(34.819 ,-80.797),
        new google.maps.LatLng(34.804 ,-79.675),
        new google.maps.LatLng(33.856 ,-78.556),      //bottom right
        new google.maps.LatLng(33.838483,-77.961731),
        new google.maps.LatLng(34.482788,-77.433701), 
        new google.maps.LatLng(34.580083,-76.533508),
        new google.maps.LatLng(35.218697,-75.52002),
        new google.maps.LatLng(35.588085,-75.451355),
        new google.maps.LatLng(35.721988,-75.484314)
    ];
    
     // Construct the polygon
  var Northcarolina = new google.maps.Polygon({
    paths: points,
    strokeColor: outlineColor,
    strokeOpacity: 0,
    strokeWeight: 2,
    fillColor: invisColor,
    fillOpacity: 0
  });
  
  //add event listeners to polygon, then add polygon to map
  google.maps.event.addListener(Northcarolina, 'mouseover',  function() { Northcarolina.setOptions({strokeOpacity: 1}); });
  google.maps.event.addListener(Northcarolina, 'mouseout', function() { Northcarolina.setOptions({strokeOpacity: 0}); });
  google.maps.event.addListener(Northcarolina, 'click', function() {   
  document.getElementById("StateName").innerHTML = "North Carolina"; extend(); });
  Northcarolina.setMap(map);
  }
//draws the polygons for all states and adds them to the map with the attached click functions 
draws the polygons for all states and adds them to the map with the attached click functions
draws the polygons for all states and adds them to the map with the attached click functions
function LoadStates()
{
    points = [  
        new google.maps.LatLng(36.55 ,-75.929),      
        new google.maps.LatLng(36.55 ,-75.966),
        new google.maps.LatLng(36.55 ,-75.884),
        new google.maps.LatLng(36.55 ,-75.894),
        new google.maps.LatLng(36.55 ,-75.988),
        new google.maps.LatLng(36.55 ,-76.006),
        new google.maps.LatLng(36.55 ,-76.035),
        new google.maps.LatLng(36.55 ,-76.156),
        new google.maps.LatLng(36.55 ,-76.161),
        new google.maps.LatLng(36.542 ,-78.917),
        new google.maps.LatLng(36.542 ,-79.138),
        new google.maps.LatLng(36.588 ,-81.677),     
        new google.maps.LatLng(36.338 ,-81.706),
        new google.maps.LatLng(36.301 ,-81.908),
        new google.maps.LatLng(36.12 ,-82.033),
        new google.maps.LatLng(36.116 ,-82.354),
        new google.maps.LatLng(35.955 ,-82.561),
        new google.maps.LatLng(36.065 ,-82.638),
        new google.maps.LatLng(35.944 ,-82.898),
        new google.maps.LatLng(35.773 ,-82.993),
        new google.maps.LatLng(35.562 ,-83.499),
        new google.maps.LatLng(35.518 ,-83.881),
        new google.maps.LatLng(35.274 ,-84.046),
        new google.maps.LatLng(35.225 ,-84.29),
        new google.maps.LatLng(34.988 ,-84.322),      
        new google.maps.LatLng(35 ,-83.108),
        new google.maps.LatLng(35.215 ,-82.394),
        new google.maps.LatLng(35.149 ,-81.032),
        new google.maps.LatLng(35.047 ,-81.043),
        new google.maps.LatLng(35.107 ,-80.935),
        new google.maps.LatLng(34.935 ,-80.782),
        new google.maps.LatLng(34.819 ,-80.797),
        new google.maps.LatLng(34.804 ,-79.675),
        new google.maps.LatLng(33.856 ,-78.556),      
        new google.maps.LatLng(33.838483,-77.961731),
        new google.maps.LatLng(34.482788,-77.433701), 
        new google.maps.LatLng(34.580083,-76.533508),
        new google.maps.LatLng(35.218697,-75.52002),
        new google.maps.LatLng(35.588085,-75.451355),
        new google.maps.LatLng(35.721988,-75.484314)
    ];
  var Northcarolina = new google.maps.Polygon({
    paths: points,
    strokeColor: outlineColor,
    strokeOpacity: 0,
    strokeWeight: 2,
    fillColor: invisColor,
    fillOpacity: 0
  });
  google.maps.event.addListener(Northcarolina, 'mouseover',  function() { Northcarolina.setOptions({strokeOpacity: 1}); });
  google.maps.event.addListener(Northcarolina, 'mouseout', function() { Northcarolina.setOptions({strokeOpacity: 0}); });
  google.maps.event.addListener(Northcarolina, 'click', function() {   
  document.getElementById("StateName").innerHTML = "North Carolina"; extend(); });
  Northcarolina.setMap(map);
  }
function LoadStates ( ) { points = [ new google . maps . LatLng ( 36.55 , - 75.929 ) , new google . maps . LatLng ( 36.55 , - 75.966 ) , new google . maps . LatLng ( 36.55 , - 75.884 ) , new google . maps . LatLng ( 36.55 , - 75.894 ) , new google . maps . LatLng ( 36.55 , - 75.988 ) , new google . maps . LatLng ( 36.55 , - 76.006 ) , new google . maps . LatLng ( 36.55 , - 76.035 ) , new google . maps . LatLng ( 36.55 , - 76.156 ) , new google . maps . LatLng ( 36.55 , - 76.161 ) , new google . maps . LatLng ( 36.542 , - 78.917 ) , new google . maps . LatLng ( 36.542 , - 79.138 ) , new google . maps . LatLng ( 36.588 , - 81.677 ) , new google . maps . LatLng ( 36.338 , - 81.706 ) , new google . maps . LatLng ( 36.301 , - 81.908 ) , new google . maps . LatLng ( 36.12 , - 82.033 ) , new google . maps . LatLng ( 36.116 , - 82.354 ) , new google . maps . LatLng ( 35.955 , - 82.561 ) , new google . maps . LatLng ( 36.065 , - 82.638 ) , new google . maps . LatLng ( 35.944 , - 82.898 ) , new google . maps . LatLng ( 35.773 , - 82.993 ) , new google . maps . LatLng ( 35.562 , - 83.499 ) , new google . maps . LatLng ( 35.518 , - 83.881 ) , new google . maps . LatLng ( 35.274 , - 84.046 ) , new google . maps . LatLng ( 35.225 , - 84.29 ) , new google . maps . LatLng ( 34.988 , - 84.322 ) , new google . maps . LatLng ( 35 , - 83.108 ) , new google . maps . LatLng ( 35.215 , - 82.394 ) , new google . maps . LatLng ( 35.149 , - 81.032 ) , new google . maps . LatLng ( 35.047 , - 81.043 ) , new google . maps . LatLng ( 35.107 , - 80.935 ) , new google . maps . LatLng ( 34.935 , - 80.782 ) , new google . maps . LatLng ( 34.819 , - 80.797 ) , new google . maps . LatLng ( 34.804 , - 79.675 ) , new google . maps . LatLng ( 33.856 , - 78.556 ) , new google . maps . LatLng ( 33.838483 , - 77.961731 ) , new google . maps . LatLng ( 34.482788 , - 77.433701 ) , new google . maps . LatLng ( 34.580083 , - 76.533508 ) , new google . maps . LatLng ( 35.218697 , - 75.52002 ) , new google . maps . LatLng ( 35.588085 , - 75.451355 ) , new google . maps . LatLng ( 35.721988 , - 75.484314 ) ] ; var Northcarolina = new google . maps . Polygon ( { paths : points , strokeColor : outlineColor , strokeOpacity : 0 , strokeWeight : 2 , fillColor : invisColor , fillOpacity : 0 } ) ; google . maps . event . addListener ( Northcarolina , 'mouseover' , function ( ) { Northcarolina . setOptions ( { strokeOpacity : 1 } ) ; } ) ; google . maps . event . addListener ( Northcarolina , 'mouseout' , function ( ) { Northcarolina . setOptions ( { strokeOpacity : 0 } ) ; } ) ; google . maps . event . addListener ( Northcarolina , 'click' , function ( ) { document . getElementById ( "StateName" ) . innerHTML = "North Carolina" ; extend ( ) ; } ) ; Northcarolina . setMap ( map ) ; }
draws the polygons for all states and adds them to the map with the attached click functions
draws the polygons for all states and adds them to the map with the attached click functions
//North Carolina (TODO: Need better coastal border) //top right //top left //left side of GA border //bottom right // Construct the polygon //add event listeners to polygon, then add polygon to map