<!--
var menu_timer = new Array();
var menu_cell = "";
var menu_a = ""
var highlight = '#c5d8ef';
var menu_status = new Array();
var browser;

function browser(){
	if (document.all){
		browser = 'ie'
	}else if (document.getElementById){
		browser = 'moz'
	}else if (document.layers){
		browser = 'ns4'
	}
	return browser
}
browser = browser()

function persistent_highlight(cell,a_tag){
	close_all_subs()
	menu_cell = cell
  menu_a = a_tag
}
function mouseon(cell,submenu,a_tag){
	if (browser != 'ns4'){
		cell.style.backgroundColor = highlight;
    menu_div(a_tag).color='#000000';
	}
	if (submenu){
		submenu_on(submenu)
	} else {
		close_all_subs()
	}
}
function mouseout(cell,submenu,a_tag){
	
	if (browser != 'ns4' && menu_cell != cell){
		cell.style.backgroundColor = ""
    menu_div(a_tag).color="";
	}
	if (submenu){
		submenu_off(submenu)
	}
}


function menu_div(div_name){
	
	if (browser == 'ie'){
		construct = document.all[div_name].style;
	}else if (browser == 'moz'){
		construct = document.getElementById(div_name).style
	}else if (browser == 'ns4'){
		construct = document.layers[div_name]
	}
	return construct
}
function subClick(href){
	document.location.href = href
}
function submenu_on(menu){
	menu_status[menu] = 0;
	close_all_subs();
	clear_timer(menu);
	menu_status[menu] = 1;
	menu_div(menu).visibility = 'visible';
  
}
function submenu_off(menu){
	set_timer(menu)
}
function close_menu(menu){
		menu_div(menu).visibility = 'hidden';
		menu_status[menu] = 0;
		if (!document.layers) {
      menu_cell.style.backgroundColor = "";
      menu_div(menu_a).color = "";
    }
}
function set_timer(menu){
	menu_timer[menu] = setTimeout("close_menu('"+menu+"')",1000)
}
function clear_timer(menu){
	clearTimeout(menu_timer[menu]);
}
function close_all_subs(){
	for (a in menu_status){
		if (menu_status[a] == 1) {
			close_menu(a);
			clear_timer(a);
		}
	}
}

// -->