$(document).ready(function(){
	
	
	
	$(".category_post .more-link span").each(function(index,element){
		
		var post_id = $(element).attr("post_id");		
		var url = $(element).parent().attr("href");
		$(element).parent().attr({href:"javascript:void"});
		
		
		
		$(element).click(function(){
			
			$(element).html("Bezig met laden...")
			
			$("#post_content_body_"+ post_id).load(url,{},function(){
				
				var height = $("#post_content_body_"+ post_id).height() + $("#post_content_body_"+ post_id).position().top +  $("#post_link_"+ post_id).height() + 10;
				if(height < 190){
					height = 190;	
				}
				
				$("#post_content_"+ post_id).height(190);
				$("#post_content_"+ post_id).animate({"height":height+"px"});
							
			})
		});
		
	});
	
	
		
	$(".category_about .more-link span").each(function(index,element){
		
		var post_id = $(element).attr("post_id");		
		var url = $(element).parent().attr("href");
		$(element).parent().attr({href:"javascript:void"});
		
		
		
		$(element).click(function(){
			
			$(element).html("Bezig met laden...")
			
			
			
				$("#post_content_body_"+ post_id).load(url,{},function(){
							
			})
		});
		
	});
	
		
	$(".category_agenda .more-link span").each(function(index,element){
		
		var post_id = $(element).attr("post_id");		
		var url = $(element).parent().attr("href");
		$(element).parent().attr({href:"javascript:void"});
		
		
		
		$(element).click(function(){
			
			$(element).html("Bezig met laden...")
			
			
			
				$("#post_content_body_"+ post_id).load(url,{},function(){
							
			})
		});
		
	});
	
});

function showHeader(id,item){
	
	
	
	
	$(".header_menu_sub_item").removeClass("active");
	$("#"+item).addClass("active");
	
	$("#header_content_cnt").animate({"top":((id)*-120)+"px"},"fast","swing");
	
	
	
	//return false;
}



