Keyboard_navigation = function() {
	this.init();
}

Keyboard_navigation.prototype = {
	init: function() {
		$(document).keydown(
			function(e){
				/*
				  *  Добавляем навигацию с клавиатуры
				  */
				if(e.ctrlKey){
					var link = null;
					var href = null;
					switch (e.keyCode ? e.keyCode : e.which ? e.which : null){
						case 0x25:
							link = $('link[rel="prev"]');
							break;
						case 0x27:
							link = $('link[rel="next"]');
							break;
		        	    case 0x26:
							link = $('link[rel="up"]');
							break;
						case 0x28:
							link = $('link[rel="down"]');
							break;
						case 0x24:
							link = $('link[rel="start"]');
							break;
					}
					if (link && link.length) document.location = link[0].href;
					if (href) document.location = href;
				}
			}
		)
	}
}


$(function() {
	new Keyboard_navigation();
});