jQuery(function(){
	jQuery('.commentup, .commentdown').click(function(){
		var element = jQuery(this);
		var action = jQuery(this).hasClass('commentup') ? 'up' : 'down';
		jQuery.post('http://www.brantnews.com/processing/thumbAction.cfm', { 'comment': jQuery(element).attr('alt'), 'action':action }, function(data){			
			 jQuery('.commentup[alt=' + jQuery(element).attr('alt') + '], .commentdown[alt=' + jQuery(element).attr('alt') + ']').unbind('click');
			jQuery('.comment' + jQuery(element).attr('alt') + action).text(Number(jQuery('.comment' + jQuery(element).attr('alt') + action).text()) + 1);
		});
	});
});
