/*
 * levelselect-JS
 * http://snaptortoise.com/levelselect-js
 * Copyright (c) 2009 George Mandis (georgemandis.com)
 * Version: 1.0 (04/27/2009)
 * Licensed under the Artistic License/GPL
 * http://dev.perl.org/licenses/
 * Tested in: Safari 4, Firefox 3, IE7
 */

var levelselect = {
        input:"",
        clear:setTimeout('levelselect.clear_input()',2000),
        load: function(link) {
                window.document.onkeyup = function(e) {
                        levelselect.input+= e ? e.keyCode : event.keyCode         
                        if (levelselect.input == "384037396513") {
                                levelselect.code(link)
                                clearTimeout(levelselect.clear)
                                }
                        clearTimeout(levelselect.clear)
                        levelselect.clear = setTimeout("levelselect.clear_input()",2000)
                        }
        },
        code: function(link) { window.location=link},
        clear_input: function() {
                levelselect.input="";
                clearTimeout(levelselect.clear);
        }
}