// jQuery

$(function(){
	
	$('ul.abandu-ads li:odd').addClass('odd') // Add the odd class to every 2nd banner
	
	$('.widget:last').css('border-bottom', 'none') // Remove the border on the last sidebar widget
	$('.related-posts-thumbs li:last').css('margin-right', '0') // Remove the right margin on the last related post thumbnail
	
	
	$('#fabulous_posts').cycle({
				fx: 'fade',
    			timeout: 10000, 
			    next:   '#next2', 
			    prev:   '#prev2' 
			});
	
	
	// 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);
	});
	
	// Add the current class to the menu parent when it have children and you rollover it 
	
	$("ul#menu li:has(ul)").hover(function(){
		$(this).addClass('current')
		
	}, function() {
		$(this).removeClass('current')
	});
	
});
