$(document).ready(function(){
	/*
	$("#stars-wrapper1").stars({ 
		//captionEl: $("#stars-wrapper1-cap"), 
		inputType: "select", 
		oneVoteOnly: true,
		callback: function(ui, type, value, thingID){
			$.get('/ajax/thing/rate/?thingID='+ $('#thingID').attr('value') +'&vote='+ value, function(data){
				$("#stars-thanks").html('Thanks for voting!');
				$("#rateCount").html(parseInt($("#rateCount").text())+1);
				setTimeout(function(){ $("#stars-thanks").fadeOut(1000) }, 2000);
			});
		} 
	});
	*/
	
});


function toggle_hometab(tab) {
	//alert(tab);
	tabs = new Array('wanted', 'emailed', 'commented');
	for (i=0; i < tabs.length; i++) {
		$('#tab_'+ tabs[i]).removeClass('activeMostTop');
		$('#content_'+ tabs[i]).hide();
	}
	$('#tab_'+ tab).addClass('activeMostTop');
	$('#content_'+ tab).show();
}

//hide homepage comment
function hhc(c) {
	$.get('/ajax/comments/hide_home/', { commentID: c }, function(data) {
		$("#lastcomments").html(data);
	});
}
