// jQuery

$(function() {
	
	$('.widget:last, .menu ul li a:last, ul.abandu-ads li:odd, .thumbs li:last, .footer-col:nth-child(4n)').addClass('last'); 
	
	// Hover effect in sidebar on list elemets without the <img> tag within
	$("#sidebar li:not(:has(img))").hover(function(){
		$(this).stop().animate({
			paddingLeft: "25px"
		}, 400);
	}, function() {
		$(this).stop().animate({
			paddingLeft: "15px"
		}, 400);
	});
	
	//prettyPhoto on all links with rel=prettyPhoto
	if ( jQuery().prettyPhoto )
		$("a[rel*='prettyPhoto']").prettyPhoto();
		
	
	/* 
	 * jQuery Plugin: "EqualHeights"
	 * by: Scott Jehl, Todd Parker, Maggie Costello Wachs (http://www.filamentgroup.com)
	 *
	*/
	
	$.fn.equalHeights = function(px) {
		$(this).each(function(){
			var currentTallest = 0;
			
			$(this).children().each(function(i) {
				if ( $(this).height() > currentTallest ) { currentTallest = $(this).height(); }
			});
			
			$(this).children().css({'min-height': currentTallest}); 
		});
		return this;
	};
	
	$('#footer-cols').equalHeights();

});
