/**
 * (de)activates the first tab in the navigation flyout. Usually called when
 * the mouse enters/leaves a top navigation element.
 * 
 * @param object o LI object which triggers the event. The tab element is
 * determined relatively to this.
 * @param boolean hide (optional) If true, deactivate the tab (onmouseout).
 * Otherwise activate it (onmouseover).
 */
function navigationLevel2Activate(o, hide)
{
    var c = 'Level2 Level2First';
    if (typeof(hide) != "undefined" && hide == true) {
        c = 'Level2';
    }
    // check if a flyout exists
    if (o.parentNode.getElementsByTagName('div').length <= 0) {
        return false;
    }
    
    o.parentNode.getElementsByTagName('div')[0].getElementsByTagName('ul')[0].getElementsByTagName('li')[0].className = c;
}
