<!--

function controlFrame(){
	if (top.location == self.location){
		top.location.replace("index.html");
	}
}

function roll(action,link,nav_target) {
	if (document.all){
		if (!(document.all[link].className == "nav_click")){
			if (action == "over"){
				document.all[link].className = "nav_over";
			}else if (action == "click"){
				parent.main.location.href = nav_target;
				navigationFocusOut();
				document.all[link].className = "nav_click";
			}else{
				document.all[link].className = "nav_out";
			}
		}
	}else{
		if (!(document.getElementById(link).className == "nav_click")){
			if (action == "over"){
				document.getElementById(link).className = "nav_over";
			}else if (action == "click"){
				navigationFocusOut();
				document.getElementById(link).className = "nav_click";
			}else{
				document.getElementById(link).className = "nav_out";
			}
		}
	}
}

function navigationFocusOut() {
	if (document.all){
		for (i = 0; i < parent.navigation.document.all.length; i++){
			if (parent.navigation.document.all[i].className == "nav_click"){
				parent.navigation.document.all[i].className = "nav_out";
				break;
			}
		}
	}else{
		for (i = 0; i < parent.navigation.document.getElementsByTagName("a").length; i++){
			if (parent.navigation.document.getElementsByTagName("a")[i].className == "nav_click"){
				parent.navigation.document.getElementsByTagName("a")[i].className = "nav_out";
				break;
			}
		}
	}
}

function printShownPage(page) {
	if (page.lastIndexOf("kontakt.php") > -1){
		switch (parent.main.document.getElementById("button").name){
			case "weiter":
				openPrintWindow("kontakt.php", "kontakt");
				break;
			case "senden":
				alert("Um Ihre Nachricht auszudrucken, benutzen Sie bitte nach Versenden den Drucken-Button auf der Folgeseite.");
				break;
			case "drucken":
				parent.main.document.forms[0].submit();
				break;
		}
	}else if (page == "printPage.php"){
		openPrintWindow(page, "nachricht");
	}else{
		openPrintWindow(page, Math.round(Math.random()*1000000000000000).toString());
	}
}

function openPrintWindow(page, wind){
	window.open('printPage.php?url='+page,'printWindow_'+wind,'width=650,height=430,left='+(screen.width-670)+',top='+(screen.height-600)+',menubar=yes,resizable=yes,toolbar=yes,scrollbars=yes');
}
-->
