/**
 * Vote.js
 * - requires jQuery
 **/


/**
 * $(document).ready();	
 * - on DOM load, this function will remove the redirect portion of the HREF link, and will load the data in a mock-popup.
 * - only happends for js enabled users.
 **/
 /* 
 $(document).ready(function(){
	$('.voting-link').each(function(){
		$(this).attr('href',$(this).attr('href').split('&redirect')[0]);
		$(this).click(function(){
			$('#colorbox').ready(function(){
				$('#colorbox').addClass('small_colorbox');
				//setTimeout("$('#modalClose').click();$('#colorbox').removeClass('small_colorbox');",5000);
			});
		});
	});
	$('.voting-link').colorbox({iframe:true,initialWidth:'500',initialHeight:'200',fixedWidth:'500',fixedHeight:'200'});
 });
*/
 
 function updateVotes(recipe){
	$('#'+recipe+'-votes').text(parseInt($('#'+recipe+'-votes').text())+1);
 }
