
    //<![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: 200px; height: 180px; 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 + '<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.22357958634722,-121.98317527770996, 'Natural Expressions<br>of Los Gatos', '18 N. Santa Cruz Ave., Los Gatos', '408-358-4949', 'naturalexpressionsoflosgatos.com'],

[37.23275439134832,-121.97894811630249, 'Pet People of Los Gatos<br>Pet Supplies', '111 N. Santa Cruz Ave., Los Gatos', '408-354-8888', 'petpeoplelosgatos.com'],


[37.22371627692193,-121.98358297348022, 'Powell\'s Sweet Shoppe', '35 N. Santa Cruz Ave., Los Gatos', '408-395-5200'],

[37.224912308882935, -121.98251008987427, 'Purrsnickety/BowWowser<br>Gifts and Collectibles<br>for Dog and Cat Lovers', '100 N. Santa Cruz Ave., Los Gatos', '408-354-2287'],

[37.264490260975215, -121.98418378829956, 'The Pet Spa<br>Pet Services: Boarding, Grooming, Pet-Sitting', '1516 Pollard Rd., Los Gatos', '408-379-8911','spa4pets.com'],

[37.226057064565595, -121.98319673538208, 'Sports Gallery<br>Sports Memorabilia and Collectibles', '59 No. Santa Cruz Ave., Los Gatos', '408-354-1100','sportsgalleryweb.com'],

[37.23439446233087, -121.96115970611572, 'Wild Bird Center<br>Bird Feeders, Houses', '792 Blossom Hill Rd., Los Gatos', '408-358-9453','lovethembirds.com'],

[37.2348386420821, -121.96115970611572, 'The Wooden Horse<br>Toy Store', '796 Blossom Hill Rd., Los Gatos', '408-356-8821','woodenhorsetoys.com'],

[37.2403394205569, -121.96150302886963, 'Caboodle Cartridge<br>cartridges for your inkjet printer, laser printer, copy machine and fax machine', '1569 Los Gatos Blvd., Los Gatos','408-358-7410','caboodle.net'],

[37.24853859358185, -121.95549488067627, 'Office Depot<br>Office Supplies', '15166 Los Gatos Blvd., Los Gatos','408-356-3757','officedepot.com'],

[37.229918351090596, -121.98956966400146, 'Nicerpage Web Design<br><a href="http:\/\/www.chambermaster.com\/directory\/jsp/hotdeals\/HotDeal.jsp?memid=596&hdid=1" target="blank" ><img src="images\/hotdeals.gif" border="0"><\/a>', '16230 W. Ellenwood Ave., Monte Sereno','408-395-6611','nicerpage.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); });
		



}

 
}








       //]]>
   