function deroule(id, temp)
{
	if (temp > 0) {

		document.getElementById(id).style.margin = '0 0 0 ' + temp + 'px';
		temp -= 5;
		foo = "deroule(\"" + id + "\"," + temp + ")";
		setTimeout(foo, 1);

	} else
		document.getElementById(id).style.margin = '0 0 0 0px';

	return 0;
}


function init(liste, actif)
{
	var tab = liste.split(";");

	for(i=0; i<(tab.length-1); i++)
	{
		document.getElementById(tab[i]+'_sub').style.display = 'none';
	}

	if (actif != '')
		document.getElementById(actif+'_sub').style.display = 'block';

	return 0;
}

function change(id)
{
	id += '_sub';

	if (document.getElementById(id).style.display == 'none') {
		document.getElementById(id).style.display = 'block';
		deroule(id, 180);
	} else
		document.getElementById(id).style.display = 'none';

	return 0;
}
