//Menu Highlight Functions
function MenuOver(oBtn)
{
	oBtn.style.backgroundColor='#FF6666';
	oBtn.style.textDecoration='none';
}
function MenuOut(oBtn)
{
	oBtn.style.backgroundColor='transparent';
	oBtn.style.textDecoration='none';
}

//Link Highlight Functions
function LinkOver(oBtn)
{
	oBtn.style.backgroundColor='#FFCC66';
	oBtn.style.color='#990000'
	oBtn.style.textDecoration='none';
}
function LinkOut(oBtn)
{
	oBtn.style.backgroundColor='transparent';
	oBtn.style.color='#CC6600'
	oBtn.style.textDecoration='underline';
}

//Protect and Trap are for detecting right mouse click
function protect(e)
{
	var whichbtn
	if (navigator.appName == "Netscape")
		{ whichbtn = e.which	}
	else if (navigator.appName.indexOf("Microsoft" != -1))
		{ whichbtn = window.event.button }
	if (whichbtn != "1")
		{
			alert("I'm sorry but that function is not available")
			return false;
		}
	else
		{ return true; }
}

function trap()
{
	if(document.images)
	for(i=0;i<document.images.length;i++)
	document.images[i].onmousedown = protect;
}

	document.onmousedown = protect;
	
//Function for displaying pictures in separate window
function MyWin(piclocn,picname,w,h)
{
    mymsg=window.open("", "", "menubar=no,location=no,resizable=yes,top=50,left=50");
    mymsg.resizeTo(w,h);
	if (navigator.appName == 'Netscape')
	{
		mymsg.resizeBy(60,160);
	}
	else if (navigator.appName.indexOf("Microsoft" != -1))
	{
		mymsg.resizeBy(30,170);
	}
    mymsg.document.write("<html>\r\n<head>\r\n<title>");
    mymsg.document.write(picname);
	mymsg.document.write("<\/title>\r\n");
	mymsg.document.write("<script language='JavaScript'>\r\n");
	mymsg.document.write(" function protect(e)\r\n");
	mymsg.document.write(" { \r\n var whichbtn \r\n");
	mymsg.document.write(" if (navigator.appName == 'Netscape') \r\n");
	mymsg.document.write(" { \r\n whichbtn = e.which \r\n	} \r\n");
	mymsg.document.write(" else if (navigator.appName.indexOf('Microsoft' != -1)) \r\n");
	mymsg.document.write(" { \r\n whichbtn = window.event.button \r\n} \r\n");
	mymsg.document.write(" if (whichbtn != '1') \r\n{ \r\n");
	mymsg.document.write(" alert('Sorry but that function has been disabled') \r\n");
	mymsg.document.write(" return false;\r\n	}\r\n ");
	mymsg.document.write(" else \r\n");
	mymsg.document.write(" { \r\n return true; \r\n } \r\n} \r\n");
	mymsg.document.write(" function trap()\r\n{\r\n");
	mymsg.document.write(" if(document.images)\r\n");
	mymsg.document.write(" for(i=0;i<document.images.length;i++) \r\n");
	mymsg.document.write(" document.images[i].onmousedown = protect;\r\n}\r\n");
	mymsg.document.write("<\/script>\r\n");
	mymsg.document.write("<\/head>\r\n");	
    mymsg.document.write("<body onLoad='trap()'>\r\n");
    mymsg.document.write("<table border='0' width='100%' cellspacing='1' cellpadding='1'>\r\n");
    mymsg.document.write("<tr>\r\n<td width='100%'>\r\n");
    mymsg.document.write("<p align='center'><font face='Comic Sans MS'color='#000080' size='3'>Retrieving Picture<\/font><\/td><\/tr><tr><td>&nbsp<\/td><\/tr>\r\n");
    mymsg.document.write("<tr>\r\n<td width='100%'>\r\n");
    mymsg.document.write("<p align='center'>\r\n");
    mymsg.document.write("<img border='0' src='xyz/" + piclocn + "'>\r\n");
    mymsg.document.write("<\/td>\r\n<\/tr>\r\n<tr>\r\n<td width='100%' align='center'>");
    mymsg.document.write("<form name='form2'>");
    mymsg.document.write("<p align='center'>\r\n<input type='button' name='b2' value='Close Window'onclick='window.close();'\r\n>");
    mymsg.document.write("<\/form>\r\n<\/td>\r\n<\/tr>\r\n<\/table>\r\n");
    mymsg.document.write("<\/body>\r\n<\/html>\r\n");
    mymsg.document.close();
    mymsg = null
}



//Leapto Function to permit movement around page
function leapto1(form) {
var myindex=form.news.selectedIndex;
window.location=form.news.options[myindex].value;
form.reset(form);
}
function leapto2(form) {
var myindex=form.updates.selectedIndex;
window.location=form.updates.options[myindex].value;
form.reset(form);
}