    //Display the mainnav submenus
    function showMenu(menuID) {
        document.getElementById(menuID).style.visibility = 'visible';
    }
    //Hide Menu
    function hideMenu(menuID) {
        document.getElementById(menuID).style.visibility = 'hidden';
    }
    //Set the timer for hiding menu
    function delayHideMenu(menuID) {
        delayhide=setTimeout("hideMenu('"+menuID+"')",50);
    }
    //Reset the timer for hiding the menu
    function clearHideMenu(menuID) {
        if (typeof delayhide!="undefined") {
            clearTimeout(delayhide);
        }
    }
    
    
//This is for the image swap on the hand logo

var blnDOMSUPPORT = (document.getElementById) ? true : false;
window.onload = window_load;



function window_load()
   {

   if ( blnDOMSUPPORT )
      {

      document.getElementById('icon1').onmouseover = swapimage;
      document.getElementById('icon2').onmouseover = swapimage;
      document.getElementById('icon3').onmouseover = swapimage;
      
      }
   else
      {

      document.image['icon1'].onmouseover = swapimage;
      document.image['icon2'].onmouseover = swapimage;
      document.image['icon3'].onmouseover = swapimage;



      }

   }

function swapimage()
   {
   
   if ( blnDOMSUPPORT )
      {

      var imgMain = document.getElementById('mainimage');
      var divParent;

      // create new image element
      var imgNew = document.createElement('img');

      // give it an image
      // here I use the src of the icon just for convenience
      // you'd want to somehow determine the src of your desired image
      imgNew.src = this.src;


/*
var icon1 = ['/uwhand/images/LogoSHOULDER.jpg'];
var icon2 = ['/uwhand/images/logoELBOW.jpg'];
var icon3 = ['/uwhand/images/LogoHAND.jpg'];
*/

      // give it an id
      imgNew.id = 'mainimage';
      

      
      // replace image
      divParent = imgMain.parentNode;
      divParent.replaceChild(imgNew, imgMain);


      }
   else
      {

      // old school image swap
      document.images['mainimage'].src = this.src;

      alert( 'old school' );

      }
   
   }       
   
   
   
   