$(document).ready(init);

	function init() {
		var h = 540;
		img_h = $(".article img").height();
		mtop = ( h - img_h ) / 2;
		$(".article img").css({ marginTop: mtop + 'px'})
		if( $("div.pages .left a").get(0) ) {
			$(window).keyup( function(e) { if( e.keyCode == 37 ) { $("div.pages .left a").addClass('active'); location.href = $("div.pages .left a").attr('href') } } );
		}
		if( $("div.pages .right a").get(0) ) {
			$(window).keyup( function(e) { if( e.keyCode == 39 ) { $("div.pages .right a").addClass('active'); location.href = $("div.pages .right a").attr('href') } } );
		}
	}

