
    //<![CDATA[

function link (bus){
var info = businessInfo [bus];


if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(37.224997739011485,-121.9832181930542),13);
// Add Controls	
		map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());

makeMarker (map,info);
}
}

	


    // This is called once for each business marker needed.
    function makeMarker(map, info) {
      var lat = info[0];
      var lon = info[1];
      var name = info[2];
      var addr = info[3];
      var phone = info[4];
      var img = info[5];
      var web = info[6];
      var marker = new GMarker(new GLatLng(lat,lon)); 
map.addOverlay(marker);

var WINDOW_HTML = '<div style="width: 210px; height: 200px; padding-right: 10px;padding-bottom: 2px; font-family: verdana,sans-serif; font-size: 8pt; text-align: center;">';

// If there's a break in the name, only the first part is in strong tags.
if (name.indexOf('<br>') > 0) {
    var pos = name.indexOf('<br>');
    WINDOW_HTML = WINDOW_HTML + '<strong>' + name.substring(0,pos) + '</strong>'+
        name.substring(pos);
} else {
    WINDOW_HTML = WINDOW_HTML + '<strong>' + name + '</strong>' + '<br> ';
}
WINDOW_HTML = WINDOW_HTML + '<img src=" ' + img + ' ">' + '<br> ';
WINDOW_HTML = WINDOW_HTML + '<br>' + addr + '<br>' + phone + '<br>' + '<br>';


// Add a web link only if it is defined.
if (web != '' && web != null) {
    WINDOW_HTML = WINDOW_HTML + '<a href="http:\/\/' + web + ' " target="blank">' + web + '<\/a>';
}

WINDOW_HTML = WINDOW_HTML + '<\/div>';

marker.openInfoWindowHtml(WINDOW_HTML);
GEvent.addListener(marker, "click", function() {
        marker.openInfoWindowHtml(WINDOW_HTML); });
        return marker;
}  // End function makeMarker.


    function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(37.22868822817218, -121.98148012161255),13);
		map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());


// Each business has one line in "[]" characters.  The fields are
// lat, lon, name, address, phone number, image and web address.  
businessInfo = new Array(

[37.26250929541892,-121.96952819824219, 'El Camino Hospital<br>of Los Gatos','815 Pollard Road, Los Gatos', '408-378-6131','images/pres_elcamino.jpg', 'www.elcaminohospital.org'],

[37.259638,-121.96129, 'Aventino Apartments','200 Winchester Circle<br>Los Gatos, CA  95032','408-871-7200','images/pres_aventino.jpg','www.aventinoapts.com'],


[37.22082863587025, -121.97594404220581, 'Hotel Los Gatos and Spa', '210 E. Main St.,<br>Los Gatos', '408-335-1700 or 866.335.1700', 'images/hotel_hotellosgatos.jpg','www.hotellosgatos.com'],



[37.222127233691395,-121.98454856872558, 'The Spa - Los Gatos','100 S. Santa Cruz Ave.<br>across from the Post Office<br>Los Gatos', '408-354-5901','images/pres_spa.jpg', 'www.thespalosgatos.com'],

[37.422252,-121.914617, 'Tuff Shed','410 South Abbott Ave.<br> Milpitas, CA','408-935-8833x11','images/pres_tuffShed.jpg','www.tuffshed.com'],

[37.23899,-121.974238, ' Alain Pinel Realtors','750 University Ave., Suite 150<br>Los Gatos, CA 95032','408-358-1111','images/pres_alainpinel.jpg','www.apr.com/officeDetail.aspx?lid=44'],


[37.289132,-122.03314, 'Alameda Family Funeral and Cremation, Inc.<br> ','12341 saratoga-Sunnyvale Rd.<br>Saratoga, CA 95070','<br>408-257-6262<br> ','images/pres_alamedafuneral.jpg','www.funeralcremation.com'],

[37.232156,-121.977768, 'Campo di Bocce','565 University Ave.<br>Los Gatos, CA 95032','408-395-7650','images/pres_campodibocce.jpg','www.campodibocce.com'],

[37.222585, -121.983144, 'Discover Los Gatos<br><br>','10 Station Way<br>Los Gatos, CA 95030','408-406-5021','images/pres_discoverLG.jpg','www.discoverlosgatos.com'],

[37.266492,-121.947114, 'Los Gatos Auto Service, Inc.','1460 White Oaks Rd., Suite F<br>Campbell, CA  95008','408-377-1751','images/pres_lgautoservice.jpg','www.losgatosautoservice.com'],

[37.232789,-121.97452, 'Oak Meadow Dental','210 Oak Meadow Dr.<br>Los Gatos, CA 95032','<br>408-395-1121 ','images/pres_oakmeadowdental.jpg','www.oakmeadowdental.com'],


[37.22955956731237,-121.98124408721924, 'Sereno Group<br>Real Estate Redefined','214 Los Gatos Saratoga Rd<br>Los Gatos','650-559-9800','images/pres_sereno.jpg','www.serenogroupre.com'],



[37.221051,-121.984978, 'Toll House Hotel','140 S. Santa Cruz Ave.<br>Los Gatos, CA 95030','<br><br>408-395-7070 | 800- 238-6111','images/pres_tollhouse.jpg','www.tollhousehotel.com'],



[37.222585, -121.983144, 'Los Gatos Chamber<br>','10 Station Way<br>Los Gatos CA 95030<br><br>We recognize our President\'s Circle members by giving them heightened visibility throughout the year.<br>','For information call 408-354-9300. ','images/chamber_logo.jpg']



);

markers = new Array();

for (i=0; i<businessInfo.length; i++) {
   markers[i] = makeMarker(map, businessInfo[i]);
}





// The new code ends here.  The old code below should be converted
// to more lines in the array above.

// Create Chamber marker icon
      //  var icon = new GIcon();
       // icon.image = "http://losgatoschamber.com/images/maps/losgatos100.png";
       // icon.iconSize = new GSize(100, 57);
       //	icon.iconAnchor = new GPoint(40, 60);      
   	//var point = new GLatLng(37.222585, -121.983144);                               
       // map.addOverlay(new GMarker(point, icon));


}

 
}




       //]]>
   
