
<!--

var Menu = new Array ()
var subMenu = new Array ()


   Menu[0] = new Array("BEDRIJFSPROFIEL", "#","_self")
     subMenu[0] = new Array()       
     subMenu[0][0] = new Array ("ECM Technologies", "content.php?id=2","_self")
     subMenu[0][1] = new Array ("Kwaliteit en certificering", "content.php?id=3","_self")
     subMenu[0][2] = new Array ("Aan het roer", "content.php?id=4","_self")
     subMenu[0][2] = new Array ("Samenwerkingsverbanden&nbsp;&nbsp;&nbsp;", "content.php?id=5","_self")		 		 		 		 

   Menu[1] = new Array("ECM TECHNIEK", "#","_self") 
     subMenu[1] = new Array()
     subMenu[1][0] = new Array ("De huidige techniek", "content.php?id=6","_self")
     subMenu[1][1] = new Array ("Simulatie en procesbeschrijving&nbsp;&nbsp;&nbsp;", "content.php?id=7","_self")	 
     subMenu[1][2] = new Array ("Voor- en nadelen", "content.php?id=8","_self")	 
     subMenu[1][3] = new Array ("Geschiedenis", "content.php?id=9","_self")
     subMenu[1][4] = new Array ("ECM - Aanverwante technieken", "content.php?id=10","_self")		 
   
   Menu[2] = new Array("DIENSTEN", "#","_self")
     subMenu[2] = new Array()
     subMenu[2][0] = new Array ("Diensten", "content.php?id=66","_self")
     subMenu[2][1] = new Array ("Stroomschema", "content.php?id=70","_self")		 

   Menu[3] = new Array("PRODUCTEN", "#","_self") 
     subMenu[3] = new Array()
     subMenu[3][0] = new Array ("Toepassingen", "content.php?id=12","_self")		 
	 
   Menu[4] = new Array("PROJECTEN", "content.php?id=","_self") 
     subMenu[4] = new Array()
     subMenu[4][0] = new Array ("Projecten", "content.php?id=71","_self")		 
     subMenu[4][1] = new Array ("Referenties", "content.php?id=68","_self")		 
     subMenu[4][2] = new Array ("Klanten aan het woord", "content.php?id=67","_self")
     subMenu[4][3] = new Array ("MFU", "content.php?id=69","_self")		 

	 

	 
////// FORMAT MENU  ///////////////////////////////////////////////////////////////////
orientation = "horizontal"                 // Orientation of menu.  (horizontal, vertical)
cellPadding = 0                            // Cell Padding
cellBorder = 0                             // Include table border (for no border, enter 0)
verticalOffset = 24                         // Vertical offset of Sub Menu. (if set to 0, default offset will be used)
horizontalOffset = 1                       // Horizontal offset of Sub Menu. (if set to 0, default offset will be used)
subMenuDelay = 1                           // Time sub menu stays visible for (in seconds)

// Main Menu Items
borderColor = ""                    // Border Colour 
menuBackground = ""                 // Cell Background Colour
menuHoverBackground = ""            // Cell Background Colour on mouse rollover
fontFace = "Arial"                         // Font Face
fontColour = "#FFFFFF"                     // Font Colour
fontHoverColour = "#000000"                // Font Colour on mouse rollover
fontSize = "14px"                           // Font Size
fontDecoration = "none"                    // Style of the link text (none, underline, overline, line-through)
fontWeight = "bold"                      // Font Weight (normal, bold)

// Sub Menu Items
sborderColor = "#FFFFFF"                    // Border Colour 
smenuBackground = "#A09678"                 // Cell Background Colour
smenuHoverBackground = "#A09678"            // Cell Background Colour on mouse rolloverr
sfontFace = "Arial"                         // Font Face
sfontColour = "#FFFFFF"                     // Font Colour
sfontHoverColour = "#CCCCCC"                // Font Colour on mouse rollover
sfontSize = "12px"                           // Font Size
sfontDecoration = "none"                    // Style of the link text (none, underline, overline, line-through)
sfontWeight = "normal"                      // Font Weight (normal, bold)



////// 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"

// Default horizontal and vertical offsets
if (verticalOffset == 0 || verticalOffset == "") 
{
  verticalOffset = (orientation=="horizontal")?20:5
}

if (horizontalOffset == 0 || horizontalOffset == "") 
{
  horizontalOffset = (orientation=="horizontal")?-1:70
}

// Menu Styles
document.writeln ('<style>');
document.writeln ('.rcMenuStatic {font-family:'+fontFace+';font-size:'+fontSize+';color:'+fontColour+';font-weight:'+fontWeight+';background-color:'+menuBackground+'; cursor:hand; text-decoration:'+fontDecoration+'}');
document.writeln ('.rcMenuHover  {font-family:'+fontFace+';font-size:'+fontSize+';color:'+fontHoverColour+';font-weight:'+fontWeight+';background-color:'+menuHoverBackground+'; cursor:hand; text-decoration:'+fontDecoration+'}');
document.writeln ('.rcSubMenuStatic {font-family:'+sfontFace+';font-size:'+sfontSize+';color:'+sfontColour+';font-weight:'+sfontWeight+';text-decoration:'+sfontDecoration+';background-color:'+smenuBackground+'; cursor:hand}');
document.writeln ('.rcSubMenuHover  {font-family:'+sfontFace+';font-size:'+sfontSize+';color:'+sfontHoverColour+';font-weight:'+sfontWeight+';text-decoration:'+sfontDecoration+';background-color:'+smenuHoverBackground+'; cursor:hand}');
document.writeln ('</style>');

// Build and show the main menu items
function showMenus()
{

  document.writeln ('<table width="750" id="pw" border="0" cellpadding="0" cellspacing="'+cellBorder+'" bgColor="'+borderColor+'"><tr>')
  
  for (x=0; x<Menu.length; x++)
  {
    document.writeln ('<td width="750" height="18" onclick="tdMouseClick(\'mainLink'+x+'\')" onMouseOver="hoverMenu(); popDown('+x+', \'button'+x+'\'); " onMouseOut="clearMenu('+x+')" ><div id="button'+x+'"><table border="0" cellpadding="'+cellPadding+'" cellspacing="0" width="150"><tr><td width="150" class="rcMenuStatic" align="center" id="cell'+x+'" nowrap>');
    document.writeln ('<a id="mainLink'+x+'" href="'+Menu[x][1]+'" target="'+Menu[x][2]+'" class="rcMenuStatic">'+Menu[x][0]+'</a></td>');
		document.writeln ('</tr></table></td>');
	
  }
  document.writeln ('</tr></table>');
   

}  

// Build the sub menu items
  for (x=0; x<Menu.length; x++)
  { 
    if (subMenu[x].length > 0)
    {     
      document.writeln ('<div id="MENU'+x+'" style="visibility:hidden; position:absolute; z-index:2" >');
      document.writeln ('<table width="150" border="0" cellpadding="'+cellPadding+'" cellspacing="'+cellBorder+'" bgColor="'+sborderColor+'">');
    document.writeln ('<tr>');
    document.writeln ('<td width="150" height="1" bgcolor="#FFFFFF" valign="top"></td>');
    document.writeln ('</tr>');
	  
      for (y=0; y<subMenu[x].length; y++)
      {
        document.writeln ('<tr><td height="20" id="subMenu'+x+y+'" class="rcSubMenuStatic" onMouseOver="hoverMenu(); highlightMenu(\'sub\','+x+','+y+')" onMouseOut="clearMenu('+x+');" onclick="tdMouseClick(\'subLink'+x+y+'\')" nowrap>&nbsp;&nbsp;&nbsp;<a id="subLink'+x+y+'" href="'+subMenu[x][y][1]+'" target="'+subMenu[x][y][2]+'" class="rcSubMenuStatic">'+subMenu[x][y][0]+'</a></td></tr>');
        document.writeln ('<tr>');
        document.writeln ('<td width="150" height="1" bgcolor="#FFFFFF" valign="top"></td>');
        document.writeln ('</tr>');
      }
      document.writeln ('</table></div>');
    }
  }

// Change colour or menu and submenu items when the mouse hovers over.  
function highlightMenu(element,mainMenu,dropMenu,state)
{
  state=(state == "hover")?"rcMenuHover":"rcMenuStatic"
  if (element == "sub")
  {
    for (x=0; x < subMenu[mainMenu].length; x++)
    {
      eval(obj+'("subMenu'+mainMenu+x+'").className = "rcSubMenuStatic"')
      eval(obj+'("subLink'+mainMenu+x+'").className = "rcSubMenuStatic"')
    }
    eval(obj+'("subMenu'+mainMenu+dropMenu+'").className="rcSubMenuHover"')
    eval(obj+'("subLink'+mainMenu+dropMenu+'").className="rcSubMenuHover"')
  }
  else
  {
    eval(obj+'("cell'+mainMenu+'").className = "'+state+'"')
    eval(obj+'("mainLink'+mainMenu+'").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
  {
    alert("Error: invalid offset dimension '" + dim + "' in getOffset()")
    return false;
  }
}

// Show sub menus
function popDown(param, id)
{
  var menu;
  var button;

  if (id)
  {
    getOffset(eval(obj+'(id)'),'left');
    getOffset(eval(obj+'(id)'),'top');
  }
  n = 0;
  while (n < Menu.length)
  {

    //button = eval(obj+'("cell'+n+'")')
    menu = "MENU"+n
    if (param == n)
    {
        if (eval(obj+'(menu)'))
        {
          eval(obj+'(menu).style.visibility = "visible"')
          eval(obj+'(menu).style.left = oLeft + horizontalOffset;')
          eval(obj+'(menu).style.top = oTop + verticalOffset;')
        }
         highlightMenu('main',n,'','hover')
         if (subMenu[param].length > 0)
         {
           for (x=0; x<subMenu[param].length; x++)
           {
             eval (obj+'("subMenu'+param+x+'").className = "rcSubMenuStatic"')
             eval (obj+'("subLink'+param+x+'").className = "rcSubMenuStatic"')
           }
         }
      }
      else 
      {
        if (eval(obj+'(menu)'))
        {
          eval(obj+'(menu).style.visibility = "hidden"')
        }
        highlightMenu ('main',n,'','static')

      }
    n++
  }  
}

// Re-set timer for sub menus
function hoverMenu()
{
  if(timer)
  clearTimeout(timer)
}

// Set timer for sub menus
function clearMenu(menu)
{
  setDelay = subMenuDelay*1000
  delay = (subMenu[menu].length > 0)?setDelay:1
  
  timer = setTimeout("popDown("+(Menu.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()')
}
////// END MENU CODE  ///////////////////////////////////////////////////////////////////
//-->
