function loaded() {
	if ( top == window ) {
		if ( location.href.substring(location.href.length-10) != "index.html" ) {
			location.href = "index.html";
		} else {
			var frame = document.getElementById("inhalt");
			if ( frame.src == "" ){
				window.setTimeout("loaded2()",100);
			}
		}
	} else {
		top.resize();
	}
}
function loaded2() {
	var frame = document.getElementById("inhalt");
	frame.src = "home.html";
}
var sTitleArray = ["inhalt"];
function resize(){
	for (var i=0; i<sTitleArray.length; i++){
		var siFrameID = sTitleArray[i];
		var oDOMiFrame = document.getElementById(siFrameID); 
		if ( document.frames != null ) {
			var oDOMiFrameDocument = oDOMiFrame.document
			var oDHTMLiFrame = document.frames[siFrameID];
			var oDHTMLiFrameDocument = oDHTMLiFrame.document;
			var oDIVwholePage = oDHTMLiFrameDocument.all[siFrameID]; // dhtml object model
		if (oDIVwholePage.offsetHeight==0) {
			oDOMiFrame.document.location.reload();
			return;
		}
			oDOMiFrame.height = oDIVwholePage.offsetHeight;				
			oDIVwholePage.style.visibility="visible";
		} else {
			var oDIVwholePage = oDOMiFrame.contentWindow.document.body; // dhtml object model
			oDOMiFrame.height = (oDIVwholePage.offsetHeight)+"px";
			oDIVwholePage.style.visibility="visible";
		}
	}
}
function anotherImage(d,maxIndex) {
	var img = document.getElementById("theimage");
	var parts = img.src.split(".");
	var name = parts[parts.length-2]
	var num = Number(name.substring(name.length-2))+d;
	num = (num<1)?maxIndex:(num>maxIndex)?1:num;
	parts[parts.length-2] = name.substring(0,name.length-2)+((num<10)?"0":"")+num;
	img.src = parts.join(".");
	return false;
}
function fwd(maxIndex) {
	anotherImage(1,maxIndex);
	return false;
}
function bwd(maxIndex) {
	anotherImage(-1,maxIndex);
	return false;
}