function MM_reloadPage(init) 
{  //reloads the window if Nav4 resized
	if (init==true) with (navigator) 
	{
		if ((appName=="Netscape")&&(parseInt(appVersion)==4)) 
		{
			document.MM_pgW=innerWidth; 
			document.MM_pgH=innerHeight; 
			onresize=MM_reloadPage; 
		}
	}
	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) 
		location.reload();
}
MM_reloadPage(true);

/*function JumpURL(selection) {
	var tempIndex, selectedURL;
	tempIndex = selection.selected Index;
	selectedURL = selection.options[tempIndex].value;
	window.top.location.href = selectedURL;
}*/


function MM_jumpMenu(targ,selObj,restore)
{ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) 
	selObj.selectedIndex=0;
}

function MM_findObj(n, d) 
{ //v4.01
	var p,i,x;  
	if(!d) 
		d=document; 

	if((p=n.indexOf("?"))>0&&parent.frames.length) 
	{
		d=parent.frames[n.substring(p+1)].document; 
		n=n.substring(0,p);
	}
  
	if(!(x=d[n])&&d.all) 
		x=d.all[n]; 
	
	for (i=0;!x&&i<d.forms.length;i++) 
		x=d.forms[i][n];
  
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) 
		x=MM_findObj(n,d.layers[i].document);
		
	if(!x && d.getElementById) 
		x=d.getElementById(n); 
		
	return x;
}

function MM_jumpMenuGo(selName,targ,restore)
{ //v3.0
	var selObj = MM_findObj(selName); 
		if (selObj) 
		
	MM_jumpMenu(targ,selObj,restore);
}
/*function jumpPage(newLoc) {
newPage = newLoc.options[newLoc.selectedIndex].value

if (newPage != "") {
window.location.href = newPage
}
}
/*

/*
function MM_findObj(n, d) { //v4.0
  var p,i,x;  

	if(!d) d=document; 
	if((p=n.indexOf("?"))>0&&parent.frames.length) 
	{
    d=parent.frames[n.substring(p+1)].document; 
		n=n.substring(0,p);
	}
  
	if(!(x=d[n])&&d.all) x=d.all[n]; 
	
	for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	
  for(i=0;!x&&d.layers&&i>d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	
  if(!x && document.getElementById) x=document.getElementById(n); 
	
	return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments,mlist;
	if((navigator.appName == 'Netscape')){
		//Hide all menus
		mlist = new Array('about','parents','providers','giving','research');
		for (i=0; i<mlist.length; i+=1) 
			eval('window.document.' + mlist[i] + '.visibility = \'hidden\'');

		for (i=0; i<(args.length-2); i+=3) 
			if ((obj=MM_findObj(args[i]))!=null) 
			{ 
//				v=args[i+2];
//				if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
//				obj.visibility=v; 
				//commented all original code to force the menu to always be on
				obj.visibility='visible'; 
			}
	}
	else
	{
		//Hide all menus
		mlist = new Array('about','parents','providers','giving','research');
		for (i=0; i<mlist.length; i+=1) 
			eval('document.all.' + mlist[i] + '.style.visibility = \'hidden\'');

		for (i=0; i<(args.length-2); i+=3)
		{ 
			if ((obj=MM_findObj(args[i]))!=null) 
			{ 
				v=args[i+2];
				if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
				obj.visibility='visible'; 
			}
		}
	}
}
*/

//new menu functions
var menus = new Array();
var menusstatus = new Array();

menusstatus[1] = "closed";
menusstatus[2] = "closed";
menusstatus[3] = "closed";
menusstatus[4] = "closed";
menusstatus[5] = "closed";
menusstatus[6] = "closed";

//initialization
function init()
{
	if(navigator.appName == "Netscape")
	{
		// MAN 3/27/02 
		// Check if the objects exist before trying to
		// use them
		if( null !=  window.document.about )
			menus[1] =  window.document.about;
		
		if( null !=  window.document.parents )
			menus[2] =  window.document.parents;

		if( null !=  window.document.providers )
			menus[3] =  window.document.providers;

		if( null !=  window.document.giving )
			menus[4] =  window.document.giving;

		if( null !=  window.document.research )
			menus[5] =  window.document.research;
			
		if( null !=  window.document.kids )
			menus[6] =  window.document.kids;
	}
	else
	{
		// MAN 3/27/02 
		// Check if the objects exist before trying to
		// use them
		if( null != document.all.about )
			menus[1] = document.all.about.style;
		
		if( null != document.all.parents )
			menus[2] = document.all.parents.style;

		if( null != document.all.providers )
			menus[3] = document.all.providers.style;

		if( null != document.all.giving )
			menus[4] = document.all.giving.style;

		if( null != document.all.research )
			menus[5] = document.all.research.style;
			
		if( null != document.all.kids )
			menus[6] = document.all.kids.style;
	}

}//init



// Sets the selected menu to visible
function show(menunumber)
{
	// MAN 4/4/02 Remove empty condition
	if(parseInt(navigator.appVersion) >= 4)
	{
		// MAN 4/4/02 Make sure object is valid before using it
		if( null != menus[menunumber] )
		{
			menus[menunumber].visibility = 'visible';
			menusstatus[menunumber] = 'open';
		}
	}
}//show


// Hide all menus
function menuhide()
{
	var i;
	
	if(parseInt(navigator.appVersion) > 3)
	{
		for(i=0; i<menus.length; i++)
		{
			if(menusstatus[i] == 'open')
			{
				if(menus[i])
				{
					menus[i].visibility = 'hidden';
					menusstatus[i] = 'closed';
				}//if
			}//if
		}//for
	}//if
}

//menu hides
function netscapehider()
{
	menuhide();
	showselect(); 
}

function iehider()
{
	if(window.event.toElement && (window.event.toElement.className != "menu" && window.event.toElement.className != "popup"))
	{
		menuhide();
		showselect();
	}
}
//New Menu Functions









//XXXXXXXXXXXXXXXXXXXXXXXXXXX OLD STUFF
function hide_select()
{
	if(navigator.appName == "Netscape")
	{
		if(window.document.LAYER1) document.LAYER1.visibility='hidden';
		if(window.document.LAYER2) document.LAYER2.visibility='hidden';
		if(window.document.LAYER3) document.LAYER3.visibility='hidden';
		if(window.document.LAYER4) document.LAYER4.visibility='hidden';
		if(window.document.LAYER5) document.LAYER5.visibility='hidden';
	}
	else
	{
		if(document.all.LAYER1) document.all.LAYER1.style.visibility='hidden';
		if(document.all.LAYER2) document.all.LAYER2.style.visibility='hidden';
		if(document.all.LAYER3) document.all.LAYER3.style.visibility='hidden';
		if(document.all.LAYER4) document.all.LAYER4.style.visibility='hidden';
		if(document.all.LAYER5) document.all.LAYER5.style.visibility='hidden';
	}
}



function showselect()
{
	if((navigator.appName == 'Netscape'))
	{
		if(window.document.LAYER1) document.LAYER1.visibility='visible';
		if(window.document.LAYER2) document.LAYER2.visibility='visible';
		if(window.document.LAYER3) document.LAYER3.visibility='visible';
		if(window.document.LAYER4) document.LAYER4.visibility='visible';
		if(window.document.LAYER5) document.LAYER5.visibility='visible';
	}
	else
	{
		if(document.all.LAYER1) document.all.LAYER1.style.visibility='visible';
		if(document.all.LAYER2) document.all.LAYER2.style.visibility='visible';
		if(document.all.LAYER3) document.all.LAYER3.style.visibility='visible';
		if(document.all.LAYER4) document.all.LAYER4.style.visibility='visible';
		if(document.all.LAYER5) document.all.LAYER5.style.visibility='visible';
	}
} //	show_select();


// --------------- the following 2 functions clear the status bar --------
 
function message(txt)
{
    window.status = txt;
    setTimeout("remove_message()");
}

function remove_message()
{
	window.status="";
}
//-------------------------------------------------------------------------

//---------------------popup window function-------------------------------
<!--
function openWindow(theURL) 
{ 
  window.open(theURL);
}




