$(document).ready(function() {

	/* SALVO LE VARIABILI */

	var spot1 = "";
	var img1 = "";
	var spot2 = "";
	var img2 = "";
	var spot3 = "";
	var img3 = "";
	var i = 0;
	var spot1 = $("th.spot:first span").html();
	var img1 = $("td.img:first span").html();
	/* OK FF e MSIE */	
	/*var spot2 = $("table#forecast tr:nth-child(3) th.spot span").html();*/
	/*var img2 = $("table#forecast tr:nth-child(3) td.img span").html();*/
	/* CHROME */
	var spot2 = $("table#forecast").find("tr:eq(2) th.spot span").html();
	var img2 = $("table#forecast").find("tr:eq(2) td.img span").html();

	var spot3 = $("th.spot:last span").html();
	var img3 = $("td.img:last span").html();

	/* RIMUOVO TUTTO */

	$('#forecast-spot').remove();

	/* DISPONGO GLI ELEMENTI */

	//var body = $("body");
	var body = $("div#meteotop");
	body.append("<div style='width:170px;position:relative;top:-6px;height:50px;float:left;'><table style='border:0;width:100%;'><tr><th>"+img1+"</th><th>"+img2+"</th><th>"+img3+"</th></tr><tr><td class='jweather_day'>"+spot1+"</td><td class='jweather_day'>"+spot2+"</td><td class='jweather_day'>"+spot3+"</td></tr></table></div>");

});
