var R_button="Button.jpg";
var R_buttonh="Buttonh.jpg";
//button hover functions for stupid ie.
//ie doesn't do :hover on anything else besides a tags,
//so we need these.

function buttonOver(ele) {
ele.style.backgroundImage="url("+R_buttonh+")";
ele.firstChild.style.textDecoration="underline";
}
function buttonOut(ele) {
ele.style.backgroundImage="url("+R_button+")";
ele.firstChild.style.textDecoration="none";
}
//buttonClick: old processing function
// works for single-level trees, just blindly takes the firstChild's href and goes with it
// even if a sub-level button was really clicked. Since the top-level element calls this first,
// it doesn't work for multi-level trees.
function buttonClick(ele) {
if (document.location!=ele.firstChild.href) document.location=ele.firstChild.href;
}
//treeClick: main click processing function
// this one recurses through the element's levels to see if a
// sub-level button was clicked. if so it quits until it gets called by the right button.
function treeClick(ele) 
{
	myChild=ele.firstChild;
	while (true)
	{
		if (myChild.nodeName=="LI" || myChild.nodeName=="li")
		{
			if (myChild.className=="RNET_MenuItem" && myChild.style.backgroundImage.indexOf("Button.jpg") == -1 && myChild.style.backgroundImage.length > 0)
			{
				return;
			}
			//If you want this to work for multi-level trees, add detection code here to see if the UL above it is active.
		}
		if (myChild.nodeName=="UL" || myChild.nodeName=="ul")
		{
			myChild=myChild.firstChild;
			continue;
		}
		
		if (myChild === myChild.parentNode.lastChild && myChild.parentNode === ele)
			break;
		if (myChild === myChild.parentNode.lastChild)
			myChild=myChild.parentNode.nextSibling;
		else
			myChild=myChild.nextSibling;
	}
	buttonClick(ele);
}

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("RNET_MMenuBlock");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" RNET_over";
buttonOver(this);
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" RNET_over", "");
  buttonOut(this);
   }
   }
  }
 }
}
if (navigator.appName=="MSIE" || navigator.appName=="Microsoft Internet Explorer")
{
	window.onload=startList;
}

