<iframe id="statFrame" style="width: 100%; height: 700px;" src="" width="300" height="150"></iframe>
<script type="text/javascript">
var baseDomain = 'idealescape';
var $_GET = {};
document.location.search.replace(/\??(?:([^=]+)=([^&]*)&?)/g, function () {
function decode(s) {
return decodeURIComponent(s.split("+").join(" "));
}
$_GET[decode(arguments[1])] = decode(arguments[2]);
});
if ($_GET['game']) {
document.getElementById('statFrame').src = 'http://' + baseDomain + '.escapegamesglobalsites.com/site/stats/viewGame/' + $_GET['game'];
} else if ($_GET['player']) {
document.getElementById('statFrame').src = 'http://' + baseDomain + '.escapegamesglobalsites.com/site/stats/viewPlayer/' + $_GET['player'];
} else if ($_GET['leaderboard']) {
document.getElementById('statFrame').src = 'http://' + baseDomain + '.escapegamesglobalsites.com/site/stats';
} else if ($_GET['newGames']) {
document.getElementById('statFrame').src = 'http://' + baseDomain + '.escapegamesglobalsites.com/site/stats/recentGames';
} else if ($_GET['newPlayers']) {
document.getElementById('statFrame').src = 'http://' + baseDomain + '.escapegamesglobalsites.com/site/stats/newUsers';
} else {
document.getElementById('statFrame').src = 'http://' + baseDomain + '.escapegamesglobalsites.com/site/stats/recentGames';
}
</script>