window.onload = ajustar_top;
window.onresize= ajustar_top;
function ajustar_top() {
if (typeof window.innerWidth != 'undefined') {
     scx = window.innerWidth;
     scy = window.innerHeight;
 }
else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0) {
     scx = document.documentElement.clientWidth;
     scy = document.documentElement.clientHeight;
   }
   
   if(parseInt(scy)>694) {  
	   document.getElementById("web").style.marginTop="-347px";
	   document.getElementById("web").style.top="50%";  
	  }
	else {
	   document.getElementById("web").style.marginTop="0px";
	   document.getElementById("web").style.top="0px";  
	  }
   if(parseInt(scx)>1174) {  
	   document.getElementById("web").style.marginLeft="-587px";
	   document.getElementById("web").style.left="50%";  
	  }
	else {
	   document.getElementById("web").style.marginLeft="0px";
	   document.getElementById("web").style.left="0px";  
	  }
}