function showContact()
{
	var speed = 8;
	var timer = 0;

	var divContact = document.getElementById('contact').style;

	divContact.zIndex = 2;
	if (divContact.opacity == 0)
	{
		for(i = 0; i <= 90; i++)
		{
			setTimeout("changeOpac(" + i + ",'contact')",(timer * speed));
			timer++;
		}
	}
}

function reculerContact() //Permet de remettre le DIV contact à l'arrière-plan
{
	var divContact = document.getElementById('contact').style;
	divContact.zIndex = 0;
}

function hideContact()
{
	var speed = 8;
	var timer = 0;

	var divContact = document.getElementById('contact').style;
	
	if (divContact.opacity == 0.9)
	{
		for(i = 90; i >= 0; i--)
		{
			setTimeout("changeOpac(" + i + ",'contact')",(timer * speed));
			timer++;
		}
		setTimeout("reculerContact()",(timer*speed));
	}	
}

function changeOpac(opacity, object) 
{
	var divContact = document.getElementById('contact').style;
	divContact.opacity = (opacity / 100);
	divContact.MozOpacity = (opacity / 100);
	divContact.KhtmlOpacity = (opacity / 100);
	divContact.filter = "alpha(opacity=" + opacity + ")";
}

function nettoyer(element) { if (element.defaultValue == element.value) element.value = ""; }
function setDefVal(element) { if (element.value == "") element.value = element.defaultValue; }