	var ReceitasMaisVotadas = new Class({
								  
		initialize:	function(div){
			
				this.div_resposta = div;
			
		},
		
		render:		function ()
		{
			
			div_votadas = this.div_resposta;
			
			new Json.Remote("index.php/widgets/maisVotadas",
			{	
				onComplete:		function ( resposta )
				{
					
					html				=	'<div id="tit_destaque_lateral_dir">';
					html				+=	'<div id="campo_tit_lateral_dir"><div id="pos_tit_destaque_interna">Receitas mais<br />';
					html				+=	'Votadas</div>';
					html				+=	'</div></div>';
					html				+=	'<div id="texto_noticia_rel_hspoleto">';
					
					i					=	1;
					
					resposta.conteudo.each(function(obj)
					{
						
						i_display		=	( i < 10 ) ? "0"+i : i;
						i += 1;
						
						html			+=	'<div>';
						html			+=	'<span class="font_marrom2b">' + i_display + '. </span>';
						html			+=	'<a href="index.php/spoletutti/receitas/' + obj.uid + '" class="link_site2">';
						html			+=	obj.nome;
						html			+=	'</a>';
						html			+=	'</div>';
						
					});
					
					html				+=	'</div>';
					html				+=	'<div id="campo_bot_nr_interna"></div>';
					
					$(div_votadas).setHTML(html);
					
				}
			}).send();
			
		}
		
	});
