<!--
var width,height;
var image,ext;
var cond1,cond2;
function gameLink() {
width=580;
height=70;
if (width==0) cond1=" "
else cond1="width="+(width+20)+"";
if (height==0) {cond2=" "};
else {cond2="height="+(height+70)+""};
var myURL = location.href.substring(0,location.href.length-1);
if (location.href.indexOf('games')==-1) {
	var myGameName = "spikything games";
} else {
	var myGameName = "play "+myURL.substring(myURL.lastIndexOf('/')+1);
}
ClipBoard('<a href="'+location.href+'" target="_top">'+myGameName+'</a>','The HTML code has been copied to your clipboard! Just paste it into your site...\n\nPlease note: All content on this site is copyrighted. You may link to the games, but not through framing or popups. Stealing content or bandwidth from spikything.com (such as mirroring or framing content into another site, redistribution, decompilation, reverse-engineering or creating derivative works, without the prior written consent of the webmaster) breaches the site\'s terms and local/international copyright laws. Offenders will be prosecuted!');
}
function ClipBoard(myText,myPrompt) {
	holdtext.innerText = myText;
	Copied = holdtext.createTextRange();
	Copied.execCommand("Copy");
	alert(myPrompt);
}
function charity() {
	NewWindow('/text/charity.html','popup','646','410','no','no',true);
}
if (window.opener) {
	window.opener.location.href=location.href;
	top.close();
} else if (location.href.indexOf('www')==-1) {
	var ua = location.href.split('spikything');
	location.href= 'http://www.spikything'+ua[1];
}
rnd.today = new Date();
rnd.seed = rnd.today.getTime();
function rnd() {
	rnd.seed = (rnd.seed*9301+49297)%233280;
	return rnd.seed/233280.0;
}
function rand(number) {
	return Math.ceil(rnd()*number);
}
function randomGame() {
	var myURL = location.href.substring(0,location.href.length-1);
	var currentGame = myURL.substring(myURL.lastIndexOf('/')+1);
	var games = new Array();
	games = ["superbughunt","superbughunt","icarus","dnd","gravracer","crab-ball","chasm","kickups","assassin","gyrex","soopasprinta","spaceduel","marblemayhem","slimsimon","ninjaboy","nerdhunter","microblast","alieninvasion","uforally","i-robot","phixx","cutiequake","eggfighter","hauntedhouse","mindmebloodybeer","soccershowdown","lionshaka","carlingrace","mazdamania","superslalom","panasonicslalom","gillettefuzbal","vbpinball","blobs","beckhamacademy","ninjamouse","dunebuggy","fistofthedragon","weartheshirt","canonrebound","goldenboot","wormwhomper"];
	var myGame = currentGame;
	while (myGame==currentGame) myGame = games[rand(games.length)-1];
	location.href = "/games/"+myGame;
}
document.write('<font face="sans-serif" size="1"><a href="/games" title="More games here">Home</a> • <a href="javascript:charity();" title="Charitable causes, like The Hunger Site, The Rainforest Site and UNICEF">Help charities for free</a> • <a href="javascript:randomGame();" title="Play a random flash game now">Random Game</a> • <a href="http://www.cafepress.com/spikything" target="_blank" title="Support Spikything games at the official online store, buy flash games on CD, t-shirts and more...">SpikyShop</a> • <a href="javascript:bookmark(\'spikything games\');" title="Add Spikything flash games to your favourites...">Bookmark</a> • <a href="javascript:NewWindow(\'/text/privacypolicy.html\',\'popup\',\'770\',\'570\',\'no\',\'no\',true);" title="Spikything legal, terms, disclaimer and privacy policy">Terms</a> • <a href="javascript:NewWindow(\'/text/help.html\',\'popup\',\'790\',\'590\',\'no\',\'no\',true);" title="Need help playing the online flash games here?">Help</a> • <a href="javascript:gameLink();" title="Want to add free flash games to your site?">Add to your site</a><br><br>');
document.write('<TEXTAREA ID="holdtext" STYLE="display:none;"></TEXTAREA>');
//-->