if ( trans==null ) var trans=true; if ( duration==null ) var duration=0.5; menuOn=false; document.onclick=hidemenu2; // Test for Internet Explorer 4.0 function IsIE4() { return ( navigator.appName == "Microsoft Internet Explorer" && parseInt( navigator.appVersion ) >= 4 ); } // Shows the menu function showmenu2( menuNum ) { if ( IsIE4() ) { var a=document.all.item("menu"); // Only allow mouseover to take place after the document is completely loaded if ( document.readyState == "complete" ) { hidemenu(); // Hide every other menu which might be displaying at this time toggleFlash(); // Show the desired menu if ( a(menuNum)) { // Check if the menu exists, if not, ignore if ( a(menuNum).filters.item(0) && trans==true ) { // Only apply transition if its defined in the menu itself, otherwise, simply make it visible a(menuNum).filters.item(0).transition=6; // Set Transition to "wipe down" if ( a(menuNum).filters.item(0).status == 0 ) a(menuNum).filters.item(0).apply(); // Apply the transition effect a(menuNum).style.visibility="visible"; // Set the final state of the menu (i.e. make it visible) a(menuNum).filters.item(0).play( duration ); // "Play" the transition } else a(menuNum).style.visibility="visible"; // Simply make the menu visible if it has no transition filters defined } } menuOn=true; return true; } } // Hides the menu function hidemenu2() { var a; if ( IsIE4() ) { if ( menuOn ) { a=document.all.item("menu"); if ( a != null ) { if ( a.length != null ) { for (i=0; i