
var hauteur=0;
var temps=20;
var max=40;
function position(right,top,width,height,contenu) {
hauteur=height;

var Z="<DIV id='CalqueImage' style='position:absolute;right:"+right+"; top:"+top+";width:"+width+"; height:"+height+"'>"+contenu+"</DIV>";
document.write(Z);

setTimeout("Start()",temps);
}
function Start() {
DeplacerImage("CalqueImage",Postionimage("CalqueImage"));
setTimeout("Start()",temps);
}
function DeplacerImage(nom,top) {
document.getElementById(nom).style.top = top;
}
function Postionimage(nom) {
var pos=parseInt(document.getElementById(nom).style.top);
var wintop=parseInt(document.body.scrollTop);
var dispo=document.body.clientHeight;
var diff=Math.ceil((pos-(wintop+dispo-hauteur)));

var top=pos-(diff/5);
return top;
}
//PLF-http://www.jejavascript.net/
//position(marge,100,largeur,hauteur(>H image),'image');
function init_ascenceur()
{
	
	position(10,1,100,120,'<a href="#top"> <img border="0" src="flechehaut.gif" width="20" height="20">');
}

