var id = "UH_date";
var idUH = "masUH";
var idUH_H = "masUH_head";
var idUHN = "UH_N"; 
var idUHD = "UH_D";
var idUHI = "UH_I";
var isN = false;
var isD = false;
function MM_openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);}







function Correct() 
{
  var found;
  var Done;
  var Externo;
  var Count;
  found=false;
  Done=false;
    if (document.getElementsByTagName('LI')) {
      for (var i = 0; (Externo = document.getElementsByTagName('LI')[i]); i++) {
        if ( Externo.id.indexOf(idUH) != -1 ){
            found=true;
            break;
          }
      } 
      for (var i = 0; (Externo = document.getElementsByTagName('P')[i]); i++) {
        if ( document.getElementsByTagName('P')[i].innerHTML=="14:37 | 20/04/2008" ){
            document.getElementsByTagName('P')[i].innerHTML="";
            break;
          }
      }
      Count=0;
      for (var i = 0; (Externo = document.getElementsByTagName('a')[i]); i++) {
        if ( Externo.id.indexOf(idUHN) != -1 ){
            Count++;
            isN=true;
            if (Count == 5 ){
            Done=true;
            break;
          }
          }
      }
   if (!found){
   for (var i = 0; (Externo = document.getElementsByTagName('H3')[i]); i++){
        if ( Externo.id.indexOf(idUH_H) != -1 ){
            document.getElementsByTagName('H3')[i].innerHTML=" ";
          }
      }
    }
if (Done){
   for (var i = 0; (Externo = document.getElementsByTagName('a')[i]); i++){
      
        if ( Externo.id.indexOf("MN") != -1 ){
         
            document.getElementsByTagName('a')[i].innerHTML="[ + noticias ]";
            break;
            }
          }
          for (var i = 0; (Externo = document.getElementsByTagName('DIV')[i]); i++){
        if ( Externo.id.indexOf("scroll") != -1 ){
            document.getElementsByTagName('DIV')[i].innerHTML="Más Noticias <A  Onmouseover=moveup() onmouseout=clearTimeout(moveupvar)><IMG style='CURSOR: hand' height=5 alt='Noticias Anteriores' src='http://www.prensalibre.com/pl/comun/imagenes/up.jpg'  width=9 border=0></A> <A onmouseover=movedown() onmouseout=clearTimeout(movedownvar)><IMG style='CURSOR: hand' height=5 alt='Noticias Siguientes'  src='http://www.prensalibre.com/pl/comun/imagenes/down.jpg' width=9 border=0></A>";
            break;
            }
          }
      }
  }
  CorrectSports();
}


function CorrectSports() 
{
  var found;
  var Done;
  var Externo;
  var Count;
  found=false;
  Done=false;
    if (document.getElementsByTagName('LI')) {
      for (var i = 0; (Externo = document.getElementsByTagName('LI')[i]); i++) {
        if ( Externo.id.indexOf(idUH) != -1 ){
            found=true;
            break;
          }
      } 
      Count=0;
      for (var i = 0; (Externo = document.getElementsByTagName('a')[i]); i++) {
        if ( Externo.id.indexOf(idUHD) != -1 ){
            Count++;
            isN=true;
            if (Count == 5 ){
            Done=true;
            break;
          }
          }
      }
   if (!found){
   for (var i = 0; (Externo = document.getElementsByTagName('H3')[i]); i++){
        if ( Externo.id.indexOf(idUH_H) != -1 ){
            document.getElementsByTagName('H3')[i].innerHTML=" ";
          }
      }
    }
if (Done){
   for (var i = 0; (Externo = document.getElementsByTagName('a')[i]); i++){
      
        if ( Externo.id.indexOf("MND") != -1 ){
         
            document.getElementsByTagName('a')[i].innerHTML="[ + noticias ]";
            break;
            }
          }
          for (var i = 0; (Externo = document.getElementsByTagName('DIV')[i]); i++){
        if ( Externo.id.indexOf("scroll") != -1 ){
            document.getElementsByTagName('DIV')[i].innerHTML="Más Noticias <A  Onmouseover=moveup() onmouseout=clearTimeout(moveupvar)><IMG style='CURSOR: hand' height=5 alt='Noticias Anteriores' src='http://www.prensalibre.com/pl/comun/imagenes/up.jpg'  width=9 border=0></A> <A onmouseover=movedown() onmouseout=clearTimeout(movedownvar)><IMG style='CURSOR: hand' height=5 alt='Noticias Siguientes'  src='http://www.prensalibre.com/pl/comun/imagenes/down.jpg' width=9 border=0></A>";
            break;
            }
          }
      }
  }
}

function SetTabs() 
{
  var Externo;
  var Count;
     Count=0;
      for (var i = 0; (Externo = document.getElementsByTagName('a')[i]); i++) {
        if ( Externo.id.indexOf(idUHN) != -1 ){
            Count++;
            isN=true;
            break;
          }
      }
   if (Count==0){
      document.getElementById('tabPage1').innerHTML = '<DIV class=tabN></DIV>';
      }
      Count=0;
      for (var i = 0; (Externo = document.getElementsByTagName('a')[i]); i++) {
        if ( Externo.id.indexOf(idUHD) != -1 ){
            Count++;
            isD=true;
            break;
          }
      }

   if (Count==0){
      document.getElementById('tabPage2').innerHTML = '<DIV class=tabN></DIV>';
   }
      Count=0;
      for (var i = 0; (Externo = document.getElementsByTagName('a')[i]); i++) {
        if ( Externo.id.indexOf(idUHI) != -1 ){
            Count++;
            break;
          }
      }
   if (Count==0){
      document.getElementById('tabPage3').innerHTML = '<DIV class=tabN></DIV>';
   }
if (!isD){
         document.cookie = "webfxtab_tabPane1=0; path=/";
      } 
if (!isN){
          document.cookie = "webfxtab_tabPane1=2; path=/";
      } 
  }
function setDate_UH() 
{
  var Externo;
  var Result=0;
  Correct(); 
    if (document.getElementsByTagName('p')) 
    {
      for (var i = 0; (Externo = document.getElementsByTagName('p')[i]); i++) 
      {
        if ( Externo.id.indexOf(id) != -1 )
          {
            Value = document.getElementsByTagName('p')[i].innerHTML;
            if (CheckExpire(Value)!=true) 
              {
                document.getElementsByTagName('p')[i].innerHTML=" ";
              }
          }
          
      }
    }
}
function CheckExpire(Value){
var Result = false
var currentTime = new Date();
var month = currentTime.getMonth() + 1;
var day = currentTime.getDate();
var year = currentTime.getFullYear();
var Temp;
var Now;
  str_len = new String (month); 
  if (str_len.length == 1) 
    str_len = "0" + str_len;
  str_day = new String (day); 
  if (str_day.length == 1) 
    str_day = "0" + str_day;
  Now = str_day + "/" + str_len + "/" + year;
  Temp = Value.substring(Value.indexOf("|")+2);
  Result = false;
  if (Temp ==  Now) { 
    Result = true
  }
  return Result;
}
function showImage()
{

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'http://www.prensalibre.com/pl/especial/p1.jpg'
theImages[1] = 'http://www.prensalibre.com/pl/especial/p2.jpg'
theImages[2] = 'http://www.prensalibre.com/pl/especial/p3.jpg'
theImages[3] = 'http://www.prensalibre.com/pl/especial/p4.jpg'

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
document.write('<a target="_blank" href="http://especiales.prensalibre.com/especiales/15septiembre/"><img src="'+theImages[whichImage]+'" width="258" height="226" border="0" /></a> ');
}

