/* for simple digg style voting */
function simple_voteUp(item_id, type)
{
	simple_vote(1, item_id, type);

}

function simple_voteDown(item_id, type)
{
	simple_vote(-1, item_id, type);
}

function simple_vote(score, item_id, type)
{
	$.getScript(URL+"votes/add/"+type+'/'+item_id+'/'+score);
}

/* for up down style voting */

function voteUp(item_id, type)
{
	vote(1, item_id, type);

}

function voteDown(item_id, type)
{
	vote(-1, item_id, type);
}

function vote(score, item_id, type)
{
	$.getScript(URL+"votes/add/"+type+'/'+item_id+'/'+score);

}