
//-----------------------------------------------------------------------------
//-- Netscape resize bug fix.  Please do not alter.
//-----------------------------------------------------------------------------

version = 2.0;

if (document.layers) {	
	if(!window.saveInnerWidth) {
  		window.onresize = resize;
  		window.saveInnerWidth = window.innerWidth;
  		window.saveInnerHeight = window.innerHeight;
		}
	}
	
function resize() {
    if (saveInnerWidth < window.innerWidth || 
        saveInnerWidth > window.innerWidth || 
        saveInnerHeight > window.innerHeight || 
        saveInnerHeight < window.innerHeight ) 
    {
        window.location.reload();
        scroll(0,0);
    }
}

//---------------------------------------------------------------------
//-- ****************************************************************
//--               DHTML Menu Functions Begin Below
//-- ****************************************************************
//---------------------------------------------------------------------

//-----------------------------------------------------------------------------
//-- Here we establish the objRef and the objStyle to be evaluated 
//-- in the show/hide functions below.
//-- Netscape 6 takes the DOM1-compliant document.getElementById
//-- IE 5.0 and up also supports document.getElementByID
//-- IE 5.0 and below supports document.all
//-- Netscape 4.0 requires document.layers
//-----------------------------------------------------------------------------

if (document.getElementById) 
{
	objRef="document.getElementById";
	objStyle=".style";
}
			
else if (document.all) 
{
	objRef="document.all";
	objStyle=".style";
}
else 
{
	objRef="document.layers";
	objStyle="";
}


//-----------------------------------------------------------------------------
//functions for hiding and showing the object itself.  Please do not alter.
//-----------------------------------------------------------------------------

function show(object) 
{
	if (objRef=="document.getElementById") {
	eval(objRef+'("'+object+'")'+objStyle+'.visibility = "visible"');
	}
	
	else {
	eval(objRef+'["'+object+'"]'+objStyle+'.visibility = "visible"');
	}
}
	
function hide(object) {
	if (objRef=="document.getElementById") {
	eval(objRef+'("'+object+'")'+objStyle+'.visibility = "hidden"');
	//alert("closed:" + object);
	}
	
	else {
	eval(objRef+'["'+object+'"]'+objStyle+'.visibility = "hidden"');
	}	
	}

//-----------------------------------------------------------------------------
//-- This function shows the menu
//-- Any open menus will be hidden before the selected menu is shown
//-- Here we disable the showMenu function for IE 4.0 and Windows NT
//-- as there are known bugs in this version of IE
//-- Here we also set our variable lastMenu which is required for mouse tracking
//-----------------------------------------------------------------------------

function showMenu(object)
{
		show(object);
}		

