 var m_TIM;
 var l_menu="";
 
 function getEID( elementId ) {
  if( document.getElementById ) {
   var theElement = document.getElementById( elementId );
  } else {
   if( document.all ) {
    var theElement = document.all[ elementId ];
   } else {
    var theElement = new Object();
   }
  }
  if( !theElement ) {
   return;
  } else {
   return(theElement);
  }
 }
 
 function showSub( elementId) {
  clearTimeout(m_TIM);
  if(elementId!=l_menu && l_menu!=''){
   hideDel(l_menu);
  }
  theElement=getEID( elementId );
  if( theElement.style ) { theElement = theElement.style; }
  theElement.display='block';
  }
 
 function inSub( elementId ) {
  clearTimeout(m_TIM);
 }
 
 function hideDel(elementId) {
  theElement=getEID( elementId );
  if( theElement.style ) { theElement = theElement.style; }
   theElement.display='none';
 }
 
 function hideSub(elementId) {
  cmd="hideDel('"+elementId+"');";
  m_TIM=setTimeout(cmd, 1000);
 }

