if (!document.layers) document.write('<div id="sideBonus" style="position:absolute; padding-left:5px; top:220px;">');

// !! You can put images and links between the <layer></layer> tags

document.write('<layer id="sideBonus"><A HREF="http://banner.casino-vendome.com/cgi-bin/SetupCasino.exe"><img src="casino-en-ligne_images/subfloater.gif" width="160" height="247" border="0"></a></layer>');

if (!document.layers) document.write('</div>');

function setDivPos() {

// !! horisontal position of the layer
	var initX = document.body.scrollWidth/2-338;

// !! vertical position of the layer
	var initY = 205;

	var ns = (navigator.appName.indexOf("Netscape") != -1);
	var d = document;
		function ml(id) {
			var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
			if (d.layers) el.style=el;
			el.sP=function(x,y) { this.style.left=x; this.style.top=y; };
			el.x = initX;
			el.y = initY;
			return el;
		}
		window.remainInPosition=function() {

// !! vertical position of the layer in case the user scrolls the page down
			layerPos.x = document.body.scrollWidth/2-338;

//			var pY = ns ? pageYOffset : document.body.scrollTop;
//			layerPos.y += (pY + initY - layerPos.y);
//			layerPos.sP(layerPos.x, layerPos.y);
//			setTimeout("remainInPosition()", 60);
		}
	layerPos = ml("sideBonus");
	remainInPosition();
}
setDivPos();
