/* Syntaxes:
 *
 * menu[menuNumber][0] = new Menu('menu ID', left, top, width, 'mouseover colour',
 *'background colour', 'border colour');
 * Left and Top are measured on-the-fly relative to the top-left corner of its trigger.
 *
 * menu[menuNumber][itemNumber] = new Item('Text', 'URL', vertical spacing to next item, 
 *target menu number);
 * If no target menu (popout) is desired, set it to 0. All menus must trace back their
 * targets to the root menu! That is, every menu must be targeted by one item somewhere.
 * Even if you're not writing the root menu, you must still specify its settings here.
 */
var menu = new Array();
var url_base = ""
// Default colours passed to most menu constructors (just passed to functions, not
// a global variable - makes things easier to change later).
var defOver = '#003688', defBack = '#005488', defBorder = '#000000';
// Default height of menu items - the spacing to the next item, actually.
var defHeight = 22;
var subHeight = 16;
// Menu 0 is the special, 'root' menu from which everything else arises.
menu[0] = new Array();
// Pass a few different colours, as an example.
menu[0][0] = new Menu('rootMenu', 0, 90, 0, '', '', defBorder);
// Notice how the targets are all set to nonzero values...
menu[0][1] = new Item('menu_reporting', 'services_courtreporting.asp', defHeight, 1);
menu[0][2] = new Item('menu_360', '360_login.asp', defHeight, 2);
menu[0][3] = new Item('menu_media', 'services_videomedia.asp', defHeight, 3);
menu[0][4] = new Item('menu_company', 'company_ourcompany.asp', defHeight, 4);
menu[0][5] = new Item('menu_depo', 'schedule_depo.asp', defHeight, 5);
menu[0][6] = new Item('menu_contact', 'contact.asp', defHeight, 6);
menu[0][7] = new Item('menu_resources', 'howdoi_tips.asp', defHeight, 7);

menu[1] = new Array();
// The File menu is positioned 0px across and 22 down from its trigger, and is 80 wide.
menu[1][0] = new Menu('menu_reporting', 0, 30, 120, defOver, defBack, defBorder);
menu[1][1] = new Item('Realtime Reporting', 'CR_Realtime.asp', defHeight, 0);
menu[1][2] = new Item('Internet Depositions', 'CR_InternetDepositions.asp', defHeight, 0);
menu[1][3] = new Item('Transcript Formats', 'CR_TranscriptFormats.asp', defHeight, 0);
menu[1][4] = new Item('Exhibit Formats', 'CR_ExhibitFormats.asp', defHeight, 0);
menu[1][5] = new Item('Videoconferencing', 'services_videoconferencing.asp', defHeight, 0);
// Non-zero target means this will trigger a popup.

menu[2] = new Array();
menu[2][0] = new Menu('menu_360', 0, 30, 105, defOver, defBack, defBorder);
menu[2][1] = new Item('Spectrum360', 'https://www.spectrumreporting.com/360_login.asp', defHeight, 0);

menu[3] = new Array();
menu[3][0] = new Menu('menu_media', 0, 30, 141, defOver, defBack, defBorder);
menu[3][1] = new Item('Videography Services', 'VM_LegalVideo.asp', defHeight, 0);
menu[3][2] = new Item('Litigation Support', 'VM_LitigationSupport.asp', defHeight, 0);
menu[3][3] = new Item('Trial Presentation', 'VM_TrialPresentation.asp', defHeight, 0);
menu[3][4] = new Item('Video Synching', 'VM_VideoSynching.asp', defHeight, 0);
menu[3][5] = new Item('Settlement Videos', 'VM_SettlementVideos.asp', defHeight, 0);
menu[3][6] = new Item('Day-in-the-Life Videos', 'VM_DayInTheLife.asp', defHeight, 0);
menu[3][7] = new Item('Videoconferencing', 'services_videoconferencing.asp', defHeight, 0);

menu[4] = new Array();
menu[4][0] = new Menu('menu_company', -15, 30, 120, defOver, defBack, defBorder);
menu[4][1] = new Item('About Our Company', 'company_ourcompany.asp', defHeight, 0);
menu[4][2] = new Item('About Our People', 'company_ourpeople.asp', defHeight, 0);
menu[4][3] = new Item('Testimonials', 'company_testimonials.asp', defHeight, 0);
menu[4][4] = new Item('Map & Directions', 'company_directions.asp', defHeight, 0);

menu[5] = new Array();
menu[5][0] = new Menu('menu_depo', -10, 30, 120, defOver, defBack, defBorder);
menu[5][1] = new Item('Schedule Online', 'schedule_depo_short.asp', defHeight, 0);
menu[5][2] = new Item('Schedule by Phone', 'contact.asp', defHeight, 0);

menu[6] = new Array();
menu[6][0] = new Menu('menu_contact', -25, 30, 120, defOver, defBack, defBorder);
menu[6][1] = new Item('Our Contact Info', 'contact.asp', defHeight, 0);
menu[6][2] = new Item('Map & Directions', 'company_directions.asp', defHeight, 0);

menu[7] = new Array();
menu[7][0] = new Menu('menu_resources', -25, 30, 120, defOver, defBack, defBorder);
//menu[7][1] = new Item('Realtime Reporting', 'whatis_realtime_reporting.asp', defHeight, 0);
//menu[7][2] = new Item('Internet Deposition', 'whatis_InternetDeposition.asp', defHeight, 0);
//menu[7][3] = new Item('RealLegal Binder', 'whatis_reallegalbinder.asp', defHeight, 0);
//menu[7][4] = new Item('LiveNote', 'whatis_livenote.asp', defHeight, 0);
//menu[7][5] = new Item('CaseView', 'whatis_caseview.asp', defHeight, 0);
//menu[7][6] = new Item('Summation Blaze', 'whatis_summationblaze.asp', defHeight, 0);
//menu[7][7] = new Item('E-Transcript', 'whatis_etranscript.asp', defHeight, 0);
//menu[7][8] = new Item('RealLegal CD Bundle', 'whatis_reallegalcdbundle.asp', defHeight, 0);
//menu[7][9] = new Item('Trial Presentation', 'whatis_trialpresentation.asp', defHeight, 0);
//menu[7][10] = new Item('ASCII', 'howdoi_tips_ascii.asp', defHeight, 0);
menu[7][1] = new Item('Tips & Techniques', 'howdoi_tips.asp', defHeight, 0);
menu[7][2] = new Item('Legal Links', 'howdoi_links.asp', defHeight, 0);
menu[7][3] = new Item('Reporter Login', 'Reporter_Login.asp', defHeight, 0);
menu[7][4] = new Item('Read a Transcript', 'Read_Transcript.asp', defHeight, 0);
menu[7][5] = new Item('iBinder', 'ibinder.asp', defHeight, 0);


//menu[7] = new Array();
// This is across but not down... a horizontal popout (with crazy colours :)...
//menu[7][0] = new Menu('sub_ourpeople', 145, 0, 140, defOver, '#3376A0', defBorder);
//menu[7][1] = new Item('<small>Barbara Rogers, <i>President</i></small>','company_ourpeople_Barbara_Rogers.asp',subHeight,0);
//menu[7][2] = new Item('<small>Tom Rees</small>','company_ourpeople_Tom_Rees.asp',subHeight,0);
//menu[7][3] = new Item('<small>Lisa Adkins</small>','company_ourpeople_Lisa_Adkins.asp',subHeight,0);
//menu[7][4] = new Item('<small>Kim Betz</small>','company_ourpeople_Kim_Betz.asp',subHeight,0);
//menu[7][5] = new Item('<small>Melissa Fox</small>','company_ourpeople_Melissa_Fox.asp',subHeight,0);
//menu[7][6] = new Item('<small>Christy Heaney</small>','company_ourpeople_Christy_Heaney.asp',subHeight,0);
//menu[7][7] = new Item('<small>Allison Kimmel</small>','company_ourpeople_Allison_Kimmel.asp',subHeight,0);
//menu[7][8] = new Item('<small>Diana Lea</small>','company_ourpeople_Diana_Lea.asp',subHeight,0);
//menu[7][9] = new Item('<small>Carmen Maley</small>','company_ourpeople_Carmen_Maley.asp',subHeight,0);
//menu[7][10] = new Item('<small>Gale Martin</small>','company_ourpeople_Gale_Martin.asp',subHeight,0);
//menu[7][11] = new Item('<small>Laurel McDaid</small>','company_ourpeople_Laurel_McDaid.asp',subHeight,0);
//menu[7][12] = new Item('<small>Brady Miller</small>','company_ourpeople_Brady_Miller.asp',subHeight,0);
//menu[7][13] = new Item('<small>LouAnn Morrison</small>','company_ourpeople_LouAnn_Morrison.asp',subHeight,0);
//menu[7][14] = new Item('<small>Reva Mundy</small>','company_ourpeople_Reva_Mundy.asp',subHeight,0);
//menu[7][15] = new Item('<small>Stacy Rowley</small>','company_ourpeople_Stacy_Rowley.asp',subHeight,0);
//menu[7][16] = new Item('<small>Tracy Schell</small>','company_ourpeople_Tracy_Schell.asp',subHeight,0);
//menu[7][17] = new Item('<small>Bernae Walker</small>','company_ourpeople_Bernae_Walker.asp',subHeight,0);
//menu[7][18] = new Item('<small>Rebecca Williams</small>','company_ourpeople_Rebecca_Williams.asp',subHeight,0);



// Now, this next bit of script will write our own custom root menu -- a horizontal
// one, as the defaults are all vertical with borders. Even if you are writing your
// own root menu, you must still specify the names, colours and targets above -- the
// positions are calculated on the fly and hence are ignored.
// Basically, you must duplicate the output of the writeMenus() function. Just work
// from this example.
// Syntax: startDL('id', x, y, width, height, 'visibility', '#background colour or null
//for transparent', '#border colour or null for no border', 'additional properties');
// It returns a string of HTML text comprising the opening tag of a div or layer.
// mouseProps(menu, item) returns the 'onMouseEvent' properties for a specific menu item,
// passed as 'additional properties' to startDL. Just cut and paste below, or allow the
// script to write its own root menu.
// endDL is a variable containing either '</div>' or '</layer>', so add it afterwards.
newRoot = startDL('rootMenu', 0, 54, '100%', 36, 'hidden', '', null, 100, '');
newRoot += startDL('rootMenu1', 0, 54, 109, 36, 'inherit', '', null, 100, mouseProps(0, 1));
newRoot += '<span class="Item"><a onmouseover="chg_button(\'reporting2\',\'on\');" onmouseout="chg_button(\'reporting2\',\'off\');"><img alt="Court Reporting Services" name="reporting2" border="0" src="images/button_reporting2_off.gif" width="109" height="30"></a></span>' + endDL;
newRoot += startDL('rootMenu2', 109, 54, 141, 36, 'inherit', '', null, 100, mouseProps(0, 2));
newRoot += '<span class="Item"><a onmouseover="chg_button(\'videosynching\',\'on\');" onmouseout="chg_button(\'videosynching\',\'off\');"><img alt="Video Synching Services" name="videosynching" border="0" src="images/button_videosynching_off.gif" width="102" height="30"></a></span>' + endDL;
newRoot += startDL('rootMenu3', 211, 54, 127, 36, 'inherit', '', null, 100, mouseProps(0, 3));
newRoot += '<span class="Item"><a onmouseover="chg_button(\'media2\',\'on\');" onmouseout="chg_button(\'media2\',\'off\');"><img alt="Video and Media Services" name="media2" border="0" src="images/button_media2_off.gif" width="141" height="30"></a></span>' + endDL;
newRoot += startDL('rootMenu4', 352, 54, 94, 36, 'inherit', '', null, 100, mouseProps(0, 4));
newRoot += '<span class="Item"><a onmouseover="chg_button(\'company2\',\'on\');" onmouseout="chg_button(\'company2\',\'off\');"><img alt="About Our Company" name="company2" border="0" src="images/button_company2_off.gif" width="94" height="30"></a></span>' + endDL;
newRoot += startDL('rootMenu5', 446, 54, 108, 36, 'inherit', '', null, 100, mouseProps(0, 5));
newRoot += '<span class="Item"><a onmouseover="chg_button(\'depo2\',\'on\');" onmouseout="chg_button(\'depo2\',\'off\');"><img alt="Schedule a Deposition" name="depo2" border="0" src="images/button_depo2_off.gif" width="108" height="30"></a></span>' + endDL;
newRoot += startDL('rootMenu6', 554, 54, 78, 36, 'inherit', '', null, 100, mouseProps(0, 6));
newRoot += '<span class="Item"><a onmouseover="chg_button(\'contact2\',\'on\');" onmouseout="chg_button(\'contact2\',\'off\');"><img alt="Contact Spectrum Reporting" name="contact2" border="0" src="images/button_contact2_off.gif" width="78" height="30"></a></span>' + endDL;
newRoot += startDL('rootMenu7', 632, 54, 93, 36, 'inherit', '', null, 100, mouseProps(0, 7));
newRoot += '<span class="Item"><a onmouseover="chg_button(\'resources2\',\'on\');" onmouseout="chg_button(\'resources2\',\'off\');"><img alt="Resources" name="resources2" border="0" src="images/button_resources2_off.gif" width="93" height="30"></a></span>' + endDL;
newRoot += endDL;
// Pass this two strings - the first is HTML to write a custom root menu, or null to
// generate one normally. The second is the popout indicator HTML - try an image...?
// Try writeMenus(null, '<img src="...">'); in your own script.
writeMenus(newRoot, '>>');
// This is a quick snippet that captures all clicks on the document and hides the menus
// every time you click. Use if you want.
if (isNS4) document.captureEvents(Event.CLICK);
document.onclick = clickHandle;
function clickHandle(evt) {
if (isNS4) document.routeEvent(evt);
hideAllBut(0);
}
// Show root menu command - place in an onLoad="..." type function if you want.
eval(docObj + menu[0][0].id + styObj + '.visibility = "visible"');
// This is just the moving command for the example.
function moveRoot() {
rM = eval(docObj + menu[0][0].id + styObj);
if (parseInt(rM.top) < 40) rM.top = 40;
else rM.top = 0;
}
