var MENU_FOCUSED1 = false;
var MENU_NAME1 = '';

IE4 = (document.all) ? 1 : 0;       // browser is Internet Explorer 4
NS4 = (document.layers) ? 1 : 0;    // browser is Netscape 4

ver4 = (IE4 || NS4) ? 1 : 0;  // know that we have version 4 browser
// this will be required for non-dhtml browsers

function hoverMenu1(whichElement1,status) {
	
	arrayOfLayers1 = ['aboutdiv','newsdiv','memdiv'];
	maxNbrOfLayers1 = 3;
	if (status == true) {
		setMenuFocused1()
		vis = 'visible';
	}
	else if (status == false) {
		vis = 'hidden';
	}


	// checking which browser
	if (IE4) {
		for (i=0;i<maxNbrOfLayers1;i++) {
			layerName = arrayOfLayers1[i];
			if (layerName == whichElement1) {
				// get its index first
				layerIndex = i;
				theElement = eval('document.all.'+arrayOfLayers1[i]+'.style');
				theElement.visibility=vis;
			} // check if layer exists
			else {
				theElement = eval('document.all.'+arrayOfLayers1[i]+'.style');
				theElement.visibility='hidden';
			} // set other layers to hidden

		} // end if for loop
	} // end of IE4

	else if (NS4) { // netscape or similar browser
	for (i=0;i<maxNbrOfLayers1;i++) {
		layerName = arrayOfLayers1[i];
		if (layerName == whichElement1) {
			// get its index first
			layerIndex = i;
			theElement = eval("document." + arrayOfLayers1[i]);
			theElement.visibility=vis;
		} // check if layer exists
		else {
			theElement = eval("document." + arrayOfLayers1[i]);
			theElement.visibility='hidden';
		} // set other layers to hidden


	} // end if for loop
	} // end of NS
	else { // for Opera browser
	for (i=0;i<maxNbrOfLayers1;i++) {
		layerName = arrayOfLayers1[i];
		if (layerName == whichElement1) {
			// get its index first
			layerIndex = i;
			theElement = eval(document.getElementById(arrayOfLayers1[i])).style;
			theElement.visibility=vis;
		} // check if layer exists
		else {
			theElement = eval(document.getElementById(arrayOfLayers1[i])).style;
			theElement.visibility='hidden';
		} // set other layers to hidden

	} // end if for loop
	} // end of Opera

} // end hoverOver function

function startHideMenu1(whichElement1) {
	//alert('hhhhh');
	MENU_FOCUSED1 = false;
	MENU_NAME1 = whichElement1;
	setTimeout("hideMenu1()",500);
	return;
} // end startHideMenu()

function hideMenu1() {
	if (!MENU_FOCUSED1) hoverMenu1(MENU_NAME1,false);
	return;
} // end hideMenu()

function setMenuFocused1() {
	MENU_FOCUSED1 = true;
} // end setMenuFocused



