$(document).ready(function(){
	$('body').animate({ backgroundColor: "#FEE413" }, 1500)
	$('.leadin').css('display','none');
 	$('.submit-post').attr("value", "POST COMMENT");

	$('#next').show("slide", { direction: "right" }, 500);
	$('#previous').show("slide", { direction: "left" }, 500);
	

	$('#next').click(function(){
		$(this).hide("slide", { direction: "right" }, 500);
		$('#previous').hide("slide", { direction: "left" }, 500);
		$('#entry').fadeOut();
		$('body').animate({ backgroundColor: "white" }, 1500)
		window.location = $(this).attr("url");
		return false;
	    });
	$('#previous').click(function(){
		$(this).hide("slide", { direction: "left" }, 500);
		$('#next').hide("slide", { direction: "right" }, 500);
		$('#entry').fadeOut();
		$('body').animate({ backgroundColor: "white" }, 1500)
		window.location = $(this).attr("url");
		return false;
	    });
	
	$('#entry h2').click(function(){
		window.location = $(this).attr("url");
	    });

 
	$('#entrylink').click(function(){
		if ( $('.leadin').css("display") == "none") {
		    //		    $('#less').hide("slide", { direction: "down" }, "fast");
		    $('.leadin').show("slide", { direction: "up" }, "fast");
		} else {
		    $('.leadin').hide("slide", { direction: "up" }, "fast");
		    //		    $('#less').show("slide", { direction: "down" }, "fast");
		}
	    });
	
	
	

    });