function TabHot(oTD){
	if (oTD.className != "TabActiveStyle") {
		oTD.className = "TabHotStyle";
	}
}
function TabCold(oTD){
	if (oTD.className != "TabActiveStyle") {
		oTD.className = "TabStyle";
	}
}

function SubMenuHot(oTD){
	if (oTD.className != "SubMenuActiveStyle") {
		oTD.className = "SubMenuHotStyle";
	}
}
function SubMenuCold(oTD){
	if (oTD.className != "SubMenuActiveStyle") {
		oTD.className = "SubMenuStyle";
	}
}

function FlagHot(oImg){
	oImg.className = "FlagHotStyle";
}
function FlagCold(oImg){
	oImg.className = "FlagStyle";
}

function MakeActive(oTarg){
	var aAElements = document.getElementsByTagName('a');
	for(i=0;i<aAElements.length;i++) {
		if(oTarg != aAElements[i]) {
			if (aAElements[i].className == "SubMenuActiveStyle" || aAElements[i].className == "SubMenuHotStyle") {
				aAElements[i].className = "SubMenuStyle";
			}
		}
	}
	
	oTarg.className = "SubMenuActiveStyle";
}

iMouseOverRow = 0;

function GoToDefaultPage(iTab,sPage) {
	document.location = sPage + "?Tab=" + iTab;
}

function HideAllButTargTab(iTabToNotHide) {
	iTotalTabRows = 7;
	for (i=1; i <=iTotalTabRows; i++) {
		if(i==iTabToNotHide) {
			//DON'T DO ANYTHING YET WITH THE TARGET ROW
			document.getElementById("Tab" + i + "Links").style.display = "";
			document.getElementById("Tab" + i).background = "images/T" + i + "_Hot.gif";
			document.getElementById("Tab" + i).style.backgroundimage = "url(images/T)" + i + "_Hot.gif";
			document.getElementById("Tab" + i).className = "TabActiveStyle";
		} else {
			//HIDE THE NON TARGET ROWS
			document.getElementById("Tab" + i + "Links").style.display = "none";
			document.getElementById("Tab" + i).background = "images/T" + i + "_Cold.gif";
			document.getElementById("Tab" + i).className = "TabStyle";
		}
	}
}
