if (document.getElementById)
{
fromPub = 125;
iVolePub = new Image;
iVolePub.src = "images/mobile.gif";
offsetyPub=0;
HauteurPub = 230;
place = fromPub;
xpub = 4;
ypub = 0;
}
function RandomDep()
{
numimagePub= Math.round(Math.random()*8);
numimagePub ++;
return(numimagePub);
}
function VolimPub()
{
if(document.all)
{
EcranlargPub = 895;
EcranhautPub = document.body.clientHeight-iVolePub.height; }
else
{
EcranlargPub = 895;
EcranhautPub = screen.height-100;
}
if (document.getElementById)
{
if (place > EcranlargPub)
xpub = (-(RandomDep()));
if (place < fromPub)
xpub = RandomDep();
document.getElementById("pubBulle").style.left = (place = place + xpub);
document.getElementById("pubBulle").style.top = (HauteurPub += ypub)+offsetyPub;
tempo36 = setTimeout('VolimPub()', 50);
}
}
function OffSet()
{
if (navigator.appName=="Microsoft Internet Explorer")
offsetyPub = document.body.scrollTop;
}
window.onload = VolimPub;
onscroll = OffSet;
