// Init Global Variables so we don't hard code
// any values in the functions.

var timerID 			= 0;
var idPrefix			= 'subMenu_0';
var showClass			= 'show';
var hideClass			= 'hide';
var numOfMenus			= 8;


function showMenuFlat( which ) {
	clearTimeout( timerID );
	hideMenuFlat();
	theMenu 							= document.getElementById( idPrefix + which );
	theMenu 							= eval( theMenu );
	theMenu.className 			= showClass;
}

function hideMenuFlat() {
	clearTimeout( timerID );
	for ( i=1; i<=numOfMenus; i++ ) {
		theMenu 						= document.getElementById( idPrefix + i );
		theMenu 						= eval( theMenu );
		theMenu.className 		= hideClass;
	}
}

// ----------------------------------------------------------------------
// Set up timer for menu hide onmouseout
// ----------------------------------------------------------------------
//alert('test');
function hideCountdownFlat() {
      timerID = setTimeout( "hideMenuFlat()", 500 );
}
/*
function show(which) {
  if (document.all && document.getElementById) {
    for(i=1; i< which.childNodes.length; i++) {
      node = which.childNodes[i];

      if( node.nodeName=="UL" ) {

        node.className+="drop";
	
      }
    }
  }
}
function hide(which) {
  if (document.all && document.getElementById) {
    for(i=1; i< which.childNodes.length; i++) {
      node = which.childNodes[i];
      if( node.nodeName=="UL" ) {
        node.className=node.className.replace("drop","");
alert(node.className);
      }
    }
  }
}
*/

function m_show(which) {
  if (document.all && document.getElementById) {
    for(i=1; i< which.childNodes.length; i++) {
      node = which.childNodes[i];
      if( node.nodeName=="UL" ) {
        node.className+="drop";
	//alert(node.className);
      }
    }
  }
}
function m_hide(which) {
  if (document.all && document.getElementById) {
    for(i=1; i< which.childNodes.length; i++) {
      node = which.childNodes[i];
      if( node.nodeName=="UL" ) {
        node.className=node.className.replace("drop","");
      }
    }
  }
}