function shownhide(id) {

	//alert("shownhide"+id);

	eingeblendet=id;

	if(document.getElementById(id)){

		if (document.getElementById(id).style.display == "none"){
			document.getElementById(id).style.display = "block";
			//Anpassung für Pro-Sana-Warenkorb
			if(id.substr(0,7)=='fenster'){
			   var nummer = id.substring(7);			   
			   document.getElementById('ausblenden'+nummer).style.display = "inline";
			   document.getElementById('link'+nummer).style.fontWeight = "bold";
      }
      //Anpassung für Bestellformular:
			if(id=='lieferanschrift'){
        document.getElementById('lieferanschriftlink').style.display = "none";
        document.getElementById('lieferanschriftausblendelink').style.display = "block";
      }      
    }
			
		else{
			if (document.getElementById(id).style.display == "block"){
				document.getElementById(id).style.display = "none"}
				//Anpassung für Pro-Sana-Warenkorb
  			if(id.substr(0,7)=='fenster'){
  			   var nummer = id.substring(7);			   
  			   document.getElementById('ausblenden'+nummer).style.display = "none";
  			   document.getElementById('link'+nummer).style.fontWeight = "normal";
        }
        //Anpassung für Bestellformular
  			if(id=='lieferanschrift'){
          document.getElementById('lieferanschriftlink').style.display = "block";
        document.getElementById('lieferanschriftausblendelink').style.display = "none";          
        }	        
		}
	}
}


function doublesimpleshownhide(id1, id2){
	simpleshownhide(id1);
	simpleshownhide(id2);
}

function tripplesimpleshownhide(id1, id2, $id3){
	simpleshownhide(id1);
	simpleshownhide(id2);
	simpleshownhide(id3);
}

function simpleshownhide(id) {
	//alert("shownhide ["+id+"]");
	if(document.getElementById){
		if (document.getElementById(id).style.visibility == "visible"){
			document.getElementById(id).style.visibility = "hidden";
			document.getElementById(id).style.display = "none";
		}else{
			if (document.getElementById(id).style.visibility == "hidden"){
				document.getElementById(id).style.visibility = "visible";
				document.getElementById(id).style.display = ""
			}
		}
	}
}

function shownhideTree (id){
	if(document.getElementById(id)){

		if (document.getElementById(id).style.display == "block"){
			document.getElementById(id).style.display = "none";}
			else{
				if (document.getElementById(id).style.display == "none"){

					document.getElementById(id).style.display = "block"}

			}
	}



}
