
var persistclose=0
var startX = 30 
var startY = 5 
var verticalpos="fromtop" 

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 (persistclose)
   document.cookie="remainclosed=1"
   document.getElementById("topbar").style.visibility="hidden"
}

function staticbar(){
	barheight=document.getElementById("topbar").offsetHeight
	var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
	var d = document;
	function ml(id){
		var el=d.getElementById(id);
		if (!persistclose || persistclose && get_cookie("remainclosed")=="")
		el.style.visibility="visible"
		if(d.layers)el.style=el;
		el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
		el.x = startX;
		if (verticalpos=="fromtop")
		el.y = startY;
		else{
		el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
		el.y -= startY;
		}
		return el;
	}
	window.stayTopLeft=function(){
		if (verticalpos=="fromtop"){
		var pY = ns ? pageYOffset : iecompattest().scrollTop;
		ftlObj.y += (pY + startY - ftlObj.y)/8;
		}
		else{
		var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
		ftlObj.y += (pY - startY - ftlObj.y)/8;
		}
		ftlObj.sP(ftlObj.x, ftlObj.y);
		setTimeout("stayTopLeft()", 10);
	}
	ftlObj = ml("topbar");
	stayTopLeft();
}
document.write('<style type="text/css">');
document.write('#topbar{');
document.write('position:absolute;');
document.write('padding: 2px;');
document.write('background-color: #E9E9E9;');
document.write('width: 520px;');
document.write('height:405px;');
document.write('visibility: hidden;');
document.write('z-index: 100;');
document.write('border:1px solid #000000;');
document.write('}');
document.write('</style>');
document.write('</head>');
document.write('<body>');
document.write('<div id="topbar">');
document.write('<div style="height:300px; width:520px; background:#FFFF66; font-family:Arial; z-index: 100;">');
document.write('<a href="" onClick="closebar(); return false"><img src="http://www.sponsorpalace.com/layers/21/closed.gif" alt="" border="0" style="z-index: 100; margin-left:500px; margin-top:5px; margin-bottom:5px;"/></a>');
document.write('<div style="height:382px; width:520px; background:#0000FF; text-align:center; color:#FFFFFF; font-family:Arial; z-index: 100;">');
document.write('<span style="font-weight:900; font-size:36pt;">¿Sabeís ya lo de los casinos?');
document.write('<br/><span style="font-weight:bold; font-size:18pt; color:#CCCCCC;">Averigua como ganarles<br/>TODOS LOS TRUCOS PARA SACAR PASTA</span><br/>');
document.write('<span style="font-weight:bold; font-size:16pt;">Simplemente probabilidad y matemática<br/>Eso es todo, nada mas y nada menos</span><br/>');
document.write('<span style="font-weight:900; font-size:48pt; font-style:italic;"><a style="color:#FFFFFF; text-decoration:none; z-index: 100;" target="_blank" href="http://www.probabilidades.net/index.php?member=255&profile=0">CLICK AQUÍ!!</a></span><br/>');
document.write('<span style="font-weight:bold; font-size:14pt; color:#FFFF00; font-family:\'Times New Roman\';">Solo con 5 minutos al día podraís ganar más de 100 Euros, ¿Perdeís algo con probar?</span>');
document.write('<div style="background:#FFFF66; color:#0000CC; font-weight:bold; border:1px solid #000000; margin:5px;"><a style="text-decoration:none; color:#000099; font-weight:900; font-size:12pt;" target="_blank" href="http://www.probabilidades.net/index.php?member=255&profile=0">PULSA AQUÍ PARA ENTRAR</a></div>');
document.write('</div>');
document.write('</div>');
document.write('</div>');
staticbar();
