// File JScript
function show(objj) {
	if (document.getElementById)
		{document.getElementById(objj).style.visibility = "visible";}
	else
		{if (document.layers)
			{document.layers[objj].visibility = "show";}
		else
			{document.all(objj).style.visibility = "visible";}
	}
}
	 
function hide(objj) {
	if (document.getElementById)
		{document.getElementById(objj).style.visibility = "hidden";}
	else
	{
		if (document.layers)
			{document.layers[objj].visibility = "hide";}
		else
			{document.all(objj).style.visibility = "hidden";}
	}
}

function sfondoc(objectidc,colorec) {
	
	
	if(document.getElementById){ 
		document.getElementById(objectidc).style.backgroundColor =colorec;
	} else if(document.all){ 
		document.all[objectidc].style.backgroundColor=colorec;
	} else if (document.layers) {
		document.layers[objectidc].bgColor=colorec;
    } 
	
}



function mostra(livel,idc) {

	if (document.getElementById) { 
		document.getElementById(livel).innerHTML = idc; 
	} else if(document.all){ 
		document.all(livel).innerHTML= idc; 
	} else if (document.layers) {
         document.layers[livel].innerHTML = idc;
    }
}

	ggg='';
	ppp='';


function meteo(giorno,periodo) {

	if (periodo=='') {
		periodo=ppp;
	}
	if (giorno=='') {
		giorno=ggg;
	}

htm_swf='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="175" height="164"><param name="movie" value="http://www.3bmeteo.com/mappedin/img/MappeFlashTxt/meteo_puglia.swf" /><param name="FlashVars" value="simbolo=&amp;data_scelta=&amp;macrosettore=13&amp;ora='+periodo+'&amp;giorno='+giorno+'" />  <param name="quality" value="high" />  <param name="bgcolor" value="#FFFFFF" />  <embed src="http://www.3bmeteo.com/mappedin/img/MappeFlashTxt/meteo_puglia.swf" FlashVars="simbolo=&amp;data_scelta=&amp;macrosettore=13&amp;ora='+periodo+'&amp;giorno='+giorno+'" quality="high" bgcolor="#FFFFFF"  width="175" height="164" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer"></embed></object>';
	
	mostra("contmeteo",htm_swf);
	
	ggg=giorno;
	ppp=periodo;
	
	sfondoc('td_oggi','#c7e9f9');
	sfondoc('td_domani','#c7e9f9');
	sfondoc('td_mattina','#c7e9f9');
	sfondoc('td_pomeriggio','#c7e9f9');
	sfondoc('td_sera','#c7e9f9');
	
	sfondoc('td_'+ppp,'#FFFFFF');
	sfondoc('td_'+ggg,'#FFFFFF');
	
}

function ingrandimg(id) {
	
	window.open('immagine.asp?id='+id,'','width=500, height=500');
	
}
