function mouseOverTop(menu)
{
	menu.className = "rollover";
}

function mouseOutTop(menu)
{
	menu.className = "";
}

function mouseOver(menu)
{
	menu.className = "rollover";
	var iframeID = "fr" + menu.childNodes[2].id;
	document.getElementById(iframeID).className = "rollover";
}

function mouseOut(menu)
{
	menu.className = "";
	var iframeID = "fr" + menu.childNodes[2].id;
	document.getElementById(iframeID).className = "";
}

function iframeHack()
{
	var dropDown;
	var iframe;

	for (var i = 0; i < arguments.length ; i++)
	{
	    if (arguments[i] != "") {
		    dropDown = document.getElementById(arguments[i]);
		    iframe = document.getElementById("fr" + arguments[i]);

		    iframe.style.width = dropDown.offsetWidth + "px";
		    iframe.style.height = dropDown.offsetHeight + "px";
		}
	}
}


function ShowUserPreferences()
{
    var returnValue;
    var windowArgs = 
		"dialogHeight: 600px; dialogWidth: 740px;  " +
		"edge: Raised; center: Yes; help: No; " +
		"resizable: no; status: no; scroll: no";

	var dialogArguments = 
		{PreferenceSection:preferenceSection};
		
		returnValue = window.showModalDialog
			(RelativeWebDirectoryPath + "/UserPreferences/PopUps/PopupUserPreferencesFrame.aspx",
			dialogArguments,
			windowArgs);
			
}

function ShowUserPreferences(preferenceSection)
{
//preferenceSection -- this can be one of the following values
/*
    1   -   
*/
    var returnValue;
    var windowArgs = 
		"dialogHeight: 600px; dialogWidth: 740px;  " +
		"edge: Raised; center: Yes; help: No; " +
		"resizable: no; status: no; scroll: no";

	var dialogArguments = 
		{PreferenceSection:preferenceSection};
		
		returnValue = window.showModalDialog
			(RelativeWebDirectoryPath + "/UserPreferences/PopUps/PopupUserPreferencesFrame.aspx?preferenceSection=" + preferenceSection,
			dialogArguments,
			windowArgs);
			
}

function ShowUserPreferences(preferenceSection, alternateBrowserTitle)
{
//preferenceSection -- this can be one of the following values
/*
    1   -   
*/
    var returnValue;
    var windowArgs = 
		"dialogHeight: 600px; dialogWidth: 740px;  " +
		"edge: Raised; center: Yes; help: No; " +
		"resizable: no; status: no; scroll: no";

	var dialogArguments = 
		{PreferenceSection:preferenceSection};
		
		returnValue = window.showModalDialog
			(RelativeWebDirectoryPath + "/UserPreferences/PopUps/PopupUserPreferencesFrame.aspx?preferenceSection=" + preferenceSection + "&alternateBrowserTitle=" + alternateBrowserTitle,
			dialogArguments,
			windowArgs);
			
}
function SearchHelp(searchTerms)
{
//searchTerms -- words passed to pop-up HelpSearch.htm

window.open("/Help/HelpSearch.htm?" + searchTerms.replace(/ /,"+") ,"Help","menubar=0,location=0,toolbar=0,top=0,left=0,resizable=1,status=0,Width=800,Height=600");
}

function ShowHelp(searchID) {
	//searchID -- ##.htm file to open
	window.open("/Help/index.htm?toc.htm?" + searchID + ".htm?", "Help", "menubar=0,location=0,toolbar=0,top=0,left=0,resizable=1,status=0,Width=800,Height=600");
}


