
function lFnCargarNoticias(){   
       //new Ajax.Updater('noticiasWidGet','/ultima_hora/widget/rand:'+Math.random(), {asynchronous:true, evalScripts:true, onLoading:function(request) {Element.show('noticiasWidGetLoading');}, onComplete:function(request, json) {Element.hide('noticiasWidGetLoading');}, onFailure:function(request) {gFnErrorRespuestaAjax();}, requestHeaders:['X-Update', 'noticiasWidGet']});
new Ajax.Updater('noticiasWidGet','/ultima_hora/widget/rand:'+Math.random(), {asynchronous:true, evalScripts:true, onLoading:function(request) {}, onComplete:function(request, json) {Element.hide('noticiasWidGetLoading');}, onFailure:function(request) {gFnErrorRespuestaAjax();}, requestHeaders:['X-Update', 'noticiasWidGet']});
}

//window.load=lFnCargarNoticias();

var numeroImagen=1;

//setInterval("lFnRotarBaner()",5000);

function lFnRotarBaner(){
   if (numeroImagen>5) numeroImagen=0;
   if ($('slogan_home')!=null &&
       $('slogan_home')!=undefined ){
       if (numeroImagen<10) $('slogan_home').src='/img/publicidad/slogan_home_0'+numeroImagen+'.jpg';
       else $('slogan_home').src='/img/publicidad/slogan_home_'+numeroImagen+'.jpg';
       numeroImagen ++; 
   }
}
