


	


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');
	});	
	
	
	var hauteur_totale = jQuery("#sidebar").height();
	if (jQuery("#main").height()< hauteur_totale )jQuery("#main").height(hauteur_totale);

	jQuery(".write-comm-container form input[type='file']").filestyle({ 
	     image: '/wordpress/wp-content/themes/dccv/images/bg-parcourir.png',
	     imageheight : 24,
	     imagewidth : 64,
	     width : 157
	 });
	 
	
			

})	
