/*$(function() {
	var loc = document.location + "";
	if (match = loc.match(/#(\d+)(?:_(.*))?$/)) {
		$("#content").hide();
		changePage(match[1], match[2])
	}
});

function changePage(num, id) {
	$("#content").load("/"+num+"/"+id+".html", {limit: 25}, function(){
		document.location = "#"+num+"_"+id;
		$("#content").show();
	});
	return false;
}*/

$(function() {
	var prev = $('#back-button').attr('href');
	var next = $('#next-button').attr('href');

	$(window).keydown(function(e){
		if (((e.ctrlKey && e.keyCode == 39) || (e.altKey && e.keyCode == 39)) && next) {
			window.location.href = next;
		} else if (((e.ctrlKey && e.keyCode == 37) || (e.altKey && e.keyCode == 37)) && prev) {
			window.location.href = prev;
		}
	});
});