function configurePollWidths(){
	$.each($('.pollList li'), function() { 
		var percentage = parseFloat($('.pollBar_bar_text', this).text());
		
		if (percentage == 0){
			$('.pollBar_left', this).css('width', 0);
			$('.pollBar_left .pollBar_bar', this).css('background-image', 'none');			
		}else{
			var total_width = 153;
			var min_width = 8;
			
			var scaled = (percentage/100) * (total_width -min_width);
			scaled += 8;		
			$('.pollBar_left', this).css('width', scaled);
		}
	});
}

$(document).ready(function(){
	configurePollWidths();
	
});


