isNav6 = true; /* browser detection doesn't work correctly all the time due to newer browsers.
				 this is an OK hedge, since the CGI will take care of browser detection in perl */



/*
 *
 * Given an id and a property (as strings), set
 * the given property of that id to the value provided.
 *
 * The property is set directly on the tag, not in the
 * stylesheet.
 *
 */
function setIdProperty( id, property, value )
{
    if (isNav6)
    {
        var styleObject = document.getElementById( id );
        if (styleObject != null)
        {
            styleObject = styleObject.style;
            styleObject[ property ] = value;
        }
        
    }
    else if (isNav4)
    {
        document[id][property] = value;
    }
    else if (isIE4)
    {
         document.all[id].style[property] = value;
    }
}



/* show a menu by ID */
function showMenuByID( whichMenu ) {
	
}

/* hide a menu by ID */
function hideMenuByID( whichMenu ) {
	

}


/* Rollover a menu by ID */
function hoverMenu( whichMenuItem ) {
	
	
}


/* Rollover a sub-menu by ID */
function hoverSub( whichMenuItem ) {
	
}

/* Roll out of any menu/sub-menu */
function unhover( whichMenuItem ) {
	
	
}




/* used on why vent page - control which ventilation type is displayed */
currentVentType = "default";
function showVentType( whichType ) {
	setIdProperty(currentVentType, 'display', 'none');
	setIdProperty(whichType, 'display', 'block');
	currentVentType = whichType;
	
}
