function ForceMenu(strWrapper, strItem)
{
	if (top.location != self.location)
	{
		if (top.Menu.txtHidden.value != strItem)
		{
			//call a function on the Menu frame
			top.Menu.MenuForced(strWrapper, strItem);
		}
	}
}


//Change the text in the banner
function ChangeBanner(strBanner)
{
	if (top.location != self.location)
	{
		top.Banner.tblBanner.rows(0).cells(0).innerText  = strBanner;
	}
}

//------------------------------------------------
//Ensure that we're in the frame, then
//set the 'Banner' text
//------------------------------------------------
function LoadBody(strFile, strBanner)
{
	if (!ForceFrame(strFile))
	{
		ChangeBanner(strBanner);
	}
}

function ForceFrame(strFile)
{
	if (top.location == self.location)
	{
		top.location.href = "QuenyaFrame.htm?" + strFile;
		return true;
	}
	else
	{
		return false;
	}
}

function ForceFrameHeader()
{
	if (top.location == self.location)
	{
		top.location.href = "QuenyaFrame.htm";
		return true;
	}
	else
	{
		return false;
	}
}




// Used to cause the selected page to be loaded in the main frame.
function HRefShow(strTarget) 
{
	if (top.location != self.location)
	{
		//We're in the frame
		window.parent.frames("Main").location.href = strTarget;	
	}
	else
	{
		window.parent.location.href = 'http://www.gondor.u-net.com/Quenya/QuenyaFrame.htm';
	}
}


// Highlights the menu entry (called for onmouseover)
function Highlight(callingElement)
{
	var sClass;
	sClass = callingElement.className.toUpperCase();
	
	if (callingElement==event.srcElement)
	{
		if (sClass=="LINKNORMAL")
			{ callingElement.className="LinkHighLight"; }				
			
	}
}


// Un-highlights the menu entry (called for onmouseout)
function Unhighlight(callingElement)
{
	var sClass;
	sClass = callingElement.className.toUpperCase();
	
	if (callingElement==event.srcElement)
	{
		if (sClass=="LINKHIGHLIGHT")
			{ callingElement.className="LinkNormal"; }

	}
}


// Used to cause the selected page to be loaded in the main frame.
function JumpOut(strTarget) 
{window.parent.location.href = strTarget;}



