/**
 * @author Christopher Wallace
 */
 
$ = jQuery;

(function($) {

	$(window).load(function(){
	
		// Lazy Load images below the fold
		$(".not-singular #content img").lazyload({
			effect : "fadeIn",
			threshhold: 300
		}); 
	
		// The magic sliding panels
		/* $('.entry-content a span.slide-title').css({
			opacity : '0.0'
		}).parent('a').append('<span class="cover-up"></span>');
		$('.entry-content a').mouseover(function(e){
				$(this).find('img.thumbnail').stop().animate({
				marginTop : '-25px'
			}, 100).parent('a').find('span.slide-title').stop().fadeTo("slow",1.0);
		});
		$('.entry-content a').mouseout(function(e){
				$(this).find('img.thumbnail').stop().animate({
				marginTop : '0'
			}, 100).parent('a').find('span.slide-title').stop().fadeTo("slow",0.0);
		}); */
		
		// Comment Author URL hover effect
		$('.comment-author a.url').mouseover(function(e){
			var url = $(this).attr('href');
		$(this).parent('span').append('<span class="hover-url">'+url+'</span>');
		})
		$('.comment-author a.url').mouseout(function(e){
		$(this).parent('span').find('.hover-url').remove();
		})
		
		$('#footer .widgetcontainer:nth-child(3n+1)').addClass('reset');
		$('.ie6 #footer .widgetcontainer:nth-child(3n+1),.ie7 #footer .widgetcontainer:nth-child(3n+1)').css({
			clear : 'left'
		});
			
	});

})(jQuery);