$(document).ready(function(){

  (function($) {
  	var konamiListeners = [];
	
  	var kode = [38, 38, 40, 40, 37, 39, 37, 39, 66, 65];
  	var progress = 0;

  	$.extend({
  		konami: function(listener, sequence) {
  			konamiListeners.push(listener);
			
  			if (sequence) kode = sequence;
  		}
  	});

  	$(document)
  		.bind("keyup", function(event) {
  			var c = event.keyCode;
			
  			if (c == kode[progress])
  				progress++;
  			else
  				progress = c == kode[0] ? 1 : 0;

  			if (progress == kode.length) {
  				if (konamiListeners.length > 0) {
  					$.each(konamiListeners, function(item) {
  						this();
  					});
  				}
  			}
  		});
  })(jQuery);
  
  $.konami(function() {
    $("body").fadeTo("fast", 0.5).fadeTo("fast", 0.8).fadeTo("fast", 0.3).animate({fontSize: "3em",}, "fast").fadeTo("fast", 1).animate({fontSize: "0em",}, "normal").fadeTo("fast", 0);    
    $("html").css('backgroundColor','black');    
  });

});