function pageini(menu,anker,title,info) {
	var vis4 = "hidden";
	var vis5 = "hidden";
	if(parent.frames.length==0)
		location.href="frames.html?" + location.pathname + "," + menu + "," + anker;
	parent.frameT.document.getElementById("title").firstChild.nodeValue = title;
	parent.frameT.document.getElementById("info").firstChild.nodeValue = info;

	if (parent.frameR3.fontSize!=2) {
		parent.frameR3.setSize(parent.frameC.document, parent.frameR3.fontSize);
	}
	if (parent.frameR3.bg!=0) {
		parent.frameR3.adaptBg(top.frameC.document, parent.frameR3.bg);
	}
	var page = parent.frameC.location.href;

	if (page.length>10
		&& page.substring(page.lastIndexOf(".")-11,page.lastIndexOf(".")-3)=="programm") {
		var pageNr = page.substring(page.lastIndexOf(".")-3,page.lastIndexOf("."));
		pageNr = parseInt(pageNr, 10);
		var lastPage = publDB[publDB.length-1][5];
		lastPage = lastPage.substring(lastPage.lastIndexOf(".")-3,lastPage.lastIndexOf("."));
		lastPage = parseInt(lastPage, 10);
		vis4 = "visible";
		vis5 = "visible"
		if (pageNr==lastPage)
			vis4 = "hidden";
		if (pageNr==1)
			vis5 = "hidden";
	}

	parent.frameR1.document.getElementById("l4").style.visibility = vis4;
	parent.frameR1.document.getElementById("m4").style.visibility = vis4;
	parent.frameR1.document.getElementById("l5").style.visibility = vis5;
	parent.frameR1.document.getElementById("m5").style.visibility = vis5;
}
function mover(id) {
	window.document.getElementById(id).style.background="#FF9999";
	var mid = "m" + id.substring(1);
	window.document.getElementById(mid).style.textDecoration="underline";
	window.document.getElementById(mid).style.fontWeight="bolder";
	window.document.getElementById(mid).style.backgroundColor="#FFCCCC";
}
function mout(id) {
	window.document.getElementById(id).style.background="#FF0000";
	var mid = "m" + id.substring(1);
	window.document.getElementById(mid).style.textDecoration="none";
	window.document.getElementById(mid).style.fontWeight="normal";
	window.document.getElementById(mid).style.backgroundColor="#FFFFFF";
}
function goTo(m,f) {
	if (f=="index.html") {
		parent.location.href=f;
	} else {
		showMenu(m);
		parent.frameC.location.href=f;
	}
}
function nextPage() {
	// Maximale Anzahl Seiten ermitteln
	var lastPage = publDB[publDB.length-1][5];
	lastPage = lastPage.substring(lastPage.lastIndexOf(".")-3,lastPage.lastIndexOf("."));
	lastPage = parseInt(lastPage, 10);
	var file = parent.frameC.location.href;
	var pageNr = file.substring(file.lastIndexOf(".")-3,file.lastIndexOf("."));
	++pageNr;
	if (pageNr > lastPage) {
		parent.frameR1.document.getElementById("l4").style.visibility = "hidden";
		parent.frameR1.document.getElementById("m4").style.visibility = "hidden";
		return;
	}
	pageNr = "000".substring((""+pageNr).length,3) + pageNr;
	file = file.substring(0,file.lastIndexOf(".")-3) + pageNr + ".htm";
	parent.frameC.location.href = file;
}
function prevPage() {
	var file = parent.frameC.location.href;
	var pageNr = file.substring(file.lastIndexOf(".")-3,file.lastIndexOf("."));
	--pageNr;
	if (pageNr<1) {
		parent.frameR1.document.getElementById("l5").style.visibility = "hidden";
		parent.frameR1.document.getElementById("m5").style.visibility = "hidden";
		return;
	}
	pageNr = "000".substring((""+pageNr).length,3) + pageNr;
	file = file.substring(0,file.lastIndexOf(".")-3) + pageNr + ".htm";
	parent.frameC.location.href = file;

}
