window.onerror=stoperror
var zhome="http://users.belgacom.net/DeZeester/";
var doc=document;
function stoperror(){
return true;
}
window.loaded = false;

function F_LastModified( )
{
lastmod = doc.lastModified;
lastmoddate = new Date(); 
lastmoddate.setTime(Date.parse(lastmod)) ;
doc.write("<Table align=center cellpadding=0 cellspacing=0 style='border:black solid 1px;color:yellow;font-size:10px'><TR><TD align=center valign=middle background='"+zhome+"images/bgwater.jpg'><a href='"+zhome+"'><img src='"+zhome+"images/zeesterhome1.gif'></a><NOBREAK>(&#169;Erik Lodewyckx) Laatst gewijzigd: " + lastmoddate.toLocaleString() + "</NOBREAK></TD></TR></TABLE>");
}

// check frame context
if (parent.location.href == self.location.href) 
{
var parentframe = zhome+'frame_index.html'; 
var current = window.self.location.pathname; 
if (current.indexOf("DeZeester") == 1) window.location.replace (parentframe + '?' + current); 
} 

function invoegentitel() {
var titelstr = "<H1>"+document.title+"</H1>";
document.body.insertAdjacentHTML("afterBegin",titelstr);
}

if (doc.all) 
  doc.oncontextmenu =showMenu; 
if (doc.layers) { 
  doc.captureEvents(Event.MOUSEDOWN); 
  doc.onmousedown = showMenu; 
}

var Cmenu, smenu, s1menu, s2menu;
var cw, ch, dh, dw, px, py, scw, sch, spx, spy;

function showMenu (evt) { 
if (window.loaded==false) return false;
if (window.location.href.indexOf("titlenew") + window.location.href.indexOf("indexflessen") > 0) return false; 
  if (doc.all) { 
	Cmenu.style.display = 'inline'; 
	cw = Cmenu.offsetWidth; 
	ch = Cmenu.offsetHeight; 
	dh = doc.body.scrollTop+doc.body.offsetHeight; 
	dw = doc.body.scrollLeft+doc.body.scrollWidth; 
	px = doc.body.scrollLeft+event.clientX;
	py = doc.body.scrollTop+event.clientY; 
	if (px+cw>dw) px = dw-cw; if (py+ch>dh) py = dh-ch-4;
	if (px<0) px=0;	if (py<0) py=0;
	Cmenu.style.pixelLeft = px; 
	Cmenu.style.pixelTop = py; 
	Cmenu.style.visibility = 'visible'; 
	return false; 
  } 
  else if (doc.layers) { 
    if (evt.which == 3) { 
      Cmenu.left = evt.x; 
      Cmenu.top = evt.y; 
      Cmenu.onmouseout = function (evt) { this.visibility = 'hide'; }; 
      Cmenu.visibility = 'show'; 
      return false; 
    } 
  } 
  return true; 
} 

function showSubMenu(spm,ssm) {
spm = getdiv(spm);
  if (doc.all) { 
	ssm.style.display = 'inline'; 
	scw = ssm.offsetWidth; 
	sch = ssm.offsetHeight; 
	dh = doc.body.scrollTop+doc.body.offsetHeight; 
	dw = doc.body.scrollLeft+doc.body.scrollWidth; 
 	spx = spm.offsetLeft + spm.offsetWidth - 7;
	spy = doc.body.scrollTop+event.clientY; 
	if (spx+scw>dw) spx = spm.offsetLeft - scw + 7; if (spy+sch>dh) spy = dh-sch-3;
	if (spx<0) spx=0; 	if (spy<0) spy=0;
	ssm.style.pixelLeft = spx; 
	ssm.style.pixelTop = spy; 
	ssm.style.visibility = 'visible'; 
  } 
  else if (doc.layers) { 
    if (evt.which == 3) { 
      ssm.left = evt.x; 
      ssm.top = evt.y; 
      ssm.onmouseout = function (evt) { this.visibility = 'hide'; }; 
      ssm.visibility = 'show'; 
    } 
  } 
}

function hideMenu1() {
  var arguments = hideMenu1.arguments;
  for (var i = 0; i < arguments.length; i++) {
arguments[i].style.visibility='hidden';
arguments[i].style.display='none';
  }
}
function getid(el) {
   while (el.id!='sub2Menu'&&el.id!='sub1Menu'&&el.id!='subMenu'&&el.id!='contextMenu'&&el.tagName!='BODY') el=el.parentElement;
   return el.id;
}
function getdiv(el) {
   while (el.tagName!='DIV') el=el.parentElement;
   return el;
}
function hideMenu(m) { 
var from = ''; var to = '';
from = getid(event.srcElement);
to = getid(event.toElement);
//window.status="from="+from+" to="+to;
if (from==to) return false;
if (to!='sub2Menu'&&to!='sub1Menu'&&to!='subMenu'&&to!='contextMenu') hideMenu1(Cmenu,smenu,s1menu,s2menu);
if (from=='contextMenu'&&to=='subMenu') return false;
if (from=='subMenu'&&(to=='sub1Menu'||to=='sub2Menu')) return false;
if ((from=='sub1Menu'||from=='sub2Menu')&&to=='subMenu') hideMenu1(s1menu,s2menu);
if (from=='subMenu'&&to=='contextMenu') hideMenu1(s2menu,s1menu,smenu);
}

function goto(adr) { 
if (self.frames.name=='display_area') window.location=zhome+adr;
else window.parent.location=zhome+adr;
}

function insertTab() {

var sTD = '<td CLASS="Menu" onmouseover="this.className= \'menuOn\';" onmouseout="this.className=\'Menu\';" ';
var iHtml="";
iHtml+='<DIV ID="contextMenu" CLASS="contextMenu" ONMOUSEOUT="hideMenu(this);"><table CLASS="noPrint" WIDTH=100% CELLPADDING=1 CELLSPACING=0>';
iHtml+='<tr align=center><td colspan=2 class="Menuhoofd">Duikschool De&nbsp;Zeester</td></tr>';
var nm = window.location.href;
if (nm.indexOf("welkom1") < 0) { 
iHtml+= '<TR>' + sTD + 'style="width:50%;border-right:#0000ff solid 1px;" ONCLICK="goto(\'html/welkom1.htm\');"><img src="'+zhome+'images/home_ov.gif" alt="home" width="18" height="18" border=0 ONCLICK="window.parent.location=\''+zhome+'html/welkom1.htm\';" style="cursor:hand"> Startpagina</td>' + sTD +'style="width:50%;text-align:right;padding-left:0px" ONCLICK="location.reload();"><img src="'+zhome+'images/refresh.gif" alt="Refresh" width="10" height="15" border=0 ONCLICK="location.reload();" style="cursor:hand"> Vernieuwen</tr>';
}
iHtml+= '<TR>' + sTD + 'style="width:50%;border-right:#0000ff solid 1px;" ONCLICK="window.parent.print();"><img src="'+zhome+'images/printer_ov.gif" alt="Print" width="18" height="18" border=0 ONCLICK="window.parent.print();" style="cursor:hand">Afdrukken</td>' + sTD + 'style="width:50%;text-align:right;" onclick="showSubMenu(this,smenu)">menu&nbsp;&nbsp;&nbsp;<b>&#9658;</b></td></tr>'; 
if (nm.indexOf("welkom1") < 0) iHtml+= '<TR>' + sTD + 'style="width:50%;border-right:#0000ff solid 1px;" onclick="history.back()"><img valign=absmiddle src="'+zhome+'images/vorige1.gif" alt="vorige" width="18" height="18" border=0" onclick="history.back()" style="cursor:hand">&nbsp;vorige</td>' + sTD + 'style="width:50%;text-align:right;" onclick="history.forward()">volgende&nbsp;<img valign=absmiddle src="'+zhome+'images/volgende1.gif" alt="volgende" width="18" height="18" border=0" onclick="history.forward()" style="cursor:hand"></td></tr>'; 
iHtml+= '<TR">' + sTD + 'colspan=2 style="background-color:steelblue;text-align:center;height:12px;font-size:12px;" ONCLICK="window.parent.location=\'mailto:lodewyckx.erik@belgacom.net?subject=Copyright\';">&nbsp;<b>&copy;</b>&nbsp;Erik Lodewyckx</td></tr>';
iHtml+='</table></div>';
doc.body.insertAdjacentHTML('beforeEnd', iHtml); 
var aright =  'style="text-align:right" '; var acent =  'style="text-align:center" ';
iHtml="";
iHtml+='<DIV ID="subMenu" class="smclass" ONMOUSEOUT="hideMenu(this);"><table WIDTH=100% CELLPADDING=1 CELLSPACING=0>';
iHtml+= '<TR>'  + sTD + aright + 'onclick="showSubMenu(this,s1menu);hideMenu1(s2menu);">Informatie&nbsp;&nbsp;&nbsp;<b>&#9658;</b></td></tr>'; 
iHtml+= '<TR>'  + sTD + aright + 'onclick="showSubMenu(this,s2menu);hideMenu1(s1menu);">Brevetten&nbsp;&nbsp;&nbsp;<b>&#9658;</b></td></tr>'; 
iHtml+= '<TR>'  + sTD + acent + 'onclick="goto(\'html/seizoen_2003.htm\');">Agenda 2003</td></tr>'; 
iHtml+= '<TR>'  + sTD + acent + 'onclick="goto(\'html/nieuws.htm\');">Nieuw</td></tr>'; 
iHtml+= '<TR>'  + sTD + acent + 'onclick="goto(\'plons/plons.htm\')">De plons</td></tr>'; 
iHtml+= '<TR>'  + sTD + acent + 'onclick="goto(\'html/links.html\');">Links</td></tr>'; 
iHtml+= '<TR>'  + sTD + acent + 'onclick="goto(\'html/Les Fysica.htm\')">Duikfysica</td></tr>'; 
iHtml+= '<TR>'  + sTD + acent + 'onclick="goto(\'html/foto.htm\')">Foto album</td></tr>'; 
iHtml+='</table></div>';
doc.body.insertAdjacentHTML('beforeEnd', iHtml); 

iHtml="";
iHtml+='<DIV ID="sub1Menu" class="smclass" ONMOUSEOUT="hideMenu(this);"><table WIDTH=100% CELLPADDING=1 CELLSPACING=0>';
iHtml+= '<TR>'  + sTD + acent + 'onclick="goto(\'html/wiezijnwij.htm\');">Wie zijn wij?</td></tr>'; 
iHtml+= '<TR>'  + sTD + acent + 'onclick="goto(\'html/trainingen.htm\');">Trainingen</td></tr>'; 
iHtml+= '<TR>'  + sTD + acent + 'onclick="goto(\'html/activiteiten.htm\');">Activiteiten</td></tr>'; 
iHtml+= '<TR>'  + sTD + acent + 'onclick="goto(\'html/duikkader.htm\');">Duikkader</td></tr>'; 
iHtml+= '<TR>'  + sTD + acent + 'onclick="goto(\'html/bestuur.htm\')">Bestuur</td></tr>'; 
iHtml+='</table></div>';
doc.body.insertAdjacentHTML('beforeEnd', iHtml);   

iHtml="";
iHtml+='<DIV ID="sub2Menu" class="smclass" ONMOUSEOUT="hideMenu(this);"><table WIDTH=100% CELLPADDING=1 CELLSPACING=0>';
iHtml+= '<TR>'  + sTD + 'onclick="goto(\'html/Brevet1Duiker.htm\');">1* Duiker</td></tr>'; 
iHtml+= '<TR>'  + sTD + 'onclick="goto(\'html/Brevet2Duiker.htm\');">2* Duiker</td></tr>'; 
iHtml+= '<TR>'  + sTD + 'onclick="goto(\'html/Brevet3Duiker.htm\');">3* Duiker</td></tr>'; 
iHtml+= '<TR>'  + sTD + 'onclick="goto(\'html/Brevet4Duiker.htm\');">4* Duiker</td></tr>'; 
iHtml+= '<TR>'  + sTD + 'onclick="goto(\'html/1instructeur.htm\')">1* Instructeur</td></tr>'; 
iHtml+= '<TR>'  + sTD + 'onclick="goto(\'html/2instructeur.htm\')">2* Instructeur</td></tr>'; 
iHtml+= '<TR>'  + sTD + 'onclick="goto(\'html/3instructeur.htm\')">3* Instructeur</td></tr>'; 
iHtml+='</table></div>';
doc.body.insertAdjacentHTML('beforeEnd', iHtml);   

if (doc.all) { 
Cmenu = doc.all.contextMenu;
smenu = doc.all.subMenu;
s1menu = doc.all.sub1Menu;
s2menu = doc.all.sub2Menu;
}
  else if (doc.layers) { 
Cmenu = doc.contextMenu;
smenu = doc.subMenu;
s1menu = doc.sub1Menu;
s2menu = doc.sub2Menu;
}
}

function onwindowload() {
insertTab(); 
window.loaded = true;
}
if (doc.all) { 
window.attachEvent('onload', onwindowload);
}
  else if (doc.layers) { 
window.onload = onwindowload;
}