/* ================================
    Sitewide JavaScript
   ================================ */

/* If you need to preload images:

if(document.images)
{
	var myImages = new Object();
	preload_image('images/header8.png');
	preload_image('images/header9.png');
}

*/

navPosition = new Array("0px","309px","419px","557px","710px","838px")

function sitewidePageLoaded()
{
	// Insert code for sitewide functionality
}

function navOn(x)
{
	document.getElementById("nav"+x).src = "images/nav"+x+"on.gif";
	document.getElementById("menu"+x).style.left = navPosition[x];
}

function navOff(x)
{
	document.getElementById("nav"+x).src = "images/nav"+x+"off.gif";
	document.getElementById("menu"+x).style.left = "-3000px";
}

function styleTo(target_child, style_state)
{
	/* Create more else if conditions with new possible values
	   for more combinations of style assignments.  Below are
	   examples of style assignments.
	
		target_child.style.fontFamily = "Georgia";
		target_child.style.fontWeight = "bold";
		target_child.style.fontStyle = "italic";
		target_child.style.textDecoration = "underline";
		target_child.style.textTransform = "uppercase";
		target_child.style.color = "#ff0000";
		target_child.style.backgroundColor = "#000000";
		target_child.style.backgroundImage = "url(images/clear.gif)";
	*/

	if(style_state==0)
	{
		// Code to change the style for state 0
	}
	else if (style_state==1)
	{
		/* Code to change the style for state 1
		   Add states as needed.  Separate states do
		   not need to be for the same type of HTML
		   element or class; just be sure to that the
		   style_state and target_child correlate for
		   each call. */
	}
}

