function VentanaX() {
         if (window.innerWidth) {
            return window.innerWidth;
         } else if (document.body && document.body.offsetWidth) {
            return document.body.offsetWidth;
         } else {
            return screen.width;
         }
}
function VentanaY() {
         if (window.innerHeight) {
            return window.innerHeight;
         } else if (document.body && document.body.offsetHeight) {
            return document.body.offsetHeight;
         } else {
            return screen.Height;
         }
}
function init() {
         var toppos=(VentanaY()-498)/2;
         if (toppos < 0) {
            var subtoppos=toppos;
            toppos=0;
         } else {
            var subtoppos=0;
         }
         document.getElementById('main').style.left=(VentanaX()-700)/2 + 'px';
         document.getElementById('main').style.top=toppos + 'px';
         document.getElementById('baggi').style.left=(VentanaX()-700)/2 + 'px';
         document.getElementById('bagimg').height=VentanaY()-4;
         document.getElementById('bagimg2').height=(VentanaY()/2)+255-subtoppos;
         window.setTimeout('init()',10);
}