var DOM = (document.getElementById);
var Gecko = (navigator.userAgent.toLowerCase().indexOf('gecko')!=-1);
var IE5 = (DOM && (navigator.userAgent.toLowerCase().indexOf('msie')!=-1) && !(window.opera));
if (DOM) {
  document.write('<link rel="StyleSheet" href="include/css/movimiento2.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 () {
/*
  document.getElementById('Fija').style.position = 'absolute';

if (IE5) 
  setInterval('Posicionar(40)', 50);
else
  setInterval('Posicionar(40)', 50);
*/
}

function Posicionar (piDespl) {
	document.getElementById('Fija').style.top = (document.body.scrollTop>500+piDespl) ? (document.body.scrollTop+20+piDespl)+'px' : (500+piDespl+20) + 'px';
	document.getElementById('Fija').style.left = (document.body.clientWidth < 768) ? '0px': ((document.body.clientWidth - 768)/2)+'px';
}
 
 
//function Dimensionar () {
//	document.getElementById('Padre').style.width = (document.body.clientWidth < 616) ? '516px': (document.body.clientWidth-450)+'px';
//}
