
var expdate = new Date ();
    expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000*365)); //1 year from now
    
var isOn_DE,isOn_CONDO,isOn_TOWN,isOn_LOFT,isOn_DUPLEX,isOn_MU;

//---called on page_load-----------------------------------------------
  
function initMap(){
 
myMap = new MQA.TileMap( document.getElementById('mapDiv'),9,{lat:41.882145, lng:-87.706128},"map",null);
	      
MQA.withModule('zoomcontrol3','viewcontrol3', function() {
		
  myMap.addControl(
    new MQA.LargeZoomControl3(), 
    new MQA.MapCornerPlacement(MQA.MapCorner.TOP_LEFT)
  );
 		
  myMap.addControl(
    new MQA.ViewControl3(), 
    new MQA.MapCornerPlacement(MQA.MapCorner.TOP_RIGHT)
  );
  
});


//-----draw the neighborhoods----------------------------------
 
MQA.withModule('shapes', function() {

//--East Rogers Park---------

 polyEastRogersPark = new MQA.PolygonOverlay();	
	  
	  if( getCookie('EastRogersPark') == 'yes') 
	     {
	       polyEastRogersPark.setBorderWidth(2);
	       polyEastRogersPark.setColor("#005500");
	     }
	   else
	    {
          polyEastRogersPark.setBorderWidth(0);
          polyEastRogersPark.setColor("#999999");
        }
        	 
	polyEastRogersPark.setFillColor("#005500");
    polyEastRogersPark.setFillColorAlpha( .18 );
    polyEastRogersPark.setKey("EastRogersPark");
    polyEastRogersPark.setAltColor("#00C8FF");
	polyEastRogersPark.setAltFillColor("#00C8FF");
	polyEastRogersPark.setAltFillColorAlpha(0.25);
    
    var shapesEastRogersPark = new MQA.LatLngCollection();
    shapesEastRogersPark.add( new MQA.LatLng( 42.026914 , -87.667721 ));
    shapesEastRogersPark.add( new MQA.LatLng( 42.027199 , -87.678434 ));
    shapesEastRogersPark.add( new MQA.LatLng( 42.0264 , -87.678506 ));
    shapesEastRogersPark.add( new MQA.LatLng( 42.026571 , -87.684833 ));
    shapesEastRogersPark.add( new MQA.LatLng( 42.014505 , -87.683395 ));
    shapesEastRogersPark.add( new MQA.LatLng( 41.998221 , -87.676133 ));
    shapesEastRogersPark.add( new MQA.LatLng( 41.998449 , -87.654706 ));
            
    polyEastRogersPark.setShapePoints( shapesEastRogersPark );
	myMap.addShape(polyEastRogersPark);
	  
	MQA.withModule('htmlpoi', function() {
    var myPOIEastRogersPark = new MQA.HtmlPoi(new MQA.LatLng( 42.011885,-87.670495 ));
    myPOIEastRogersPark.setHtml("<a onMouseOver=fn_color_over(polyEastRogersPark); onMouseOut=fn_color_out(polyEastRogersPark); onclick=fn_border('EastRogersPark',polyEastRogersPark);>E. Rogers Park</a>",0,0,'text_map');
	myMap.addShape( myPOIEastRogersPark );});
	  	
//--West Rogers Park---------

  polyWestRogersPark = new MQA.PolygonOverlay();
    
      if( getCookie('WestRogersPark') == 'yes') 
	     {
	       polyWestRogersPark.setBorderWidth(2);
	       polyWestRogersPark.setColor("#005500");
	       
	     }
	   else
	    {
          polyWestRogersPark.setBorderWidth(0);
          polyWestRogersPark.setColor("#999999");
        }
        
    polyWestRogersPark.setFillColor("#000055");
    polyWestRogersPark.setFillColorAlpha( .18 );
    polyWestRogersPark.setKey("WestRogersPark");
    polyWestRogersPark.setAltColor("#00C8FF");
	polyWestRogersPark.setAltFillColor("#00C8FF");
	polyWestRogersPark.setAltFillColorAlpha(0.25);
    
         var shapesWestRogersPark = new MQA.LatLngCollection();
            shapesWestRogersPark.add( new MQA.LatLng( 42.026541 , -87.685475 ));
            shapesWestRogersPark.add( new MQA.LatLng( 42.026312 , -87.709922 ));
            shapesWestRogersPark.add( new MQA.LatLng( 41.990432 , -87.709922 ));
            shapesWestRogersPark.add( new MQA.LatLng( 41.990947 , -87.672821 ));
            shapesWestRogersPark.add( new MQA.LatLng( 41.992202 , -87.675266 ));
            shapesWestRogersPark.add( new MQA.LatLng( 41.995054 , -87.675409 ));
            shapesWestRogersPark.add( new MQA.LatLng( 42.015304 , -87.684109 ));
            
            polyWestRogersPark.setShapePoints( shapesWestRogersPark );
			myMap.addShape( polyWestRogersPark );

   MQA.withModule('htmlpoi', function() {
    var myPOIWestRogersPark = new MQA.HtmlPoi(new MQA.LatLng( 42.006859,-87.694239 ));
	    myPOIWestRogersPark.setHtml("<a onMouseOver=fn_color_over(polyWestRogersPark); onMouseOut=fn_color_out(polyWestRogersPark); onclick=fn_border('WestRogersPark',polyWestRogersPark);>W. Rogers Park</a>",0,0,'text_map');
		myMap.addShape( myPOIWestRogersPark );});
		      
//--Edgewater---------

   polyEdgewater = new MQA.PolygonOverlay();
    
        if( getCookie('Edgewater') == 'yes') 
	     {
	       polyEdgewater.setBorderWidth(2);
	       polyEdgewater.setColor("#005500");
	     }
	   else
	    {
          polyEdgewater.setBorderWidth(0);
          polyEdgewater.setColor("#999999");
        }
        
    polyEdgewater.setFillColor("#550000");
    polyEdgewater.setFillColorAlpha( .18 );
    polyEdgewater.setKey("Edgewater");


         var shapesEdgewater = new MQA.LatLngCollection();
            shapesEdgewater.add( new MQA.LatLng( 41.998077 , -87.654846 ));
            shapesEdgewater.add( new MQA.LatLng( 41.997849 , -87.676344 ));
            shapesEdgewater.add( new MQA.LatLng( 41.99494 , -87.674978 ));
            shapesEdgewater.add( new MQA.LatLng( 41.99203 , -87.674762 ));
            shapesEdgewater.add( new MQA.LatLng( 41.990833 , -87.672313 ));
            shapesEdgewater.add( new MQA.LatLng( 41.990776 , -87.674618 ));
            shapesEdgewater.add( new MQA.LatLng( 41.983474 , -87.674331 ));
            shapesEdgewater.add( new MQA.LatLng( 41.983645 , -87.653983 ));
            
             polyEdgewater.setShapePoints( shapesEdgewater );
			 myMap.addShape( polyEdgewater );
            
        MQA.withModule('htmlpoi', function() {
        var myPOIEdgewater = new MQA.HtmlPoi(new MQA.LatLng( 41.991055,-87.664032 ));
	    myPOIEdgewater.setHtml("<a onMouseOver=fn_color_over(polyEdgewater); onMouseOut=fn_color_out(polyEdgewater); onclick=fn_border('Edgewater',polyEdgewater);>Edgewater</a>",0,0,'text_map');
        myMap.addShape( myPOIEdgewater );});
  
//--Andersonville---------

     polyAndersonville = new MQA.PolygonOverlay();
    
      if( getCookie('Andersonville') == 'yes') 
	     {
	       polyAndersonville.setBorderWidth(2);
	       polyAndersonville.setColor("#005500");
	     }
	   else
	    {
          polyAndersonville.setBorderWidth(0);
          polyAndersonville.setColor("#999999");
        }
        
    polyAndersonville.setFillColor("#555500");
    polyAndersonville.setFillColorAlpha( .18 );
    polyAndersonville.setKey("Andersonville");

         var shapesAndersonville = new MQA.LatLngCollection();
            shapesAndersonville.add( new MQA.LatLng( 41.983474 , -87.659807 ));
            shapesAndersonville.add( new MQA.LatLng( 41.983075 , -87.678429 ));
            shapesAndersonville.add( new MQA.LatLng( 41.977656 , -87.688855 ));
            shapesAndersonville.add( new MQA.LatLng( 41.976059 , -87.688711 ));
            shapesAndersonville.add( new MQA.LatLng( 41.976401 , -87.659735 ));
            
            polyAndersonville.setShapePoints( shapesAndersonville );
			myMap.addShape( polyAndersonville );
			
	     MQA.withModule('htmlpoi', function() {
         var myPOIAndersonville = new MQA.HtmlPoi(new MQA.LatLng( 41.980278,-87.675678 ));
	     myPOIAndersonville.setHtml("<a onMouseOver=fn_color_over(polyAndersonville); onMouseOut=fn_color_out(polyAndersonville); onclick=fn_border('Andersonville',polyAndersonville);>Andersonville</a>",0,0,'text_map');
         myMap.addShape( myPOIAndersonville );});
         
//--Uptown----------

 polyUptown = new MQA.PolygonOverlay();
    
      if( getCookie('Uptown') == 'yes') 
	     {
	       polyUptown.setBorderWidth(2);
	       polyUptown.setColor("#005500");
	     }
	   else
	    {
          polyUptown.setBorderWidth(0);
          polyUptown.setColor("#999999");
        }
        
    polyUptown.setFillColor("#ff99cc");
    polyUptown.setFillColorAlpha( .18 );
    polyUptown.setKey("Uptown");
    
         var shapesUptown = new MQA.LatLngCollection();
            shapesUptown.add( new MQA.LatLng( 41.983474 , -87.651323 ));
            shapesUptown.add( new MQA.LatLng( 41.983474 , -87.659663 ));
            shapesUptown.add( new MQA.LatLng( 41.976344 , -87.659663 ));
            shapesUptown.add( new MQA.LatLng( 41.976344 , -87.668219 ));
            shapesUptown.add( new MQA.LatLng( 41.968871 , -87.667213 ));
            shapesUptown.add( new MQA.LatLng( 41.961684 , -87.665631 ));
            shapesUptown.add( new MQA.LatLng( 41.961684 , -87.642479 ));
            
            polyUptown.setShapePoints( shapesUptown );
			myMap.addShape( polyUptown );	
						
	     MQA.withModule('htmlpoi', function() {
         var myPOIUptown = new MQA.HtmlPoi(new MQA.LatLng( 41.969933,-87.656516 ));
		 myPOIUptown.setHtml("<a onMouseOver=fn_color_over(polyUptown); onMouseOut=fn_color_out(polyUptown); onclick=fn_border('Uptown',polyUptown);>Uptown</a>",0,0,'text_map');
         myMap.addShape( myPOIUptown );});
		
//--Peterson---------

     polyPeterson = new MQA.PolygonOverlay();
    
      if( getCookie('Peterson') == 'yes') 
	     {
	       polyPeterson.setBorderWidth(2);
	       polyPeterson.setColor("#005500");
	     }
	   else
	    {
          polyPeterson.setBorderWidth(0);
          polyPeterson.setColor("#999999");
        }
        
    polyPeterson.setFillColor("#ff00ff");
    polyPeterson.setFillColorAlpha( .18 );
    polyPeterson.setKey("Peterson");
    
         var shapesPeterson = new MQA.LatLngCollection();
            shapesPeterson.add( new MQA.LatLng( 41.99066 , -87.67505 ));
            shapesPeterson.add( new MQA.LatLng( 41.990204 , -87.708843 ));
            shapesPeterson.add( new MQA.LatLng( 41.975943 , -87.704529 ));
            shapesPeterson.add( new MQA.LatLng( 41.976114 , -87.688998 ));
            shapesPeterson.add( new MQA.LatLng( 41.977768 , -87.688926 ));
            shapesPeterson.add( new MQA.LatLng( 41.983244 , -87.679004 ));
            shapesPeterson.add( new MQA.LatLng( 41.98353 , -87.674834 ));
            
	   	    polyPeterson.setShapePoints( shapesPeterson );
			myMap.addShape( polyPeterson );	
							
	    MQA.withModule('htmlpoi', function() {
        var myPOIPeterson = new MQA.HtmlPoi(new MQA.LatLng( 41.983644 ,-87.698921 ));
		myPOIPeterson.setHtml("<a onMouseOver=fn_color_over(polyPeterson); onMouseOut=fn_color_out(polyPeterson); onclick=fn_border('Peterson',polyPeterson);>Peterson</a>",0,0,'text_map');
        myMap.addShape( myPOIPeterson );});		
        
//--Ravenswood---------

 polyRavenswood = new MQA.PolygonOverlay();
    
      if( getCookie('Ravenswood') == 'yes') 
	     {
	       polyRavenswood.setBorderWidth(2);
	       polyRavenswood.setColor("#005500");
	     }
	   else
	    {
          polyRavenswood.setBorderWidth(0);
          polyRavenswood.setColor("#999999");
        }
        
    polyRavenswood.setFillColor("#00ff00");
    polyRavenswood.setFillColorAlpha( .18 );
    polyRavenswood.setKey("Ravenswood");
    
         var shapesRavenswood = new MQA.LatLngCollection();
            shapesRavenswood.add( new MQA.LatLng( 41.975829 , -87.679436 ));
            shapesRavenswood.add( new MQA.LatLng( 41.975634,-87.704442 ));
            shapesRavenswood.add( new MQA.LatLng( 41.970525,-87.702547 ));
            shapesRavenswood.add( new MQA.LatLng( 41.96847 , -87.700359 ));
            shapesRavenswood.add( new MQA.LatLng( 41.961454 , -87.694175 ));
            shapesRavenswood.add( new MQA.LatLng( 41.961682 , -87.679004 ));

	   	    polyRavenswood.setShapePoints( shapesRavenswood );
			myMap.addShape( polyRavenswood );	
	   
    MQA.withModule('htmlpoi', function() {
    var myPOIRavenswood = new MQA.HtmlPoi(new MQA.LatLng( 41.968641 ,-87.697051 ));
    myPOIRavenswood.setHtml("<a onMouseOver=fn_color_over(polyRavenswood); onMouseOut=fn_color_out(polyRavenswood); onclick=fn_border('Ravenswood',polyRavenswood);>Ravenswood</a>",0,0,'text_map');
    myMap.addShape( myPOIRavenswood );});		
  
 //--Lincoln Square---------
 
   polyLincolnSquare = new MQA.PolygonOverlay();
    
      if( getCookie('LincolnSquare') == 'yes') 
	     {
	       polyLincolnSquare.setBorderWidth(2);
	       polyLincolnSquare.setColor("#005500");
	     }
	   else
	    {
          polyLincolnSquare.setBorderWidth(0);
          polyLincolnSquare.setColor("#999999");
        }
        
    polyLincolnSquare.setFillColor("#550000");
    polyLincolnSquare.setFillColorAlpha( .18 );
    polyLincolnSquare.setKey("LincolnSquare");
    
         var shapesLincolnSquare = new MQA.LatLngCollection();
            shapesLincolnSquare.add( new MQA.LatLng( 41.976057 , -87.668291 ));
            shapesLincolnSquare.add( new MQA.LatLng( 41.975818 , -87.678932 ));
            shapesLincolnSquare.add( new MQA.LatLng( 41.961635 , -87.678573 ));
            shapesLincolnSquare.add( new MQA.LatLng( 41.96191 , -87.665846 ));
            
	   	    polyLincolnSquare.setShapePoints( shapesLincolnSquare );
			myMap.addShape( polyLincolnSquare );	

         MQA.withModule('htmlpoi', function() {
         var myPOILincolnSquare = new MQA.HtmlPoi(new MQA.LatLng( 41.972776,-87.676409 ));
		 myPOILincolnSquare.setHtml("<a onMouseOver=fn_color_over(polyLincolnSquare); onMouseOut=fn_color_out(polyLincolnSquare); onclick=fn_border('LincolnSquare',polyLincolnSquare);>LincolnSquare</a>",0,0,'text_map');
         myMap.addShape( myPOILincolnSquare  );});	 
  
//--Wrigleyville---------

polyWrigleyville = new MQA.PolygonOverlay();

      if( getCookie('Wrigleyville') == 'yes') 
	     {
	       polyWrigleyville.setBorderWidth(2);
	       polyWrigleyville.setColor("#005500");
	     }
	   else
	    {
          polyWrigleyville.setBorderWidth(0);
          polyWrigleyville.setColor("#999999");
        }
        
    polyWrigleyville.setFillColor("#ff0000");
    polyWrigleyville.setFillColorAlpha( .18 );
    polyWrigleyville.setKey("Wrigleyville");
    
         var shapesWrigleyville = new MQA.LatLngCollection();
            shapesWrigleyville.add( new MQA.LatLng( 41.961882 , -87.642478 ));
            shapesWrigleyville.add( new MQA.LatLng( 41.961539 , -87.668973 ));
            shapesWrigleyville.add( new MQA.LatLng( 41.947079 , -87.668614 ));
            shapesWrigleyville.add( new MQA.LatLng( 41.947336 , -87.637768 ));
            
	   	    polyWrigleyville.setShapePoints( shapesWrigleyville );
			myMap.addShape( polyWrigleyville );
			
		 MQA.withModule('htmlpoi', function() {
         var myPOIWrigleyville = new MQA.HtmlPoi(new MQA.LatLng( 41.953924 ,-87.66123 ));
		 myPOIWrigleyville.setHtml("<a onMouseOver=fn_color_over(polyWrigleyville); onMouseOut=fn_color_out(polyWrigleyville); onclick=fn_border('Wrigleyville',polyWrigleyville);>Wrigleyville</a>",0,0,'text_map');
         myMap.addShape( myPOIWrigleyville  );});	 
			
//--North Center / St. Bens---------

polyNorthCenter = new MQA.PolygonOverlay();

      if( getCookie('NorthCenter') == 'yes') 
	     {
	       polyNorthCenter.setBorderWidth(2);
	       polyNorthCenter.setColor("#005500");
	     }
	   else
	    {
          polyNorthCenter.setBorderWidth(0);
          polyNorthCenter.setColor("#999999");
        }
        
    polyNorthCenter.setFillColor("#005500");
    polyNorthCenter.setFillColorAlpha( .18 );
    polyNorthCenter.setKey("NorthCenter");
    
         var shapesNorthCenter = new MQA.LatLngCollection();
            shapesNorthCenter.add( new MQA.LatLng( 41.961454 , -87.669225 ));
            shapesNorthCenter.add( new MQA.LatLng( 41.961112 , -87.694426 ));
            shapesNorthCenter.add( new MQA.LatLng( 41.954067 , -87.694103 ));
            shapesNorthCenter.add( new MQA.LatLng( 41.949846 , -87.696619 ));
            shapesNorthCenter.add( new MQA.LatLng( 41.946765 , -87.695864 ));
            shapesNorthCenter.add( new MQA.LatLng( 41.947051 , -87.668937 ));
            
	   	    polyNorthCenter.setShapePoints( shapesNorthCenter );
			myMap.addShape( polyNorthCenter );	
			
        MQA.withModule('htmlpoi', function() {
        var myPOINorthCenter = new MQA.HtmlPoi(new MQA.LatLng( 41.956102,-87.685086 ));
		myPOINorthCenter.setHtml("<a onMouseOver=fn_color_over(polyNorthCenter); onMouseOut=fn_color_out(polyNorthCenter); onclick=fn_border('NorthCenter',polyNorthCenter);>North Center</a>",0,0,'text_map');
        myMap.addShape( myPOINorthCenter );});	 
  
  
//--North Park---------

 polyNorthPark = new MQA.PolygonOverlay();
    
       if( getCookie('NorthPark') == 'yes') 
	     {
	       polyNorthPark.setBorderWidth(2);
	       polyNorthPark.setColor("#005500"); 
	     }
	   else
	    {
          polyNorthPark.setBorderWidth(0);
          polyNorthPark.setColor("#999999");
        }
        
    polyNorthPark.setFillColor("#ff99cc");
    polyNorthPark.setFillColorAlpha( .18 );
    polyNorthPark.setKey("NorthPark");
    
    
         var shapesNorthPark = new MQA.LatLngCollection();
            shapesNorthPark.add( new MQA.LatLng( 41.997191 , -87.710746 ));
            shapesNorthPark.add( new MQA.LatLng( 41.997105 , -87.728685 ));
            shapesNorthPark.add( new MQA.LatLng( 41.975628 , -87.728038 ));
            shapesNorthPark.add( new MQA.LatLng( 41.975885 , -87.704994 ));
            shapesNorthPark.add( new MQA.LatLng( 41.990317 , -87.711069 )); 
            shapesNorthPark.add( new MQA.LatLng( 41.993112 , -87.710135 ));
              
	   	    polyNorthPark.setShapePoints( shapesNorthPark );
			myMap.addShape( polyNorthPark );	
			
	      MQA.withModule('htmlpoi', function() {
          var myPOINorthPark = new MQA.HtmlPoi(new MQA.LatLng( 41.986781,-87.720506 ));	
		  myPOINorthPark.setHtml("<a onMouseOver=fn_color_over(polyNorthPark); onMouseOut=fn_color_out(polyNorthPark); onclick=fn_border('NorthPark',polyNorthPark);>North Park</a>",0,0,'text_map');
          myMap.addShape( myPOINorthPark );});	
          
//--Sauganash---------

polySauganash = new MQA.PolygonOverlay();

      if( getCookie('Sauganash') == 'yes') 
	     {
	       polySauganash.setBorderWidth(2);
	       polySauganash.setColor("#005500");
	     }
	   else
	    {
          polySauganash.setBorderWidth(0);
          polySauganash.setColor("#999999");
        }
        
    polySauganash.setFillColor("#000055");
    polySauganash.setFillColorAlpha( .18 );
    polySauganash.setKey("Sauganash");
    
         var shapesSauganash = new MQA.LatLngCollection();
            shapesSauganash.add( new MQA.LatLng( 41.997138,-87.72899 ));
            shapesSauganash.add( new MQA.LatLng( 41.99709,-87.749505 ));
            shapesSauganash.add( new MQA.LatLng( 41.99003 , -87.750696));
            shapesSauganash.add( new MQA.LatLng( 41.98541 , -87.750481 ));
            shapesSauganash.add( new MQA.LatLng( 41.979763 , -87.746382 )); 
            shapesSauganash.add( new MQA.LatLng( 41.975427 , -87.747317 ));
            shapesSauganash.add( new MQA.LatLng( 41.975656 , -87.728192 ));
            
	   	    polySauganash.setShapePoints( shapesSauganash );
			myMap.addShape( polySauganash );	

	    MQA.withModule('htmlpoi', function() {
        var myPOISauganash = new MQA.HtmlPoi(new MQA.LatLng( 41.98808,-87.742389 ));
		myPOISauganash.setHtml("<a onMouseOver=fn_color_over(polySauganash); onMouseOut=fn_color_out(polySauganash); onclick=fn_border('Sauganash',polySauganash);>Sauganash</a>",0,0,'text_map');
        myMap.addShape( myPOISauganash );});	   
	   
//--Edgebrook---------

   polyEdgebrook = new MQA.PolygonOverlay();

      if( getCookie('Edgebrook') == 'yes') 
	     {
	       polyEdgebrook.setBorderWidth(2);
	       polyEdgebrook.setColor("#005500");
	     }
	   else
	    {
          polyEdgebrook.setBorderWidth(0);
          polyEdgebrook.setColor("#999999");
        }
        
    polyEdgebrook.setFillColor("#fd8e17");
    polyEdgebrook.setFillColorAlpha( .18 );
    polyEdgebrook.setKey("Edgebrook");
    
         var shapesEdgebrook = new MQA.LatLngCollection();
            shapesEdgebrook.add( new MQA.LatLng( 41.975498,-87.748114 ));
            shapesEdgebrook.add( new MQA.LatLng( 41.975441,-87.751673 ));
            shapesEdgebrook.add( new MQA.LatLng( 41.983075,-87.764121 ));
            shapesEdgebrook.add( new MQA.LatLng( 41.992894,-87.783309 ));
            shapesEdgebrook.add( new MQA.LatLng( 42.011833,-87.800961 ));
            shapesEdgebrook.add( new MQA.LatLng( 42.012395,-87.79796 ));
            shapesEdgebrook.add( new MQA.LatLng( 42.011784,-87.79154));
            shapesEdgebrook.add( new MQA.LatLng( 42.01169,-87.75081 )); 
            shapesEdgebrook.add( new MQA.LatLng( 42.008695,-87.749228 ));
            shapesEdgebrook.add( new MQA.LatLng( 41.999882,-87.749192 ));
            shapesEdgebrook.add( new MQA.LatLng( 41.99549,-87.750846 ));
            shapesEdgebrook.add( new MQA.LatLng( 41.985679,-87.751133 ));
            shapesEdgebrook.add( new MQA.LatLng( 41.97966,-87.747107));
            
	   	    polyEdgebrook.setShapePoints( shapesEdgebrook );
			myMap.addShape( polyEdgebrook );	

	    MQA.withModule('htmlpoi', function() {
        var myPOIEdgebrook = new MQA.HtmlPoi(new MQA.LatLng( 41.995661,-87.77353 ));
		myPOIEdgebrook.setHtml("<a onMouseOver=fn_color_over(polyEdgebrook); onMouseOut=fn_color_out(polyEdgebrook); onclick=fn_border('Edgebrook',polyEdgebrook);>Edgebrook</a>",0,0,'text_map');
        myMap.addShape( myPOIEdgebrook );});	   
	   
//--Jefferson Park---------

polyJeffersonPark = new MQA.PolygonOverlay();

      if( getCookie('JeffersonPark') == 'yes') 
	     {
	       polyJeffersonPark.setBorderWidth(2);
	       polyJeffersonPark.setColor("#005500"); 
	     }
	   else
	    {
          polyJeffersonPark.setBorderWidth(0);
          polyJeffersonPark.setColor("#999999");
        }
          
    polyJeffersonPark.setFillColor("#00ff00");
    polyJeffersonPark.setFillColorAlpha( .18 );
    polyJeffersonPark.setKey("JeffersonPark");
    
         var shapesJeffersonPark = new MQA.LatLngCollection();
            shapesJeffersonPark.add( new MQA.LatLng( 41.975157,-87.747977 ));
            shapesJeffersonPark.add( new MQA.LatLng( 41.963036,-87.746898 ));
            shapesJeffersonPark.add( new MQA.LatLng( 41.960868,-87.743878 ));
            shapesJeffersonPark.add( new MQA.LatLng(41.960355,-87.786551 ));
            shapesJeffersonPark.add( new MQA.LatLng( 41.982459,-87.786408 ));
            shapesJeffersonPark.add( new MQA.LatLng( 41.982459,-87.77911 ));
            shapesJeffersonPark.add( new MQA.LatLng( 41.98919,-87.776521));
            shapesJeffersonPark.add( new MQA.LatLng( 41.982915,-87.764478)); 
            shapesJeffersonPark.add( new MQA.LatLng( 41.975186,-87.751787));
            
	   	    polyJeffersonPark.setShapePoints( shapesJeffersonPark );
			myMap.addShape( polyJeffersonPark );	 
			
	    MQA.withModule('htmlpoi', function() {
        var myPOIJeffersonPark = new MQA.HtmlPoi(new MQA.LatLng( 41.97544,-87.775113 ));
		myPOIJeffersonPark.setHtml("<a onMouseOver=fn_color_over(polyJeffersonPark); onMouseOut=fn_color_out(polyJeffersonPark); onclick=fn_border('JeffersonPark',polyJeffersonPark);>Jefferson Park</a>",0,0,'text_map');
        myMap.addShape( myPOIJeffersonPark );});	   
       
//--Norwood Park---------

polyNorwoodPark = new MQA.PolygonOverlay();

      if( getCookie('NorwoodPark') == 'yes') 
	     {
	       polyNorwoodPark.setBorderWidth(2);
	       polyNorwoodPark.setColor("#005500");
	     }
	   else
	    {
          polyNorwoodPark.setBorderWidth(0);
          polyNorwoodPark.setColor("#999999");
        }
        
    polyNorwoodPark.setFillColor("#550055");
    polyNorwoodPark.setFillColorAlpha( .18 );
    polyNorwoodPark.setKey("NorwoodPark");
    
    
         var shapesNorwoodPark = new MQA.LatLngCollection();
            shapesNorwoodPark.add( new MQA.LatLng(41.967385,-87.786797 ));
            shapesNorwoodPark.add( new MQA.LatLng(41.966729,-87.826594 ));
            shapesNorwoodPark.add( new MQA.LatLng(41.996676,-87.826414 ));
            shapesNorwoodPark.add( new MQA.LatLng(41.997104,-87.809194 ));
            shapesNorwoodPark.add( new MQA.LatLng(41.99776,-87.806642 ));
            shapesNorwoodPark.add( new MQA.LatLng(41.99776,-87.8047 ));
            shapesNorwoodPark.add( new MQA.LatLng(41.996619,-87.798157));
            shapesNorwoodPark.add( new MQA.LatLng(41.997275,-87.795281)); 
            shapesNorwoodPark.add( new MQA.LatLng(41.997247,-87.787732));
            shapesNorwoodPark.add( new MQA.LatLng(41.992626,-87.783454));
            shapesNorwoodPark.add( new MQA.LatLng( 41.989204,-87.776731));
            shapesNorwoodPark.add( new MQA.LatLng(41.982701,-87.779247));
            shapesNorwoodPark.add( new MQA.LatLng( 41.982644,-87.786617));
            
	   	    polyNorwoodPark.setShapePoints( shapesNorwoodPark );
			myMap.addShape( polyNorwoodPark );
			
	    MQA.withModule('htmlpoi', function() {
        var myPOINorwoodPark = new MQA.HtmlPoi(new MQA.LatLng( 41.988833,-87.805383 ));
        myPOINorwoodPark.setHtml("<a onMouseOver=fn_color_over(polyNorwoodPark); onMouseOut=fn_color_out(polyNorwoodPark); onclick=fn_border('NorwoodPark',polyNorwoodPark);>Norwood Park</a>",0,0,'text_map');
        myMap.addShape( myPOINorwoodPark );});	
        
//--Edison Park---------

polyEdisonPark = new MQA.PolygonOverlay();

      if( getCookie('EdisonPark') == 'yes') 
	     {
	       polyEdisonPark.setBorderWidth(2);
	       polyEdisonPark.setColor("#005500");
	     }
	   else
	    {
          polyEdisonPark.setBorderWidth(0);
          polyEdisonPark.setColor("#999999");
        }
        
    polyEdisonPark.setFillColor("#ffff00");
    polyEdisonPark.setFillColorAlpha( .18 );
    polyEdisonPark.setKey("EdisonPark");
    
         var shapesEdisonPark = new MQA.LatLngCollection();
            shapesEdisonPark.add( new MQA.LatLng(41.997938,-87.806855));
         
            shapesEdisonPark.add( new MQA.LatLng(42.018816,-87.806532 ));
            shapesEdisonPark.add( new MQA.LatLng(42.018588,-87.821092 ));
            shapesEdisonPark.add( new MQA.LatLng(42.015564,-87.820481 ));
            shapesEdisonPark.add( new MQA.LatLng(42.015564,-87.81969 ));
            shapesEdisonPark.add( new MQA.LatLng(42.0114,-87.819977 ));
            shapesEdisonPark.add( new MQA.LatLng(42.011315,-87.821164));
            shapesEdisonPark.add( new MQA.LatLng(41.99694,-87.821271)); 
            shapesEdisonPark.add( new MQA.LatLng(41.997187,-87.809198)); 

	   	    polyEdisonPark.setShapePoints( shapesEdisonPark );
			myMap.addShape( polyEdisonPark );	
			
		 MQA.withModule('htmlpoi', function() {
         var myPOIEdisonPark = new MQA.HtmlPoi(new MQA.LatLng( 42.004184,-87.816274 ));
		 myPOIEdisonPark.setHtml("<a onMouseOver=fn_color_over(polyEdisonPark); onMouseOut=fn_color_out(polyEdisonPark); onclick=fn_border('EdisonPark',polyEdisonPark);>Edison Park</a>",0,0,'text_map');
         myMap.addShape( myPOIEdisonPark );});	
       
//--Portage Park---------

polyPortagePark = new MQA.PolygonOverlay();

      if( getCookie('PortagePark') == 'yes') 
	     {
	       polyPortagePark.setBorderWidth(2);
	       polyPortagePark.setColor("#005500");
	     }
	   else
	    {
          polyPortagePark.setBorderWidth(0);
          polyPortagePark.setColor("#999999");
        }
       
    polyPortagePark.setFillColor("#ffff00");
    polyPortagePark.setFillColorAlpha( .18 );
    polyPortagePark.setKey("PortagePark");
    
    
         var shapesPortagePark = new MQA.LatLngCollection();
            shapesPortagePark.add( new MQA.LatLng(41.960503,-87.747595));
            shapesPortagePark.add( new MQA.LatLng(41.942563,-87.747055 ));
            shapesPortagePark.add( new MQA.LatLng(41.941993,-87.78599 ));
            shapesPortagePark.add( new MQA.LatLng(41.960047,-87.786601 ));

	   	    polyPortagePark.setShapePoints( shapesPortagePark );
			myMap.addShape( polyPortagePark );	
			
	MQA.withModule('htmlpoi', function() {
    var myPOIPortagePark = new MQA.HtmlPoi(new MQA.LatLng( 41.952689,-87.771574));
	myPOIPortagePark.setHtml("<a onMouseOver=fn_color_over(polyPortagePark); onMouseOut=fn_color_out(polyPortagePark); onclick=fn_border('PortagePark',polyPortagePark);>Portage Park</a>",0,0,'text_map');
    myMap.addShape( myPOIPortagePark );});	
 
 //--Albany Park---------
 
 polyAlbanyPark = new MQA.PolygonOverlay();

      if( getCookie('AlbanyPark') == 'yes') 
	     {
	       polyAlbanyPark.setBorderWidth(2);
	       polyAlbanyPark.setColor("#005500");
	     }
	   else
	    {
          polyAlbanyPark.setBorderWidth(0);
          polyAlbanyPark.setColor("#999999");
        }
        
    polyAlbanyPark.setFillColor("#fd8e17");
    polyAlbanyPark.setFillColorAlpha( .18 );
    polyAlbanyPark.setKey("AlbanyPark");
    
         var shapesAlbanyPark = new MQA.LatLngCollection();
            shapesAlbanyPark.add( new MQA.LatLng(41.954089,-87.694435));
            shapesAlbanyPark.add( new MQA.LatLng(41.953889,-87.719097 ));
            shapesAlbanyPark.add( new MQA.LatLng(41.96102,-87.729595 ));
            shapesAlbanyPark.add( new MQA.LatLng(41.960877,-87.743184 ));
            shapesAlbanyPark.add( new MQA.LatLng(41.963159,-87.746384 ));
            shapesAlbanyPark.add( new MQA.LatLng(41.975081,-87.747246 ));
            shapesAlbanyPark.add( new MQA.LatLng(41.975537,-87.704789));
            shapesAlbanyPark.add( new MQA.LatLng(41.970261,-87.70274));
            shapesAlbanyPark.add( new MQA.LatLng(41.961419,-87.694615));
            
	   	    polyAlbanyPark.setShapePoints( shapesAlbanyPark );
			myMap.addShape( polyAlbanyPark );	
			
	MQA.withModule('htmlpoi', function() {
    var myPOIAlbanyPark = new MQA.HtmlPoi(new MQA.LatLng( 41.965298,-87.714783)); 
    myPOIAlbanyPark.setHtml("<a onMouseOver=fn_color_over(polyAlbanyPark); onMouseOut=fn_color_out(polyAlbanyPark); onclick=fn_border('AlbanyPark',polyAlbanyPark);>Albany Park</a>",0,0,'text_map');
    myMap.addShape( myPOIAlbanyPark );});		   

//--Irving Park---------

polyIrvingPark = new MQA.PolygonOverlay();

      if( getCookie('IrvingPark') == 'yes') 
	     {
	       polyIrvingPark.setBorderWidth(2);
	       polyIrvingPark.setColor("#005500");
	     }
	   else
	    {
          polyIrvingPark.setBorderWidth(0);
          polyIrvingPark.setColor("#999999");
        }
        
    polyIrvingPark.setFillColor("#550000");
    polyIrvingPark.setFillColorAlpha( .18 );
    polyIrvingPark.setKey("IrvingPark");
    
         var shapesIrvingPark = new MQA.LatLngCollection();
            shapesIrvingPark.add( new MQA.LatLng(41.946778,-87.696082));
            shapesIrvingPark.add( new MQA.LatLng(41.946464,-87.727143 ));
            shapesIrvingPark.add( new MQA.LatLng(41.93922,-87.727179 ));
            shapesIrvingPark.add( new MQA.LatLng(41.938934,-87.746593 ));
            shapesIrvingPark.add( new MQA.LatLng(41.960525,-87.747204 ));
            shapesIrvingPark.add( new MQA.LatLng(41.960696,-87.729624 ));
            shapesIrvingPark.add( new MQA.LatLng(41.953566,-87.719162));
            shapesIrvingPark.add( new MQA.LatLng( 41.953794,-87.694572 ));
            shapesIrvingPark.add( new MQA.LatLng( 41.949773,-87.696981));
            
	   	    polyIrvingPark.setShapePoints( shapesIrvingPark );
			myMap.addShape( polyIrvingPark );	
			
		MQA.withModule('htmlpoi', function() {
        var myPOIIrvingPark = new MQA.HtmlPoi(new MQA.LatLng( 41.950005,-87.738351));
		myPOIIrvingPark.setHtml("<a onMouseOver=fn_color_over(polyIrvingPark); onMouseOut=fn_color_out(polyIrvingPark); onclick=fn_border('IrvingPark',polyIrvingPark);>Irving Park</a>",0,0,'text_map');
        myMap.addShape( myPOIIrvingPark );});

//--Avondale Park---------

polyAvondalePark = new MQA.PolygonOverlay();

      if( getCookie('AvondalePark') == 'yes') 
	     {
	       polyAvondalePark.setBorderWidth(2);
	       polyAvondalePark.setColor("#005500");
	     }
	   else
	    {
          polyAvondalePark.setBorderWidth(0);
          polyAvondalePark.setColor("#999999");
        }
        
    polyAvondalePark.setFillColor("#000055");
    polyAvondalePark.setFillColorAlpha( .18 );
    polyAvondalePark.setKey("AvondalePark");
    
         var shapesAvondalePark = new MQA.LatLngCollection();
            shapesAvondalePark.add( new MQA.LatLng(41.946487,-87.68828));
            shapesAvondalePark.add( new MQA.LatLng(41.932312,-87.687992 ));
            shapesAvondalePark.add( new MQA.LatLng(41.931913,-87.726711 ));
            shapesAvondalePark.add( new MQA.LatLng(41.946259,-87.726855 ));
            
	   	    polyAvondalePark.setShapePoints( shapesAvondalePark );
			myMap.addShape( polyAvondalePark );	
			
	   MQA.withModule('htmlpoi', function() {
       var myPOIAvondalePark = new MQA.HtmlPoi(new MQA.LatLng( 41.9395,-87.71607));
	   myPOIAvondalePark.setHtml("<a onMouseOver=fn_color_over(polyAvondalePark); onMouseOut=fn_color_out(polyAvondalePark); onclick=fn_border('AvondalePark',polyAvondalePark);>Avondale Park</a>",0,0,'text_map');
       myMap.addShape( myPOIAvondalePark );});

//--Roscoe Village---------

//----------------------Roscoe Village-----------------------------

polyRoscoeVillage = new MQA.PolygonOverlay();

      if( getCookie('RoscoeVillage') == 'yes') 
	     {
	       polyRoscoeVillage.setBorderWidth(2);
	       polyRoscoeVillage.setColor("#005500");
	     }
	   else
	    {
          polyRoscoeVillage.setBorderWidth(0);
          polyRoscoeVillage.setColor("#999999");
        }
        
    polyRoscoeVillage.setFillColor("#ffff00");
    polyRoscoeVillage.setFillColorAlpha( .18 );
    polyRoscoeVillage.setKey("RoscoeVillage");
    
        var shapesRoscoeVillage = new MQA.LatLngCollection();
            shapesRoscoeVillage.add( new MQA.LatLng(41.946714,-87.668915));
            shapesRoscoeVillage.add( new MQA.LatLng(41.932511,-87.668375 ));
            shapesRoscoeVillage.add( new MQA.LatLng(41.932282,-87.687573 ));
            shapesRoscoeVillage.add( new MQA.LatLng(41.946515,-87.687861 ));
            
	   	    polyRoscoeVillage.setShapePoints( shapesRoscoeVillage );
			myMap.addShape( polyRoscoeVillage );
			
		MQA.withModule('htmlpoi', function() {
        var myPOIRoscoeVillage = new MQA.HtmlPoi(new MQA.LatLng( 41.941249,-87.681932 ));
		myPOIRoscoeVillage.setHtml("<a onMouseOver=fn_color_over(polyRoscoeVillage); onMouseOut=fn_color_out(polyRoscoeVillage); onclick=fn_border('RoscoeVillage',polyRoscoeVillage);>Roscoe Village</a>",0,0,'text_map');
        myMap.addShape( myPOIRoscoeVillage );});			

//--Lakeview---------

polyLakeview = new MQA.PolygonOverlay();

      if( getCookie('Lakeview') == 'yes') 
	     {
	       polyLakeview.setBorderWidth(2);
	       polyLakeview.setColor("#005500");
	     }
	   else
	    {
          polyLakeview.setBorderWidth(0);
          polyLakeview.setColor("#999999");
        }
        
    polyLakeview.setFillColor("#ff00ff");
    polyLakeview.setFillColorAlpha( .18 );
    polyLakeview.setKey("Lakeview");
    
    
        var shapesLakeview = new MQA.LatLngCollection();
            shapesLakeview.add( new MQA.LatLng(41.94703,-87.637713));
            shapesLakeview.add( new MQA.LatLng(41.932909,-87.631594 ));
            shapesLakeview.add( new MQA.LatLng(41.93251,-87.66812));
            shapesLakeview.add( new MQA.LatLng(41.946831,-87.668487 ));
            
	   	    polyLakeview.setShapePoints( shapesLakeview );
			myMap.addShape( polyLakeview );	
				
		MQA.withModule('htmlpoi', function() {
        var myPOILakeview = new MQA.HtmlPoi(new MQA.LatLng( 41.93984,-87.65658));
		myPOILakeview.setHtml("<a onMouseOver=fn_color_over(polyLakeview); onMouseOut=fn_color_out(polyLakeview); onclick=fn_border('Lakeview',polyLakeview);>Lakeview</a>",0,0,'text_map');
        myMap.addShape( myPOILakeview );});

//--Lincoln Park---------

polyLincolnPark = new MQA.PolygonOverlay();

      if( getCookie('LincolnPark') == 'yes') 
	     {
	       polyLincolnPark.setBorderWidth(2);
	      polyLincolnPark.setColor("#005500");
	     }
	   else
	    {
         polyLincolnPark.setBorderWidth(0);
         polyLincolnPark.setColor("#999999");
       }
        
    polyLincolnPark.setFillColor("#550000");
    polyLincolnPark.setFillColorAlpha( .18 );
    polyLincolnPark.setKey("LincolnPark");
    
    
        var shapesLincolnPark = new MQA.LatLngCollection();
           
            shapesLincolnPark.add( new MQA.LatLng(41.932598,-87.631566));
            shapesLincolnPark.add( new MQA.LatLng(41.911178,-87.624554));
            shapesLincolnPark.add( new MQA.LatLng(41.910722,-87.664603));
            shapesLincolnPark.add( new MQA.LatLng(41.915856,-87.66809));
            shapesLincolnPark.add( new MQA.LatLng(41.916997,-87.66374));
            shapesLincolnPark.add( new MQA.LatLng(41.917111,-87.65806));
            shapesLincolnPark.add( new MQA.LatLng(41.917995,-87.657988));
            shapesLincolnPark.add( new MQA.LatLng(41.918223,-87.648389));
            shapesLincolnPark.add( new MQA.LatLng(41.932484,-87.648678));
            
	   	    polyLincolnPark.setShapePoints( shapesLincolnPark );
			myMap.addShape( polyLincolnPark );		  
	
	   MQA.withModule('htmlpoi', function() {
       var myPOILincolnPark = new MQA.HtmlPoi(new MQA.LatLng( 41.920627,-87.643053));
	   myPOILincolnPark.setHtml("<a onMouseOver=fn_color_over(polyLincolnPark); onMouseOut=fn_color_out(polyLincolnPark); onclick=fn_border('LincolnPark',polyLincolnPark);>Lincoln Park</a>",0,0,'text_map');
       myMap.addShape( myPOILincolnPark );});

//--De Paul---------

polyDePaul = new MQA.PolygonOverlay();

      if( getCookie('DePaul') == 'yes') 
	     {
	       polyDePaul.setBorderWidth(2);
	       polyDePaul.setColor("#005500");
	     }
	   else
	    {
          polyDePaul.setBorderWidth(0);
          polyDePaul.setColor("#999999");
        }
        
    polyDePaul.setFillColor("#00ff00");
    polyDePaul.setFillColorAlpha( .18 );
    polyDePaul.setKey("DePaul");
    
        var shapesDePaul = new MQA.LatLngCollection();
           
            shapesDePaul.add( new MQA.LatLng(41.932416,-87.648974));
            shapesDePaul.add( new MQA.LatLng(41.918355,-87.648543));
            shapesDePaul.add( new MQA.LatLng(41.91807,-87.658177));
            shapesDePaul.add( new MQA.LatLng(41.917186,-87.658177));
            shapesDePaul.add( new MQA.LatLng(41.917129,-87.663822));
            shapesDePaul.add( new MQA.LatLng(41.915988,-87.668136));
            shapesDePaul.add( new MQA.LatLng(41.918498,-87.670868));
            shapesDePaul.add( new MQA.LatLng(41.931988,-87.695171));
  
	   	    polyDePaul.setShapePoints( shapesDePaul );
			myMap.addShape( polyDePaul );	
				
		  MQA.withModule('htmlpoi', function() {
          var myPOIDePaul= new MQA.HtmlPoi(new MQA.LatLng( 41.925611,-87.666077));
		  myPOIDePaul.setHtml("<a onMouseOver=fn_color_over(polyDePaul); onMouseOut=fn_color_out(polyDePaul); onclick=fn_border('DePaul',polyDePaul);>De Paul</a>",0,0,'text_map');
          myMap.addShape( myPOIDePaul );});

//--Wicker Park---------

//----------------------Wicker Park-----------------------------

polyWickerPark = new MQA.PolygonOverlay();

      if( getCookie('WickerPark') == 'yes') 
	     {
	       polyWickerPark.setBorderWidth(2);
	       polyWickerPark.setColor("#005500");
	     }
	   else
	    {
          polyWickerPark.setBorderWidth(0);
          polyWickerPark.setColor("#999999");
        }
        
    polyWickerPark.setFillColor("#555500");
    polyWickerPark.setFillColorAlpha( .18 );
    polyWickerPark.setKey("WickerPark");
    
        var shapesWickerPark = new MQA.LatLngCollection();
           
            shapesWickerPark.add( new MQA.LatLng(41.910436,-87.667693));
            shapesWickerPark.add( new MQA.LatLng(41.903448,-87.667549));
            shapesWickerPark.add( new MQA.LatLng(41.903106,-87.686782));
            shapesWickerPark.add( new MQA.LatLng(41.910207,-87.686926));
     
	   	    polyWickerPark.setShapePoints( shapesWickerPark );
			myMap.addShape( polyWickerPark );	
			
      MQA.withModule('htmlpoi', function() {
      var myPOIWickerPark= new MQA.HtmlPoi(new MQA.LatLng( 41.908787,-87.685079 ));
      myPOIWickerPark.setHtml("<a onMouseOver=fn_color_over(polyWickerPark); onMouseOut=fn_color_out(polyWickerPark); onclick=fn_border('WickerPark',polyWickerPark);>Wicker Park</a>",0,0,'text_map');
      myMap.addShape( myPOIWickerPark );});

//--Bucktown---------

 polyBucktown = new MQA.PolygonOverlay();

      if( getCookie('Bucktown') == 'yes') 
	     {
	       polyBucktown.setBorderWidth(2);
	       polyBucktown.setColor("#005500");
	     }
	   else
	    {
          polyBucktown.setBorderWidth(0);
          polyBucktown.setColor("#999999");
        }
        
    polyBucktown.setFillColor("#ff0000");
    polyBucktown.setFillColorAlpha( .18 );
    polyBucktown.setKey("Bucktown");
    
        var shapesBucktown = new MQA.LatLngCollection();
           
            shapesBucktown.add( new MQA.LatLng(41.927349,-87.68754));
            shapesBucktown.add( new MQA.LatLng(41.91808,-87.671111));
            shapesBucktown.add( new MQA.LatLng(41.915484,-87.668235));
            shapesBucktown.add( new MQA.LatLng(41.910151,-87.664676));
            shapesBucktown.add( new MQA.LatLng(41.906272,-87.661224));
            shapesBucktown.add( new MQA.LatLng(41.903477,-87.661045));
            shapesBucktown.add( new MQA.LatLng(41.903391,-87.6673));
            shapesBucktown.add( new MQA.LatLng(41.910579,-87.667444));
            shapesBucktown.add( new MQA.LatLng(41.910408,-87.687001));
           
	   	    polyBucktown.setShapePoints( shapesBucktown );
			myMap.addShape( polyBucktown );	
							
	    MQA.withModule('htmlpoi', function() {
        var myPOIBucktown= new MQA.HtmlPoi(new MQA.LatLng( 41.918043,-87.684916 ));
        myPOIBucktown.setHtml("<a onMouseOver=fn_color_over(polyBucktown); onMouseOut=fn_color_out(polyBucktown); onclick=fn_border('Bucktown',polyBucktown);>Bucktown</a>",0,0,'text_map');
        myMap.addShape( myPOIBucktown );});
  
//--Logan Square---------
      
      polyLoganSquare = new MQA.PolygonOverlay();

      if( getCookie('LoganSquare') == 'yes') 
	     {
	       polyLoganSquare.setBorderWidth(2);
	       polyLoganSquare.setColor("#005500");
	     }
	   else
	    {
          polyLoganSquare.setBorderWidth(0);
          polyLoganSquare.setColor("#999999");
        }
        
    polyLoganSquare.setFillColor("#fd8e17");
    polyLoganSquare.setFillColorAlpha( .18 );
    polyLoganSquare.setKey("LoganSquare");
    
        var shapesLoganSquare = new MQA.LatLngCollection();
           
            shapesLoganSquare.add( new MQA.LatLng(41.931884,-87.695916));
            shapesLoganSquare.add( new MQA.LatLng(41.927435,-87.687756));
            shapesLoganSquare.add( new MQA.LatLng(41.910351,-87.687252));
            shapesLoganSquare.add( new MQA.LatLng(41.909951,-87.726079));
            shapesLoganSquare.add( new MQA.LatLng(41.931599,-87.72669));

	   	    polyLoganSquare.setShapePoints( shapesLoganSquare );
			myMap.addShape( polyLoganSquare );
			
		MQA.withModule('htmlpoi', function() {
        var myPOILoganSquare = new MQA.HtmlPoi(new MQA.LatLng( 41.927616,-87.721251 ));
		myPOILoganSquare.setHtml("<a onMouseOver=fn_color_over(polyLoganSquare); onMouseOut=fn_color_out(polyLoganSquare); onclick=fn_border('LoganSquare',polyLoganSquare);>Logan Square</a>",0,0,'text_map');
        myMap.addShape( myPOILoganSquare );});

//--Hermosa---------

polyHermosa = new MQA.PolygonOverlay();

      if( getCookie('Hermosa') == 'yes') 
	     {
	       polyHermosa.setBorderWidth(2);
	       polyHermosa.setColor("#005500");    
	     }
	   else
	    {
          polyHermosa.setBorderWidth(0);
          polyHermosa.setColor("#99999");
        }
        
    polyHermosa.setFillColor("#00ff00");
    polyHermosa.setFillColorAlpha( .18 );
    polyHermosa.setKey("Hermosa");
    
        var shapesHermosa = new MQA.LatLngCollection();
           
            shapesHermosa.add( new MQA.LatLng(41.93891,-87.727133));
            shapesHermosa.add( new MQA.LatLng(41.909932,-87.726342));
            shapesHermosa.add( new MQA.LatLng(41.909818,-87.745683));
            shapesHermosa.add( new MQA.LatLng(41.938624,-87.746582));

	   	    polyHermosa.setShapePoints( shapesHermosa );
			myMap.addShape( polyHermosa );	
			
	   MQA.withModule('htmlpoi', function() {
       var myPOIHermosa = new MQA.HtmlPoi(new MQA.LatLng( 41.928871,-87.742533 ));
	   myPOIHermosa.setHtml("<a onMouseOver=fn_color_over(polyHermosa); onMouseOut=fn_color_out(polyHermosa); onclick=fn_border('Hermosa',polyHermosa);>Hermosa</a>",0,0,'text_map');
       myMap.addShape( myPOIHermosa );});

//--Belmont / Cragin---------

polyCragin = new MQA.PolygonOverlay();

      if( getCookie('Cragin') == 'yes') 
	     {
	       polyCragin.setBorderWidth(2);
	       polyCragin.setColor("#005500");	       
	     }
	   else
	    {
          polyCragin.setBorderWidth(0);
          polyCragin.setColor("#999999");
        }
        
    polyCragin.setFillColor("#ff00ff");
    polyCragin.setFillColorAlpha( .18 );
    polyCragin.setKey("Cragin");
    
        var shapesCragin = new MQA.LatLngCollection();
           
            shapesCragin.add( new MQA.LatLng(41.942291,-87.746976));
            shapesCragin.add( new MQA.LatLng(41.914397,-87.746006));
            shapesCragin.add( new MQA.LatLng(41.915652,-87.755748));
            shapesCragin.add( new MQA.LatLng(41.924095,-87.756036));
            shapesCragin.add( new MQA.LatLng(41.92398,-87.765779));
            shapesCragin.add( new MQA.LatLng(41.942035,-87.766462));
            
	   	    polyCragin.setShapePoints( shapesCragin );
			myMap.addShape( polyCragin );	
			
		MQA.withModule('htmlpoi', function() {
        var myPOICragin = new MQA.HtmlPoi(new MQA.LatLng( 41.938977,-87.763144 ));
		myPOICragin.setHtml("<a onMouseOver=fn_color_over(polyCragin); onMouseOut=fn_color_out(polyCragin); onclick=fn_border('Cragin',polyCragin);>Cragin</a>",0,0,'text_map');
        myMap.addShape( myPOICragin );});

//--Austin---------

polyAustin = new MQA.PolygonOverlay();

      if( getCookie('Austin') == 'yes') 
	     {
	       polyAustin.setBorderWidth(2);
	       polyAustin.setColor("#005500");      
	     }
	   else
	    {
          polyAustin.setBorderWidth(0);
          polyAustin.setColor("#999999");
        }
        
    polyAustin.setFillColor("#000055");
    polyAustin.setFillColorAlpha( .18 );
    polyAustin.setKey("Austin");
    
        var shapesAustin = new MQA.LatLngCollection();
           
            shapesAustin.add( new MQA.LatLng(41.91418,-87.746042));
            shapesAustin.add( new MQA.LatLng(41.871683,-87.744963));
            shapesAustin.add( new MQA.LatLng(41.871255,-87.764448));
            shapesAustin.add( new MQA.LatLng(41.916604,-87.765599));

       	    polyAustin.setShapePoints( shapesAustin );
			myMap.addShape( polyAustin );	
				
        MQA.withModule('htmlpoi', function() {
        var myPOIAustin = new MQA.HtmlPoi(new MQA.LatLng( 41.906006,-87.761275 ));
		myPOIAustin.setHtml("<a onMouseOver=fn_color_over(polyAustin); onMouseOut=fn_color_out(polyAustin); onclick=fn_border('Austin',polyAustin);>Austin</a>",0,0,'text_map');
        myMap.addShape( myPOIAustin );});

//--Humboldt Park---------

polyHumboldtPark = new MQA.PolygonOverlay();

      if( getCookie('HumboldtPark') == 'yes') 
	     {
	       polyHumboldtPark.setBorderWidth(2);
	       polyHumboldtPark.setColor("#005500");    
	     }
	   else
	    {
          polyHumboldtPark.setBorderWidth(0);
          polyHumboldtPark.setColor("#999999");
        }

    polyHumboldtPark.setFillColor("#ffff00");
    polyHumboldtPark.setFillColorAlpha( .18 );
    polyHumboldtPark.setKey("HumboldtPark");
    
        var shapesHumboldtPark = new MQA.LatLngCollection();
           
            shapesHumboldtPark.add( new MQA.LatLng(41.910081,-87.687153));
            shapesHumboldtPark.add( new MQA.LatLng(41.895848,-87.686866));
            shapesHumboldtPark.add( new MQA.LatLng(41.89505,-87.745249));
            shapesHumboldtPark.add( new MQA.LatLng(41.90951,-87.745573));

       	    polyHumboldtPark.setShapePoints( shapesHumboldtPark );
			myMap.addShape( polyHumboldtPark );	
			
		MQA.withModule('htmlpoi', function() {
        var myPOIHumboldtPark = new MQA.HtmlPoi(new MQA.LatLng( 41.902521,-87.714942 ));	
		myPOIHumboldtPark.setHtml("<a onMouseOver=fn_color_over(polyHumboldtPark); onMouseOut=fn_color_out(polyHumboldtPark); onclick=fn_border('HumboldtPark',polyHumboldtPark);>Humboldt Park</a>",0,0,'text_map');
        myMap.addShape( myPOIHumboldtPark );});

//--Ukrainian Village---------

polyUkrainianVillage = new MQA.PolygonOverlay();

      if( getCookie('UkrainianVillage') == 'yes') 
	     {
	       polyUkrainianVillage.setBorderWidth(2);
	       polyUkrainianVillage.setColor("#005500");	       
	     }
	   else
	    {
          polyUkrainianVillage.setBorderWidth(0);
          polyUkrainianVillage.setColor("#999999");
        }
        
        
    polyUkrainianVillage.setFillColor("#000055");
    polyUkrainianVillage.setFillColorAlpha( .18 );
    polyUkrainianVillage.setKey("UkrainianVillage");
    
        var shapesUkrainianVillage = new MQA.LatLngCollection();
           
            shapesUkrainianVillage.add( new MQA.LatLng(41.90317,-87.667479));
            shapesUkrainianVillage.add( new MQA.LatLng(41.896182,-87.667371));
            shapesUkrainianVillage.add( new MQA.LatLng(41.895897,-87.686569));
            shapesUkrainianVillage.add( new MQA.LatLng(41.902857,-87.686677));

       	    polyUkrainianVillage.setShapePoints( shapesUkrainianVillage );
			myMap.addShape( polyUkrainianVillage );		
	
	    MQA.withModule('htmlpoi', function() {
        var myPOIUkrainianVillage = new MQA.HtmlPoi(new MQA.LatLng( 41.901342,-87.683579 ));
		myPOIUkrainianVillage.setHtml("<a onMouseOver=fn_color_over(polyUkrainianVillage); onMouseOut=fn_color_out(polyUkrainianVillage); onclick=fn_border('UkrainianVillage',polyUkrainianVillage);>Ukrainian Village</a>",0,0,'text_map');
        myMap.addShape( myPOIUkrainianVillage );});
		
//--River West---------

polyRiverWest = new MQA.PolygonOverlay();

  if( getCookie('RiverWest') == 'yes') 
	     {
	      polyRiverWest.setBorderWidth(2);
          polyRiverWest.setColor("#005500");          
	     }
	   else
	    {
          polyRiverWest.setBorderWidth(0);
          polyRiverWest.setColor("#999999");
        }

    polyRiverWest.setFillColor("#fd8e17");
    polyRiverWest.setFillColorAlpha( .18 );
    polyRiverWest.setKey("RiverWest");
    
        var shapesRiverWest = new MQA.LatLngCollection();
           
            shapesRiverWest.add( new MQA.LatLng(41.885737,-87.637737));
            shapesRiverWest.add( new MQA.LatLng(41.88568,-87.645826));
            shapesRiverWest.add( new MQA.LatLng(41.888703,-87.647587));           
            shapesRiverWest.add( new MQA.LatLng(41.89629,-87.658121));
            shapesRiverWest.add( new MQA.LatLng(41.899684,-87.660098));
            shapesRiverWest.add( new MQA.LatLng(41.903306,-87.660529));
            shapesRiverWest.add( new MQA.LatLng(41.903506,-87.649205));
            shapesRiverWest.add( new MQA.LatLng(41.900654,-87.646545));
            shapesRiverWest.add( new MQA.LatLng(41.897374,-87.644352));
            shapesRiverWest.add( new MQA.LatLng(41.89413,-87.643656));
            shapesRiverWest.add( new MQA.LatLng(41.888988,-87.639354));

       	    polyRiverWest.setShapePoints( shapesRiverWest );
			myMap.addShape( polyRiverWest );	
			
		MQA.withModule('htmlpoi', function() {
        var myPOIRiverWest = new MQA.HtmlPoi(new MQA.LatLng( 41.89532,-87.655172 ));
		myPOIRiverWest.setHtml("<a onMouseOver=fn_color_over(polyRiverWest); onMouseOut=fn_color_out(polyRiverWest); onclick=fn_border('RiverWest',polyRiverWest);>River West</a>",0,0,'text_map');
        myMap.addShape( myPOIRiverWest );});
        
 //--Old Town---------
 
 polyOldTown = new MQA.PolygonOverlay();
   
  if( getCookie('OldTown') == 'yes') 
	     {
	      polyOldTown.setBorderWidth(2);
          polyOldTown.setColor("#005500");      
	     }
	   else
	    {
          polyOldTown.setBorderWidth(0);
          polyOldTown.setColor("#999999");
        }
        
    polyOldTown.setFillColor("#ff00ff");
    polyOldTown.setFillColorAlpha( .18 );
    polyOldTown.setKey("OldTown");
    
        var shapesOldTown = new MQA.LatLngCollection();
           
            shapesOldTown.add( new MQA.LatLng(41.911008,-87.631566));
            shapesOldTown.add( new MQA.LatLng(41.903955,-87.631361));
            shapesOldTown.add( new MQA.LatLng(41.903442,-87.660589));           
            shapesOldTown.add( new MQA.LatLng(41.90638,-87.660805));
            shapesOldTown.add( new MQA.LatLng(41.910515,-87.66458));

       	    polyOldTown.setShapePoints( shapesOldTown );
			myMap.addShape( polyOldTown );	
						
	    MQA.withModule('htmlpoi', function() {
        var myPOIOldTown = new MQA.HtmlPoi(new MQA.LatLng( 41.90931,-87.658197 ));
		myPOIOldTown.setHtml("<a onMouseOver=fn_color_over(polyOldTown); onMouseOut=fn_color_out(polyOldTown); onclick=fn_border('OldTown',polyOldTown);>Old Town</a>",0,0,'text_map');
        myMap.addShape( myPOIOldTown );});     
        
 //--Gold Coast---------
 
 polyGoldCoast = new MQA.PolygonOverlay();
    
     if( getCookie('GoldCoast') == 'yes') 
	     {
	      polyGoldCoast.setBorderWidth(2);
          polyGoldCoast.setColor("#005500");   
	     }
	   else
	    {
          polyGoldCoast.setBorderWidth(0);
          polyGoldCoast.setColor("#999999");
        }
        
    polyGoldCoast.setFillColorAlpha( .18 );
    polyGoldCoast.setKey("GoldCoast");
    
        var shapesGoldCoast = new MQA.LatLngCollection();
           
           shapesGoldCoast.add( new MQA.LatLng(41.91097,-87.62526));
           shapesGoldCoast.add( new MQA.LatLng(41.901958,-87.622636));
           shapesGoldCoast.add( new MQA.LatLng(41.901159,-87.619113));           
           shapesGoldCoast.add( new MQA.LatLng(41.893202,-87.613577));
           shapesGoldCoast.add( new MQA.LatLng(41.893316,-87.61221));
           shapesGoldCoast.add( new MQA.LatLng(41.896367,-87.610197));
           shapesGoldCoast.add( new MQA.LatLng(41.89631,-87.602108));
           shapesGoldCoast.add( new MQA.LatLng(41.893287,-87.602288));
           shapesGoldCoast.add( new MQA.LatLng(41.893087,-87.609694));
           shapesGoldCoast.add( new MQA.LatLng(41.892146,-87.609694));          
           shapesGoldCoast.add( new MQA.LatLng(41.891804,-87.62393));         
           shapesGoldCoast.add( new MQA.LatLng(41.896653,-87.624146));      
           shapesGoldCoast.add( new MQA.LatLng(41.896603,-87.630989));         
           shapesGoldCoast.add( new MQA.LatLng(41.910913,-87.631336));

       	    polyGoldCoast.setShapePoints( shapesGoldCoast );
			myMap.addShape( polyGoldCoast );	
			
		MQA.withModule('htmlpoi', function() {
        var myPOIGoldCoast = new MQA.HtmlPoi(new MQA.LatLng( 41.902803,-87.629697 ));	
		myPOIGoldCoast.setHtml("<a onMouseOver=fn_color_over(polyGoldCoast); onMouseOut=fn_color_out(polyGoldCoast); onclick=fn_border('GoldCoast',polyGoldCoast);>Gold Coast</a>",0,0,'text_map');
        myMap.addShape( myPOIGoldCoast );}); 
 
 //--River North---------
 
 polyRiverNorth = new MQA.PolygonOverlay();
    
      if( getCookie('RiverNorth') == 'yes') 
	     {
	      polyRiverNorth.setBorderWidth(2);
          polyRiverNorth.setColor("#005500");     
	     }
	   else
	    {
          polyRiverNorth.setBorderWidth(0);
          polyRiverNorth.setColor("#999999");
        }
 
    polyRiverNorth.setFillColor("#00ff00");
    polyRiverNorth.setFillColorAlpha( .18 );
    polyRiverNorth.setKey("RiverNorth");
    
        var shapesRiverNorth= new MQA.LatLngCollection();
           
           shapesRiverNorth.add( new MQA.LatLng(41.903706,-87.631314));
           shapesRiverNorth.add( new MQA.LatLng(41.896404,-87.631026));
           shapesRiverNorth.add( new MQA.LatLng(41.896461,-87.624231));           
           shapesRiverNorth.add( new MQA.LatLng(41.891613,-87.624016));
           shapesRiverNorth.add( new MQA.LatLng(41.892297,-87.598491));
           shapesRiverNorth.add( new MQA.LatLng(41.891014,-87.598527));
           shapesRiverNorth.add( new MQA.LatLng(41.890957,-87.60942));
           shapesRiverNorth.add( new MQA.LatLng(41.88839,-87.609168));
           shapesRiverNorth.add( new MQA.LatLng(41.888447,-87.619773));      
           shapesRiverNorth.add( new MQA.LatLng(41.888817,-87.62495));
           shapesRiverNorth.add( new MQA.LatLng(41.887449,-87.627898));          
           shapesRiverNorth.add( new MQA.LatLng(41.887334,-87.6357));         
           shapesRiverNorth.add( new MQA.LatLng(41.886165,-87.637389));      
           shapesRiverNorth.add( new MQA.LatLng(41.889245,-87.639115));         
           shapesRiverNorth.add( new MQA.LatLng(41.894208,-87.643429));          
           shapesRiverNorth.add( new MQA.LatLng(41.897345,-87.64404));         
           shapesRiverNorth.add( new MQA.LatLng(41.900597,-87.646233));     
           shapesRiverNorth.add( new MQA.LatLng(41.903478,-87.648965));

       	    polyRiverNorth.setShapePoints( shapesRiverNorth );
			myMap.addShape( polyRiverNorth );	
							
	    MQA.withModule('htmlpoi', function() {
        var myPOIRiverNorth = new MQA.HtmlPoi(new MQA.LatLng( 41.893684,-87.633492 ));
		myPOIRiverNorth.setHtml("<a onMouseOver=fn_color_over(polyRiverNorth); onMouseOut=fn_color_out(polyRiverNorth); onclick=fn_border('RiverNorth',polyRiverNorth);>River North</a>",0,0,'text_map');
        myMap.addShape( myPOIRiverNorth );}); 
  
 //--Loop---------
 
 polyLoop = new MQA.PolygonOverlay();
    
       if( getCookie('Loop') == 'yes') 
	     {
	      polyLoop.setBorderWidth(2);
          polyLoop.setColor("#005500");      
	     }
	   else
	    {
          polyLoop.setBorderWidth(0);
          polyLoop.setColor("#999999");
        }

    polyLoop.setFillColor("#000055");
    polyLoop.setFillColorAlpha( .18 );
    polyLoop.setKey("Loop");
    
        var shapesLoop = new MQA.LatLngCollection();
           
           shapesLoop.add( new MQA.LatLng(41.88802,-87.61251));
           shapesLoop.add( new MQA.LatLng(41.882629,-87.612654));
           shapesLoop.add( new MQA.LatLng(41.881716,-87.615998));           
           shapesLoop.add( new MQA.LatLng(41.875727,-87.615782));
           shapesLoop.add( new MQA.LatLng(41.87567,-87.636669));
           shapesLoop.add( new MQA.LatLng(41.88069,-87.638215));
           shapesLoop.add( new MQA.LatLng(41.885168,-87.637604));
           shapesLoop.add( new MQA.LatLng(41.886109,-87.637029));
           shapesLoop.add( new MQA.LatLng(41.887135,-87.635339));       
           shapesLoop.add( new MQA.LatLng(41.887278,-87.627466));        
           shapesLoop.add( new MQA.LatLng(41.88859,-87.624805));          
           shapesLoop.add( new MQA.LatLng(41.888248,-87.619377));         

       	    polyLoop.setShapePoints( shapesLoop );
			myMap.addShape( polyLoop );	
						
	    MQA.withModule('htmlpoi', function() {
        var myPOILoop = new MQA.HtmlPoi(new MQA.LatLng( 41.881973,-87.626567 ));
		myPOILoop.setHtml("<a onMouseOver=fn_color_over(polyLoop); onMouseOut=fn_color_out(polyLoop); onclick=fn_border('Loop',polyLoop);>Loop</a>",0,0,'text_map');
        myMap.addShape( myPOILoop );}); 

//--West Loop---------

polyWestLoop = new MQA.PolygonOverlay();
    
       if( getCookie('WestLoop') == 'yes') 
	     {
	      polyWestLoop.setBorderWidth(2);
          polyWestLoop.setColor("#005500");     
	     }
	   else
	    {
          polyWestLoop.setBorderWidth(0);
          polyWestLoop.setColor("#999999");
        }
        
    polyWestLoop.setFillColor("#0000ff");
    polyWestLoop.setFillColorAlpha( .18 );
    polyWestLoop.setKey("WestLoop");
    
        var shapesWestLoop = new MQA.LatLngCollection();
           
           shapesWestLoop.add( new MQA.LatLng(41.885496,-87.637702));
           shapesWestLoop.add( new MQA.LatLng(41.880298,-87.638359));
           shapesWestLoop.add( new MQA.LatLng(41.875651,-87.636895));           
           shapesWestLoop.add( new MQA.LatLng(41.875606,-87.645193));
           shapesWestLoop.add( new MQA.LatLng(41.877945,-87.645606));
           shapesWestLoop.add( new MQA.LatLng(41.885526,-87.645831));
                 
       	    polyWestLoop.setShapePoints( shapesWestLoop );
			myMap.addShape( polyWestLoop );	
		
		MQA.withModule('htmlpoi', function() {
        var myPOIWestLoop = new MQA.HtmlPoi(new MQA.LatLng( 41.881713,-87.641682 ));
		myPOIWestLoop.setHtml("<a onMouseOver=fn_color_over(polyWestLoop); onMouseOut=fn_color_out(polyWestLoop); onclick=fn_border('WestLoop',polyWestLoop);>West Loop</a>",0,0,'text_map');
        myMap.addShape( myPOIWestLoop );}); 

//--West Town---------

polyWestTown = new MQA.PolygonOverlay();
    
      if( getCookie('WestTown') == 'yes') 
	     {
	      polyWestTown.setBorderWidth(2);
          polyWestTown.setColor("#005500");
	     }
	   else
	    {
          polyWestTown.setBorderWidth(0);
          polyWestTown.setColor("#999999");
        }
       
    polyWestTown.setFillColor("#00ffff");
    polyWestTown.setFillColorAlpha( .18 );
    polyWestTown.setKey("WestTown");
    
        var shapesWestTown = new MQA.LatLngCollection();
           
           shapesWestTown.add( new MQA.LatLng(41.903256,-87.661005));
           shapesWestTown.add( new MQA.LatLng(41.899591,-87.660235));
           shapesWestTown.add( new MQA.LatLng(41.896181,-87.65832));           
           shapesWestTown.add( new MQA.LatLng(41.896136,-87.667162));
           shapesWestTown.add( new MQA.LatLng(41.903226,-87.667294));
                 
       	    polyWestTown.setShapePoints( shapesWestTown );
			myMap.addShape( polyWestTown );	
			
	   MQA.withModule('htmlpoi', function() {
       var myPOIWestTown = new MQA.HtmlPoi(new MQA.LatLng( 41.901392,-87.6662 ));
	   myPOIWestTown.setHtml("<a onMouseOver=fn_color_over(polyWestTown); onMouseOut=fn_color_out(polyWestTown); onclick=fn_border('WestTown',polyWestTown);>West Town</a>",0,0,'text_map');
       myMap.addShape( myPOIWestTown );}); 
	
//--East Village---------

polyEastVillage = new MQA.PolygonOverlay();
    
      if( getCookie('EastVillage') == 'yes') 
	     {
	      polyEastVillage.setBorderWidth(2);
          polyEastVillage.setColor("#005500");
	     }
	   else
	    {
          polyEastVillage.setBorderWidth(0);
          polyEastVillage.setColor("#999999");
        }

    polyEastVillage.setFillColor("#ff00ff");
    polyEastVillage.setFillColorAlpha( .18 );
    polyEastVillage.setKey("EastVillage");
    
        var shapesEastVillage = new MQA.LatLngCollection();
                  
           shapesEastVillage.add( new MQA.LatLng(41.89609,-87.658385));
           shapesEastVillage.add( new MQA.LatLng(41.888504,-87.647779));
           shapesEastVillage.add( new MQA.LatLng(41.885595,-87.646054));           
           shapesEastVillage.add( new MQA.LatLng(41.875641,-87.645407));
           shapesEastVillage.add( new MQA.LatLng(41.875469,-87.696025));
           shapesEastVillage.add( new MQA.LatLng(41.89552,-87.696564));
                
       	    polyEastVillage.setShapePoints( shapesEastVillage );
			myMap.addShape( polyEastVillage );	
			
		MQA.withModule('htmlpoi', function() {
        var myPOIEastVillage = new MQA.HtmlPoi(new MQA.LatLng( 41.889416,-87.676396));
		myPOIEastVillage.setHtml("<a onMouseOver=fn_color_over(polyEastVillage); onMouseOut=fn_color_out(polyEastVillage); onclick=fn_border('EastVillage',polyEastVillage);>East Village</a>",0,0,'text_map');
        myMap.addShape( myPOIEastVillage );}); 			 
 
 //--Garfield Park---------
 
 polyGarfieldPark = new MQA.PolygonOverlay();
    
      if( getCookie('GarfieldPark') == 'yes') 
	     {
	      polyGarfieldPark.setBorderWidth(2);
          polyGarfieldPark.setColor("#005500");
	     }
	   else
	    {
          polyGarfieldPark.setBorderWidth(0);
          polyGarfieldPark.setColor("#999999");
        }
        
    polyGarfieldPark.setFillColor("#00ff00");
    polyGarfieldPark.setFillColorAlpha( .18 );
    polyGarfieldPark.setKey("GarfieldPark");
    
        var shapesGarfieldPark = new MQA.LatLngCollection();
           
           shapesGarfieldPark.add( new MQA.LatLng( 41.895435,-87.696682 ));
           shapesGarfieldPark.add( new MQA.LatLng( 41.87547,-87.696143 ));
           shapesGarfieldPark.add( new MQA.LatLng( 41.874101,-87.710847 ));           
           shapesGarfieldPark.add( new MQA.LatLng( 41.873759,-87.733496 ));
           shapesGarfieldPark.add( new MQA.LatLng( 41.871677,-87.740218 ));
           shapesGarfieldPark.add( new MQA.LatLng( 41.871734,-87.744604 )); 
           shapesGarfieldPark.add( new MQA.LatLng( 41.894807,-87.745144 ));
   
       	    polyGarfieldPark.setShapePoints( shapesGarfieldPark );
			myMap.addShape( polyGarfieldPark );	
			
	    MQA.withModule('htmlpoi', function() {
        var myPOIGarfieldPark = new MQA.HtmlPoi(new MQA.LatLng( 41.885395,-87.719547 ));
		myPOIGarfieldPark.setHtml("<a onMouseOver=fn_color_over(polyGarfieldPark); onMouseOut=fn_color_out(polyGarfieldPark); onclick=fn_border('GarfieldPark',polyGarfieldPark);>Garfield Park</a>",0,0,'text_map');
        myMap.addShape( myPOIGarfieldPark );}); 		 
 
 //--South Neighborhoods---------
 
 //--Lawndale----------

   polyLawndale = new MQA.PolygonOverlay();
    
        if( getCookie('Lawndale') == 'yes') 
	     {
	       polyLawndale.setBorderWidth(2);
	       polyLawndale.setColor("#005500");
	     }
	   else
	    {
          polyLawndale.setBorderWidth(0);
          polyLawndale.setColor("#999999");
        }
        
    polyLawndale.setFillColor("#550000");
    polyLawndale.setFillColorAlpha( .18 );
    polyLawndale.setKey("Lawndale");
    
        var shapesLawndale = new MQA.LatLngCollection();
           
           shapesLawndale.add( new MQA.LatLng( 41.870962,-87.764281 ));
           shapesLawndale.add( new MQA.LatLng( 41.865629,-87.764066 ));
           shapesLawndale.add( new MQA.LatLng(  41.86583,-87.73726 ));
           shapesLawndale.add( new MQA.LatLng( 41.821848,-87.735737 ));
           shapesLawndale.add( new MQA.LatLng(41.837706,-87.684903 )); 
           shapesLawndale.add( new MQA.LatLng( 41.875098,-87.686161  ));
           shapesLawndale.add( new MQA.LatLng( 41.874957,-87.695917 ));
           shapesLawndale.add( new MQA.LatLng( 41.873588,-87.711375 ));
           shapesLawndale.add( new MQA.LatLng( 41.87336,-87.732946 ));
           shapesLawndale.add( new MQA.LatLng( 41.871249,-87.739992 ));
   
       	    polyLawndale.setShapePoints( shapesLawndale );
			myMap.addShape( polyLawndale );	
			
	    MQA.withModule('htmlpoi', function() {
        var myPOILawndale = new MQA.HtmlPoi(new MQA.LatLng( 41.869907,-87.709924  ));
        myPOILawndale.setHtml("<a onMouseOver=fn_color_over(polyLawndale); onMouseOut=fn_color_out(polyLawndale); onclick=fn_border('Lawndale',polyLawndale);>Lawndale</a>",0,0,'text_map');
        myMap.addShape( myPOILawndale );}); 		

//--Tri-Taylor---------

    polyTriTaylor = new MQA.PolygonOverlay();
    
        if( getCookie('TriTaylor') == 'yes') 
	     {
	       polyTriTaylor.setBorderWidth(2);
	       polyTriTaylor.setColor("#005500");
	     }
	   else
	    {
          polyTriTaylor.setBorderWidth(0);
          polyTriTaylor.setColor("#999999");
        }
        
    polyTriTaylor.setFillColor("#ffff00");
    polyTriTaylor.setFillColorAlpha( .18 );
    polyTriTaylor.setKey("TriTaylor");
    
        var shapesTriTaylor = new MQA.LatLngCollection();
           
           shapesTriTaylor.add( new MQA.LatLng( 41.875018,-87.685903 ));
           shapesTriTaylor.add( new MQA.LatLng( 41.874989,-87.673751 ));
           shapesTriTaylor.add( new MQA.LatLng( 41.865007,-87.685795 ));
         
           polyTriTaylor.setShapePoints( shapesTriTaylor );
           myMap.addShape( polyTriTaylor );	
			
	    MQA.withModule('htmlpoi', function() {
        var myPOITriTaylor = new MQA.HtmlPoi(new MQA.LatLng( 41.871816,-87.684326  ));
        myPOITriTaylor.setHtml("<a onMouseOver=fn_color_over(polyTriTaylor); onMouseOut=fn_color_out(polyTriTaylor); onclick=fn_border('TriTaylor',polyTriTaylor);>Tri Taylor</a>",0,0,'text_map');
        myMap.addShape( myPOITriTaylor );}); 	
 
 
 //--Medical Village---------

   polyMedicalVillage = new MQA.PolygonOverlay();
    
        if( getCookie('MedicalVillage') == 'yes') 
	     {
	       polyMedicalVillage.setBorderWidth(2);
	       polyMedicalVillage.setColor("#005500");
	     }
	   else
	    {
          polyMedicalVillage.setBorderWidth(0);
          polyMedicalVillage.setColor("#999999");
        }
        
    polyMedicalVillage.setFillColor("#ff0000");
    polyMedicalVillage.setFillColorAlpha( .18 );
    polyMedicalVillage.setKey("MedicalVillage");
    
    var shapesMedicalVillage = new MQA.LatLngCollection();
           
           shapesMedicalVillage.add( new MQA.LatLng( 41.875078,-87.673318 ));
           shapesMedicalVillage.add( new MQA.LatLng( 41.875306,-87.64542 ));
           shapesMedicalVillage.add( new MQA.LatLng( 41.860475,-87.644449 ));
           shapesMedicalVillage.add( new MQA.LatLng( 41.859847,-87.671197 ));          
           shapesMedicalVillage.add( new MQA.LatLng( 41.858839,-87.678719 ));        
           shapesMedicalVillage.add( new MQA.LatLng( 41.857541,-87.685412 ));
           shapesMedicalVillage.add( new MQA.LatLng( 41.864929,-87.685637 ));

       	    polyMedicalVillage.setShapePoints( shapesMedicalVillage );
			myMap.addShape( polyMedicalVillage );	
			
	    MQA.withModule('htmlpoi', function() {
        var myPOIMedicalVillage = new MQA.HtmlPoi(new MQA.LatLng( 41.866891,-87.668799 ));
	    myPOIMedicalVillage.setHtml("<a onMouseOver=fn_color_over(polyMedicalVillage); onMouseOut=fn_color_out(polyMedicalVillage); onclick=fn_border('MedicalVillage',polyMedicalVillage);>Medical Village</a>",0,0,'text_map');
        myMap.addShape( myPOIMedicalVillage );}); 	
        
        
//--Pilsen---------

 polyPilsen = new MQA.PolygonOverlay();
    
        if( getCookie('Pilsen') == 'yes') 
	     {
	       polyPilsen.setBorderWidth(2);
	       polyPilsen.setColor("#005500");
	     }
	   else
	    {
          polyPilsen.setBorderWidth(0);
          polyPilsen.setColor("#999999");
        }
        
    polyPilsen.setFillColor("#fd8e17");
    polyPilsen.setFillColorAlpha( .18 );
    polyPilsen.setKey("Pilsen");
    
        var shapesPilsen = new MQA.LatLngCollection();
           
           shapesPilsen.add( new MQA.LatLng(41.857316,-87.685331 ));
           shapesPilsen.add( new MQA.LatLng( 41.858657,-87.678609 ));
           shapesPilsen.add( new MQA.LatLng( 41.859627,-87.670951 ));
           shapesPilsen.add( new MQA.LatLng( 41.860283,-87.644348 ));
           shapesPilsen.add( new MQA.LatLng( 41.856518,-87.644384 ));
           shapesPilsen.add( new MQA.LatLng( 41.852667,-87.645318 ));
           shapesPilsen.add( new MQA.LatLng( 41.849473,-87.644204 ));
           shapesPilsen.add( new MQA.LatLng( 41.847819,-87.652832 ));
           shapesPilsen.add( new MQA.LatLng( 41.84819,-87.65693 ));
           shapesPilsen.add( new MQA.LatLng( 41.84394,-87.664552 ));
           shapesPilsen.add( new MQA.LatLng( 41.84491,-87.666385 ));       
           shapesPilsen.add( new MQA.LatLng( 41.843381,-87.671528 ));   
           shapesPilsen.add( new MQA.LatLng( 41.841116,-87.676883 ));
           shapesPilsen.add( new MQA.LatLng( 41.840118,-87.677674 ));
           shapesPilsen.add( new MQA.LatLng( 41.837808,-87.684576 ));
      
       	polyPilsen.setShapePoints( shapesPilsen );
		myMap.addShape(polyPilsen );	
			
	    MQA.withModule('htmlpoi', function() {
        var myPOIPilsen = new MQA.HtmlPoi(new MQA.LatLng( 41.849445,-87.670844 ));
	    myPOIPilsen.setHtml("<a onMouseOver=fn_color_over(polyPilsen); onMouseOut=fn_color_out(polyPilsen); onclick=fn_border('Pilsen',polyPilsen);>Pilsen</a>",0,0,'text_map');
        myMap.addShape( myPOIPilsen );});
 
 //--Chinatown---------
 
   polyChinatown = new MQA.PolygonOverlay();
    
        if( getCookie('Chinatown') == 'yes') 
	     {
	       polyChinatown.setBorderWidth(2);
	       polyChinatown.setColor("#005500");
	     }
	   else
	    {
          polyChinatown.setBorderWidth(0);
          polyChinatown.setColor("#999999");
        }
        
    polyChinatown.setFillColor("#00ffff");
    polyChinatown.setFillColorAlpha( .18 );
    polyChinatown.setKey("Chinatown");
    
        var shapesChinatown = new MQA.LatLngCollection();
           
           shapesChinatown.add( new MQA.LatLng( 41.85262,-87.644923 ));
           shapesChinatown.add( new MQA.LatLng( 41.852876,-87.631118 ));
           shapesChinatown.add( new MQA.LatLng( 41.843093,-87.63083 ));
           shapesChinatown.add( new MQA.LatLng( 41.845061,-87.633095 ));
           shapesChinatown.add( new MQA.LatLng( 41.847372,-87.642083 ));
           shapesChinatown.add( new MQA.LatLng( 41.849026,-87.6437 ));

       	    polyChinatown.setShapePoints( shapesChinatown );
			myMap.addShape( polyChinatown );	
			
	    MQA.withModule('htmlpoi', function() {
        var myPOIChinatown = new MQA.HtmlPoi(new MQA.LatLng( 41.850138,-87.641328 ));
	    myPOIChinatown.setHtml("<a onMouseOver=fn_color_over(polyChinatown); onMouseOut=fn_color_out(polyChinatown); onclick=fn_border('Chinatown',polyChinatown);>Chinatown</a>",0,0,'text_map');
        myMap.addShape( myPOIChinatown );});
 

//--South_Loop---------

    polySouthLoop = new MQA.PolygonOverlay();
    
        if( getCookie('SouthLoop') == 'yes') 
	     {
	       polySouthLoop.setBorderWidth(2);
	       polySouthLoop.setColor("#005500");
	     }
	   else
	    {
          polySouthLoop.setBorderWidth(0);
          polySouthLoop.setColor("#999999");
        }
        
    polySouthLoop.setFillColor("#005500");
    polySouthLoop.setFillColorAlpha( .18 );
    polySouthLoop.setKey("SouthLoop");
    
        var shapesSouthLoop = new MQA.LatLngCollection();
           
           shapesSouthLoop.add( new MQA.LatLng(41.875303,-87.645006 ));
           shapesSouthLoop.add( new MQA.LatLng( 41.875474,-87.615814 ));
           shapesSouthLoop.add( new MQA.LatLng( 41.84835,-87.612291 ));
           shapesSouthLoop.add( new MQA.LatLng( 41.848065,-87.623472 ));
           shapesSouthLoop.add( new MQA.LatLng( 41.846953,-87.628037 ));
           shapesSouthLoop.add( new MQA.LatLng( 41.847324,-87.630698 ));      
           shapesSouthLoop.add( new MQA.LatLng( 41.852999,-87.630842 ));   
           shapesSouthLoop.add( new MQA.LatLng( 41.8528,-87.644826 ));      
           shapesSouthLoop.add( new MQA.LatLng( 41.85762,-87.643963 ));
            
       	    polySouthLoop.setShapePoints( shapesSouthLoop );
			myMap.addShape( polySouthLoop );	
			
	   MQA.withModule('htmlpoi', function() {
       var myPOISouthLoop = new MQA.HtmlPoi(new MQA.LatLng( 41.868144,-87.634724));
	   myPOISouthLoop.setHtml("<a onMouseOver=fn_color_over(polySouthLoop); onMouseOut=fn_color_out(polySouthLoop); onclick=fn_border('SouthLoop',polySouthLoop);>South Loop</a>",0,0,'text_map');
       myMap.addShape( myPOISouthLoop );});
       
//--McKinley_Park---------

    polyMcKinleyPark = new MQA.PolygonOverlay();
    
        if( getCookie('McKinleyPark') == 'yes') 
	     {
	       polyMcKinleyPark.setBorderWidth(2);
	       polyMcKinleyPark.setColor("#005500");
	     }
	   else
	    {
          polyMcKinleyPark.setBorderWidth(0);
          polyMcKinleyPark.setColor("#999999");
        }
        
    polyMcKinleyPark.setFillColor("#00ff00");
    polyMcKinleyPark.setFillColorAlpha( .18 );
    polyMcKinleyPark.setKey("McKinleyPark");
    
        var shapesMcKinleyPark = new MQA.LatLngCollection();
           
           shapesMcKinleyPark.add( new MQA.LatLng(41.837474,-87.684502 ));
           shapesMcKinleyPark.add( new MQA.LatLng( 41.839984,-87.677132 ));
           shapesMcKinleyPark.add( new MQA.LatLng( 41.841182,-87.675802 ));
           shapesMcKinleyPark.add( new MQA.LatLng( 41.844576,-87.666347 ));
           shapesMcKinleyPark.add( new MQA.LatLng( 41.844291,-87.665772 ));
           shapesMcKinleyPark.add( new MQA.LatLng( 41.823156,-87.66534 )); 
           shapesMcKinleyPark.add( new MQA.LatLng( 41.823071,-87.684071));

       	    polyMcKinleyPark.setShapePoints( shapesMcKinleyPark );
			myMap.addShape( polyMcKinleyPark );	
			
	        MQA.withModule('htmlpoi', function() {
            var myPOIMcKinleyPark = new MQA.HtmlPoi(new MQA.LatLng(  41.831627,-87.677923 ));
	        myPOIMcKinleyPark.setHtml("<a onMouseOver=fn_color_over(polyMcKinleyPark); onMouseOut=fn_color_out(polyMcKinleyPark); onclick=fn_border('McKinleyPark',polyMcKinleyPark);>McKinley Park</a>",0,0,'text_map');
            myMap.addShape( myPOIMcKinleyPark );});

///--Bridgeport---------
 
  polyBridgeport = new MQA.PolygonOverlay();
    
        if( getCookie('Bridgeport') == 'yes') 
	     {
	       polyBridgeport.setBorderWidth(2);
	       polyBridgeport.setColor("#005500");
	     }
	   else
	    {
          polyBridgeport.setBorderWidth(0);
          polyBridgeport.setColor("#999999");
        }
        
    polyBridgeport.setFillColor("#0000ff");
    polyBridgeport.setFillColorAlpha( .18 );
    polyBridgeport.setKey("Bridgeport");
    
        var shapesBridgeport = new MQA.LatLngCollection();
           
           shapesBridgeport.add( new MQA.LatLng(41.844165,-87.665412 ));
           shapesBridgeport.add( new MQA.LatLng( 41.84368,-87.664477 ));
           shapesBridgeport.add( new MQA.LatLng( 41.847844,-87.656784 ));
           shapesBridgeport.add( new MQA.LatLng( 41.84753,-87.652722 ));
           shapesBridgeport.add( new MQA.LatLng( 41.849156,-87.644022 ));
           shapesBridgeport.add( new MQA.LatLng( 41.847131,-87.64226 )); 
           shapesBridgeport.add( new MQA.LatLng(41.844678,-87.633129 ));
           shapesBridgeport.add( new MQA.LatLng(41.842596,-87.630792 ));
           shapesBridgeport.add( new MQA.LatLng(41.823715,-87.630576 ));
           shapesBridgeport.add( new MQA.LatLng(41.82323,-87.664981 ));

       	    polyBridgeport.setShapePoints( shapesBridgeport );
			myMap.addShape( polyBridgeport );	
			
	       MQA.withModule('htmlpoi', function() {
           var myPOIBridgeport = new MQA.HtmlPoi(new MQA.LatLng(  41.835636,-87.655562 ));
	       myPOIBridgeport.setHtml("<a onMouseOver=fn_color_over(polyBridgeport); onMouseOut=fn_color_out(polyBridgeport); onclick=fn_border('Bridgeport',polyBridgeport);>Bridgeport</a>",0,0,'text_map');
           myMap.addShape( myPOIBridgeport );});
            
//--Bronzeville---------
 
    polyBronzeville = new MQA.PolygonOverlay();
    
        if( getCookie('Bronzeville') == 'yes') 
	     {
	       polyBronzeville.setBorderWidth(2);
	       polyBronzeville.setColor("#005500");
	     }
	   else
	    {
          polyBronzeville.setBorderWidth(0);
          polyBronzeville.setColor("#999999");
        }
        
    polyBronzeville.setFillColor("#ff00ff");
    polyBronzeville.setFillColorAlpha( .18 );
    polyBronzeville.setKey("Bronzeville");
    
        var shapesBronzeville = new MQA.LatLngCollection();
           
           shapesBronzeville.add( new MQA.LatLng(41.847119,-87.630636 ));
           shapesBronzeville.add( new MQA.LatLng( 41.846748,-87.62794 ));
           shapesBronzeville.add( new MQA.LatLng( 41.84786,-87.623194 ));
           shapesBronzeville.add( new MQA.LatLng( 41.848088,-87.611978 ));
           shapesBronzeville.add( new MQA.LatLng( 41.831375,-87.604824 ));
           shapesBronzeville.add( new MQA.LatLng( 41.831175,-87.610504 )); 
           shapesBronzeville.add( new MQA.LatLng(41.823959,-87.607125 ));
           shapesBronzeville.add( new MQA.LatLng( 41.82376,-87.630061 ));

       	    polyBronzeville.setShapePoints( shapesBronzeville );
			myMap.addShape( polyBronzeville );	
			
	     MQA.withModule('htmlpoi', function() {
         var myPOIBronzeville = new MQA.HtmlPoi(new MQA.LatLng( 41.840017,-87.625891 ));
         myPOIBronzeville.setHtml("<a onMouseOver=fn_color_over(polyBronzeville); onMouseOut=fn_color_out(polyBronzeville); onclick=fn_border('Bronzeville',polyBronzeville);>Bronzeville</a>",0,0,'text_map');
         myMap.addShape( myPOIBronzeville );});      
            
//--Oakland---------

  polyOakland = new MQA.PolygonOverlay();
    
        if( getCookie('Oakland') == 'yes') 
	     {
	       polyOakland.setBorderWidth(2);
	       polyOakland.setColor("#005500");
	     }
	   else
	    {
          polyOakland.setBorderWidth(0);
          polyOakland.setColor("#999999");
        }
        
    polyOakland.setFillColor("#550000");
    polyOakland.setFillColorAlpha( .18 );
    polyOakland.setKey("Oakland");
    
        var shapesOakland = new MQA.LatLngCollection();
           
           shapesOakland.add( new MQA.LatLng( 41.831001,-87.610167 ));
            shapesOakland.add( new MQA.LatLng(   41.831087,-87.604738 ));
            shapesOakland.add( new MQA.LatLng( 41.811122,-87.588309 ));
            shapesOakland.add( new MQA.LatLng( 41.809696,-87.591976 ));
            shapesOakland.add( new MQA.LatLng(41.80961,-87.604019 ));
             shapesOakland.add( new MQA.LatLng(41.819935,-87.60445 ));
   
       	    polyOakland.setShapePoints( shapesOakland );
			myMap.addShape( polyOakland );	
			
	   MQA.withModule('htmlpoi', function() {
       var myPOIOakland = new MQA.HtmlPoi(new MQA.LatLng(  41.820078,-87.600999 ));
       myPOIOakland.setHtml("<a onMouseOver=fn_color_over(polyOakland); onMouseOut=fn_color_out(polyOakland); onclick=fn_border('Oakland',polyOakland);>Oakland</a>",0,0,'text_map');
       myMap.addShape( myPOIOakland );});              
       
//--Brighton Park---------

   polyBrightonPark = new MQA.PolygonOverlay();
    
        if( getCookie('BrightonPark') == 'yes') 
	     {
	       polyBrightonPark.setBorderWidth(2);
	       polyBrightonPark.setColor("#005500");
	     }
	   else
	    {
          polyBrightonPark.setBorderWidth(0);
          polyBrightonPark.setColor("#999999");
        }
        
    polyBrightonPark.setFillColor("#00ffff");
    polyBrightonPark.setFillColorAlpha( .18 );
    polyBrightonPark.setKey("BrightonPark");
    
        var shapesBrightonPark = new MQA.LatLngCollection();
           
           shapesBrightonPark.add( new MQA.LatLng( 41.825155,-87.723746 ));
           shapesBrightonPark.add( new MQA.LatLng( 41.837191,-87.684775 ));
           shapesBrightonPark.add( new MQA.LatLng( 41.80268,-87.6842 ));
           shapesBrightonPark.add( new MQA.LatLng( 41.802338,-87.723026 ));
   
       	    polyBrightonPark.setShapePoints( shapesBrightonPark );
			myMap.addShape( polyBrightonPark );	
			
	   MQA.withModule('htmlpoi', function() {
       var myPOIBrightonPark= new MQA.HtmlPoi(new MQA.LatLng(  41.821904,-87.712529 ));
	   myPOIBrightonPark.setHtml("<a onMouseOver=fn_color_over(polyBrightonPark); onMouseOut=fn_color_out(polyBrightonPark); onclick=fn_border('BrightonPark',polyBrightonPark);>Brighton Park</a>",0,0,'text_map');
       myMap.addShape( myPOIBrightonPark );});      
                   
//--Archer Heights---------

 polyArcherHeights = new MQA.PolygonOverlay();
    
        if( getCookie('ArcherHeights') == 'yes') 
	     {
	       polyArcherHeights.setBorderWidth(2);
	       polyArcherHeights.setColor("#005500");
	     }
	   else
	    {
          polyArcherHeights.setBorderWidth(0);
          polyArcherHeights.setColor("#999999");
        }
        
    polyArcherHeights.setFillColor("#ff00ff");
    polyArcherHeights.setFillColorAlpha( .18 );
    polyArcherHeights.setKey("ArcherHeights");
    
    
        var shapesArcherHeights = new MQA.LatLngCollection();
           
           shapesArcherHeights.add( new MQA.LatLng( 41.825098,-87.724039 ));
           shapesArcherHeights.add( new MQA.LatLng( 41.819337,-87.743309 ));
           shapesArcherHeights.add( new MQA.LatLng( 41.798744,-87.742769 ));
           shapesArcherHeights.add( new MQA.LatLng( 41.801625,-87.724614 ));
           shapesArcherHeights.add( new MQA.LatLng( 41.802424,-87.723248 ));
          
       	    polyArcherHeights.setShapePoints( shapesArcherHeights );
			myMap.addShape( polyArcherHeights );	
			
	    MQA.withModule('htmlpoi', function() {
        var myPOIArcherHeights = new MQA.HtmlPoi(new MQA.LatLng(  41.812463,-87.737664 ));
	    myPOIArcherHeights.setHtml("<a onMouseOver=fn_color_over(polyArcherHeights); onMouseOut=fn_color_out(polyArcherHeights); onclick=fn_border('ArcherHeights',polyArcherHeights);>Archer Heights</a>",0,0,'text_map');
        myMap.addShape( myPOIArcherHeights );});   
  
 //--Back of the Yards---------

   polyBackoftheYards = new MQA.PolygonOverlay();
    
        if( getCookie('BackoftheYards') == 'yes') 
	     {
	       polyBackoftheYards.setBorderWidth(2);
	       polyBackoftheYards.setColor("#005500");
	     }
	   else
	    {
          polyBackoftheYards.setBorderWidth(0);
          polyBackoftheYards.setColor("#999999");
        }
        
    polyBackoftheYards.setFillColor("#ff00ff");
    polyBackoftheYards.setFillColorAlpha( .18 );
    polyBackoftheYards.setKey("BackoftheYards");
    
        var shapesBackoftheYards = new MQA.LatLngCollection();
           
           shapesBackoftheYards.add( new MQA.LatLng( 41.822842,-87.68398 ));
           shapesBackoftheYards.add( new MQA.LatLng( 41.823131,-87.64579 ));   
          shapesBackoftheYards.add( new MQA.LatLng( 41.787079,-87.644999 ));
          shapesBackoftheYards.add( new MQA.LatLng( 41.786623,-87.68361 ));

       	    polyBackoftheYards.setShapePoints( shapesBackoftheYards );
			myMap.addShape( polyBackoftheYards );	
			
	    MQA.withModule('htmlpoi', function() {
        var myPOIBackoftheYards= new MQA.HtmlPoi(new MQA.LatLng(  41.812064,-87.6702 ));
        myPOIBackoftheYards.setHtml("<a onMouseOver=fn_color_over(polyBackoftheYards); onMouseOut=fn_color_out(polyBackoftheYards); onclick=fn_border('BackoftheYards',polyBackoftheYards);>Back of the Yards</a>",0,0,'text_map');
        myMap.addShape( myPOIBackoftheYards );});   

//--Canaryville---------

  polyCanaryville = new MQA.PolygonOverlay();
    
        if( getCookie('Canaryville') == 'yes') 
	     {
	       polyCanaryville.setBorderWidth(2);
	       polyCanaryville.setColor("#005500");
	     }
	   else
	    {
          polyCanaryville.setBorderWidth(0);
          polyCanaryville.setColor("#999999");
        }
        
    polyCanaryville.setFillColor("#ffff00");
    polyCanaryville.setFillColorAlpha( .18 );
    polyCanaryville.setKey("Canaryville");
    
        var shapesCanaryville = new MQA.LatLngCollection();
           
           shapesCanaryville.add( new MQA.LatLng( 41.823214,-87.645513 ));
           shapesCanaryville.add( new MQA.LatLng( 41.823414,-87.636129 ));
           shapesCanaryville.add( new MQA.LatLng(41.787277,-87.635231));
           shapesCanaryville.add( new MQA.LatLng(41.787049,-87.644793));
           
       	    polyCanaryville.setShapePoints( shapesCanaryville );
			myMap.addShape( polyCanaryville );	
			
	    MQA.withModule('htmlpoi', function() {
        var myPOICanaryville = new MQA.HtmlPoi(new MQA.LatLng( 41.807968,-87.64428 ));
        myPOICanaryville.setHtml("<a onMouseOver=fn_color_over(polyCanaryville); onMouseOut=fn_color_out(polyCanaryville); onclick=fn_border('Canaryville',polyCanaryville);>Canaryville</a>",0,0,'text_map');
        myMap.addShape( myPOICanaryville );});   		
		
//--Fuller Park---------

     polyFullerPark = new MQA.PolygonOverlay();
    
        if( getCookie('FullerPark') == 'yes') 
	     {
	       polyFullerPark.setBorderWidth(2);
	       polyFullerPark.setColor("#005500");
	     }
	   else
	    {
          polyFullerPark.setBorderWidth(0);
          polyFullerPark.setColor("#999999");
        }
        
    polyFullerPark.setFillColor("#00ffff");
    polyFullerPark.setFillColorAlpha( .18 );
    polyFullerPark.setKey("FullerPark");
    
        var shapesFullerPark = new MQA.LatLngCollection();
           
           shapesFullerPark.add( new MQA.LatLng( 41.823416,-87.63594));
           shapesFullerPark.add( new MQA.LatLng( 41.823558,-87.626341 ));
           shapesFullerPark.add( new MQA.LatLng( 41.787422,-87.625406 ));
           shapesFullerPark.add( new MQA.LatLng( 41.787251,-87.635041 ));
           
       	    polyFullerPark.setShapePoints( shapesFullerPark );
			myMap.addShape( polyFullerPark );	
			
	    MQA.withModule('htmlpoi', function() {
        var myPOIFullerPark = new MQA.HtmlPoi(new MQA.LatLng( 41.800285,-87.634466));
	    myPOIFullerPark.setHtml("<a onMouseOver=fn_color_over(polyFullerPark); onMouseOut=fn_color_out(polyFullerPark); onclick=fn_border('FullerPark',polyFullerPark);>Fuller Park</a>",0,0,'text_map');
        myMap.addShape( myPOIFullerPark );});   				
		
//--Grand Boulevard---------

     polyGrandBoulevard = new MQA.PolygonOverlay();
    
        if( getCookie('GrandBoulevard') == 'yes') 
	     {
	       polyGrandBoulevard.setBorderWidth(2);
	       polyGrandBoulevard.setColor("#005500");
	     }
	   else
	    {
          polyGrandBoulevard.setBorderWidth(0);
          polyGrandBoulevard.setColor("#999999");
        }
        
    polyGrandBoulevard.setFillColor("#00ff00");
    polyGrandBoulevard.setFillColorAlpha( .18 );
    polyGrandBoulevard.setKey("GrandBoulevard");
    
        var shapesGrandBoulevard = new MQA.LatLngCollection();
           
           shapesGrandBoulevard.add( new MQA.LatLng( 41.823549,-87.626114));
           shapesGrandBoulevard.add( new MQA.LatLng( 41.823777,-87.606665 ));
           shapesGrandBoulevard.add( new MQA.LatLng( 41.81987,-87.604652 ));
           shapesGrandBoulevard.add( new MQA.LatLng( 41.802415,-87.604041 ));
           shapesGrandBoulevard.add( new MQA.LatLng( 41.802015,-87.625503 ));
         
       	    polyGrandBoulevard.setShapePoints( shapesGrandBoulevard );
			myMap.addShape( polyGrandBoulevard );	
			
	    MQA.withModule('htmlpoi', function() {
        var myPOIGrandBoulevard = new MQA.HtmlPoi(new MQA.LatLng( 41.809231,-87.621225));
        myPOIGrandBoulevard.setHtml("<a onMouseOver=fn_color_over(polyGrandBoulevard); onMouseOut=fn_color_out(polyGrandBoulevard); onclick=fn_border('GrandBoulevard',polyGrandBoulevard);>Grand Boulevard</a>",0,0,'text_map');
        myMap.addShape( myPOIGrandBoulevard );});  


//--Kenwood---------

  polyKenwood = new MQA.PolygonOverlay();
    
        if( getCookie('Kenwood') == 'yes') 
	     {
	       polyKenwood.setBorderWidth(2);
	       polyKenwood.setColor("#005500");
	     }
	   else
	    {
          polyKenwood.setBorderWidth(0);
          polyKenwood.setColor("#999999");
        }
        
    polyKenwood.setFillColor("#fd8e17");
    polyKenwood.setFillColorAlpha( .18 );
    polyKenwood.setKey("Kenwood");
    
        var shapesKenwood = new MQA.LatLngCollection();
           
           shapesKenwood.add( new MQA.LatLng( 41.80941,-87.60387 ));
           shapesKenwood.add( new MQA.LatLng( 41.809524,-87.591647 ));
           shapesKenwood.add( new MQA.LatLng( 41.810921,-87.58816 ));
           shapesKenwood.add( new MQA.LatLng( 41.804133,-87.580143 ));
           shapesKenwood.add( new MQA.LatLng( 41.802479,-87.580179 ));
           shapesKenwood.add( new MQA.LatLng( 41.802393,-87.603655 )); 
           
       	    polyKenwood.setShapePoints( shapesKenwood );
			myMap.addShape( polyKenwood );	
			
	      MQA.withModule('htmlpoi', function() {
         var myPOIKenwood= new MQA.HtmlPoi(new MQA.LatLng( 41.806443,-87.600923));
         myPOIKenwood.setHtml("<a onMouseOver=fn_color_over(polyKenwood); onMouseOut=fn_color_out(polyKenwood); onclick=fn_border('Kenwood',polyKenwood);>Kenwood</a>",0,0,'text_map');
         myMap.addShape( myPOIKenwood );});  

//--Hyde Park---------

    polyHydePark = new MQA.PolygonOverlay();
    
        if( getCookie('HydePark') == 'yes') 
	     {
	       polyHydePark.setBorderWidth(2);
	       polyHydePark.setColor("#005500");
	     }
	   else
	    {
          polyHydePark.setBorderWidth(0);
          polyHydePark.setColor("#999999");
        }
        
    polyHydePark.setFillColor("#0000ff");
    polyHydePark.setFillColorAlpha( .18 );
    polyHydePark.setKey("HydePark");
    
        var shapesHydePark = new MQA.LatLngCollection();   
           shapesHydePark.add( new MQA.LatLng( 41.802202,-87.603603 ));         
           shapesHydePark.add( new MQA.LatLng(41.802202,-87.580128));       
           shapesHydePark.add( new MQA.LatLng(41.795528,-87.57833));         
           shapesHydePark.add( new MQA.LatLng(41.787798,-87.576964));
           shapesHydePark.add( new MQA.LatLng(41.787741,-87.603316));

       	    polyHydePark.setShapePoints( shapesHydePark );
			myMap.addShape( polyHydePark );	
			
	      MQA.withModule('htmlpoi', function() {
          var myPOIHydePark = new MQA.HtmlPoi(new MQA.LatLng( 41.796184,-87.601626));
          myPOIHydePark.setHtml("<a onMouseOver=fn_color_over(polyHydePark); onMouseOut=fn_color_out(polyHydePark); onclick=fn_border('HydePark',polyHydePark);>Hyde Park</a>",0,0,'text_map');
          myMap.addShape( myPOIHydePark );});  

//--Washington Park---------

     polyWashingtonPark = new MQA.PolygonOverlay();
    
        if( getCookie('WashingtonPark') == 'yes') 
	     {
	       polyWashingtonPark.setBorderWidth(2);
	       polyWashingtonPark.setColor("#005500");
	     }
	   else
	    {
          polyWashingtonPark.setBorderWidth(0);
          polyWashingtonPark.setColor("#999999");
        }
        
    polyWashingtonPark.setFillColor("#005500");
    polyWashingtonPark.setFillColorAlpha( .18 );
    polyWashingtonPark.setKey("WashingtonPark");
    
        var shapesWashingtonPark = new MQA.LatLngCollection();      
           shapesWashingtonPark.add( new MQA.LatLng( 41.801782,-87.625462 ));       
           shapesWashingtonPark.add( new MQA.LatLng(41.802153,-87.60382 ));     
           shapesWashingtonPark.add( new MQA.LatLng(41.787692,-87.603532 ));      
           shapesWashingtonPark.add( new MQA.LatLng(41.787692,-87.605941 ));        
           shapesWashingtonPark.add( new MQA.LatLng(41.785895,-87.605941  ));  
           shapesWashingtonPark.add( new MQA.LatLng(41.785724,-87.615612 ));      
           shapesWashingtonPark.add( new MQA.LatLng(41.78755,-87.615647 ));    
           shapesWashingtonPark.add( new MQA.LatLng(41.787464,-87.625174 ));
 
       	    polyWashingtonPark.setShapePoints( shapesWashingtonPark );
			myMap.addShape( polyWashingtonPark );	
			
	    MQA.withModule('htmlpoi', function() {
        var myPOIWashingtonPark = new MQA.HtmlPoi(new MQA.LatLng( 41.794509,-87.620573 ));
	    myPOIWashingtonPark.setHtml("<a onMouseOver=fn_color_over(polyWashingtonPark); onMouseOut=fn_color_out(polyWashingtonPark); onclick=fn_border('WashingtonPark',polyWashingtonPark);>Washington Park</a>",0,0,'text_map');
        myMap.addShape( myPOIWashingtonPark );});  
  
//--Woodlawn---------

  polyWoodlawn = new MQA.PolygonOverlay();
    
        if( getCookie('Woodlawn') == 'yes') 
	     {
	       polyWoodlawn.setBorderWidth(2);
	       polyWoodlawn.setColor("#005500");
	     }
	   else
	    {
          polyWoodlawn.setBorderWidth(0);
          polyWoodlawn.setColor("#999999");
        }
        
    polyWoodlawn.setFillColor("#ff0000");
    polyWoodlawn.setFillColorAlpha( .18 );
    polyWoodlawn.setKey("Woodlawn");
    
       var shapesWoodlawn= new MQA.LatLngCollection(); 
           shapesWoodlawn.add( new MQA.LatLng( 41.78756,-87.605737 ));
           shapesWoodlawn.add( new MQA.LatLng(41.787589,-87.576869 ));
           shapesWoodlawn.add( new MQA.LatLng(41.773556,-87.566084 ));
           shapesWoodlawn.add( new MQA.LatLng(41.773271,-87.605449 ));

       	    polyWoodlawn.setShapePoints( shapesWoodlawn );
			myMap.addShape( polyWoodlawn );	
			
	      MQA.withModule('htmlpoi', function() {
          var myPOIWoodlawn = new MQA.HtmlPoi(new MQA.LatLng( 41.780344,-87.598367 ));
	      myPOIWoodlawn.setHtml("<a onMouseOver=fn_color_over(polyWoodlawn); onMouseOut=fn_color_out(polyWoodlawn); onclick=fn_border('Woodlawn',polyWoodlawn);>Woodlawn</a>",0,0,'text_map');
          myMap.addShape( myPOIWoodlawn);});  
 
//--Englewood---------

    polyEnglewood = new MQA.PolygonOverlay();
    
        if( getCookie('Englewood') == 'yes') 
	     {
	       polyEnglewood.setBorderWidth(2);
	       polyEnglewood.setColor("#005500");
	     }
	   else
	    {
          polyEnglewood.setBorderWidth(0);
          polyEnglewood.setColor("#999999");
        }
        
   polyEnglewood.setFillColor("#00ff00");
   polyEnglewood.setFillColorAlpha( .18 );
   polyEnglewood.setKey("Englewood");
    
       var shapesEnglewood = new MQA.LatLngCollection();
          shapesEnglewood.add(new MQA.LatLng( 41.786336,-87.683392 ));  
          shapesEnglewood.add(new MQA.LatLng(41.787106,-87.635075 ));
          shapesEnglewood.add(new MQA.LatLng( 41.750826,-87.63421 ));
          shapesEnglewood.add(new MQA.LatLng( 41.750199,-87.682096 ));

      	    polyEnglewood.setShapePoints( shapesEnglewood );
      	    myMap.addShape( polyEnglewood);	
      	    			
       MQA.withModule('htmlpoi', function() {
       var myPOIEnglewood = new MQA.HtmlPoi(new MQA.LatLng( 41.773262,-87.67209 ));
	   myPOIEnglewood.setHtml("<a onMouseOver=fn_color_over(polyEnglewood); onMouseOut=fn_color_out(polyEnglewood); onclick=fn_border('Englewood',polyEnglewood);>Englewood</a>",0,0,'text_map');
       myMap.addShape( myPOIEnglewood);});  
  
//--Park Manor----------
    
     polyParkManor = new MQA.PolygonOverlay();
    
        if( getCookie('ParkManor') == 'yes') 
	     {
	       polyParkManor.setBorderWidth(2);
	       polyParkManor.setColor("#005500");
	     }
	   else
	    {
          polyParkManor.setBorderWidth(0);
          polyParkManor.setColor("#999999");
        }
        
   polyParkManor.setFillColor("#550000");
   polyParkManor.setFillColorAlpha( .18 );
   polyParkManor.setKey("ParkManor");
    
       var shapesParkManor = new MQA.LatLngCollection();
          shapesParkManor.add(new MQA.LatLng( 41.787077,-87.634821  ));   
          shapesParkManor.add(new MQA.LatLng(41.787333,-87.615731 ));
          shapesParkManor.add(new MQA.LatLng(41.785508,-87.615659 ));
          shapesParkManor.add(new MQA.LatLng(41.785622,-87.605845 ));
          shapesParkManor.add(new MQA.LatLng(41.751453,-87.605233 ));
          shapesParkManor.add(new MQA.LatLng(41.750854,-87.633958 ));

      	    polyParkManor.setShapePoints( shapesParkManor );
      	    myMap.addShape( polyParkManor);	
      	    			
       MQA.withModule('htmlpoi', function() {
       var myPOIParkManor = new MQA.HtmlPoi(new MQA.LatLng( 41.763546,-87.630183 ));
       myPOIParkManor.setHtml("<a onMouseOver=fn_color_over(polyParkManor); onMouseOut=fn_color_out(polyParkManor); onclick=fn_border('ParkManor',polyParkManor);>Park Manor</a>",0,0,'text_map');
       myMap.addShape( myPOIParkManor);});   

//--Grand Crossing---------
	
 polyGrandCrossing = new MQA.PolygonOverlay();
    
        if( getCookie('GrandCrossing') == 'yes') 
	     {
	       polyGrandCrossing.setBorderWidth(2);
	       polyGrandCrossing.setColor("#005500");
	     }
	   else
	    {
          polyGrandCrossing.setBorderWidth(0);
          polyGrandCrossing.setColor("#999999");
        }
        
   polyGrandCrossing.setFillColor("#ffff00");
   polyGrandCrossing.setFillColorAlpha( .18 );
   polyGrandCrossing.setKey("GrandCrossing");
    
    
       var shapesGrandCrossing = new MQA.LatLngCollection();  
          shapesGrandCrossing.add(new MQA.LatLng( 41.773003,-87.605326 ));     
          shapesGrandCrossing.add(new MQA.LatLng( 41.773174,-87.586093 ));
          shapesGrandCrossing.add(new MQA.LatLng( 41.746906,-87.585518 ));
          shapesGrandCrossing.add(new MQA.LatLng( 41.746763,-87.604859 ));

      	  polyGrandCrossing.setShapePoints( shapesGrandCrossing );
      	  myMap.addShape(polyGrandCrossing );	
      	    			
       MQA.withModule('htmlpoi', function() {
       var myPOIGrandCrossing = new MQA.HtmlPoi(new MQA.LatLng(  41.761138,-87.600078 ));
	   myPOIGrandCrossing.setHtml("<a onMouseOver=fn_color_over(polyGrandCrossing); onMouseOut=fn_color_out(polyGrandCrossing); onclick=fn_border('GrandCrossing',polyGrandCrossing);>Grand Crossing</a>",0,0,'text_map');
       myMap.addShape( myPOIGrandCrossing);});  
 
 
 //--South Shore---------

    polySouthShore = new MQA.PolygonOverlay();
    
        if( getCookie('SouthShore') == 'yes') 
	     {
	       polySouthShore.setBorderWidth(2);
	       polySouthShore.setColor("#005500");
	     }
	   else
	    {
          polySouthShore.setBorderWidth(0);
          polySouthShore.setColor("#999999");
        }
        
   polySouthShore.setFillColor("#fd8e17");
   polySouthShore.setFillColorAlpha( .18 );
   polySouthShore.setKey("SouthShore");
    
       var shapesSouthShore = new MQA.LatLngCollection();
           
          shapesSouthShore.add(new MQA.LatLng( 41.773185,-87.58571 )); 
          shapesSouthShore.add(new MQA.LatLng( 41.773271,-87.565829 ));
          shapesSouthShore.add(new MQA.LatLng( 41.752023,-87.540843 ));
          shapesSouthShore.add(new MQA.LatLng( 41.751595,-87.585172 ));

      	    polySouthShore.setShapePoints( shapesSouthShore );
      	    			myMap.addShape( polySouthShore );	
      	    			
    MQA.withModule('htmlpoi', function() {
    var myPOISouthShore = new MQA.HtmlPoi(new MQA.LatLng( 41.766996,-87.580605 ));
    myPOISouthShore.setHtml("<a onMouseOver=fn_color_over(polySouthShore); onMouseOut=fn_color_out(polySouthShore); onclick=fn_border('SouthShore',polySouthShore);>South Shore</a>",0,0,'text_map');
    myMap.addShape( myPOISouthShore);});  

//--South Chicago---------

    polySouthChicago = new MQA.PolygonOverlay();
    
        if( getCookie('SouthChicago') == 'yes') 
	     {
	       polySouthChicago.setBorderWidth(2);
	       polySouthChicago.setColor("#005500");
	     }
	   else
	    {
          polySouthChicago.setBorderWidth(0);
          polySouthChicago.setColor("#999999");
        }
        
   polySouthChicago.setFillColor("#ff00ff");
   polySouthChicago.setFillColorAlpha( .18 );
   polySouthChicago.setKey("SouthChicago");
    
       var shapesSouthChicago = new MQA.LatLngCollection();
          shapesSouthChicago.add(new MQA.LatLng(41.751196,-87.585099 ));
          shapesSouthChicago.add(new MQA.LatLng(41.751595,-87.539946 ));
          shapesSouthChicago.add(new MQA.LatLng(41.747944,-87.530311 ));
          shapesSouthChicago.add(new MQA.LatLng(41.728036,-87.5265 ));
          shapesSouthChicago.add(new MQA.LatLng(41.722788,-87.523624 ));
          shapesSouthChicago.add(new MQA.LatLng(41.72296,-87.548574 ));
          shapesSouthChicago.add(new MQA.LatLng(41.7241,-87.549724 ));
          shapesSouthChicago.add(new MQA.LatLng(41.749656,-87.585099 ));

      	polySouthChicago.setShapePoints( shapesSouthChicago );
      	myMap.addShape( polySouthChicago );	
      	    			
    MQA.withModule('htmlpoi', function() {
    var myPOISouthChicago = new MQA.HtmlPoi(new MQA.LatLng( 41.738646,-87.559359 ));
	myPOISouthChicago.setHtml("<a onMouseOver=fn_color_over(polySouthChicago); onMouseOut=fn_color_out(polySouthChicago); onclick=fn_border('SouthChicago',polySouthChicago);>South Chicago</a>",0,0,'text_map');
    myMap.addShape( myPOISouthChicago);});  
                    
 //--Marynook---------

    polyMarynook = new MQA.PolygonOverlay();
    
        if( getCookie('Marynook') == 'yes') 
	     {
	       polyMarynook.setBorderWidth(2);
	       polyMarynook.setColor("#005500");
	     }
	   else
	    {
          polyMarynook.setBorderWidth(0);
          polyMarynook.setColor("#999999");
        }
        
   polyMarynook.setFillColor("#00ffff");
   polyMarynook.setFillColorAlpha( .18 );
   polyMarynook.setKey("Marynook");
    
    
       var shapesMarynook = new MQA.LatLngCollection();
          shapesMarynook.add(new MQA.LatLng(41.746574,-87.604848 ));
          shapesMarynook.add(new MQA.LatLng( 41.746688,-87.585507 ));            
          shapesMarynook.add(new MQA.LatLng( 41.736934,-87.585435 ));              
          shapesMarynook.add(new MQA.LatLng( 41.73682,-87.60456 ));

      	  polyMarynook.setShapePoints( shapesMarynook );
      	  myMap.addShape( polyMarynook );	
      	    			
     MQA.withModule('htmlpoi', function() {
    var myPOIMarynook = new MQA.HtmlPoi(new MQA.LatLng( 41.743465,-87.602259));
    myPOIMarynook.setHtml("<a onMouseOver=fn_color_over(polyMarynook); onMouseOut=fn_color_out(polyMarynook); onclick=fn_border('Marynook',polyMarynook);>Marynook</a>",0,0,'text_map');
    myMap.addShape( myPOIMarynook);});  
         
  
//--Stone Island Park---------

    polyStoneIslandPark = new MQA.PolygonOverlay();
    
        if( getCookie('StoneIslandPark') == 'yes') 
	     {
	       polyStoneIslandPark.setBorderWidth(2);
	       polyStoneIslandPark.setColor("#005500");
	     }
	   else
	    {
          polyStoneIslandPark.setBorderWidth(0);
          polyStoneIslandPark.setColor("#999999");
        }
        
   polyStoneIslandPark.setFillColor("#0000ff");
   polyStoneIslandPark.setFillColorAlpha( .18 );
   polyStoneIslandPark.setKey("StoneIslandPark");
   
       var shapesStoneIslandPark = new MQA.LatLngCollection();
          shapesStoneIslandPark.add(new MQA.LatLng( 41.74911,-87.584961 ));
          shapesStoneIslandPark.add(new MQA.LatLng( 41.737017,-87.567921 )); 
          shapesStoneIslandPark.add(new MQA.LatLng( 41.73696,-87.584889 ));

     	  polyStoneIslandPark.setShapePoints( shapesStoneIslandPark );
     	  myMap.addShape( polyStoneIslandPark );	

       MQA.withModule('htmlpoi', function() {
       var myPOIStoneIslandPark = new MQA.HtmlPoi(new MQA.LatLng( 41.743465,-87.58118));
	   myPOIStoneIslandPark.setHtml("<a onMouseOver=fn_color_over(polyStoneIslandPark); onMouseOut=fn_color_out(polyStoneIslandPark); onclick=fn_border('StoneIslandPark',polyStoneIslandPark);>Stone Island Park</a>",0,0,'text_map');
       myMap.addShape( myPOIStoneIslandPark);});  
    
            
  //--MQA.withModule     	
    });
    
    
//---populate the listing POIs, removing wait window----
		
 initDE();
 fn_hide_wait();
     
 
//-- end initMap();   	     		
}
    
   
//--fn_border------------------------------
 
 function fn_border( strNei , strPoly ){
   
   //--'GarfieldRidge',polyGarfieldRidge
   //--update cookies, checkboxes--
     
      var borderWidth = strPoly.getBorderWidth();
      
      var strInt;
        
        if( strNei == "AlbanyPark"){strInt = "0";}
        else if( strNei == "Andersonville"){strInt = "1";}
        else if( strNei == "ArcherHeights"){strInt = "2";}
        else if( strNei == "AvondalePark"){strInt = "3";}
        else if( strNei == "Austin"){strInt = "4";}
        else if( strNei == "BackoftheYards"){strInt = "5";}
        else if( strNei == "Bridgeport"){strInt = "6";}
        else if( strNei == "BrightonPark"){strInt = "7";}
        else if( strNei == "Bronzeville"){strInt = "8";}     
        else if( strNei == "Bucktown"){strInt = "9";}
        else if( strNei == "Cragin"){strInt = "10";}
        else if( strNei == "Canaryville"){strInt = "11";}
        else if( strNei == "ChicagoLawn"){strInt = "12";}
        else if( strNei == "Chinatown"){strInt = "13";}
        else if( strNei == "Clearing"){strInt = "14";}
        else if( strNei == "DePaul"){strInt = "15";}
        else if( strNei == "EastRogersPark"){strInt = "16";}
        else if( strNei == "EastVillage"){strInt = "17";}
        else if( strNei == "Edgebrook"){strInt = "18";}
        else if( strNei == "Edgewater"){strInt = "19";}
        else if( strNei == "EdisonPark"){strInt = "20";}
        else if( strNei == "Englewood"){strInt = "21";}
        else if( strNei == "FullerPark"){strInt = "22";}
        else if( strNei == "GagePark"){strInt = "23";}
        else if( strNei == "GarfieldPark"){strInt = "24";}
        else if( strNei == "GarfieldRidge"){strInt = "25";} 
        else if( strNei == "GoldCoast"){strInt = "26";}
        else if( strNei == "GrandBoulevard"){strInt = "27";}
        else if( strNei == "GrandCrossing"){strInt = "28";}
        else if( strNei == "Hermosa"){strInt = "29";}
        else if( strNei == "HumboldtPark"){strInt = "30";}
        else if( strNei == "HydePark"){strInt = "31";}
        else if( strNei == "IrvingPark"){strInt = "32";}
        else if( strNei == "JeffersonPark"){strInt = "33";}
        else if( strNei == "Kenwood"){strInt = "34";}
        else if( strNei == "Lakeview"){strInt = "35";}
        else if( strNei == "Lawndale"){strInt = "36";}
        else if( strNei == "LincolnSquare"){strInt = "37";}
        else if( strNei == "LincolnPark"){strInt = "38";}
        else if( strNei == "LoganSquare"){strInt = "39";}
        else if( strNei == "Loop"){strInt = "40";}
        else if( strNei == "Marynook"){strInt = "41";}
        else if( strNei == "McKinleyPark"){strInt = "42";}
        else if( strNei == "MedicalVillage"){strInt = "43";}
        else if( strNei == "NorthCenter"){strInt = "44";}
        else if( strNei == "NorthPark"){strInt = "45";}
        else if( strNei == "NorwoodPark"){strInt = "46";}
        else if( strNei == "Oakland"){strInt = "47";}
        else if( strNei == "OldTown"){strInt = "48";}
        else if( strNei == "ParkManor"){strInt = "49";}
        else if( strNei == "Peterson"){strInt = "50";}
        else if( strNei == "Pilsen"){strInt = "51";}       
        else if( strNei == "PortagePark"){strInt = "52";}
        else if( strNei == "Ravenswood"){strInt = "53";}
        else if( strNei == "RiverNorth"){strInt = "54";}
        else if( strNei == "RiverWest"){strInt = "55";}
        else if( strNei == "RoscoeVillage"){strInt = "56";}
        else if( strNei == "Sauganash"){strInt = "57";}
        else if( strNei == "SouthChicago"){strInt = "58";}
        else if( strNei == "SouthLoop"){strInt = "59";}
        else if( strNei == "SouthShore"){strInt = "60";}
        else if( strNei == "StoneIslandPark"){strInt = "61";}
        else if( strNei == "UkrainianVillage"){strInt = "62";}
        else if( strNei == "Uptown"){strInt = "63";}
        else if( strNei == "TriTaylor"){strInt = "64";}
        else if( strNei == "WashingtonPark"){strInt = "65";}
        else if( strNei == "WestElsdon"){strInt = "66";}
        else if( strNei == "WestLawn"){strInt = "67";}
        else if( strNei == "WestLoop"){strInt = "68";}
        else if( strNei == "WestRogersPark"){strInt = "69";}
        else if( strNei == "WestTown"){strInt = "70";}
        else if( strNei == "WickerPark"){strInt = "71";}
        else if( strNei == "Woodlawn"){strInt = "72";}
        else if( strNei == "Wrigleyville"){strInt = "73";}
        
        if(borderWidth == 0)
         {
         strPoly.setBorderWidth(2); 
         strPoly.setColor("#005500");
         document.getElementById('cblNeighborhoods_'+ strInt).checked=true;  
         }
        else
        {    
         strPoly.setBorderWidth(0);  
         strPoly.setColor("#666666");    
         document.getElementById('cblNeighborhoods_'+ strInt).checked=false;    
        }
         
    setCookie("cookieScroll", parent.document.body.scrollTop , expdate ); 
     
}
      
   
//----------------------------fn_update_page()-------------------------

  function fn_update_page() {
      setCookie("cookieZoom" , myMap.getZoomLevel() , expdate );
      setCookie("cookieCenter", myMap.getCenter() , expdate );
      setCookie("cookieScroll", parent.document.body.scrollTop , expdate ); 
      window.document.forms[0].submit();   
   }

//----------------------------fn_POI_mouseOver-------------------------------

function fn_POI_mouseOver(e){
   this.infowindowopen;
 }
 
//----------------------------fn_POI_mouseOut--------------------------------

function fn_POI_mouseOut(e){ 
  this.infowindowclose;
 }
 
//----------------------------fn_show_wait-----------------------------------
 
function fn_show_wait(){   
    document.getElementById('divLoading_data').style.display='';
    setTimeout('document.images["pbar"].src = "/re/images/indicator-preview.gif"', 100);     
  }   
 
//-----------------------------fn_hide_wait-----------------------------------

function fn_hide_wait(){ 
    document.getElementById('divLoading_data').style.display='none';
  }
   
   
//-----------------------------showMapDetails---------------------------------

function showMapDetail(url){	
		document.getElementById('searchSettingsTable').style.display = 'none';
		document.getElementById('leftpanel').style.display = '';
		document.getElementById('detailIframe').src = url;		
	}
	
//----------------------------fn_back_to_map---------------------------------

function fn_back_to_map(){
      if(getCookie("listView") == "on")
        {
            setCookie("mapView", 'on', expdate );
            setCookie("listView", 'off', expdate );   
        }
       
        parent.document.getElementById('leftpanel').style.display='none';
        parent.document.getElementById('searchSettingsTable').style.display = '';      
   }
   
//----------------------------fn_list_view------------------------------------
     
function fn_list_view(){   
    document.getElementById('searchSettingsTable').style.display = 'none';
	document.getElementById('leftpanel').style.display = ''; 
	parent.document.getElementById('detailIframe').src='/re/map_list.aspx';
   }
   
//-----------------------------fn_color_over----------------------------------

 function fn_color_over(obj){
       var borderWidth = obj.getBorderWidth();
       
          if(borderWidth == 0)
           {
             obj.setFillColorAlpha(.36);
           }  
  }

//-----------------------------fn_color_out----------------------------------

 function fn_color_out(obj){ 
        var borderWidth = obj.getBorderWidth();
       
          if(borderWidth == 0)
           {
             obj.setFillColorAlpha(.18);
           } 
  }  
  
//----------------------------fn_toggle_view--------------------------------

function fn_toggle_view( obj ){
 
  if( obj == "divList_view")
   {
    document.getElementById("divList_view").style.display='';
    document.getElementById("mapDiv").style.display='none';
    document.getElementById("divBtn_list_view").className='map_highlight';
    document.getElementById("divBtn_map_view").className='map_normal';
   }
  else
   {
    document.getElementById("divList_view").style.display='none';
    document.getElementById("mapDiv").style.display='';
    document.getElementById("divBtn_map_view").className='map_highlight';
    document.getElementById("divBtn_list_view").className='map_normal';
   }
  
 }

//----fn_toggle_options()---------------------------------

function fn_toggle_options( obj ){
 
    if (obj.style.display == "none") 
      {
        obj.style.display = "";
        divShow.style.display = "none";
        divHide.style.display = "";
        setCookie("show_options" , 'yes', expdate );
      }
      else
      {
        obj.style.display = "none";
        divShow.style.display = "";
        divHide.style.display = "none";
        setCookie("show_options" , 'no', expdate );
      }
      
 } 
 
 //----fn_submit_click-------------------------------------
 
 function fn_submit_click(){
   
  if (Page_ClientValidate() )
   {  
      fn_show_wait();
  }
     
  }
