/*
	bp-biblioteca.js
	Biblioteca de funcions javascript per a la web de Bífidus Produccions
	Autor: Francesc Espona
	(c) 2007 Bífidus Produccions

*/


function AmagaPlafo(doc,id_seccio) {
		doc.getElementById('iogurtet_' + id_seccio).src='img/iogurtet38.gif';
		doc.getElementById('liquid_'+ id_seccio).style.visibility='hidden';
		doc.getElementById('plafo_sup').style.visibility='hidden';
		doc.getElementById('plafo_inf').style.visibility='hidden';
		doc.getElementById('peu').style.visibility='hidden';
}

function MostraPlafo(doc,id_seccio) {
		doc.getElementById('iogurtet_' + id_seccio).src='img/iogurtet_vessa.jpg';
		doc.getElementById('liquid_' + id_seccio).style.visibility='visible';
		doc.getElementById('plafo_sup').style.visibility='visible';
		doc.getElementById('plafo_inf').style.visibility='visible';
		doc.getElementById('peu').style.visibility='visible';
}

function MostraAmagaSeccio(id) {
	if (document.getElementById('liquid_' + id).style.visibility=='hidden') {
		MostraPlafo(self.document,id);
		document.getElementById('plafo').src=id + '.xsp';		
	}
	else {
/*		document.getElementById('plafo').src='portada.xsp';		
		AmagaPlafo(self.document,id);*/
	}
	
}

function AmagaPeu(doc) {
		doc.getElementById('peu').style.visibility='hidden';
}



