﻿

 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;

//------------------------------------initMap-------------------------------------

function initMap() 

{

 myMap = new MQA.TileMap( document.getElementById('mapDiv'),9,new MQA.LatLng(41.920000,-87.706128),"map",null);
	
    myMapCornerPlacement = new MQA.MapCornerPlacement();
	myMapCornerPlacement.mapCorner = MQA.MapCorner.TOP_LEFT;
	
	mySize = new MQA.Size();
	mySize.width = 200;
	mySize.height = 25;

    myMapCornerPlacement.offsetSize = mySize;
    
    var strCopy = "<font size=2><b><a href='http://www.nufrontiers.com/'>Nu Frontiers Enterprises, Inc.</a></b></font>";
	
	myMap.addControl(new MQA.LargeZoomControl());
	myVControl = new MQA.ViewControl(myMap);
	myMap.addControl(myVControl, new MQA.MapCornerPlacement(MQA.MapCorner.TOP_LEFT, new MQA.Size(100,0)));
	
    myCopyright = new MQA.Copyright( myMap ,'id',strCopy,new MQA.MapCornerPlacement(MQA.MapCorner.BOTTOM_LEFT, new MQA.Size(5,20)), 275,50);
    myMap.addControl( myCopyright );
    	
//------------------------East Rodgers Park----------------------------

 polyEast_Rogers_Park = new MQA.PolygonOverlay();
 
    polyEast_Rogers_Park.setBorderWidth(0);
    polyEast_Rogers_Park.setColor("#999999");
    polyEast_Rogers_Park.setFillColor("#005500");
    polyEast_Rogers_Park.setFillColorAlpha( .18 );
    polyEast_Rogers_Park.setKey("EastRogersPark");
    polyEast_Rogers_Park.setAltColor("#00C8FF");
	polyEast_Rogers_Park.setAltFillColor("#00C8FF");
	polyEast_Rogers_Park.setAltFillColorAlpha(0.25);
    
         var shapesEast_Rogers_Park = new MQA.LatLngCollection();
            shapesEast_Rogers_Park.add( new MQA.LatLng( 42.026914 , -87.667721 ));
            shapesEast_Rogers_Park.add( new MQA.LatLng( 42.027199 , -87.678434 ));
            shapesEast_Rogers_Park.add( new MQA.LatLng( 42.0264 , -87.678506 ));
            shapesEast_Rogers_Park.add( new MQA.LatLng( 42.026571 , -87.684833 ));
            shapesEast_Rogers_Park.add( new MQA.LatLng( 42.014505 , -87.683395 ));
            shapesEast_Rogers_Park.add( new MQA.LatLng( 41.998221 , -87.676133 ));
            shapesEast_Rogers_Park.add( new MQA.LatLng( 41.998449 , -87.654706 ));
            
           polyEast_Rogers_Park.setShapePoints( shapesEast_Rogers_Park );
		   myMap.addOverlay( polyEast_Rogers_Park );
		   
	//--setup name POI, clickable--      
            
        myPOIEast_Rogers_Park = new MQA.Poi(new MQA.LatLng( 42.011885,-87.670495 ));
		myPOIEast_Rogers_Park.setValue('labelClass', "text_map");
	  
				myIconEast_Rogers_Park = new MQA.Icon("",1,1);
			    myShadowEast_Rogers_Park = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
			    myPOIEast_Rogers_Park.setValue('shadow', myShadowEast_Rogers_Park );
				myPOIEast_Rogers_Park.setValue('icon', myIconEast_Rogers_Park );     
                myPOIEast_Rogers_Park.setRolloverEnabled(true);
                myPOIEast_Rogers_Park.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td nowrap style='padding-left:2px;padding-right:2px;'><a href=# onMouseOver=fn_color_over(polyEast_Rogers_Park); onMouseOut=fn_color_out(polyEast_Rogers_Park); onclick=fn_border('EastRogersPark',polyEast_Rogers_Park);>E. Rogers Park</a></td></tr></table>");
		  		myMap.addPoi( myPOIEast_Rogers_Park );

//-----------------------West Rodgers Park------------------------------

    polyWest_Rogers_Park = new MQA.PolygonOverlay();

    polyWest_Rogers_Park.setBorderWidth(0);
    polyWest_Rogers_Park.setColor("#999999");
    polyWest_Rogers_Park.setFillColor("#000055");
    polyWest_Rogers_Park.setFillColorAlpha( .18 );
    polyWest_Rogers_Park.setKey("WestRogersPark");
    polyWest_Rogers_Park.setAltColor("#00C8FF");
	polyWest_Rogers_Park.setAltFillColor("#00C8FF");
	polyWest_Rogers_Park.setAltFillColorAlpha(0.25);
    
         var shapesWest_Rogers_Park = new MQA.LatLngCollection();
            shapesWest_Rogers_Park.add( new MQA.LatLng( 42.026541 , -87.685475 ));
            shapesWest_Rogers_Park.add( new MQA.LatLng( 42.026312 , -87.709922 ));
            shapesWest_Rogers_Park.add( new MQA.LatLng( 41.990432 , -87.709922 ));
            shapesWest_Rogers_Park.add( new MQA.LatLng( 41.990947 , -87.672821 ));
            shapesWest_Rogers_Park.add( new MQA.LatLng( 41.992202 , -87.675266 ));
            shapesWest_Rogers_Park.add( new MQA.LatLng( 41.995054 , -87.675409 ));
            shapesWest_Rogers_Park.add( new MQA.LatLng( 42.015304 , -87.684109 ));
            
            polyWest_Rogers_Park.setShapePoints( shapesWest_Rogers_Park );
			myMap.addOverlay( polyWest_Rogers_Park );
			
			  //--setup name POI-- 
       
	   	myPOIWest_Rogers_Park = new MQA.Poi(new MQA.LatLng( 42.006859,-87.694239 ));
		myPOIWest_Rogers_Park.setValue('labelText', "West Rogers Park");
		myPOIWest_Rogers_Park.setValue('labelClass', "text_map");
	    myPOIWest_Rogers_Park.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyWest_Rogers_Park); onMouseOut=fn_color_out(polyWest_Rogers_Park); onclick=fn_border('WestRogersPark',polyWest_Rogers_Park);>West Rogers Park</a></td></tr></table>");
				
		myIconWest_Rogers_Park = new MQA.Icon("",1,1);
	    myShadowWest_Rogers_Park = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
		myPOIWest_Rogers_Park.setValue('shadow', myShadowWest_Rogers_Park );
		myPOIWest_Rogers_Park.setValue('icon',myIconWest_Rogers_Park);
        myPOIWest_Rogers_Park.setRolloverEnabled(true);
        myMap.addPoi( myPOIWest_Rogers_Park );
				
	    MQA.EventManager.addListener( polyWest_Rogers_Park ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('WestRogersPark',polyWest_Rogers_Park,42.006859,-87.694239)};});
	    MQA.EventManager.addListener( polyWest_Rogers_Park ,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyWest_Rogers_Park,myPOIWest_Rogers_Park);}});
                	
//-----------------------Edgewater------------------------------

    polyEdgewater = new MQA.PolygonOverlay();
    
    polyEdgewater.setBorderWidth(0);
    polyEdgewater.setColor("#999999");
    polyEdgewater.setFillColor("#550000");
    polyEdgewater.setFillColorAlpha( .18 );
    polyEdgewater.setKey("Edgewater");
    polyEdgewater.setAltColor("#00C8FF");
	polyEdgewater.setAltFillColor("#00C8FF");
	polyEdgewater.setAltFillColorAlpha(0.25);
    
         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.addOverlay( polyEdgewater );
            
 //--setup name POI--
            
        myPOIEdgewater = new MQA.Poi(new MQA.LatLng( 41.991055,-87.664032 ));
		myPOIEdgewater.setValue('labelText', "Edgewater");
		myPOIEdgewater.setValue('labelClass', "text_map");
		//myPOIEdgewater.setValue('visible',false);
	    myPOIEdgewater.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyEdgewater); onMouseOut=fn_color_out(polyEdgewater); onclick=fn_border('Edgewater',polyEdgewater);>Edgewater</a></td></tr></table>");
				
				myIconEdgewater = new MQA.Icon("",1,1);
			    myShadowEdgewater = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
			    myPOIEdgewater.setValue('shadow', myShadowEdgewater );
				myPOIEdgewater.setValue('icon',myIconEdgewater);
                myPOIEdgewater.setRolloverEnabled(true);
				myMap.addPoi( myPOIEdgewater );
		      
   	 MQA.EventManager.addListener( polyEdgewater ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('Edgewater',polyEdgewater,41.991055,-87.664032)};});
     MQA.EventManager.addListener( polyEdgewater ,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyEdgewater,myPOIEdgewater);}});
			
			
//-----------------------Andersonville------------------------------

    polyAndersonville = new MQA.PolygonOverlay();
    
    polyAndersonville.setBorderWidth(0);
    polyAndersonville.setColor("#999999");
    polyAndersonville.setFillColor("#555500");
    polyAndersonville.setFillColorAlpha( .18 );
    polyAndersonville.setKey("Andersonville");
    polyAndersonville.setAltColor("#00C8FF");
	polyAndersonville.setAltFillColor("#00C8FF");
	polyAndersonville.setAltFillColorAlpha(0.25);
    
         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.addOverlay( polyAndersonville );
			
	    myPOIAndersonville = new MQA.Poi(new MQA.LatLng( 41.980278,-87.675678 ));
		myPOIAndersonville.setValue('labelText', "Andersonville");
		myPOIAndersonville.setValue('labelClass', "text_map");
	    myPOIAndersonville.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyAndersonville); onMouseOut=fn_color_out(polyAndersonville); onclick=fn_border('Andersonville',polyAndersonville);>Andersonville</a></td></tr></table>");
				
				myIconAndersonville = new MQA.Icon("",1,1);
			    myShadowAndersonville = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
			    myPOIAndersonville.setValue('shadow', myShadowAndersonville );
				myPOIAndersonville.setValue('icon',myIconAndersonville);
                myPOIAndersonville.setRolloverEnabled(true);
				myMap.addPoi( myPOIAndersonville );
				
		 MQA.EventManager.addListener( polyAndersonville ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('Andersonville',polyAndersonville,41.980278,-87.675678)};});
	     MQA.EventManager.addListener( polyAndersonville ,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyAndersonville,myPOIAndersonville);}});
              
             	
//-----------------------Peterson------------------------------

     polyPeterson = new MQA.PolygonOverlay();
     
    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.addOverlay( polyPeterson );	
			
	
	    myPOIPeterson = new MQA.Poi(new MQA.LatLng( 41.983644 ,-87.698921 ));
		myPOIPeterson.setValue('labelText', "Peterson");
		myPOIPeterson.setValue('labelClass', "text_map");
		myPOIPeterson.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyPeterson); onMouseOut=fn_color_out(polyPeterson); onclick=fn_border('Peterson',polyPeterson);>Peterson</a></td></tr></table>");
				
				myIconPeterson = new MQA.Icon("",1,1);
			    myShadowPeterson = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
			    myPOIPeterson.setValue('shadow', myShadowPeterson );
				myPOIPeterson.setValue('icon',myIconPeterson);
                myPOIPeterson.setRolloverEnabled(true);
				myMap.addPoi( myPOIPeterson );
				
		     MQA.EventManager.addListener( polyPeterson ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('Peterson',polyPeterson,41.983644,-87.698921)};});
			 MQA.EventManager.addListener( polyPeterson ,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyPeterson,myPOIPeterson);}});	
	
	
//-----------------------Uptown------------------------------

    polyUptown = new MQA.PolygonOverlay();
     
    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.addOverlay( polyUptown );	
			
				    myPOIUptown = new MQA.Poi(new MQA.LatLng( 41.969933,-87.656516 ));
		myPOIUptown.setValue('labelText', "Uptown");
		myPOIUptown.setValue('labelClass', "text_map");
		myPOIUptown.setValue('minZoomLevel', 9);
		myPOIUptown.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyUptown); onMouseOut=fn_color_out(polyUptown); onclick=fn_border('Uptown',polyUptown);>Uptown</a></td></tr></table>");
				
				myIconUptown = new MQA.Icon("",1,1);
			    myShadowUptown = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
			    myPOIUptown.setValue('shadow', myShadowUptown );
				myPOIUptown.setValue('icon',myIconUptown);
                myPOIUptown.setRolloverEnabled(true);
				myMap.addPoi( myPOIUptown );

		    MQA.EventManager.addListener( polyUptown ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('Uptown',polyUptown,41.969933,-87.656516)};});
			MQA.EventManager.addListener( polyUptown ,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyUptown,myPOIUptown);}});
            
        	
//-----------------------Ravenswood------------------------------

  polyRavenswood = new MQA.PolygonOverlay();
  
    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.addOverlay( polyRavenswood );	
	   
    myPOIRavenswood = new MQA.Poi(new MQA.LatLng( 41.968641 ,-87.697051 ));
		myPOIRavenswood.setValue('labelText', "Ravenswood");
		myPOIRavenswood.setValue('labelClass', "text_map");
		myPOIRavenswood.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyRavenswood); onMouseOut=fn_color_out(polyRavenswood); onclick=fn_border('Ravenswood',polyRavenswood);>Ravenswood</a></td></tr></table>");
				
				myIconRavenswood = new MQA.Icon("",1,1);
			    myShadowRavenswood = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
			    myPOIRavenswood.setValue('shadow', myShadowRavenswood );
				myPOIRavenswood.setValue('icon',myIconRavenswood);
                myPOIRavenswood.setRolloverEnabled(true);
				myMap.addPoi( myPOIRavenswood );
				
		  MQA.EventManager.addListener( polyRavenswood ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('Ravenswood',polyRavenswood,41.968641,-87.697051)};});
          MQA.EventManager.addListener( polyRavenswood ,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyRavenswood,myPOIRavenswood);}});	


//----------------------Lincoln Square------------------------------

 polyLincolnSquare = new MQA.PolygonOverlay();
    
    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.addOverlay( polyLincolnSquare );	

        myPOILincolnSquare = new MQA.Poi(new MQA.LatLng( 41.972776,-87.676409 ));
		myPOILincolnSquare.setValue('labelText', "Lincoln Square");
		myPOILincolnSquare.setValue('labelClass', "text");
		myPOILincolnSquare.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyLincolnSquare); onMouseOut=fn_color_out(polyLincolnSquare); onclick=fn_border('LincolnSquare',polyLincolnSquare);>Lincoln Square</a></td></tr></table>");
				
		myIconLincolnSquare = new MQA.Icon("",1,1);
		myShadowLincolnSquare = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
		myPOILincolnSquare.setValue('shadow', myShadowLincolnSquare );
	    myPOILincolnSquare.setValue('icon',myIconLincolnSquare);
        myPOILincolnSquare.setRolloverEnabled(true);
	    myMap.addPoi( myPOILincolnSquare );
				
	MQA.EventManager.addListener( polyLincolnSquare ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('LincolnSquare',polyLincolnSquare,41.972776,-87.676409)};});
    MQA.EventManager.addListener( polyLincolnSquare ,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyLincolnSquare,myPOILincolnSquare);}});

//------------------------------Wrigleyville------------------------------
	
polyWrigleyville = new MQA.PolygonOverlay();
    
    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.addOverlay( polyWrigleyville );
			
		myPOIWrigleyville = new MQA.Poi(new MQA.LatLng( 41.953924 ,-87.66123 ));
		myPOIWrigleyville.setValue('labelText', "Wrigleville");
		myPOIWrigleyville.setValue('labelClass', "text_map");
		myPOIWrigleyville.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyWrigleyville); onMouseOut=fn_color_out(polyWrigleyville); onclick=fn_border('Wrigleyville',polyWrigleyville);>Wrigleyville</a></td></tr></table>");
				
				myIconWrigleyville = new MQA.Icon("",1,1);
			    myShadowWrigleyville = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
			    myPOIWrigleyville.setValue('shadow', myShadowWrigleyville );
				myPOIWrigleyville.setValue('icon',myIconWrigleyville);
                myPOIWrigleyville.setRolloverEnabled(true);
				myMap.addPoi( myPOIWrigleyville );	
			
   MQA.EventManager.addListener( polyWrigleyville ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('Wrigleyville',polyWrigleyville,41.953924 ,-87.66123)};});
   MQA.EventManager.addListener( polyWrigleyville ,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyWrigleyville,myPOIWrigleyville);}});	
			
//----------------------North Center/St. Bens------------------------------


polyNorthCenter = new MQA.PolygonOverlay();

    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.addOverlay( polyNorthCenter );	
			
    myPOINorthCenter = new MQA.Poi(new MQA.LatLng( 41.956102,-87.685086 ));
		myPOINorthCenter.setValue('labelText', "North Center");
		myPOINorthCenter.setValue('labelClass', "text_map");
		myPOINorthCenter.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyNorthCenter); onMouseOut=fn_color_out(polyNorthCenter); onclick=fn_border('NorthCenter',polyNorthCenter);>North<br>Center</a></td></tr></table>");
				
        myIconNorthCenter = new MQA.Icon("",1,1);
	    myShadowNorthCenter = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOINorthCenter.setValue('shadow', myShadowNorthCenter );
		myPOINorthCenter.setValue('icon',myIconNorthCenter);
        myPOINorthCenter.setRolloverEnabled(true);
	    myMap.addPoi( myPOINorthCenter );
		
		MQA.EventManager.addListener( polyNorthCenter ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('NorthCenter',polyNorthCenter,41.956102,-87.685086)};});				
		MQA.EventManager.addListener( polyNorthCenter ,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyNorthCenter,myPOINorthCenter);}});			
	
	  
	  
//----------------------North Park------------------------------

polyNorthPark = new MQA.PolygonOverlay();
    
    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.addOverlay( polyNorthPark );	
			
	    myPOINorthPark= new MQA.Poi(new MQA.LatLng( 41.986781,-87.720506 ));
		myPOINorthPark.setValue('labelText', "North Park");
		myPOINorthPark.setValue('labelClass', "text_map");
		myPOINorthPark.setValue('minZoomLevel', 9);
		myPOINorthPark.setLabelVisible(true);
		myPOINorthPark.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyNorthPark); onMouseOut=fn_color_out(polyNorthPark); onclick=fn_border('NorthPark',polyNorthPark);>North Park</a></td></tr></table>");
				
				myIconNorthPark = new MQA.Icon("",1,1);
			    myShadowNorthPark = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
			    myPOINorthPark.setValue('shadow', myShadowNorthPark );
				myPOINorthPark.setValue('icon',myIconNorthPark);
                myPOINorthPark.setRolloverEnabled(true);
				myMap.addPoi( myPOINorthPark );	
			
//----------------------Sauganash-----------------------------					
	
	 polySauganash = new MQA.PolygonOverlay();

          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.addOverlay( polySauganash );	
			
		
	    myPOISauganash = new MQA.Poi(new MQA.LatLng( 41.98808,-87.742389 ));
		myPOISauganash.setValue('labelText', "Sauganash");
		myPOISauganash.setValue('labelClass', "text_map");
		myPOISauganash.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polySauganash); onMouseOut=fn_color_out(polySauganash); onclick=fn_border('Sauganash',polySauganash);>Sauganash</a></td></tr></table>");
	
				myIconSauganash = new MQA.Icon("",1,1);
			    myShadowSauganash= new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
			    myPOISauganash.setValue('shadow', myShadowSauganash );
				myPOISauganash.setValue('icon',myIconSauganash);
                myPOISauganash.setRolloverEnabled(true);
				myMap.addPoi( myPOISauganash );	
				
		  MQA.EventManager.addListener( polySauganash ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('Sauganash',polySauganash,41.98808,-87.742389)};});				
		  MQA.EventManager.addListener( polySauganash ,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polySauganash,myPOISauganash);}});			
			
	//----------------------Edgebrook-----------------------------


 polyEdgebrook = new MQA.PolygonOverlay();
 
    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.addOverlay( polyEdgebrook );	
			
		
	    myPOIEdgebrook= new MQA.Poi(new MQA.LatLng( 41.995661,-87.77353 ));
		myPOIEdgebrook.setValue('labelText', "Edgebrook");
		myPOIEdgebrook.setValue('labelClass', "text_map");
		myPOIEdgebrook.setValue('visible', false);
		myPOIEdgebrook.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyEdgebrook); onMouseOut=fn_color_out(polyEdgebrook); onclick=fn_border('Edgebrook',polyEdgebrook);>Edgebrook</a></td></tr></table>");
				
				myIconEdgebrook = new MQA.Icon("",1,1);
			    myShadowEdgebrook= new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
			    myPOIEdgebrook.setValue('shadow', myShadowEdgebrook );
				myPOIEdgebrook.setValue('icon',myIconEdgebrook);
                myPOIEdgebrook.setRolloverEnabled(true);
				myMap.addPoi( myPOIEdgebrook );	
				
		MQA.EventManager.addListener( polyEdgebrook ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('Edgebrook',polyEdgebrook,41.995661,-87.77353)};});				
		  MQA.EventManager.addListener( polyEdgebrook,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyEdgebrook,myPOIEdgebrook);}});			    		
		    		
		
//----------------------Jefferson Park-----------------------------


polyJeffersonPark = new MQA.PolygonOverlay();

          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.addOverlay( polyJeffersonPark );	 
			
			   myPOIJeffersonPark = new MQA.Poi(new MQA.LatLng( 41.97544,-87.775113 ));
		myPOIJeffersonPark.setValue('labelText', "Jefferson Park");
		myPOIJeffersonPark.setValue('labelClass', "text_map");
		myPOIJeffersonPark.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyJeffersonPark); onMouseOut=fn_color_out(polyJeffersonPark); onclick=fn_border('JeffersonPark',polyJeffersonPark);>Jefferson Park</a></td></tr></table>");
				
				myIconJeffersonPark = new MQA.Icon("",1,1);
			    myShadowJeffersonPark = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
			    myPOIJeffersonPark.setValue('shadow', myShadowJeffersonPark );
				myPOIJeffersonPark.setValue('icon',myIconJeffersonPark);
                myPOIJeffersonPark.setRolloverEnabled(true);
				myMap.addPoi( myPOIJeffersonPark );	
	
      MQA.EventManager.addListener( polyJeffersonPark ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('JeffersonPark',polyJeffersonPark,41.97544,-87.775113)};});				
     MQA.EventManager.addListener( polyJeffersonPark,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyJeffersonPark,myPOIJeffersonPark);}});			    				
			   
			   
//----------------------Norwood Park-----------------------------

   polyNorwoodPark = new MQA.PolygonOverlay();
   
          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.addOverlay( polyNorwoodPark );
			
			
			  myPOINorwoodPark = new MQA.Poi(new MQA.LatLng( 41.988833,-87.805383 ));
		myPOINorwoodPark.setValue('labelText', "Norwood Park");
		myPOINorwoodPark.setValue('labelClass', "text_map");
		myPOINorwoodPark.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyNorwoodPark); onMouseOut=fn_color_out(polyNorwoodPark); onclick=fn_border('NorwoodPark',polyNorwoodPark);>Norwood Park</a></td></tr></table>");
			
		myIconNorwoodPark = new MQA.Icon("",1,1);
	    myShadowNorwoodPark = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOINorwoodPark.setValue('shadow', myShadowNorwoodPark );
		myPOINorwoodPark.setValue('icon',myIconNorwoodPark);
        myPOINorwoodPark.setRolloverEnabled( true );
		myMap.addPoi( myPOINorwoodPark );
			 
			 MQA.EventManager.addListener( polyNorwoodPark ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('NorwoodPark',polyNorwoodPark,41.988833,-87.805383)};});						
			 MQA.EventManager.addListener( polyNorwoodPark,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyNorwoodPark,myPOINorwoodPark);}});			    				
			


//----------------------Edison Park-----------------------------

 polyEdisonPark = new MQA.PolygonOverlay();

          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.addOverlay( polyEdisonPark );	
			
			  myPOIEdisonPark = new MQA.Poi(new MQA.LatLng( 42.004184,-87.816274 ));
		myPOIEdisonPark.setValue('labelText', "Edison Park");
		myPOIEdisonPark.setValue('labelClass', "text_map");
		myPOIEdisonPark.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyEdisonPark); onMouseOut=fn_color_out(polyEdisonPark); onclick=fn_border('EdisonPark',polyEdisonPark);>Edison Park</a></td></tr></table>");
				
				myIconEdisonPark = new MQA.Icon("",1,1);
			    myShadowEdisonPark = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
			    myPOIEdisonPark.setValue('shadow', myShadowEdisonPark );
				myPOIEdisonPark.setValue('icon',myIconEdisonPark);
                myPOIEdisonPark.setRolloverEnabled( true );
				myMap.addPoi( myPOIEdisonPark );
				
    MQA.EventManager.addListener( polyEdisonPark,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('EdisonPark',polyEdisonPark,42.004184,-87.816274)};});						
     MQA.EventManager.addListener( polyEdisonPark,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyEdisonPark,myPOIEdisonPark);}});			    				
			
  
 
//----------------------Portage Park-----------------------------

polyPortagePark = new MQA.PolygonOverlay();

          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.addOverlay( polyPortagePark );	
			
	   myPOIPortagePark = new MQA.Poi(new MQA.LatLng( 41.952689,-87.771574));
		myPOIPortagePark.setValue('labelText', "Portage Park");
		myPOIPortagePark.setValue('labelClass', "text_map");
		//myPOIPortagePark.setValue('visible',false);
		myPOIPortagePark.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyPortagePark); onMouseOut=fn_color_out(polyPortagePark); onclick=fn_border('PortagePark',polyPortagePark);>Portage Park</a></td></tr></table>");
				
				myIconPortagePark = new MQA.Icon("",1,1);
			    myShadowPortagePark = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
			    myPOIPortagePark.setValue('shadow', myShadowPortagePark );
				myPOIPortagePark.setValue('icon',myIconPortagePark);
                myPOIPortagePark.setRolloverEnabled(true);
				myMap.addPoi( myPOIPortagePark )
				
 MQA.EventManager.addListener( polyPortagePark,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('PortagePark',polyPortagePark,41.952689,-87.771574)};});						
	 MQA.EventManager.addListener( polyPortagePark,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyPortagePark,myPOIPortagePark);}});			    				
				
//----------------------Albany Park-----------------------------


polyAlbanyPark = new MQA.PolygonOverlay();

          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.addOverlay( polyAlbanyPark );	
			
			   myPOIAlbanyPark = new MQA.Poi(new MQA.LatLng(41.965298,-87.714783));
		myPOIAlbanyPark.setValue('labelText', "Albany Park");
		myPOIAlbanyPark.setValue('labelClass', "text_map");
		//myPOIAlbanyPark.setValue('visible',false);
		myPOIAlbanyPark.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyAlbanyPark); onMouseOut=fn_color_out(polyAlbanyPark); onclick=fn_border('AlbanyPark',polyAlbanyPark);>Albany Park</a></td></tr></table>");
				
		myIconAlbanyPark = new MQA.Icon("",1,1);
	    myShadowAlbanyPark = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOIAlbanyPark.setValue('shadow', myShadowAlbanyPark );
		myPOIAlbanyPark.setValue('icon',myIconAlbanyPark);
        myPOIAlbanyPark.setRolloverEnabled( true );
		myMap.addPoi( myPOIAlbanyPark )		
		
MQA.EventManager.addListener( polyAlbanyPark ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('AlbanyPark',polyAlbanyPark ,41.965298,-87.714783)};});						
	MQA.EventManager.addListener( polyAlbanyPark,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyAlbanyPark,myPOIAlbanyPark);}});			    				
			
	
	
//----------------------Irving Park-----------------------------

 
polyIrvingPark = new MQA.PolygonOverlay();

          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.addOverlay( polyIrvingPark );	
			
			    myPOIIrvingPark = new MQA.Poi(new MQA.LatLng(41.950005,-87.738351));
		myPOIIrvingPark.setValue('labelText', "Irving Park");
		myPOIIrvingPark.setValue('labelClass', "text_map");
		//myPOIIrvingPark.setValue('visible',false);
		myPOIIrvingPark.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyIrvingPark); onMouseOut=fn_color_out(polyIrvingPark); onclick=fn_border('IrvingPark',polyIrvingPark);>Irving Park</a></td></tr></table>");
				
		myIconIrvingPark = new MQA.Icon("",1,1);
	    myShadowIrvingPark = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOIIrvingPark.setValue('shadow', myShadowIrvingPark );
		myPOIIrvingPark.setValue('icon',myIconIrvingPark);
        myPOIIrvingPark.setRolloverEnabled(true);
		myMap.addPoi( myPOIIrvingPark )		
		
		MQA.EventManager.addListener( polyIrvingPark ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('IrvingPark',polyIrvingPark,41.950005,-87.738351)};});						
		MQA.EventManager.addListener( polyIrvingPark,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyIrvingPark,myPOIIrvingPark);}});			    				
	
		
		//----------------------Avondale Park-----------------------------

  polyAvondalePark = new MQA.PolygonOverlay();

          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.addOverlay( polyAvondalePark );	
			
	    myPOIAvondalePark = new MQA.Poi(new MQA.LatLng(41.9395,-87.71607));
		myPOIAvondalePark.setValue('labelText', "Avondale");
		myPOIAvondalePark.setValue('labelClass', "text_map");
		//myPOIAvondalePark.setValue('visible',false);
		myPOIAvondalePark.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyAvondalePark); onMouseOut=fn_color_out(polyAvondalePark); onclick=fn_border('AvondalePark',polyAvondalePark);>Avondale</a></td></tr></table>");
				
		myIconAvondalePark = new MQA.Icon("",1,1);
	    myShadowAvondalePark = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOIAvondalePark.setValue('shadow', myShadowAvondalePark );
		myPOIAvondalePark.setValue('icon',myIconAvondalePark);
        myPOIAvondalePark.setRolloverEnabled( true );
		myMap.addPoi( myPOIAvondalePark )	
		
	MQA.EventManager.addListener( polyAvondalePark ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('AvondalePark',polyAvondalePark,41.9395,-87.71607)};});						
	MQA.EventManager.addListener( polyAvondalePark,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyAvondalePark,myPOIAvondalePark);}});			    				
		    
		
//----------------------Roscoe Village-----------------------------


 polyRoscoeVillage = new MQA.PolygonOverlay();

          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.addOverlay( polyRoscoeVillage );
			
						
	    myPOIRoscoeVillage = new MQA.Poi(new MQA.LatLng( 41.941249,-87.681932 ));
		myPOIRoscoeVillage.setValue('labelText', "Roscoe Village");
		myPOIRoscoeVillage.setValue('labelClass', "text_map");
		//myPOIRoscoeVillage.setValue('visible',false);
		myPOIRoscoeVillage.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyRoscoeVillage); onMouseOut=fn_color_out(polyRoscoeVillage); onclick=fn_border('RoscoeVillage',polyRoscoeVillage);>Roscoe<br>Village</a></td></tr></table>");
				
		myIconRoscoeVillage = new MQA.Icon("",1,1);
	    myShadowRoscoeVillage = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOIRoscoeVillage.setValue('shadow', myShadowRoscoeVillage );
		myPOIRoscoeVillage.setValue('icon',myIconRoscoeVillage);
        myPOIRoscoeVillage.setRolloverEnabled( true );
		myMap.addPoi( myPOIRoscoeVillage )							

     MQA.EventManager.addListener( polyRoscoeVillage ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('RoscoeVillage',polyRoscoeVillage,41.941249,-87.681932)};});						
	MQA.EventManager.addListener( polyRoscoeVillage,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyRoscoeVillage,myPOIRoscoeVillage);}});			    				
	    	
	
//----------------------Lakeview-----------------------------


 polyLakeview = new MQA.PolygonOverlay();

          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.addOverlay( polyLakeview );	
			
			
			    myPOILakeview = new MQA.Poi(new MQA.LatLng(41.93984,-87.65658));
		myPOILakeview.setValue('labelText', "Lakeview");
		myPOILakeview.setValue('labelClass', "text_map");
		myPOILakeview.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyLakeview); onMouseOut=fn_color_out(polyLakeview); onclick=fn_border('Lakeview',polyLakeview);>Lakeview</a></td></tr></table>");
				
		myIconLakeview = new MQA.Icon("",1,1);
	    myShadowLakeview = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOILakeview.setValue('shadow', myShadowLakeview );
		myPOILakeview.setValue('icon',myIconLakeview);
        myPOILakeview.setRolloverEnabled( true);
		myMap.addPoi( myPOILakeview )	
		
		 MQA.EventManager.addListener( polyLakeview ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('Lakeview',polyLakeview,41.93984,-87.65658)};});						
		 MQA.EventManager.addListener( polyLakeview,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyLakeview,myPOILakeview);}});			    				
	  
//----------------------Lincoln Park-----------------------------


 polyLincolnPark = new MQA.PolygonOverlay();

         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.addOverlay( polyLincolnPark );		  
			
		
	    myPOILincolnPark = new MQA.Poi(new MQA.LatLng(41.920627,-87.643053));
		myPOILincolnPark.setValue('labelText', "Lincoln Park");
		myPOILincolnPark.setValue('labelClass', "text_map");
		myPOILincolnPark.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyLincolnPark); onMouseOut=fn_color_out(polyLincolnPark); onclick=fn_border('LincolnPark',polyLincolnPark);>Lincoln Park</a></td></tr></table>");
				
		myIconLincolnPark = new MQA.Icon("",1,1);
	    myShadowLincolnPark = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOILincolnPark.setValue('shadow', myShadowLincolnPark );
		myPOILincolnPark.setValue('icon',myIconLincolnPark);
        myPOILincolnPark.setRolloverEnabled(true);
		myMap.addPoi( myPOILincolnPark )
		
		MQA.EventManager.addListener( polyLincolnPark ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('LincolnPark',polyLincolnPark,41.920627,-87.643053)};});						
		MQA.EventManager.addListener( polyLincolnPark,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyLincolnPark,myPOILincolnPark);}});			    				
	      
	//----------------------De Paul-----------------------------

   polyDePaul = new MQA.PolygonOverlay();

          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.addOverlay( polyDePaul );	
			
			
		myPOIDePaul = new MQA.Poi(new MQA.LatLng(41.925611,-87.666077));
		myPOIDePaul.setValue('labelText', "De Paul");
		myPOIDePaul.setValue('labelClass', "text_map");
		myPOIDePaul.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyDePaul); onMouseOut=fn_color_out(polyDePaul); onclick=fn_border('DePaul',polyDePaul);>De Paul</a></td></tr></table>");
				
		myIconDePaul = new MQA.Icon("",1,1);
	    myShadowDePaul = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOIDePaul.setValue('shadow', myShadowDePaul );
		myPOIDePaul.setValue('icon',myIconDePaul);
        myPOIDePaul.setRolloverEnabled( true );
		myMap.addPoi( myPOIDePaul )			
								
	MQA.EventManager.addListener( polyDePaul ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('DePaul',polyDePaul,41.925611,-87.666077)};});						
    MQA.EventManager.addListener( polyDePaul,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyDePaul,myPOIDePaul);}});			    				
	 
//----------------------Wicker Park-----------------------------

 polyWickerPark = new MQA.PolygonOverlay();

          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.addOverlay( polyWickerPark );	
			
  myPOIWickerPark = new MQA.Poi(new MQA.LatLng( 41.908787,-87.685079 ));
		myPOIWickerPark.setValue('labelText', "Wicker Park");
		myPOIWickerPark.setValue('labelClass', "text_map");
    	myPOIWickerPark.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyWickerPark); onMouseOut=fn_color_out(polyWickerPark); onclick=fn_border('WickerPark',polyWickerPark);>Wicker<br>Park</a></td></tr></table>");
	
		myIconWickerPark = new MQA.Icon("",1,1);
	    myShadowWickerPark = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOIWickerPark.setValue('shadow', myShadowWickerPark );
		myPOIWickerPark.setValue('icon',myIconWickerPark);
        myPOIWickerPark.setRolloverEnabled(true);
		myMap.addPoi( myPOIWickerPark )			
		
MQA.EventManager.addListener( polyWickerPark ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('WickerPark',polyWickerPark,41.908787,-87.685079)};});						
 MQA.EventManager.addListener( polyWickerPark,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyWickerPark,myPOIWickerPark);}});			    				
	 	       
//----------------------Bucktown-----------------------------


polyBucktown = new MQA.PolygonOverlay();

          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.addOverlay( polyBucktown );	
			
					
	    myPOIBucktown = new MQA.Poi(new MQA.LatLng( 41.918043,-87.684916 ));
		myPOIBucktown.setValue('labelText', "Bucktown");
		myPOIBucktown.setValue('labelClass', "text_map");
		myPOIBucktown.setValue('minZoomLevel', 9);
		myPOIBucktown.setLabelVisible(true);
	    myPOIBucktown.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyBucktown); onMouseOut=fn_color_out(polyBucktown); onclick=fn_border('Bucktown',polyBucktown);>Bucktown</a></td></tr></table>");
					
		myIconBucktown = new MQA.Icon("",1,1);
	    myShadowBucktown = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOIBucktown.setValue('shadow', myShadowBucktown );
		myPOIBucktown.setValue('icon',myIconBucktown);
        myPOIBucktown.setRolloverEnabled( true );
		myMap.addPoi( myPOIBucktown )		
		
      MQA.EventManager.addListener( polyBucktown ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('Bucktown',polyBucktown,41.918043,-87.684916)};});						
     MQA.EventManager.addListener( polyBucktown,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyBucktown,myPOIBucktown);}});			    				
	    

	//----------------------Logan Square-----------------------------

 polyLoganSquare = new MQA.PolygonOverlay();

    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.addOverlay( polyLoganSquare );
			
			   myPOILoganSquare = new MQA.Poi(new MQA.LatLng( 41.927616,-87.721251 ));
		myPOILoganSquare.setValue('labelText', "Logan Square");
		myPOILoganSquare.setValue('labelClass', "text_map");
		myPOILoganSquare.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyLoganSquare); onMouseOut=fn_color_out(polyLoganSquare); onclick=fn_border('LoganSquare',polyLoganSquare);>Logan Square</a></td></tr></table>");
				
		myIconLoganSquare = new MQA.Icon("",1,1);
	    myShadowLoganSquare = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOILoganSquare.setValue('shadow', myShadowLoganSquare );
		myPOILoganSquare.setValue('icon',myIconLoganSquare);
        myPOILoganSquare.setRolloverEnabled( true );
		myMap.addPoi( myPOILoganSquare )
		
		MQA.EventManager.addListener( polyLoganSquare ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('LoganSquare',polyLoganSquare,41.927616,-87.721251)};});							
		 MQA.EventManager.addListener( polyLoganSquare,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyLoganSquare,myPOILoganSquare);}});			    				
	  
	  
				
//----------------------Hermosa-----------------------------

polyHermosa = new MQA.PolygonOverlay();

    polyHermosa.setBorderWidth(0);
    polyHermosa.setColor("#999999");
    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.addOverlay( polyHermosa );	
			
	    myPOIHermosa = new MQA.Poi(new MQA.LatLng( 41.928871,-87.742533 ));
		myPOIHermosa.setValue('labelText', "Hermosa");
		myPOIHermosa.setValue('labelClass', "text_map");
		myPOIHermosa.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyHermosa); onMouseOut=fn_color_out(polyHermosa); onclick=fn_border('Hermosa',polyHermosa);>Hermosa</a></td></tr></table>");
				
		myIconHermosa = new MQA.Icon("",1,1);
	    myShadowHermosa = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOIHermosa.setValue('shadow', myShadowHermosa );
		myPOIHermosa.setValue('icon',myIconHermosa);
        myPOIHermosa.setRolloverEnabled(true);
		myMap.addPoi( myPOIHermosa )
		
		MQA.EventManager.addListener( polyHermosa ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('Hermosa',polyHermosa,41.928871,-87.742533)};});			
		 MQA.EventManager.addListener( polyHermosa,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyHermosa,myPOIHermosa);}});			    				
	  
	
	//----------------------Belmont/Cragin-----------------------------

    polyCragin = new MQA.PolygonOverlay();

    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.addOverlay( polyCragin );	
			
			   myPOICragin = new MQA.Poi(new MQA.LatLng( 41.938977,-87.763144 ));
		myPOICragin.setValue('labelText', "Belmont/Cragin");
		myPOICragin.setValue('labelClass', "text_map");
		myPOICragin.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyCragin); onMouseOut=fn_color_out(polyCragin); onclick=fn_border('Cragin',polyCragin);>Belmont<br>Cragin</a></td></tr></table>");
				
		myIconCragin = new MQA.Icon("",1,1);
	    myShadowCragin = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOICragin.setValue('shadow', myShadowCragin );
		myPOICragin.setValue('icon',myIconCragin);
        myPOICragin.setRolloverEnabled( true );
		myMap.addPoi( myPOICragin )										
											
	MQA.EventManager.addListener( polyCragin ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('Cragin',polyCragin,41.938977,-87.763144)};});												
	MQA.EventManager.addListener( polyCragin,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyCragin,myPOICragin);}});			    				
	  												

//----------------------Austin-----------------------------

    polyAustin = new MQA.PolygonOverlay();

   polyAustin.setBorderWidth(0);
   polyAustin.setColor("#666666");   
   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.addOverlay( polyAustin );	
				
        myPOIAustin = new MQA.Poi(new MQA.LatLng( 41.906006,-87.761275 ));
		myPOIAustin.setValue('labelText', "Austin");
		myPOIAustin.setValue('labelClass', "text_map");
		myPOIAustin.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyAustin); onMouseOut=fn_color_out(polyAustin); onclick=fn_border('Austin',polyAustin);>Austin</a></td></tr></table>");		
				
		myIconAustin = new MQA.Icon("",1,1);
	    myShadowAustin = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOIAustin.setValue('shadow', myShadowAustin );
		myPOIAustin.setValue('icon',myIconAustin);
        myPOIAustin.setRolloverEnabled( true );
		myMap.addPoi( myPOIAustin )		
		
		MQA.EventManager.addListener( polyAustin ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('Austin',polyAustin,41.906006,-87.761275)};});												
		MQA.EventManager.addListener( polyAustin,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyAustin,myPOIAustin);}});			    				
	
	//----------------------Humboldt Park-----------------------------


   polyHumboldtPark = new MQA.PolygonOverlay();

    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.addOverlay( polyHumboldtPark );	
			
			  myPOIHumboldtPark = new MQA.Poi(new MQA.LatLng( 41.902521,-87.714942 ));
		myPOIHumboldtPark.setValue('labelText', "Humboldt Park");
		myPOIHumboldtPark.setValue('labelClass', "text_map");
		myPOIHumboldtPark.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyHumboldtPark); onMouseOut=fn_color_out(polyHumboldtPark); onclick=fn_border('HumboldtPark',polyHumboldtPark);>Humboldt Park</a></td></tr></table>");
								
		myIconHumboldtPark = new MQA.Icon("",1,1);
	    myShadowHumboldtPark = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOIHumboldtPark.setValue('shadow', myShadowHumboldtPark );
		myPOIHumboldtPark.setValue('icon',myIconHumboldtPark);
        myPOIHumboldtPark.setRolloverEnabled( true );
		myMap.addPoi( myPOIHumboldtPark )																						
	
   	MQA.EventManager.addListener( polyHumboldtPark ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('HumboldtPark',polyHumboldtPark,41.902521,-87.714942)};});												
    MQA.EventManager.addListener( polyHumboldtPark,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyHumboldtPark,myPOIHumboldtPark);}});			    				 
	
	
//----------------------Ukrainian Village-----------------------------

   polyUkrainianVillage = new MQA.PolygonOverlay();

    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.addOverlay( polyUkrainianVillage );		
	
	    myPOIUkrainianVillage = new MQA.Poi(new MQA.LatLng( 41.901342,-87.683579 ));
		myPOIUkrainianVillage.setValue('labelText', "Ukrainian Village");
		myPOIUkrainianVillage.setValue('labelClass', "text_map");
		//myPOIUkrainianVillage.setValue('visible',false);
		myPOIUkrainianVillage.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyUkrainianVillage); onMouseOut=fn_color_out(polyUkrainianVillage); onclick=fn_border('UkrainianVillage',polyUkrainianVillage);>Ukrainian<br>Village</a></td></tr></table>");
	
		myIconUkrainianVillage = new MQA.Icon("",1,1);
	    myShadowUkrainianVillage = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOIUkrainianVillage.setValue('shadow', myShadowUkrainianVillage );
		myPOIUkrainianVillage.setValue('icon',myIconUkrainianVillage);
        myPOIUkrainianVillage.setRolloverEnabled( true );
		myMap.addPoi( myPOIUkrainianVillage )			
		
		MQA.EventManager.addListener( polyUkrainianVillage ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('UkrainianVillage',polyUkrainianVillage,41.901342,-87.683579)};});												
		MQA.EventManager.addListener( polyUkrainianVillage,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyUkrainianVillage,myPOIUkrainianVillage);}});			    				 
	   
//----------------------River West-----------------------------

polyRiverWest = new MQA.PolygonOverlay();

    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.addOverlay( polyRiverWest );	
			
		   myPOIRiverWest = new MQA.Poi(new MQA.LatLng( 41.89532,-87.655172 ));
		myPOIRiverWest.setValue('labelText', "River West");
		myPOIRiverWest.setValue('labelClass', "text_map");
		//myPOIRiverWest.setValue('visible',false);
		myPOIRiverWest.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyRiverWest); onMouseOut=fn_color_out(polyRiverWest); onclick=fn_border('RiverWest',polyRiverWest);>River West</a></td></tr></table>");
				
		myIconRiverWest = new MQA.Icon("",1,1);
	    myShadowRiverWest = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOIRiverWest.setValue('shadow', myShadowRiverWest );
		myPOIRiverWest.setValue('icon',myIconRiverWest);
        myPOIRiverWest.setRolloverEnabled( true );
		myMap.addPoi( myPOIRiverWest )			
		
		MQA.EventManager.addListener( polyRiverWest ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('RiverWest',polyRiverWest,41.89532,-87.655172)};});												
		MQA.EventManager.addListener( polyRiverWest,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyRiverWest,myPOIRiverWest);}});			    				 


//----------------------Old Town-----------------------------

 polyOldTown = new MQA.PolygonOverlay();
   
    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.addOverlay( polyOldTown );	
			
			
	    myPOIOldTown = new MQA.Poi(new MQA.LatLng( 41.90931,-87.658197 ));
		myPOIOldTown.setValue('labelText', "Old Town");
		myPOIOldTown.setValue('labelClass', "text_map");
		//myPOIOldTown.setValue('visible',false);
		myPOIOldTown.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyOldTown); onMouseOut=fn_color_out(polyOldTown); onclick=fn_border('OldTown',polyOldTown);>Old Town</a></td></tr></table>");
				
		myIconOldTown = new MQA.Icon("",1,1);
	    myShadowOldTown = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOIOldTown.setValue('shadow', myShadowOldTown );
		myPOIOldTown.setValue('icon',myIconOldTown);
        myPOIOldTown.setRolloverEnabled( true );
		myMap.addPoi( myPOIOldTown )		
		
		MQA.EventManager.addListener( polyOldTown ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('OldTown',polyOldTown,41.90931,-87.658197)};});												
		MQA.EventManager.addListener( polyOldTown,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyOldTown,myPOIOldTown);}});			    				 

	
	
	//----------------------Gold Coast-----------------------------

    polyGoldCoast = new MQA.PolygonOverlay();
    
    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.addOverlay( polyGoldCoast );	
			
			 myPOIGoldCoast = new MQA.Poi(new MQA.LatLng( 41.902803,-87.629697 ));
		myPOIGoldCoast.setValue('labelText', "Gold Coast");
		myPOIGoldCoast.setValue('labelClass', "text_map");
		//myPOIGoldCoast.setValue('visible',false);
		myPOIGoldCoast.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyGoldCoast); onMouseOut=fn_color_out(polyGoldCoast); onclick=fn_border('GoldCoast',polyGoldCoast);>Gold Coast</a></td></tr></table>");
				
		myIconGoldCoast = new MQA.Icon("",1,1);
	    myShadowGoldCoast = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOIGoldCoast.setValue('shadow', myShadowGoldCoast );
		myPOIGoldCoast.setValue('icon',myIconGoldCoast);
        myPOIGoldCoast.setRolloverEnabled( true );
		myMap.addPoi( myPOIGoldCoast )		
		
		MQA.EventManager.addListener( polyGoldCoast ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('GoldCoast',polyGoldCoast,41.902803,-87.629697)};});												
		MQA.EventManager.addListener( polyGoldCoast,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyGoldCoast,myPOIGoldCoast);}});			    				 


//----------------------River North-----------------------------

    polyRiverNorth = new MQA.PolygonOverlay();
    
    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.addOverlay( polyRiverNorth );	
			
			
					
	    myPOIRiverNorth = new MQA.Poi(new MQA.LatLng( 41.893684,-87.633492 ));
		myPOIRiverNorth.setValue('labelText', "River North");
		myPOIRiverNorth.setValue('labelClass', "text_map");
		//myPOIRiverNorth.setValue('visible',false);
		myPOIRiverNorth.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyRiverNorth); onMouseOut=fn_color_out(polyRiverNorth); onclick=fn_border('RiverNorth',polyRiverNorth);>River North</a></td></tr></table>");
				
		myIconRiverNorth = new MQA.Icon("",1,1);
	    myShadowRiverNorth = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOIRiverNorth.setValue('shadow', myShadowRiverNorth );
		myPOIRiverNorth.setValue('icon',myIconRiverNorth);
        myPOIRiverNorth.setRolloverEnabled( true );
		myMap.addPoi( myPOIRiverNorth )			
		
	MQA.EventManager.addListener( polyRiverNorth ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('RiverNorth',polyRiverNorth,41.893684,-87.633492)};});												
	MQA.EventManager.addListener( polyRiverNorth,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyRiverNorth,myPOIRiverNorth);}});			    				 
	    
	
	
	//----------------------Loop-----------------------------

    polyLoop = new MQA.PolygonOverlay();
    
    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.addOverlay( polyLoop );	
			
			
								
	    myPOILoop = new MQA.Poi(new MQA.LatLng( 41.881973,-87.626567 ));
		myPOILoop.setValue('labelText', "Loop");
		myPOILoop.setValue('labelClass', "text_map");
		//myPOILoop.setValue('visible',false);
		myPOILoop.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=#  onMouseOver=fn_color_over(polyLoop); onMouseOut=fn_color_out(polyLoop); onclick=fn_border('Loop',polyLoop);>Loop</a></td></tr></table>");
				
		myIconLoop = new MQA.Icon("",1,1);
	    myShadowLoop = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOILoop.setValue('shadow', myShadowLoop );
		myPOILoop.setValue('icon',myIconLoop);
        myPOILoop.setRolloverEnabled( true );
		myMap.addPoi( myPOILoop )
		
		MQA.EventManager.addListener( polyLoop ,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('Loop',polyLoop,41.881973,-87.626567)};});												
		MQA.EventManager.addListener( polyLoop,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyLoop,myPOILoop);}});			    				 
	    
		        		       
//----------------------West Loop-----------------------------

    polyWestLoop = new MQA.PolygonOverlay();
    
    polyWestLoop.setBorderWidth(0);
    polyWestLoop.setColor("#999999");
    polyWestLoop.setFillColor("#00ffff");
    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.addOverlay( polyWestLoop );	
			
			
			  myPOIWestLoop = new MQA.Poi(new MQA.LatLng( 41.881713,-87.641682 ));
		myPOIWestLoop.setValue('labelText', "West Loop");
		myPOIWestLoop.setValue('labelClass', "text_map");
		//myPOIWestLoop.setValue('visible',false);
		myPOIWestLoop.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyWestLoop); onMouseOut=fn_color_out(polyWestLoop); onclick=fn_border('WestLoop',polyWestLoop);>West Loop</a></td></tr></table>");
				
		myIconWestLoop = new MQA.Icon("",1,1);
	    myShadowWestLoop = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOIWestLoop.setValue('shadow', myShadowWestLoop );
		myPOIWestLoop.setValue('icon',myIconWestLoop);
        myPOIWestLoop.setRolloverEnabled( true );
		myMap.addPoi( myPOIWestLoop )		
		
			MQA.EventManager.addListener( polyWestLoop,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('WestLoop',polyWestLoop,41.881713,-87.641682)};});										
		    MQA.EventManager.addListener( polyWestLoop,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyWestLoop,myPOIWestLoop);}});			    				 
	   
	
	//----------------------West Town-----------------------------

    polyWestTown = new MQA.PolygonOverlay();
    
    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.addOverlay( polyWestTown );	
			
	    myPOIWestTown = new MQA.Poi(new MQA.LatLng( 41.901392,-87.6662 ));
		myPOIWestTown.setValue('labelClass', "text_map");
		//myPOIWestTown.setValue('visible',false);
		myPOIWestTown.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyWestTown); onMouseOut=fn_color_out(polyWestTown); onclick=fn_border('WestTown',polyWestTown);>West Town</a></td></tr></table>");
				
		myIconWestTown = new MQA.Icon("",1,1);
	    myShadowWestTown = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOIWestTown.setValue('shadow', myShadowWestTown );
		myPOIWestTown.setValue('icon',myIconWestTown);
        myPOIWestTown.setRolloverEnabled( true );
		myMap.addPoi( myPOIWestTown )	
		
		MQA.EventManager.addListener( polyWestTown,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('WestTown',polyWestTown,41.901392,-87.6662)};});										
	    MQA.EventManager.addListener( polyWestTown,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyWestTown,myPOIWestTown);}});			    				 
	   

//----------------------East Village-----------------------------

    polyEastVillage = new MQA.PolygonOverlay();
    
    polyEastVillage.setBorderWidth(0);
    polyEastVillage.setColor("#666666");
    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.addOverlay( polyEastVillage );	
			
		myPOIEastVillage = new MQA.Poi(new MQA.LatLng( 41.889416,-87.676396));
		myPOIEastVillage.setValue('labelClass', "text_map");
		//myPOIEastVillage.setValue('visible',false);
		myPOIEastVillage.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyEastVillage); onMouseOut=fn_color_out(polyEastVillage); onclick=fn_border('EastVillage',polyEastVillage);>East Village</a></td></tr></table>");
				
		myIconEastVillage = new MQA.Icon("",1,1);
	    myShadowEastVillage = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOIEastVillage.setValue('shadow', myShadowEastVillage );
		myPOIEastVillage.setValue('icon',myIconEastVillage);
        myPOIEastVillage.setRolloverEnabled( true );
		myMap.addPoi( myPOIEastVillage )		
		
		MQA.EventManager.addListener( polyEastVillage,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('EastVillage',polyEastVillage,41.889416,-87.676396)};});	
	    MQA.EventManager.addListener( polyEastVillage,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyEastVillage,myPOIEastVillage);}});			    				 
	   						    
	
	
	//----------------------Garfield Park-----------------------------

    polyGarfieldPark = new MQA.PolygonOverlay();
   
    polyGarfieldPark.setBorderWidth(0);
    polyGarfieldPark.setColor("#666666");  
    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.addOverlay( polyGarfieldPark );	
			
			 myPOIGarfieldPark = new MQA.Poi(new MQA.LatLng( 41.885395,-87.719547 ));
		myPOIGarfieldPark.setValue('labelText', "Garfield Park");
		myPOIGarfieldPark.setValue('labelClass', "text_map");
		//myPOIGarfieldPark.setValue('visible',false);
		myPOIGarfieldPark.setValue('HTMLContent', "<table cellpadding=0 cellspacing=0 class=text_map><tr><td style='padding-left:2px;padding-right:2px;' nowrap><a href=# onMouseOver=fn_color_over(polyGarfieldPark); onMouseOut=fn_color_out(polyGarfieldPark); onclick=fn_border('GarfieldPark',polyGarfieldPark);>Garfield Park</a></td></tr></table>");
				
		myIconGarfieldPark = new MQA.Icon("",1,1);
	    myShadowGarfieldPark = new MQA.Icon("http://v2.nufrontiers.com/images/btn_house.gif",1,1);
	    myPOIGarfieldPark.setValue('shadow', myShadowGarfieldPark );
		myPOIGarfieldPark.setValue('icon',myIconGarfieldPark);
        myPOIGarfieldPark.setRolloverEnabled(false);
		myMap.addPoi( myPOIGarfieldPark )		

   MQA.EventManager.addListener( polyGarfieldPark,'click', function(){if(myMap.getZoomLevel() < 9){fn_border_2('GarfieldPark',polyGarfieldPark,41.885395,-87.719547)};});	
   MQA.EventManager.addListener( polyGarfieldPark,'mouseOver', function(){if(myMap.getZoomLevel() < 9){fn_show_name(polyGarfieldPark,myPOIGarfieldPark);}});			    				 
	   		    
		    	        														    	    	    		    																	
   fn_hide_wait();
   
}

//------------------------------fn_border----------------------------
 
 function fn_border( strNei , strPoly )
   {
   
   //--'GarfieldRidge',polyGarfieldRidge
  
    var strErr, strTyp, strLP_min, strLP_max, isChecked;
    
    strErr = '';
    strTyp = '';
    isChecked = '';
     
    strLP_min = document.forms[0].elements[1].value;
    strLP_max = document.forms[0].elements[2].value;


   if( strErr != '')
    {
        window.alert( strErr );
        return false;      
    }
    
     //--update cookies, checkboxes--
     
      var borderWidth = strPoly.getBorderWidth();
      
      var strInt;
        
       if( strNei == "AlbanyPark")
        {
          strInt = "0";
          //setCookie("AlbanyPark", "yes", expdate );
        }
        else if( strNei == "Andersonville")
        {
          strInt = "1"; 
          //setCookie("Andersonville", "yes", expdate );
        }
        else if( strNei == "AvondalePark")
        {
          strInt = "2"; 
          //setCookie("AvondalePark", "yes", expdate );
        }
        else if( strNei == "Austin")
        {
          strInt = "3"; 
          //setCookie("Austin", "yes", expdate );
        }
        else if( strNei == "Bucktown")
        {
          strInt = "4"; 
          //setCookie("Bucktown", "yes", expdate );
        }
        else if( strNei == "Cragin")
        {
          strInt = "5";
          //setCookie("Cragin", "yes", expdate );
        }
        else if( strNei == "DePaul")
        {
          strInt = "6"; 
          //setCookie("DePaul", "yes", expdate ); 
        }
        else if( strNei == "EastRogersPark")
        {
          strInt = "7"; 
          //setCookie("EastRogersPark", "yes", expdate );
        }
        else if( strNei == "EastVillage")
        {
          strInt = "8"; 
          //setCookie("EastVillage", "yes", expdate );
        }
        else if( strNei == "Edgebrook")
        {
          strInt = "9"; 
          //setCookie("Edgebrook", "yes", expdate );
        }
        else if( strNei == "Edgewater")
        {
          strInt = "10"; 
          //setCookie("Edgewater", "yes", expdate );
        }
        else if( strNei == "EdisonPark")
        {
          strInt = "11"; 
          //setCookie("EdisonPark", "yes", expdate );
        }
        else if( strNei == "GarfieldPark")
        {
          strInt = "12"; 
          //setCookie("GarfieldPark", "yes", expdate );
        }
        else if( strNei == "GoldCoast")
        {
          strInt = "13";
          //setCookie("GoldCoast", "yes", expdate );
        }
        else if( strNei == "Hermosa")
        {
          strInt = "14"; 
          //setCookie("Hermosa", "yes", expdate );
        }
        else if( strNei == "HumboldtPark")
        {
          strInt = "15"; 
          //setCookie("HumboldtPark", "yes", expdate ); 
        }
        else if( strNei == "IrvingPark")
        {
          strInt = "16"; 
          //setCookie("IrvingPark", "yes", expdate );
        }
        else if( strNei == "JeffersonPark")
        {
          strInt = "17"; 
          //setCookie("JeffersonPark", "yes", expdate );
        }
        else if( strNei == "Lakeview")
        {
          strInt = "18"; 
          //setCookie("Lakeview", "yes", expdate );
        }
         else if( strNei == "LincolnSquare")
        {
          strInt = "19"; 
          //setCookie("LincolnSquare", "yes", expdate );
        }
        else if( strNei == "LincolnPark")
        {
          strInt = "20"; 
          //setCookie("LincolnPark", "yes", expdate );
        }
         else if( strNei == "LoganSquare")
        {
          strInt = "21"; 
          //setCookie("LoganSquare", "yes", expdate );
        }
         else if( strNei == "Loop")
        {
          strInt = "22"; 
          //setCookie("Loop", "yes", expdate );
        }
         else if( strNei == "NorthCenter")
        {
          strInt = "23"; 
          //setCookie("NorthCenter", "yes", expdate ); 
        }
         else if( strNei == "NorthPark")
        {
          strInt = "24"; 
          //setCookie("NorthPark", "yes", expdate );
        }
          else if( strNei == "NorwoodPark")
        {
          strInt = "25"; 
          //setCookie("NorwoodPark", "yes", expdate ); 
        }
          else if( strNei == "OldTown")
        {
          strInt = "26"; 
          //setCookie("OldTown", "yes", expdate );
        }
          else if( strNei == "Peterson")
        {
          strInt = "27"; 
          //setCookie("Peterson", "yes", expdate );
        }
          else if( strNei == "PortagePark")
        {
          strInt = "28"; 
          //setCookie("PortagePark", "yes", expdate );
        }
          else if( strNei == "Ravenswood")
        {
          strInt = "29"; 
          //setCookie("Ravenswood", "yes", expdate );
        }
          else if( strNei == "RiverNorth")
        {
          strInt = "30"; 
          //setCookie("RiverNorth", "yes", expdate );
        }
          else if( strNei == "RiverWest")
        {
          strInt = "31"; 
          //setCookie("RiverWest", "yes", expdate );
        }
          else if( strNei == "RoscoeVillage")
        {
          strInt = "32"; 
          //setCookie("RoscoeVillage", "yes", expdate );
        }
          else if( strNei == "Sauganash")
        {
          strInt = "33"; 
          //setCookie("Sauganash", "yes", expdate );
        }
          else if( strNei == "UkrainianVillage")
        {
          strInt = "34"; 
          //setCookie("UkrainianVillage", "yes", expdate );
        }
          else if( strNei == "Uptown")
        {
          strInt = "35"; 
          //setCookie("Uptown", "yes", expdate );;
        }
          else if( strNei == "WestLoop")
        {
          strInt = "36"; 
          //setCookie("WestLoop", "yes", expdate );
        }
          else if( strNei == "WestRogersPark")
        {
          strInt = "37"; 
          //setCookie("WestRogersPark", "yes", expdate );
        }
          else if( strNei == "WestTown")
        {
          strInt = "38"; 
          //setCookie("WestTown", "yes", expdate );
        }
          else if( strNei == "WickerPark")
        {
          strInt = "39"; 
          //setCookie("WickerPark", "yes", expdate );
        }
          else if( strNei == "Wrigleyville")
        {
          strInt = "40";
          //setCookie("Wrigleyville", "yes", expdate );
        }
        
         if(borderWidth == 0)
       {
         strPoly.setBorderWidth(2); 
         strPoly.setColor("#005500");
         document.getElementById('cblNeighborhoods_'+ strInt).checked=true;
         setCookie("cookieScroll", parent.document.body.scrollTop , expdate ); 

        }
        
        else
        
         { 
        
        //   if(strNei == "Austin") 
           // {
           //  setCookie("Austin", "no", expdate );          
           //}
           //else if( strNei == "AlbanyPark")
           //{
           //  setCookie("AlbanyPark", "no", expdate );           
           //}
           // else if( strNei == "Andersonville")
           //{
           //  setCookie("Andersonville", "no", expdate );           
           //}
           // else if( strNei == "AvondalePark")
           //{
           //  setCookie("AvondalePark", "no", expdate );    
           //}
            //else if( strNei == "Bucktown")
           //{
             //setCookie("Bucktown", "no", expdate );
           //}
            //else if( strNei == "Cragin")
           //{
             //setCookie("Cragin", "no", expdate );
           //}
            //else if( strNei == "DePaul")
           //{
             //setCookie("DePaul", "no", expdate );
           //}
           //else if( strNei == "EastRogersPark")
           //{
             //setCookie("EastRogersPark", "no", expdate );
           //}
           //else if( strNei == "EastVillage")
           //{
             //setCookie("EastVillage", "no", expdate );
           //}
            //else if( strNei == "Edgebrook")
           //{
             //setCookie("Edgebrook", "no", expdate );
           //}
           //else if( strNei == "Edgewater")
           //{
             //setCookie("Edgewater", "no", expdate );
           //}
           //else if( strNei == "EdisonPark")
           //{
             //setCookie("EdisonPark", "no", expdate );
           //}
          //else if( strNei == "GarfieldPark")
           //{
             //setCookie("GarfieldPark", "no", expdate );
           //}
            //else if( strNei == "GoldCoast")
           //{
             //setCookie("GoldCoast", "no", expdate );
           //}
            //else if( strNei == "Hermosa")
           //{
             //setCookie("Hermosa", "no", expdate );
           //}
             //else if( strNei == "HumboldtPark")
           //{
             //setCookie("HumboldtPark", "no", expdate );       
           //}
            //else if( strNei == "IrvingPark")
           //{
             //setCookie("IrvingPark", "no", expdate );
           //}
             //else if( strNei == "JeffersonPark")
           //{
             //setCookie("JeffersonPark", "no", expdate );
           //}
            //else if( strNei == "Lakeview")
           //{
             //setCookie("Lakeview", "no", expdate );
           //}
             //else if( strNei == "LincolnSquare")
           //{
             //setCookie("LincolnSquare", "no", expdate );
           //}
            //else if( strNei == "LincolnPark")
           //{
             //setCookie("LincolnPark", "no", expdate );
           //}
            //else if( strNei == "LoganSquare")
           //{
             //setCookie("LoganSquare", "no", expdate );;
           //}
             //else if( strNei == "Loop")
           //{
             //setCookie("Loop", "no", expdate );
           //}
             //else if( strNei == "NorthCenter")
           //{
             //setCookie("NorthCenter", "no", expdate );
           //}
            //else if( strNei == "NorthPark")
           //{
             //setCookie("NorthPark", "no", expdate );
           //}
            //else if( strNei == "NorwoodPark")
           //{
             //setCookie("NorwoodPark", "no", expdate );
           //}
            //else if( strNei == "OldTown")
           //{
             //setCookie("OldTown", "no", expdate );
           //}
            //else if( strNei == "Peterson")
           //{
             //setCookie("Peterson", "no", expdate );
           //}
            //else if( strNei == "PortagePark")
           //{
             //setCookie("PortagePark", "no", expdate );
           //}
            //else if( strNei == "Ravenswood")
           //{
             //setCookie("Ravenswood", "no", expdate );
           //}
            //else if( strNei == "RiverNorth")
           //{
             //setCookie("RiverNorth", "no", expdate );
           //}
             //else if( strNei == "RiverNorth")
           //{
             //setCookie("RiverWest", "no", expdate );
           //}
            //else if( strNei == "RoscoeVillage")
           //{
             //setCookie("RoscoeVillage", "no", expdate );
           //}
            //else if( strNei == "Sauganash")
           //{
             //setCookie("Sauganash", "no", expdate );
           //}
             //else if( strNei == "UkrainianVillage")
           //{
             //setCookie("UkrainianVillage", "no", expdate );
           //}
           //else if( strNei == "Uptown")
           //{
             //setCookie("Uptown", "no", expdate );
           //}
           //else if( strNei == "WestLoop")
           //{
             //setCookie("WestLoop", "no", expdate );
           //}
           //else if( strNei == "WestRogersPark")
           //{
             //setCookie("WestRogersPark", "no", expdate );
           //}
            //else if( strNei == "WestTown")
           //{
             //setCookie("WestTown", "no", expdate );
           //}
           //else if( strNei == "WickerPark")
           //{  
             //setCookie("WickerPark", "no", expdate );
           //}
           //else if( strNei == "Wrigleyville")
           //{
             //setCookie("Wrigleyville", "no", expdate );
           //}
           
         strPoly.setBorderWidth(0);  
         strPoly.setColor("#666666");    
         document.getElementById('cblNeighborhoods_'+ strInt).checked=false; 
         setCookie("cookieScroll", parent.document.body.scrollTop , expdate ); 
        
        }
         
      setCookie("cookieScroll", parent.document.body.scrollTop , expdate ); 
      setCookie("cookieCenter", myMap.getCenter() , expdate );
      setCookie("cookieZoom" , myMap.getZoomLevel() , expdate );
      
   }
   
  //----------------------------fn_show_wait-----------------------------------
 
 function fn_show_wait()
  {
    
    document.getElementById('divLoading_data').style.display='';
    setTimeout('document.images["pbar"].src = "images/indicator-preview.gif"', 100); 
     
  }   
 
 
//-----------------------------fn_hide_wait-----------------------------------

 function fn_hide_wait()
  {
  
    document.getElementById('divLoading_data').style.display='none';
  
  }
  
//-----------------------------fn_show_name-----------------------------------

 function fn_show_name(obj,POI)
  {
 
   fn_update_ar();
    
    obj.setFillColorAlpha(.36);
    
    var borderWidth = obj.getBorderWidth();
    
    if(borderWidth == 0)
     {
      POI.setValue('visible',true);
     } 

  }
  
//-----------------------------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_update_ar()--------------------------------

function fn_update_ar()
 {
 
    if (getCookie("myPOIEast_Rogers_Park") != "yes")
     {
        myPOIEast_Rogers_Park.setValue('visible',false);  
     }
    polyEast_Rogers_Park.setFillColorAlpha( .18 );
    
    if (getCookie("myPOIWest_Rogers_Park") != "yes")
     {
       myPOIWest_Rogers_Park.setValue('visible',false);  
     }
    polyWest_Rogers_Park.setFillColorAlpha( .18 );
    
    if (getCookie("myPOIEdgewater") != "yes")
     {
         myPOIEdgewater.setValue('visible',false); 
     }
    polyEdgewater.setFillColorAlpha( .18 );
    
     if (getCookie("myPOIAndersonville") != "yes")
     {
         myPOIAndersonville.setValue('visible',false);
     }
    polyAndersonville.setFillColorAlpha( .18 );
    
    if (getCookie("myPOIUptown") != "yes")
     {
         myPOIUptown.setValue('visible',false);
     }
    polyUptown.setFillColorAlpha( .18 );
    
    if (getCookie("myPOIRavenswood") != "yes")
     {
        myPOIRavenswood.setValue('visible',false);
     }
    polyRavenswood.setFillColorAlpha( .18 );
    
    if (getCookie("myPOIPeterson") != "yes")
     {
        myPOIPeterson.setValue('visible',false);
     }
    polyPeterson.setFillColorAlpha( .18 );
    
    if (getCookie("myPOILincolnSquare") != "yes")
     {
         myPOILincolnSquare.setValue('visible',false);
     }
    polyLincolnSquare.setFillColorAlpha( .18 );
    
    if (getCookie("myPOIWrigleyville") != "yes")
     {
        myPOIWrigleyville.setValue('visible',false);
     }
    polyWrigleyville.setFillColorAlpha( .18 );
    
    if (getCookie("myPOINorthCenter") != "yes")
     {
         myPOINorthCenter.setValue('visible',false);
     }
    polyNorthCenter.setFillColorAlpha( .18 );
    
    if (getCookie("myPOINorthPark") != "yes")
     {
        myPOINorthPark.setValue('visible',false);
     }
    polyNorthPark.setFillColorAlpha( .18 );
    
    if (getCookie("myPOISauganash") != "yes")
     {
       myPOISauganash.setValue('visible',false);
     }
    polySauganash.setFillColorAlpha( .18 );
    
    if (getCookie("myPOIEdgebrook") != "yes")
     {
       myPOIEdgebrook.setValue('visible',false);
     }
    polyEdgebrook.setFillColorAlpha( .18 );
    
     if (getCookie("myPOIJeffersonPark") != "yes")
     {
        myPOIJeffersonPark.setValue('visible',false);
     }
    polyJeffersonPark.setFillColorAlpha( .18 );
    
    if (getCookie("myPOINorwoodPark") != "yes")
     {
       myPOINorwoodPark.setValue('visible',false);
     }
    polyNorwoodPark.setFillColorAlpha( .18 );
    
    if (getCookie("myPOIEdisonPark") != "yes")
     {
       myPOIEdisonPark.setValue('visible',false);
     }
    polyEdisonPark.setFillColorAlpha( .18 );
    
    if (getCookie("myPOIPortagePark") != "yes")
     {
      myPOIPortagePark.setValue('visible',false);
     } 
    polyPortagePark.setFillColorAlpha( .18 );
    
    if (getCookie("myPOIAlbanyPark") != "yes")
     {
       myPOIAlbanyPark.setValue('visible',false);
     } 
    polyAlbanyPark.setFillColorAlpha( .18 );
    
    if (getCookie("myPOIIrvingPark") != "yes")
     {
        myPOIIrvingPark.setValue('visible',false);
     } 
    polyIrvingPark.setFillColorAlpha( .18 );
    
    if (getCookie("myPOIAvondalePark") != "yes")
     {
       myPOIAvondalePark.setValue('visible',false);
     } 
    polyAvondalePark.setFillColorAlpha( .18 );
    
    if (getCookie("myPOIRoscoeVillage") != "yes")
     {
        myPOIRoscoeVillage.setValue('visible',false);
     } 
    polyRoscoeVillage.setFillColorAlpha( .18 );
    
    if (getCookie("myPOILakeview") != "yes")
     {
         myPOILakeview.setValue('visible',false);
     } 
    polyLakeview.setFillColorAlpha( .18 );
   
   if (getCookie("myPOILincolnPark") != "yes")
     {
          myPOILincolnPark.setValue('visible',false);
     } 
    polyLincolnPark.setFillColorAlpha( .18 );
    
    if (getCookie("myPOIDePaul") != "yes")
     {
        myPOIDePaul.setValue('visible',false);
     } 
    polyDePaul.setFillColorAlpha( .18 );
   
    if (getCookie("myPOIWickerPark") != "yes")
     {
        myPOIWickerPark.setValue('visible',false);
     } 
    polyWickerPark.setFillColorAlpha( .18 );
    
    if (getCookie("myPOIBucktown") != "yes")
     {
        myPOIBucktown.setValue('visible',false);
     } 
    polyBucktown.setFillColorAlpha( .18 );
    
    if (getCookie("myPOILoganSquare") != "yes")
     {
        myPOILoganSquare.setValue('visible',false);
     } 
    polyLoganSquare.setFillColorAlpha( .18 );       
    
    if (getCookie("myPOIHermosa") != "yes")
     {
        myPOIHermosa.setValue('visible',false);
     } 
    polyHermosa.setFillColorAlpha( .18 );
    
    if (getCookie("myPOICragin") != "yes")
     {
       myPOICragin.setValue('visible',false);;
     } 
    polyCragin.setFillColorAlpha( .18 ); 
    
    if (getCookie("myPOIAustin") != "yes")
     {
        myPOIAustin.setValue('visible',false);
     }
    polyAustin.setFillColorAlpha( .18 ); 
    
    if (getCookie("myPOIHumboldtPark") != "yes")
     {
        myPOIHumboldtPark.setValue('visible',false);
     }
    polyHumboldtPark.setFillColorAlpha( .18 );
    
    if (getCookie("myPOIUkrainianVillage") != "yes")
     {
       myPOIUkrainianVillage.setValue('visible',false);
     } 
    polyUkrainianVillage.setFillColorAlpha( .18 );
    
    if (getCookie("myPOIRiverWest") != "yes")
     {
        myPOIRiverWest.setValue('visible',false);
     }  
    polyRiverWest.setFillColorAlpha( .18 );
    
    if (getCookie("myPOIOldTown") != "yes")
     {
       myPOIOldTown.setValue('visible',false);
     }  
    polyOldTown.setFillColorAlpha( .18 );
    
     if (getCookie("myPOIGoldCoast") != "yes")
     {
        myPOIGoldCoast.setValue('visible',false);
     }  
    polyGoldCoast.setFillColorAlpha( .18 ); 

     if (getCookie("myPOIRiverNorth") != "yes")
     {
         myPOIRiverNorth.setValue('visible',false);
     }  
    polyRiverNorth.setFillColorAlpha( .18 );  
    
    if (getCookie("myPOILoop") != "yes")
     {
        myPOILoop.setValue('visible',false);
     }  
    polyLoop.setFillColorAlpha( .18 );  
    
    if (getCookie("myPOIWestLoop") != "yes")
     {
        myPOIWestLoop.setValue('visible',false);
     }  
    polyWestLoop.setFillColorAlpha( .18 );  
    
    if (getCookie("myPOIWestTown") != "yes")
     {
        myPOIWestTown.setValue('visible',false);
     }  
    polyWestTown.setFillColorAlpha( .18 ); 
    
    if (getCookie("myPOIEastVillage") != "yes")
     {
        myPOIEastVillage.setValue('visible',false);
     } 
    polyEastVillage.setFillColorAlpha( .18 );
    
    if( getCookie("myPOIGarfieldPark") != "yes") 
     {
        myPOIGarfieldPark.setValue('visible',false);
     }
    polyGarfieldPark.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_update_map------------------------------------
 
 function fn_update_map( obj )
  {
  
   var strPoly = obj.getKey();
  
    if( obj.getBorderWidth() == 0)
     {
    
     if( strPoly == "EastRogersPark" )
       {
        setCookie("myPOIEast_Rogers_Park", "yes", expdate );
        setCookie("polyEast_Rogers_Park", "yes", expdate ); 
        myPOIEast_Rogers_Park.setValue('visible',true);  
      }
      else if( strPoly == "WestRogersPark" )
       {
        setCookie("myPOIWest_Rogers_Park", "yes", expdate );
        setCookie("polyWest_Rogers_Park", "yes", expdate ); 
        myPOIWest_Rogers_Park.setValue('visible',true);  
      }
       else if( strPoly == "Edgewater" )
       {
        setCookie("myPOIEdgewater", "yes", expdate );
        setCookie("polyEdgewater", "yes", expdate ); 
        myPOIEdgewater.setValue('visible',true);  
      }
       else if( strPoly == "Andersonville" )
       {
        setCookie("myPOIAndersonville", "yes", expdate );
        setCookie("polyAndersonville", "yes", expdate ); 
        myPOIAndersonville.setValue('visible',true);  
      }
      
     obj.setBorderWidth(2); 
     obj.setFillColorAlpha( .36 );
     obj.setColor("#005500");
     
   }
   else
   {
     
    if( strPoly == "EastRogersPark")
      {
        setCookie("myPOIEast_Rogers_Park", "no", expdate );
        setCookie("polyEast_Rogers_Park", "no", expdate );
        
        if(myMap.getZoomLevel() < 9)
         {
           myPOIEast_Rogers_Park.setValue('visible',false);  
         }
      }
    else if( strPoly == "WestRogersPark")
      {
        setCookie("myPOIWest_Rogers_Park", "no", expdate );
        setCookie("polyWest_Rogers_Park", "no", expdate );
        
        if(myMap.getZoomLevel() < 9)
         {
          myPOIWest_Rogers_Park.setValue('visible',false);  
         }
      }
       else if( strPoly == "Edgewater")
      {
        setCookie("myPOIEdgewater", "no", expdate );
        setCookie("polyEdgewater", "no", expdate );
        
        if(myMap.getZoomLevel() < 9)
         {
          myPOIEdgewater.setValue('visible',false);  
         }
      }
       else if( strPoly == "Andersonville")
      {
        setCookie("myPOIAndersonville", "no", expdate );
        setCookie("polyAndersonville", "no", expdate );
        
        if(myMap.getZoomLevel() < 9)
         {
          myPOIAndersonville.setValue('visible',false);  
         }
      }
     
     obj.setBorderWidth(0); 
     obj.setFillColorAlpha( .18 );
     obj.setColor("#999999");
     
    }
      
  }  
  
  
  //----fn_toggle_options()---------------------------------

function fn_toggle_options( obj )
 {
 
    if (obj.style.display == "none") 
      {
        obj.style.display = "";
        divShow.style.display = "none";
        divHide.style.display = "";
        
      }
      else
      {
        obj.style.display = "none";
        divShow.style.display = "";
        divHide.style.display = "none";
    
      }
      
 } 
   
   

 
 


   
   
     
   
 
   
                          
                    
       
        
        
	
 


