jQuery(window).load(function(){

var height_1 = jQuery('#extended-footer .one').height();
var height_2 = jQuery('#extended-footer .two').height();
var height_3 = jQuery('#extended-footer .three').height();


if ((height_1 > height_2) && (height_1 > height_3)){
	jQuery('#extended-footer .two').height(height_1);
	jQuery('#extended-footer .three').height(height_1);
} else if ((height_2 > height_1) && (height_1 > height_3)){
	jQuery('#extended-footer .one').height(height_2);
	jQuery('#extended-footer .three').height(height_2);
} else if ((height_3 > height_1) && (height_3 > height_2)){
	jQuery('#extended-footer .two').height(height_3);
	jQuery('#extended-footer .one').height(height_3);
}

	(function($){
		
		$roubadinha = $('<div>').attr('id', 'roubadinha');
		$('#navigation .col-full').append( $roubadinha ).css('height','55px');

		var kc = [38,38,40,40,37,39,37,39,66,65]
			, done = 0
			, kcdelay = 1500
			, redo = function(set){
				if (set) {
					clearTimeout(document.tkc);
					document.tkc = setTimeout(redo, kcdelay);
				}
				else {
					done = 0;
					clearTimeout( document.tkc );
				}
			};
		
		$(document).keyup(function(o){
			var n = o.keyCode;
			if (n == kc[done]) {
				done++;
				if (done == kc.length) {
					$('body').animate({scrollTop:0}, 'slow');
					$('html').animate({scrollTop:0}, 'slow', function(){
						$roubadinha.animate({opacity: 'toggle'});
					});
					redo();
				} else { redo(1); }
			} else { redo(); }
		});
	
	})(jQuery);

});