/* ------------------------------------------------------------- */
// Javascript menu, styled like Apple MacOsX Aqua
// (c) A.E.Veltstra 2002
// Redistribute freely. Please include copyright notice.
/* ------------------------------------------------------------- */

// De acties die NIET als functie worden betiteld, worden uitgevoerd zodra het script wordt opgeroepen.
// Dat is 'Preloading Images'.

/* Deze string moet veranderd worden als de website verplaatst wordt: */
var strPad = new String('http://www.veltstra.nl/');
//var strPad = new String('file://MacHD/Users/aev/Sites/veltstra_nl/');
//var strPad = new String('http://www.omegajunior.net/code/veltstra_nl/');
//var strPad = new String('file://D:/Website/');

/* De rest van deze functies zouden niet gewijzigd hoeven worden */
var arrImg = new Array();

//Preloading Images
arrImg[0] = new Image();
arrImg[0].src = strPad + 'images/gb_def_left.png';
arrImg[1] = new Image();
arrImg[1].src = strPad + 'images/gb_def_right.png';
arrImg[2] = new Image();
arrImg[2].src = strPad + 'images/gb_act_left.png';
arrImg[3] = new Image();
arrImg[3].src = strPad + 'images/gb_act_right.png';
arrImg[4] = new Image();
arrImg[4].src = strPad + 'images/gb_nondef_left.png';
arrImg[5] = new Image();
arrImg[5].src = strPad + 'images/gb_nondef_right.png';


function eA(nrImg) {
//eA = endsActivate -> changes ending images from inactive to active;

  if (document.getElementById) {
   if (document.getElementById('l'+nrImg)) {
     document.getElementById('l'+nrImg).src = arrImg[2].src;
   }
  if (document.getElementById('r'+nrImg)) {
     document.getElementById('r'+nrImg).src = arrImg[3].src;
   }
  }
  return true;

}

function eD(nrImg) {
//eD = endsDefault -> changes ending images from active to default;

  if (document.getElementById) {
   if (document.getElementById('l'+nrImg)) {
     document.getElementById('l'+nrImg).src = arrImg[0].src;
   }
  if (document.getElementById('r'+nrImg)) {
     document.getElementById('r'+nrImg).src = arrImg[1].src;
   }
  }
  return true;

}

function nondef_D(nrImg) {
//nondef_D = endsNondefault -> changes ending images from active to nondefault;

  if (document.getElementById) {
   if (document.getElementById('l'+nrImg)) {
     document.getElementById('l'+nrImg).src = arrImg[4].src;
   }
  if (document.getElementById('r'+nrImg)) {
     document.getElementById('r'+nrImg).src = arrImg[5].src;
   }
  }
  return true;

}

function ShowMenu() {
//Writing the menu to the document
document.write('<div class="gbFloat" nowrap="nowrap">' +
'<img id="l1" height="22" width="13" align="top" src="'+strPad+'images/gb_def_left.png" alt="["><a class="gbGlassbutton" onMouseOver="eA(1)" onMouseOut="eD(1)" type="text/html" href="'+strPad+'stamboom/index.htm" title="De familiestamboom">Genealogie</a><img id="r1" height="22" width="13" align="top" src="'+strPad+'images/gb_def_right.png" alt="]"></div>' +
'\n' +
'<div class="gbFloat" nowrap="nowrap">' +
'<img id="l2" height="22" width="13" align="top" src="'+strPad+'images/gb_def_left.png" alt="["><a class="gbGlassbutton" onMouseOver="eA(2)" onMouseOut="eD(2)" type="text/html" href="'+strPad+'historie/index.htm" title="Wat onze familie de afgelopen jaren heeft gedaan en wat er in de toekomst nog staat te gebeuren">Geschiedenis</a><img id="r2" height="22" width="13" align="top" src="'+strPad+'images/gb_def_right.png" alt="]"></div>' +
'\n' +
'<div class="gbFloat" nowrap="nowrap">' +
'<img id="l3" height="22" width="13" align="top" src="'+strPad+'images/gb_def_left.png" alt="["><a class="gbGlassbutton" onMouseOver="eA(3)" onMouseOut="eD(3)" type="text/html" href="'+strPad+'computer/index.htm" title="Bitjes en Bijtjes over hard- en software">Computers</a><img id="r3" height="22" width="13" align="top" src="'+strPad+'images/gb_def_right.png" alt="]"></div>'  +
'\n' +
'<div class="gbFloat" nowrap="nowrap">' +
'<img id="l5" height="22" width="13" align="top" src="'+strPad+'images/gb_def_left.png" alt="["><a class="gbGlassbutton" onMouseOver="eA(5)" onMouseOut="eD(5)" type="text/html" href="'+strPad+'fotoboek/index.htm" title="Foto van alles en iedereen">Fotoalbum</a><img id="r5" height="22" width="13" align="top" src="'+strPad+'images/gb_def_right.png" alt="]"></div>' +
'\n' +
'<div class="gbFloat" nowrap="nowrap">' +
'<img id="l4" height="22" width="13" align="top" src="'+strPad+'images/gb_def_left.png" alt="["><a class="gbGlassbutton" onMouseOver="eA(4)" onMouseOut="eD(4)" type="text/html" href="'+strPad+'info/index.htm" title="Informatie, contactgegevens en veelgestelde vragen">Info</a><img id="r4" height="22" width="13" align="top" src="'+strPad+'images/gb_def_right.png" alt="]"></div>' +
'\n');

return true;
}