  var currOpen = null;
  var currOpenP = null;

  function toggleMenu(objID) {

    if (!document.getElementById) return;

    if (currOpen != null) { 
      currOpen.display = 'none'; 
      currOpen = null; 
    }
    if (currOpenP != null) { 
      currOpenP.display = 'none'; 
      currOpenP = null; 
    }

    var ob = document.getElementById(objID).style;

    if (ob.display == 'block') { 
      ob.display = 'none';

    } else { 
      ob.display = 'block';
      currOpen = ob; 

      // But we might have to open the parent too!
      if (objID.search(".") != -1) {
        var p = document.getElementById(objID.split(".")[0]).style;
        p.display = 'block';
        currOpenP = p;
        
      }

      // Redirect to the page clicked
//      location.href="http://torks.co.uk/newmenu.asp?menu=" + objID;

      // Update the content DIV
//      document.getElementById('content').innerHTML = objID + document.getElementById('content').innerHTML;
//      document.getElementById('content').innerHTML = "<!--#include virtual=""/utils/FolderDisplay.asp""-->" ;
//      document.refresh;
//      document.getElementById('content').innerHTML = "Hello <B>World</B> from " + objID ;

    }
  }

  function refreshMenu(objID) {
    document.getElementById(objID).style.display = 'block';
    document.getElementById(objID.split(".")[0]).style.display = 'block';
  }
