/**
 * registers a deal vote, update screen
 */
function dealVote(id, positive)
{
	// update score display
	ele = $('#' + 'deal_score_' + id);
    currentScore = parseInt(ele.html());
    if (positive) {
    	currentScore++;
    } else {
    	currentScore--;
    }
    ele.html(currentScore);
    
    // hide voting interface for this deal
    ele = $('#' + 'deal_voting_' + id);
    ele.fadeOut("slow");

  	// send AJAX request					
	$.get('deals_vote_handler.php',
		  {
		  id: id,
		  positive: positive
		  },
		  void(0));
}