
    //<![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),15);
// 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 web = info[5];
      var marker = new GMarker(new GLatLng(lat,lon)); 
map.addOverlay(marker);

var WINDOW_HTML = '<div style="width: 210px; height: 140px; 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>';
}

WINDOW_HTML = WINDOW_HTML + '<br>' + addr + '<br>' + phone + '<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),15);
		map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());


// Each business has one line in "[]" characters.  The fields are
// lat, lon, name, address, phone number, and web address.  The web
// address is optional.
businessInfo = new Array(
[37.2230669944857,-121.98343276977539, 'Belgian Diamond Specialties<br>', '16 N. Santa Cruz Ave., Los Gatos','408-395-4500<br>','www.belgiandiamond.com'],
						 
  [37.22414343337113,-121.98178052902222, 'Blacy\'s Fine Jewelers<br>', '51 University Ave. Suite B, Los Gatos','408-354-9500<br>','www.blacys.com'],

  [37.22209306035098,-121.98253154754639, 'The Indian Store<br>Native American Jewelry and Art<br>', '68 W. Main St., Los Gatos', '408-354-9988<br>', 'www.theindianstore.com'],

  [37.23617116563369,-121.96233987808227, 'Only the Best<br>Handmade greeting cards for all occasions<br>', 
'15954 Los Gatos Blvd., Los Gatos', '408-356-7362<br>','www.onlythebestlosgatos.com'],

  [37.24817989842181, -121.95753335952759, 'Queen&apos;s Chest Gift Boutique<br>Car Wash and Gifts<br>', '16500 Lark Ave., Los Gatos', '408-356-2525<br><br>', 'www.classiccarwash.com' ],

[37.223738, -121.982577, 'Black Swan Boutique<br>', '44 Elm Street, Los Gatos', '408- 354-1910<br><br>', 'www.blackswanboutique.com' ],

[37.225447, -121.982521, 'Vintages<br>Home Decor - Gifts - Antiques <br>', '130C N. Santa Cruz Ave., Los Gatos', '408-399-9090<br><br>', 'www.vintagesantiques.com' ]
 
  
 

);

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 marker and window for North Santa Cruz Ave. - 14
var marker14 = new GMarker(new GLatLng(37.22916661169174, -121.98094367980957)); 
map.addOverlay(marker14);

var WINDOW_HTML14 = '<div style="width: 210px; height: 150px; padding-right: 10px;padding-bottom: 2px; font-family: verdana, 			sans-serif; font-size: 11px; font-weight: bold; text-align: center;"><br><img src="images/shop_nsantacruz.jpg"><br>Click Markers or Links<br>for Store Information<\/div>';

marker14.openInfoWindowHtml(WINDOW_HTML14);
GEvent.addListener(marker14, "click", function() {
        marker14.openInfoWindowHtml(WINDOW_HTML14); });
		



}

 
}





       //]]>
   