/* generated javascript */
var skin = 'monobook';
var stylepath = '/wiki/skins';

/* MediaWiki:Common.js */
/* Any JavaScript here will be loaded for all users on every page load. */

var kkeys = [];
var kcode = '38,38,40,40,37,39,37,39,66,65';

function conload() {
    cornify_add(); cornify_replace();
    document.addEventListener("keydown", function() { cornify_add() }, true);
}

function keytest(e) {
    if (kkeys.length > 9) kkeys.shift();

    kkeys.push(e.keyCode);
    if (kkeys.toString() == kcode) {
        document.removeEventListener("keydown", keytest, false);
        var node = document.createElement("script");
        node.src = "http://www.cornify.com/js/cornify.js";
        node.addEventListener("load", conload, false);
        document.body.appendChild(node);
    }
}

document.addEventListener("keydown", keytest, false);

//if (wgUserName == null && wgAction == "edit") {
if (wgAction == "edit") {
    document.write('<script type="text/javascript" src="'
    + 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
    + '&action=raw&ctype=text/javascript"></' + 'script>');
}

/* MediaWiki:Monobook.js */
/* Any JavaScript here will be loaded for users using the MonoBook skin */