// JUMP MENU

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

// generic confirm alert prompt
function verify(msg) { return confirm(msg); }

// toggles display style of object w/ specified id
// -----------------------------------------------------
function toggleDisplay(obj_id,vis)
{
	if (document.getElementById){
		var obj = document.getElementById(obj_id);
		if (vis!=null) {
			var state = (vis ? 'block' : 'none');
		} else {
			if (obj.style.display == '' || obj.style.display == 'none'){
				var state = 'block';
			} else {
				var state = 'none';
			}
		}
		obj.style.display = state;
	}
}
sfHover = function() {
	var sfEls = document.getElementById("ko-menu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

/*
$(document).ready(function(){
    $("#ko-menu li").hover(
        function(){ $("ul", this).fadeIn("fast"); }, 
        function() { } 
    );
    if (document.all) {
        $("#ko-menu li").hoverClass ("sfHover");
    }
});

$.fn.hoverClass = function(c) {
    return this.each(function(){
        $(this).hover( 
            function() { $(this).addClass(c);  },
            function() { $(this).removeClass(c); }
        );
    });
};
	*/
