/*************************************************************************
Haupt-Navigation: Die Fluessigkeit im Reagenzglas steigt und faellt 
**************************************************************************/

var hoehe_neu=0;
var hoehe_alt=1;
var idTimeout_1=0;
var top_neu=0;
var top_alt=373;

/* Haupt-Navigation: Die Fluessigkeit im Reagenzglas steigt und faellt 
         Funktion fuer IE */
        
function groesser_ie()
{ 
	if(hoehe_alt < hoehe_neu)
    { 
    	window.clearTimeout(idTimeout_1);
        dif=hoehe_neu-hoehe_alt;
        if(dif != 0)
        {
        	hoehe_alt++;
            top_alt--;
            document.all.fluessig.style.height=hoehe_alt+"px";
            document.all.fluessig.style.top=top_alt+"px";
            idTimeout_1=window.setTimeout("groesser_ie()",15);
         }                
     }
     if(hoehe_alt > hoehe_neu)
     { 
         window.clearTimeout(idTimeout_1);
         dif=hoehe_alt-hoehe_neu;
         if(dif != 0)
     	{                
		     hoehe_alt--;
		     top_alt++;
		     document.all.fluessig.style.height=hoehe_alt+"px";
		     document.all.fluessig.style.top=top_alt+"px";
		     idTimeout_1=window.setTimeout("groesser_ie()",15);
   		}                
     }
     if(hoehe_alt == hoehe_neu)
     {
         window.clearTimeout(idTimeout_1);
     }
}

/* Haupt-Navigation: Die Fluessigkeit im Reagenzglas steigt und faellt 
         Funktion fuer NS */

function groesser_ns()
{ 
    if(hoehe_alt < hoehe_neu)
    { 
    	window.clearTimeout(idTimeout_1);
        dif=hoehe_neu-hoehe_alt;
        
        if(dif != 0)
         {
                hoehe_alt++;
                top_alt--;
        		document.getElementById("fluessig").style.height=hoehe_alt+"px";
        		document.getElementById("fluessig").style.top=top_alt+"px";
          		idTimeout_1=window.setTimeout("groesser_ns()",15);
          }                
     }
     if(hoehe_alt > hoehe_neu)
     { 
     	window.clearTimeout(idTimeout_1);
        dif=hoehe_alt-hoehe_neu;
        if(dif != 0)
         {                
                hoehe_alt--;
                top_alt++;
          		document.getElementById("fluessig").style.height=hoehe_alt+"px";
        		document.getElementById("fluessig").style.top=top_alt+"px";
          		idTimeout_1=window.setTimeout("groesser_ns()",15);
          }                
        }
        if(hoehe_alt == hoehe_neu)
        {
                window.clearTimeout(idTimeout_1);
        }
}
        
/* Haupt-Navigation: Die Fluessigkeit im Reagenzglas steigt und faellt.
         IE oder Mozilla/Hetscape? */
        
function groesser(hoehe_neu1)
{
	hoehe_neu=hoehe_neu1;
    if(document.all)
    groesser_ie();
  	else
    groesser_ns();
}

/* Haupt-Navigation: Die Fluessigkeit im Reagenzglas steigt und faellt.
         IE oder Mozilla/Hetscape? */
        
function groesserN(hoehe_neu1)
{
	hoehe_neu=hoehe_neu1;
    if(document.all)
	{
    	groesser_ie();
    }
  	else
	{
        groesser_ns();
    }
}

 /************************************************************************
 Untermenue: Säule auf Ausgangshöhe: Aufruf der jeweiligen Division
 *************************************************************************/
function altMS()
{
        document.all.kolben.style.clip="rect(350 148 339 0)";
        altPos=290;
}

function altNS()
{
        document.getElementById("kolben").style.clip="rect(350 148 339 0)";
        altPos=290;
}

function alterStand(id_2)
{
if(document.all)
        altMS();
else
          altNS();
}
 
 
 /************************************************************************
 Hauptmenue: Aufruf der jeweiligen Division
 *************************************************************************/
 wasnoch="start";
 ueberschrift=0;
 aktuell=0;
 aktuell_2=0;
 woher=0;
 function einblenden (id,a,id_2)
 { 
   if (id != aktuell)
   {
   		if(wasnoch !=0 )
        {
        	document.getElementById(wasnoch).style.visibility = "hidden";
        }                
        if(aktuell !=0)
        {   
        	if(aktuell_2 !=0 )
            {
            	document.getElementById(aktuell_2).style.visibility = "hidden";
            }
            if(wasnoch !=0 )
            {
                document.getElementById(wasnoch).style.visibility = "hidden";
            }
            if(ueberschrift !=0 )
            {
            	document.getElementById(ueberschrift).style.visibility = "hidden";
            }                    
            document.getElementById(aktuell).style.visibility = "hidden";
        }
                
        document.getElementById(id).style.visibility      = "visible";
        document.getElementById(a).style.visibility       = "visible";
        aktuell=id;
        wasnoch=a;
        ueberschrift=id_2;
   }
   if (id == aktuell)
   {  
        	if(aktuell_2 !=0 )
            {
            	document.getElementById(aktuell_2).style.visibility = "hidden";
            }
            if(wasnoch !=0 )
            {
                document.getElementById(wasnoch).style.visibility = "hidden";
            }
            if(ueberschrift !=0 )
            {
            	document.getElementById(ueberschrift).style.visibility = "hidden";
            }                    
            document.getElementById(aktuell).style.visibility = "hidden";
                
        document.getElementById(id).style.visibility      = "visible";
        document.getElementById(a).style.visibility       = "visible";
        aktuell=id;
        wasnoch=a;
        ueberschrift=id_2;
   }

 }
  /************************************************************************
 Untermenue: Aufruf der jeweiligen Division
 *************************************************************************/
 

 function einblendenUM (id, hm, id_2)
 {
   if (id != aktuell_2)
   {
        if(aktuell_2 !=0)
        {
            document.getElementById(aktuell_2).style.visibility = "hidden";
        }
        if(wasnoch !=0 )
        {
        	document.getElementById(wasnoch).style.visibility = "hidden";
        }
        if(ueberschrift !=0 )
        {
        	document.getElementById(ueberschrift).style.visibility = "hidden";
        }
        document.getElementById(id_2).style.visibility      = "visible";
        document.getElementById(id).style.visibility        = "visible";
        document.getElementById(hm).style.visibility        = "visible";
        aktuell_2=id;
        ueberschrift=id_2;
   }
 }
 
 
/***********************************************************************
Untermenue: Fluessigkeiz im Kolben steigt und faellt
*************************************************************************/        

//var altPos=290;
var altPos=350;
var neuPos=0;
var zwischenPos=0;
var dif=0;
var idTimeout=0;

/* Untermenue: Fluessigkeit im Kolben steigt und faellt
         Funktion fuer Internet Explorer */        
        
function msie()
{ 
        if(altPos < neuPos)
        { 
        	window.clearTimeout(idTimeout);
            dif=neuPos-altPos;
            if(dif != 0)
            {
            	altPos++;
                document.all.kolben.style.clip="rect("+altPos+" 148 339 0)";
                idTimeout=window.setTimeout("msie()",15);
            }                
        }
        if(altPos > neuPos)
        { 
        	window.clearTimeout(idTimeout);
            dif=altPos-neuPos;
            if(dif != 0)
            {        
            	altPos--;
                document.all.kolben.style.clip="rect("+altPos+" 148 339 0)";
                idTimeout=window.setTimeout("msie()",15);
             }                
        }
        if(altPos == neuPos)
        {
        	window.clearTimeout(idTimeout);
        }
}

/* Untermenue: Fluessigkeit im Kolben steigt und faellt
         Funktion fuer Mozillla/Netdcape */        
        
function n6()
{ 
	if(altPos < neuPos)
	{ 
  		window.clearTimeout(idTimeout);
        dif=neuPos-altPos;
        if(dif != 0)
        {
        	altPos++;
          	document.getElementById("kolben").style.clip="rect("+altPos+" 148 339 0)";
          	idTimeout=window.setTimeout("n6()",15);
  		}                
	}
	  if(altPos > neuPos)
	  { 
	  	window.clearTimeout(idTimeout);
	      dif=altPos-neuPos;
	      if(dif != 0)
	      {                 
	      	altPos--;
	          document.getElementById("kolben").style.clip="rect("+altPos+" 148 339 0)";
	          idTimeout=window.setTimeout("n6()",15);
	    	}                
	  }
	  if(altPos == neuPos)
	  	window.clearTimeout(idTimeout);
}

/* Untermenue: Fluessigkeit im Kolben steigt und faellt
   Internet Explorer oder Mozilla/Netscape */        

function auf(neuPos1)
{
  neuPos=neuPos1;
        if(document.all)
                msie();
  else
          n6();
}
/**********************************************************************************
Die Referenzen in einem Fenster oeffnen
*********************************************************************************/
 function statusSetzen(text)
 {
    einFenster.status = text;
    return true;
 }
var einFenster;

function popUp(seite,titel,text)
{
        einFenster = window.open(seite,        titel, "toolbar=0 ,location=0 ,directories=0, status=1, menubar=0, scrollbars=0 , resizable=0, width=360, height=400");
        einFenster.moveTo(0, 0);
        einFenster.focus(); 
        statusSetzen(text);
 }
function popWech()
{
        einFenster.close();
}
/**********************************************************************************
Die Referenzen in einem Fenster oeffnen N02
*********************************************************************************/


function popUp_2(seite,titel,text)
{
        einFenster = window.open(seite,        titel, "toolbar=0 ,location=0 ,directories=0, status=1, menubar=0, scrollbars=0 , resizable=0, width=410, height=440");
        einFenster.moveTo(0, 0);
        einFenster.focus(); 
        statusSetzen(text);
 }
