/*
** Global Variables
*/
var SubMenus = new Array( );


function SetGlobals( )
{
    /* SubMenu Items */
    SubMenus[0] = document.getElementById('ProductsSubMenu');
}





/*
** 
** Makes the submenus appear and disappear in the menu.
** 
*/
function ToggleMenu( mymenu )
{
    for( x=0; x<SubMenus.length; x++ )
    {
        SubMenus[x].style.display = 'none';
    }
    SubMenus[mymenu].style.display = 'block';
}




/*
** 
** Opens rellink in a new browser window.
** 
*/
function NewWindow( rellink )
{
    var begin = rellink.substr(0,7);
    
    if( begin == "http://" )
    {
        window.open(rellink);
    }
    else
    {
        var absolutelink = 'http://www.hatterasinstruments.com/' + rellink;
        window.open( absolutelink );
    }  
}




function PageSetup( )
{
    SetGlobals( );
}


window.onload = PageSetup;





/* Debugging Example
debugw = document.getElementById("debugwindow");
debugw.innerHTML = "<p>containerheight = " + document.getElementById("container").clientHeight + " </p>" + 
                   "<p>transheader = " + document.getElementById("transheader").clientHeight + " </p>" +                       
                   "<p>transbody = " + document.getElementById("transbody").clientHeight + " </p>" +
                   "<p>transfooter = " + document.getElementById("transfooter").clientHeight + " </p>"
                   ;
*/


