Cufon.replace('#head ul li, #head form label a, #meta ul li, h2, h3, p.intro, label, p.listnumber, p.back, div.register li',{autoDetect: true});

function vote(id, voting){

	$.ajax({
	    url: '?eID=voting',
		data: {
			id: id,
			voting: voting
		},
	    dataType: 'json',
	    success: function(data) {
			$('#voting').width(Math.round((140 / 5 * data.voting / data.votingcount) / 7) * 7);
	    	$('#votingcount').text(data.votingcount);
	    	$('#votingaverage').text((Math.round((data.voting / data.votingcount)*10)/10).toFixed(1));
			if (data.error != undefined) $('#votingerror').text(' Sie haben bereits bewertet!');
		}
	});
}

