//BKR addition
function show_my_menu(id) {
	document.getElementById('pm'+id).style.display = "block";
/*
	for(i=0; i<element.childNodes.length; i++) {
		if(element.childNodes[i].tagName.toUpperCase() == 'UL') {
			element.childNodes[i].style.display = "block";
		}
	}
*/
}

function hide_my_menu(id) {
	document.getElementById('pm'+id).style.display = "none";
/*
	for(i=0; i<element.childNodes.length; i++) {
		if(element.childNodes[i].tagName.toUpperCase() == 'UL') {
			element.childNodes[i].style.display = "none";
		}
	}
*/
}
//END of this sh..

document.lastid = 1;
sfHover = function() {
	var navi = document.getElementById( "nav" );
	if( navi != null ) {
		var sfEls = navi.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"), "");
			}
		}
	}
}

function dots( obj ) {
	obj.style.backgroundImage = "url(/graph/dot_blue.gif)";
	obj.style.backgroundRepeat = 'repeat-x';
	obj.style.backgroundPosition = 'bottom';
}

function deDots( obj ) {
	obj.style.backgroundImage = "url(/graph/dot.gif)";
	obj.style.backgroundRepeat = 'repeat-x';
	obj.style.backgroundPosition = 'bottom';

}

function highlight( id ) {
	dehighlight( document.lastid );
	var elem = document.getElementById( 'menu_'+id.toString() );
	elem.src = '/graph/menu_'+id.toString()+'_over.gif';
	document.lastid = id;
}

function dehighlight( id ) {
	if( document.section != id ) {
		var elem = document.getElementById( 'menu_'+id.toString() );
		elem.src = '/graph/menu_'+id.toString()+'.gif';
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);

