// JavaScript Document
//***This function must be included for every theme but can be customized to fit the theme
//Some vars are availabe from the existing page scripts
//var theThemeName
//var wwwRoot
//
function initPage() /* required for all hThemes */
{
	try
	{
		//updateHighlight('contMenu0'); NO LONGER USED
		initAll();
	}
	catch(e)
	{
	}
	//alert("initPage");
}
//***This function must be included for every theme but can be customized to fit the theme
function changePageFinished(thePage)
{
	//Function used to update GO highlights//
	try
	{
		//updateHighlight('contMenu'+thePage);
	}
	catch(e)
	{
	}
}
//***This function must be included for every theme but can be customized to fit the theme
function popUpClosed()
{
	try
	{
	}
	catch(e)
	{
	}
}
/////////////////////////////////////////////////////////////////////
//The scripts below are customized for the hTheme they are used with:
var selectedSubMenuItem = null;
function updateHighlight(theItem)
{
	var currTabElem = document.getElementById(theItem);
	if(selectedSubMenuItem != null)
	{
		try
		{
			var oldContMenuItem = document.getElementById(selectedSubMenuItem);
			oldContMenuItem.setAttribute("class", "SubMenuTitle");
			oldContMenuItem.setAttribute("className", "SubMenuTitle");
		}
		catch(e)
		{
		}
	}
	currTabElem.setAttribute("class", "SubMenuTitleSelected");
	currTabElem.setAttribute("className", "SubMenuTitleSelected");
	selectedSubMenuItem = theItem;
	return;
}



