    //<![CDATA[
//	http://maps.google.com/maps?f=q&hl=en&geocode=&q=Guanella+Auto+Body+2789+Sebastopol+Rd,+Santa+Rosa,+CA%E2%80%8E&ie=UTF8&attrid=&ei=HpCbSMH2HaiKiAPC37nwBw&cd=1&cid=38426126,-122750920,18220817991372048924&li=lmd&ll=38.428412,-122.750072&spn=0.020978,0.04549&z=15
    function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("googleMap"));
	    var point = new GLatLng(38.29695773103365, -122.45593070983887);
        map.setCenter(point, 15); //zommed out
		//map.setCenter(new GLatLng(38.290911, -122.457346), 17); //zommed in
      }
	  //38.428546756815535, -122.74312986541748
	  //controls and settings
	  map.addControl(new GLargeMapControl());
	  map.addControl(new GMapTypeControl());
	  //map.setMapType(G_HYBRID_MAP);

	  //coordinates for Sage Computing. DO NOT ALTER
	 
	  VHhome = new GLatLng(38.29600773103365, -122.45593070983887) 
	  bubbleDiv = createBubble(); //creates content of bubble.	  
	  //create marker on map. Link with bubble
	  mapArrow = new GMarker(VHhome);
	  GEvent.addListener(mapArrow, "click", function() {
        mapArrow.openInfoWindowHtml(bubbleDiv);
      });
      map.addOverlay(mapArrow);
	  
	  //open bubble on marker on load
      mapArrow.openInfoWindowHtml(bubbleDiv);
	  
	  //Street View
		VHHomePoV = new GLatLng(38.29680773103365, -122.45593070983887);
		myPOV = {
			yaw: 90,
			pitch: 0
		};
		svOpts = {
			latlng: VHhome,
			pov: myPOV
		};
		var myPano = new GStreetviewPanorama(document.getElementById("streetView"), svOpts);
	  
    }
	
	function createBubble() {
		bubbleDiv = document.createElement('div');
		bubbleDiv.style.width = '250px'
		bubbleDiv.style.height = '115px'
		bubbleDiv.style.textAlign = 'left'
		bubbleLogo = new Image();
		bubbleLogo.src = '/map/housewithheart.gif';
		bubbleLogo.style.width = '108px';
		bubbleLogo.style.height = '100px';
		bubbleLogo.align = 'right';
		bubbleDiv.appendChild(bubbleLogo);
		
		bubbleText = document.createElement('div');
		bubbleText.style.margin = 0;
		bubbleText.style.border='1px';
		bubbleText.style.fontFamily = 'sans-serif';
		bubbleText.style.fontSize = '10pt';
		
		bubbleTextLine1 = document.createElement('span');
		bubbleTextLine1.style.fontSize = '11pt';
		bubbleTextLine1.style.fontWeight = 'bold';
		bubbleTextLine1.appendChild(document.createTextNode('Vintage House'));
		bubbleTextLine2 = document.createTextNode('264 First Street East');
		bubbleTextLine3 = document.createTextNode('Sonoma, CA 95476');
		bubbleTextLine4 = document.createTextNode('Phone: (707) 996-0311');
		bubbleTextLine5 = document.createTextNode('Fax: (707) 996-1012');
		emailAdd = document.createTextNode('info@vintagehouse.org');
		bubbleTextLine6 = document.createElement('a');
		bubbleTextLine6.href = "mailto:info@vintagehouse.org";
		bubbleTextLine6.appendChild(emailAdd);
		bubbleTextLine7 = document.createTextNode('M-F: 9:00am-4:00pm');
		
		bubbleText.appendChild(bubbleTextLine1);
		bubbleText.appendChild(document.createElement('br'));
		bubbleText.appendChild(bubbleTextLine2);
		bubbleText.appendChild(document.createElement('br'));
		bubbleText.appendChild(bubbleTextLine3);
		bubbleText.appendChild(document.createElement('br'));
		bubbleText.appendChild(bubbleTextLine4);
		bubbleText.appendChild(document.createElement('br'));
		bubbleText.appendChild(bubbleTextLine5);
		bubbleText.appendChild(document.createElement('br'));
		bubbleText.appendChild(bubbleTextLine7);
		bubbleText.appendChild(document.createElement('br'));
		bubbleText.appendChild(bubbleTextLine6);
		
		bubbleDiv.appendChild(bubbleText);
		
		return bubbleDiv;
	}
	window.onload = function() {
		load();
	}
	window.onunload = function() {
		GUnload();
	}

    //]]>
    
	
	function activateMap() {
		d.getElementById('mapOption').className = 'activeOption';
		d.getElementById('streetViewOption').className = 'inactiveOption';
		d.getElementById('googleMap').style.display = 'block';
		d.getElementById('streetView').style.display = 'none';
	}
	function activateStreetView() {
		d.getElementById('mapOption').className = 'inactiveOption';
		d.getElementById('streetViewOption').className = 'activeOption';
		d.getElementById('googleMap').style.display = 'none';
		d.getElementById('streetView').style.display = 'block';		
	}

