var Menu1 = new Array ()                                                                                                //
var subMenu1 = new Array ()                                                                                             //
                                                                                                                        //
   Menu1[0] = new Array("Home", "../../index.html","_self", "right")
     subMenu1[0] = new Array()
     
   Menu1[1] = new Array("About Us", "../aboutus/default.htm","_top", "right")
     subMenu1[1] = new Array()
     subMenu1[1][0] = new Array ("Mission / Vision", "../aboutus/default.htm", "_top");
     subMenu1[1][1] = new Array ("Organograms", "../aboutus/organograms.htm", "_top");
     subMenu1[1][2] = new Array ("Board Members", "../aboutus/boardMembers.htm", "_top");
     subMenu1[1][3] = new Array ("PCRA Offices", "../aboutus/offices.htm", "_top");
     subMenu1[1][4] = new Array ("Corporate Profile", "../aboutus/corporateprofile.pdf", "_top");	 
 	 
     
   Menu1[2] = new Array("Achievements", "../general/achievements.htm","_top", "right")
     subMenu1[2] = new Array()
     
   Menu1[3] = new Array("Energy Audit", "../industrial/energyAudit.htm","_top", "right")
     subMenu1[3] = new Array()    

   Menu1[4] = new Array("Best Fuel Saving<br>Case Studies", "../general/bestFuel.htm","_top", "right")
     subMenu1[4] = new Array()

   Menu1[5] = new Array("PCRA's Energy Club", "../general/energyclub.asp","_top", "right")
     subMenu1[5] = new Array()  

   Menu1[6] = new Array("Activities", "../education/default.htm","_top", "right")
     subMenu1[6] = new Array()  	                                     
     subMenu1[6][0] = new Array ("Educational Campaign", "../education/default.htm", "_top");	 
     subMenu1[6][1] = new Array ("Industrial", "../industrial/default.htm", "_top");	 
     subMenu1[6][2] = new Array ("Transport", "../transport/default.htm", "_top");	 
     subMenu1[6][3] = new Array ("Agriculture", "../agriculture/default.htm", "_top");	 
     subMenu1[6][4] = new Array ("Domestic", "../domestic/default.htm", "_top");	 	 	 	 	 	                                                    

   Menu1[7] = new Array("Youth Section", "../youth/default.htm","_top", "right")
     subMenu1[7] = new Array()  
	 
   Menu1[8] = new Array("R & D", "../rnd/default.htm","_top", "right")
     subMenu1[8] = new Array()  
     subMenu1[8][0] = new Array ("Introduction", "../rnd/default.htm", "_top");
     subMenu1[8][1] = new Array ("Completed Projects", "../rnd/comProjects.htm", "_top");	 	 	 	 	 	                                                    	 
     subMenu1[8][2] = new Array ("Ongoing Projects", "../rnd/onProjects.htm", "_top");	 	 	 	 	 	                                                    	 
     subMenu1[8][3] = new Array ("Additives & Devices", "../rnd/additives.htm", "_top");	 	 	 	 	 	                                                    	 
     subMenu1[8][4] = new Array ("Approved Additives", "../rnd/accreditedLabs.htm", "_top");	 	 	 	 	 	                                                    	 
     subMenu1[8][5] = new Array ("Success Stories", "../rnd/success.htm", "_top");	 	 	 	 	 	                                                    	 
     subMenu1[8][6] = new Array ("Last Press Ad", "../rnd/pressAd.htm", "_top");	 	 	 	 	 	                                                    	 
     subMenu1[8][7] = new Array ("Feedback", "../rnd/feedback.htm", "_top");	 	 	 	 	 	                                                    	 	 	 
	 	 	 	 	 	 
   Menu1[9] = new Array("Training", "../training/default.htm","_top", "right")
     subMenu1[9] = new Array()  
     subMenu1[9][0] = new Array ("Introduction", "../training/default.htm#1", "_top");
	 subMenu1[9][1] = new Array ("For Industry", "../training/default.htm#1", "_top");
	 subMenu1[9][2] = new Array ("Institutes/Schools/Colleges", "../training/default.htm#2", "_top");
	 subMenu1[9][3] = new Array ("Course Faculty", "../training/default.htm#3", "_top");
	 subMenu1[9][4] = new Array ("&nbsp;EA-EM Training", "../training/default.htm#4", "_top");	
	 
   Menu1[10] = new Array("Schemes For You", "../schemes/default.htm","_top", "right")
     subMenu1[10] = new Array()  
	 subMenu1[10][0] = new Array ("Learn While You Enjoy", "../schemes/learn.htm", "_top");		 
	 subMenu1[10][1] = new Array ("Schemes", "../schemes/default.htm", "_top");		 	 
	 
   Menu1[11] = new Array("Tenders", "../latest/Tender.htm","_top", "right")
     subMenu1[11] = new Array()  
	 
   Menu1[12] = new Array("Walk through PCRA", "../walk/walk.htm","_top", "right")
     subMenu1[12] = new Array()  
	 
   Menu1[13] = new Array("Education Campaign", "../education/default.htm","_top", "right")
     subMenu1[13] = new Array()  
	 
   Menu1[14] = new Array("Online Litreature", "../education/onlinliterature.htm","_top", "right")
     subMenu1[14] = new Array()  
	 
   Menu1[15] = new Array("Online TVspots", "../education/onlineTVspots.htm","_top", "right")
     subMenu1[15] = new Array()  
	 
   Menu1[16] = new Array("ACT", "../general/act.pdf","_top", "right")
     subMenu1[16] = new Array()  
	 
   Menu1[17] = new Array("Latest In PCRA", "../latest/default.htm","_top", "right")
     subMenu1[17] = new Array()  
	 
   Menu1[18] = new Array("Literatures & Films", "../education/literature.htm","_top", "right")
     subMenu1[18] = new Array()  
	 subMenu1[18][0] = new Array ("Literature", "../education/literature.htm", "_top");
	 subMenu1[18][1] = new Array ("Films", "../education/films.htm", "_top");
	 
///////////////

var Menu2 = new Array ()                                                                                               
var subMenu2 = new Array ()

   Menu2[0] = new Array("&nbsp;&nbsp;Bio-Diesel ", "http://www.pcra-biofuels.org","_blank", "right")
     subMenu2[0] = new Array()                                                                                              
	 subMenu2[0][0] = new Array ("Bio-Diesel Bank", "../biofuel/default.htm", "_top");
	                                                                                                                        
   Menu2[1] = new Array("|", "#","_top", "right")
     subMenu2[1] = new Array()

   Menu2[2] = new Array("Associate with PCRA", "../associate/default.htm","_top", "right")
     subMenu2[2] = new Array()
	 subMenu2[2][0] = new Array ("Avail", "../associate/default.htm", "_top");
	 subMenu2[2][1] = new Array ("Associates", "../associate/associate.htm", "_top");
	 subMenu2[2][2] = new Array ("Ideas / Suggestions", "../associate/ideasugge.htm", "_top");
	 subMenu2[2][3] = new Array ("Business Center", "../associate/businesscenter.htm", "_top");
	 
   Menu2[3] = new Array("|", "#","_top", "right")
     subMenu2[3] = new Array()	 
     
   Menu2[4] = new Array("Fleet Owners Delight", "../transport/dtp.htm","_top", "left")
     subMenu2[4] = new Array()
	 subMenu2[4][0] = new Array ("DTP &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", "../transport/dtp.htm", "_top");
	 subMenu2[4][1] = new Array ("MDP", "../transport/modelDepot.htm", "_top");	 
	 
   Menu2[5] = new Array("|", "#","_top", "right")
     subMenu2[5] = new Array()	 
     
/*   Menu2[6] = new Array("Public Traffic Issues", "http://www.pcra.org/mycgi/pcra-org/issues.pl","_top", "left")
     subMenu2[6] = new Array()    
	 subMenu2[6][0] = new Array ("Add Traffic Issues", "http://www.pcra.org/mycgi/pcra-org/issues.pl", "_top");
	 subMenu2[6][1] = new Array ("View Archive", "http://www.pcra.org/mycgi/pcra-org/issuesarchive.pl", "_top");

   Menu2[7] = new Array("|", "#","_top", "right")
     subMenu2[7] = new Array() */
	 
   Menu2[6] = new Array("OGCF", "../ogcf/default.htm","_top", "left")
     subMenu2[6] = new Array()
     subMenu2[6][0] = new Array ("About OGCF", "../ogcf/default.htm","_top");
     subMenu2[6][1] = new Array ("Awards", "../ogcf/awards.htm","_top");                                                                      
	 
   Menu2[7] = new Array("|", "#","_top", "right")
     subMenu2[7] = new Array()

   Menu2[8] = new Array("Tips&nbsp;&nbsp;&nbsp;", "../industrial/thermalEnergy.htm","_top", "left")
     subMenu2[8] = new Array()
	 subMenu2[8][0] = new Array ("Industrial", "../industrial/thermalEnergy.htm", "_top");
	 subMenu2[8][1] = new Array ("Transport", "../transport/drivingHabits.htm", "_top");
	 subMenu2[8][2] = new Array ("Agriculture", "../agriculture/savingDiesel.htm", "_top");
	 subMenu2[8][3] = new Array ("Domestic", "../domestic/lastLong.htm", "_top");	 	 

////// FORMAT MENU  ///////////////////////////////////////////////////////////////////
menuStyle = "flat,flat"                               // Menu Style (flat, 3d)
cellPadding = "3,3"                                 // Cell Padding
cellBorder = 1                                      // Border width (for no border, enter 0)  THIS VALUE APPLIES TO ALL MENUS
verticalOffset = "10,0"                             // Vertical offset of Sub Menu. 
horizontalOffset = "-10,5"                          // Horizontal offset of Sub Menu. 
subMenuDelay = 2                                    // Time sub menu stays visible for (in seconds). THIS VALUE APPLIES TO ALL MENUS
subIndicate = 0                                     // Show if a sub menu is present (use 0 for "no")  THIS VALUE APPLIES TO ALL MENUS
indicator = "<img src='images/home.gif' border='0'>" // Symbol to show if a sub menu is present (subIndicate must be to set to 1)
subMenuTransparency = "100,100"                      // Opacity of sub menus. 0 - 100.  (IE Only.)
statusBar = "0"                                     // Message shown in status bar. 
                                                    //   Type "0" to show the URL. (normal behaviour of browser)
                                                    //   Type "1" to show the menu title
                                                    //   Type anything else to show a custom message.                                                   

/////////////////////////////////////////////////////////////////////////////////////////////////////
  

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"


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]+'!important;font-size:'+fontSize.split(",")[quant-1]+'!important;color:'+fontColour.split(",")[quant-1]+'!important;font-weight:'+fontWeight.split(",")[quant-1]+'!important;background-color:'+menuBackground.split(",")[quant-1]+'!important; cursor:hand !important; text-decoration:'+fontDecoration.split(",")[quant-1]+'}');
  document.writeln ('.rcMenuHover'+quant+'  {font-family:'+fontFace.split(",")[quant-1]+'!important;font-size:'+fontSize.split(",")[quant-1]+'!important; color:'+fontHoverColour.split(",")[quant-1]+'!important;font-weight:'+fontWeight.split(",")[quant-1]+'!important;background-color:'+menuHoverBackground.split(",")[quant-1]+'!important; cursor:hand!important; text-decoration:'+fontDecoration.split(",")[quant-1]+'}');
  document.writeln ('.rcSubMenuStatic'+quant+' {font-family:'+sfontFace.split(",")[quant-1]+'!important;font-size:'+sfontSize.split(",")[quant-1]+'!important;color:'+sfontColour.split(",")[quant-1]+'!important;font-weight:'+sfontWeight.split(",")[quant-1]+'!important;text-decoration:'+sfontDecoration.split(",")[quant-1]+'!important;background-color:'+smenuBackground.split(",")[quant-1]+'!important; cursor:hand}');
  document.writeln ('.rcSubMenuHover'+quant+'  {font-family:'+sfontFace.split(",")[quant-1]+'!important;font-size:'+sfontSize.split(",")[quant-1]+'!important;color:'+sfontHoverColour.split(",")[quant-1]+'!important;font-weight:'+sfontWeight.split(",")[quant-1]+'!important;text-decoration:'+sfontDecoration.split(",")[quant-1]+'!important;background-color:'+smenuHoverBackground.split(",")[quant-1]+'!important; cursor:hand}');
  document.writeln ('</style>');
}

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(); showStatus(\''+quant+'\','+x+',\'over\'); popDown(\''+quant+'\','+x+', \''+quant+'button'+x+'\',\''+orientation+'\'); " onMouseOut="clearMenu('+quant+','+x+'); showStatus(\'\',\'\',\'out\')" ')
    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+'" onMouseOver="showStatus(\''+quant+'\','+x+',\'over\');return true" onMouseOut="showStatus(\'\',\'\',\'out\'); return true">'+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>');}   
  

  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 style="filter: alpha(Opacity='+subMenuTransparency.split(",")[quant-1]+')" 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].substring(0,1) =="#")
        {
          document.writeln ('<td style="cursor:default" 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(); showStatus(\''+quant+'\','+x+',\'over\','+y+'); highlightMenu(\'sub\','+x+','+y+',\'\','+quant+')" onMouseOut="clearMenu('+quant+','+x+'); showStatus(\'\',\'\',\'out\')" 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 onMouseOver="showStatus(\''+quant+'\','+x+',\'over\','+y+');return true" onMouseOut="showStatus(\'\',\'\',\'out\')" 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>');
    }
  }
} 


function showStatus(quant,menu,status,sub){
  if (status=="out"){displayStatus=""}
  else{
    if (statusBar == 0) {
      if(sub>-1)
      {
        displayStatus=eval("subMenu"+quant)[menu][sub][1]
      }
      else
      {
        displayStatus=eval("Menu"+quant)[menu][1];
      }
    }
    else if (statusBar == 1) 
    {
      if(sub>-1)
      {
        displayStatus=eval("subMenu"+quant)[menu][sub][0]
      }
      else
      {    
        displayStatus=eval("Menu"+quant)[menu][0];
      }
    }
    else displayStatus=statusBar
  }
  window.status=displayStatus
}

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+'"')
    }
  }
}

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;
  }
}

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++
  }  
}

function hoverMenu()
{
  if(timer)
  clearTimeout(timer)
}

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)
}

function tdMouseClick(theElement)
{
  eval(obj+'(theElement).click()')
}