/**
 * @author Christopher Wallace
 */

jQuery(window).load(function(){

  // The magic sliding panels
	jQuery('.entry-content .slide-a span.slide-title').css({
		opacity : '0.0'
	});
	jQuery('.entry-content .slide-a').mouseover(function(e){
      jQuery(this).find('img.thumbnail').stop().animate({
	  	marginTop : '-25px'
	  }, 100);
	  jQuery(this).find('span.slide-title').stop().fadeTo("slow",1.0);
	});
	jQuery('.entry-content .slide-a').mouseout(function(e){
      jQuery(this).find('img.thumbnail').stop().animate({
	  	marginTop : '0'
	  }, 100);
	  jQuery(this).find('span.slide-title').stop().fadeTo("slow",0.0);
	});
    
  jQuery('#footer .widgetcontainer:nth-child(3n+1)').addClass('reset');
  jQuery('.ie6 #footer .widgetcontainer:nth-child(3n+1),.ie7 #footer .widgetcontainer:nth-child(3n+1)').css({
    clear : 'left'
  });

});


/* MOVEABLE LINKS
--------------------------------------------------*/

jQuery(function(){
	
	jQuery("#category-nav li.cat-item a").hover(function(){
		jQuery(this).stop().animate({
			paddingLeft: "20px",
			color: "ffffff"
		}, 200);
	}, function(){
		jQuery(this).stop().animate({
			paddingLeft: "0px"
		}, 200);
		jQuery(this).css({'background-image' : 'none' });
	});
		
});

jQuery(function(){
	
	jQuery("#category-nav li.page_item").hover(function(){
		jQuery(this).stop().animate({
			paddingLeft: "20px"
		}, 200);
	}, function(){
		jQuery(this).stop().animate({
			paddingLeft: "0px"
		}, 200);
		jQuery(this).css({'background-image' : 'none' });
	});
		
});



/* FIND current-cat
--------------------------------------------------*/

jQuery(function(){
	
	jQuery("#category-nav li.current-cat a").css({
		color : "#E6E6E6",
		
	});
		
});
