/* How To:

Paste in head section of the masterpage:
<script language="JavaScript" type="text/javascript" src="javascript/dropdownmenu.js"></script>

<div id="01" class="DropDown" onmouseover="ShowSubMenu('01')" onmouseout="HideSubMenu('01');">
<a href="index.html" title="Home" class="menuitem">Home</a>";
</div>
<div id="sub_01" class="DropdownMenu" style="display:none;" onmouseover="ShowSubMenu('01');" onmouseout="HideSubMenu('01');">
-links and whatnot..
</div>

*/


// Shows a submenu belonging to a specific id.
function ShowSubMenu(id)
{
    var subDiv = document.getElementById('sub_'+id);
    
    if(subDiv != null)
    {
        subDiv.style.display = "inline";
    }
}

// Hides a submenu belonging to a specific id.
function HideSubMenu(id)
{
    var subDiv = document.getElementById('sub_'+id);
    
    if(subDiv != null)
    {
        subDiv.style.display = "none";
    }
}
