(function($) {

	$.fn.konami = function(callback, code) {
		if(code == undefined) code = "38,38,40,40,37,39,37,39,66,65";
		
		return this.each(function() {
			var kkeys = [];
			$(this).keydown(function(e){
				kkeys.push( e.keyCode );
				if ( kkeys.toString().indexOf( code ) >= 0 ){
					$(this).unbind('keydown', arguments.callee);
					callback(e);
				}
			}, true);
		});
	}

})(jQuery);
/* http://www.gethifi.com/blog/konami-code-jquery-plugin-pointlessly-easy */


function poncho_gunfire()
{ 
	var logo_holes = document.createElement('img');
	logo_holes.setAttribute('src', '/images/stumbling_poncho_logo_bullet_holes.png');
	logo_holes.setAttribute('src', '/images/stumbling_poncho_title_bullet_holes.png');
	
	var sound = document.createElement('audio');
	sound.setAttribute('src', '/multimedia/30cal5.wav');
	sound.load();
	setTimeout(function(){
		$("#header_logo").attr("src", "/images/stumbling_poncho_logo_bullet_holes.png");
		$("#header_title a").css("background-image", "url('/images/stumbling_poncho_title_bullet_holes.png')");
	}, 2000);
	sound.play();
}