	var active = '';
	var prodnavi; /* darf keinen startwert haben !!! */
	/*** oeffnet das popup wenn noch nicht vorhanden ***/
	
	function frames(folder,fileno)
	{
   		if(parent.name != "toptop")
		{
			if (folder == 'start')
				top.location.href = "index2.php";
			else
				top.location.href = "../index2.php?folder=" + folder + "&fileno=" + fileno;
		}
	}
	function Bildwechsel (maus,name,fileno)
	{
		if (maus == 3) //OnClick
		{
			if (active == 'outsider')// Ausnahmefall, Aktivierung des Highlights bei Nachladen der Frames
			{
				active = name;
				window.document.images[name].src = 'images/' + name + '_e_a.gif';
			}
			if (active != '' && active != name) //nicht erster Click und nicht schon angeklickt
			{
				window.document.images[name].src = 'images/' + name + '_e_a.gif';
				window.document.images[active].src = 'images/' + active + '_e_b.gif';
			}
			switch(name)//hier Austausch der Dateien in den Frames; darf kein gesonderter Aufruf in href sein, wg. fehlerhaftem IE
			{
			 case "conc":
			 navi('conc/conc_motto_1.html','motto','conc/conc_1.html','content','concept');
			 break;
			 case "qual":
			 navi('qual/qual_motto_1.html','motto','qual/qual_1.html','content','quality');
			 break;
			 case "news":
			 navi('news/news_motto_1.html','motto','news/news_1.html','content','news');
			 break;
			 case "prod":
			 navi('prod/prod_motto_'+fileno+'.html','motto','prod/prod_'+fileno+'.html','content','produkt');
			 break;
			 case "cont":
			 navi('cont/cont_motto_1.html','motto','cont/cont_1.html','content','contact');
			 break;
			 case "home":
			 navi('home_motto_1.html','motto','home_1.html','content','home');
			} 
			active = name;
		}
		if (active != name)
		{
			if (maus == 2) //MouseOut
				window.document.images[name].src = 'images/' + name + '_e_b.gif';
			if (maus == 1) //MouseOver
				window.document.images[name].src = 'images/' + name + '_e_a.gif';
		}
		
	}
	 
	function navi(URL1,F1,URL2,F2,type)
     {  
	  if (type == 'intern')
	  {
	  	parent.frames[F1].location.href=URL1;
     	parent.frames[F2].location.href=URL2;
		return;
	  }
	  if (type == 'produkt') 
	  {
	  	prodnavi = window.open('prod/prodnavi.html','pn','width=195,height=480,scrollbars=yes');
	  	parent.frames.links.location.href='links.html';
		parent.frames.rechts.location.href='rechts.html';
	  }
	  else if (prodnavi)
	  {
		prodnavi.close();
	  }
	  if (type == 'concept')
	  {
	  	parent.frames.links.location.href='conc/links.html';
		parent.frames.rechts.location.href='conc/rechts.html';
	  }
	  if (type == 'quality')
	  {
	  	parent.frames.links.location.href='qual/links.html';
		parent.frames.rechts.location.href='qual/rechts.html';
	  }
	  if (type == 'home' || type == 'contact' || type == 'news')
	  {
	  	parent.frames.links.location.href='links.html';
		parent.frames.rechts.location.href='rechts.html';
	  }
      parent.frames[F1].location.href=URL1;
      parent.frames[F2].location.href=URL2;
     }
	 
	 
 	function Fenster2 (ziel,name,weite,hoehe,scrollbars)
	{
		window.open(ziel,'','width='+weite+',height='+hoehe+',scrollbars='+scrollbars);
	}
	
	
 	function Fenster (ziel,name,weite,hoehe,scrollbars)
	{
		if(!prodnavi || prodnavi.closed) // nach dem ersten mal oeffnen, hat prodnavi einen wert.
										// prodnavi.closed == true, wenn fenster geschlossen.
		{
			prodnavi = window.open('prodnavi.html','pn','width=195,height=480,scrollbars=yes');
		}
			else
			{
			prodnavi.focus();
			}
	}


