var DOM = (document.getElementById);
var Gecko = (navigator.userAgent.toLowerCase().indexOf('gecko')!=-1);
var OP7 = ((navigator.userAgent.toLowerCase().indexOf('opera/7')!=-1)||(navigator.userAgent.toLowerCase().indexOf('opera 7')!=-1));
var IE5 = (DOM && (navigator.userAgent.toLowerCase().indexOf('msie')!=-1) && !(window.opera));
if (DOM) { 
   document.write('<link rel="StyleSheet" href="estilos/tw002-1/tw002c.css" media="screen" type="text/css" />');
   if (Gecko || IE5) {
      var Hoja = document.styleSheets[0];
      if (Gecko) Hoja.insertRule('#BloqueDesplazamiento { height:200px; }',Hoja.cssRules.length);
      else Hoja.addRule('#BloqueDesplazamiento', 'height:200px');
   }
   if (IE5) window.onresize=Dimensionar;
}

function Inicio () {
if (IE5) {
   Dimensionar();
   document.getElementById('Fija').style.position = 'absolute';
   setInterval('Posicionar()', 250);
}
if (OP7) document.getElementById('BloqueDesplazamiento').style.height='200px';
}

function Posicionar () {
document.getElementById('Fija').style.top = document.body.scrollTop+'px';
}

function Dimensionar () {
document.getElementById('Padre').style.width = (document.body.clientWidth < 616) ? '516px': (document.body.clientWidth-100)+'px';
}


