// Turns the layers on and off

        function showLayer(layerName){

        	if(check){

        		if (what =="none"){

        			return;

        			}

	        	else if (what == "moz"){

        			document.getElementById(layerName).style.visibility="visible";

        			}

        		else{

                  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');

                  }

		 }

        	else {// alert ("Please wait for the page to finish loading.");

        		return;}

		}



        function hideLayer(layerName){

        	if(check){

        		if (what =="none"){

        			return;

        			}

        		else if (what == "moz"){

        			document.getElementById(layerName).style.visibility="hidden";

        			}

        		else{

                  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');

				}

        

        	}

        	else {// alert ("Please wait for the page to finish loading.");

        		return;}

        }





		function hideAll(){

				hideLayer('Layer10');

				hideLayer('Layer20');

				hideLayer('Layer30');

				hideLayer('Layer40');

				hideLayer('Layer50');

				hideLayer('Layer60');

				hideLayer('Layer70');

				}





		function startTime() {

	        if (timerOn == false) {

                timerID=setTimeout( "hideAll()" , timecount);

                timerOn = true;



	        }



		}





		function stopTime() {

	        if (timerOn) {

    	        clearTimeout(timerID);

                timerID = null;

                timerOn = false;

	        }

		}





			
			
Normal1 = new Image(); 
Normal1.src = "fileadmin/images/Bilder/Privat/Lebensphasen/lp_1.jpg"; 

Highlight1 = new Image(); 
Highlight1.src = "fileadmin/images/Bilder/Privat/Lebensphasen/lp_1_mo.jpg"; 



Normal2 = new Image(); 
Normal2.src = "fileadmin/images/Bilder/Privat/Lebensphasen/lp_2.jpg"; 

Highlight2 = new Image(); 
Highlight2.src = "fileadmin/images/Bilder/Privat/Lebensphasen/lp_2_mo.jpg"; 



Normal3 = new Image(); 
Normal3.src = "fileadmin/images/Bilder/Privat/Lebensphasen/lp_3.jpg"; 

Highlight3 = new Image(); 
Highlight3.src = "fileadmin/images/Bilder/Privat/Lebensphasen/lp_3_mo.jpg"; 



Normal4 = new Image(); 
Normal4.src = "fileadmin/images/Bilder/Privat/Lebensphasen/lp_4.jpg"; 

Highlight4 = new Image(); 
Highlight4.src = "fileadmin/images/Bilder/Privat/Lebensphasen/lp_4_mo.jpg"; 



Normal5 = new Image(); 
Normal5.src = "fileadmin/images/Bilder/Privat/Lebensphasen/lp_5.jpg"; 

Highlight5 = new Image(); 
Highlight5.src = "fileadmin/images/Bilder/Privat/Lebensphasen/lp_5_mo.jpg"; 



Normal6 = new Image(); 
Normal6.src = "fileadmin/images/Bilder/Privat/Lebensphasen/lp_6.jpg"; 



function Bildout()

{

	//if (Bildnr != clicked) // Diese Zeile l?schen zum abschalten

	window.document.Bild1.src = Highlight1.src;

	window.document.Bild2.src = Highlight2.src;

	window.document.Bild3.src = Highlight3.src;

	window.document.Bild4.src = Highlight4.src;

	window.document.Bild5.src = Highlight5.src;

}



function Bildwechsel1()

{	//if (Bildnr != clicked) // Diese Zeile l?schen zum abschalten

    window.document.Bild1.src = Highlight1.src;

	window.document.Bild2.src = Normal2.src;

	window.document.Bild3.src = Normal3.src;

	window.document.Bild4.src = Normal4.src;

	window.document.Bild5.src = Normal5.src;

}



function Bildwechsel2()

{	//if (Bildnr != clicked) // Diese Zeile l?schen zum abschalten

    window.document.Bild1.src = Normal1.src;

	window.document.Bild2.src = Highlight2.src;

	window.document.Bild3.src = Normal3.src;

	window.document.Bild4.src = Normal4.src;

	window.document.Bild5.src = Normal5.src;

}



function Bildwechsel3()

{	//if (Bildnr != clicked) // Diese Zeile l?schen zum abschalten

    window.document.Bild1.src = Normal1.src;

	window.document.Bild2.src = Normal2.src;

	window.document.Bild3.src = Highlight3.src;

	window.document.Bild4.src = Normal4.src;

	window.document.Bild5.src = Normal5.src;

}



function Bildwechsel4()

{	//if (Bildnr != clicked) // Diese Zeile l?schen zum abschalten

    window.document.Bild1.src = Normal1.src;

	window.document.Bild2.src = Normal2.src;

	window.document.Bild3.src = Normal3.src;

	window.document.Bild4.src = Highlight4.src;

	window.document.Bild5.src = Normal5.src;

}



function Bildwechsel5()

{	//if (Bildnr != clicked) // Diese Zeile l?schen zum abschalten

    window.document.Bild1.src = Normal1.src;

	window.document.Bild2.src = Normal2.src;

	window.document.Bild3.src = Normal3.src;

	window.document.Bild4.src = Normal4.src;

	window.document.Bild5.src = Highlight5.src;

}



function Bildwechsel6()

{	//if (Bildnr != clicked) // Diese Zeile l?schen zum abschalten

    window.document.Bild1.src = Normal1.src;

	window.document.Bild2.src = Normal2.src;

	window.document.Bild3.src = Normal3.src;

	window.document.Bild4.src = Normal4.src;

	window.document.Bild5.src = Normal5.src;

}

// Function to 'activate' images.

function imgOn(name)

  {if (navigator.appVersion.charAt(0) < '4')

  {if (document.images)

    {document.images[name].src=eval("on"+name+".src");}

  }

 else

 {if (navigator.appName == "Microsoft Internet Explorer")

  {if (document.images)

    {document.images[name].src=eval("on"+name+".src");}

  }

 else

 {if (navigator.appName == "Netscape")

  {if(navigator.appVersion.charAt(0) > '4')

   {

   {document.images[name].src=eval("on"+name+".src");}

   }

   else

     {if (document.images)

     {document.images[name].src=eval("on"+name+".src");}

	 //{document.layers[lname].document.images[name].src=eval("on"+name+".src");}

    }

   }

  }

 }

}



// Function to 'deactivate' images.

function imgOff(name)

  {

  if (document.images)

    {document.images[name].src=eval("off"+name+".src");}

	//{document.layers[lname].document.images[name].src=eval("off"+name+".src");}

  }