// *************************************************************************
// ************************ Begin Customized Menu  *************************
// *************************************************************************

// Menu definition
var MenuLabels= new Array()
// This array is a list of the text to display on the menu items, URL en level
MenuLabels[1] = "Le Chien du Montagne,/Homepage.htm,Geen"
MenuLabels[2] = "Nieuws,/index.html,Geen"
MenuLabels[3] = "De Berner Sennenhond,/Berner/Berner.htm,Geen"
MenuLabels[4] = "Reuen,/Reuen/Valentino/Valentino.htm,Geen"
MenuLabels[5] = "Valentino1,/Reuen/Valentino/Valentino.htm,Reuen"
MenuLabels[6] = "Teven,/Teven/Teven.htm,Geen"
MenuLabels[7] = "Dewi,/Teven/Dewi/Dewi.htm,Teven"
MenuLabels[8] = "Jadore,/Teven/Jadore/Jadore.htm,Teven"
MenuLabels[9] = "Bellezza1,/Teven/Bellezza/Bellezza.htm,Teven"
MenuLabels[10] = "Memoriam,/Memoriam/Memoriam.htm,Geen"
MenuLabels[11] = "Asenna,/Memoriam/Asenna/Asenna.htm,Memoriam"
MenuLabels[12] = "Iboya,/Memoriam/Iboya/Iboya.htm,Memoriam"
MenuLabels[13] = "Bernou,/Memoriam/Bernou/Bernou.htm,Memoriam"
MenuLabels[14] = "Cherami,/Memoriam/Cherami/Cherami.htm,Memoriam"
MenuLabels[15] = "Calice,/Memoriam/Calice/Calice.htm,Memoriam"
MenuLabels[16] = "Zazou,/Memoriam/Zazou/Zazou.htm,Memoriam"
MenuLabels[17] = "Sizayo,/Memoriam/Sizayo/Sizayo.htm,Memoriam"
MenuLabels[18] = "A Nest,/A_Nest/ANest.htm,Geen"
MenuLabels[19] = "Aiko,/A_Nest/Aiko/Aiko.htm,A Nest"
MenuLabels[20] = "Jarno,/A_Nest/Jarno/Jarno.htm,A Nest"
MenuLabels[21] = "Indy,/A_Nest/Indy/Indy.htm,A Nest"
MenuLabels[22] = "Jadore,/A_Nest/Jadore/Jadore.htm,A Nest"  
MenuLabels[23] = "Quinta,/A_Nest/Quinta/Quinta.htm,A Nest"
MenuLabels[24] = "Senna,/A_Nest/Senna/Senna.htm,A Nest"
MenuLabels[25] = "Silke,/A_Nest/Silke/Silke.htm,A Nest"
MenuLabels[26] = "Zereh,/A_Nest/Zereh/Zereh.htm,A Nest"
MenuLabels[27] = "B Nest,/B_Nest/BNest.htm,Geen"
MenuLabels[28] = "Barresi,/B_Nest/Barresi/Barresi.htm,B Nest"
MenuLabels[29] = "Valentino,/B_Nest/Valentino/Valentino.htm,B Nest"
MenuLabels[30] = "Leonardo,/B_Nest/Leonardo/Leonardo.htm,B Nest"
MenuLabels[31] = "Beogino,/B_Nest/Beogino/Beogino.htm,B Nest"
MenuLabels[32] = "Bellezza,/B_Nest/Bellezza/Bellezza.htm,B Nest"
MenuLabels[33] = "Maura,/B_Nest/Maura/Maura.htm,B Nest"
MenuLabels[34] = "Samira,/B_Nest/Samira/Samira.htm,B Nest"
MenuLabels[35] = "Yesna,/B_Nest/Yesna/Yesna.htm,B Nest"
MenuLabels[36] = "Bibianna,/B_Nest/Bibianna/Bibianna.htm,B Nest"
MenuLabels[37] = "C Nest,/C_Nest/CNest.htm,Geen"
MenuLabels[38] = "Neela,/C_Nest/Neela/Neela.htm,C Nest"
MenuLabels[39] = "D Nest,/D_Nest/DNest.htm,Geen"
MenuLabels[40] = "Denethor,/D_Nest/Denethor/Denethor.htm,D Nest"
MenuLabels[41] = "Reu 2,/D_Nest/Reu2/Reu2.htm,D Nest"
MenuLabels[42] = "Gandalf Frodo,/D_Nest/GandalfFrodo/GandalfFrodo.htm,D Nest"
MenuLabels[43] = "Reu 4,/D_Nest/Reu4/Reu4.htm,D Nest"
MenuLabels[44] = "Reu 5,/D_Nest/Reu5/Reu5.htm,D Nest"
MenuLabels[45] = "Reu 6,/D_Nest/Reu6/Reu6.htm,D Nest"
MenuLabels[46] = "Elenor Cadeau,/D_Nest/ElenorCadeau/ElenorCadeau.htm,D Nest"
MenuLabels[47] = "Onze Kat,/Kat/Chameur.htm,Geen"
MenuLabels[48] = "Ons Konijn,/Konijn/Doodles.htm,Geen"
MenuLabels[49] = "Contact,/Contact.htm,Geen"
MenuLabels[50] = "Links,/Links.htm,Geen"
MenuLabels[51] = "Site Help,/SiteHelp.htm,Geen"
MenuLabels[52] = "Gastenboek,http://zicta.nl.server29.firstfind.nl/your-gastenboek/,Geen"

var MenuItemsMax = 52

// *********************************************************************
// ************************ End of Customized Menu *********************
// *********************************************************************

// *********************************************************************
// ************************ Begin Standard menu stuff  *****************
// *********************************************************************
function BuildAMenu(HighLow, RefURL, MenuText) {
  //menulevel 2
  //menu selected
  if (HighLow == 3) {
    // stripe lang
    document.writeln("<tr style='background-color:#CC9933'>")
    document.writeln("	<td  style='line-height:1px' colspan='4'></td>")
    document.writeln("</tr>")
    // menu label
    document.writeln("<tr>")
    document.writeln("	<td colspan='2'>&nbsp;</td>")
    document.writeln("	<td><a href='"+RefURL+"'>"+MenuText+"</a></td>")
    document.writeln("	<td>&nbsp;</td>")
    document.writeln("</tr>")
  } else if (HighLow == 2) {
    // stripe kort
    document.writeln("<tr>")
    document.writeln("	<td style='line-height:1px' colspan='2'></td>")
    document.writeln("	<td style='background-color:#CC9933; line-height:1px'></td>")
    document.writeln("	<td style='line-height:1px'></td>")
    document.writeln("</tr>")
    // menu label
    document.writeln("<tr>")
    document.writeln("	<td colspan='2'>&nbsp;</td>")
    document.writeln("	<td><a href='"+RefURL+"'>"+MenuText+"</a></td>")
    document.writeln("	<td>&nbsp;</td>")
    document.writeln("</tr>")
  } else if (HighLow == 1) {
    //menulevel 1
    //menu selected
    // stripe lang
    document.writeln("<tr style='background-color:#CC9933'>")
    document.writeln("  <td style='line-height:1px' colspan='4'></td>")
    document.writeln("</tr>")
    // menu label
    document.writeln("<tr>")
    document.writeln("  <td>&nbsp;</td>")
    document.writeln("  <td colspan='2'><a href='"+RefURL+"'>"+MenuText+"</a></td>")
    document.writeln("  <td>&nbsp;</td>")
    document.writeln("</tr>")
  } else if (HighLow == 0) {
    // stripe kort
    document.writeln("<tr>")
    document.writeln("  <td style='line-height:1px'></td>")
    document.writeln("  <td style='background-color:#CC9933; line-height:1px' colspan='2'></td>")
    document.writeln("  <td style='line-height:1px'></td>")
    document.writeln("</tr>")
    // menu label
    document.writeln("<tr>")
    document.writeln("  <td>&nbsp;</td>")
    document.writeln("  <td colspan='2'><a href='"+RefURL+"'>"+MenuText+"</a></td>")
    document.writeln("  <td>&nbsp;</td>")
    document.writeln("</tr>")
  }
}

// *********************************************************************
function BuildAMenuList(aLabel) {
  var pos = 0
  var st = 0
  var temp = ""
  var MenuLabel = ""
  var MenuLabelOld = ""
  var MainMenuLabel = ""
  var MenuLevel = ""
  var MenuURL = ""
 
// Menu Label, Menu URL en Menu Level
  for (var i = 1; i <= MenuItemsMax; i++) {
    st = 0
    temp = new String (MenuLabels[i])
    pos = temp.indexOf(",", st)
    MenuLabel = temp.substring(st, pos)
    st = pos + 1
    pos = temp.indexOf(",", st)
    MenuURL = temp.substring(st, pos)
    st = pos + 1
    MenuLevel = temp.substring(st, temp.length)
    if (MenuLabel == aLabel) {
      MainMenuLabel = MenuLevel
    }    
  }
//  document.writeln(MainMenuLabel)
  for (var i = 1; i <= MenuItemsMax; i++) {
    st = 0
    temp = new String (MenuLabels[i])
    pos = temp.indexOf(",", st)
    MenuLabel = temp.substring(st, pos)
    st = pos + 1
    pos = temp.indexOf(",", st)
    MenuURL = temp.substring(st, pos)
    st = pos + 1
    MenuLevel = temp.substring(st, temp.length)
    if (MenuLevel == "Geen") {
      if (MenuLabel == aLabel) {
          // selected Menu
          BuildAMenu(1, MenuURL, MenuLabel) //lang
      } else if (MenuLabelOld == aLabel) {
          BuildAMenu(1, MenuURL, MenuLabel) //lang
      } else {
          BuildAMenu(0, MenuURL, MenuLabel) //kort
      }
    } else if (MainMenuLabel == MenuLevel || MenuLevel == aLabel) {
      if (MenuLabel == aLabel) {
        // selected Menu
        BuildAMenu(3, MenuURL, MenuLabel) //lang
      } else if (MenuLabelOld == aLabel) {
        BuildAMenu(3, MenuURL, MenuLabel) //lang
      } else { 
        BuildAMenu(2, MenuURL, MenuLabel) //kort
      }
    }    
    MenuLabelOld = MenuLabel 
  }
  // end stripe
  document.writeln("<tr>")
  if (MenuLabel == aLabel) {
    document.writeln("  <td style='background-color:#CC9933; line-height:1px' colspan='4'></td>")
  } else {
  	document.writeln("  <td style='line-height:1px'></td>")
    document.writeln("  <td style='background-color:#CC9933; line-height:1px' colspan='2'></td>")
    document.writeln("  <td style='line-height:1px'></td>")
  }
  document.writeln("</tr>")
}

// *********************************************************************
function showheader() 
{
  document.writeln("<table width='100%' cellpadding='0' cellspacing='0' border='0'>")
  document.writeln("	<tr colspan='5'>")
  document.writeln("			<h1><marquee scrolldelay='75'>Bellezza is bevallen van Ola. Zie het nieuws</marquee></h1>")
  document.writeln("	</tr>")
  document.writeln("	<tr>")
  document.writeln("		<td align='center'><img src='/Lcdm.jpg' alt='Le Chien du Montagne' width='128' height='153' /></td>")
  document.writeln("		<td><img src='/odot.gif' alt='' width='19' height='9' /></td>")
  document.writeln("		<td align='center'><img src='/VBSH.gif' width='80' height='100' ><br /><b>Lid van VBSH</b></td>")
  document.writeln("		<td align='center'>")
  document.writeln("			<p style='font-family:monotype corsiva ;font-size: 36pt; font-weight: bold' align='center'>berner sennen kennel<br />&rdquo;le chien du montagne&ldquo;<\p></td>")
  document.writeln("		<td align='center'><img src='/NBSV.jpg' width='143' height='87'><br /><b>Lid van NBSV</b></td>")
  document.writeln("	</tr>")
}  

// *********************************************************************
function showleft(aLabel) {
  document.writeln("	<tr valign='top'>")
  document.writeln("		<td>")
  document.writeln("			<table width='210' cellpadding='0' cellspacing='0' border='0'>")
  document.writeln("				<!--BEGIN STANDARD NAV-->")
  document.writeln("				<tr>")
  document.writeln("  					<td><img src='/odot.gif' alt='' width='10' height='1' /></td>")
  document.writeln(" 	 				<td><img src='/odot.gif' alt='' width='20' height='1' /></td>")
  document.writeln("  					<td><img src='/odot.gif' alt='' width='170' height='1' /></td>")
  document.writeln("	  				<td><img src='/odot.gif' alt='' width='10' height='1' /></td>")
  document.writeln("				</tr>")
  document.writeln("				<!--END STANDARD NAV-->")
  document.writeln("				<!--BEGIN SITE NAV-->")
  BuildAMenuList(aLabel)
  document.writeln("				<!--END SITE NAV-->")
  document.writeln("				<tr>")
  document.writeln("					<td colspan='4'><br /><p align='center'><img src='/Week1_7.JPG' alt='' width='192' height='126' /></p></td>")
  document.writeln("				</tr>")
  document.writeln("				<tr>")
  document.writeln("					<td colspan='4'><p align='center'>Updated on: 31-01-10</p></td>")
  document.writeln("				</tr>")
  document.writeln("			</table>")
  document.writeln("		</td>")
  document.writeln("		<td><img src='/odot.gif' alt='' width='10' height='1'</td>")
  document.writeln("		<td colspan='3' width='100%'>")
  document.writeln("			<!--BEGIN MAIN BODY CONTENT-->")
  document.writeln("			<a name='navskip'></a>")
}

// *********************************************************************
function showright () {
  // put out the tags to end the table in the middle part of the screen
  document.writeln("			<!--END MAIN BODY CONTENT-->")
  document.writeln("		</td>                       ")
  document.writeln("		<!--END CENTER COLUMN-->    ")
  // put the ending tags for the whole page table
  document.writeln("	</tr>")
  document.writeln("</table>")
}


