NS4 = (document.layers) ? 1 : 0
IE4 = (document.all) ? 1 : 0
ver4 = (NS4 || IE4) ? 1 : 0


if (ver4)
{
pubadresse = ""
pubimage = ""
pubtxt = "<table  bgcolor=' #Ffffff '  style=' filter:Alpha(Opacity=100);' width=81 height=81 cellspacing='0' cellpadding='0' background='petit/imagesbasdroite.gif' border=0 ><TR><td><br><a href='index.html'><img src='petit/accueilbas.gif' eeeeeee style=' filter:Alpha(Opacity=100);' bgcolor=' #990000 ' width=81 height=21 border=0 alt='AKIMASSER ACCUEIL'><br><img src=''  width=81 height=1 border=0 ><br><a href='contact.html'><img src='petit/contactbas.gif'  style=' filter:Alpha(Opacity=100);'      width=81 height=21 border=0 alt='AKIMASSER CONTACT'></td></tr></table>" 

if (IE4)
	{
document.write("<div id='vignette' style='position:absolute; visibility:show; right:100px; left:50px; top:0px; z-index:2; filter:Alpha(Opacity=100);' >" + pubtxt + "</div>")
	}


}

function setVariables()
{
if (ver4)
	{
movex=0,movey=0,xdiff=0,ydiff=0,ystart=0,xstart=0
if (navigator.appName == "Netscape") { v=".top=";h=".left=";dS="document.";sD="";
y="window.pageYOffset";x="window.pageXOffset";iW="window.innerWidth";iH="window.innerHeight" }
else { h=".pixelLeft=";v=".pixelTop=";dS="";sD=".style";
y="document.body.scrollTop";x="document.body.scrollLeft";iW="document.body.clientWidth";iH="document.body.clientHeight" }
object="vignette";
ystart=eval(y);
xstart=eval(x);
checkLocation()
	}
}

function checkLocation(){
innerX=eval(iW)-100
innerY=eval(iH)-128
if (document.layers){innerY-=10;innerX-=10}
yy=eval(y);
xx=eval(x);
ydiff=ystart-yy;
xdiff=xstart-xx;
if ((ydiff<(-1))||(ydiff>(1))) movey=Math.round(ydiff/10),ystart-=movey
if ((xdiff<(-1))||(xdiff>(1))) movex=Math.round(xdiff/10),xstart-=movex
eval(dS+object+sD+v+(ystart+innerY));
eval(dS+object+sD+h+(xstart+innerX));
setTimeout("checkLocation()",10)}

onLoad=setVariables()
