function amaga(){
	document.getElementById("magicgrafic").className="invisibleo";
	var iframe=document.getElementById("show_graph");
	iframe.src="loading.html";
	document.getElementById("show_graph").className="showinvisible";
}
function mostra(){
	tipusmod=tipus;
	if (tipus == "wind"){
	alert("there's no bar graph for absolute wind. Showing absolute anomaly map...");
	tipusmod="anomaly";
	}
	base_url="http://www.meteosimtruewind.com:8083//windtrends/";
	show_src="show_graph.php?periode="+periode+"&any="+any+"&taula=i013j041&tipus="+tipusmod+"&nivell="+nivell;
	url_src=base_url+show_src;
	var iframe=document.getElementById("show_graph");
	iframe.src="loading.html";
	document.getElementById("magicgrafic").className="visibleo";
	document.getElementById("show_graph").className="showvisible";
	iframe.src=url_src;
}

function mostra_mapa(){
	base_url="http://windtrends.meteosimtruewind.com/";
	show_src="country_selector_mini.php";
	url_src=base_url+show_src;
	var iframe=document.getElementById("show_graph");
	iframe.src="loading.html";
	document.getElementById("magicgrafic").className="visibleo";
	document.getElementById("show_graph").className="showvisible";
	iframe.src=url_src;
}
function mostra_mapa_es(){
	base_url="http://windtrends.meteosimtruewind.com/es/";
	show_src="selector_zonas_europa_mini.php";
	url_src=base_url+show_src;
	var iframe=document.getElementById("show_graph");
	iframe.src="loading.html";
	document.getElementById("magicgrafic").className="visibleo";
	document.getElementById("show_graph").className="showvisible";
	iframe.src=url_src;
}

