$(document).ready(function() {
	    
  /* rollover first post */
  $('.firstpost').mouseover(function(){
		$(this).css("background","#fefefe");
  });
  $('.firstpost').mouseout(function(){
		$(this).css("background","transparent");
	});  
  /* rollover blogposts */
  $('.blogpost').mouseover(function(){
		$(this).css("background","#fefefe");
  });
  $('.blogpost').mouseout(function(){
		$(this).css("background","transparent");
	});  
	
	/* next / prev buttons */
	$('#nextpost a').hover(function() {
                $('img', this).stop().animate({ opacity: 1 }, 300);
            },
          	function() {
               $('img', this).stop().animate({ opacity: 0.5 }, 500);
           });
    $('#prevpost a').hover(function() {
                $('img', this).stop().animate({ opacity: 1 }, 300);
            },
          	function() {
               $('img', this).stop().animate({ opacity: 0.5 }, 500);
           });
    
});
