TablaIO = new Array("#InOut#v1#")

function CIO(datos){
  datos=datos.split("|")
  num=TablaIO.length
  TablaIO[num]=new DatosCIO(num,datos)
}

function DatosCIO(numero,datos){
  this.num    = numero
  this.flash  = datos[0]
  this.titulo = datos[1]
  this.autor  = datos[2]
}

function MuestraListaInOut()
{
  largoinout=TablaIO.length-1
  for(elem=1;elem<=largoinout;elem++)
  {
    titulo=TablaIO[elem].titulo
    enlace='<a href="verinout.html?e='+elem+'">'+titulo+'</a>'
    celda='<td align="center" width="250">'+enlace+'</td>'

    if(elem%2!=0){html='<tr>'+celda+'<td width="25">&nbsp;</td>'}
    if(elem%2==0){html=celda+'</tr>'}
    if(elem%2!=0 && elem==largoinout){html=html+'<td>&nbsp;</td></tr>'}

    document.write(html)
  }
}

function MuestraTituloInOut(numero)
{
  document.write(TablaIO[numero].titulo)
}

function MuestraAutorInOut(numero)
{
  document.write("Enviado por... "+TablaIO[numero].autor)
}

function MuestraFlashInOut(numero)
{
  qflash=TablaIO[numero].flash
  vflash='verflash.html?f='+qflash
  document.getElementById("marco").src=vflash
}
