//////////////////////////////////////////////////////////////////////////// // Toolbar.js // // Written By PowerWeb Development // // Date: 18-Sep-2000 // // var flag = ( navigator.userAgent.indexOf("MSIE") >=0 && parseInt( navigator.appVersion ) >= 4); var displaymenu = null; //Respond to mouseover and mouseout events if ( flag ) { document.onmouseover=mouseover; document.onmouseout=mouseout; } function OpenMenu(eSrc,eMenu) { // need this for mac eMenu.style.top = divMenuBar.offsetHeight + divMenuBar.offsetTop ; //Make the Menu Visible eMenu.style.visibility = "visible"; displaymenu = eMenu; } //Hide the Menu function CloseMenu(eMenu) { eMenu.style.visibility = "hidden"; displaymenu = null; } function statusmsg(msg) { window.status = msg; return true; } function OurCheckAll( state ) { var theForm = document.forms(0); var eSrc = window.event.srcElement; for ( i = 0; i < theForm.length; i++ ) { //theForm.item( i ).checked = state; if ( theForm.item(i).className == 'AVNCheckbox' ) { if ( eSrc.checked ) theForm.item(i).checked = true; else theForm.item(i).checked = false; } } } //Set what happens when the Mouse is over a menu item function mouseover() { if ( flag ) { //Set up a variable to detect what item it is over var eSrc = window.event.srcElement; //Check if it is a ToolBar element if ( eSrc.className == "Toolbar" || eSrc.className == "ToolbarURL" ) { eSrc.style.background = "white"; eSrc.style.color = "black"; } if ( eSrc.className == "AVNMenu" ) { eSrc.style.background = "#ffbc19"; eSrc.style.color = "black"; } } } function mouseout() { if ( flag ) { var eSrc = window.event.srcElement; if ( eSrc.className == "Toolbar" || eSrc.className == "ToolbarURL" ) { eSrc.style.background="#ffbc19"; } if ( eSrc.className == "AVNMenu" ) { eSrc.style.background = "#000000"; eSrc.style.color = "#ffbc19"; } } } //Action the change to draw the menu function drawmenus() { var str=''; if ( flag ) { // Code to display the "Home" Menu str += '
'; // Code to display the "Support" Menu str += ''; // Code to display the "Resources" Menu str += ''; // Code to display the "Training" Menu str += ''; // Code to display the "Administration" Menu str += ''; // Go Write that string! document.write( str ) } } function AVNMenuText( txt ) { MenuTextPane.innerText = txt; }