
var min=8;
var max=18;

function increaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }
}

function decreaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}

   
var Menu1 = new Array ()
var subMenu1 = new Array ()

   Menu1[0] = new Array("&nbsp;Home", "/index.asp","_top", "left")
     subMenu1[0] = new Array()

   Menu1[1] = new Array("&nbsp;Departments A-G", "/dept/depts.asp","_top", "left")
     subMenu1[1] = new Array()
     subMenu1[1][0] = new Array ("Airport", "http://www.flysux.com","_blank")
     subMenu1[1][1] = new Array ("Animal Control", "/static/pets/control.asp","_top")
     subMenu1[1][2] = new Array ("Art Center", "http://www.siouxcityartcenter.org","_blank")
     subMenu1[1][3] = new Array ("City Clerk", "/dept/index.asp?deptnum=1","_top")
     subMenu1[1][4] = new Array ("City Manager\'s Office", "/dept/index.asp?deptnum=2","_top")
     subMenu1[1][5] = new Array ("City Council", "/dept/index.asp?deptnum=3","_top")
     subMenu1[1][6] = new Array ("City Legal Department", "/dept/index.asp?deptnum=4","_top")     
     subMenu1[1][7] = new Array ("Community Development&nbsp;&nbsp;", "/dept/index.asp?deptnum=5","_top")
     subMenu1[1][8] = new Array ("Convention Center", "http://www.siouxcitytourism.com","_blank")
     subMenu1[1][9] = new Array ("Customer Service", "/dept/index.asp?deptnum=6","_top")
     subMenu1[1][10] = new Array ("Economic Development", "http://www.locatesiouxcity.com","_top")
     subMenu1[1][11] = new Array ("Engineering", "/dept/index.asp?deptnum=26","_top")
     subMenu1[1][12] = new Array ("Environmental Services", "/dept/index.asp?deptnum=21","_top")
     subMenu1[1][13] = new Array ("Field Services", "/dept/index.asp?deptnum=10","_top")
     subMenu1[1][14] = new Array ("Finance & Admin Services", "/dept/index.asp?deptnum=11","_top")
     subMenu1[1][15] = new Array ("Fire Department", "/dept/index.asp?deptnum=12","_top")

   Menu1[2] = new Array("&nbsp;Departments H-Z", "/dept/depts.asp","_top", "left")
     subMenu1[2] = new Array()
     subMenu1[2][0] = new Array ("Housing Assistance", "/dept/index.asp?deptnum=13","_top")
     subMenu1[2][1] = new Array ("Human Resources", "/dept/index.asp?deptnum=15","_top")
     subMenu1[2][2] = new Array ("Human Rights", "/dept/index.asp?deptnum=14","_top")
     subMenu1[2][3] = new Array ("Library", "http://www.sc.lib.ia.us/","_blank")
     subMenu1[2][4] = new Array ("Museum", "http://www.siouxcitymuseum.org","_blank")
     subMenu1[2][5] = new Array ("Parking", "/dept/index.asp?deptnum=16","_top")
     subMenu1[2][6] = new Array ("Permits & Inspections", "/dept/index.asp?deptnum=18","_top")
     subMenu1[2][7] = new Array ("Planning and Neighborhood Services", "/dept/index.asp?deptnum=19","_top")
     subMenu1[2][8] = new Array ("Public Works", "/dept/index.asp?deptnum=8","_top") 
     subMenu1[2][9] = new Array ("Police Department", "http://www.siouxcitypolice.com","_top")
     subMenu1[2][10] = new Array ("Recreation Services&nbsp;&nbsp;", "/dept/index.asp?deptnum=17","_top")
     subMenu1[2][11] = new Array ("Real Estate", "/dept/index.asp?deptnum=20","_top")
     subMenu1[2][12] = new Array ("Transit", "/dept/index.asp?deptnum=22","_top")
    subMenu1[2][13] = new Array ("Waste Water Center", "/custom/waterplant","_top")
    subMenu1[2][14] = new Array ("Water Plant", "/dept/index.asp?deptnum=23","_top")


   Menu1[3] = new Array("&nbsp;Sioux City FAQs", "http://com2.govtsystems.com/rpsiouxcity/public/ListFAQ_citizen.asp","_blank", "left")
     subMenu1[3] = new Array()  

   Menu1[4] = new Array("&nbsp;For Citizens", "/index.asp","_top", "right")
     subMenu1[4] = new Array()
     subMenu1[4][0] = new Array ("Our Mission", "/static/mission.asp","_top")
     subMenu1[4][1] = new Array ("Art Center", "http://www.siouxcityartcenter.org","_blank")
     subMenu1[4][2] = new Array ("Board and Commissions", "/custom/boards/index.asp","_top")
     subMenu1[4][3] = new Array ("Cemeteries", "/static/cemetery.asp","_top")
     subMenu1[4][4] = new Array ("Council Agendas/Minutes", "/custom/agendasminutes/","_top")
     subMenu1[4][5] = new Array ("City Code", "/scmcpub/","_top")
     subMenu1[4][6] = new Array ("Community Information", "http://www.siouxlandchamber.com","_blank")
     subMenu1[4][7] = new Array ("Employment Opportunities", "/custom/jobs/","_top")
     subMenu1[4][8] = new Array ("History", "http://www.siouxcityhistory.org","_blank")
     subMenu1[4][9] = new Array ("Library", "http://www.sc.lib.ia.us/","_blank")
     subMenu1[4][10] = new Array ("Museum", "http://www.siouxcitymuseum.org/","_blank")
     subMenu1[4][11] = new Array ("Recreation Services", "/dept/index.asp?deptnum=17","_top")
     subMenu1[4][12] = new Array ("Press Releases", "/custom/press/","_top")
     subMenu1[4][13] = new Array ("Resident\'s Guide", "/staticPDF/rguide.pdf","_blank")

   Menu1[5] = new Array("&nbsp;For Visitors", "/index.asp","_top", "right")
     subMenu1[5] = new Array()
     subMenu1[5][0] = new Array ("Downtown Events", "http://downtownsiouxcity.com/","_blank")
     subMenu1[5][1] = new Array ("Community Information/Chamber of Commerce", "http://www.siouxlandchamber.com/","_blank")
     subMenu1[5][2] = new Array ("Employment Opportunities", "/custom/jobs/","_top")
     subMenu1[5][3] = new Array ("History", "http://www.siouxcityhistory.org","_blank")
     subMenu1[5][4] = new Array ("Mission", "/static/mission.asp","_top")
     // subMenu1[5][5] = new Array ("Chamber of Commerce", "http://www.siouxlandchamber.com/","_blank")
     subMenu1[5][5] = new Array ("Transportation", "/dept/index.asp?deptnum=22","_top")
     subMenu1[5][6] = new Array ("Visitor Information", "http://www.siouxcitytourism.com/","_blank")

   Menu1[6] = new Array("&nbsp;For Businesses", "/index.asp","_top", "right")
     subMenu1[6] = new Array()
     subMenu1[6][0] = new Array ("Economic Development", "http://www.locatesiouxcity.com","_top")
     subMenu1[6][1] = new Array ("Bids and Procurements", "http://www.demandstar.com/supplier/bids/agency_inc/bid_list.asp?f=search&mi=10212","_blank")
     subMenu1[6][2] = new Array ("City Meetings", "/custom/agendasminutes/","_top")
     subMenu1[6][3] = new Array ("City Code", "/scmcpub/","_top")
     subMenu1[6][4] = new Array ("Council Agendas/Minutes", "/custom/agendasminutes/","_top")
     subMenu1[6][5] = new Array ("Licenses & Permits", "/dept/index.asp?deptnum=18","_top")
     subMenu1[6][6] = new Array ("Maps", "/dept/pageview.asp?guid=B2F91295-F589-446B-9B65-2110BA34D603&deptnum=19","_top")
    
   Menu1[7] = new Array("&nbsp;Search our Site", "/search.asp","_top", "left")
     subMenu1[7] = new Array()      
     
   Menu1[8] = new Array("&nbsp;Contact Us", "/static/contact.asp","_top", "left")
     subMenu1[8] = new Array() 

   Menu1[9] = new Array("&nbsp;Accessibility&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img border=0 src='/images/access_small.jpg'>", "/dept/index.asp?deptnum=27","_top","left")
     subMenu1[9] = new Array()

/// FORMAT MENU  ///
menuStyle = "3d"                                  // Menu Style (flat, 3d)
cellPadding = "4"                                   // Cell Padding
cellBorder = 1                                      // Border width (for no border, enter 0)  THIS VALUE APPLIES TO ALL MENUS
verticalOffset = "0"                                // Vertical offset of Sub Menu. 
horizontalOffset = "1"                              // Horizontal offset of Sub Menu. 
subMenuDelay = 1                                    // Time sub menu stays visible for (in seconds). THIS VALUE APPLIES TO ALL MENUS
subIndicate = 1                                     // Show if a sub menu is present (use 0 for "no")  THIS VALUE APPLIES TO ALL MENUS
indicator = "<img src='/images/littlearrow4.gif' border='0'>" // Symbol to show if a sub menu is present (subIndicate must be to set to 1)
                                                    // Use standard HTML <img> tag. You can use a character instead of an image. 
                                                    // e.g.      indicator = ">"
// Main Menu Items
menuWidth = "175"                  // Width of menu item.  Use 0 for default
borderColor = "Black"            // Border Colour (flat mode only)
borderHighlight = "#0099cc"      // Border Highlight Colour (3d mode only)
borderShadow = "#006699"         // Border Shadow Colour (3d mode only)
menuBackground = "#0079a6"       // Cell Background Colour
menuHoverBackground = "006699"    // Cell Background Colour on mouse rollover
fontFace = "verdana,arial,tahoma"               // Font Face
fontColour = "#FFFFFF"           // Font Colour
fontHoverColour = "#FFFFFF"      // Font Colour on mouse rollover
fontSize = "11px"                 // Font Size
fontDecoration = "none"          // Style of the link text (none, underline, overline, line-through)
fontWeight = "bold"            // Font Weight (normal, bold)

// Sub Menu Items
smenuWidth = "0"                 // Width of sub menu item.  Use 0 for default
sborderColor = "Black"           // Border Colour (flat mode only)
sborderHighlight = "#0099cc"     // Border Highlight Colour (3d mode only)
sborderShadow = "#006699"        // Border Shadow Colour (3d mode only)
smenuBackground = "0079a6"        // Cell Background Colour
smenuHoverBackground = "#006699" // Cell Background Colour on mouse rolloverr
sfontFace = "verdana,arial,tahoma"              // Font Face
sfontColour = "#ffffff"          // Font Colour
sfontHoverColour = "#FFFFFF"     // Font Colour on mouse rollover
sfontSize = "10px"                // Font Size
sfontDecoration = "none"         // Style of the link text (none, underline, overline, line-through)
sfontWeight = "bold"           // Font Weight (normal, bold)

quantity = 1
/// END FORMAT MENU  ////

/// DO NOT EDIT BELOW THIS LINE  ///
// Browser Sniffer
var isIE = (document.getElementById && document.all)?true:false;
var isNS4 = (document.layers)?true:false;
var isNS6 = (document.getElementById && !document.all)?true:false;
var timer;
var obj = (isIE)?"document.all":"document.getElementById"
// Menu Styles
function createStyles(quant){
styleBorder=(menuStyle.split(",")[quant-1].toLowerCase() == "flat")?cellBorder:0 
  document.writeln ('<style>');
  document.writeln ('.rcMenuStatic'+quant+' {font-family:'+fontFace.split(",")[quant-1]+';font-size:'+fontSize.split(",")[quant-1]+';color:'+fontColour.split(",")[quant-1]+';font-weight:'+fontWeight.split(",")[quant-1]+';background-color:'+menuBackground.split(",")[quant-1]+'; cursor:hand; text-decoration:'+fontDecoration.split(",")[quant-1]+'}');
  document.writeln ('.rcMenuHover'+quant+'  {font-family:'+fontFace.split(",")[quant-1]+';font-size:'+fontSize.split(",")[quant-1]+';color:'+fontHoverColour.split(",")[quant-1]+';font-weight:'+fontWeight.split(",")[quant-1]+';background-color:'+menuHoverBackground.split(",")[quant-1]+'; cursor:hand; text-decoration:'+fontDecoration.split(",")[quant-1]+'}');
  document.writeln ('.rcSubMenuStatic'+quant+' {font-family:'+sfontFace.split(",")[quant-1]+';font-size:'+sfontSize.split(",")[quant-1]+';color:'+sfontColour.split(",")[quant-1]+';font-weight:'+sfontWeight.split(",")[quant-1]+';text-decoration:'+sfontDecoration.split(",")[quant-1]+';background-color:'+smenuBackground.split(",")[quant-1]+'; cursor:hand}');
  document.writeln ('.rcSubMenuHover'+quant+'  {font-family:'+sfontFace.split(",")[quant-1]+';font-size:'+sfontSize.split(",")[quant-1]+';color:'+sfontHoverColour.split(",")[quant-1]+';font-weight:'+sfontWeight.split(",")[quant-1]+';text-decoration:'+sfontDecoration.split(",")[quant-1]+';background-color:'+smenuHoverBackground.split(",")[quant-1]+'; cursor:hand}');
  document.writeln ('</style>');
}
// Build and show the main menu items
function showMenus(quant,definedOrientation)
{
  createStyles(quant);
  if(definedOrientation!=""){orientation=definedOrientation}
  if (orientation.toLowerCase() == "vertical"){document.writeln ('<table border="0" cellpadding="0" cellspacing="'+styleBorder+'" bgColor="'+borderColor.split(",")[quant-1]+'">')}
  else{document.writeln ('<table border="0" cellpadding="0" cellspacing="'+styleBorder+'" bgColor="'+borderColor.split(",")[quant-1]+'"><tr>')}  
  for (x=0; x<eval("Menu"+quant).length; x++)
  {
    if (orientation.toLowerCase()=="vertical") document.writeln('<tr>')
    document.writeln ('<td width="'+menuWidth+'" onclick="tdMouseClick(\''+quant+'mainLink'+x+'\')" onMouseOver="hoverMenu(); popDown(\''+quant+'\','+x+', \''+quant+'button'+x+'\',\''+orientation+'\'); " onMouseOut="clearMenu('+quant+','+x+')" ')
    if (menuStyle.split(",")[quant-1].toLowerCase() == "3d"){document.writeln ('style="border-left:'+cellBorder+'px solid '+borderHighlight.split(",")[quant-1]+';border-top:'+cellBorder+'px solid '+borderHighlight.split(",")[quant-1]+';border-right:'+cellBorder+'px solid '+borderShadow.split(",")[quant-1]+';border-bottom:'+cellBorder+'px solid '+borderShadow.split(",")[quant-1]+';"');}        
    document.writeln ('><div id="'+quant+'button'+x+'"><table border="0" cellpadding="'+cellPadding.split(",")[quant-1]+'" cellspacing="0" width="100%"><tr><td class="rcMenuStatic'+quant+'" id="'+quant+'cell'+x+'" nowrap>');
    document.writeln ('<a id="'+quant+'mainLink'+x+'" href="'+eval("Menu"+quant)[x][1]+'" target="'+eval("Menu"+quant)[x][2]+'" class="rcMenuStatic'+quant+'">'+eval("Menu"+quant)[x][0]+'</a></td>');
    if (subIndicate == 1&&eval("subMenu"+quant)[x].length>=1){
      document.writeln('<td class="rcMenuStatic'+quant+'" id="'+quant+'cell'+x+'a" align="right">');
      document.writeln ('<a id="'+quant+'mainLink'+x+'a" href="'+eval("Menu"+quant)[x][1]+'" target="'+eval("Menu"+quant)[x][2]+'" class="rcMenuStatic'+quant+'">'+indicator+'</a></td>');}
    document.writeln ('</tr></table></div></td>');    
    if (orientation.toLowerCase()=="vertical") document.writeln('</tr>')
  }
  if (orientation.toLowerCase() == "vertical"){document.writeln ('</table>');}
  else{document.writeln ('</tr></table>');}   
// Build the sub menu items
  for (x=0; x<eval("Menu"+quant).length; x++)
  { 
    if (eval("subMenu"+quant)[x].length > 0)
    {     
      document.writeln ('<div id="'+quant+'MENU'+x+'" style="visibility:hidden; position:absolute; z-index:2" >');
      document.writeln ('<table width="'+smenuWidth.split(",")[quant-1]+'" border="0" cellpadding="'+cellPadding.split(",")[quant-1]+'" cellspacing="'+styleBorder+'" bgColor="'+sborderColor.split(",")[quant-1]+'">');
      for (y=0; y<eval("subMenu"+quant)[x].length; y++)
      {
        document.writeln ('<tr>');
        if (eval("subMenu"+quant)[x][y][1].indexOf("#") != -1)
        {
          document.writeln ('<td bgColor="'+eval("subMenu"+quant)[x][y][2]+'" id="'+quant+'subMenu'+x+y+'" onMouseOver="hoverMenu(); highlightMenu(\'sub\','+x+','+y+',\'\','+quant+')" nowrap')
          if (menuStyle.split(",")[quant-1].toLowerCase() == "3d"){document.writeln ('style="border-left:'+cellBorder+'px solid '+sborderHighlight.split(",")[quant-1]+';border-top:'+cellBorder+'px solid '+sborderHighlight.split(",")[quant-1]+';border-right:'+cellBorder+'px solid '+sborderShadow.split(",")[quant-1]+';border-bottom:'+cellBorder+'px solid '+sborderShadow.split(",")[quant-1]+';"');}
          document.writeln ('><p style="font-family:'+sfontFace.split(",")[quant-1]+'; font-size:'+sfontSize.split(",")[quant-1]+'; color:'+eval("subMenu"+quant)[x][y][1]+'"id="'+quant+'subLink'+x+y+'">'+eval("subMenu"+quant)[x][y][0]+'</p></td></tr>');
        }
        else
        {
          document.writeln ('<td id="'+quant+'subMenu'+x+y+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); highlightMenu(\'sub\','+x+','+y+',\'\','+quant+')" onMouseOut="clearMenu('+quant+','+x+');" onclick="tdMouseClick(\''+quant+'subLink'+x+y+'\')" nowrap')
          if (menuStyle.split(",")[quant-1].toLowerCase() == "3d"){document.writeln ('style="border-left:'+cellBorder+'px solid '+sborderHighlight.split(",")[quant-1]+';border-top:'+cellBorder+'px solid '+sborderHighlight.split(",")[quant-1]+';border-right:'+cellBorder+'px solid '+sborderShadow.split(",")[quant-1]+';border-bottom:'+cellBorder+'px solid '+sborderShadow.split(",")[quant-1]+';"');}
          document.writeln ('><a id="'+quant+'subLink'+x+y+'" href="'+eval("subMenu"+quant)[x][y][1]+'" target="'+eval("subMenu"+quant)[x][y][2]+'" class="rcSubMenuStatic'+quant+'">'+eval("subMenu"+quant)[x][y][0]+'</a></td></tr>');
        }
      }
      document.writeln ('</table></div>');
    }
  }
} 
// Change colour or menu and submenu items when the mouse hovers over.  
function highlightMenu(element,mainMenu,dropMenu,state,quant)
{
  hoverMenu();
  state=(state == "hover")?"rcMenuHover"+quant:"rcMenuStatic"+quant
  if (element == "sub")
  {
    for (x=0; x < eval("subMenu"+quant)[mainMenu].length; x++)
    {
      if (eval("subMenu"+quant)[mainMenu][x][1].indexOf("#") == -1){
        eval(obj+'("'+quant+'subMenu'+mainMenu+x+'").className = "rcSubMenuStatic'+quant+'"')
        eval(obj+'("'+quant+'subLink'+mainMenu+x+'").className = "rcSubMenuStatic'+quant+'"')
      }
    } 
    if (eval("subMenu"+quant)[mainMenu][dropMenu][1].indexOf("#") == -1)  {
      eval(obj+'("'+quant+'subMenu'+mainMenu+dropMenu+'").className="rcSubMenuHover'+quant+'"')
      eval(obj+'("'+quant+'subLink'+mainMenu+dropMenu+'").className="rcSubMenuHover'+quant+'"')
    }
  }
  else
  {
    eval(obj+'("'+quant+'cell'+mainMenu+'").className = "'+state+'"')
    eval(obj+'("'+quant+'mainLink'+mainMenu+'").className = "'+state+'"')
    if (subIndicate == 1&&eval("subMenu"+quant)[mainMenu].length>=1)
    {
      eval(obj+'("'+quant+'cell'+mainMenu+'a").className = "'+state+'"')
      eval(obj+'("'+quant+'mainLink'+mainMenu+'a").className = "'+state+'"')
    }
  }
}
// Find positioning for sub menus
function getOffset(obj, dim) 
{
  if(dim=="left") 
  {     
    oLeft = obj.offsetLeft;    
    while(obj.offsetParent!=null) 
    {    
      oParent = obj.offsetParent     
      oLeft += oParent.offsetLeft 
      obj = oParent 	
    }
    return oLeft
  }
  else if(dim=="top")
  {
    oTop = obj.offsetTop;
    while(obj.offsetParent!=null) 
    {
      oParent = obj.offsetParent
      oTop += oParent.offsetTop
      obj = oParent 	
    }
    return oTop
  }
  else if(dim=="width")
  {
    oWidth = obj.offsetWidth
    return oWidth
  }  
  else if(dim=="height")
  {
    oHeight = obj.offsetHeight
    return oHeight
  }    
  else
  {
    alert("Error: invalid offset dimension '" + dim + "' in getOffset()")
    return false;
  }
}
// Show sub menus
function popDown(quant, param, id, orientation)
{
  var cellBorderOffset = (isNS6)?cellBorder:eval(cellBorder*2)
  var browserAdjustment = (isNS6)?cellBorder:0
  var menu;
  var button;

  if (id)
  {    
    getOffset(eval(obj+'(id)'),'left');
    getOffset(eval(obj+'(id)'),'top');    
    getOffset(eval(obj+'(id)'),'width');  
    getOffset(eval(obj+'(id)'),'height');
    
    if (eval("Menu"+quant+"["+param+"][3]")=="right" && eval("subMenu"+quant+"["+param+"].length")>0) 
    { 
      oLeft=oLeft  
      oLeft=oLeft+oWidth; 
      getOffset(eval(obj+'("'+quant+'MENU'+param+'")'),'width');
      oLeft=oLeft-oWidth ;
      alignAdjustment = cellBorder*2 + 1
    }
    else 
    {
      alignAdjustment = 0
      oLeft=oLeft
    }    
  }  

  
  n = 0;    
  while (n < eval("Menu"+quant).length)
  {          
    menu = quant+"MENU"+n
    if (param == n)
    {
      theObj = eval(obj+'(menu)');
      if (theObj)
      {
         theObj.style.visibility = "visible"
          if (orientation.toLowerCase()=="vertical"){
            theObj.style.left=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oLeft+oWidth+cellBorder+parseInt(horizontalOffset.split(",")[quant-1]):oLeft+oWidth+cellBorderOffset+parseInt(horizontalOffset.split(",")[quant-1]);
            theObj.style.top=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oTop-cellBorder+parseInt(verticalOffset.split(",")[quant-1]):oTop+parseInt(verticalOffset.split(",")[quant-1])-browserAdjustment}
          else{
            theObj.style.left=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oLeft-cellBorder+parseInt(horizontalOffset.split(",")[quant-1])+alignAdjustment:oLeft+parseInt(horizontalOffset.split(",")[quant-1])-browserAdjustment+alignAdjustment;
            theObj.style.top=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oTop+oHeight+cellBorder+parseInt(verticalOffset.split(",")[quant-1]):oTop+oHeight+cellBorderOffset+parseInt(verticalOffset.split(",")[quant-1]);}
        }
      
       highlightMenu('main',n,'','hover',quant)
       if (eval("subMenu"+quant)[param].length > 0)
       {
         for (x=0; x<eval("subMenu"+quant)[param].length; x++)
         {
           if(eval("subMenu"+quant)[param][x][1].indexOf("#") == -1){
             eval (obj+'("'+quant+'subMenu'+param+x+'").className = "rcSubMenuStatic'+quant+'"')
             eval (obj+'("'+quant+'subLink'+param+x+'").className = "rcSubMenuStatic'+quant+'"')  
           }       
         }
       }
    }
    else 
    {  
      for (x=1; x<quantity+1; x++)
      {       
        menu = x+"MENU"+n   
        //alert(menu)     
        if (eval(obj+'(menu)'))
        {
          eval(obj+'(menu).style.visibility = "hidden"')            
        }
        highlightMenu ('main',n,'','static',quant)
      }
    }
    n++
  }  
}
// Re-set timer for sub menus
function hoverMenu()
{
  if(timer)
  clearTimeout(timer)
}
// Set timer for sub menus
function clearMenu(quant,menu)
{
  setDelay = subMenuDelay*1000
  delay = (eval("subMenu"+quant)[menu].length > 0)?setDelay:1
  
  timer = setTimeout("popDown("+quant+","+(eval("Menu"+quant).length + 1)+")",delay)
}
// when you click the box, perform the same function as if the user had clicked the hyperlink
function tdMouseClick(theElement)
{
  eval(obj+'(theElement).click()')
}
