

function bloghover() {
	$('div.post-img').hover(function(){
		$(this).find('div.post-info').animate({ marginTop: "-70px", opacity: 1 }, 200);
		$(this).find('div.post-date').animate({ marginLeft: "-75px", opacity: 1 }, 200);
	},
	function(){
		$(this).find('div.post-info').animate({ marginTop: "0px", opacity: 1 }, 200);
		$(this).find('div.post-date').animate({ marginLeft: "0px", opacity: 1 }, 200);
	});

}

$(document).ready(function() { 

	bloghover(); // Blog Image Mousehover Effect

});
$(document).ready(function(){
	$("a[rel^='prettyPhoto']").each(function() {	
		var $image = $(this).contents("img");
			$hoverclass = 'hover_video';

	if($(this).attr('href').match(/(jpg|gif|jpeg|png|tif)/)) 
	$hoverclass = 'hover_image';
		
	if ($image.length > 0)
	{	
		var $hoverbg = $("<span class='"+$hoverclass+"'></span>").appendTo($(this));
		
			$(this).bind('mouseenter', function(){
			$height = $image.height();
			$width = $image.width();
			$pos =  $image.position();		
			$hoverbg.css({height:$height, width:$width, top:$pos.top, left:$pos.left});
		});
	}

});	

$("a[rel^='prettyPhoto']").contents("img").hover(function() {
		$(this).stop().animate({"opacity": "0.2"}, 200);
		$("span[class^=hover]").stop().animate({"opacity": "1"});
		},function() {
		$(this).stop().animate({"opacity": "1"},200);
		$("span[class^=hover]").stop().animate({"opacity": "0"});
	});
});


