$(document).ready(function() {
	var numOfComments = $('#comments .comment');

	$('a.fancybox').fancybox();
	
	$('#comment_form').validate({
		errorContainer: $("#error-container"),
		errorLabelContainer:$("#error-container ul"),
		wrapper: 'li',
		onkeyup: true
	});
	
	$('#contact_form').validate({
		errorContainer: $("#error-container"),
		errorLabelContainer:$("#error-container ul"),
		wrapper: 'li',
		onkeyup: true
	}); 
	
	//$('.reply').each(function(){
	//	$(this).click(function(){
	//		var theComment = $(this).parent().parent('.comment-content').children('.comment-body').html();
	//		var theAuthor = $(this).siblings('.comment-author').text();
	//		// Need to strip the blockquote tags from theComment
	//		theComment = "\n<em>" + theAuthor + " said:</em>\n<blockquote>" + theComment + "</blockquote>\n\n";
	//		theVal = $('#comment').val();
	//		$('#comment').val(theVal + theComment);
	//	});
	//});
	//$('#comment').keyup(function(){
	//	comment = $('#comment').val();
	//	
	//	
	//	if ($('.preview').size() != 0) {
	//		$('.preview .comment-body').html(comment);
	//	}
	//	else
	//	{
	//		$('.comment:last').after("<div class='comment preview'><div class='avatar-holder'><img src='/themes/site_themes/default/images/blank-avatar.png' class='avatar' /></div><div class='comment-content'><p class='post-meta'><span class='comment-author'>You</span> <span class='date'>Now</span> </p><div class='comment-body'>" + comment + "</div></div></div>");
	//	};
		
	//});
});