
		// Variablen
		showmain = "";
		showsub = "";
		do_show = true;

		farben = new Array;
		
		texte = new Array;
		
		links = new Array;
		
		standard = "<div class='starttext'><strong><font size=-2>Willkommen</font></strong><br>auf der Startseite von Literaturport - dem Literaturhafen im Internet.<br><strong><font size=-2>Errichtet mit Fördermitteln von:</font></strong><br>Stiftung Preußische Seehandlung<br>Stiftung Brandenburger Tor<br>Land Brandenburg<br>Land Berlin</div>";
		


		gotoSubmenu = 0;

		lastMainMenu = "";


    zeitakt = "";

		//// Action Funktionen

		function inMitte(obj) {
			gotoSubmenu = 1;
			setBG(lastMainMenu,farben[lastMainMenu.id]);
		}
		
		function inContainer(obj) {
		}

		function outContainer() {
		}
		
		function outMainMenu (obj) {
			obj.style.backgroundColor = "";
			
			gotoSubmenu = 0;
			lastMainMenu = obj;
			
		}
		
		function outSubMenu (obj) {
			setBG(lastMainMenu,"");
			setBG(obj,"");

		}		

		function inMainMenu (obj) {	
			//if(zeitakt) { window.clearTimeout(zeitakt); }
			if(do_show) { remshow(); }
			delMainMark(obj);
			dosubmenu(obj,"navi2");
			setBG(obj,farben[obj.id]);
			setBG(document.getElementById("navi2"),"rgb(199, 209, 198)");
			//zeitakt = window.setTimeout("isEnde()",2000);
		}
		
		function inSubMenu (obj) {
			//if(zeitakt) { window.clearTimeout(zeitakt); }
			setBG(lastMainMenu,farben[lastMainMenu.id]);
			setBG(obj,farben[lastMainMenu.id]);	
			//zeitakt = window.setTimeout("isEnde()",2000);
		}	



		function isEnde() {
			//alert("Ende");
			setBG(lastMainMenu,"");
			lastMainMenu = "";
			show();			
		}

		/// doFunktionen


		/// Submenu schreiben
		function dosubmenu(obj,id) {
			submenucode = "";
			for (var i = 0; i < texte[obj.id].length; i++) {
				submenucode = submenucode + links[texte[obj.id][i]];
			}
			document.getElementById(id).innerHTML = submenucode;
		}
		
		
		/// Setze Hintergrund
		function setBG(obj,farbe) {
			obj.style.backgroundColor = farbe;	
		}
		
		/// Alte main Markierung entfernen
		function delMainMark(obj) {		
			if(lastMainMenu){
				if(lastMainMenu != obj) {
				lastMainMenu.style.backgroundColor = "";	
				}
			}
		}
		
		
		// Standard markieren
		function show(main,sub) {
		
			if(lastMainMenu) { setBG(lastMainMenu,""); }
		
			if(!showmain) {
				showmain = main;
				showsub = sub;
			}
			else {
				main = showmain;
				sub = showsub;		
			}
	
			if((main) && (sub))
			{
			dosubmenu(document.getElementById(main),"navi2");			
			setBG(document.getElementById(main),farben[main]);
			setBG(document.getElementById(sub),farben[main]);
			lastMainMenu = document.getElementById(main);
			}
			else {
			
			document.getElementById("navi2").innerHTML = standard;
			setBG(document.getElementById("navi2"),"white");
			}
			do_show = true;
			
		}
		
		/// Standard entfernen
		
		function remshow() {
			if((showmain) && (showsub))
			{
				setBG(document.getElementById(showmain),"");
				setBG(document.getElementById(showsub),"");
				do_show = false;			
			}		
		}
		
		
function ATDetail(url) 
{ 
 var breite=300; 
 var hoehe=350; 
 var positionX=((screen.availWidth / 2) - breite / 2); 
 var positionY=((screen.availHeight / 2) - hoehe / 2); 
 pop=window.open('','','toolbar=0,location=0,directories=0,status=0,statusbar=false,menubar=0,scrollbars=1,resizable=0,fullscreen=0,width='+breite+',height='+hoehe+',top=0,left=0'); 
 pop.resizeTo(breite,hoehe); 
 pop.moveTo(positionX,positionY); 
 pop.location=url; 
 }		
 
function DoPopUp(url,breite,hoehe) 
{ 
 var positionX=((screen.availWidth / 2) - breite / 2); 
 var positionY=((screen.availHeight / 2) - hoehe / 2); 
 pop=window.open('','','toolbar=0,location=0,directories=0,status=0,statusbar=false,menubar=0,scrollbars=0,resizable=1,fullscreen=0,width='+breite+',height='+hoehe+',top=0,left=0');
 pop.resizeTo(breite,hoehe); 
 pop.moveTo(positionX,positionY);  
 pop.location=url; 
}
 

