// JavaScript Document
	
	function rateRollOver(wich, id, mouseEnter)  {

		if (mouseEnter) {
				// mouse has just entered "wich" star

				for (i=1; i < wich + 1; i++) {
					t = "star" + i + id;
					document.images[t].src = "../../imgs/estrelaon1.gif";
				}
				for (i=wich+1; i < 6; i++) {
					t = "star" + i + id;
					document.images[t].src = "../../imgs/estrelaoff1.gif";
				}

				statusVoto = document.getElementById("status" + id);
				switch (wich) {
					case 1:
						statusVoto.innerHTML = "Fraco";
						break;
					case 2:
						statusVoto.innerHTML = "Regular";
						break;
					case 3:
						statusVoto.innerHTML = "Bom";
						break;
					case 4: 
						statusVoto.innerHTML = "Ótimo";
						break;
					case 5: 
						statusVoto.innerHTML = "Excelente";
						break;
					default:
						break;
				}
			}
			else {
				// mouse has just left "wich" stars
				for (i=1; i<6; i++) {
					t = "star" + i + id;
					document.images[t].src = "../../imgs/estrelaoff1.gif";
				}
				statusVoto = document.getElementById("status" + id);
				statusVoto.innerHTML = "Dar Nota";
			}
	}
		
	function starClick(opcao, id) {
	// Called when a star is clicked
				var top=(screen.width/2)-(325/2);
				var left=(screen.height/2)-(150/2);
				window.open("aceitarvoto.php?id=" + id + "&opcao=" + opcao,"popup","left="+top+",top="+left+",height=100,width=325")
	}
