
var lacouche = ""; 
function voir(lacouche) 
{ 
var couche = ["chat-accueil","chat-portraits"]; 
for (var i=0; i<couche.length; i++)
	{ 
if (couche[i] == lacouche)
		{ 
if (document.getElementById) 
			{ document.getElementById(lacouche).style.visibility = 'visible'; } 
else if (document.all) 
			{ document.all.tags("div")[lacouche].style.visibility = 'visible'; } 
else if (document.layers) 
			{ document.layers[lacouche].visibility = 'show'; } 
		} 
	}
}

function cache(lacouche) 
{ 
var couche = ["chat-accueil","chat-portraits"]; 
for (var i=0; i<couche.length; i++)
	{ 
if (couche[i] == lacouche)
		{ 
if (document.getElementById) 
			{ document.getElementById(lacouche).style.visibility = 'hidden'; } 
else if (document.all) 
			{ document.all.tags("div")[lacouche].style.visibility = 'hidden'; } 
else if (document.layers) 
			{ document.layers[lacouche].visibility = 'hide'; } 
		} 
	}
}

/*nom fichier image, width, height, espace blanc, titre, texte)
function poptoil(img,w,h,b,ti,te) 
{
	
	//hauteur totale fenetre
	var ht = h + b;
	
	//centre fenetre
	if (document.all) {
		//ie4
		var xMax = screen.width, yMax = screen.height;
	} else if (document.layers) {
		//netscape 4
		var xMax = window.outerWidth, yMax = window.outerHeight;
	} else if (document.getElementById) {
		//ie5+ ns6+
		var xMax = 1024, yMax= 768;
	}
	var xOffset = (xMax - w)/2, yOffset = (yMax - ht)/2;

	//prepa page html
	dochtml = '<html>\n<head>\n<title>H&eacute;l&egrave;ne Roy, peintre</title>\n</head>\n<body onBlur=\"top.close()\" style=\"margin:0; padding:0;\">\n<a href=\"#\" onClick=\"self.close();\"><img src=\"'+img+'\" alt=\"\" border=\"0\" width=\"'+w+'\" height=\"'+h+'\" name=\"toile\"></a>\n<p style=\"font-family: verdana,sans-serif; color:#930; font-size: 11px; text-align: center;\">'+ti+'</p>\n<p style=\"font-family: verdana,sans-serif; color:#930; font-size: 10px; text-align: center;\">'+te+'</p>\n</body>\n</html>\n';

	//ouverture fenetre au centre
	popfen = window.open('','toile','menubar=no,resizable=no,scrollbars=no,width='+w+',height='+ht+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset);
	popfen.document.open();
	popfen.document.write(dochtml);
	popfen.document.close();
	
	//focus
	popfen.focus();
}*/

