// JavaScript Document
  function load() {
      if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map_canvas"));
		map.addControl(new GMapTypeControl());
		map.setCenter(new GLatLng(45.245192,-93.686471), 10);

		
		//delay the apreaing of the bubble at start
		window.setTimeout(function() {  map.openInfoWindowHtml(hanover, about);}, 2000);
	  
   


		
		var about = "<span class=smaller>Van Located At Our:<br></span><span class=chris>Albertville Location</span><br><span class=phone>1-800-639-5438</span><br><img src=http://www.cummingsmobility.com/handicap_vans/images/AlbertvilleSmall.jpg class=store /><br><a href=http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=6540+Jansen+Ave+NE,+Albertville,+MN&sll=37.0625,-95.677068&sspn=38.41771,70.400391&ie=UTF8&ll=45.246129,-93.686149&spn=0.534684,1.100006&z=10 target=_blank>Get Driving Directions</a>";
		
			 var hanover = new GLatLng(45.245192,-93.686471);
			    
		
			  var hanovermarker = new GMarker(hanover);
			  map.addOverlay(hanovermarker);
			  
		  	  GEvent.addListener(hanovermarker, "click", function() {  
			    map.openInfoWindowHtml(hanover, about);
			    }
			  );
			  
			  // SET UP ROSEVILLE STORE
			  var aboutroseville = "<span class=smaller>Current Van Not Located Here<br></span><span class=chris>Roseville Location</span><br><span class=phone>651-633-7887</span><br><img src=http://www.cummingsmobility.com/handicap_vans/images/rosevilleSmall.jpg class=store width=190 height=91/><br><a href=http://maps.google.com/maps?f=q&hl=en&geocode=&q=cummings+mobility&sll=37.0625,-95.677068&sspn=37.410045,71.015625&ie=UTF8&ll=45.19849,-93.68248&spn=0.26031,0.55481&z=11&iwloc=A target=_blank>Get Driving Directions</a>";
			  var roseville = new GLatLng(45.021595, -93.174811);
			   
			  var rosevillemarker = new GMarker(roseville);
			  map.addOverlay(rosevillemarker);
			  
		  	  GEvent.addListener(rosevillemarker, "click", function() {  
			    map.openInfoWindowHtml(roseville, aboutroseville);
			    }
			  );
			  // END ROSEVILLE
	  // FUnction to fire when hanover DIV clicked	  
	  GEvent.addDomListener(document.getElementById('goToRoseville'),"click", function(){ 
			    map.panTo(new GLatLng(45.021595, -93.174811));
				map.openInfoWindowHtml(roseville, aboutroseville);
			    }
			  );
	  //  FIres when roseville store is clicked
	  GEvent.addDomListener(document.getElementById('goToHanover'),"click", function(){ 
			    map.panTo(new GLatLng(45.3000, -93.6010));
				map.openInfoWindowHtml(hanover, about);
			    }
			  );
			  
			  //  FIres when show traffic is clicked
	  GEvent.addDomListener(document.getElementById('showTraffic'),"click", function(){ 
			    var trafficInfo = new GTrafficOverlay();
				map.addOverlay(trafficInfo);
			    }
			  );
	  		//  FIres when Add Controls Clicked
	  GEvent.addDomListener(document.getElementById('showControls'),"click", function(){ 
		map.addControl(new GLargeMapControl());
		
			    }
			  );
		

		
		
		
      }
    }
