var currentPart = 0;
var parts = new Array
(
"&nbsp;&nbsp;&nbsp;Award Modular BIOS v6.00PG, An Energy Star Ally<br />" +
"&nbsp;&nbsp;&nbsp;Copyright (C) 1984-2001, Award Software, Inc.<br />" +
"<br />" +
"<br />" +
"ASUS A7V ACPI BIOS Revision 1004<br />" +
"<br />" +
"<br />" +
"Main Processor : AMD Athlon(TM)<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"Press <b>DEL</b> to enter SETUP<br />" +
"11/17/2001 VIA-KT133-(A7V)"
,
"&nbsp;&nbsp;&nbsp;Award Modular BIOS v6.00PG, An Energy Star Ally<br />" +
"&nbsp;&nbsp;&nbsp;Copyright (C) 1984-2001, Award Software, Inc.<br />" +
"<br />" +
"<br />" +
"ASUS A7V ACPI BIOS Revision 1004<br />" +
"<br />" +
"<br />" +
"Main Processor : AMD Athlon(TM) 1400MHz<br />" +
"Memory Testing : <br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"Press <b>DEL</b> to enter SETUP<br />" +
"11/17/2001 VIA-KT133-(A7V)"
,
"&nbsp;&nbsp;&nbsp;Award Modular BIOS v6.00PG, An Energy Star Ally<br />" +
"&nbsp;&nbsp;&nbsp;Copyright (C) 1984-2001, Award Software, Inc.<br />" +
"<br />" +
"<br />" +
"ASUS A7V ACPI BIOS Revision 1004<br />" +
"<br />" +
"<br />" +
"Main Processor : AMD Athlon(TM) 1400MHz<br />" +
"Memory Testing :  524288K OK<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"Press <b>DEL</b> to enter SETUP<br />" +
"11/17/2001 VIA-KT133-(A7V)"
,
"&nbsp;&nbsp;&nbsp;Award Modular BIOS v6.00PG, An Energy Star Ally<br />" +
"&nbsp;&nbsp;&nbsp;Copyright (C) 1984-2001, Award Software, Inc.<br />" +
"<br />" +
"<br />" +
"ASUS A7V ACPI BIOS Revision 1004<br />" +
"<br />" +
"<br />" +
"Main Processor : AMD Athlon(TM) 1400MHz<br />" +
"Memory Testing : 524288K OK<br />" +
"<br />" +
"<br />" +
"Award Plug and Play BIOS Extension v1.0A<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"Press <b>DEL</b> to enter SETUP<br />" +
"11/17/2001 VIA-KT133-(A7V)"
,
"&nbsp;&nbsp;&nbsp;Award Modular BIOS v6.00PG, An Energy Star Ally<br />" +
"&nbsp;&nbsp;&nbsp;Copyright (C) 1984-2001, Award Software, Inc.<br />" +
"<br />" +
"<br />" +
"ASUS A7V ACPI BIOS Revision 1004<br />" +
"<br />" +
"<br />" +
"Main Processor : AMD Athlon(TM) 1400MHz<br />" +
"Memory Testing : 524288K OK<br />" +
"<br />" +
"<br />" +
"Award Plug and Play BIOS Extension v1.0A<br />" +
"Initialize Plug and Play Cards...<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"Press <b>DEL</b> to enter SETUP<br />" +
"11/17/2001 VIA-KT133-(A7V)"
,
"&nbsp;&nbsp;&nbsp;Award Modular BIOS v6.00PG, An Energy Star Ally<br />" +
"&nbsp;&nbsp;&nbsp;Copyright (C) 1984-2001, Award Software, Inc.<br />" +
"<br />" +
"<br />" +
"ASUS A7V ACPI BIOS Revision 1004<br />" +
"<br />" +
"<br />" +
"Main Processor : AMD Athlon(TM) 1400MHz<br />" +
"Memory Testing : 524288K OK<br />" +
"<br />" +
"<br />" +
"Award Plug and Play BIOS Extension v1.0A<br />" +
"Initialize Plug and Play Cards...<br />" +
"PNP Init Completed<br />" +
"<br />" +
"<br />" +
"Detecting Primary Master&nbsp;&nbsp;&nbsp;... <br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"Press <b>DEL</b> to enter SETUP<br />" +
"11/17/2001 VIA-KT133-(A7V)"
,
"&nbsp;&nbsp;&nbsp;Award Modular BIOS v6.00PG, An Energy Star Ally<br />" +
"&nbsp;&nbsp;&nbsp;Copyright (C) 1984-2001, Award Software, Inc.<br />" +
"<br />" +
"<br />" +
"ASUS A7V ACPI BIOS Revision 1004<br />" +
"<br />" +
"<br />" +
"Main Processor : AMD Athlon(TM) 1400MHz<br />" +
"Memory Testing : 524288K OK<br />" +
"<br />" +
"<br />" +
"Award Plug and Play BIOS Extension v1.0A<br />" +
"Initialize Plug and Play Cards...<br />" +
"PNP Init Completed<br />" +
"<br />" +
"<br />" +
"Detecting Primary Master&nbsp;&nbsp;&nbsp;... QUANTUM PATENTE À 20 GIGS<br />" +
"Detecting Primary Slave&nbsp;&nbsp;&nbsp;&nbsp;... <br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"Press <b>DEL</b> to enter SETUP<br />" +
"11/17/2001 VIA-KT133-(A7V)"
,
"&nbsp;&nbsp;&nbsp;Award Modular BIOS v6.00PG, An Energy Star Ally<br />" +
"&nbsp;&nbsp;&nbsp;Copyright (C) 1984-2001, Award Software, Inc.<br />" +
"<br />" +
"<br />" +
"ASUS A7V ACPI BIOS Revision 1004<br />" +
"<br />" +
"<br />" +
"Main Processor : AMD Athlon(TM) 1400MHz<br />" +
"Memory Testing : 524288K OK<br />" +
"<br />" +
"<br />" +
"Award Plug and Play BIOS Extension v1.0A<br />" +
"Initialize Plug and Play Cards...<br />" +
"PNP Init Completed<br />" +
"<br />" +
"<br />" +
"Detecting Primary Master&nbsp;&nbsp;&nbsp;... QUANTUM PATENTE À 20 GIGS<br />" +
"Detecting Primary Slave&nbsp;&nbsp;&nbsp;&nbsp;... MAXTOR THINGY<br />" +
"Detecting Secondary Master ...<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"Press <b>DEL</b> to enter SETUP<br />" +
"11/17/2001 VIA-KT133-(A7V)"
,
"&nbsp;&nbsp;&nbsp;Award Modular BIOS v6.00PG, An Energy Star Ally<br />" +
"&nbsp;&nbsp;&nbsp;Copyright (C) 1984-2001, Award Software, Inc.<br />" +
"<br />" +
"<br />" +
"ASUS A7V ACPI BIOS Revision 1004<br />" +
"<br />" +
"<br />" +
"Main Processor : AMD Athlon(TM) 1400MHz<br />" +
"Memory Testing : 524288K OK<br />" +
"<br />" +
"<br />" +
"Award Plug and Play BIOS Extension v1.0A<br />" +
"Initialize Plug and Play Cards...<br />" +
"PNP Init Completed<br />" +
"<br />" +
"<br />" +
"Detecting Primary Master&nbsp;&nbsp;&nbsp;... QUANTUM PATENTE À 20 GIGS<br />" +
"Detecting Primary Slave&nbsp;&nbsp;&nbsp;&nbsp;... MAXTOR THINGY<br />" +
"Detecting Secondary Master ... DVD-RAM 50x/100x/120x<br />" +
"Detecting Secondary Slave&nbsp;&nbsp;...<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"Press <b>DEL</b> to enter SETUP<br />" +
"11/17/2001 [COMA3 is in the house]"
,
"&nbsp;&nbsp;&nbsp;Award Modular BIOS v6.00PG, An Energy Star Ally<br />" +
"&nbsp;&nbsp;&nbsp;Copyright (C) 1984-2001, Award Software, Inc.<br />" +
"<br />" +
"<br />" +
"ASUS A7V ACPI BIOS Revision 1004<br />" +
"<br />" +
"<br />" +
"Main Processor : AMD Athlon(TM) 1400MHz<br />" +
"Memory Testing : 524288K OK<br />" +
"<br />" +
"<br />" +
"Award Plug and Play BIOS Extension v1.0A<br />" +
"Initialize Plug and Play Cards...<br />" +
"PNP Init Completed<br />" +
"<br />" +
"<br />" +
"Detecting Primary Master&nbsp;&nbsp;&nbsp;... QUANTUM PATENTE À 20 GIGS<br />" +
"Detecting Primary Slave&nbsp;&nbsp;&nbsp;&nbsp;... MAXTOR THINGY<br />" +
"Detecting Secondary Master ... DVD-RAM 50x/100x/120x<br />" +
"Detecting Secondary Slave&nbsp;&nbsp;... HP DVD-RW<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"<br />" +
"Press <b>DEL</b> to enter SETUP<br />" +
"11/17/2001 VIA-KT133-(A7V)"
);

var lines = new Array
(
  7, 8, 11, 12, 13, 16, 17, 18, 19
)

var columns = new Array
(
  32, 17, 0, 0, 0, 31, 31, 31, 31
)

var context, outside;

function CrashInit ( )
{
  outside = window.open ( "blue.html", '', "fullscreen=yes,scrollbars=no" );
  //outside = window.open ( "blue.html", '', "scrollbars=no" );
  context = outside.document.all;
}

function RebootInit ( )
{
  context.subtext.style.display = "none";
  context.subtext.innerHTML = "";
  outside.document.body.style.backgroundColor = "000000";
  outside.document.body.style.backgroundColor = "000000";
  outside.body_onload ( 30 );

  context.subtext.style.display = "block";
  context.toptext.style.display = "block";
  context.award.style.display = "block";
  context.epa.style.display = "block";
}

function Reboot ( partNumber, partPercent )
{
  var content = parts[partNumber];
  context.toptext.innerHTML = content;
  var preSub = '';
  for ( d = 0; d < lines[partNumber]; d++ )
  {
    preSub += "<br />";
  }
  for ( d = 0; d < columns[partNumber]; d++ )
  {
    preSub += "&nbsp;";
  }
  switch ( partNumber )
  {
    case 0:
      c = Math.round ( partPercent * 1400 / 100 );
      context.subtext.innerHTML = preSub + c + 'MHz';
      break;
    case 1:
      c = Math.round ( partPercent * 524288 / 100 );
      context.subtext.innerHTML = preSub + c + 'K OK';
      break;
    case 2:
      context.subtext.innerHTML = preSub + 'Award Plug and Play BIOS Extension v1.0A';
      break;
    case 3:
      context.subtext.innerHTML = preSub + 'Initialize Plug and Play Cards...';
      break;
    case 4:
      context.subtext.innerHTML = preSub + 'PNP Init Completed';
      break;
    case 5:
      if ( partPercent > 70 )
      {
        context.subtext.innerHTML = preSub + "QUANTUM PATENTE À 20 GIGS";
      }
      else
      {
        context.subtext.innerHTML = preSub + "[Press <b>F4</b> to skip]";
      }
      break;
    case 6:
      if ( partPercent > 70 )
      {
        context.subtext.innerHTML = preSub + "MAXTOR THINGY";
      }
      else
      {
        context.subtext.innerHTML = preSub + "[Press <b>F4</b> to skip]";
      }
      break;
    case 7:
      if ( partPercent > 70 )
      {
        context.subtext.innerHTML = preSub + "DVD-RAM 50x/100x/120x";
      }
      else
      {
        context.subtext.innerHTML = preSub + "[Press <b>F4</b> to skip]";
      }
      break;
    case 8:
      if ( partPercent > 70 )
      {
        context.subtext.innerHTML = preSub + "HP DVD-RW";
      }
      else
      {
        context.subtext.innerHTML = preSub + "[Press <b>F4</b> to skip]";
      }
      break;
  }
}

function RebootClose ( )
{
  outside.close ( );
}