
function toggleLayer(whichLayer,pic)
{
	if (document.getElementById)
	{
		// this is the way the standards work
		 var style2 = document.getElementById(whichLayer).style;
         
		 
	}
	else if (document.all)
	{
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
		// alert = (style2);
	}
	else if (document.layers)
	{
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
 	    // alert = (style2);

	}

    /* das Bild ist */
    var source = document.images[whichLayer+'_icon'].src;

    /* wenn display leer ist, befindet sich der Link noch in der Default-Einstellung
       dadurch ist es möglich, die Formatierung einzig über die Klasse oder die id vorzunehmen 
       und das ist wieder wichtig für die Druckfuntion 
       wenn aber der Link schon einmal benutzt wurde (also zuklappend), steht im 
       div ein style="display:none" und das kann durch die print.css nicht überschrieben werden
       weshalb die Formatierung gleich wieder rausgenommen wird. style2.display = "";
    */
    if (style2.display == "none" || style2.display == "") {
        style2.display = "block";
       window.document.images[whichLayer+'_icon'].src = 'assets/images/doppelpfeildown.gif'
    } else {
        style2.display = "none";
        style2.display = "";
        window.document.images[whichLayer+'_icon'].src = 'assets/images/doppelpfeilup.gif'
    }
         	


}