var completo=false;
var lnormal;
var lrollover;
var lpush;

function cambia (numimagen,posicion)
{

if (completo)
  {
  	var aux=0;
	if (lrollover.length>1)
   	 {aux=numimagen;}
  switch (posicion)
  	{
  	case 0:
  		exp="document.img" + numimagen +".src=lnormal[" + aux + "].src;";
  		break;
  	case 1:
  		exp="document.img" + numimagen +".src=lrollover[" + aux + "].src;";
  		break;
  	case 2:
  		exp="document.img" + numimagen +".src=lpush[" + aux + "].src;";
  		//alert (eval("lpush[" + aux + "].src;"));
  		break;
	}
	/*
  if (posicion==1)
      {
      exp="document.img" + numimagen +".src=lrollover[" + aux + "].src;";
      }
  else
      {
      exp="document.img" + numimagen +".src=lnormal[" + aux + "].src;";
      }     */
  eval (exp);
  return true;
  }
else
  {
  return false;
  }
}

function comentario (num)
{

	tex=textos[num]

	tex ="<p class\=\"comment\">" + tex + "</p>";
  if(document.layers) {
  	// Netscape
    document.CTexto.document.open();
    document.CTexto.document.write(tex);
    document.CTexto.document.close();

  }
  else { // Explorer
    if(document.all) {
      document.all.CTexto.innerHTML = tex;
    }
  }
	return true;
}

function cambiaSeccion (tex)
{

  if(document.layers)
  	{ // Netscape
	    document.scrollContentDiv.document.open();
	    document.scrollContentDiv.document.write(tex);
	    document.scrollContentDiv.document.close();
  	}
  else { // Explorer
    if(document.all)
    	{
      	document.all.scrollContentDiv.innerHTML = tex;
   	}
	}
}

function muestraBarra (value)
	{
	window.status=value;
	return true;
	}