// JavaScript Document
var globalWin;
function enlarge (wURL, sp)
{
	var specs = "width=800,height=600,top=30,left=30," +
	  			"screenx=30,screeny=30," +
			  	"resizable=yes,scrollbars=yes";
	if (sp) specs = sp;
	if (globalWin)
	{
		globalWin.close ();
		globalWin = "";
	}
	popWin = open (wURL, "popWindow", specs);
	popWin.focus ();
	globalWin = popWin;
	return popWin;
}
function dropIt (show)
{
	//alert (show);
	var o = document.getElementById ("sub");
	if (show == "show")
	{
		//alert ("show");
		o.style.display = "block";
		o.style.visibility = "visible";
	}
	else
	{
		if (o.style.position == "absolute")
		{
			o.style.display = "none";
			o.style.visibility = "hidden";
		}
	}
}
function high (o, state)
{
	var entry = document.getElementById (o);
	var statColor;
	if (currentPage+"Entry" == o) statColor = "#888888"; else statColor = "#000000";
	//alert (statColor);
	if (state == "hi") entry.style.color = "#3300ff";
	else entry.style.color = statColor;
	//alert (entry.style.color + ", " + state + ", " + currentPage+"Entry");
}
function switchIt (on, e)
{
	//alert (e);
	document.getElementById (on).style.display = "block";
	document.getElementById (on).style.visibility = "visible";
	if (browser != "IE") document.getElementById (on+"Entry").style.color = "#888888";
	currentPage = on;
	for (i = 0; i < sectionArray.length; i++)
	{
		if (currentPage != sectionArray [i])
		{
			//alert (sectionArray [i]);
			document.getElementById (sectionArray [i]).style.display = "none";
			document.getElementById (sectionArray [i]).style.visibility = "hidden";
			if (browser != "IE") 
				document.getElementById (sectionArray [i]+"Entry").style.color = "#000000";
		}
	}
	// classintro (leadin), authorquote off on non-first pages
	if (currentPage == sectionArray [0])
	{
		document.getElementById ("leadin").style.visibility = "visible";
		document.getElementById ("leadin").style.display = "block";
		document.getElementById ("aq").style.visibility = "visible";
		document.getElementById ("aq").style.display = "block";
	}
	else
	{
		document.getElementById ("leadin").style.visibility = "hidden";
		document.getElementById ("leadin").style.display = "none";
		document.getElementById ("aq").style.visibility = "hidden";
		document.getElementById ("aq").style.display = "none";
	}
	if ((currentPage == "rule1") || (currentPage == "rule2") || (currentPage == "rule3"))
	{
		document.getElementById ("sub").style.position = "relative";
		document.getElementById ("sub").style.border = "0px";
		document.getElementById ("sub").style.display = "block";
		document.getElementById ("sub").style.visibility = "visible";
		document.getElementById ("shadow").style.position = "relative";
		document.getElementById ("shadow").style.display = "block";
		document.getElementById ("shadow").style.visibility = "visible";
	}
	else
	{
		document.getElementById ("sub").style.position = "absolute";
		document.getElementById ("sub").style.display = "none";
		document.getElementById ("sub").style.border = "1px outset #000000";
		document.getElementById ("sub").style.visibility = "hidden";
		document.getElementById ("shadow").style.position = "absolute";
		document.getElementById ("shadow").style.display = "none";
		document.getElementById ("shadow").style.visibility = "hidden";
	}
	//alert (document.getElementById ("sub").style.position);
	scroll (0, 0);
}
function init ()
{
	scroll (0, 0);
	document.getElementById ("sub").style.position = "absolute";
	document.getElementById (sectionArray [0]).style.display = "block";
	document.getElementById (sectionArray [0]).style.visibility = "visible";
	document.getElementById ("leadin").style.visibility = "visible";
	document.getElementById ("leadin").style.display = "block";
	document.getElementById ("aq").style.visibility = "visible";
	document.getElementById ("aq").style.display = "block";
	if (browser != "IE") 
		document.getElementById (sectionArray [0]+"Entry").style.color = "#888888";
	for (i = 1; i < sectionArray.length; i++)
	{
		// contribhead (), classintro (), authorquote on
		document.getElementById (sectionArray [i]).style.display = "none";
		document.getElementById (sectionArray [i]).style.visibility = "hidden";
		//if (browser != "IE") 
			//document.getElementById (sectionArray [i]+"Entry").style.color = "#000000";
	}
}
