
//Varibles defining drop down menu parameters
var MBkGn = "#008800"         // main drop down menu background color 
var CBkGn = "#983336"         // drop down menu caption area background and border color 
var TextC = "#FFFFFF"         // color of the main text
var CaptC = "#FFF9BF"         // color of the caption text
var CloseC = "#FFF9BF"        // color of the "close" text
var index = 0                 // controls which array citeria is passed
var AutoSize = 0              // '0' Forces width to use longest text as menu width,
                              //     also causes the need to subsitute &nbsp; for spaces
                              //     in the tab menu text to prevent wrapping at each word
var TO = 3500                 // Forces timeouts, in milliseconds
var TabHeight = 26            // Vertical size of tabs (in pixels)
var Yposition = 64            // Vertical Top position of tab drop downs in browser 

// Arrays are controlled by 'index'. 0 ELEMENTS ARE NOT USED AND SO ARE SET TO 0 or null, as appropriate.
// Height of drop down menus. Needed by Wayne's Code to allow auto hiding 
// of drop down menus when mouse is moved off tab and drop down. (May take a little playing around 
// with displayed page size code to get it the way you want it.)(Approx 55 for first one and 5 for
// every one thereafter)
// CHANGE NOTE the fourth element (now 55) should be changed to 80 when and if
// the Rerate and Rate Comparisons are added back in to E-Tools
var Xheight = new Array(0,
                        175,
                        125,
                        55,
                        65,
                        55,
                        64,
                        100
                       )

// Horizontal Left position of tab drop down menus. 1 for each tab drop down (controlled by 'index')
var Xposition = new Array(0,
                          234,
                          312,
                          390,
                          468,
                          546,
                          624,
                          702
                         )

// Length of tab drop down menus. (controlled by 'index') needed by Wayne's Code to allow auto hiding 
// of drop down menus when mouse is moved off tab and drop down. (May take a little playing around 
// with displayed page size code to get it the way you want it.)
var Xlength = new Array(0,
                        117,
                        134,
                        110,
                        152,
                        94,
                        105,
                        84
                       )

// tab drop down captions (controled by 'index')
var tabCaption = new Array("",
                           "_Products_",
                           "_Services_",
                           "_E_Tools_",
                           "_News_",
                           "_Support_",
                           "_Links_",
                           "_About_Us_"
                          )

// tab drop down widths  (controled by 'index')
//     currently these are not used. the HAUTO feature is used instead
//var tabW = new Array(0,
//                     110,
//                     110,
//                     130,
//                     180,
//                     110,
//                     110,
//                     110
//                    )
 
// tab drop down menu messages  (controled by 'index')
//     &nbsp should be used instead of ' ' to prevent HAUTO from wrapping menu text
var tabMenuTxt = new Array()    
             //Products tab drop down menu
    tabMenuTxt[1] = "<a CLASS=\"ddmenu\" href='../products/Rate_development.htm'>Rate Development</a><br>"
    tabMenuTxt[1] = tabMenuTxt[1] + "<a CLASS='ddmenu' href='../products/Rating_systems.htm'>Rating&nbsp;Systems</a><br>"
    tabMenuTxt[1] = tabMenuTxt[1] + "<a CLASS='ddmenu' href='../products/Acculink_system.htm'>Accu-Link&nbsp;Rating&nbsp;System</a><br>"
    tabMenuTxt[1] = tabMenuTxt[1] + "<a CLASS='ddmenu' href='../products/AccuRateDLL.htm'>Accu-Rate&nbsp;DLL</a><br>"
    tabMenuTxt[1] = tabMenuTxt[1] + "<a CLASS='ddmenu' href='../products/Computer_data.htm'>Computer&nbsp;Data</a><br>"
    tabMenuTxt[1] = tabMenuTxt[1] + "<a CLASS='ddmenu' href='../products/mars.htm'>MARS</a><br>"
    tabMenuTxt[1] = tabMenuTxt[1] + "<a CLASS='ddmenu' href='../products/master_key.htm'>Master&nbsp;Key</a><br>"
    tabMenuTxt[1] = tabMenuTxt[1] + "<a CLASS='ddmenu' href='../products/Web_Rater.htm'>Web&nbsp;Rater</a><br>"
    tabMenuTxt[1] = tabMenuTxt[1] + "<a CLASS='ddmenu' href='../products/mwb_order_form.pdf'>Order&nbsp;Form</a><br>"
             //Services tab drop down menu
    tabMenuTxt[2] = "<a CLASS='ddmenu' href='../services/Custom_Programming.htm'>Custom Programming</a><br>"
    tabMenuTxt[2] = tabMenuTxt[2] + "<a CLASS='ddmenu' href='../services/Rate_Analysis.htm'>Rate&nbsp;Analysis</a><br>"
    tabMenuTxt[2] = tabMenuTxt[2] + "<a CLASS='ddmenu' href='../services/Internet_Services.htm'>Internet&nbsp;Services</a><br>"
    tabMenuTxt[2] = tabMenuTxt[2] + "<a CLASS='ddmenu' href='../products/Web_Rater.htm'>Web&nbsp;Rater</a><br>"
    tabMenuTxt[2] = tabMenuTxt[2] + "<a CLASS='ddmenu' href='../news/subscribe.htm'>Newsletter</a><br>"
             //E-Tools tab drop down menu
    tabMenuTxt[3] = "<a CLASS='ddmenu' href='../etools/marsonline/ratinginput.htm'>MARS&nbsp;Online</a><br>"
    //tabMenuTxt[3] = tabMenuTxt[3] + "Rate Comparisons<br>"
    //tabMenuTxt[3] = tabMenuTxt[3] + "Rerates<br>"
             //News tab drop down menu
    tabMenuTxt[4] = "<a CLASS='ddmenu' href='../news/'>Articles</a><br>"
    tabMenuTxt[4] = tabMenuTxt[4] + "<a CLASS='ddmenu' href='../news/fuel.asp'>US&nbsp;National&nbsp;Fuel&nbsp;Average</a><br>"
    //tabMenuTxt[4] = tabMenuTxt[4] + "<a CLASS='ddmenu' href='../news/subscribe.htm'>Newsletter</a><br>"
             //Support tab drop down menu
    tabMenuTxt[5] = "<a CLASS='ddmenu' href='../support/support.htm'>Product support</a><br>"
                 //Links tab drop down menu
    tabMenuTxt[6] = "<a CLASS='ddmenu' href='../links/link.htm#federal'>Federal&nbsp;and&nbsp;other</a><br>"
    tabMenuTxt[6] = tabMenuTxt[6] + "<a CLASS='ddmenu' href='../links/link.htm#state'>State</a><br>"
             //About us tab drop down menu
    tabMenuTxt[7] = "<a CLASS='ddmenu' href='../aboutus/Who_we_are.htm'>Who we are</a><br>"
    tabMenuTxt[7] = tabMenuTxt[7] + "<a CLASS='ddmenu' href='../aboutus/Members.htm'>Members</a><br>"
    tabMenuTxt[7] = tabMenuTxt[7] + "<a CLASS='ddmenu' href='../aboutus/Membership.htm'>Membership</a><br>"
    tabMenuTxt[7] = tabMenuTxt[7] + "<a CLASS='ddmenu' href='../aboutus/Contact_us.htm'>Contact&nbsp;us</a><br>"


function DoDropDownMenus(index){
   // set parameters the documemt mouseover can use to hide drop down menus, using 'index'
   ddMenuActive = 1
   ddMenuTop    = Yposition - TabHeight
   ddMenuBottom = ddMenuTop + TabHeight + Xheight[index] 
   ddMenuLeft   = Xposition[index]
   ddMenuRight  = Xlength[index] + Xposition[index]

   // Call to OverLib freeware, passing drop down menu parameters defined in this .js 
   overlib(
           tabMenuTxt[index],CAPTION,tabCaption[index],WIDTH,AutoSize,
           STICKY,FIXY,Yposition,FIXX,Xposition[index],FGCOLOR,MBkGn,
           BGCOLOR,CBkGn,TEXTSIZE,2,CAPTIONSIZE,2,CLOSESIZE,2,
           TEXTCOLOR,TextC,CAPCOLOR,CaptC,CLOSECOLOR,CloseC,NOCLOSE) //,TIMEOUT,TO)
}

