function smsg() {
	var sc=getScrollXY();
	var wd=windowsize();
	var x=Math.floor((wd[0]/2)-260);
	var y=Math.floor(((wd[1]/2)-30)+sc[1]);
	if(x&&x!=undefined&&x>0) document.getElementById("msg").style.left=x+"px";
	if(y&&y!=undefined&&y>0) {
		document.getElementById("msg").style.top=y+"px";
	} else {
		document.getElementById("msg").style.top="0px";
	}
	document.getElementById("msg").style.visibility="visible";
	fade("msg",0,1,0.2);
}
function clmsg() {
	fade("msg",1,0,0.5,'document.getElementById("msg").style.visibility="hidden";');
	document.onkeypress=function() { return; }
}
window.onload=function() {
inim();
/*document.getElementById("msg").style.visibility="hidden";
document.getElementById("msg").className="cmsg";
document.getElementById("msg").innerHTML='<strong>Estamos trabajando en el nuevo portal web del <em>Ayuntamiento de San Javier</em></strong><br />Aunque actualmente nos encontramos en fase de pruebas, en breve activaremos<br />todos los servicios. Disculpe las molestias. <a href="javascript:void(0)" class="leercompleta" onclick="clmsg();">Haga click para cerrar este mensaje.</a>';
document.getElementById("msg").onclick=function() { clmsg(); }
document.onkeypress=function() { clmsg(); }
fade_step("msg",0,0,0);
smsg();*/
}