<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="application/xhtml+xml;charset=utf-8"/>
	<title>TPS Report Status</title>

	<link rel="stylesheet" href="/nes.css" type="text/css" media="all"/>

	<script type="text/javascript"></script>
</head>

<body>

	<div id="master">

<?php if ($_GET['rom']) { ?>

	<applet name="vNES" code="vNES.class" archive="/java/vnes203.jar" width="512" height="480">
		<param name="sound" value="on" />
		<param name="timeemulation" value="on"/ >
		<param name="fps" value="off" />
		<param name="stereo" value="off" />
		<param name="rom" value="<?php echo '../roms/' . $_GET['rom'] . '.nes'; ?>" />
		<param name="showsoundbuffer" value="off" />
		<param name="scale" value="on" />
		<param name="scanlines" value="off" />
		<param name="nicesound" value="on" />
		<param name="romsize" value="<?php echo filesize('../roms/' . $_GET['rom'] . '.nes'); ?>" />
	</applet>

	<div id="controls">
		<img src="/images/nes-controls.png" alt="NES controls"/>
	</div>

<?php } else { ?>
		<p>Nothing to see here. Move along.</p>
<?php }; ?>
	</div>

</body>
</html>
