var map;
	  
function initializeMap()
  { 
    if (GBrowserIsCompatible())
	  { 
        map = new GMap2(document.getElementById("MapContainer")); 
        map.setCenter(new GLatLng(52.52218, -1.99930), 15); 
        map.setUIToDefault(); 
	  	//var point = new GLatLng(52.52218, -1.99930); // Head Office
        var HeadOffice = new GMarker(new GLatLng(52.52218, -1.99930))   
        GEvent.addListener(HeadOffice, 'click', function() {   
          HeadOffice.openInfoWindowHtml('<span style="font-size: x-small;"><strong>Head Office</strong><br>Sandwell Homes Limited<br>Dartmouth House<br>Sandwell Road<br>West Bromwich<br>B70 8TQ<br>Telephone: 0121 569 6000<br>Fax: 0121 569 6015<br>Email: customer_services@sandwellhomes.org.uk</span>');   
        });   
        map.addOverlay(HeadOffice);		
		
	   	//var point = new GLatLng(52.51003, -2.02222); //Roway Lane
        var OperationsCentre = new GMarker(new GLatLng(52.51003, -2.02222))   
        GEvent.addListener(OperationsCentre, 'click', function() {   
          OperationsCentre.openInfoWindowHtml('<span style="font-size: x-small;"><strong>Operations & Development Centre</strong><br>Roway Lane<br>Oldbury<br>B69 3ES<br>Telephone: 0121 569 6000<br>Fax: 0121 569 6404<br>E-mail: sandwell_repairs@sandwellhomes.org.uk</span>');
        });   
        map.addOverlay(OperationsCentre);		
		
	   	//var point = new GLatLng(52.542707, -2.061417); //Tipton Neighbourhood Office
        //map.addOverlay(new GMarker(point));
		
        var TiptonNeighbourhoodOffice = new GMarker(new GLatLng(52.542707, -2.061417))   
        GEvent.addListener(TiptonNeighbourhoodOffice, 'click', function() {   
          TiptonNeighbourhoodOffice.openInfoWindowHtml('<span style="font-size: x-small;"><strong>Princes End Neighbourhood Office</strong><br>High Street<br>Tipton<br>DY4 9JB<br>Telephone: 0121 569 6000<br>Fax: 0121 569 5248<br>Email:customer_services@sandwellhomes.org.uk</span>');
        });   
        map.addOverlay(TiptonNeighbourhoodOffice);		
		
	   	//var point = new GLatLng(52.480544, -1.974691); //Smethwick Neighbourhood Office
        //map.addOverlay(new GMarker(point)); 
        var SmethwickNeighbourhoodOffice = new GMarker(new GLatLng(52.480544, -1.974691))   
        GEvent.addListener(SmethwickNeighbourhoodOffice, 'click', function() {   
          SmethwickNeighbourhoodOffice.openInfoWindowHtml('<span style="font-size: x-small;"><strong>Bearwood Neighbourhood Office</strong><br>Reginald Road<br>Smethwick<br>B67 5AQ<br>Telephone: 0121 569 6000<br>Fax: 0121 569 5235<br>Email: customer_services@sandwellhomes.org.uk</span>');
        });   
        map.addOverlay(SmethwickNeighbourhoodOffice);		
		
	   	//var point = new GLatLng(52.472086, -2.085798); //Rowley Regis Neighbourhood Office
        //map.addOverlay(new GMarker(point)); 
        var RowleyRegisNeighbourhoodOffice = new GMarker(new GLatLng(52.472086, -2.085798))   
        GEvent.addListener(RowleyRegisNeighbourhoodOffice, 'click', function() {   
          RowleyRegisNeighbourhoodOffice.openInfoWindowHtml('<span style="font-size: x-small;"><strong>Cradley Heath Neighbourhood Office</strong><br>St Annes Road<br>Cradley Heath<br>B64 5BS<br>Telephone: 0121 569 6000<br>Fax: 0121 569 5158<br>Email:customer_services@sandwellhomes.org.uk</span>');
        });   
        map.addOverlay(RowleyRegisNeighbourhoodOffice);		
		
	   	//var point = new GLatLng(52.537260, -2.063967); //Tipton Estate Office
        //map.addOverlay(new GMarker(point)); 
        var TiptonEstateOffice = new GMarker(new GLatLng(52.537260, -2.063967))   
        GEvent.addListener(TiptonEstateOffice, 'click', function() {   
          TiptonEstateOffice.openInfoWindowHtml('<span style="font-size: x-small;"><strong>Tibbington Estate Office</strong><br>51-53 Laburnum Road<br>Tipton<br>West Midlands<br>DY4 9QR<br>Telephone: 0121 569 6000<br>Fax: 0121 569 6978<br>Email: customer_services@sandwellhomes.org.uk</span>');
        });   
        map.addOverlay(TiptonEstateOffice);		
		
	   	//var point = new GLatLng(52.507863, -1.987109); //West Bromwich Estate Office
        //map.addOverlay(new GMarker(point)); 
        var WestBromwichEstateOffice = new GMarker(new GLatLng(52.507863, -1.987109))   
        GEvent.addListener(WestBromwichEstateOffice, 'click', function() {   
          WestBromwichEstateOffice.openInfoWindowHtml('<span style="font-size: x-small;"><strong>Kenrick Park Estate Office</strong><br>Greenford House<br>Maria Street<br>West Bromwich<br>West Midlands<br>B70 6DX<br>Telephone: 0121 569 6929<br>Fax: 0121 569 6933<br>Email: customer_services@sandwellhomes.org.uk </span>');
        });   
        map.addOverlay(WestBromwichEstateOffice);		
		
	   	//var point = new GLatLng(52.471916, -2.065676); //Cradley Heath Estate Office
        //map.addOverlay(new GMarker(point)); 
        var CradleyHeathEstateOffice = new GMarker(new GLatLng(52.471916, -2.065676))   
        GEvent.addListener(CradleyHeathEstateOffice, 'click', function() {   
          CradleyHeathEstateOffice.openInfoWindowHtml('<span style="font-size: x-small;"><strong>Riddins Mound Estate Office</strong><br>Applewood Grove<br>Cradley Heath<br>B64 6EW<br>Telephone: 0121 569 6000<br>Fax: 0121 569 6927<br>Email: customer_services@sandwellhomes.org.uk</span>');
        });   
        map.addOverlay(CradleyHeathEstateOffice);		
		
	   	//var point = new GLatLng(52.489787, -1.952608); //Smethwick Estate Office
        //map.addOverlay(new GMarker(point)); 
        var SmethwickEstateOffice = new GMarker(new GLatLng(52.489787, -1.952608))   
        GEvent.addListener(SmethwickEstateOffice, 'click', function() {   
          SmethwickEstateOffice.openInfoWindowHtml('<span style="font-size: x-small;"><strong>Cape Hill Estate Office</strong><br>Unett Street<br>Smethwick<br>B66 3SY<br>Telephone: 0121 569 6000<br>Fax: 0121 569 5255<br>Email: customer_services@sandwellhomes.org.uk</span>');
        });   
        map.addOverlay(SmethwickEstateOffice);		

	   	//var point = new GLatLng(52.504769, -2.039431); //Tividale Estate Office
        //map.addOverlay(new GMarker(point)); 
        var TividaleEstateOffice = new GMarker(new GLatLng(52.504769, -2.039431))   
        GEvent.addListener(TividaleEstateOffice, 'click', function() {   
          TividaleEstateOffice.openInfoWindowHtml('<span style="font-size: x-small;"><strong>Tividale & Oakham Estate Office</strong><br>49 / 50 Hilton Road<br>Tividale<br>B69 1JU<br>Telephone: 0121 569 6000<br>Fax: 0121 569 3703<br>Email: customer_services@sandwellhomes.org.uk</span>');
        });   
        map.addOverlay(TividaleEstateOffice);		
		
	   	//var point = new GLatLng(52.492492, -2.034477); //Oldbury Estate Office
        //map.addOverlay(new GMarker(point)); 
        var OldburyEstateOffice = new GMarker(new GLatLng(52.492492, -2.034477))   
        GEvent.addListener(OldburyEstateOffice, 'click', function() {   
          OldburyEstateOffice.openInfoWindowHtml('<span style="font-size: x-small;"><strong>Lion Farm Estate Office</strong></br>Hartlebury Road<br>Lion Farm Estate<br>Oldbury<br>B69 1EQ<br>Telephone: 0121 569 6000<br>Fax: 0121 569 6481<br>Email: customer_services@sandwellhomes.org.uk </span>');
        });   
        map.addOverlay(OldburyEstateOffice);		

	   	//var point = new GLatLng(52.527597, -2.031341); //Tipton Housing Service Centre
        //map.addOverlay(new GMarker(point)); 
        var TiptonHousingServiceCentre = new GMarker(new GLatLng(52.527597, -2.031341))   
        GEvent.addListener(TiptonHousingServiceCentre, 'click', function() {   
          TiptonHousingServiceCentre.openInfoWindowHtml('<span style="font-size: x-small;"><strong>Great Bridge Housing Service Centre</strong><br>Sheepwash Lane<br>Great Bridge<br>Tipton<br>DY4 7JF<br>Telephone: 0121 569 6000<br>Fax: 0121 569 5216<br>Email: customer_services@sandwellhomes.org.uk</span>');
        });   
        map.addOverlay(TiptonHousingServiceCentre);		
		
	   	//var point = new GLatLng(52.522012, -1.999571); //West Bromwich Housing Service Centre
        //map.addOverlay(new GMarker(point)); 
        var WestBromwichHousingServiceCentre = new GMarker(new GLatLng(52.522012, -1.999571))   
        GEvent.addListener(WestBromwichHousingServiceCentre, 'click', function() {   
          WestBromwichHousingServiceCentre.openInfoWindowHtml('<span style="font-size: x-small;"><strong>West Bromwich Housing Service Centre</strong><br>Court House, High Street<br>West Bromwich<br>B70 8LU<br>Telephone: 0121 569 6000<br>Fax: 0121 569 3543<br>Email: customer_services@sandwellhomes.org.uk</span>');
        });   
        map.addOverlay(WestBromwichHousingServiceCentre);		
				
	   	//var point = new GLatLng(52.553017, -2.022423); //Wednesbury Housing Service Centre
        //map.addOverlay(new GMarker(point)); 
        var WednesburyHousingServiceCentre = new GMarker(new GLatLng(52.553017, -2.022423))   
        GEvent.addListener(WednesburyHousingServiceCentre, 'click', function() {   
          WednesburyHousingServiceCentre.openInfoWindowHtml('<span style="font-size: x-small;"><strong>Wednesbury Housing Service Centre</strong><br>41 / 42 High Bullen<br>Wednesbury<br>WS10 7EY<br>Telephone: 0121 569 6000<br>Fax: 0121 569 5354<br>Email: customer_services@sandwellhomes.org.uk</span>');
        });   
        map.addOverlay(WednesburyHousingServiceCentre);		
		
	   	//var point = new GLatLng(52.497076, -1.974479); //Smethwick Housing Service Centre
        //map.addOverlay(new GMarker(point)); 
        var SmethwickHousingServiceCentre = new GMarker(new GLatLng(52.497076, -1.974479))   
        GEvent.addListener(SmethwickHousingServiceCentre, 'click', function() {   
          SmethwickHousingServiceCentre.openInfoWindowHtml('<span style="font-size: x-small;"><strong>Smethwick Housing Service Centre</strong><br>Ford Street<br>Smethwick<br>B67 7QY<br>Telephone: 0121 569 6000<br>Fax: 0121 569 5282<br>Email:customer_services@sandwellhomes.org.uk</span>');
        });   
        map.addOverlay(SmethwickHousingServiceCentre);		
		
	   	//var point = new GLatLng(52.474985, -2.041708); //Blackheath Housing Service Centre
        //map.addOverlay(new GMarker(point)); 
        var BlackheathHousingServiceCentre = new GMarker(new GLatLng(52.474985, -2.041708))   
        GEvent.addListener(BlackheathHousingServiceCentre, 'click', function() {   
          BlackheathHousingServiceCentre.openInfoWindowHtml('<span style="font-size: x-small;"><strong>Blackheath Housing Service Centre</strong><br>Payne Street<br>Blackheath<br>B65 0DH<br>Telephone: 0121 569 6000<br>Fax: 0121 569 7335<br>Email: customer_services@sandwellhomes.org.uk</span>');
        });   
        map.addOverlay(BlackheathHousingServiceCentre);		
		
	   	//var point = new GLatLng(52.505058, -2.016871); //Oldbury Housing Service Centre
        //map.addOverlay(new GMarker(point)); 
        var OldburyHousingServiceCentre = new GMarker(new GLatLng(52.505058, -2.016871))   
        GEvent.addListener(OldburyHousingServiceCentre, 'click', function() {   
          OldburyHousingServiceCentre.openInfoWindowHtml('<span style="font-size: x-small;"><strong>Oldbury Housing Service Centre</strong><br>Sandwell Council House<br>Freeth Street<br>Oldbury<br>B69 3DE<br>Telephone: 0121 569 6000<br>Fax: 0121 569 5182<br>Email: customer_services@sandwellhomes.org.uk</span>');
        });   
        map.addOverlay(OldburyHousingServiceCentre);		

	   	//var point = new GLatLng(52.553395, -2.017713); //Wednesbury Property Shop
        //map.addOverlay(new GMarker(point));
        var WednesburyPropertyShop = new GMarker(new GLatLng(52.553395, -2.017713))   
        GEvent.addListener(WednesburyPropertyShop, 'click', function() {   
          WednesburyPropertyShop.openInfoWindowHtml('<span style="font-size: x-small;"><strong>Wednesbury Property Shop</strong><br>93 / 94 Walsall Street<br>Wednesbury<br>West Midlands<br>WS10 9BY<br>Telephone: 0121 569 6981 / 6982<br>Fax: 0121 569 6987<br>Email: wednesbury_propertyshop@sandwellhomes.org.uk </span>');
        });   
        map.addOverlay(WednesburyPropertyShop);		
		
		
	   	//var point = new GLatLng(52.517876, -1.993058); //West Bromwich Property Shop
        //map.addOverlay(new GMarker(point)); 
        var WestBromwichPropertyShop = new GMarker(new GLatLng(52.52199, -1.99959))   
        GEvent.addListener(WestBromwichPropertyShop, 'click', function() {   
          WestBromwichPropertyShop.openInfoWindowHtml('<span style="font-size: x-small;"><strong>West Bromwich Property Shop</strong><br>Court House<br>335-337 High Street<br>West Bromwich<br>West Midlands<br>B70 8LU<br>Telephone: 0121 569 6000<br>Email: customer_services@sandwellhomes.org.uk</span>');
        });   
        map.addOverlay(WestBromwichPropertyShop);		
		
	   	//var point = new GLatLng(52.474803, -2.041858); //Blackheath Property Shop
        //map.addOverlay(new GMarker(point)); 
        var BlackheathPropertyShop = new GMarker(new GLatLng(52.474803, -2.041858))   
        GEvent.addListener(BlackheathPropertyShop, 'click', function() {   
          BlackheathPropertyShop.openInfoWindowHtml('<span style="font-size: x-small;"><strong>Blackheath Property Shop</strong><br>Payne Street<br>Blackheath<br>West Midlands<br>B65 0DH<br>Telephone: 0121 569 6962 / 6963 / 6964<br>Fax: 0121 569 6977<br>Email: blackheath_propertyshop@sandwellhomes.org.uk</span>');
        });   
        map.addOverlay(BlackheathPropertyShop);		
      } 
  } 
 
function moveMap(lat, lng)
  {     
    map.panTo(new GLatLng(lat, lng)); 
  }
  

