
  //this menu can not be seen if it is clipped by a frame or a window.  there is a beta2 task to enable display:popup. 

  function showMenu() { 
     //this function will position and display a nested div that acts like a menu 
     whichDiv=event.srcElement; 
     if (whichDiv.src) {
       whichDiv=whichDiv.parentNode;
     }
     if (whichDiv.href) {
       menu1.style.posLeft=event.clientX+document.body.scrollLeft; 
       menu1.style.posTop=event.clientY+document.body.scrollTop; 
       menu1.style.display=""; 
       menu1.style.visibility = 'visible'
      menu1.setCapture();
     }
     else {
       menu1.releaseCapture();
       menu1.style.visibility = 'hidden'
     }
  } 

  function toggleMenu() { 
     //as the mouse moves over the menuItems, highlight them 
     el=event.srcElement; 
     if (el.className=="menuItem") { 
        el.className="highlightItem"; 
     } else if (el.className=="highlightItem") { 
        el.className="menuItem"; 
     } 
  } 

  function clickMenu() { 
    //when the custom menu is visible (and capturing events), 
    //this handler runs after a click event.  if one of the 
    //menu items is clicked, it takes appropriate action. 
    //otherwise, it just hides the menu. 
    menu1.style.display="none"; 
    el=event.srcElement; 

    if (el.id == "mnuOpn") { 
      //alert(whichDiv.target + "  " + whichDiv.href)
      //alert(whichDiv.src)
      //if (whichDiv.src) {
      //  alert(whichDiv.parentNode.target + "  " + whichDiv.parentNode.href)
      //}
        
      if (whichDiv.target) {
        if (whichDiv.target == "_self") {
          top.location.href = whichDiv.href
        }
        else {
          //target found
          newwindow=window.open(whichDiv.href,whichDiv.target);
	      if (window.focus) {newwindow.focus()}
	    }
      }
      else {
        //default - same window
        top.location.href = whichDiv.href
      }
    }
    else if (el.id == "mnuOpnNewWin") { 
       newwindow=window.open(whichDiv.href);
	   if (window.focus) {newwindow.focus()}
    }
    else if (el.id == "mnuCpyShct") {

      if( window.clipboardData && clipboardData.setData ) { 
        //ie fkt
        window.clipboardData.setData("text", whichDiv.href);
      } 
      else { 
        alert("Internet Explorer required"); 
      } 
    }

    menu1.releaseCapture(); 
  } 



