/*
* The original base script for this file has been modified greatly by 
* MSI Systems Integrators on behalf of Home Instead Senior Care
*
* Original base script created by:
* Copyright (c) 2005-2007 Andriy Bidochko.  
* http://www.mapbuilder.net
*
* The script has been generated by MapBuilder.net service and released to the customer under 
* The GNU General Public License (GPL), which can be found at: http://www.opensource.org/licenses/gpl-license.php
* 
* This program is free software; you can redistribute it and/or modify it under the terms of the 
* GNU General Public License as published by the Free Software Foundation; 
* either version 2 of the License, or any later version.
* 
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the 
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 
* for more details.
*/

//That function will return the element of the array returned by map.getMapTypes() that identifies the current map
function getCurrentMapTypeNumber(oMap){
  var type=-1;
  for(var ix=0;ix<oMap.getMapTypes().length;ix++){
    if(oMap.getMapTypes()[ix]==oMap.getCurrentMapType())
      type=ix;
  }
  return type;

} 

// Creates a marker whose info window displays the passed html
function createMarker(point, html, icon) {

  var marker = new GMarker(point, icon);

  GEvent.addListener(marker, "click", function() {
	// Tool tip window, can have optional tabs 
	marker.openInfoWindowTabsHtml(
		[
			new GInfoWindowTab("Info", html)
			//new GInfoWindowTab("Directions", GetDirectionForm(id))
		]); swapPhone();		
  });

  return marker;
}

// Function is called when item is clicked.
function myInfoWindowHtml(myLocations, num)
{
  // Map rendering with open info window is very slow. Lets center map first.
  map.setCenter(myLocations[num][3]);
  // Tool tip window, can have optional tabs  
  myLocations[num][0].openInfoWindowTabsHtml(
  	[
  		new GInfoWindowTab("Info", myLocations[num][2]) //,
  		//new GInfoWindowTab("Directions", GetDirectionForm(num))
  	]);  swapPhone();    

}

GetGoogleMapsAPIVersion = function() {
    var v = 0;
    var scripts = document.getElementsByTagName("SCRIPT");
    for (var i=0; i<scripts.length; i++) {
        var pattern = /\/maps([0-9])?(\.?[0-9]+)(\.api)?\.js/;
        var m = pattern.exec(scripts[i].src);
        if (m != null) {
            if (m[1] == null) { v = parseFloat('1'+m[2]); }
            else { v = parseFloat(m[1]+m[2]); }
            break;
        }
    }
    return v;    
}

// Global Variables
// set map variable
var map = null;

// Create a base "large" red icon that specifies the shadow, icon dimensions, etc.
var iconbig = new GIcon();
iconbig.image = "/images/map/marker.png";
iconbig.shadow = "/images/map/shadow50.png";
iconbig.iconSize = new GSize(20, 34);
iconbig.shadowSize = new GSize(37, 34);
iconbig.iconAnchor = new GPoint(6, 34);
iconbig.infoWindowAnchor = new GPoint(5, 1);

// Custom Icon
var iconcustom = new GIcon(iconbig);
iconcustom.shadow = '';

//set up array to old functions that add locations
var allLocations = new Array;

// Runs onLoad of the page
function onLoad() {
if (!GBrowserIsCompatible()) 
{
 document.getElementById("MapBuilderMap").innerHTML = "Unfortunately your browser doesn't support Google Maps.<br /> To check browser compatibility visit the following <a href=\"http://local.google.com/support/bin/answer.py?answer=16532&topic=1499\">link</a>.";
 return;
}

map = new GMap2(document.getElementById("MapBuilderMap"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());

  // Add all locations to the map
  for (var i=0; i<allLocations.length; i++)
  {
      allLocations[i]();
  }
}


// Chicago Specific Map
var GroupChicago = new Array;

function AddGroupChicago() {
	// Center the map to the default location and set map type
	map.setCenter(new GLatLng(41.987706,-87.844982), 9, map.getMapTypes()[0]);
	// Initialize variables
	var point = null;
	var footerHtml = null;
	var InfoHTML = null;
	var marker = null;
	// Add locations
	
	// Cary
	point = new GLatLng(42.215694,-88.259659);
	// Define Marker
	InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Cary</div><BR><div><div class=\"IWImage\"><img src=\"/images/map/Homeinstead.gif\" alt=\"Home Instead Senior Care\" title=\"Home Instead Senior Care\" align=\"left\" valign=\"top\" /></div><div class=\"IWContent\"><span>Cary</span><BR>735 Industrial Drive, Unit C<BR>Cary, IL 60013-1952<BR>Phone: <strong><span id='dspPh0'>(847) 829-0044</span></strong><BR><div class=\"cta_purple\"><a title=\"Request Home Care\" href=\"http://www.homeinstead.com/370/Lists/ServiceInquiry/EntryForm08.aspx\">Request Home Care</a></div><div class=\"cta_green\"><a title=\"Get a CAREGiver Job\" href=\"http://www.homeinstead.com/370/becomeacaregiver/default.aspx\">Get a CAREGiver Job</a></div></div></div></div>";
	iconbig.image = "/images/map/marker1.png";
	marker = createMarker(point, InfoHTML, iconbig);
	map.addOverlay(marker);
	GroupChicago[0] = new Array(marker, "Cary", InfoHTML, point);

	// Chicago 1
	point = new GLatLng(41.938954,-87.655033);
	// Define Marker
	InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Chicago</div><BR><div><div class=\"IWImage\"><img src=\"/images/map/Homeinstead.gif\" alt=\"Home Instead Senior Care\" title=\"Home Instead Senior Care\" align=\"left\" valign=\"top\" /></div><div class=\"IWContent\"><span>Chicago</span><BR>1300 W. Belmont Avenue, Suite 20F<BR>Chicago, IL 60657<BR>Phone: <strong><span id='dspPh1'>(773) 295-4612</span></strong><BR><div class=\"cta_purple\"><a title=\"Request Home Care\" href=\"http://www.homeinstead.com/470/Lists/ServiceInquiry/EntryForm08.aspx\">Request Home Care</a></div><div class=\"cta_green\"><a title=\"Get a CAREGiver Job\" href=\"http://www.homeinstead.com/470/becomeacaregiver/default.aspx\">Get a CAREGiver Job</a></div></div></div>";
	iconbig.image = "/images/map/marker1.png";
	marker = createMarker(point, InfoHTML, iconbig);
	map.addOverlay(marker);
	GroupChicago[1] = new Array(marker, "Chicago", InfoHTML, point);			
	
	// Chicago 2
	point = new GLatLng(41.968469,-87.649532);
	// Define Marker
	InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Chicago</div><BR><div><div class=\"IWImage\"><img src=\"/images/map/Homeinstead.gif\" alt=\"Home Instead Senior Care\" title=\"Home Instead Senior Care\" align=\"left\" valign=\"top\" /></div><div class=\"IWContent\"><span>Chicago</span><BR>4736 N. Marine Drive<br />Chicago, IL 60640<BR>Phone: <strong><span id='dspPh2'>(773) 942-2608</span></strong><BR><div class=\"cta_purple\"><a title=\"Request Home Care\" href=\"http://www.homeinstead.com/552/Lists/ServiceInquiry/EntryForm08.aspx\">Request Home Care</a></div><div class=\"cta_green\"><a title=\"Get a CAREGiver Job\" href=\"http://www.homeinstead.com/552/becomeacaregiver/default.aspx\">Get a CAREGiver Job</a></div></div></div>";
	iconbig.image = "/images/map/marker1.png";
	marker = createMarker(point, InfoHTML, iconbig);
	map.addOverlay(marker);
	GroupChicago[2] = new Array(marker, "Chicago", InfoHTML, point);
	
	// Chicago 3
	point = new GLatLng(41.837397,-87.623248);
	// Define Marker
	InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Chicago</div><BR><div><div class=\"IWImage\"><img src=\"/images/map/Homeinstead.gif\" alt=\"Home Instead Senior Care\" title=\"Home Instead Senior Care\" align=\"left\" valign=\"top\" /></div><div class=\"IWContent\"><span>Chicago</span><BR>3151 S. Michigan Avenue<br />Chicago, IL 60616<BR>Phone: <strong><span id='dspPh3'>(312) 361-8325</span></strong><BR><div class=\"cta_purple\"><a title=\"Request Home Care\" href=\"http://www.homeinstead.com/556/Lists/ServiceInquiry/EntryForm08.aspx\">Request Home Care</a></div><div class=\"cta_green\"><a title=\"Get a CAREGiver Job\" href=\"http://www.homeinstead.com/556/becomeacaregiver/default.aspx\">Get a CAREGiver Job</a></div></div></div>";
	iconbig.image = "/images/map/marker1.png";
	marker = createMarker(point, InfoHTML, iconbig);
	map.addOverlay(marker);
	GroupChicago[3] = new Array(marker, "Chicago", InfoHTML, point);

	// Elk Grove Village
	point = new GLatLng(42.027917,-87.982474);
	// Define Marker
	InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Elk Grove Village</div><BR><div><div class=\"IWImage\"><img src=\"/images/map/Homeinstead.gif\" alt=\"Home Instead Senior Care\" title=\"Home Instead Senior Care\" align=\"left\" valign=\"top\" /></div><div class=\"IWContent\"><span>Elk Grove Village</span><BR>450 East Higgins Road, Suite 202<br />Elk Grove Village, IL 60007 <BR>Phone: <strong><span id='dspPh4'>(847) 871-0954</span></strong><BR><div class=\"cta_purple\"><a title=\"Request Home Care\" href=\"http://www.homeinstead.com/205/Lists/ServiceInquiry/EntryForm08.aspx\">Request Home Care</a></div><div class=\"cta_green\"><a title=\"Get a CAREGiver Job\" href=\"http://www.homeinstead.com/205/becomeacaregiver/default.aspx\">Get a CAREGiver Job</a></div></div></div>";
	iconbig.image = "/images/map/marker1.png";
	marker = createMarker(point, InfoHTML, iconbig);
	map.addOverlay(marker);
	GroupChicago[4] = new Array(marker, "Elk Grove Village", InfoHTML, point);	
		
	// Frankfort
	point = new GLatLng(41.534315,-87.790554);
	// Define Marker
	InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Frankfort</div><BR><div><div class=\"IWImage\"><img src=\"/images/map/Homeinstead.gif\" alt=\"Home Instead Senior Care\" title=\"Home Instead Senior Care\" align=\"left\" valign=\"top\" /></div><div class=\"IWContent\"><span>Frankfort</span><BR>19550 S. Harlem, Suite 1<BR>Frankfort, IL 60423 <BR>Phone: <strong><span id='dspPh5'>(815) 806-0707</span></strong><BR><div class=\"cta_purple\"><a title=\"Request Home Care\" href=\"http://www.homeinstead.com/542/Lists/ServiceInquiry/EntryForm08.aspx\">Request Home Care</a></div><div class=\"cta_green\"><a title=\"Get a CAREGiver Job\" href=\"http://www.homeinstead.com/542/becomeacaregiver/default.aspx\">Get a CAREGiver Job</a></div></div></div>";
	iconbig.image = "/images/map/marker1.png";
	marker = createMarker(point, InfoHTML, iconbig);
	map.addOverlay(marker);
	GroupChicago[5] = new Array(marker, "Frankfort", InfoHTML, point);

	// Grayslake
	point = new GLatLng(42.344945,-88.024224);
	// Define Marker
	InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Grayslake</div><BR><div><div class=\"IWImage\"><img src=\"/images/map/Homeinstead.gif\" alt=\"Home Instead Senior Care\" title=\"Home Instead Senior Care\" align=\"left\" valign=\"top\" /></div><div class=\"IWContent\"><span>Grayslake</span><BR>100 N. Atkinson Road, 203<BR>Grayslake, IL 60030 <BR>Phone: <strong><span id='dspPh6'>(847) 752-6400</span></strong><BR><div class=\"cta_purple\"><a title=\"Request Home Care\" href=\"http://www.homeinstead.com/108/Lists/ServiceInquiry/EntryForm08.aspx\">Request Home Care</a></div><div class=\"cta_green\"><a title=\"Get a CAREGiver Job\" href=\"http://www.homeinstead.com/108/becomeacaregiver/default.aspx\">Get a CAREGiver Job</a></div></div></div>";
	iconbig.image = "/images/map/marker1.png";
	marker = createMarker(point, InfoHTML, iconbig);
	map.addOverlay(marker);
	GroupChicago[6] = new Array(marker, "Grayslake", InfoHTML, point);	
	
	// LaGrange
	point = new GLatLng(41.79022,-87.874559);
	// Define Marker
	InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">LaGrange</div><BR><div><div class=\"IWImage\"><img src=\"/images/map/Homeinstead.gif\" alt=\"Home Instead Senior Care\" title=\"Home Instead Senior Care\" align=\"left\" valign=\"top\" /></div><div class=\"IWContent\"><span>LaGrange</span><BR>475 W. 55th Street, Suite 105<BR>LaGrange, IL 60525<BR>Phone: <strong><span id='dspPh7'>(708) 813-5311</span></strong><BR><div class=\"cta_purple\"><a title=\"Request Home Care\" href=\"http://www.homeinstead.com/426/Lists/ServiceInquiry/EntryForm08.aspx\">Request Home Care</a></div><div class=\"cta_green\"><a title=\"Get a CAREGiver Job\" href=\"http://www.homeinstead.com/426/becomeacaregiver/default.aspx\">Get a CAREGiver Job</a></div></div></div>";
	iconbig.image = "/images/map/marker1.png";
	marker = createMarker(point, InfoHTML, iconbig);
	map.addOverlay(marker);
	GroupChicago[7] = new Array(marker, "LaGrange", InfoHTML, point);	
		
	// Lombard
	point = new GLatLng(41.845345,-88.016622);
	// Define Marker
	InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Lombard</div><BR><div><div class=\"IWImage\"><img src=\"/images/map/Homeinstead.gif\" alt=\"Home Instead Senior Care\" title=\"Home Instead Senior Care\" align=\"left\" valign=\"top\" /></div><div class=\"IWContent\"><span>Lombard</span><BR>2200 South Main Street, Suite 209<BR>Lombard, IL 60148<BR>Phone: <strong><span id='dspPh8'>(630) 749-4611</span></strong><BR><div class=\"cta_purple\"><a title=\"Request Home Care\" href=\"http://www.homeinstead.com/145/Lists/ServiceInquiry/EntryForm08.aspx\">Request Home Care</a></div><div class=\"cta_green\"><a title=\"Get a CAREGiver Job\" href=\"http://www.homeinstead.com/145/becomeacaregiver/default.aspx\">Get a CAREGiver Job</a></div></div></div>";
	iconbig.image = "/images/map/marker1.png";
	marker = createMarker(point, InfoHTML, iconbig);
	map.addOverlay(marker);
	GroupChicago[8] = new Array(marker, "Lombard", InfoHTML, point);	
	
	// Naperville
	point = new GLatLng(41.785719,-88.13967);
	// Define Marker
	InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Naperville</div><BR><div><div class=\"IWImage\"><img src=\"/images/map/Homeinstead.gif\" alt=\"Home Instead Senior Care\" title=\"Home Instead Senior Care\" align=\"left\" valign=\"top\" /></div><div class=\"IWContent\"><span>Naperville</span><BR>500 East Ogden Avenue, Suite 204<BR>Naperville, IL 60563 <BR>Phone: <strong><span id='dspPh9'>(630) 848-9300</span></strong><BR><div class=\"cta_purple\"><a title=\"Request Home Care\" href=\"http://www.homeinstead.com/402/Lists/ServiceInquiry/EntryForm08.aspx\">Request Home Care</a></div><div class=\"cta_green\"><a title=\"Get a CAREGiver Job\" href=\"http://www.homeinstead.com/402/becomeacaregiver/default.aspx\">Get a CAREGiver Job</a></div></div></div>";
	iconbig.image = "/images/map/marker1.png";
	marker = createMarker(point, InfoHTML, iconbig);
	map.addOverlay(marker);
	GroupChicago[9] = new Array(marker, "Naperville", InfoHTML, point);	
	
	// Northbrook
	point = new GLatLng(42.13849,-87.855969);
	// Define Marker
	InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Northbrook</div><BR><div><div class=\"IWImage\"><img src=\"/images/map/Homeinstead.gif\" alt=\"Home Instead Senior Care\" title=\"Home Instead Senior Care\" align=\"left\" valign=\"top\" /></div><div class=\"IWContent\"><span>Northbrook</span><BR>3100 Dundee Road, Suite 902<BR>Northbrook, IL 60062<BR>Phone: <strong><span id='dspPh10'>(847) 897-2211</span></strong><BR><div class=\"cta_purple\"><a title=\"Request Home Care\" href=\"http://www.homeinstead.com/344/Lists/ServiceInquiry/EntryForm08.aspx\">Request Home Care</a></div><div class=\"cta_green\"><a title=\"Get a CAREGiver Job\" href=\"http://www.homeinstead.com/344/becomeacaregiver/default.aspx\">Get a CAREGiver Job</a></div></div></div>";
	iconbig.image = "/images/map/marker1.png";
	marker = createMarker(point, InfoHTML, iconbig);
	map.addOverlay(marker);
	GroupChicago[10] = new Array(marker, "Northbrook", InfoHTML, point);
	
	// Oak Park
	point = new GLatLng(41.895403,-87.789613);
	// Define Marker
	InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Oak Park</div><BR><div><div class=\"IWImage\"><img src=\"/images/map/Homeinstead.gif\" alt=\"Home Instead Senior Care\" title=\"Home Instead Senior Care\" align=\"left\" valign=\"top\" /></div><div class=\"IWContent\"><span>Oak Park</span><BR>6901 W. North Avenue, Suite 1F<BR>Oak Park, IL 60302<BR>Phone: <strong><span id='dspPh11'>(708) 689-4944</span></strong><BR><div class=\"cta_purple\"><a title=\"Request Home Care\" href=\"http://www.homeinstead.com/421/Lists/ServiceInquiry/EntryForm08.aspx\">Request Home Care</a></div><div class=\"cta_green\"><a title=\"Get a CAREGiver Job\" href=\"http://www.homeinstead.com/421/becomeacaregiver/default.aspx\">Get a CAREGiver Job</a></div></div></div>";
	iconbig.image = "/images/map/marker1.png";
	marker = createMarker(point, InfoHTML, iconbig);
	map.addOverlay(marker);
	GroupChicago[11] = new Array(marker, "Oak Park", InfoHTML, point);	

	// Palos Heights
	point = new GLatLng(41.665994,-87.7967);
	// Define Marker
	InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Palos Heights</div><BR><div><div class=\"IWImage\"><img src=\"/images/map/Homeinstead.gif\" alt=\"Home Instead Senior Care\" title=\"Home Instead Senior Care\" align=\"left\" valign=\"top\" /></div><div class=\"IWContent\"><span>Palos Heights</span><BR>12400 S. Harlem Avenue, Suite 201<BR>Palos Heights, IL 60463<BR>Phone: <strong><span id='dspPh12'>(708) 761-6064</span></strong><BR><div class=\"cta_purple\"><a title=\"Request Home Care\" href=\"http://www.homeinstead.com/340/Lists/ServiceInquiry/EntryForm08.aspx\">Request Home Care</a></div><div class=\"cta_green\"><a title=\"Get a CAREGiver Job\" href=\"http://www.homeinstead.com/340/becomeacaregiver/default.aspx\">Get a CAREGiver Job</a></div></div></div>";
	iconbig.image = "/images/map/marker1.png";
	marker = createMarker(point, InfoHTML, iconbig);
	map.addOverlay(marker);
	GroupChicago[12] = new Array(marker, "Palos Heights", InfoHTML, point);		
	
	// Park Ridge
	point = new GLatLng(41.987706,-87.844982);
	// Define Marker
	InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Park Ridge</div><BR><div><div class=\"IWImage\"><img src=\"/images/map/Homeinstead.gif\" alt=\"Home Instead Senior Care\" title=\"Home Instead Senior Care\" align=\"left\" valign=\"top\" /></div><div class=\"IWContent\"><span>Park Ridge</span><BR>1410 W. Higgins Road, Suite 204<BR>Park Ridge, IL 60068<BR>Phone: <strong><span id='dspPh13'>(847) 232-3355</span></strong><BR><div class=\"cta_purple\"><a title=\"Request Home Care\" href=\"http://www.homeinstead.com/420/Lists/ServiceInquiry/EntryForm08.aspx\">Request Home Care</a></div><div class=\"cta_green\"><a title=\"Get a CAREGiver Job\" href=\"http://www.homeinstead.com/420/becomeacaregiver/default.aspx\">Get a CAREGiver Job</a></div></div></div>";
	iconbig.image = "/images/map/marker1.png";
	marker = createMarker(point, InfoHTML, iconbig);
	map.addOverlay(marker);
	GroupChicago[13] = new Array(marker, "Park Ridge", InfoHTML, point);	
	
	// Rockford
	point = new GLatLng(42.252677,-89.05458);
	// Define Marker
	InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Rockford</div><BR><div><div class=\"IWImage\"><img src=\"/images/map/Homeinstead.gif\" alt=\"Home Instead Senior Care\" title=\"Home Instead Senior Care\" align=\"left\" valign=\"top\" /></div><div class=\"IWContent\"><span>Rockford</span><BR>2606 Broadway, Suite 3B<BR>Rockford, IL 61108<BR>Phone: <strong><span id='dspPh14'>(815) 977-8331</span></strong><BR><div class=\"cta_purple\"><a title=\"Request Home Care\" href=\"http://www.homeinstead.com/471/Lists/ServiceInquiry/EntryForm08.aspx\">Request Home Care</a></div><div class=\"cta_green\"><a title=\"Get a CAREGiver Job\" href=\"http://www.homeinstead.com/471/becomeacaregiver/default.aspx\">Get a CAREGiver Job</a></div></div></div>";
	iconbig.image = "/images/map/marker1.png";
	marker = createMarker(point, InfoHTML, iconbig);
	map.addOverlay(marker);
	GroupChicago[14] = new Array(marker, "Rockford", InfoHTML, point);	
	
	// St. Charles
	point = new GLatLng(41.913711,-88.312312);
	// Define Marker
	InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">St. Charles</div><BR><div><div class=\"IWImage\"><img src=\"/images/map/Homeinstead.gif\" alt=\"Home Instead Senior Care\" title=\"Home Instead Senior Care\" align=\"left\" valign=\"top\" /></div><div class=\"IWContent\"><span>St. Charles</span><BR>12 S. 1st Avenue, Suite H<BR>St. Charles, IL 60174<BR>Phone: <strong><span id='dspPh15'>(630) 338-0188</span></strong><BR><div class=\"cta_purple\"><a title=\"Request Home Care\" href=\"http://www.homeinstead.com/458/Lists/ServiceInquiry/EntryForm08.aspx\">Request Home Care</a></div><div class=\"cta_green\"><a title=\"Get a CAREGiver Job\" href=\"http://www.homeinstead.com/458/becomeacaregiver/default.aspx\">Get a CAREGiver Job</a></div></div></div>";
	iconbig.image = "/images/map/marker1.png";
	marker = createMarker(point, InfoHTML, iconbig);
	map.addOverlay(marker);
	GroupChicago[15] = new Array(marker, "St. Charles", InfoHTML, point);		
	
	// Skokie
	point = new GLatLng(42.040931,-87.751081);
	// Define Marker
	InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Skokie</div><BR><div><div class=\"IWImage\"><img src=\"/images/map/Homeinstead.gif\" alt=\"Home Instead Senior Care\" title=\"Home Instead Senior Care\" align=\"left\" valign=\"top\" /></div><div class=\"IWContent\"><span>Skokie</span><BR>4948 W. Dempster Street, Suite 200<BR>Skokie, IL 60077<BR>Phone: <strong><span id='dspPh16'>(847) 213-9662</span></strong><BR><div class=\"cta_purple\"><a title=\"Request Home Care\" href=\"http://www.homeinstead.com/383/Lists/ServiceInquiry/EntryForm08.aspx\">Request Home Care</a></div><div class=\"cta_green\"><a title=\"Get a CAREGiver Job\" href=\"http://www.homeinstead.com/383/becomeacaregiver/default.aspx\">Get a CAREGiver Job</a></div></div></div>";
	iconbig.image = "/images/map/marker1.png";
	marker = createMarker(point, InfoHTML, iconbig);
	map.addOverlay(marker);
	GroupChicago[16] = new Array(marker, "Skokie", InfoHTML, point);													
}

// Add this function to the array of functions
var GroupChicagoIndex = 0;

if (allLocations.length > GroupChicagoIndex)
{ 
    GroupChicagoIndex = allLocations.length;
	alert(GroupChicagoIndex);
}	

allLocations[GroupChicagoIndex] = AddGroupChicago;

onLoad();

window.onUnload = GUnload;

function swapPhone() { 
 for (phid=0; phid < 17; phid++) {
  if (document.getElementById('dspPh'+phid)) {
    document.getElementById('dspPh'+phid).innerHTML = document.getElementById('ph'+phid).innerHTML;
  }
 }
}