function move(x) {
if (document.all) {
object1.style.pixelLeft += x;
object1.style.visibility = "visible"}
else if (document.layers) {
document.object1.left += x;
document.object1.visibility = "show"}}

function makeStatic() {
if (document.all) {object1.style.pixelTop=document.body.scrollTop+0}
else {eval(document.object1.top=eval(window.pageYOffset+0));}
setTimeout("makeStatic()",0);}

function positionmenu(){
move(-254);
}

function navigateie(which){
if (linktarget=='')
window.location=thelink[which]
else if (linktarget=='new')
window.open(thelink[which])
else{
temp_var=eval("window.parent."+linktarget)
temp_var.location=thelink[which]
}
}

function setAnchor(el, id)
{ 
el.insertAdjacentHTML("BeforeBegin", "<A NAME='" + id + "'>"); 
el.insertAdjacentHTML("AfterEnd", "</A>"); } 
if (document.layers) {document.write('<LAYER visibility="hide" top="0" name="object1" bgcolor="blue" left="0" onmouseover="move(254)" onmouseout="move(-254)">')}

if (document.all) {document.write('<DIV ID="object1" class="noprint" style="visibility:hidden;cursor:hand; Position : Absolute ;Left : 0px ;Top : 0px ;Z-Index : 7" onmouseover="move(254)" onmouseout="move(-254)">')}

document.write('<table style="behavior:url(../css/ZStable.htc);background-color:#91bbee" typeTabel="alternate" width=277 id=inhoud><tr><th>'+document.title+'</th><td rowspan="100" class=menuhfdBg style="position:relative;top:0px;left:1px;height:100%;"><div class=menuHfd style="font-size:12pt">Navigatie Menu</div></TD></tr>')

if (document.all||document.layers) {
	makeStatic();
}
var indent=new Array();
var text=new Array();
var thelink=new Array();

//configure thelinks below. Extend as desired

text[0]="";
thelink[0]="";

//enter target of above links
//Valid values are '', 'new', or 'framename' (where 'framename' is the name of the frame you wish the links to target)
var linktarget=''

insertInhoudsTabel();

for (i=0;i<=text.length-1;i++)
if (document.all) {document.write('<TR height=10px style="height:10px;font-size:8pt;"><TD height=10px onclick="navigateie('+i+')" + style="padding:0px;height:10px;padding-left:'+indent[i]+'px"><img src="../images/duikvlaggetje.gif" style="height:9px;">'+text[i]+'</TD></TR>')}
else {document.write('<TR><TD bgcolor="#0000ff"><ILAYER><LAYER HEIGHT="18" onmouseover="this.bgColor=\'yellow\'" onmouseout="this.bgColor=\'white\'" width=131>&nbsp;<A HREF="'+thelink[i]+'" target="'+linktarget+'" id="nounderline">'+text[i]+'</A></LAYER></ILAYER></TD></TR>')}

document.write('<tr><td style="font-size:10pt;height:10px;padding:0px;text-align:center;"><a href=\"Mailto:lodewyckx.erik@belgacom.net?Subject=from:van_menu\">&copy 2003 ErikLodewyckx</a></td></TR></table>')

if (document.all) {document.write('</DIV>')}

if (document.layers) {document.write('</LAYER>')}

function insertInhoudsTabel() 
{
	var coll = document.all;

    	var id,tn;
	var m=0;
    for (i=document.body.sourceIndex+1; i<coll.length; i++) 
{
        tn = coll[i].tagName;

if (tn=="H1"||tn=="H2"||tn=="H3"||tn=="H4"||tn=="H5"||tn=="H6"||tn=="H7")      
		{
        switch (coll[i].tagName) {
        case "H1":
            indent[m]= 0;
            break;
        case "H2":
            indent[m]= 10;
            break;
        case "H3":
            indent[m]= 20;
            break;
        case "H4":
            indent[m]= 30;
            break;
        case "H5":
            indent[m]= 40;
            break;
        case "H6":
            indent[m]= 50;
            break;
        case "H7":
            indent[m]= 60;
            break;
        default:
            indent[m]= -1;
        }
            id = i;

		text[m]=coll[i].innerText;
		thelink[m]="#"+id;
            setAnchor(coll[i], id);
	      i++;m++;
            }
}
}
window.onload=positionmenu


