


/*

===============================================================================
==========  Sie interessieren sich fuer den Quelltext von Restaurant Traube? ======
===============================================================================

Bitte beachten Sie,

1. dass diese Website barrierefrei gestaltet wurde
   (d.h. ohne Tabellenlayouts, sondern mit XHTML und CSS,
	sowie erweiterter Unterstuetzung fuer Vorlesegeraete usw.), und

2. dass alles, was Sie hier lesen koennen, urheberrechtlich geschuetzt ist!


(c) 2012 Web4Business. Alle Rechte vorbehalten.

Made with Web4Business CMS 0.3

===============================================================================
===============================================================================





*/

// detect framesets
if(top.location != location)
	top.location = location;



function areaHide(areaName) {
	if (document.getElementById) {
		document.getElementById(areaName).style.visibility = "hidden";
	}
}


function areaShow(areaName) {
	if (document.getElementById) {
		document.getElementById(areaName).style.visibility = "visible";
	}
}


function areaHideBlock(areaName) {
	if (document.getElementById) {
		document.getElementById(areaName).style.display = "none";
	}
}


function areaShowBlock(areaName) {
	if (document.getElementById) {
		document.getElementById(areaName).style.display = "block";
	}
}

function showPopup(popupFile,popupWidth,popupHeight) {

	// shows a popup window

	// calculate the left + top position
	var popupLeft = (screen.width  - popupWidth) / 2;
	var popupTop  = (screen.height - 30 - popupHeight) / 2;  // -30 due to taskbar

	var properties = "left=" + popupLeft + ",top=" + popupTop + ",toolbar=no,dependent=yes,";

	properties += "hotkeys=no,width=" + popupWidth + ",height=" + popupHeight + ",";
	properties += "scrollbars=yes";
	properties  = window.open(popupFile,"popup",properties);
}

function loadingFinished() {

}

function setCursor(cursorName) {

	document.getElementsByTagName("body")[0].style.cursor = cursorName;
}

function showWaitSplash(waittext, formid) {

	setOpacity('waitSplash', 0);
	areaShowBlock("waitSplash");

	document.getElementById("waitSplash").innerHTML =
		'<p>'+waittext+'</p>';

	if(typeof document.getElementById("waitSplash").style.MozOpacity != undefined
	   && !document.all) {
		var i;
		for(i=0; i<=20; i++) {
			window.setTimeout("setOpacity('wholepage', "+((20-i)/20)+");",50*i + 0);
			window.setTimeout("setOpacity('waitSplash', "+(i/20)+");",50*i + 0);
		}
	}
	else {
		areaHideBlock("wholepage");
	}

	window.setTimeout("areaHide('wholepage');", 50*20);
	window.setTimeout("document.getElementById('" + formid + "').submit();", 2000);

	return;
}

function setOpacity(objectid, opacity) {

	if(typeof document.getElementById(objectid).style.MozOpacity != undefined
	   && !document.all)
		document.getElementById(objectid).style.MozOpacity = opacity;
}
