jQuery(document).ready(function(){
	var fade_arr = ['#header', '#slideshow', '#workthumbs'];
	for(var i=0; i<fade_arr.length; i++)
	{
		jQuery('#work '+fade_arr[i]).fadeTo(0,0);
	}
});
if (window.addEventListener) {
    // create the keys and konami variables
    var keys = [],
    konami = "38,38,40,40,37,39,37,39,66,65";
     // bind the keydown event
    window.addEventListener("keydown", function(e){
        // push the keycode to the 'keys' array
        keys.push(e.keyCode);
        // check to see if the user has entered the Konami code
        if (keys.toString().indexOf(konami) >= 0) {
 			 jQuery("#paper").fadeOut("fast", function() 
 			 {
 			 	jQuery("#inthepicture #description").addClass("konami");
            	jQuery(this).fadeIn("slow").addClass("swap");
        	});
 			// clean up
			keys = [];
        };
    }, true);
};
