
<!--

var Menu = new Array ()
var subMenu = new Array ()


   Menu[0] = new Array("'Of Maywood'", "wie.html","midden") 
     subMenu[0] = new Array()
		 
   Menu[1] = new Array("Nieuws", "nieuws.html","midden") 
     subMenu[1] = new Array()		 
   
	 Menu[2] = new Array("Onze honden", "#","_self") 
     subMenu[2] = new Array()
     subMenu[2][0] = new Array ("Saartje", "saartje.html","midden")    
     subMenu[2][1] = new Array ("Flo", "flo.html","midden")		 
     subMenu[2][2] = new Array ("Indi", "indy.html","midden")
     subMenu[2][3] = new Array ("Coco", "coco.html","midden")		 
		 
   Menu[3] = new Array("Puppys", "pups.html","midden")
     subMenu[3] = new Array()
 
   
   Menu[4] = new Array("Nesten", "#","_self") 
     subMenu[4] = new Array()
		 subMenu[4][0] = new Array ("A-nest", "anest.html","midden")
     subMenu[4][1] = new Array ("B-nest", "bnest.html","midden")
     subMenu[4][2] = new Array ("C-nest", "cnest.html","midden")
		 subMenu[4][3] = new Array ("D-nest", "dnest.html","midden")		 
     subMenu[4][4] = new Array ("E-nest", "enest.html","midden")
     subMenu[4][5] = new Array ("F-nest", "fnest.html","midden")
     subMenu[4][6] = new Array ("G-nest", "gnest.html","midden")
     subMenu[4][7] = new Array ("H-nest", "hnest.html","midden")
     subMenu[4][8] = new Array ("I-nest", "inest.html","midden")
     subMenu[4][9] = new Array ("J-nest", "jnest.html","midden")
     subMenu[4][10] = new Array ("K-nest", "knest.html","midden")
     subMenu[4][11] = new Array ("L-nest", "lnest.html","midden")		 		 		
		 
  Menu[5] = new Array("Nakomelingen", "nakom.html","midden")
     subMenu[5] = new Array()		  		 		 		 		 
	 
   Menu[6] = new Array("In Memoriam", "#","_self")
     subMenu[6] = new Array()  
		 subMenu[6][0] = new Array ("Rose", "rose.html","midden")
     subMenu[6][1] = new Array ("Promise", "promise.html","midden")
     subMenu[6][2] = new Array ("Corky", "corky.html","midden")
		 subMenu[6][3] = new Array ("Fleur", "fleur.html","midden")
		 subMenu[6][4] = new Array ("Chyra", "chyra.html","midden")		 		 
 
   Menu[7] = new Array("Vakantie", "vakantie.html","midden")
     subMenu[7] = new Array()  
 
   Menu[8] = new Array("Hondentrimmen", "trimmen.html","midden")
     subMenu[8] = new Array()  
		 
   Menu[9] = new Array("Gewoon... mooi", "mooi.html","midden")
     subMenu[9] = new Array()
		   		 
   Menu[10] = new Array("Links", "links.html","midden") 
	   subMenu[10] = new Array()
	 
	 Menu[11] = new Array("Contact", "contact.html","midden") 
     subMenu[11] = new Array()
		 
	 Menu[12] = new Array("Gastenboek", "http://www.hondengedrag.net/gb_ofmaywood/toongastenboek.php","midden") 
     subMenu[12] = new Array()
		 
   Menu[13] = new Array("Fokbeleid CSC", "fokbeleid.pdf","midden") 
     subMenu[13] = new Array()		 
	


////// FORMAT MENU  ///////////////////////////////////////////////////////////////////
orientation = "vertical"                 // Orientation of menu.  (horizontal, vertical)
cellPadding = 0                            // Cell Padding
cellBorder = 0                             // Include table border (for no border, enter 0)
verticalOffset = 0                         // Vertical offset of Sub Menu. (if set to 0, default offset will be used)
horizontalOffset = 110                       // 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 = "#FFFFFF"                    // Border Colour 
menuBackground = "#660000"                 // Cell Background Colour
menuHoverBackground ="#ddcec5"            // Cell Background Colour on mouse rollover
fontFace = "Verdana"                       // Font Face
fontColour = "#ffcccc"                     // Font Colour
fontHoverColour = "#333333"                // Font Colour on mouse rollover
fontSize = "13px"                          // Font Size
fontDecoration = "none"                    // Style of the link text (none, underline, overline, line-through)
fontWeight = "normal"                      // Font Weight (normal, bold)

// Sub Menu Items
sborderColor = "#FFFFFF"                    // Border Colour 
smenuBackground = "#996666"                 // Cell Background Colour
smenuHoverBackground = "#ddcec5"            // Cell Background Colour on mouse rolloverr
sfontFace = "Verdana"                       // Font Face
sfontColour = "#330000"                     // Font Colour
sfontHoverColour = "#333333"                // 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()
{
  if (orientation == "vertical")
  {
    document.writeln ('<tr>');
    document.writeln ('<td width="150" valign="top">');	
	  
    document.writeln ('<table width="150" border="0" cellpadding="0" cellspacing="0" bgColor="'+borderColor+'" >');
    document.writeln ('<tr>');
    document.writeln ('<td width="150" height="1" bgcolor="#FFFFFF" valign="top"></td>');
    document.writeln ('</tr>')
  }
  else
  {
    document.writeln ('<table border="0" cellpadding="0" cellspacing="'+cellBorder+'" bgColor="'+borderColor+'"><tr>')
  }  
  for (x=0; x<Menu.length; x++)
  {
    if (orientation=="vertical") document.writeln('<tr>')
    document.writeln ('<td  onclick="tdMouseClick(\'mainLink'+x+'\')" onMouseOver="hoverMenu(); popDown('+x+', \'button'+x+'\'); " onMouseOut="clearMenu('+x+')" ><div id="button'+x+'"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td height="20" class="rcMenuStatic" id="cell'+x+'" nowrap>');
    document.writeln ('&nbsp;&nbsp;&nbsp;<a id="mainLink'+x+'" href="'+Menu[x][1]+'" target="'+Menu[x][2]+'" class="rcMenuStatic">'+Menu[x][0]+'</a></td>');
    document.writeln ('</tr></table></div></td>');    
    if (orientation=="vertical") document.writeln('</tr>')
    document.writeln ('<tr>');
    document.writeln ('<td width="150" height="1" bgcolor="#FFFFFF" valign="top"></td>');
    document.writeln ('</tr>');
	
  }
  if (orientation == "vertical")
  {
    document.writeln ('</table>');
    document.writeln ('</td></tr>');	
  }
  else
  {
      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="170" border="0" cellpadding="'+cellPadding+'" cellspacing="'+cellBorder+'" bgColor="'+sborderColor+'">');
    document.writeln ('<tr>');
    document.writeln ('<td width="170" 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*500
  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  ///////////////////////////////////////////////////////////////////
//-->

