// JavaScript Document
function actMenuItem(id) {
  var sm_id;
	//Hide all submenus
	hideSubMenus();
	//Change menu item colors
	//if (document.all && document.getElementById) {document.getElementById(id).style.backgroundColor = '#000033';} 	//IE
	//else if (document.layers) {document.layers[id].bgcolor = '#000033';}  //NN4
	//else if (!document.all && document.getElementById) {document.getElementById(id).style.backgroundColor = '#000033';} //NN6
	
  //Submenus
  if (id != 'mm_1') {
		//Determine submenus
		if (id == 'mm_2') {
		  sm_id = 'sm_2';
			//Show submenu
			if (document.all) {document.getElementById(sm_id).style.visibility = 'visible';} 	//IE
			else if (document.layers) {document.layers[sm_id].visibility = 'visible';}  //NN4
			else if (!document.all && document.getElementById) {document.getElementById(sm_id).style.visibility = 'visible';} //NN6
		}
	}
}

function inactMenuItem(id) {
  //Change menu item colors
  //if (document.all) {document.getElementById(id).style.backgroundColor = '#8CA0C7';} 	//IE
	//else if (document.layers) {document.layers[id].bgcolor = '#8CA0C7';}  //NN4
	//else if (!document.all && document.getElementById) {document.getElementById(id).style.backgroundColor = '#8CA0C7';} //NN6	
}

function actSubMenuItem(id) {
  if (document.all) {document.getElementById(id).style.backgroundColor = '#FFFFFF';} //IE
	else if (document.layers) {document.layers[id].bgcolor = '#FFFFFF';} //NN4
  else if (!document.all && document.getElementById) {document.getElementById(id).style.backgroundColor = '#FFFFFF';}	//NN7
}

function inactSubMenuItem(id) {
  if (document.all) {document.getElementById(id).style.backgroundColor = '#CCCCCC';}//IE
	else if (document.layers) {document.layers[id].bgcolor = '#CCCCCC';}//NN4
  else if (!document.all && document.getElementById) {document.getElementById(id).style.backgroundColor = '#CCCCCC';}	//NN7	
}

function hideSubMenus() {
  if (document.all && document.getElementById) {  //IE
		document.all.sm_2.style.visibility = "hidden";
	}
	else if (document.layers) {   //NN4
	  document.layers[sm_2].visibility = 'hidden';
	}
	else if (!document.all && document.getElementById) {  //NN6
    document.getElementById("sm_2").style.visibility = 'hidden';	
	} 
}

/* 
if(document.getElementById(id).style.visibility){ 
if(document.getElementById(id).style.getAttribute("visibility")=="hidden"){ 
document.getElementById(id).style.setAttribute("visibility",visible)} 
                                               else 
if(document.getElementById(id).style.getAttribute("visibility")=="visible"){ 
document.getElementById(id).style.setAttribute("visibility",hidden)} 
                                                else { 
alert("Your browser does not support proper display of this menu, please 
upgrade or change browsers.")}; 
*/
