var sagepath='';
function productsOut(){
	document.products.src= sagepath + "/images/products.off.gif";
}
function productsOver(){
	document.products.src=sagepath + "/images/products.over.gif";
}
function companyOut(){
	document.company.src=sagepath + "/images/company.off.gif";
}
function companyOver(){
	document.company.src=sagepath + "/images/company.over.gif";
}
function purchaseOut(){
	document.purchase.src=sagepath + "/images/cfs.off.gif";
}
function purchaseOver(){
	document.purchase.src=sagepath + "/images/cfs.over.gif";
}

mainMenu = new Menu ('mainMenu',560,-3);
        // PREFS
	autoHide_activate='true';
	autoHide_seconds=30;
	mainMenu.m_dec_default_submenu='';

        mainMenu.m_vertical  = false; // If true menu is vertical
        mainMenu.sm_width  = 170; // Width of submenu items
        mainMenu.sm_height  = 25; // Height of submenu items
        mainMenu.sm_border = 0;
        mainMenu.h_offset  = -50; // Horizontal offset in relation to previous menu
        mainMenu.v_offset  = 3; // Vertical offset in relation to previous menu
        mainMenu.l_m_color  = '#3333AA'; // If sm_border > 0 border color of initial menu
        mainMenu.l_sm_color  = '#CCCCCC'; //'#CCFFFF'; // If sm_border > 0 border color of submenus
        mainMenu.m_color  = 'none'; //'#666666';  //'#3333AA';  // Color of initial menu
        mainMenu.m_a_color  = 'none'; //'#669999'; //mainMenu.m_color;
        mainMenu.m_txt_color  = '#000000';
        mainMenu.m_txt_a_color  = '#000000';//mainMenu.m_txt_color;
        mainMenu.m_txt_weight = 900;
        mainMenu.m_txt_link_weight = 900;
        mainMenu.m_txt_decoration = 'bold';
        mainMenu.m_txt_link_decoration = 'underline';
        mainMenu.sm_color  = '#FFFFFF'; //'#666666'; // Item color of submenus
        mainMenu.sm_a_color  = '#0099FF'; //'#669999'; //'#669999'; // Item color when mouseOver
        mainMenu.txt_color  = 'none';  // Color of initial menu
        mainMenu.txt_a_color  = '#FFFFFF'; // Item color of submenus
        mainMenu.txt_i_color  = 'gray'; // Item color of inactive items
        mainMenu.txt_weight = 700;
        mainMenu.txt_link_weight = 700;
        mainMenu.txt_decoration = 'bold';
        mainMenu.txt_link_decoration = 'underline';
        mainMenu.default_cursor ='default';
        mainMenu.link_cursor = 'hand';
        mainMenu.m_dec = '';//'<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#E1E6DF" width=250><font color="#000000" size=2><strong>hello world</font></strong></td></tr></table>'; // Right decoration of menu
        mainMenu.sm_sep = '<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#000000" width=250>&nbsp;</td></tr></table>';//(NN)? '----------' : '<HR width="90%">'; // Separator Image
        mainMenu.sm_arrow = ''; //'<img src="' + sagepath + '/images/iconYouarehere.gif" border="0" hspace="3" align="right">'; // Arrow image
        mainMenu.sm_left_arrow = '';//'<img src="' + sagepath + '/images/mini_left.gif" border="0" hspace="3" align="right">'; // Left arrow image
        mainMenu.sm_current = '';//'<img src="' + sagepath + '/images/v.gif" border="0" hspace="3" align="right">'; // Current Image

//Menu definition
mainMenu.addItem ('<img name="products" border=0 src="' + sagepath + '/images/products.off.gif" onMouseOver="javascript:productsOver()" onMouseOut="javascript:productsOut()">',{'url':'','theWidth':100,'theHeight':37},false);
    mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong><strong>325EV Voice Responder</font></strong></strong></td></tr></table>',sagepath + '/325ev.html',false);
    mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong><strong>375A Signaling Monitor</font></strong></td></tr></table>',sagepath + '/375.html',false);
	mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong><strong>923 Auto Loop Test System</font></strong></td></tr></table>',sagepath + '/923.html',false);
    mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong><strong>925VST VoP Service Tester</font></strong></td></tr></table>',sagepath + '/925VST.html',false);
    mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong><strong>930i International Test Set</font></strong></td></tr></table>',sagepath + '/930.html',false);
    mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong><strong>935AT Portable Test Set</font></strong></td></tr></table>',sagepath + '/935AT.html',false);
    mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong>94x Remote Test System</font></strong></td></tr></table>',sagepath + '/900series.html',false);
    mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong>950RTS Test System</font></strong></td></tr></table>',sagepath + '/950.html',false);
	mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong>960B Test System</font></strong></td></tr></table>',sagepath + '/960_B.html',false);
	mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong>966R Test Server</font></strong></td></tr></table>',sagepath + '/966_R.html',false);
	mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong>Product Overview</font></strong></td></tr></table>',sagepath + '/voip-testing-echo-delay-fax-voice-quality-test-solutions.html',true);
mainMenu.addItem ('<img name="company" border=0 src="' + sagepath + '/images/company.off.gif" onMouseOver="javascript:companyOver()" onMouseOut="javascript:companyOut()">',{'url':'','theWidth':98,'theHeight':37},false);
    mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong>Sage e.News</font></strong></td></tr></table>',sagepath + '/subscribe.php',false);
    mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong>About Sage Instruments</font></strong></td></tr></table>',sagepath + '/about.html',false);
    mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong>Career Opportunities</font></strong></td></tr></table>',sagepath + '/jobs.html',false);
    mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong>Contact Information</font></strong></td></tr></table>',sagepath + '/contact.html',false);
    mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong>Press Room</font></strong></td></tr></table>',sagepath + '/pressRoom.html',true);
mainMenu.addItem ('<img name="purchase" border=0 src="' + sagepath + '/images/cfs.off.gif" onMouseOver="javascript:purchaseOver()" onMouseOut="javascript:purchaseOut()">',{'url':'','theWidth':95,'theHeight':37},false);
    mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong>Sales</font></strong></td></tr></table>',sagepath + '/sales.html',false);
    mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong>Customer Service</font></strong></td></tr></table>',sagepath + '/customerService.html',false);
    mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong>Technical Support</font></strong></td></tr></table>',sagepath + '/technicalSupport.html',false);
	mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong>Technical Publications</font></strong></td></tr></table>',sagepath + '/techPubs.html',false);
	mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong>GUI Downloads</font></strong></td></tr></table>',sagepath + '/guiDownloads.html',false);
	mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong>User Manuals</font></strong></td></tr></table>',sagepath + '/manuals.html',false);
	mainMenu.addItem ('<table border=0 cellpadding=4 cellspacing=0><tr><td bgcolor="#DEDBCB" width=170><font color="#000000" size=1><strong>RMA Request</font></strong></td></tr></table>',sagepath + '/rmaDir.html',false);

mainMenu.doMenu();

//control
if (document.layers){
    document.onMouseDown = hideMenus;
} else {
    document.body.onclick = hideMenus;
}

