// Konami Easteregg
var key = []; // array of cliked keys
var konami = "38,38,40,40,37,39,37,39,66,65"; // the konami code
window.addEventListener("keydown", listen, true);

function listen(e) {
	key.push(e.keyCode); // Push the keycode to the key-array

	if (key.toString().indexOf(konami) >= 0) {
		// Konami code entered
		konamiMove(-200);
		key = []; // Clean up the keys array
	}
}


function konamiMove(y) {
	y += 5;
	var ohma = document.getElementById("ohma");
	if (y < window.screen.width + 50) {
		// Recursive
		ohma.style.left = y+"px";
		ohma.style.display = "block";
		window.setTimeout("konamiMove("+y+")", 5);
	} else {
		// End
		ohma.style.display = "none";
		ohma.style.left = "-200px";
	}
}

