/*
 * Copyright (c) 2003 Software AG Belgium
 *
 * based on work from
 *   Copyright (c) 2001-2002, Morten Wang & contributors
 *   All rights reserved.
 *
 * released under the following license
 *   This software is released under the BSD License which should accompany
 *   it in the file "COPYING".  If you do not have this file you can access
 *   the license through the WWW at http://www.treemenu.com/license.txt
 */

if ( ( navigator.appName == "Netscape" &&
       parseInt(navigator.appVersion) >= 3 &&
       navigator.userAgent.indexOf("Opera") == -1 ) ||
     ( navigator.appName == "Microsoft Internet Explorer" &&
       parseInt(navigator.appVersion) >= 4 ) ||
     ( navigator.appName == "Opera" &&
       parseInt(navigator.appVersion) >= 5 ) )
{
    var frame_name = "code";
    for ( i = 0; i < parent.frames.length; ++i )
    {
        if ( parent.frames[i].name == frame_name && parent.frames[i].Menu &&parent.frames[i].Menu.loaded )
        {
            parent.frames[i].Menu.setTracking( true );
            setTimeout( "parent.frames[" + i + "].Menu.display()", 50 );
            break;
        }
    }
}


