border = "#F7941F";
background = "#999999";
submenuBackground = "#999999";
submenus = new Array();

function addSubmenu(arg){
	submenus.push(arg);
}

function changeButtonRollover(caller){
	caller.style.backgroundColor = "#00339D";
	caller.style.borderTopColor = "#315AB0";
	caller.style.borderLeftColor = "#315AB0";
	caller.style.borderRightColor = "#001A51";
	caller.style.borderBottomColor = "#001A51";
	caller.style.borderWidth = "2px";
}
function changeButtonRollout(caller){
	caller.style.backgroundColor = background;
	caller.style.borderTopColor = border;
	caller.style.borderLeftColor = border;
	caller.style.borderRightColor = border;
	caller.style.borderBottomColor = border;
	caller.style.borderWidth = "1px";
}
function submenuRollover(caller){
	caller.style.backgroundColor = "#00339D";
}
function submenuRollout(caller){
	caller.style.backgroundColor = background;
}
function showSubmenu(target){
	var state;
	for (var i=0; i < submenus.length; i++){
		if(target == submenus[i]){
			state = "visible";
		} else {
			state = "hidden";
		}
		document.getElementById(submenus[i]).style.visibility = state;	
	}
}
function hideSubmenu(){
	for (var i=0; i < submenus.length; i++){
		document.getElementById(submenus[i]).style.visibility = "hidden";
	}
}
//javascript in Mozilla picks up an additional node if HTML is written by CF decision statement
function mimicLink(caller,winType){
	if(caller.childNodes[0].href != undefined){
		goToURL(caller.childNodes[0].href,winType);
	} else {
		if(caller.childNodes[1].href != undefined){
			goToURL(caller.childNodes[1].href,winType);
		} else {
			return false;	
		}
	}
}
function goToURL(newURL,winType){
	if(winType == "_blank"){
		window.open(newURL);
	} else {
		window.location.href = newURL;
	}
}

/*
function launchBoard(){
	newWindow = window.open("http://www.msmanational.org/forum/cutecast/cutecast.pl", "boardWin", "toolbar,scrollbars,resizable,height=600,width=760");
	newWindow.focus();
}
*/