function SetupMenu() {	if (!document.getElementsByTagName) return;	items=document.getElementsByTagName("li");	for (i=0; i<items.length; i++) {		if (items[i].className != "menu") continue;		//set up event handlers		thelink=findFirstChild(items[i],"A");		thelink.onclick=HideShowMenu;		//is there a submenu?		if (ul=findFirstChild(items[i],"UL")) {			ul.style.display = "none";			ul.parentNode.firstChild.onmouseover=highlight;			ul.parentNode.firstChild.onmouseout=notHighlight;		}	}}function findFirstChild(obj,tag) {	cn = obj.childNodes;0	for (k=0; k<cn.length; k++) {		if (cn[k].nodeName==tag) return cn[k];	}	return false;}function HideShowMenu(e) {	if (!e) var e = window.event;	//which link was the mouse over?	thislink = (e.target) ? e.target: e.srcElement;	// we want LI, not the link	if (thislink.nodeName == "IMG") {thislink = thislink.parentNode;}	img = findFirstChild(thislink,"IMG");	(img.src.lastIndexOf("_down") > 0) ? 		(img.src = removeSubstr(img.src,img.src.lastIndexOf("_down"),5)) :		(img.src = addSubstr(img.src,"_down",img.src.lastIndexOf("redtriangle")+11));	thislink = thislink.parentNode;	// find the submenu, if any	ul= findFirstChild(thislink,"UL");	if (!ul) return;	(ul.style.display == "block") ? (ul.style.display = "none") : (ul.style.display = "block");}function highlight(e) {	if (!e) var e = window.event;	//which link was the mouse over?	thislink = (e.target) ? e.target: e.srcElement;	(thislink.nodeName == "IMG") ? (img = thislink) : (img = findFirstChild(thislink,"IMG"));	var src = img.getAttribute('src');	var hl = src.substring(0,src.length-4);	hl += '_select.gif';	img.setAttribute('src',hl);}function notHighlight(e) {	if (!e) var e = window.event;	//which link was the mouse over?	thislink = (e.target) ? e.target: e.srcElement;	(thislink.nodeName == "IMG") ? (img = thislink) : (img = findFirstChild(thislink,"IMG"));	var src = img.getAttribute('src');	var hl = src.substring(0,src.length-11);	hl += '.gif';	img.setAttribute('src',hl);}function addSubstr (str,add,pos) {	var newStr = str.substring(0,pos);	newStr += add;	newStr += str.substring(pos);	return newStr;}function removeSubstr (str,index,length) {	var one = str.substring(0,index);	var two = str.substring(index+1,index+length-1);	var three = str.substring(index+length);	return one.concat(three);}