var DELAY = 20;

var MAX_TRANS=50;
var MIN_TRANS=-1;

// gestion des infos en surimpression

function appear (event)
{
	
	if (!document.all)
		if (event.relatedTarget.id == 'theimage')
			setTimeout ("set_transparency('information', 5, 5)", DELAY);
}

function disappear (event)
{
	if (!document.all)
		if ((event.relatedTarget.id == 'theimage') && (!document.all))
			setTimeout ("set_transparency('information', 45, -5)", DELAY);
}

function ie_appear ()
{
	setTimeout ("set_transparency('information', 5, 5)", DELAY);
}

function ie_disappear ()
{
	setTimeout ("set_transparency('information', 45, -5)", DELAY);
}

function set_transparency (element_id, value, increment)
{
	if ((value < MAX_TRANS) && (value > MIN_TRANS))
	{
		document.getElementById('information').style.filter = 
			'alpha(opacity='+value+')';
		moz_value = value/100
		document.getElementById('information').style.opacity = moz_value + '';
		value = value + increment;
		setTimeout ("set_transparency('" + element_id + "', " + value 
					+ ", " + increment + ")",DELAY);
	}
}

function pin()
{
	document.getElementById('information').style.filter = 'alpha(opacity=50)';
	document.getElementById('information').style.opacity = '0.5';
}


