//No page should be opened outside of frame
if (self == top) {self.location.href = "/default.asp"}

function HoverLink(title)
{UpdateStatusBar(title)}

function HoverButton(title)
{UpdateStatusBar(title)}

function HoverRow(objRef, state)
{	if (state == 1)
	{objRef.bgColor = "#FFFFC0"}
	else
	{objRef.bgColor = "white"}
}

function AnimateLink(link, state, sty, msg)
{	if (state == 0)
	{	UpdateStatusBar()
		link.className = sty
		return true
	}
	else
	{	UpdateStatusBar(msg)
		link.className = sty
		return true
	}
}

function UpdateStatusBar(value)
{	if (value)
	{window.setTimeout('window.status="' + value + '"', 1)}
	else
	{window.setTimeout('window.status=""', 1)}
}

function GetMenu(menu)
{	if (parent.fraMenu)
	{	with (parent.fraMenu.location)
		{	if (href.indexOf(menu) == -1)
			{href = "/menus/" + menu}
		}
	}
}

function GetMenuCH(menu)
{	if (parent.fraMenu)
	{	with (parent.fraMenu.location)
		{	if (href.indexOf(menu) == -1)
			{href = "/CH/menus/" + menu}
		}
	}
}

function GetMenu2(menu) //Reloads menu
{	if (parent.fraMenu)
	{parent.fraMenu.location.href = "/menus/" + menu}
}

function GetKey(key)
{	if (key && key.which) //Netscape
	{return key.which}
	else if (window.event && window.event.keyCode) //IE
	{return window.event.keyCode}
}

function GetAdobe(forWhat)
{	var link = "http://www.adobe.com/products/acrobat/readstep2.html"
	var msg = "Get Adobe Reader"
	document.write ('The ' + forWhat + ' are in pdf format, so you will need ')
	document.write ('<a class="Link2" href="' + link + '" ')
	document.write ('title="' + msg + '" target="_blank" onmouseover="HoverLink(\'' + msg + '\')" ')
	document.write ('onmouseout="HoverLink()">Adobe Reader</a> ')
	document.write ('to view them.&nbsp;&nbsp;You more than likely already have Adobe Reader installed on ')
	document.write ('your computer but if you do not, you can download and install it for free by clicking ')
	document.write ('<a class="Link2" href="' + link + '" ')
	document.write ('title="' + msg + '" target="_blank" onmouseover="HoverLink(\'' + msg + '\')" ')
	document.write ('onmouseout="HoverLink()">here</a>.')
}

function PopWin(evt, page, winW, winH)
{	if (evt)
	{	if (document.layers)
		{	MyLeft = evt.screenX
			MyTop = evt.screenY
		}
		else if (document.all)
		{	MyLeft = window.event.screenX
			MyTop = window.event.screenY
		}
	}
	else
	{	MyLeft = (screen.width - winW) / 2
		MyTop = (screen.height - winH) / 2
	}
	var props = "left="+MyLeft+",top="+MyTop+",width="+winW+",height="+winH
	var win = open(page, "", props)
}