Estrelas = {
	EstrelasOn : function(qtde, idPost){
		for(cont=1;cont<=qtde;cont++){
			document.getElementById('Estrela'+cont+idPost).src = '../_IMG/ico_star_on.gif';
		}
	},
	
	EstrelasOff : function(idPost){
		document.getElementById('Estrela1'+idPost).src = '../_IMG/ico_star_off.gif';
		document.getElementById('Estrela2'+idPost).src = '../_IMG/ico_star_off.gif';
		document.getElementById('Estrela3'+idPost).src = '../_IMG/ico_star_off.gif';
		document.getElementById('Estrela4'+idPost).src = '../_IMG/ico_star_off.gif';
		document.getElementById('Estrela5'+idPost).src = '../_IMG/ico_star_off.gif';
	},
	
	MarcarEstrela : function(idItem, total){
		classBlogVoto.insere(idItem, total).value;
		
		ds = classBlogVoto.seleciona(idItem, 2).value;
		var votos = ds.Tables[0].Rows[0].votacao;
		for(cont=1;cont<=5;cont++){
			document.getElementById('LinkEstrela'+cont+idItem).onmouseover = '';
			document.getElementById('LinkEstrela'+cont+idItem).onmouseout = '';
			document.getElementById('LinkEstrela'+cont+idItem).href = '#';
			document.getElementById('Estrela'+cont+idItem).src = '../_IMG/ico_star_off.gif';
		}
		for(cont=1;cont<=votos;cont++){
			document.getElementById('Estrela'+cont+idItem).src = '../_IMG/ico_star_on.gif';
		}
	}
}