function dccv_comment_answer(j){      
    var comment = jQuery("#comment-"+j).html();
    
    jQuery("#writecomm .preview-comment .preview-content .content").html(comment);
    jQuery("#writecomm .preview-comment .preview-content .content .repondre").hide();
    jQuery("#writecomm .preview-content .content .reply").hide();
    jQuery('#comment_parent').val(j);
    jQuery("#writecomm .preview-comment").show();
}	

function dccv_share(j){
	if (jQuery("#post-share-"+j).css('display') == 'none') {
	jQuery("#post-"+j+" .post-utils").css("margin-bottom","5px");
	jQuery("#post-share-"+j).slideDown("fast");    
	} 
	else 
	{	
	jQuery("#post-share-"+j).slideUp("fast");
	//setTimeout(jQuery("#post-"+j+" .post-utils").css("margin-bottom","15px"),1000);	
	}
}


jQuery(document).ready(function(){
	jQuery('#more-comm').click(function(ev){
		ev.preventDefault;
		jQuery('#more-comm').unbind('click',ev);
		jQuery('#commentlist li.display-none').show();
		jQuery('#more-comm').hide();	
	});	
	
	jQuery('#cancel-comment').click(function(){
		jQuery("#writecomm .preview-comment").hide();
		jQuery('#comment_parent').val('0');
	});	
	jQuery("a#all-medias").click(function(){
		jQuery("a.medias-img:first-child").trigger("click");
	});
	
})	
