Event.observe(document, 'dom:loaded', function(event) {
	$('show-comments').observe('click', function(event) {
		$('post-comments').show();
	});
	
	if ($('hide-comments')) {
		$('hide-comments').observe('click', function(event) {
			$('post-comments').hide();
		});
	}
	
	if ($('show-comment-form')) {
		$('show-comment-form').observe('click', function(event) {
			$('respond').show();
		});
	}
	
	$$('.comment-reply-link').each(function(link) {
		link.observe('click', function(event) {
			$('respond').show();
		});
	});
	
	new Validation('commentform');
});
