function initPage () {
	if (window  == top) {
	window.location="brunofs.htm"+"?target="+window.location.pathname
	}
}
function initMenu () {
	target = getVar(document.location.href,'target')
	if (target == "none") {
		lf.location=defaultFile("lf")
		rf.location=defaultFile("rf")

	}
	else {
		fileHashNaam = getFileHash(target)
		fileNaam = getFile(fileHashNaam)
		targetFrame = getFrame(fileNaam)
		if ( targetFrame == "lf") {
			lf.location=fileNaam
			rf.location=defaultFile("rf")
		}
		else {
			rf.location=fileNaam
			lf.location=defaultFile("lf")
		}
	}
}
function defaultFile (arg) {
	if ( arg == "lf") {
		return "inl.htm"
	}
	else {
		return "notes.htm"
	}
}
function getFrame (arg) {
	switch (arg) {
		case "bwsubmenu.htm" : 
			return "rf";
		case "rfsubmenu.htm" : 
			return "rf";
		case "inl.htm" : 
			return "lf";
		case "bruno.htm" : 
			return "lf";
		case "hl.htm" : 
			return "lf";
		case "druk.htm" : 
			return "lf";
		case "txt1656.htm" : 
			return "lf";
		case "at.htm" : 
			return "lf";
		case "lit.htm" : 
			return "lf";
		case "ed.htm" : 
			return "lf";
		case "toc.htm" : 
			return "lf";
		case "sv.htm" : 
			return "rf";
		case "notes.htm" : 
			return "rf";
		case "bsvverschil.htm" : 
			return "lf";
		case "corr.htm" : 
			return "rf";
		case "down.htm" : 
			return "lf";
		case "ixnaam.htm" : 
			return "lf";
		case "change.htm" : 
			return "lf";
	}
}
function getVar (bron,zoek) {
	x1 = zoek+"="
	y1 = bron.search(x1)
	if (y1 == -1) {
		return "none"
	}
	else {	y1 = y1 + x1.length
		bron = bron.substr(y1)
		y1 = bron.search("&")
		if (y1 == -1) {
			return bron
		}
		else {	return bron.substr(1, y1 - 1)
		}
	}
}
function getFileHash (bron) {
	y1 = bron.search("/")
	while (y1 != -1) {
		bron = bron.substr(y1+1)
		y1 = bron.search("/")
	}
	return bron
}
function getFile (bron) {
	y1 = bron.search("#")
	if (y1 == -1) {
		return bron
	}
	else {	return bron.substr(0,y1)
	}
}

