var win = 0, timeout = 0;
var rows = 0;
var line_delay = 0;
var soundURL = "http://nos.newlix-sys.com/officeserver/sounds/";
function Sleep(t) {
	d = new Date();
	start = d.getTime();
	while (true) {
		d = new Date();
		if (d.getTime() >= start+t)
			break;
	}
}
function loadSound(s) {
	window.status = "One moment, preloading '"+s+"' file...";
	i = new Image();
	i.src = soundURL+s+".wav";
}
function initSound() {
	loadSound("osinit");
	loadSound("instcube");
	loadSound("initcube");
	loadSound("webacc");
	loadSound("dot");
	loadSound("1");
	loadSound("9");
	loadSound("2");
	loadSound("6");
	loadSound("8");
	loadSound("3");
	loadSound("wipeout");
	loadSound("slshconf");
	loadSound("remove");
	loadSound("remove2");
	loadSound("verify");
	loadSound("instcont");
	loadSound("delpart");
	loadSound("makepart");
	loadSound("syspart");
	loadSound("userpart");
	loadSound("booting");
	loadSound("cubedone");
	loadSound("scantcp");
	loadSound("autoinit");
	window.status = "Pre-loading done. You may now begin the demo by clicking the \"Begin Demo\" button.";
}
function Simulate(t) {
	if (navigator.appName.indexOf("Netscape") > -1)
		ShowText('\n',0);
	if (!win.parent.confirm(t + '\nClick "OK" to simulate that action or "Cancel" to abort.')) {
		win.close();
		return false;
	}
	return true;
}
function Sound(s) {
	if (navigator.appName.indexOf("Netscape") > -1) {
		win.document.write('<EMBED HIDDEN AUTOSTART=TRUE LOOP=FALSE SRC="');
		tag="EMBED";
	} else {
		win.document.write('<BGSOUND LOOP=1 SRC="');
		tag="BGSOUND";
	}
	win.document.write(soundURL+s+'.wav" >');
	win.document.write("</"+tag+">");
}
function ShowText(t,delay) {
	if (t.indexOf("\n") > -1)
		rows++;
	if (delay == 0) {
		win.document.write(t);
	} else {
		l = t.length;
		for(i=0; i<=l; i++) {
			win.document.write(t.substr(i,1));
			Sleep(delay);
		}
	}
	win.scroll(0,rows*30);
	win.focus();
	if (line_delay)
		Sleep(line_delay);
}
function cleanScreen() {
	win.document.open('text/html');
	win.document.writeln('<HTML><HEAD>');
	win.document.writeln('<TITLE>Newlix OfficeServer</TITLE>');
	win.document.writeln('</HEAD>');
	win.document.writeln('<BODY BGCOLOR=#000000 TEXT=#FFFFFF>');
	win.document.writeln('<PRE>');
	f = win.opener.document.forms[0];
	rows = 0;
}
function InitBootMessages() {
	ShowText('SYSLINUX 1.40 0x38d9a105  Copyright (C)  1994-1998 H. Peter Anvin\n',0);
	ShowText('Loading ramdisk',0);
	ShowText('.........\n',50);
	ShowText('Loading newlix',0);
	ShowText('.....\n',50);
	ShowText('Uncompressing Linux',0);
	ShowText('...',50);
	ShowText('done.\n',0);
	ShowText('Now booting the kernel\n',0);
	ShowText('Memory: sized by int13 088h\n',0);
	ShowText('Console: 8 point font, 400 scans\n',0);
	ShowText('Console: colour VGA+ 80x50, 1 virtual console (max 63)\n',0);
	ShowText('Boot logo: 120 x 64 pixel logo selected.\n',0);
	ShowText('pcibios_init : BIOS32 Service Directory structure at 0x000f9a20\n',0);
	ShowText('pcibios_init : BIOS32 Service Directory entry at 0xf04e0\n',0);
	ShowText('pcibios_init : PCI BIOS revision 2.10 entry at 0xf0510\n',0);
	ShowText('Probing PCI hardware.\n',0);
	ShowText('Calibrating delay loop.. ok - 466.94 BogoMIPS\n',0);
	ShowText('Memory: 45660k/49152k available (764k kernel code, 384k reserved, 1024k data)\n',0);
	ShowText('Swansea University Computer Society NET3.035 for Linux 2.0\n',0);
	ShowText('NET3: Unix domain sockets 0.13 for Linux NET3.035.\n',0);
	ShowText('Swansea University Computer Society TCP/IP for NET3.034\n',0);
	ShowText('IP Protocols: IGMP, ICMP, UDP, TCP\n',0);
	ShowText('VFS: Diskquotas version dquot_5.6.0 initialized\n',0);
	ShowText('Checking 386/387 coupling...OK, FPU using exception 16 error reporting.\n',0);
	ShowText('Checking [hlt] instruction...OK\n',0);
	ShowText('Linux version 2.0.38 (root@NewlixOfficeServer) (gcc version 2.7.2.3) #1 Wed Apr\n',0);
	ShowText('19 17:45:23 EDT 2000\n',0);
	ShowText('Starting kswapd v 1.4.2.2\n',0);
	ShowText('Digiboard PC/X{i,e,eve} driver v1.5.7\n',0);
	ShowText('PC/Xx: Board not found at port 0x200! Check switch settings.\n',0);
	ShowText('APM BIOS version 1.2 Flags 0x03 (Driver version 1.2)\n',0);
	ShowText('    Entry f000:7304 cseg16 f000 dseg fd9e cseg len ef7f, dseg len a0\n',0);
	ShowText('    Connection version 1.1\n',0);
	ShowText('    AC on line, battery status unknown, battery life unknown\n',0);
	ShowText('    battery flag 0x80, battery life unknown\n',0);
	ShowText('Real Time Clock Driver v1.09\n',0);
	ShowText('PCSP 1.2 measurement: maximal samplerate 170454 Hz, 18356 Hz used\n',0);
	ShowText('PCSP 1.2: PC-speaker, PCSP-mixer installed\n',0);
	ShowText('Ramdisk driver initialized : 16 ramdisks of 4096K size\n',0);
	ShowText('loop: registered device at major 7\n',0);
	ShowText('ide: Intel 82371 (single FIFO) DMA Bus Mastering IDE\n',0);
	ShowText('    Controller on PCI bus 0 function 9\n',0);
	ShowText('ide: timings == 8000e377\n',0);
	ShowText('    ide0: BM-DMA at 0xe000-0xe007\n',0);
	ShowText('    ide1: BM-DMA at 0xe008-0xe00f\n',0);
	ShowText('hda: QUANTUM FIREBALL CR4.3A, 4110MB w/418kB Cache, CHS=524/255/63, UDMA\n',0);
	ShowText('hdb: ATAPI 44X CDROM, ATAPI CDROM drive - enabling SCSI emulation\n',0);
	ShowText('ATAPI overlap supported: No\n',0);
	ShowText('ide0 at 0x1f0-0x1f7,0x3f6 on irq 14\n',0);
	ShowText('Floppy drive(s): fd0 is 1.44M\n',0);
	ShowText('FDC 0 is a post-1991 82077\n',0);
	ShowText('md driver 0.36.3 MAX_MD_DEV=4, MAX_REAL=8\n',0);
	ShowText('scsi0 : SCSI host adapter emulation for IDE ATAPI devices\n',0);
	ShowText('scsi : 1 host.\n',0);
	ShowText('  Vendor:   ATAPI   Model: 44X CDROM         Rev: 3.40\n',0);
	ShowText('  Type:   CD-ROM                             ANSI SCSI revision: 02\n',0);
	ShowText('Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0\n',0);
	ShowText('scsi : detected 1 SCSI cdrom total.\n',0);
	ShowText('ne2k-pci.c:vpre-1.00g 8/5/99 D. Becker/P. Gortmaker http://cesdis.gsfc.nasa.gov/\n',0);
	ShowText('linux/drivers/ne2k-pci.html\n',0);
	ShowText('ne2k-pci.c: PCI NE2000 clone RealTek RTL-8029 at I/O 0xd400, IRQ 10.\n',0);
	ShowText('eth0: RealTek RTL-8029 found at 0xd400, IRQ 10, 00:00:B4:B6:6C:22.\n',0);
	ShowText('Partition check:\n',0);
	ShowText(' hda: hda1 hda4 < hda5 hda6 hda7 >\n',0);
	ShowText('RAMDISK: Compressed image found at block 0\n',0);
	ShowText('VFS: Mounted root (ext2 filesystem).\n',0);
	ShowText('Starting klogd with no console output (klogd -c 1)\n',0);
	ShowText('\n',0);
	ShowText('   <B>   _________________ Support available from: ________________________________\n',0);
	ShowText('     |                                                                        |\n',0);
	ShowText('     |         http://www.newlix-sys.com/support/     -OR-                          |\n',0);
	ShowText('     |         news://news.newlix-sys.com/gaaj.officeserver.help                    |\n',0);
	ShowText('     |________________________________________________________________________|</B>\n',0);
	ShowText('\n',0);	
	ShowText('	      -- Welcome to the Newlix OfficeServer CDROM --\n',0);
	ShowText('\n',0);
	ShowText('Since you have booted from the CDROM, you have a few options at this time. One\n',0);
	ShowText('thing you should consider is creating a floppy disk to boot. This would give\n',0);
	ShowText('you better flexibility in the installation process. The boot floppy disk\n',0);
	ShowText('includes such features as the ability to specify most configuration settings as\n',0);
	ShowText('well as enabling more advanced features such as SCSI CDROM support.\n',0);
	ShowText('You may want to skip some preliminary tests and continue booting from the CDROM\n',0);
	ShowText('for rescue operations or for a new installation regardless of the existing\n',0);
	ShowText('system on the hard disk.\n',0);
	ShowText('\n',0);
	ShowText('Select from the following choices:\n',0);
	ShowText('     F - Create a boot floppy.\n',0);
	ShowText('     C - Skip MIRRORING tests and boot from CDROM.\n',0);
	ShowText('     H - Skip MIRRORING tests and boot from /dev/hda6.\n',0);
	ShowText('     N - Continue normal boot (do MIRRORING tests).\n',0);
	ShowText('	\n',0);
}
function BeginDemo() {
	if (win)
		win.close();
	win = window.open('','install','toolbar=no,resizable=yes,location=no,status=no,width=640,height=480,scrollbars=yes');
	cleanScreen();
	if (!Simulate('Welcome to the Newlix OfficeServer software installation demonstration. You are\n'
				 +'about to witness a close to real time experience. The demo takes approximately\n'
				 +'the same time it would take you to install the software yourself on a Pentium II\n'
				 +'400MHz computer, or about five (5) minutes.\n'
				 +'If you do not have that much time at your disposal, you should bookmark this page\n'
				 +'and come back later. Otherwise, watch, listen and be amazed...\n\n'
				 +'Normally, you would begin by inserting the CD and floppy disk and power up the PC.'))
		return;
	InitBootMessages();
	ShowText('60: What is your selection (F/H/[C]/N)? \n',0);
	if (!Simulate('What you\'ve just seen scroll by is what you\'d normally see on the computer screen\n'
				 +'if you were to actually boot with the CD and floppy disk.\n\n'
				 +'At this stage, you could do one of the suggested things, but we\'ll just press the C key\n'
				 +'to continue boot from CDROM.'))
		return;
	ShowText('User chose to continue boot on CDROM.\n',0);
	ShowText('Continuing boot on CDROM (device /dev/ram0)\n',0);
	ShowText('INIT: version 2.76 booting\n',0);
	ShowText('Starting klogd with no console output (klogd -c 1)\n',0);
	ShowText('\n',0);
	ShowText('   <B>   _________________ Support available from: ________________________________\n',0);
	ShowText('     |                                                                        |\n',0);
	ShowText('     |         http://www.newlix-sys.com/support/     -OR-                          |\n',0);
	ShowText('     |         news://news.newlix-sys.com/gaaj.officeserver.help                    |\n',0);
	ShowText('     |________________________________________________________________________|</B>\n',0);
	ShowText('\n',0);	
	ShowText('/------------------------- WHAT IS RESCUE MODE? ------------------------------\\\n',0);
	ShowText('| Enabling the rescue functions would be appropriate if you had problems with  |\n',0);
	ShowText('| your server and wanted to try and fix them. If not, the installation         |\n',0);
	ShowText('| process will be initiated instead.                                           |\n',0);
	ShowText('\\------------------------------------------------------------------------------/\n',0);
	ShowText('Not enabling rescue functions.\n',0);
	ShowText(' /------------------- WHAT IS MANUFACTURING MODE? ---------------------------\\\n',0);
	ShowText('| The manufacturing mode allows you to create a hard disk installation that   |\n',0);
	ShowText('| can easily be copied to multiple hard disks (with the appropriate hardware) |\n',0);
	ShowText('| because the process stops before requiring user information. If you do not\n',0);
	ShowText('| enable the manufacturing installation process, the installation will        |\n',0);
	ShowText('| proceed and ask user questions at the end of the installation to customize  |\n',0);
	ShowText('| this server.                                                                |\n',0);
	ShowText(' \\---------------------------------------------------------------------------/\n',0);
	ShowText('Not enabling manufacturing installation mode.\n',0);
	ShowText('Current CMOS clock date and time is: Wed Sep 18 16:18:29 2002\n',0);
	ShowText('Checking for CD: found on /dev/sr0.\n',0);
	ShowText('    Mounting Newlix OfficeServer 1.6 (1.6.0-2) CD-ROM under /cdrom.\n',0);
	ShowText('\n',0);
	Sound("osinit");
	ShowText('Starting PCMCIA services: No PCMCIA chipset found!\n',0);
	ShowText('Waiting for key press to enable TTY5 pause: No key pressed...\n',0);
	ShowText('You may now login as \'root\' on TTY5 (press ALT-F5)...\n',0);
	ShowText('Using hard disk \'hda\' for install...\n',0);
	ShowText('Going multiuser...\n',0);
	ShowText('CD version 1.6 (1.6.0-2 2002/08/28@07:15:17)\n',0);
	ShowText('Continuing boot from CDROM\n',0);
	ShowText('Not saving log to FLOPPY DISK, booted from CDROM.\n',0);
	ShowText('Mounting /dev/hda6 on /linux: ',0);
	Sleep(2000);
	ShowText('done.\n',0);
	ShowText('Mounting /dev/hda7 on /linux/USERSPACE:',0);
	Sleep(2000);
	ShowText(' done.\n',0);
	ShowText('\n',0);
	ShowText('BOOTED FROM CDROM WITHOUT A FLOPPY IN DRIVE\n',0);
	ShowText('\n',0);
	ShowText('Entering the Serial Number and install key at this time will skip a step in\n',0);
	ShowText('the installation process, however this is not required and instead, may be done\n',0);
	ShowText('as described in the installation manual.\n',0);
	ShowText('\n',0);
	Sound("osinit");
	ShowText('Unless you wish only to evaluate the server software with it\'s minimal set of\n',0);
	ShowText('features, we recommend that you obtain a serial number and enter it below. It\n',0);
	ShowText('is free of charge and will allow you to evaluate and use more features of the\n',0);
	ShowText('server.\n',0);
	ShowText('    _____________________________________________________________________\n',0);
	ShowText('    |           If you require a serial number, please go to            |\n',0);
	ShowText('    |                 http://www.newlix-sys.com/getserial/                    |\n',0);
	ShowText('    |    <B>This is free of charge and will enable most server features.</B>   |\n',0);
	ShowText('    |___________________________________________________________________|\n',0);
	ShowText('\n',0);
	ShowText('Serial number: TEST01-12345-1234-123456\n',0);
	ShowText('Install key (use a space to delimit multiple keys): jskUhXXa oe3kgFYQ\n',0);
	Sleep(200);
	ShowText('If you intend to do advanced programming and configuration on the server, then\n',0);
	ShowText('it\'s a good idea to specify a root password. You can specify it now or set it\n',0);
	ShowText('later in the configuration screens. If not specified right now, access to the\n',0);
	ShowText('server will be limited to the web configuration interface, which is better\n',0);
	ShowText('from a security point of view.\n',0);
	ShowText('\n',0);
	ShowText('We recomend that you answer NO unless you absolutely need a root password.\n',0);
	Sleep(200);
	ShowText('Enter root password (enter to abort):\n',0);
	ShowText('Please confirm root password:\n',0);
	Sleep(2000);
	ShowText('Scanning for network cards because only 0 card(s) found\n',0);
	ShowText('Updating module dependencies for Linux 2.0.28: done.\n',0);
	ShowText('Loaded AMD LANCE and PCnet (AT1500 and NE2100) support (lance:io=0x300 irq=5 dma\n',0);
	ShowText('Initiating traffic dump: eth0: done.\n',0);
	ShowText('Looking for DHCP server on eth0 (key to abort): ',0);
	Sound('scantcp');
	Sleep(1000);
	ShowText('found at 192.168.1.5.\n',0);
	ShowText('Waiting for valid IP from DHCP server for eth0: ',0);
	Sleep(1000);
	ShowText('192.168.1.13/255.255.255.0.\n',0);
	ShowText('No other network cards\n',0);
	ShowText('Creating TCP/IP configuration files: ',0);
	Sleep(1000);
	ShowText('done.\n',0);
	ShowText('Mounting remote file systems: done.\n',0);
	Sleep(1000);
	line_delay = 150;
	ShowText('Starting daemons:',0);
	ShowText(' syslogd',0);
	ShowText(' klogd',0);
	ShowText(' portmap',0);
	ShowText(' inetd',0);
	ShowText(' named',0);
	ShowText(' mountd',0);
	ShowText(' nfsd.\n',0);
	line_delay = 0;
	Sound("verify");
	ShowText('Verifying install files integrity: ',0);
	Sleep(2000);
	ShowText('done.\n',0);
	ShowText('Copying \'ls\' for anonymous FTP: ',0);
	Sleep(500);
	ShowText('done.\n',0);
	ShowText('Starting DNS server: ',0);
	Sleep(500);
	ShowText('done.\n',0);
	ShowText('Starting DHCP server: disabled.\n',0);
	ShowText('Starting crond: done.\n',0);
	ShowText('Locating installed hard disk devices: hda hdb.\n',0);
	ShowText('IP Address of eth0 is 192.168.1.13.\n',0);
	ShowText('\n',0);
	ShowText('Press ALT along with one of these \'F\' keys to switch \'virtual consoles\'.\n',0);
	ShowText('    ALT-F1: This screen.\n',0);
	ShowText('    ALT-F2: Current install status.\n',0);
	ShowText('    ALT-F3: Login prompt 1\n',0);
	ShowText('    ALT-F4: Login prompt 2\n',0);
	ShowText('    ALT-F5: Emergency Login (even when no CD found)\n',0);
	ShowText('    ALT-F8: Process log output (please ignore errors on this console).\n',0);
	ShowText('\n',0);
	ShowText('Creating links to CDROM: /bin /sbin /usr/bin /usr/sbin.\n',0);
	ShowText('CD version 1.6 (release 1.6.0-2 of 2002/08/28)\n',0);
	ShowText('Initialising automatic install: done.\n',0);
	Sound("verify");
	ShowText('Verifying /dev/hda status: ',0);
	Sleep(2000);
	ShowText('done.\n',0);
	ShowText('Found that hdb is ok to mirror hda. ',0);
	Sleep(300);
	ShowText('Enabling mirroring option: ',0);
	Sleep(300);
	ShowText('done.\n',0);
	ShowText('\n',0);
	ShowText('  <B>  _________________ Support available from: ___________________________\n',0);
	ShowText('    |                                                                   |\n',0);
	ShowText('    |        http://www.newlix-sys.com/support/   -OR-                        |\n',0);
	ShowText('    |        news://news.newlix-sys.com/gaaj.officeserver.help                |\n',0);
	ShowText('    |___________________________________________________________________|</B>\n',0);
	ShowText('\n',0);
	Sound("remove");
	line_delay = 150;
	ShowText('********************************************************************************\n',0);
	ShowText('********************************************************************************\n',0);
	ShowText('********************************************************************************\n',0);
	ShowText('***           Booted from CDROM without any floppy disk in drive             ***\n',0);
	ShowText('********************************************************************************\n',0);
	ShowText('*** When booting from a floppy disk, you can easily specify setup values     ***\n',0);
	ShowText('*** by editing the diskette\'s setup.txt file. At this stage, you have these  ***\n',0);
	ShowText('*** options:                                                                 ***\n',0);
	ShowText('***                                                                          ***\n',0);
	ShowText('***      1- To create a boot floppy, press the [F] key.                      ***\n',0);
	ShowText('***      2- To Begin the automatic install, press the [ENTER] key.           ***\n',0);
	ShowText('***      3- To Begin the automatic mirroring install, press the [M] key.     ***\n',0);
	ShowText('********************************************************************************\n',0);
	ShowText('**           <B>Will run automatic install when ENTER is pressed  </B>               **\n',0);
	ShowText('**             <B>or will create boot floppy when [F] is pressed  </B>               **\n',0);
	ShowText('**            <B>or automatic mirror install when [M] is pressed   </B>              **\n',0);
	ShowText('********************************************************************************\n',0);
	ShowText('***      <B><BLINK>WARNING:</B></BLINK> Mirroring should be done with two IDE masters.             ***\n',0);
	ShowText('***  Both drives are currently on the first controler as master and slave.   ***\n',0);
	ShowText('********************************************************************************\n',0);
	ShowText('** To cancel, press ALT-F3 (press ALT-F1 to return here) and login as root.   **\n',0);
	ShowText('** Then to end the install type: \'Terminate.bash\' (without the quotes)        **\n',0);
	ShowText('********************************************************************************\n',0);
	ShowText('-----------------------------------------------------------------------------\n',0);
	ShowText('|  Press ENTER for automatic install or [M] for mirroring install to begin...  |\n',0);
	ShowText('-----------------------------------------------------------------------------\n',0);
	ShowText('\n',0);
	if (!Simulate('As you\'ve undoubtedly noticed the spoken phrases, you may have guessed that\n'
				 +'the installation process also lets you know the stage it\'s at and what you\n'
				 +'need to do using spoken words as well as text on the screen. This allows the\n'
				 +'software install to be done on a "headless" computer, which means that the\n'
				 +'install can be done with NO MONITOR, NO KEYBOARD AND NO MOUSE!\n\n'
				 +'To begin the installation process, you\'d be pressing ENTER or removing the floppy disk.'))
		return;
	Sound("instcont");
	line_delay = 0;
	ShowText('================================================================================\n',0);
	ShowText('|       If you would like to continue with the automatic install, then         |\n',0);
	ShowText('|                Press the [Y] key... Otherwise, do nothing.                   |\n',0);
	ShowText('================================================================================\n',0);
	Sleep(6000);
	if (!Simulate('Because this software installation erases the entire hard disk, we want to\n'
				  +'make sure you know what you\'re doing.\n\n'
				  +'So, to confirm that you want to begin the installation, you\'d be pressing\n'
				  +'the Y key or re-inserting the floppy disk.'))
		return;
	Sound("wipeout");
	line_delay = 500;
	ShowText('********************************************************************************\n',0);
	ShowText('********************************************************************************\n',0);
	ShowText('********************************************************************************\n',0);
	ShowText('**                                                                            **\n',0);
	ShowText('**               You are about to erase the entire hard disk hda!             **\n',0);
	ShowText('**                                                                            **\n',0);
	ShowText('**       Please confirm that this is OK by pressing the [ENTER] key again.    **\n',0);
	ShowText('**                                                                            **\n',0);
	ShowText('********************************************************************************\n',0);
	ShowText('********************************************************************************\n',0);
	Sound("remove2");
	Sleep(3000);
	ShowText('\n',0);
	if (!Simulate('As you can tell, we want you to be sure that the data on the hard drive can be\n'
				 +'erased, so we\'re asking for a final confirmation.\n\n'
				 +'If you were sure, you\'d be pressing ENTER or removing the floppy disk again to\n'
				 +'confirm erasing of the hard disk.'))
		return;
	Sound("autoinit");
	line_delay = 300;
	ShowText('Running automatic install (trash) on Wed Sep 18 17:27:58 2002\n',0);
	ShowText('Checking hda:',0);
	ShowText(' CHS',0);
	ShowText(' fdisk',0);
	ShowText(' parts',0);
	ShowText(' ext',0);
	ShowText(' space',0);
	ShowText(' layout',0);
	ShowText(' dos',0);
	ShowText(' linux.\n',0);
	ShowText('Verifying /dev/hdb for previous mirroring install: None found.\n',0);
	Sound("delpart");
	ShowText('Deleting all partitions on /dev/hda...\n',0);
	Sleep(5000);
	Sound("makepart");
	line_delay = 300;
	ShowText('Creating Primary active partition on /dev/hda1 (cyl 1 to +25M)\n',0);
	ShowText('Created Primary active partition on /dev/hda1 of 28193K.\n',0);
	ShowText('Formatting /dev/hda1: done.\n',0);
	ShowText('Creating Extended partition on /dev/hda4 (cyl 8 to 1015)\n',0);
	ShowText('Created Extended partition on /dev/hda4 of 4064257K.\n',0);
	ShowText('Creating swap partition on /dev/hda5 (cyl 8 to +32M)\n',0);
	ShowText('Created swap partition on /dev/hda5 of 36257K.\n',0);
	ShowText('Creating system partition on /dev/hda6 (cyl 17 to +512M)...\n',0);
	ShowText('Created system partition on /dev/hda6 of 528161K.\n',0);
	ShowText('Formating system partition on /dev/hda6.\n',0);
	line_delay = 0;
	ShowText('Formatting /dev/hda6: ',0);
	Sleep(1000);
	ShowText('done.\n',0);
	ShowText('Creating user partition on /dev/hda7 (cyl 148 to 1015)\n',0);
	ShowText('Created user partition on /dev/hda7 of 3499745K.\n',0);
	Sleep(1000);
	ShowText('Formating user partition on /dev/hda7.\n',0);
	ShowText('Formatting /dev/hda7: ',0);
	Sleep(2000);
	ShowText('done.\n',0);
	Sound("userpart");
	ShowText('Installing default files in /USERSPACE (/dev/hda7)...\n',0);
	Sleep(4000);
	Sound("syspart");
	ShowText('Installing default files in / (/dev/hda6)...\n',0);
	Sleep(5000);
	line_delay = 100;
	ShowText('Installing default files in /BootDisk (/dev/hda1)...\n',0);
	ShowText('Configuring system to do auto-install on startup...\n',0);
	ShowText('Rebooting now!\n',0);
	ShowText('********************************************************************************\n',0);
	ShowText('*** If the server does not reboot right away, you may press the RESET switch ***\n',0);
	ShowText('*** or turn it off and back on to continue the installation...               ***\n',0);
	ShowText('********************************************************************************\n',0);
	Sound("booting");
	ShowText('INIT: Switching to runlevel: 6\n',0);
	ShowText('[9282] Running shutdown script on Wed Sep 18 17:35:37 EDT 2002\n',0);
	ShowText('\n',0);
	ShowText('Running shutdown script /etc/rc.d/rc.6: Run level 6\n',0);
	ShowText('Saving log files: percent install done.\n',0);
	ShowText('Killing all remaining processes\n',0);
	ShowText('Shutting down network interface card eth0.\n',0);
	ShowText('Turning off swap.\n',0);
	if (!Simulate('At this stage, the server reboots and continues installation process.'))
		return;
	ShowText('Rebooting...\n',0);
	Sleep(1000);
	line_delay = 0;
	win.document.close();
	cleanScreen();
	InitBootMessages();
	ShowText('60: What is your selection (F/[H]/C/N)? \n',0);
	ShowText('User chose to continue boot on hard disk.\n',0);
	ShowText('Continuing boot on device /dev/hda6\n',0);
	ShowText('VFS: Mounted root (ext2 filesystem) readonly.\n',0);
	ShowText('INIT: version 2.76 booting\n',0);
	ShowText('Enabling swap: hda5.\n',0);
	ShowText('Adding Swap: 36252k swap-space (priority -1)\n',0);
	ShowText('Swap space total: 36252 Kb.\n',0);
	ShowText('/etc/rc.d/rc.S: Testing filesystem status: Read-only file system\n',0);
	ShowText('/dev/hda6: Running /sbin/e2fsck -a\n',0);
	ShowText('/dev/hda6: Adding UUID to filesystem.\n',0);
	ShowText('/dev/hda6: clean, 6725/132080 files, 132048/528160 blocks\n',0);
	ShowText('/dev/hda7: Running /sbin/e2fsck -a\n',0);
	ShowText('/dev/hda7: Adding UUID to filesystem.\n',0);
	ShowText('/dev/hda7: clean, 2745/876544 files, 163242/3499744 blocks\n',0);
	ShowText('Remounting root device with read-write enabled: done.\n',0);
	ShowText('Current CMOS clock is Wed Sep 18 17:43:18 EDT 2002\n',0);
	ShowText('Found initrd system. Updating files: log1234 etc umount.\n',0);
	ShowText('/dev/hda7 on /USERSPACE type ext2 (rw,usrquota,grpquota)\n',0);
	ShowText('You may now login as \'root\' on tty5...\n',0);
	Sound("osinit");
	ShowText('Starting PCMCIA services: No PCMCIA chipset found!\n',0);
	ShowText('Updating module dependencies for Linux 2.0.38: ',0);
	Sleep(500);
	ShowText('done.\n',0);
	line_delay = 300;
	ShowText('Loading BSD Slip header compression (bsd_comp)...\n',0);
	ShowText('Loading Dummy net driver support (dummy)...\n',0);
	ShowText('Loading PPP (point-to-point TCP/IP) support (ppp)...\n',0);
	ShowText('Loading Serial Line Header compression (for SLIP and others) (slhc)...\n',0);
	ShowText('Loading SLIP (serial line TCP/IP) support (slip)...\n',0);
	ShowText('Loading AMD LANCE and PCnet (AT1500 and NE2100) support (lance:io=0x300 irq=5 dm\n',0);
	line_delay = 0;
	ShowText('a=0)...\n',0);
	ShowText('Going multiuser...\n',0);
	ShowText('Verifying instructions on floppy: executed.\n',0);
	Sleep(200);
	ShowText('First reboot after install, Not scanning network...\n',0);
	ShowText('Intranet on eth0 (00:50:56:B5:01:09)\n',0);
	ShowText('Looking for DHCP server on eth0 (key to abort): ',0);
	Sleep(1000);
	ShowText('found at 192.168.1.5.\n',0);
	ShowText('Waiting for valid IP from DHCP server for eth0: ',0);
	Sleep(1000);
	ShowText('192.168.1.13/255.255.255.0.\n',0);
	ShowText('No other network cards\n',0);
	ShowText('Mounting remote file systems: done.\n',0);
	ShowText('Starting daemons: syslogd klogd inetd named lpd.\n',0);
	ShowText('Starting installation web server: done.\n',0);
	ShowText('Checking for a CD: found on /dev/sr0.\n',0);
	ShowText('    Mounting Newlix OfficeServer 1.6 (1.6.0-2) CD-ROM under /cdrom.\n',0);
	Sound("instcube");
	ShowText('Starting sendmail daemon (/usr/sbin/sendmail -bd -q15m)...\n',0);
	ShowText('Resetting TTY5 login screen\n',0);
	ShowText('\n',0);
	ShowText('Initializing installation process...\n',0);
	ShowText('   (press ALT-F2 for detailed status,\n',0);
	ShowText('          ALT-F3 to F7 for login prompt,\n',0);
	ShowText('          ALT-F8 for log output)\n',0);
	ShowText('Starting installation Web browser...\n',0);
	Sleep(1000);
	ShowText('\n',0);
	line_delay = 300;
	ShowText('Newlix OfficeServer software installer/updater program version 1.6.0-2.\n',0);
	ShowText('  Installing \'Newlix OfficeServer\' files.\n',0);
	ShowText('  Using floppy disk information for installation...\n',0);
	ShowText('  Set root password.\n',0);
	ShowText('  Serial number is: TEST01-12345-1234-123456.\n',0);
	ShowText('  Installing HTML Configuration server...\n',0);
	ShowText('  Installing PC Speaker sound utilities...\n',0);
	ShowText('  Installing \'Basic file structure\' version 1.6.0-2...\n',0);
	ShowText('  Installing features in \'Business server\'.\n',0);
	ShowText('  For features in \'Demo server\':\n',0);
	ShowText('    Installing \'File Server - CDROM\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'Communications - Internet/LAN Card\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'Communications - PPP over Ethernet\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'Communications - Serial Ports\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'Communications - Modem Internet\' version 1.6.0-2...\n',0);
	Sound("instcube");
	ShowText('    Installing \'Communications - Modem Dialin\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'File Server - Microsoft NetBIOS\' version 1.6.0-2...\n',0);
	ShowText('                Installed SMB remote file system mounter 2.0.2\n',0);
	ShowText('    Installing \'System - Access Control\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'System - Status\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'System - Administration\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'System - Upgrade\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'System - Logs\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'Startup Configuration\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'User - Management\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'User - Preferences\' version 1.6.0-2...\n',0);
	ShowText('  For features in \'Protector server\':\n',0);
	ShowText('    Installing \'Server - Print\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'Internet - Web Server\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'E-mail - Aliases\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'E-mail - Sorting\' version 1.6.0-2...\n',0);
	ShowText('  For features in \'Business server\':\n',0);
	Sound("instcube");
	ShowText('    Installing \'Server - Fax\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'File Server - Novell IPX\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'File Server - MAC AppleTalk\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'Server - Fax Queues\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'Internet - Web/FTP Cache\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'E-mail - Retrieval\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'E-mail - Delivery\' version 1.6.0-2...\n',0);
	ShowText('    Installing \'Internet - FTP Server\' version 1.6.0-2...\n',0);
	ShowText('  Installing \'Communications - Virtual Networks\' version 1.6.0-2.\n',0);
	ShowText('  Copying "Newlix OfficeServer Monitor" to shared folder.\n',0);
	Sleep(500);
	ShowText('  Copying help text files.\n',0);
	Sleep(500);
	Sound("initcube");
	ShowText('Installation of Newlix OfficeServer successful.\n',0);
	ShowText('\n',0);
	ShowText('Starting Newlix OfficeServer 1.6 (1.6.0-3 2002/09/21@07:03:41).\n',0);
	ShowText('  Updating system file list database...\n',0);
	ShowText('  Verifying critical system files...\n',0);
	ShowText('  Initialising: Basic configuration version 1.6...\n',0);
	ShowText('                Installed Console web browser (w3m) 991027.0.0\n',0);
	ShowText('  Initialising: Log prunning functions version 1.6...\n',0);
	ShowText('  Initialising: File Server - CD-ROM version 1.6...\n',0);
	ShowText('  Initialising: Communications - Internet/LAN Card version 1.6...\n',0);
	ShowText('                Installed PPPd files 2.3.10\n',0);
	Sound("initcube");
	ShowText('                Installed Traffic shaper tool (shapecfg) 0.15.0\n',0);
	ShowText('                Installed Base TCP/IP programs 0.10.0\n',0);
	ShowText('                Installed TCP/IP FTP client 0.10.0\n',0);
	ShowText('                Installed TCP/IP Route server 0.10.0\n',0);
	ShowText('                Installed TCP/IP remote messaging 0.10.0\n',0);
	ShowText('                Installed TCP/IP remote user list 0.10.0\n',0);
	ShowText('                Installed TCP/IP Telnet daemon 0.14.0\n',0);
	ShowText('                Installed TCP/IP Time daemon 0.10.0\n',0);
	line_delay = 0;
	ShowText('                Installed generic IP redirector (ipfwd) 1.0.0\n',0);
	ShowText('\n',0);
	if (!Simulate('That\'s it!\n\nAfter a few more of these messages, you\'ll get a final message.\n'
				 +'We\'ll speed things up a bit to get there in a flash...\n'))
		return;
	Sound("initcube");
	line_delay = 50;
	ShowText('                Installed IP Port forwarder (ipportfw) 1.11.0\n',0);
	ShowText('                Installed IP Auto forwarder (ipautofw) 2.0.0\n',0);
	ShowText('                Installed IP Firewall chains (ipchains) 1.3.8\n',0);
	ShowText('                Installed IP Firewall utilities (ipfwadm) 2.3.1\n',0);
	ShowText('                Found #0 eth0:PCnet/PCI-II 79C970A (00:50:56:B5:01:09)\n',0);
	ShowText('                eth0: 192.168.1.13/255.255.255.0\n',0);
	ShowText('  Initialising: Communications - PPP over Ethernet version 1.6...\n',0);
	ShowText('  Initialising: Communications - Serial Ports version 1.6...\n',0);
	ShowText('                COM1: no device (03f8) to 115200 baud, uart 16550A, irq 4\n',0);
	ShowText('                COM2: no device (02f8) to 115200 baud, uart 16550A, irq 3\n',0);
	ShowText('                COM3: no device (03e8) to 115200 baud, uart 16550A, irq 4\n',0);
	ShowText('                COM4: no device (02e8) to 115200 baud, uart 16550A, irq 3\n',0);
	ShowText('  Initialising: Communications - Modem Internet version 1.6...\n',0);
	ShowText('  Initialising: Communications - Virtual Networks version 1.6...\n',0);
	ShowText('                Installed FreeS/WAN IPSEC files 1.3.0\n',0);
	ShowText('                Installed VPN PPTP server files 1.0.0\n',0);
	ShowText('  Initialising: Communications - Modem Dial-in version 1.6...\n',0);
	ShowText('                Installed MGetty files 1.1.21.Jul24\n',0);
	ShowText('                ttyS0 (no modem); dialin disabled (service is \'none\').\n',0);
	ShowText('                ttyS1 (no modem); dialin disabled (service is \'none\').\n',0);
	ShowText('                ttyS2 (no modem); dialin disabled (service is \'none\').\n',0);
	ShowText('                ttyS3 (no modem); dialin disabled (service is \'none\').\n',0);
	ShowText('                Generic PPP dialin is disabled\n',0);
	ShowText('  Initialising: Server - Fax version 1.6...\n',0);
	ShowText('                Installed QFax software files 1.3.0\n',0);
	ShowText('                Installed Fax server software files 1.0.0\n',0);
	ShowText('                Installed netPBM software files 1994.3.1.\n',0);
	ShowText('                Verifying settings for faxing\n',0);
	ShowText('  Initialising: Communications - Virtual Networks version 1.6...\n',0);
	ShowText('                Installed FreeS/WAN IPSEC files 1.3.0\n',0);
	ShowText('                Installed VPN PPTP server files 1.0.0\n',0);
	ShowText('  Initialising: Communications - Modem Dial-in version 1.6...\n',0);
	ShowText('                Installed MGetty files 1.1.21.Jul24\n',0);
	ShowText('                ttyS0 (no modem); dialin disabled (service is \'no\n',0);
	ShowText('                ttyS1 (no modem); dialin disabled (service is \'no\n',0);
	ShowText('                ttyS2 (no modem); dialin disabled (service is \'no\n',0);
	ShowText('                ttyS3 (no modem); dialin disabled (service is \'none\').\n',0);
	ShowText('                Generic PPP dialin is disabled\n',0);
	ShowText('  Initialising: Server - Fax version 1.6...\n',0);
	ShowText('                Installed QFax software files 1.3.0\n',0);
	ShowText('                Installed Fax server software files 1.0.0\n',0);
	ShowText('                Installed netPBM software files 1994.3.1.\n',0);
	ShowText('                No fax detected on COM1!\n',0);
	ShowText('  Initialising: Server - Print version 1.6...\n',0);
	ShowText('                Upgraded GNU GhostScript to 5.10.0\n',0);
	ShowText('                Installed GhostScript standard fonts 5.10.0\n',0);
	ShowText('                Installed GhostScript other fonts 5.10.0\n',0);
	ShowText('                Installed Ghostscript base X libs 6.3.0\n',0);
	ShowText('  Initialising: File Server - Novell IPX version 1.6...\n',0);
	ShowText('  Initialising: File Server - MAC AppleTalk version 1.6...\n',0);
	ShowText('                Installed NetAtalk files 1.4b2.0\n',0);
	ShowText('  Initialising: System - Access Control version 1.6...\n',0);
	ShowText('  Initialising: System - Status version 1.6...\n',0);
	ShowText('  Initialising: System - Administration version 1.6...\n',0);
	ShowText('                Installed SystemV init programs 2.76.0\n',0);
	ShowText('  Initialising: System - Upgrade version 1.6...\n',0);
	ShowText('  Initialising: System - Logs version 1.6...\n',0);
	ShowText('  Initialising: Server - Fax Queues version 1.6...\n',0);
	ShowText('  Initialising: Internet - Web/FTP Cache version 1.6...\n',0);
	ShowText('                Feature disabled!\n',0);
	ShowText('  Initialising: Internet - Web Server version 1.6...\n',0);
	ShowText('  Initialising: User - Management version 1.6...\n',0);
	ShowText('  Initialising: User - Preferences version 1.6...\n',0);
	ShowText('  Initialising: E-mail - Retrieval version 1.6...\n',0);
	ShowText('  Initialising: E-mail - Aliases version 1.6...\n',0);
	ShowText('  Initialising: E-mail - Delivery version 1.6...\n',0);
	ShowText('                Installed IMAP4 server 4.7c.0\n',0);
	ShowText('  Initialising: E-mail - Sorting version 1.6...\n',0);
	ShowText('  Initialising: Internet - FTP Server version 1.6...\n',0);
	ShowText('  Initialising: File Server - Microsoft NetBIOS version 1.6...\n',0);
	ShowText('  Initialising: User - Management version 1.6...\n',0);
	ShowText('  No AppleTalk systems found! Disabling default AppleTalk services.\n',0);
	line_delay = 0;
	ShowText('Successfully Initialised the Better OfficeServer (http://192.168.1.13/config).\n',0);
	Sound("cubedone");
	ShowText('\n',0);
	ShowText('   (press ALT-F2 for detailed status,\n',0);
	ShowText('          ALT-F3 to F7 for login prompt,\n',0);
	ShowText('          ALT-F8 for log output)\n',0);
	Sleep(3000);
/*		ShowText('\n',0);
	Sound("webacc");
	d = 500;
	Sleep(2000);
	Sound("1");
	Sleep(d);
	Sound("9");
	Sleep(d);
	Sound("2");
	Sleep(d);
	Sound("dot");
	Sleep(d);
	Sound("1");
	Sleep(d);
	Sound("6");
	Sleep(d);
	Sound("8");
	Sleep(d);
	Sound("dot");
	Sleep(d);
	Sound("1");
	Sleep(d);
	Sound("dot");
	Sleep(d);
	Sound("1");
	Sleep(d);
	Sound("3");
	Sleep(d);
	Sound("slshconf");
	Sleep(2000); */
	if (!Simulate('As quickly as we said, we\'re done the software installation. The next step is\n'
				 +'configuration which is also very easy. You\'d use your web browser to access the\n'
			     +'system by entering the indicated address (192.168.1.13 in this case). Then you would\n'
				 +'be prompted for registration information and internet access information such as\n'
				 +'the phone number and the login user ID to use.\n\n'
				 +'For the demo, we\'ll skip those steps and go directly to a live system that you can\n'
				 +'navigate around.\n\n'
				 +'Enjoy!\n\n'))
		return;
	window.open('http://nos.newlix-sys.com/config','config');
}
