function reloj()
 {
	//setTimeout("fncChangeColorPor(btn1)",1000);
	//setTimeout("SolicitudPortadaCentral('0');",1000);
    //setTimeout("fncChangeColorPorOrig(btn1)",7900); 
	//setTimeout("fncChangeColorPor(btn2)",7900);	
	//setTimeout("SolicitudPortadaCentral('1');",8000);
	//setTimeout("fncChangeColorPorOrig(btn2)",15900);
	//setTimeout("fncChangeColorPor(btn3)",15900);
	//setTimeout("SolicitudPortadaCentral('2');",16000);
	//setTimeout("fncChangeColorPorOrig(btn3)",23900);
	//setTimeout("fncChangeColorPor(btn4)",23900);
	//setTimeout("SolicitudPortadaCentral('3');",24000);
	//setTimeout("fncChangeColorPorOrig(btn4)",31900);
	//setTimeout("fncChangeColorPor(btn5)",31900);
	//setTimeout("SolicitudPortadaCentral('4');",32000);
	//setTimeout("fncChangeColorPorOrig(btn5)",40000);
	//setTimeout("reloj()",40000);
  }

function reposicionaMenu(){
	var pos = (document.body.scrollTop)?document.body.scrollTop:document.documentElement.scrollTop;
	document.getElementById("publicidadflotante").style.top = parseInt(pos + 10) + "px";
 }

onload = function(){
  reloj();
  if(document.getElementById && !window.getComputedStyle && document.getElementById("publicidadflotante"))
   {
	 document.getElementById("publicidadflotante").style.display="";
	 document.getElementById("publicidadflotante").style.position = "absolute";
	 //window.onscroll = reposicionaMenu;
   }
  else if(window.getComputedStyle && document.getElementById("publicidadflotante"))
   {
	 document.getElementById("publicidadflotante").style.display="";
     document.getElementById("publicidadflotante").style.left=document.getElementById("main_contenedorprincipal").offsetWidth + document.getElementById("publicidadflotante").offsetLeft + "px";
	 document.getElementById("publicidadflotante").style.position = "absolute";
     //window.onscroll = reposicionaMenu;   
   } 
}