	var postCommentDeleteConfirmationPopup = null;

	function showPostCommentReplyButton(id)
	{
		var x = jQuery('#postCommentReplyButton_' + id);
		if (jQuery(x).css('display') == 'none')
			jQuery(x).show('fast');
	}
	
	function hidePostCommentReplyButton(id)
	{		
		setTimeout("hidePostCommentElem('" + id + "')",3500);
	}
	
	function hidePostCommentElem(id)
	{
		var x = jQuery('#postCommentReplyButton_' + id);
		if ( jQuery(x).css('display') != 'none' )
			jQuery(x).hide('fast');	
	}
	
	function showPostCommentReplyToBox(id)
	{
		var parentCommentDiv = jQuery('#postComment_' + id);
		var createCommentDiv = jQuery('#postCommentCreateDiv');
		
		jQuery('#childs_' + id).hide('slow');
		
		jQuery('#postParentId').val('' + id);
		
		jQuery(createCommentDiv).hide('fast');
		jQuery('#postCommentShowCreateDiv').show('fast');
		parentCommentDiv.append(createCommentDiv);
		jQuery(createCommentDiv).show('slow');
	}
	
	function showPostCommentReplyBox()
	{
		jQuery('#postParentId').val('');
		if (jQuery('#postCommentCreateDivHolder > div').length == 0)
		{
			jQuery('#postCommentCreateDiv').hide('fast');
			jQuery('#postCommentCreateDivHolder').append(jQuery('#postCommentCreateDiv'));
		}
		jQuery('#postCommentCreateDiv').show('slow');
		jQuery('#postCommentShowCreateDiv').hide('slow');
	}
	
	function hidePostCommentReplyBox()
	{
		jQuery('#postParentId').val('');
		jQuery('#postCommentCreateDiv').hide('slow');
		jQuery('#postCommentShowCreateDiv').show('slow');		
	}
	
	function toggleCommentChilds(parentId)
	{
		var childDiv = jQuery('#childs_' + parentId);
		if ( jQuery(childDiv).css('display') == 'none')
			jQuery(childDiv).show('slow');
		else 
			jQuery(childDiv).hide('slow');
	}
