<!--
//function dbAdd(imagenum[random number must != any other number of items],hide[to show item = false],level[must = 0],image1[onLoad image],image2[onMouseOver Image],image3[when selected  onLoad image],image4[when selected onHover image],imageh[],imagew[],URL[URL],top[target],end[<BR> = break before image])
  // -- Enter Values Here --
    // Home level = 0 [1]
      dbAdd( "2" ,false,0, "home1.gif" , "home2.gif", "home3.gif", "home4.gif" , "18" , "145", "default.asp" ,"", "" )
    // About RDA Menu Parrent level = 0 [2]
      dbAdd( "3" ,false,0, "aboutrda1.gif" , "aboutrda2.gif", "aboutrda3.gif" , "aboutrda4.gif" , "18" , "145" , "aboutrda.asp" , "" , "<BR>" )
    // Products And Services Parrent Level = 0 [3]
      dbAdd( "8" ,false,0, "prod1.gif" , "prod2.gif", "prod3.gif" , "prod4.gif" , "18" , "145" , "products.asp" , "" , "<BR>" )
    // Online Ideation
      dbAdd( "9" ,false,0, "online_ideation_1.gif" , "online_ideation_2.gif", "online_ideation_3.gif" , "online_ideation_4.gif" , "18" , "145" , "ideation.asp" , "", "<BR>" )
    // Industry Experience Parrent Level = 0 [4]
      dbAdd( "13" ,false,0, "indexp3.gif" , "indexp4.gif", "indexp3.gif" , "indexp4.gif" , "18" , "145" , "indexp.asp" , "" , "<BR>" )
   // Children level = 0
      dbAdd( "14" ,false,0, "auto1.gif" , "auto2.gif", "auto3.gif" , "auto4.gif" , "15" , "145" , "ind_auto.asp" , "" , "<BR>" )
           dbAdd( "15" ,false,0, "utilities1.gif" , "utilities2.gif", "utilities3.gif" , "utilities4.gif" , "15" , "145" , "ind_utilities.asp" , "" , "<BR>" )
           dbAdd( "16" ,false,0, "finserv1.gif" , "finserv2.gif", "finserv3.gif" , "finserv4.gif" , "15" , "145" , "ind_financial.asp" , "" , "<BR>" )
      dbAdd( "40" ,false,0, "recveh1.gif" , "recveh2.gif", "recveh3.gif" , "recveh4.gif" , "15" , "145" , "ind_recveh.asp" , "" , "<BR>" )
      dbAdd( "42" ,false,0, "comest1.gif" , "comest2.gif", "comest3.gif" , "comest4.gif" , "27" , "145" , "ind_foodbev.asp" , "" , "<BR>" )
      dbAdd( "43" ,false,0, "insure1.gif" , "insure2.gif", "insure3.gif" , "insure4.gif" , "15" , "145" , "ind_insure.asp" , "" , "<BR>" )
    // Global Markets Parrent Level = 0 [5]
      dbAdd( "17" ,false,0, "globmar1.gif" , "globmar2.gif", "globmar3.gif" , "globmar4.gif" , "18" , "145" , "global_operations.asp" , "" , "<BR>" )
    // Focus Group Facilities Parrent Level = 0 [6]
      dbAdd( "22" ,false,0, "focgroup1.gif" , "focgroup2.gif", "focgroup3.gif" , "focgroup4.gif" , "18" , "145" , "focus.asp" , "" , "<BR>" )
    // RDA News and Events
      dbAdd( "23" ,false,0,"newsevents1.gif","newsevents2.gif","newsevents3.gif","newsevents4.gif","18","145","ar_media.asp","","<BR>")
    // Portfolio of Satisfied Customers
      dbAdd( "25" ,false,0, "posc1.gif" , "posc2.gif", "posc3.gif" , "posc4.gif" , "18" , "145" , "ar_portfolio.asp" ,"" , "<BR>" )
    // Researchers Toolbox Parrent Level = 0 [7]
      dbAdd( "27" ,false,0, "toolbox1.gif" , "toolbox2.gif", "toolbox3.gif" , "toolbox4.gif" , "18" , "145" , "researchers_toolbox.asp" , "" , "<BR>" )
    // Careers Parrent Level = 0 [8]
      dbAdd( "29" ,false,0, "careers1.gif" , "careers2.gif", "careers3.gif" , "careers4.gif" , "18" , "145" , "careers.asp" , "" , "<BR>" )
    // Contact RDA Parrent Level = 0 [9]
      dbAdd( "32" ,false,0, "contact1.gif" , "contact2.gif", "contact3.gif" , "contact4.gif" , "18" , "145" , "contact.asp" , "" , "<BR>" )
    // Site Map Parrent Level = 0 [10]
      dbAdd( "33" ,false,0, "sitemap1.gif" , "sitemap2.gif", "sitemap3.gif" , "sitemap4.gif" , "18" , "145" , "sitemap.asp" , "" , "<BR>" )
  // -- End Modifications --
// Get current cookie setting
var current=getCurrState()
function getCurrState() {
  var label = "currState="
  var labelLen = label.length
  var cLen = document.cookie.length
  var i = 0
  while (i < cLen) {
    var j = i + labelLen
    if (document.cookie.substring(i,j) == label) {
      var cEnd = document.cookie.indexOf(";",j)
      if (cEnd == -1) { cEnd = document.cookie.length }
      return unescape(document.cookie.substring(j,cEnd))
    }
    i++
  }
  return ""
}
// Add an entry to the database
function dbAdd(imagenum,parent,indent,image1,image2,image3,image4,imageh,imagew,URL,target,end) {
  db[total] = new Object;
  db[total].imagenum = imagenum
  db[total].parent = parent
  db[total].indent = indent
  db[total].image1 = image1
  db[total].image2 = image2
  db[total].image3 = image3
  db[total].image4 = image4
  db[total].imageh = imageh
  db[total].imagew = imagew
  db[total].URL = URL
  db[total].target = target
  db[total].end = end
  total++
  }
// toggles an outline parent entry, storing new value in the cookie
function toggle(n) {
  if (n != 0) {
    var newString = ""
    var expanded = current.substring(n-1,n) // of clicked item
    newString += current.substring(0,n-1)
    newString += expanded ^ 1 // Bitwise XOR clicked item
    newString += current.substring(n,current.length)
    setCurrState(newString) // write new state back to cookie
  }
}
// returns padded spaces (in mulTIPles of 2) for indenting
function pad(n) {
  var result = ""
  return result
}
// end -->
