
function initFade(id) {
for (var i=0;i<11;i++){

setOpacity(id, i);
	setTimeout('setOpacity("'+id+'", '+i+')',100*i);
return false;
}

}

function setOpacity(id, value){
	elt = document.getElementById(id);
	elt.style.opacity = value/10;
	elt.style.filter = 'alpha(opacity=' + value*10 + ')';
}

function initClaire(id) {
	for (var i=10;i>=0;i--){
		setOpacity(id, i);
		setTimeout('setOpacity("'+id+'", '+i+')',100*i);
	}
	return false;
}



function heure() 
{
	UR_Nu = new Date;
	UR_Indhold = showFilled(UR_Nu.getHours()) + ":" + showFilled(UR_Nu.getMinutes()) + ":" + showFilled(UR_Nu.getSeconds());
	document.getElementById("heure").innerHTML = UR_Indhold;
	setTimeout("heure()",1000);
}

function showFilled(Value) 
{
	return (Value > 9) ? "" + Value : "0" + Value;
}

function scrollingDetector(){
if (navigator.appName == "Microsoft Internet Explorer"){
var position=document.documentElement.scrollTop;
}
else {
var position=window.pageYOffset;
}
if (document.getElementById('acces_rapide')) {
if (position >= 680) { // Mettez ici le nombre obtenu !!!
document.getElementById('flottant').style.position="fixed";
document.getElementById('flottant').style.top="0%";
document.getElementById('flottant').style.width="15%";
}
else {
document.getElementById('flottant').style.position="relative";
document.getElementById('flottant').style.width="90%";
document.getElementById('flottant').style.left="1%";

}}}

