//JS for AntiochNet.org

var lastwhich = "";

function movein(which, which2, pLNK)
{
	which.style.background="#B1B3C8";
	which2.style.color="#D86061";
	
	if (pLNK.substring(0, 4) == "http")
		window.status = pLNK;
	else
		window.status = "http://" + location.host + "/" + pLNK;
}

function moveoutmenu(which, which2)
{
	which.style.background="#E0DFE3";
	which2.style.color="#B1B3C8";

	window.status = "";
}

function menuctl(which, which2, pLNK, pBGc, pTc)
{
	if (which != lastwhich)
	{
		which.style.background=pBGc;
	}
	
	which2.style.color=pTc;
	
	if (pLNK == "")
		window.status = "";
	else
		window.status = "http://" + location.host + "/" + pLNK;
}

function smenuctl(which, which2, pLNK, pBGc, pTc)
{
	which.style.background=pBGc;
	which2.style.color=pTc;
	
	if (pLNK == "")
		window.status = "";
	else
		window.status = "http://" + location.host + "/" + pLNK;
}

function AddSideMenuItem(pID, pLNK, pLBL)
{
	var txtID = pID + "txt";
	
	document.write ("<tr>");
		document.write ("<td id=\"" + pID + "\" class=\"sidemenuTBL\" onmouseover=\"movein(" + pID + ", " + txtID + ", '" + pLNK + "');\" onmouseout=\"moveoutmenu(" + pID + ", " + txtID + ");\" onclick='JavaScript: location.href=\"" + pLNK + "\";'>");
		document.write ("<a href=\"" + pLNK + "\" id=\"" + txtID + "\" class=\"sidemenulink\">" + pLBL + "</a>");
		document.write ("</td>");
	document.write ("</tr>");
}
