	var num_schede=5;
	var scheda_corrente = 1; //20071012: SERVE AD IMPEDIRE L'EFFETTO IN HOME_PAGE -> SCHEDA NEWS
	
	/*
	function switchMenu(scheda){
	    scheda_corrente = scheda;//20071012: SERVE AD IMPEDIRE L'EFFETTO IN HOME_PAGE -> SCHEDA NEWS
		for(i=1; i<=num_schede; i++){
			if(i == scheda){
				document.getElementById("h_scheda_" + i).className="area_on";
				document.getElementById("a_scheda_" + i).className="a_scheda_on";
				document.getElementById("scheda_" + i).style.display="";
			}else{
				if(i == scheda-1){
					document.getElementById("h_scheda_" + i).className="area_off_pre_on";
				}else{
					document.getElementById("h_scheda_" + i).className="area_off";
				}
				document.getElementById("a_scheda_" + i).className="a_scheda_off";
				document.getElementById("scheda_" + i).style.display="none";
			}
		}
	}
	*/

	function switchMenu(scheda){
	    scheda_corrente = scheda;//20071012: SERVE AD IMPEDIRE L'EFFETTO IN HOME_PAGE -> SCHEDA NEWS
		for(i=1; i<=num_schede; i++){
			if(i == scheda){
				if (document.getElementById("h_scheda_" + i)) {
					document.getElementById("h_scheda_" + i).className="area_on";
					document.getElementById("a_scheda_" + i).className="a_scheda_on";
				}
				document.getElementById("scheda_" + i).style.display="";
			}else{
				if (document.getElementById("h_scheda_" + i)) {
					if(i == scheda-1){
						document.getElementById("h_scheda_" + i).className="area_off_pre_on";
					}else{
						document.getElementById("h_scheda_" + i).className="area_off";
					}
					document.getElementById("a_scheda_" + i).className="a_scheda_off";
				}
				if (document.getElementById("scheda_" + i)) {
					document.getElementById("scheda_" + i).style.display="none";
				}
			}
		}
	}

	var show_cover=0;
	var x;
	var opacita=0;
	function showCover(show,idDiv,img){
	    /* 20071012: PER IMPEDIRE L'EFFETTO IN HOME_PAGE -> SCHEDA NEWS */
		if(scheda_corrente == 1){
		    return;
		}
		/*************/
		if (show==1){
			if(show_cover==0){
				show_cover=1;
				document.getElementById(idDiv).style.filter="alpha(opacity=0)"; 
				document.getElementById(idDiv).style.opacity="0";
				document.getElementById(idDiv).style.mozOpacity="0";
				document.getElementById(idDiv).style.display="";
				document.getElementById("imgDiv").src=img;
				x=setInterval("transition()",30);
			}
		}else{
			document.getElementById(idDiv).style.display="none";
			show_cover=0;
			clearInterval(x);
		}
	}
	function transition(){
		document.getElementById('copertina').style.opacity=opacita;
		document.getElementById('copertina').style.mozOpacity=opacita;
		document.getElementById('copertina').style.filter="alpha(opacity=" + opacita*100 + ")"; 
		opacita += 0.1;
		if(opacita > 1){
			opacita=0;
			clearInterval(x);
		}
	}
	
function textCounter(field, countfield, maxlimit) {
	//alert("textCounter");
	if (field.value.length > maxlimit) // if too long...trim it!
		field.value = field.value.substring(0, maxlimit);
		// otherwise, update 'characters left' counter
	else 
		countfield.value = maxlimit - field.value.length;
}

function getDataClient() {
	data = new Date();
	ora =data.getHours();
	minuti=data.getMinutes();
	secondi=data.getSeconds();
	giorno = data.getDay();
	mese = data.getMonth();
	date_= data.getDate();
	year= data.getYear();
	if(minuti< 10)minuti="0"+minuti;
	if(secondi< 10)secondi="0"+secondi;
	if(year<1900)year=year+1900;
	if(ora<10)ora="0"+ora;
	if(giorno == 0) giorno = " Domenica ";
	if(giorno == 1) giorno = " Luned\ì ";
	if(giorno == 2) giorno = " Marted\ì ";
	if(giorno == 3) giorno = " Mercoled\ì ";
	if(giorno == 4) giorno = " Gioved\ì ";
	if(giorno == 5) giorno = " Venerd\ì ";
	if(giorno == 6) giorno = " Sabato ";
	if(mese == 0) mese = "Gennaio ";
	if(mese ==1) mese = "Febbraio ";
	if(mese ==2) mese = "Marzo ";
	if(mese ==3) mese = "Aprile ";
	if(mese ==4) mese = "Maggio ";
	if(mese ==5) mese = "Giugno ";
	if(mese ==6) mese = "Luglio ";
	if(mese ==7) mese = "Agosto ";
	if(mese ==8) mese = "Settembre ";
	if(mese ==9) mese = "Ottobre ";
	if(mese ==10) mese = "Novembre ";
	if(mese ==11) mese = "Dicembre";
	//document.write("Oggi è "+giorno+" "+date+" "+mese+" "+year+" - ora "+ora+":"+minuti+":"+secondi);
	return date_+" "+mese+" "+year;
}

function switchLanguage(lingua) {
	// alert("js/siae.js-->switchLanguage-->Lingua selezionata: "+lingua);
	// document.getElementById('scheda_2').style.display='inline';
}

