function superpose(id)
{
	img = document.getElementById('diaporama').getElementsByTagName('img');
	for (i=0; i<=img.length-1; i++)
	{
		zImg = img[i].style.zIndex-1;
		if (zImg <= 100)
		{
			img[i].style.zIndex = 100;
		}
		else
		{
			img[i].style.zIndex = zImg;
		}
	}
	img[id].style.zIndex = 300;
}

/**
 * affichage du contenu d'une variable
 */
var indent = 0;
function indenter()
{
	var t = '\n';
	for (i=1; i<=indent; i++) t+= '\t';
	return t;
}
function subCheck(variable)
{
	var buffer = '';
	if (typeof variable == 'object')
	{
		buffer += 'array (';
		indent++;
		for (cle in variable)
		{
			buffer += indenter()+cle+' => '+subCheck(variable[cle]);
		}
		indent--;
		buffer += indenter()+'),';
	}
	else
	{
		buffer += variable;
	}
	return buffer;
}
function check(variable)
{
	alert(subCheck(variable));
}
