$(function() {	
	$(document).keydown(function(e) {
		var $prev = $('.nav .prev a');
		var $next = $('.nav .next a');
		
		if(e.which == 37) {
			// PREVIOUS
			if($prev.length) {
				location.href=$prev.attr('href') + "#image";
			}
		} else if(e.which == 39) {
			// NEXT
			if($next.length) {
				location.href=$next.attr('href') + "#image";
			}
		}
	})
})