function avvio() {
	// calcolo le dimensioni dello schermo
	var larghezza = 0, altezza = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		larghezza = window.innerWidth;
		altezza = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		larghezza = document.documentElement.clientWidth;
		altezza = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		larghezza = document.body.clientWidth;
		altezza = document.body.clientHeight;
	}
	
	//calcolo altezze
	//larghezzasupercontenitore = larghezza-(document.getElementById('menuleft').offsetWidth)-30-20 //16 è la somma dei margini da lasciare
	//altezzasupercontenitore = altezza-(document.getElementById('header').offsetHeight)-(document.getElementById('footer').offsetHeight)-6 //6 è la somma dei margini da lasciare
	
	larghezzatabellarivenditori = larghezza*80/100
	
	document.getElementById('tabellarivenditori').style.height = altezza+"px"
	document.getElementById('tabellarivenditori').style.width = larghezzatabellarivenditori+"px"
	document.getElementById('sfondotabellarivenditori').style.height = altezza+"px"
	document.getElementById('sfondotabellarivenditori').style.width = larghezzatabellarivenditori+"px"
	document.getElementById('intro').style.height = altezza+"px"
	document.getElementById('intro').style.width = larghezza+"px"
	
	//modifico altezze
	//document.getElementById('supercontenitore').style.width = larghezzasupercontenitore+"px"
	//document.getElementById('supercontenitore').style.height = altezzasupercontenitore+"px"
	
	var so = new SWFObject("/layout/fitkit.swf", "/layout/fitkit.swf", larghezza, altezza, "8", "#ffffff");
	so.addParam("wmode", "opaque");

	so.write("intro");

}

function nascondi(id) {
	if ( document.getElementById(id) ) {
	document.getElementById(id).style.display = 'none';
	}
}
function visualizza(id) {
	if ( document.getElementById(id) ) {
	document.getElementById(id).style.display = '';
	}
}
function mostranegozi() {
	if ( document.getElementById('tabellarivenditori').style.display == 'none' ) {
			visualizza('tabellarivenditori');
			visualizza('sfondotabellarivenditori');
		} else {
			nascondi('tabellarivenditori');
			nascondi('sfondotabellarivenditori');
		}
	}
function nascondinegozi() {
	nascondi('tabellarivenditori');
	nascondi('sfondotabellarivenditori');
	}