TablaIS = new Array("#Selecciones#v2#")

function CIS(datos){
  datos=datos.split("|")
  num=TablaIS.length
  TablaIS[num]=new DatosCIS(num,datos)
}

function DatosCIS(numero,datos){
  this.num      = numero
  this.carpeta  = datos[0]
  this.equipoa  = datos[1]
  this.golesa   = datos[2]
  this.equipob  = datos[3]
  this.golesb   = datos[4]
  this.prorroga = datos[5]
  this.evento   = datos[6]
  this.fecha    = datos[7]
  this.autor    = datos[8]
}

function MuestraListaInformes()
{
  largoselec=TablaIS.length-1
  for(elem=1;elem<=largoselec;elem++)
  {
    titulo='<b>'+TablaIS[elem].equipoa+' - '+TablaIS[elem].equipob+'</b>'
    datos='<span class="textomini">'+TablaIS[elem].evento+'<br>'+TablaIS[elem].fecha+'</span>'
    enlace='<a href="verinforme.html?i='+elem+'">'+titulo+'</a><br>'+datos
    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==largoselec){html=html+'<td>&nbsp;</td></tr>'}

    document.write(html)
  }
}

function MuestraEquiposResultados(numero)
{
  html=TablaIS[numero].equipoa+' '+TablaIS[numero].golesa+' - '+TablaIS[numero].equipob+' '+TablaIS[numero].golesb
  document.write(html)
}

function MuestraEventoFecha(numero)
{
  html=TablaIS[numero].evento.toUpperCase()+'<br>'+TablaIS[numero].fecha
  document.write(html)
}

function MuestraFotoAutor(numero)
{
  html="Informe realizado por...<br>"
  html=html+QSDato(TablaIS[numero].autor,"fi|<br>|n1|cv")
  document.write(html)
}

function MuestraDatosEquipo(numero,equipo)
{
  if(equipo=="A"){equipo=TablaIS[numero].equipoa;pflash="equipo-a-"}
  if(equipo=="B"){equipo=TablaIS[numero].equipob;pflash="equipo-b-"}

  pflash=TablaIS[numero].carpeta+"/"+pflash

  html='<b>'+equipo.toUpperCase()+'</b>'

  rflash=pflash+"alineacion.swf"
  html=html+'<br><a href="verflash.html?f='+rflash+'" target="marco">Alineación</a>'

  if(TablaIS[numero].prorroga=="S")
  {
    rflash=pflash+"alineacion-prorroga.swf"
    html=html+'<br><a href="verflash.html?f='+rflash+'" target="marco">Alineación prorroga</a>'
  }

  rflash=pflash+"aspectosofensivos.swf"
  html=html+'<br><a href="verflash.html?f='+rflash+'" target="marco">Aspectos ofensivos</a>'

  rflash=pflash+"aspectosdefensivos.swf"
  html=html+'<br><a href="verflash.html?f='+rflash+'" target="marco">Aspectos defensivos</a>'

  rflash=pflash+"jugadoresdestacados.swf"
  html=html+'<br><a href="verflash.html?f='+rflash+'" target="marco">Jugadores destacados</a>'

  rflash=pflash+"goles.swf"
  html=html+'<br><a href="verflash.html?f='+rflash+'" target="marco">Goles</a>'

  document.write(html)
}

function MuestraFlashInicial(numero)
{
  qflash=TablaIS[numero].carpeta+'/equipo-a-alineacion.swf'
  vflash='verflash.html?f='+qflash
  document.getElementById("marco").src=vflash
}

