
    //<![CDATA[

function links (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: 110px; 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.22211014702312,-121.9826602935791, 'Antiquarium Antiques', '98 W. Main St, Los Gatos','408-354-7878'],
  [37.22494648094596,-121.98300361633301, 'Design and Interiors of Los Gatos', '111 N. Santa Cruz Ave., Los Gatos', '408-354-3811', 'www.designandinteriors.com'],
  [37.225937464038516, -121.98263883590698, 'Desire Home Furnishings', 
'201 N. Santa Cruz Ave, Los Gatos', '408-354-0989'],
  [37.22349415461223, -121.98263883590698, 'Domus<br>Your Lifestyle Shop<br>Home and Kitchen Ware', '40 N. Santa Cruz Ave., Los Gatos', '408-354-6630', 'www.domusonline.com' ],
  [37.22656963610467, -121.98182344436646, 'Los Gatos Framing Company', '220 N. Santa Cruz Ave., Los Gatos', '408-395-2022'],
  [37.22357958634722, -121.98317527770996, 'Maid&apos;s Quarters<br>Linens', '36 N. Santa Cruz Ave., Los Gatos', '408-395-1980'],
  [37.23417237147388, -121.97654485702515, 'Martino Interiors<br>Home Furnishing and Design Interiors', '630 University Ave., Los Gatos', '408-354-9111', 'www.martinointeriors.com'],
  [37.226057064565595, -121.98253154754639, 'The Rose Collection<br>Home Furnishings', '155 No. Santa Cruz Ave., Los Gatos', '408-395-5445', 'www.cherierosecollection.com'],
  [37.226057064565595, -121.98319673538208, 'Sports Memorabilia and Collectibles', '59 No. Santa Cruz Ave., Los Gatos', '408-354-1100', 'www.sportsgalleryweb.com'],

[37.22397257108175, -121.98347568511963, 'Traditions<br>Home/Interiors', '32 No. Santa Cruz Ave., Los Gatos', '408-399-1503', 'www.traditionsforthehome.com'],

[37.225236942856625, -121.98293924331665, 'Vintages<br>Home - Gifts - Antiques', '130c No. Santa Cruz Ave., Los Gatos', '408-399-9090', 'www.hometown.aol.com/vintageslg']

);

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); });
		



}

 
}





       //]]>
   
