
window.setInterval("counter()",600);
var s = 0;

function counter(){
s += 1;
}
function dcb(){
       if(s < 30){
       l = (screen.width-300)/2;
       t = (screen.height-50)/2;
       window.open('dcb.php?s='+s,'dcb','width=300,height=50,left='+l+',top='+t);
       }
}

//_____________________________________________________
function resizeIt(){
 if(!window.winy && document.body && document.body.offsetWidth){//MSIE
 window.onresize = flash;
 winy = window_y();
 }
 if(!window.winy && window.innerHeight){//mozilla
 window.onresize = flash;
 winy = window_y();
 }
  if(window_y() < 620){
  flash();
  //window.moveTo(0,0);
  //window.resizeTo(screen.width,screen.height);
  }
window.status = 'Vinos de Toro';
}
//_____________________________________________________
function window_y(){
 if (window.innerHeight){
  return window.innerHeight-20;
  }
 else if (document.body && document.body.offsetHeight){//MSIE
  return document.body.offsetHeight;
  }
 else{
 return 0;
 }
}
//_____________________________________________________
function flash(){
y_size = window_y();
   if(y_size > 620){
   y_size = 620;
   }
   else{
   diff = y_size%10;
   y_size -= diff;
   y_size = "100%";
   }
window.status = 'Vinos de Toro';
document.getElementById("fc").style.height = y_size;
}