    var tps_aff=25;
    var scoX=-140;var scoY=250;var stickerX=0,stickerY=0;var stickerVX=0.0,stickerVY=0.0;
    var stickerAX=0.0, stickerAY=0.0;var stickerCurX=800, stickerCurY=200;var stickerWidth, stickerHeight;
    var sticker_closed=true;var stickHotX, stickHotY;var notimeout = false;
    var isIE6 = document.all && document.getElementById ? true : false;
    var isNS6 = ! isIE6 && document.getElementById ? true : false;var win_w, win_h;var auto_close_timeout;

    function closeSticker() {sticker_closed = true;	stickerX = -(stickerWidth+1000);moveSticker();}
    function initStickerPos(){var x, y; var layer = document.getElementById ('sticker');y = -(stickerHeight+50);if (isIE6) {x = document.body.clientWidth + document.body.scrollLeft + 10;}else {x = window.pageXOffset + 10;}stickerCurX=x;stickerCurY=y; if (isIE6) {layer.style.pixelLeft = x;layer.style.pixelTop = y;}else if (isNS6) {layer.style.left = x+'px';layer.style.pixelTop = y+'py';}}
    function updateStickerTarget(){if(sticker_closed) return;stickerY = 60;if (isIE6) {stickerX = document.body.clientWidth + document.body.scrollLeft;}else {stickerX  = window.pageXOffset;}stickerX -= (stickerWidth+50);stickerVY += 10;}
    function accelSticker(x, y){var dx, dy;dx= stickerX - x; dy= stickerY - y; stickerAX  = dx / 110;stickerAY  = dy / 110;}
    function catchImg(theImg, e){ if(!e) e = event; theDiv = theImg.parentNode; theDiv.style.cursor = "hand"; theDiv.onmousemove = moveImg; stickHotX = e.x - stickerCurX; stickHotY = e.y - stickerCurY;  if(auto_close_timeout){ clearTimeout(auto_close_timeout);  auto_close_timeout = 0; } return false;}
    function moveImg(e){ if(!e) e = event;  stickerX = e.x - stickHotX ;  stickerY = e.y - stickHotY ; if(notimeout){setTimeout('moveSticker()', 20); }}
    function dropImg(theImg, e){ if(!e) e = event;  theDiv = theImg.parentNode;  theDiv.onmousemove = null;window.status = theImg.name;  theImg.parentNode.style.cursor = "auto"; stickerVY += 10;}
    function findImg(theImg){  window.status = theImg.name;  theImg.parentNode.style.cursor = "hand"; }
    function saveSize(){if(isIE6){win_h = document.body.clientHeight; win_w = document.body.clientWidth;}}
    function checkSize(){if(notimeout == false) return;if(isIE6){if(win_w != document.body.clientWidth || win_h !=document.body.clientHeight){onResize();}else{setTimeout('checkSize()', 1000);}}}
    function moveSticker(){var x, y, ax, ay;var layer = document.getElementById ('sticker');accelSticker(stickerCurX, stickerCurY);stickerVX*=0.82;  stickerVY*=0.90;stickerVX += stickerAX;  stickerVY += stickerAY;stickerCurX+=stickerVX ; stickerCurY+=stickerVY ; x = Math.round(stickerCurX)+scoX; y = Math.round(stickerCurY)+scoY;if(isIE6) {layer.style.pixelLeft = x;layer.style.pixelTop = y;}else if (isNS6){layer.style.left = x+'px'; layer.style.pixelTop = y+'py';}if(x == stickerX && y == stickerY && stickerVX < 1 && stickerVY < 1) { notimeout = true;saveSize(); setTimeout('checkSize()', 1000);}else { notimeout = false; setTimeout('moveSticker()', 25);}}
    function initSticker(width, height){sticker_closed=false; stickerWidth = width; stickerHeight = height; initStickerPos(); updateStickerTarget(); if(isIE6) { for(i=1;i<=3;i++) {xImg = document.images["sticker"+i];if(xImg) { xImg.ondragstart = function(){return false}; xImg.onmousedown = function(){catchImg(this)}; xImg.onmouseup = function(){dropImg(this)}; xImg.onmouseover = function(){findImg(this)};}}}  notimeout = false; setTimeout('moveSticker()', 2*100);  auto_close_timeout = setTimeout('closeSticker()', tps_aff*1000); }
    function toyosSticker(opacity, width, height, loc, dest){ var flash_mode, w; if(!isIE6) return; w = width - 78;

	document.write  ("<DIV id='sticker' style='position:absolute; left:100px; top:100px; z-index:1'>");
	document.write  ("	<table border=1 cellspacing=0 cellpadding=0>");
	document.write  ("	<tr><td>");
	document.write  ("	<table border=0 cellspacing=0 cellpadding=0>");
	document.write  ("	<tr><td>");
	document.write  ("	<img name='sticker1' src='../images/promo_left.bmp'   width=15  height=16></td><td>");
	document.write  ("	<img name='sticker2' src='../images/promo_middle.bmp' width=300 height=16></td><td>");
	document.write  ("	<a href='javascript:closeSticker()'><img src='../images/promo_right.bmp' width=17 height=16 border=0></a></td></tr>");
	document.write  ("	<tr class=txt    bgcolor=#ffffff><td></td>");

	document.write  ("	<td><SPAN class=lienrouge><MARQUEE SCROLLAMOUNT='5' SCROLLDELAY='200'><B> </B></MARQUEE></SPAN>");
	document.write  ("	<BR><BR><center><B>CAMPING LA TOUESSE</b></center><BR>");
	document.write  ("	<center><SPAN class=lienrouge></SPAN></center><BR>");
	document.write  ("	<center><SPAN class=lienrouge><B> </B></SPAN></center><BR>");
	document.write  ("	<center><SPAN class=lienrouge><B> </B></SPAN></center><BR><BR>");
	document.write  ("	<center><B>Téléphonez nous au 02.99.46.61.13</B></center><BR><BR>");
	document.write  ("	<img src='../images/ANCV.gif'>");
	document.write  ("	</td><td></td></tr></table></td></tr></table>" );
	document.write  ("</DIV>");

  //  initSticker(width, height);}
   // toyosSticker(100, 500, 150, "", "sticker.htm");

