(function(jQuery) {
    jQuery.fn.upUpDownDown = function(o){
        var options = jQuery.extend({
                                        watchFor : [38,38,40,40,37,39,37,39,66,65],
                                        callback : function() { }
                                    }, o);
        
        var key_accum = [];
        var match = options.watchFor;
 
        $(document).keyup(function(e){
            len = key_accum.push(e.keyCode ? e.keyCode : e.charCode);
            
            if(len > match.length) key_accum.shift();
            
            if (key_accum.join('-') == match.join('-'))
            {
                key_accum = [];
                if (options.callback)
                {
                    options.callback($(this));
                }
            }
        });
    }
})(jQuery);




$(document).ready(function(){


	$('body').upUpDownDown({
		watchFor: [38,38,40,40,37,39,37,39,66,65],
		callback: function(){
				$('body').append('<img src="/images/special/k.png" alt="" style="position:fixed; bottom:-1275px; left:0; " class="kcode" />');
				$('.kcode').stop()
					.animate({ bottom : -190 ,left : 0 },200)
					.animate({ bottom : -200 ,left : 50 },200)
					.animate({ bottom : -190 ,left :  100 },200)
					.animate({ bottom : -200 ,left :  150 },200)
					.animate({ bottom : -190 ,left :  200 },200)
					.animate({ bottom : -200 ,left :  250 },200)
					.animate({ bottom : -190 ,left :  300 },200)
					.animate({ bottom : -200 ,left : 350 },200)
					.animate({ bottom : -190 ,left :  400 },200)					
					.animate({ bottom : -200 ,left : 450 },200)
					.animate({ bottom : -190 ,left :  500 },200)					
					.animate({ bottom : -200 ,left : 550 },200)
					.animate({ bottom : -190 ,left :  600 },200)					
					.animate({ bottom : -200 ,left : 650 },200)
					.animate({ bottom : -190 ,left :  700 },200)					
					.animate({ bottom : -200 ,left : 750 },200)
					.animate({ bottom : -190 ,left :  800 },200)
					.animate({  bottom : -1275 ,left : 900},600, 
																													  
					  function(){
						  
							$(this).remove();
						  
						  });
		}
	});
});