﻿
    
			var locations = [
        
        			{
        			 	address1: '54 Monument Circle', 
        			 	address2: 'Suite 330',
        			 	city: 'Indianapolis',
        			 	state: 'IN',
        			 	zip: '46204',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '39.774822', 
        			 	lng: '-86.158971',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '5253 36th Street', 
        			 	address2: '',
        			 	city: 'Grand Rapids',
        			 	state: 'MI',
        			 	zip: '49503',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '42.963193', 
        			 	lng: '-85.659686',
        			 	img: 2
        			 },

        	
        			{
        			 	address1: '8075 Creekside Drive', 
        			 	address2: 'Suite 150',
        			 	city: 'Portage',
        			 	state: 'MI',
        			 	zip: '49024',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '42.201972', 
        			 	lng: '-85.592387',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '3379 Peachtree Road NE', 
        			 	address2: 'Suite 925',
        			 	city: 'Atlanta',
        			 	state: 'GA',
        			 	zip: '30326',  
        			 	phone: '404/364-4660',  
        			 	email: "lesliebailey@technisource.com",  
        			 	lat: '33.852137', 
        			 	lng: '-84.360463',
        			 	img: 2
        			 },
      
        	
        			{
        			 	address1: '2252 Killearn Center Boulevard', 
        			 	address2: 'Suite 2B',
        			 	city: 'Tallahassee',
        			 	state: 'FL',
        			 	zip: '32309',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '30.597156', 
        			 	lng: '-84.041559',
        			 	img: 2
        			 },
      
        	
        			{
        			 	address1: '100 East Big Beaver', 
        			 	address2: 'Suite 1000',
        			 	city: 'Troy',
        			 	state: 'MI',
        			 	zip: '48083',  
        			 	phone: '248/689-5055',  
        			 	email: "",  
        			 	lat: '42.559552', 
        			 	lng: '-83.123208',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '1103 Schrock Road', 
        			 	address2: 'Suite 103',
        			 	city: 'Columbus',
        			 	state: 'OH',
        			 	zip: '43229',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '40.083167', 
        			 	lng: '-82.975693',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '3111 W MLK Boulevard', 
        			 	address2: 'Suite 350',
        			 	city: 'Tampa',
        			 	state: 'FL',
        			 	zip: '33607',  
        			 	phone: '813/864-1111',  
        			 	email: "",  
        			 	lat: '27.965627', 
        			 	lng: '-82.510542',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '8657 Baypine Road', 
        			 	address2: 'Suite 110, Building 5',
        			 	city: 'Jacksonville',
        			 	state: 'FL',
        			 	zip: '32256',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '30.191339', 
        			 	lng: '-81.494560',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '101 Southhall Lane', 
        			 	address2: 'Suite 150',
        			 	city: 'Maitland',
        			 	state: 'FL',
        			 	zip: '32751',  
        			 	phone: '407/647-8117',  
        			 	email: "",  
        			 	lat: '28.625621', 
        			 	lng: '-81.355905',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '6000 Fairview Road', 
        			 	address2: 'Suite 550',
        			 	city: 'Charlotte',
        			 	state: 'NC',
        			 	zip: '28210',  
        			 	phone: '704/643-7822',  
        			 	email: "",  
        			 	lat: '35.133058', 
        			 	lng: '-80.859674',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '100 W Cypress Creek Road', 
        			 	address2: 'Suite 980',
        			 	city: 'Fort Lauderdale',
        			 	state: 'FL',
        			 	zip: '33309',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '26.182764', 
        			 	lng: '-80.175692',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '5001 South Miami Boulevard', 
        			 	address2: 'Suite 320',
        			 	city: 'Durham',
        			 	state: 'NC',
        			 	zip: '27703',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '35.973771', 
        			 	lng: '-78.838515',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '4198 Cox Road', 
        			 	address2: 'Suite 113',
        			 	city: 'GLEN ALLEN',
        			 	state: 'VA',
        			 	zip: '23060',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '37.659630', 
        			 	lng: '-77.529243',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '530 Willowbrook Office Park', 
        			 	address2: '',
        			 	city: 'Fairport',
        			 	state: 'NY',
        			 	zip: '14450',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '43.087492', 
        			 	lng: '-77.432058',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '1651 Old Meadow Road', 
        			 	address2: 'Suite 200',
        			 	city: 'McLean',
        			 	state: 'VA',
        			 	zip: '22102',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '38.955820', 
        			 	lng: '-77.234785',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '120 East Baltimore Street', 
        			 	address2: 'Suite 2220',
        			 	city: 'Baltimore',
        			 	state: 'MD',
        			 	zip: '21202',  
        			 	phone: '410/230-0023',  
        			 	email: "anthonypetrelli@technisource.com",  
        			 	lat: '39.295835', 
        			 	lng: '-76.609089',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '1007 N Orange Street', 
        			 	address2: 'Suite 220',
        			 	city: 'Wilmington',
        			 	state: 'DE',
        			 	zip: '19801',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '39.736602', 
        			 	lng: '-75.548998',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '1150 1st  Avenue', 
        			 	address2: 'Suite 820, Park View Tower',
        			 	city: 'King of Prussia',
        			 	state: 'PA',
        			 	zip: '19406',  
        			 	phone: '610/337-0923',  
        			 	email: "",  
        			 	lat: '40.115940', 
        			 	lng: '-75.373740',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '1140 US Highway 22', 
        			 	address2: 'Suite 310',
        			 	city: 'Bridgewater',
        			 	state: 'NJ',
        			 	zip: '08807',  
        			 	phone: '908/526-7606',  
        			 	email: "",  
        			 	lat: '40.593164', 
        			 	lng: '-74.619513',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '100 Wood Avenue South', 
        			 	address2: 'Suite 208',
        			 	city: 'Iselin',
        			 	state: 'NJ',
        			 	zip: '08830',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '40.571397', 
        			 	lng: '-74.314012',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: 'Two Penn Plaza', 
        			 	address2: 'Suite 620',
        			 	city: 'New York',
        			 	state: 'NY',
        			 	zip: '10123',  
        			 	phone: '212/480-2600',  
        			 	email: "",  
        			 	lat: '40.750161', 
        			 	lng: '-74.000838',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '1400 Old Country Road', 
        			 	address2: 'Suite 411',
        			 	city: 'Westbury',
        			 	state: 'NY',
        			 	zip: '11590',  
        			 	phone: '516/876-9700',  
        			 	email: "",  
        			 	lat: '40.757311', 
        			 	lng: '-73.577498',
        			 	img: 2
        			 },

        			{
        			 	address1: '100 First Stamford Place', 
        			 	address2: 'Suite 100',
        			 	city: 'Stamford',
        			 	state: 'CT',
        			 	zip: '06902',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '41.054668', 
        			 	lng: '-73.543191',
        			 	img: 2
        			 },

        			{
        			 	address1: '800 Boylston Street', 
        			 	address2: 'Suite 1425',
        			 	city: 'Boston',
        			 	state: 'MA',
        			 	zip: '02199',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '42.345258', 
        			 	lng: '-71.078871',
        			 	img: 2
        			 },
        			 
        			{
        			 	address1: '9311 San Pedro Avenue', 
        			 	address2: 'Suite 725',
        			 	city: 'San Antonio',
        			 	state: 'TX',
        			 	zip: '78216',  
        			 	phone: '210/342-1220',  
        			 	email: "",  
        			 	lat: '29.533684', 
        			 	lng: '-98.489444',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '8310 Capital of Texas Highway', 
        			 	address2: 'Suite 220',
        			 	city: 'Austin',
        			 	state: 'TX',
        			 	zip: '78731',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '30.345829', 
        			 	lng: '-97.765628',
        			 	img: 2
        			 },

        			{
        			 	address1: '4516 Seton Center Pkwy', 
        			 	address2: 'Suite 135',
        			 	city: 'Austin',
        			 	state: 'TX',
        			 	zip: '78759',  
        			 	phone: '512/338-9675',  
        			 	email: "",  
        			 	lat: '30.397200', 
        			 	lng: '-97.751760',
        			 	img: 2
        			 },

        			{
        			 	address1: '3011 Internet Boulevard', 
        			 	address2: 'Suite 300',
        			 	city: 'Frisco',
        			 	state: 'TX',
        			 	zip: '75034',  
        			 	phone: '972/980-6200',  
        			 	email: "AnneKane@technisource.com",  
        			 	lat: '33.153776', 
        			 	lng: '-96.848685',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '702 North 129th Street', 
        			 	address2: 'Suite 111',
        			 	city: 'Omaha',
        			 	state: 'NE',
        			 	zip: '68154',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '41.261363', 
        			 	lng: '-96.115709',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '10111 Richmond Avenue', 
        			 	address2: 'Suite 100',
        			 	city: 'Houston',
        			 	state: 'TX',
        			 	zip: '77042',  
        			 	phone: '713/784-4226',  
        			 	email: "",  
        			 	lat: '29.746724', 
        			 	lng: '-95.559671',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '11300 Tomahawk Creek Parkway', 
        			 	address2: 'Pinnacle One',
        			 	city: 'Leawood',
        			 	state: 'KS',
        			 	zip: '66211',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '38.924984', 
        			 	lng: '-94.642170',
        			 	img: 2
        			 },
        			 
        			{
        			 	address1: '7755 Office Plaza Drive North', 
        			 	address2: 'Suite 165',
        			 	city: 'West Des Moines',
        			 	state: 'IA',
        			 	zip: '50266',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '41.586600', 
        			 	lng: '-93.765743',
        			 	img: 2
        			 },
        			 
        			{
        			 	address1: '3601 Minnesota Drive', 
        			 	address2: 'Suite 680',
        			 	city: 'Bloomington',
        			 	state: 'MN',
        			 	zip: '55435',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '44.874000', 
        			 	lng: '-93.343860',
        			 	img: 2
        			 },
 
        			{
        			 	address1: '4800 North River Blvd NE', 
        			 	address2: 'Suite 200',
        			 	city: 'Cedar Rapids',
        			 	state: 'IA',
        			 	zip: '52411',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '42.040798', 
        			 	lng: '-91.723138',
        			 	img: 2
        			 },

        			{
        			 	address1: '55 West Port Plaza', 
        			 	address2: 'Suite 175',
        			 	city: 'Saint Louis',
        			 	state: 'MO',
        			 	zip: '63146',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '38.695246', 
        			 	lng: '-90.458647',
        			 	img: 2
        			 },

        			{
        			 	address1: '328 Susan Drive', 
        			 	address2: 'Suite 100',
        			 	city: 'Normal',
        			 	state: 'IL',
        			 	zip: '61761',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '40.510903', 
        			 	lng: '-88.987912',
        			 	img: 2
        			 },

        			{
        			 	address1: 'N14 W23833 Stone Ridge Drive', 
        			 	address2: 'Suite 360',
        			 	city: 'Waukesha',
        			 	state: 'WI',
        			 	zip: '53188',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '43.016203', 
        			 	lng: '-88.267858',
        			 	img: 2
        			 },

        			{
        			 	address1: '1 Pierce Place', 
        			 	address2: 'Suite 550W',
        			 	city: 'Itasca',
        			 	state: 'IL',
        			 	zip: '60143',  
        			 	phone: '630/919-2999',  
        			 	email: "",  
        			 	lat: '41.973492', 
        			 	lng: '-88.015802',
        			 	img: 2
        			 },

        			{
        			 	address1: '1525 Perimeter Corporate Park', 
        			 	address2: 'Suite 115',
        			 	city: 'Huntsville',
        			 	state: 'AL',
        			 	zip: '35806',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '34.757300', 
        			 	lng: '-86.678606'
        			 },

        			{
        			 	address1: '4343 N Scottsdale Road', 
        			 	address2: 'Suite 365',
        			 	city: 'Scottsdale',
        			 	state: 'AZ',
        			 	zip: '85251',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '33.493889', 
        			 	lng: '-111.922875',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '6501 East Belleview Avenue', 
        			 	address2: 'Suite 220',
        			 	city: 'Englewood',
        			 	state: 'CO',
        			 	zip: '80111',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '39.612706', 
        			 	lng: '-104.883398',
        			 	img: 2
        			 },

        			{
        			 	address1: '475 Sansome Street', 
        			 	address2: 'Suite 520',
        			 	city: 'San Francisco',
        			 	state: 'CA',
        			 	zip: '94111',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '37.798010', 
        			 	lng: '-122.396965',
        			 	img: 2
        			 },

        			{
        			 	address1: '3825 Hopyard Road', 
        			 	address2: 'Suite 270',
        			 	city: 'Pleasanton',
        			 	state: 'CA',
        			 	zip: '94588',  
        			 	phone: '888/736-7534',  
        			 	email: "",  
        			 	lat: '37.687222', 
        			 	lng: '-121.894449',
        			 	img: 2
        			 },

        			{
        			 	address1: '777 Campus Commons Road', 
        			 	address2: 'Suite 130',
        			 	city: 'Sacramento',
        			 	state: 'CA',
        			 	zip: '95825',  
        			 	phone: '916/561-5755',  
        			 	email: "",  
        			 	lat: '38.592979', 
        			 	lng: '-121.403108',
        			 	img: 2
        			 },
        	
        			{
        			 	address1: '111 Universal Hollywood Drive', 
        			 	address2: 'Suite 1740',
        			 	city: 'Universal City',
        			 	state: 'CA',
        			 	zip: '91608',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '34.140376', 
        			 	lng: '-118.354334',
        			 	img: 2
        			 },
 
        			{
        			 	address1: '970 West 190th Street', 
        			 	address2: 'Suite 425',
        			 	city: 'Torrance',
        			 	state: 'CA',
        			 	zip: '90502',  
        			 	phone: '310/327-3558',  
        			 	email: "",  
        			 	lat: '33.837971', 
        			 	lng: '-118.293025',
        			 	img: 2
        			 },

        			{
        			 	address1: '114 Pacifica Court', 
        			 	address2: 'Suite 210',
        			 	city: 'Irvine',
        			 	state: 'CA',
        			 	zip: '92618',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '33.707390', 
        			 	lng: '-117.705377',
        			 	img: 2
        			 },

        			{
        			 	address1: '4660 La Jolla Village Drive', 
        			 	address2: 'Suite 910',
        			 	city: 'San Diego',
        			 	state: 'CA',
        			 	zip: '92122',  
        			 	phone: '858/458-9200',  
        			 	email: "",  
        			 	lat: '32.854723', 
        			 	lng: '-117.209215',
        			 	img: 2
        			 },

        			{
        			 	address1: '925 North Point Parkway', 
        			 	address2: 'Suite 110',
        			 	city: 'Alpharetta',
        			 	state: 'GA',
        			 	zip: '30005',  
        			 	phone: '678/867-3896',  
        			 	email: "jeffclement@technisource.com",  
        			 	lat: '34.080610', 
        			 	lng: '-84.200785',
        			 	img: 0
        			 },
        			 
        			 {
        			 	address1: '5151 Beltline Road', 
        			 	address2: 'Suite 455',
        			 	city: 'Dallas',
        			 	state: 'TX',
        			 	zip: '75254',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '32.934482', 
        			 	lng: '-96.789320',
        			 	img: 0
        			 },
        			 
        			 {
        			 	address1: '5020 Richard Lane', 
        			 	address2: '',
        			 	city: 'Mechanicsburg',
        			 	state: 'PA',
        			 	zip: '17055',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '40.219237', 
        			 	lng: '-77.001047',
        			 	img: 0
        			 },
        			 
        			 {
        			 	address1: '11 South LaSalle Street', 
        			 	address2: 'Suite 1150',
        			 	city: 'Chicago',
        			 	state: 'IL',
        			 	zip: '60603',  
        			 	phone: '312/499-4300',  
        			 	email: "chrisfitzgerald@technisource.com",  
        			 	lat: '41.879623', 
        			 	lng: '-87.628479',
        			 	img: 0
        			 }, 
 
        			 {
        			 	address1: '', 
        			 	address2: '',
        			 	city: 'Chicago',
        			 	state: 'IL',
        			 	zip: '',  
        			 	phone: '',  
        			 	email: "", 
        			 	lat: '41.85', 
        			 	lng: '-87.65',
        			 	img: 1
        			 },
        			 
           			 {
        			 	address1: '', 
        			 	address2: '',
        			 	city: 'Washington D.C.',
        			 	state: '',
        			 	zip: '',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '38.8924', 
        			 	lng: '-77.0317',
        			 	img: 1
        			 },
        			 
        			 {
        			 	address1: '', 
        			 	address2: '',
        			 	city: 'Ft. Lauderdale',
        			 	state: 'FL',
        			 	zip: '',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '26.12194',
        			 	lng: '-80.14361',
        			 	img: 1
        			 },
        		    
        		     {
        			 	address1: '', 
        			 	address2: '',
        			 	city: 'Miami',
        			 	state: 'FL',
        			 	zip: '',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '25.7851',
        			 	lng: '-80.2016',
        			 	img: 1
        			 },

                    {
        			 	address1: '', 
        			 	address2: '',
        			 	city: 'Los Angeles',
        			 	state: 'California',
        			 	zip: '',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '34.0527',
        			 	lng: '-118.2349',
        			 	img: 1
        			 },
    
                     {
        			 	address1: '', 
        			 	address2: '',
        			 	city: 'Sacramento',
        			 	state: 'California',
        			 	zip: '',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '38.5868',
        			 	lng: '-121.4923',
        			 	img: 1
        			 },
        			 
        			 {
        			 	address1: '', 
        			 	address2: '',
        			 	city: 'London, United Kingdom',
        			 	state: '',
        			 	zip: '',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '51.5361',
        			 	lng: '-0.0879',
        			 	img: 1
        			 },
        			 
        			 {
        			 	address1: '', 
        			 	address2: '',
        			 	city: 'India',
        			 	state: '',
        			 	zip: '',  
        			 	phone: '',  
        			 	email: "",  
        			 	lat: '22.6748',
        			 	lng: '78.9258',
        			 	img: 1
        			 }
        ];
        
    var currentMarker = null;
    var IMAGES = [ "hub", "work", "branch"];
    var ICONS = [];
    var map = null;
    var mgr = null;
    
    function getMarkerIcon(i) {

      if (!ICONS[i]) {
        var icon = new GIcon();
        icon.image = "/images/GMap/" 
            + IMAGES[i] + ".png";
        icon.infoWindowAnchor = new GPoint(16, 0);
        
        if(i == 0 || i == 1)
        {
            icon.iconSize = new GSize(40,40);
            icon.iconAnchor = new GPoint(20, 20);
        }
        else
        {
            icon.iconSize = new GSize(16, 16);
            icon.iconAnchor = new GPoint(8, 8);
        }
        
        icon.shadow = "/images/GMap/" 
            + IMAGES[i] + "-shadow.png";
        icon.shadowSize = new GSize(59, 32);
        ICONS[i] = icon;
      }
      return ICONS[i];
    }
    
    function importanceOrder (marker,b) {
        return marker.importance;
    }
    
    function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"),
            { size: new GSize(841, 500) } );
        map.setCenter(new GLatLng(39.504,-97.207), 4);
        map.enableDoubleClickZoom();
        map.addControl(new GLargeMapControl());
 
 
        var mapControl = new GMapTypeControl();
        map.addControl(mapControl);
         
        geocoder = new GClientGeocoder();
    		
    		function createMarker(ind) {
    		
    			var business = locations[ind];

    			var marker = new GMarker(new GLatLng(locations[ind].lat, locations[ind].lng), { icon: getMarkerIcon(locations[ind].img), zIndexProcess:importanceOrder});    		
                marker.importance = 10 - locations[ind].img; 
    			
    			GEvent.addListener(marker, 'click', function() {
    			
  					 var address = locations[ind].address1 + ' ' + locations[ind].city + ', ' + locations[ind].state + ' ' + locations[ind].zip;
  					 marker.html = '<font size="2", face="Arial, Helvetica, sans-serif"><b>' + locations[ind].city + ', ' + locations[ind].state + '</b></font><br>' +
    				 			   '<font size="1", face="Arial, Helvetica, sans-serif">' + locations[ind].address1 + '<br>' + 
    				 			   locations[ind].city + ', ' + 
    				 			   locations[ind].state + ' ' + locations[ind].zip + '<br>' +
    				 			   //'Phone: ' + locations[ind].phone + '<br>' +
    				 			   //'<b>Contact: <a href=\'mailto:' + locations[ind].email + '\'>' + locations[ind].email + '</b></a><br><br>' +
    				 			   'Get directions: <a target="_blank" href=\'http://maps.google.com/maps?oi=map&f=d&z=13&daddr=' + address + '\'>to here</a>' +
    				 			   ' - <a target="_blank" href=\'http://maps.google.com/maps?oi=map&f=d&z=13&saddr=' + address + '\'>from here</a>' +
    				 			   '</font>';
    				 			   //map.setCenter(new GLatLng(locations[ind].lat, locations[ind].lng), 15);
  				
  				currentMarker = marker;
  				marker.openInfoWindowHtml(marker.html);});
  				return marker;
    		}
    
            for (var i = 0; i < locations.length; i++) {        	
				var marker = createMarker(i);
    			map.addOverlay(marker);    		
    	}	    		    	
      }     
    }
    
    
    ///////////////////////////////////////////////////////////////////////
    

