function quickJump(value, f) {
    //alert("value = " + value + "  //  f.name = " + f.name);
    //f.action = value;
    //	f.submit();
    window.location = value;
}

//Top nav rendering
var clipVal_click, clipVal_up_saved, elemId;
function initMaps() {
   if (document.getElementById) {
      var mapIds = initMaps.arguments;    // pass string IDs of containing map elements
	  var i, j, area, areas, coords, clipVal;

      for (i = 0; i < mapIds.length; i++) {
        //alert("mapIds.length = " + mapIds.length + "  //  mapIds[0] = " + mapIds[0]);
        //alert("Loading...")
        if (mapIds[i] != "" || mapIds[i] != null) {
            areas = document.getElementById(mapIds[i]).getElementsByTagName("area");

		if (mapIds[i] == "m_topnav") {
			elemId = "topnav";
		} else {
			elemId = "topknot";
		}
        for (j = 0; j < areas.length; j++) {  // loop thru area elements
           area = areas[j];
           area.onmousedown = imgSwap;    // set event handlers
           area.onmouseout = imgSwap;
           area.onmouseover = imgSwap;
           area.onmouseup = imgSwap;
           //alert ("area.title = " + area.title + "  //  thisNavSection = " + thisNavSection);
   		   if (area.title == thisNavSection) {
				//document.getElementById("topnavOver").style.visibility = "hidden";
				//document.getElementById("topnavUp").style.visibility = "hidden";

				coords = area.coords.split(",");         // convert coords to clip
				clipVal_click = "rect(" + coords[1] + "px " +
                           coords[2] + "px " +
                           coords[3] + "px " +
                           coords[0] + "px)";
				document.getElementById(elemId + "Down").style.clip = clipVal_click;
				document.getElementById(elemId + "Down").style.visibility = "visible";
				clipVal_up_saved = clipVal_click;
				//alert("clipVal_up_saved = " + clipVal_up_saved);
			}
        }
        }
      }
   }
}

// image swapping event handling
function imgSwap(evt) {
   evt = (evt) ? evt : event;                   // equalize event models
   var elem = (evt.target) ? evt.target : evt.srcElement;
   //alert("imgClass = " + imgClass);
   var coords = elem.coords.split(",");         // convert coords to clip
   var clipVal_click = "rect(" + coords[1] + "px " +
                           coords[2] + "px " +
                           coords[3] + "px " +
                           coords[0] + "px)";
   var imgStyle, imgStyleSaved;

   switch (evt.type) {
      case "mousedown" :
         //alert("evt.type = " + evt.type);
         //alert ("On mousedown... clipVal_click = " + clipVal_click);
         imgStyle = document.getElementById(elemId + "Down").style;
         imgStyle.clip = clipVal_click;
         imgStyle.visibility = "visible";
         clipVal_up_saved = clipVal_click;
         break;
      case "mouseout" :
         //alert("On mouseout... clipVal_click = " + clipVal_click);
         imgStyleSaved = document.getElementById(elemId + "Down").style;
         imgStyleSaved.clip = clipVal_up_saved;  //clipVal_up_saved;
         imgStyleSaved.visibility = "visible";
         document.getElementById(elemId + "Over").style.visibility = "hidden";
         document.getElementById(elemId + "Down").style.visibility = "visible";
         break;
      case "mouseover" :
         //alert ("On mouseover... clipVal_click = " + clipVal_click);
         imgStyle = document.getElementById(elemId + "Over").style;
         imgStyle.clip = clipVal_click;
         imgStyle.visibility = "visible";
		 if (clipVal_click != clipVal_up_saved) {
		 	imgStyleSaved = document.getElementById(elemId + "Down").style;
         	imgStyleSaved.clip = clipVal_click;  //clipVal_up_saved;
         	imgStyleSaved.visibility = "visible";
		 }
         document.getElementById(elemId + "Up").style.visibility = "visible";
         break;
      case "mouseup" :
         //alert("evt.type = " + evt.type);
         //alert ("On mouseup... clipVal_click = " + clipVal_click);
         document.getElementById(elemId + "Down").style.visibility = "visible";
         // guarantee click in IE
         if (elem.click) {
             elem.click();
         }
         //alert("Element clicked?");
		 clipVal_up_saved = clipVal_click;
         break;
   }
   //clipVal_up_saved = clipVal_click;
   evt.cancelBubble = true;
   return false;
}


function playSound()  {
    if (navigator.appName == 'Netscape') {
        if (parseInt(navigator.appVersion) >= 3) {
            if (navigator.javaEnabled()) {
                if (navigator.mimeTypes['audio/midi'] != null) {
                    if (navigator.mimeTypes['audio/midi'].enabledPlugin != null) {
                        document.firstSound.play(false); // play sound in Netscape
                    }
                    else
                        alert('Your browser does not have a plug-in to play audio/midi mime types!');
                }
                else
                    alert('Your browser does not support the audio/midi mime type!');
            }
            else
                alert('Requires Java enabled to be enabled');
        }
        else
            alert('Only works in Netscape Navigator 3 or greater');
    }
    else {
        if (document.embeds) {
            document.embeds[0].Play(); // play sound in Explorer
        }
        else
            alert('Your browser does not support the embeds array');
    }
}

//playSound("harp");
initMaps();

