function writeFlashObj(movie, qs, width, height, colore, scala){
  document.write(
   '<OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"\n'+
   ' codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"\n'+
   ' WIDTH="' + width + '" HEIGHT="' + height + '">\n'+
   ' <PARAM NAME=movie VALUE="' + movie + '">\n'+
   ' <PARAM NAME=FlashVars VALUE="'+qs+'">\n'+
   ' <PARAM NAME=quality VALUE=high>\n'+
   ' <PARAM NAME=menu VALUE=false>\n'+
   ' <PARAM NAME=bgcolor VALUE=' + colore + '>\n'+
   ' <PARAM NAME=scale VALUE=' + scala + '>\n'+
   ' <EMBED src="' + movie +'"\n'+
   '  FlashVars="'+qs+'"\n'+
   '  quality=high menu="false" bgcolor="' + colore + '" WIDTH="' + width + '" HEIGHT="' + height + '" SCALE="' + scala +
   '  TYPE="application/x-shockwave-flash"\n'+
   '  PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>\n'+
   '</OBJECT>');
}  

precedente_m=0;
precedente_s=0;

function aprichiudi(m,s) {
	if (precedente_s!=0) { 
		document.getElementById("stmenu"+precedente_s).style.display='none';
		document.getElementById("stmenu"+s).style.display='block';
	}
	precedente_s=s;
	if (precedente_m!=0) { 
		document.getElementById("menu"+precedente_m).style.opacity=.5;
		document.getElementById("menu"+m).style.opacity=1;
	}
	precedente_m=m;
}

function ingrandimento(c, valore, testo) {
	document.getElementById(valore).src=c.src;
	document.getElementById(testo).innerText=c.alt;
}	


	
