	/* Browser-Abfrage*/
	var ie4 = false;
	var ns4 = ( document.layers ) ? true:false; //fuer Netscape Navigator 4xx
	if ( ( navigator.appName == "Microsoft Internet Explorer" ) && 
	( navigator.appVersion.indexOf( "MSIE 4" ) != -1 ) ) ie4 = true; //Internet Explorer 4 ( u 5 ) kompatibel
	var DOMCmp	= ( document.getElementById ) ? true:false; //Means DOM 1 & 2 compatible ( NS6 && IE5 )

	/* Diese Werte werden automatisch gesetzt */	
	var XPos = 0;
	var YPos = 0;
	var toHide	= null;
	var toShow	= null;
	var timerX	= null;
	var timerMS	= null;
	
	/* 
	showMenu( menuName, id der Zelle von wo aus aufgerufen wird );
	*/
	function showMenu( objName, offsetLayer ) {
		hideAllMenus( );
			
		if ( ie4 ) {
			XPos = document.all[ offsetLayer ].offsetLeft;
			YPos = eval( document.all[ offsetLayer ].offsetTop + document.all[ offsetLayer ].offsetHeight );			
			
		} else if ( DOMCmp ) { 
			XPos = document.getElementById( offsetLayer ).offsetLeft;
			YPos = eval( document.getElementById( offsetLayer ).offsetTop + document.getElementById( offsetLayer ).offsetHeight );
		}			
		YPos += 1;	
		toShow = objName;
		timerMS = window.setTimeout( "show()", 100);
	}	
	
	function show( ) {
		window.clearTimeout( timerMS );
		toShow.setTopLeft( YPos, XPos );
		toShow.adjust( );		
		toShow.show( );
	}	
	
	function hide( objName ) {
		if ( DOMCmp ) {
			toHide = objName;
			timerX = window.setTimeout( "hideAway()", 200 );
			objName.setExTimer( timerX );
			if ( document.getElementById( "qtObj" ) != null ) {
				document.getElementById( "qtObj" ).style.visibility = "visible";
			}
		}	
	}
	
	function hideAway( ) /*distribution method*/ {
		window.clearTimeout( timerX );
		toHide.hide( );
	}
	
	function hideAllMenus( ) {
		for( var j=0; j < astrAllMenus.length; j++ )
			astrAllMenus[ j ].hide( );
	}	
	
	if ( DOMCmp ) {
		document.onclick = hideAllMenus;
	}	