	//Crea la lista di tutti i blog
	function buildAllBlogsList(iframeID) {
		$(document).ready(
			function() {
				$.getJSON(
					"/blog/utils/allblogs.php",
					{ ajax: "on"},
					function(json) {
						//Callback ricevuta: Mostro i risultati
						if(json.length > 0) {
							out = 	"<p>" + json.length + " Blogs found</p>" +
									"<table id=\"ajax_allBlogs_table\">" +
									"<thead>"+
									"<tr>"+
									"	<th>Blog Name</th>"+
									"	<th>Blog Title</th>"+
									"	<th>Blog Author</th>"+
									"	<th>Created On</th>"+
									"	<th>Modified On</th>"+
									"</tr>"+
									"</thead>"+
									"<tbody>";
							lastB = "";
							for(i=0; i<json.length; i++) {
								if(i == json.length-1) {
									lastB = " class=\"last\"";
								}
								
								//Date preview
								short_date_pattern = "dd/MM/yy";
								full_date_pattern = "E dd/MM/yy @ kk:mm:ss";
								
								reg_mysql_date = json[i]['registered'];
								date = mysqlTimeStampToDate(reg_mysql_date);
								reg_date = formatDate(date,short_date_pattern);
								reg_date_full = formatDate(date,full_date_pattern);
								
								upd_mysql_date = json[i]['last_updated'];
								date = mysqlTimeStampToDate(upd_mysql_date);
								upd_date = formatDate(date,short_date_pattern);
								upd_date_full = formatDate(date,full_date_pattern);
								
								//Authors preview
								author_list = json[i]['authors'];
								author_out_list = "";
								for(j=0; j<author_list.length; j++) {
									author_out_list += 
										"<a "+
										"href=\""+author_list[j]['url']+"\" "+
										"title=\"Show author profile\">"+
										author_list[j]['nickname'] +
										"</a>";
									if(j < author_list.length-1) {
										author_out_list += ", ";
									}
								}
								
								out += 	"<tr"+ lastB + ">"+
										"	<td>"+
										"		<a "+
										"			title=\"Jump to this blog!\" "+
										"			target=\"_blank\" "+
										"			href=\"http://"+json[i]['url']+"\">"+json[i]['name']+
										"		</a>"+
										"	</td>"+
										"	<td title=\""+json[i]['description']+"\">"+
										"		"+json[i]['title']+
										"	</td>"+
										"	<td>"+
										"		"+author_out_list+
										"	</td>"+
										"	<td title=\""+reg_date_full+"\">"+
										"		"+reg_date+
										"	</td>"+
										"	<td title=\""+upd_date_full+"\">"+
										"		"+upd_date+
										"	</td>"+
										"</tr>";
							}
							out += "</tbody></table>";
						}
						//Se non ho trovato nessun blog, lo dico!
						else {
							out = "<p><i>...I haven't find any blog...</i></p>";
						}
						
						$("#"+iframeID).after(out);
						
						//Alla fine, nascondo l'iframe
						$("#"+iframeID).hide();
						
						//Rendo la tabella ordinabile
						//$("#ajax_allBlogs_table").tablesorter();
					}
				);
			}
		);
	}
	
		//Crea il menu dei blog personali
	function buildUserBlogs(nick, iframeID) {
		$(document).ready(
			function() {
				$.getJSON(
					"/blog/utils/userblogs.php",
					{ ajax: "on", nickname: nick},
					function(json) {
						//Callback ricevuta: Mostro i risultati
						if(json.length > 0) {
							out = "";
							for(i=0; i<json.length; i++) {
								out += 	"<a "+
										"	target=\"_blank\" "+
										"	title=\"Visit this blog!\" "+
										"	href=\"http://"+json[i]['url']+"\">"+
										json[i]['name']+ 
										"</a>";
								if(i != json.length-1) {	
									out +=", ";
								}
							}
						}
						//Se non ho blog, lo dico!
						else {
							out = "No TamTamy blog found...";
						}
						$("#"+iframeID).after(out);
						
						//Alla fine, nascondo l'iframe
						$("#"+iframeID).hide();
					}
				);
			}
		);
	}