//			index.js


/*==============================
initialization routines
==============================*/
function jsInit()
{

	var x;
	x = jsInitMenu();
	x = jsInitIndex();

debugFlag = false;
}

/*==============================
initialize index page
==============================*/
function jsInitIndex()
{
//debugFlag = true;
//debugAlert("jsInitIndex()");

		// bail if not DOM-aware
		if (!document.getElementById) return;
		if (!document.getElementsByTagName) return;

	// get menu object
	var oMenu = document.getElementById("featureMenu");
	oContent = document.getElementById("content1");

		// bail if it's not on this page
		if (!oMenu || !oMenu.id || oMenu.id == "") return alert("!oMenu.id");

	// get all LIs
	var aObjs = oMenu.getElementsByTagName("LI");

	for (var iObj = 0; iObj < aObjs.length; iObj++)
	{
		aObjs[iObj].onmouseover = jsIndexMouseOver;
		aObjs[iObj].onfocus = jsIndexMouseOver;		
		aObjs[iObj].onkeyup = jsIndexMouseOver;		
	}

	// re-display the default logo when the reset object is hovered
	var oFeatureReset = document.getElementById("featureMenuReset");
	oFeatureReset.onmouseover = jsIndexMouseOut;
	//oFeatureReset.onkeyup = jsIndexMouseOut;		
}

/*----------------------------*/
function jsIndexMouseOver(e)
/*----------------------------*/
{
//debugAlert("jsIndexMouseOver " + this.tagName + " " + this.id);

	// stop event propagation
		if (!e) var e = window.event;
	e.cancelBubble = true;
		if (e.stopPropagation) e.stopPropagation();

	oContent.className = this.id;
	//alert("oContent.className = " + this.id);
}

/*----------------------------*/
function jsIndexMouseOut(e)
/*----------------------------*/
{
	// stop event propagation
		if (!e) var e = window.event;
	e.cancelBubble = true;
		if (e.stopPropagation) e.stopPropagation();

	oContent.className = "";
}




