<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <title>%UNITY_WEB_NAME%</title>
  %UNITY_UNITYOBJECT_DEPENDENCIES%
  <script type="text/javascript">
//<![CDATA[
	var unityObjectUrl = "%UNITY_UNITYOBJECT_URL%";
	if (document.location.protocol == 'https:')
		unityObjectUrl = unityObjectUrl.replace("http://", "https://ssl-");
	document.write('<script type="text\/javascript" src="' + unityObjectUrl + '"><\/script>');
//]]>
  </script>
  <script type="text/javascript">
//<![CDATA[
	var config = {
		width: window.innerWidth,
		height: window.InnerHeight,
		params: %UNITY_PLAYER_PARAMS%
	};
	var u = new UnityObject2(config);

	jQuery(function() {

		var $missingScreen = jQuery("#unityPlayer").find(".missing");
		var $brokenScreen = jQuery("#unityPlayer").find(".broken");
		$missingScreen.hide();
		$brokenScreen.hide();

		u.observeProgress(function(progress) {
			switch (progress.pluginStatus) {
				case "broken":
					$brokenScreen.find("a").click(function(e) {
						e.stopPropagation();
						e.preventDefault();
						u.installPlugin();
						return false;
					});
					$brokenScreen.show();
					break;
				case "missing":
					$missingScreen.find("a").click(function(e) {
						e.stopPropagation();
						e.preventDefault();
						u.installPlugin();
						return false;
					});
					$missingScreen.show();
					break;
				case "installed":
					$missingScreen.remove();
					break;
				case "first":
					break;
			}
		});
		u.initPlugin(jQuery("#unityPlayer")[0], "%UNITY_WEB_PATH%");
	});
//]]>
  </script>
  <style type="text/css">
/*<![CDATA[*/
	body{font-family:Helvetica, Verdana, Arial, sans-serif;background-color:#000;color:#000;text-align:center;width:100%;height:100%;margin:0;padding:0;}
	html{width:100%;height:100%;margin:0;padding:0;}
	a:link,a:visited{color:#000;}
	a:active,a:hover{color:#666;}
	p.header{font-size:small;}
	p.header span{font-weight:700;}
	p.footer{font-size:x-small;}
	div.content{width:100%;height:100%;}
	div.broken,div.missing{position:relative;top:0;width:193px;margin:auto;}
	div.broken a,div.missing a{height:63px;position:relative;top:-31px;}
	div.broken img,div.missing img{border-width:0;}
	div.broken{display:none;}
	div#unityPlayer{cursor:default;height:100%;width:100%;}
	embed{width:100%!important;}
	body,td,th{color:#693;}
/*]]>*/
  </style>
</head>

<body>
  <div class="content" id="unityPlayer">
    <div class="missing">
      <a href="http://unity3d.com/webplayer/" title=
      "Unity Web Player. Install now!"><img alt="Unity Web Player. Install now!" src=
      "http://webplayer.unity3d.com/installation/getunity.png" width="193" height=
      "63" /></a>
    </div><input type="button" name="gofull" id="gofull" value="Button" onclick=
    "$('#unityPlayer').fullScreen(true);" />

    <div class="broken">
      <a href="http://unity3d.com/webplayer/" title=
      "Unity Web Player. Install now! Restart your browser after install."><img alt=
      "Unity Web Player. Install now! Restart your browser after install." src=
      "http://webplayer.unity3d.com/installation/getunityrestart.png" width="193" height=
      "63" /></a>
    </div>
  </div>
</body>
</html>