if (!SpecialEvents['persistclose']) SpecialEvents['persistclose'] = 0; // fermeture simple 0, fermeture persistante 1, faux bouton 3
if (!SpecialEvents['startX']) SpecialEvents['startX'] = 5;
if (!SpecialEvents['startY']) SpecialEvents['startY'] = 5;
if (!SpecialEvents['verticalpos']) SpecialEvents['verticalpos'] = 'bas'; //bas ou haut - emplacement de la pop
if (!SpecialEvents['titre_popup']) SpecialEvents['titre_popup'] = 'VOIR DES WEBCAMS AMATEURS GRATUITES';

function iecompattest(){
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}

function get_cookie(Name) {
var search = Name + "=";
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search);
if (offset != -1) {
offset += search.length;
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function closebar(){
	if(SpecialEvents['persistclose'] == 1) document.cookie="remainclosed=1";
	document.getElementById("barreevent").style.visibility="hidden";
}

function staticbar(){
barheight=document.getElementById("barreevent").offsetHeight;
var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
var d = document;
function ml(id){
var el=d.getElementById(id);
if(d.layers) el.style=el;
el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
el.x = SpecialEvents['startX'];
if (SpecialEvents['verticalpos']=="haut")
el.y = SpecialEvents['startY'];
else{
el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
el.y -= SpecialEvents['startY'];
}
return el;
}
window.datop=function(){
if (SpecialEvents['verticalpos']=="haut"){
var pY = ns ? pageYOffset : iecompattest().scrollTop;
ftlObj.y += (pY + SpecialEvents['startY'] - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
ftlObj.y += (pY - SpecialEvents['startY'] - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("datop()", 10);
}
ftlObj = ml("barreevent");
datop();
}

if (!SpecialEvents['persistclose'] || SpecialEvents['persistclose'] && get_cookie("remainclosed")=="") {
	document.write('<style type="text/css">#barreevent{position:absolute;border: 2px solid #FAC101;padding:0px;background-color: #FFFFD7;width: 97%;visibility: hidden;z-index: 50000;width: 305px;}');
	document.write('.laclasseevent1 {font-family: Tahoma;font-size: 9pt;text-align: center;color: #000000;border-width: 1px;background-color: #FED854;}');
	document.write('</style>');
	document.write('<div style="visibility: visible; left: 10px; top: 1373px;" id="barreevent"><table><tbody><tr>');
	document.write('<td style="width: 95%;"  class="laclasseevent1" valign="top"><strong>'+SpecialEvents['titre_popup']+'</strong></td>');
	document.write('<td style="width: 5%;" valign="top" align="center"><a href="javascript:closebar();"><img src="http://blog.eurolive.com/special-events/close.gif" alt="" width="16" border="0" height="16"></a></td></tr>');
	document.write('<tr><td style="width: 23%;" colspan="2" valign="top">');
	document.write('<div id="'+SpecialEvents['rnd']+'">');
	document.write('<a href="/" id="a'+SpecialEvents['rnd']+'"><img id="img'+SpecialEvents['rnd']+'" src="about:blank" border="0" /></a>');
	document.write('</div>');
	document.write('</td></tr></tbody></table></div>');
	document.write('<scr'+'ipt src="http://blog.eurolive.com/special-events/banner.js"></scr'+'ipt>');
	
	if (window.addEventListener)
	window.addEventListener("load", staticbar, false);
	else if (window.attachEvent)
	window.attachEvent("onload", staticbar);
	else if (document.getElementById)
	window.onload=staticbar;
}