// JavaScript Document
//jQuery.noConflict();

$(document).ready(function(){

    $(".freshindex").hover(function () {
   			$(this).removeClass('inaktivfresh').addClass('aktivfresh');	
			$(this).find('.freshmask').removeClass('hidden');	
			$(this).find('h2').addClass('white')			
  			},function () {
  			$(this).removeClass('aktivfresh').addClass('inaktivfresh');		  
			$(this).find('.freshmask').addClass('hidden');
			$(this).find('h2').removeClass('white');
		  });
		  
		  $(".indexpostbox").hover(function () {
   			$(this).removeClass('inaktivpostbox').addClass('aktivpostbox');	
			$(this).find('.boxmask').removeClass('hidden');				
  			},function () {
  			$(this).removeClass('aktivpostbox').addClass('inaktivpostbox');		  
			$(this).find('.boxmask').addClass('hidden');
		  });

		  $(".share").hover(function () {   			
			$(this).find('.sharebox').fadeIn();				
  			},function () {
  			$(this).find('.sharebox').fadeOut();	
		  });
		  
		  
		// set opacity to nill on page load
		$(".withhovereffect span:first-child").css("opacity","0");
		// on mouse over
		$(".withhovereffect span:first-child").hover(function () {
			// animate opacity to full
			$(this).stop().animate({
				opacity: 1
			}, "slow");
		},
		// on mouse out
		function () {
			// animate opacity to nill
			$(this).stop().animate({
				opacity: 0
			}, "slow");
		});
});


	
	

