if (document.getElementById)
	{
	fromPub = 0;
	pubImg = new Image;
	pubImg.src = "/images/tabac/imageflottante.gif";
	phrasetype = "javascript:openwindow('combien0.asp','combien','600','400');"
	offsetyPub=0;
	HauteurPub = 0;
	place = fromPub;
	xpub = 1;
	ypub = 1;
	}

function RandomDep()
	{
	numimagePub= Math.round(Math.random()*4);
	numimagePub ++;
	return(numimagePub);
	}

function moveImg()
	{
	if(document.all)
		{
		EcranlargPub = document.body.clientWidth-pubImg.width;
		EcranhautPub = document.body.clientHeight-pubImg.height;
		}
	else
		{
		EcranlargPub = screen.width-100;
		EcranhautPub = screen.height-100;
		}
	if (document.getElementById)
		{
		if (place > EcranlargPub)
			xpub = (-(RandomDep()));
		if (place < fromPub)
			xpub = RandomDep();
		document.getElementById("pubfl").style.left = (place = place + xpub);
		document.getElementById("pubfl").style.top = (HauteurPub += ypub)+offsetyPub;
		if (HauteurPub>EcranhautPub)
			ypub = (-(RandomDep()));
		if (HauteurPub<0)
			ypub = RandomDep();
		tempo = setTimeout('moveImg()', 50);
		}
	}

function OffSet()
	{
	if (navigator.appName=="Microsoft Internet Explorer")
			offsetyPub = document.body.scrollTop;
	}

onscroll = OffSet;
