<?php

$flashstuff = '';

$swf_name = isset($_GET['swf']) ? $_GET['swf'] : false;

if ($swf_name) {

	$swf_path = "oldversions/" . $swf_name . ".swf";

	if (file_exists($swf_path)) {

		$flashstuff = '
<div id="fwrapper"> <!-- extra div so IE can centre the game without a doctype at the top -->
	<div id="flashcontent">
        <strong>No Flash player? Maybe you would like the mobile site: <a href="http://m.gnarshmallow.com">m.gnarshmallow.com</a></strong></div>
</div>

	<script type="text/javascript">

		swfobject.embedSWF("' . $swf_path . '", "flashcontent", "100%", "100%", "9");

	</script>

';
			}
}

?>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Gnarshmallow Archive - old versions and junk</title>
<meta id="viewport" name="viewport" content="width=device-width,initial-scale=1">
<script type="text/javascript" src="js/swfobject.js"></script>

<style>

	body {
	    margin: 2em;
	    font: 1em/2 arial, sans-serif;
		background-color:#fff;
	}

	#content {
		max-width:750px;
		margin:auto;
	}

	#fwrapper {
		text-align:center;
	}

	#flashcontent {
		border: solid 1px #888;
		height:550px;
		text-align:center;
		margin:auto;
	}

	.legal {
		text-align:center;
	}

</style>
</head>

<body>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker2 = _gat._getTracker("UA-169676-7");
pageTracker2._initData();
pageTracker2._trackPageview();
</script>


<div id="content">

<h1>Gnarshmallow Archives</h1>

<p>Here be old versions of Flash Ski Game and Gnarshmallow, including the first released version. Enjoy!</p>

<?php echo $flashstuff ?>

<ul>
<li><a href="?swf=Project-June11">June 11, 2008</a></li>
<li><a href="?swf=Project-June13">June 13, 2008</a></li>
<li><a href="?swf=Project-June19">June 19, 2008</a></li>
<li><a href="?swf=Project-July2">July 2, 2008</a></li>
<li><a href="?swf=Project-July17">July 17, 2008</a></li>
</ul>

<p><a href="http://www.gnarshmallow.com"><<< Back the newest version</a></p>

<hr>

<p class="legal">&copy; 2008 imakewebsites.ca</p>
</div>
</body>
</html>
