function qte(id, val) 
{
	quantite = document.getElementById(id).value;
	quantite = 	parseInt(quantite) + parseInt(val);
	if (quantite < 1) { quantite = 1; }
	if (quantite > 99) { quantite = 99; }
	document.getElementById(id).value = quantite;
}

function aff(thingId)
{
	var targetElement;
	targetElement = document.getElementById(thingId) ;
	if (targetElement.style.display == "none")
	{
		targetElement.style.display = "" ;
	} 
	else
	{
		targetElement.style.display = "none" ;
	}
}

window.addEventListener?window.addEventListener("load",fond_init,false):window.attachEvent("onload",fond_init);

function fond_init()
{
	x = 0;
	fond_anim();
}

function fond_anim() 
{
		x=x+2;
		document.getElementById('hautdefil').style.backgroundPosition=+x+'px';
		deplace = setTimeout(fond_anim,50);
}

