	//------------------------ SCRIPT VOTOS -----------------------------------------------------------
	var star_off = '/img/noticias/m_voto_0.gif';
	var star_on = '/img/noticias/m_voto_2.gif';	
	var list_stars = 'Muy malo,Malo,Bueno,Muy bueno,Excelente';
	var init_msg_votes = '&nbsp;-&nbsp;&nbsp;Sin calificar';
	
	var global_star_off = '/img/noticias/m_voto_1.gif';
	var global_star_on = '/img/noticias/m_voto_2.gif';		
	
	var altura_star = 12;
	var anchura_star = 12;
	
	/*
	function votar_noticia(capa){
		document.getElementById(capa).innerHTML = '<img border="0" src="'+star_off+'" width="'+anchura_star+'" height="'+altura_star+'"><img border="0" src="'+star_off+'" width="'+anchura_star+'" height="'+altura_star+'"><img border="0" src="'+star_off+'" width="'+anchura_star+'" height="'+altura_star+'"><img border="0" src="'+star_off+'" width="'+anchura_star+'" height="'+altura_star+'"><img border="0" src="'+star_off+'" width="'+anchura_star+'" height="'+altura_star+'">';
	}	
	*/
	
	function puntuacion_noticia(capa,lista_puntuaciones,puntuacion){
		var arr_stars = lista_puntuaciones.split(","); 
		var puntos = 1;
		var estrellas_votos = "";
		for(star in arr_stars){ 
			if(puntos <= puntuacion){
				estrellas_votos += '<img border="0" src="'+global_star_on+'" width="'+anchura_star+'" height="'+altura_star+'">';
			}else{	
				estrellas_votos += '<img border="0" src="'+global_star_off+'" width="'+anchura_star+'" height="'+altura_star+'">';
			}
			puntos++;
		}
		document.getElementById(capa).innerHTML = estrellas_votos;
	}		
	
	var div_star = 'starv_'; 
	var select_star = 0;

	function votar_noticia(target_div,form_name,num_votes_field){
		var cont_stars = ''; 
		var arr_stars = list_stars.split(","); var st = 1;
		for(star in arr_stars){ var name_st = div_star+st;
			cont_stars += '<div id="'+name_st+'" style="cursor:pointer;float: left;" onclick="enviar_voto(\''+st+'\',\''+form_name+'\',\''+num_votes_field+'\');" onmouseout="cambiar_voto(0,\''+st+'\',\'\');" onmouseover="cambiar_voto(1,\''+st+'\',\''+arr_stars[star]+'\');"><img border=0 src="'+star_off+'" width="'+anchura_star+'" height="'+altura_star+'" alt="'+arr_stars[star]+'"></div>';
			st++;
		}
		document.getElementById(target_div).innerHTML = cont_stars;
		document.forms[form_name].elements[num_votes_field].value = 0;
	}

	function enviar_voto(n_div,objForm,objElement){
		document.forms[objForm].elements[objElement].value = n_div;
		document.forms[objForm].submit();
	}

	function cambiar_voto(state,n_div,title_star){
		var name_st = div_star+n_div;
		if(select_star==0){
			var arr_stars = list_stars.split(","); var st = 1;
			for(star in arr_stars){ var name_st = div_star+st;
				if(st <= n_div){ 
					document.getElementById(name_st).innerHTML = '<img border=0 src="'+star_on+'" alt="'+title_star+'" width="'+anchura_star+'" height="'+altura_star+'">';
				}st++;
			}
			select_star = n_div;
		}
		if(state==0){
			var arr_stars = list_stars.split(","); var st = 1;
			for(star in arr_stars){ var name_st = div_star+st;
				document.getElementById(name_st).innerHTML = '<img border=0 src="'+star_off+'" alt="'+title_star+'" width="'+anchura_star+'" height="'+altura_star+'">';
				st++;
			}
			select_star = 0;
		}
	}	