// Navigation bar

if (top.location.href == location.href) {
 	top.location.href = "../index.html";
}

var AantalButtons = 7;
var Klaar = 0;
var Pagina = 0;
var rest = parent.location.search;
if (rest != "") {
	Pagina = rest.substr(1, 1);
}

function LaadPlaatjes()
{
	Button = new Array(AantalButtons);
	for (teller = 0; teller <= AantalButtons; teller++) {
		Button[teller] = new Image();
		Button[teller].src = "../images/button" + teller + ".gif";
	}
	ButtonO = new Array(AantalButtons);
	for (teller = 0; teller <= AantalButtons; teller++) {
		ButtonO[teller] = new Image();
		ButtonO[teller].src = "../images/button" + teller + "o.gif";
	}
	Button_ = new Array(AantalButtons);
	for (teller = 0; teller <= AantalButtons; teller++) {
		Button_[teller] = new Image();
		Button_[teller].src = "../images/button" + teller + "_.gif";
	}
	Foot = new Image();
	FootO = new Image();
	Foot_ = new Image();
	Foot.src = "../images/transparent.gif";
	FootO.src = "../images/footo.gif";
	Foot_.src = "../images/foot_.gif";

	Klaar = 1;
	
	KlikButton(Pagina);
}

function OverButton(Nummer) {
	if (Klaar == 1) {
		if (Nummer != Pagina) {
			if (Nummer < 10) {
				document.images['ButtonImage' + Nummer].src = ButtonO[Nummer].src;
			}
			else {
				document.images['ButtonImage' + Nummer].src = FootO.src
			}
		}
	}
}

function UitButton(Nummer) {
	if (Klaar == 1) {
		if (Nummer != Pagina) {
			if (Nummer < 10) {
				document.images['ButtonImage' + Nummer].src = Button[Nummer].src;
			}
			else {
				document.images['ButtonImage' + Nummer].src = Foot.src
			}
		}
	}
}

function KlikButton(Nummer) {
	if (Pagina < 10) {
		document.images['ButtonImage' + Pagina].src = Button[Pagina].src;
	}
	else {
		document.images['ButtonImage' + Pagina].src = Foot.src
	}
	Pagina = Nummer;
	if (Pagina > 10) {
		document.images['ButtonImage' + Pagina].src = Foot_.src;
	}
	else {
		document.images['ButtonImage' + Pagina].src = Button_[Pagina].src;
	}
	
	if (Pagina == 0) {
		MM_controlShockwave('BigFootIntro','','Rewind');
		MM_controlShockwave('BigFootIntro','','Play');
	}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_controlShockwave(objStr,x,cmdName,frameNum) { //v3.0
  var obj=MM_findObj(objStr);
  if (obj) eval('obj.'+cmdName+'('+((cmdName=='GotoFrame')?frameNum:'')+')');
}
