var top=0;
var prec=-1;
function scrolla()
{
var Width = (document.compatMode != 'CSS1Compat') ? document.body.scrollWidth : document.documentElement.scrollWidth;
var Height =  height = (document.compatMode == 'CSS1Compat') ? document.documentElement.clientHeight : document.body.clientHeight;
var top = window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop;
	box=document.getElementById("pubbli");
	box.style.top=Height/2-150+top;
}
function showPubbli()
{
	//pubbli.style.display='block';
	scrolla();
}
function hide()
{
	pubbli.style.display='none';
}
window.onresize=scrolla;
window.onscroll=scrolla;

if (window.addEventListener)
window.addEventListener("load", showPubbli, false)
else if (window.attachEvent)
window.attachEvent("onload", showPubbli)
else if (document.all)
window.onload=showPubbli