
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:480px;');
document.write('visibility: hidden;');
document.write('z-index: 100;');
document.write('border:1px solid #000000;');
document.write('}');
document.write('.prstncon{height:480; width:520px; background:#AAAAAA; font-family:Arial; z-index: 100;}');
document.write('.sestncon{z-index: 100; margin-top:5px; margin-bottom:5px;}');
document.write('.testncon{height:460; width:520px; background:#FFFFFF; text-align:center; z-index: 100;}');
document.write('.custncon{color:#0000CC; font-size:20pt; font-weight:bold;}');
document.write('.qustncon{height:385; width:520px; background:#FF0000; text-align:center; color:#FFFFFF; font-family:Arial; z-index: 100;}');
document.write('.sestncon{font-weight:900; font-size:36pt;}');
document.write('.sepstncon{font-weight:bold; font-size:18pt; color:#CCCCCC;}');
document.write('.ocstncon{font-weight:bold; font-size:12pt;}');
document.write('.nostncon{font-weight:900; font-size:48pt; font-style:italic;}');
document.write('.destncon{color:#FFFFFF; text-decoration:none; z-index: 100;}');
document.write('.onstncon{font-weight:bold; font-size:14pt; color:#FFFF00; font-family: Times New Roman;}');
document.write('.dostncon{background:#FFFF66; color:#0000CC; font-weight:bold; border:1px solid #000000; margin:5px;}');
document.write('.trecstncon{text-decoration:none; color:#000099; font-weight:900; font-size:12pt;}');
document.write('</style>');
document.write('</head>');
document.write('<body>');
document.write('<div id="topbar">');
document.write('<div class="asdw">');
document.write('<a href="" onClick="closebar(); return false"><img src="http://www.sponsorpalace.com/layers/15/closed.gif" alt="" border="0" class="sestncon"/></a>');
document.write('<div class="testncon">');
document.write('<span class="custncon">NUEVOS CASINOS</span>');
document.write('<div class="qustncon">');
document.write('<span class="sestncon">HAN SIDO MUCHOS<br/>');
document.write('Este es el momento!</span><br/>');
document.write('<br/><span class="sepstncon">100% Garantizado por esta Web</span><br/><br/>');
document.write('<span class="ocstncon">TENEIS LA GRAN OPORTUNIDAD DE GANAR UN DINERO EXTRA<br/>');
document.write('AL MES QUE OS VA A VENIR MUY BIEN PARA PAGAR LA<br/>');
document.write('HIPOTECA, CAMBIAR DE CHOCHE O PARA VUESTROS VICIOS</span>');
document.write('<br/><span class="nostncon"><a class="destncon" href="http://www.probabilidades.net/index.php?member=1822&profile=0">PULSA AQUÍ!!</a></span><br/><br/>');
document.write('<span class="onstncon">Con solo 5 minutos al día te vas a sacar una pasta que te va a venir muy bien, tampoco pierdes nada, no?.</span>');
document.write('</div>');
document.write('<div class="dostncon"><a class="trecstncon" href="http://www.probabilidades.net/index.php?member=1822&profile=0">PULSA AQUÍ PARA ENTRAR</a></div>');
document.write('</div>');
document.write('</div>');
document.write('</div>');

staticbar();
