var sema=0;
var TOP=ziel;
function stat()        {
	with(parent){
		if(sema==null)return;
		navi.clearTimer();
		if(navi.mutex.condP()) return;
		if(arguments.length==0) {navi.setStatus(1);}
		else if(arguments.length==1)navi.setStatus(1,arguments[0]); 
		else navi.setStatus(1,arguments[0],arguments[1]); 
		navi.mutex.V();
	}
}

function over(level,n) {
with(parent){
	if(sema==null)return;
	if(navi.mutex.condP()) return;
	navi.clearTimer();
	navi.setStatus(2,level,n); 
	navi.mutex.V();
}
}

function out(level,n) {
with(parent){
	if(sema==null)return;
	navi.clearTimer();
	navi.timer=TOP.setTimeout("out_delayed()",navi.delay);
}
}

function out_delayed() {
with(parent){
if(sema==null)return;
	if(navi.mutex.condP()) return;
	navi.setStatus(0); 
	navi.mutex.V();
}
}

//////////////////////////////////////////////////////////////////////////////
//
// Hilfsfunktion fuer die Popupfenster
//
//////////////////////////////////////////////////////////////////////////////

function open_popup_verzoegert(i1_html_page,i1_width,i1_height,i1_name){
	if(i1_name==null)	window.open(i1_html_page,"","height="+i1_height+",width="+i1_width+",resizable=1,scrollbars");
	else 	window.open(i1_html_page,i1_name,"height="+i1_height+",width="+i1_width+",resizable=1,scrollbars");
}
function open_popup(i_html_page,i_width,i_height,i_name){
	var befehl= new String();
	if(i_name!=null)	befehl="open_popup_verzoegert(\""+i_html_page+"\","+i_width+","+i_height+",\""+i_name+"\")";
	else befehl="open_popup_verzoegert(\""+i_html_page+"\","+i_width+","+i_height+")";
	setTimeout(befehl,10);
}
function printit(myobjekt){
	myobjekt.focus();
	if(navigator.appVersion.search("MSIE 4.01")!= -1){
			var OLECMDID_PRINT = 6;
			var OLECMDEXECOPT_PROMPTUSER=1;
			var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH="0" HEIGHT="0" CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
			myobjekt.document.body.insertAdjacentHTML('beforeEnd',WebBrowser);
			myobjekt.WebBrowser1.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER);
			myobjekt.WebBrowser1.outerHTML='';
	}
	else {
		myobjekt.print();
	}
}
function open_infocenter(){
	open_popup("kontaktbox.html",610,470,"infocenter");
}