<!--
function tpl(){
	var lar;
	if(screen.width < 900){
		lar='a';
	} else if(screen.width > 1100){
		lar='c';
	} else {
		lar='b';
	}
	return lar;
}
function atimport(){
	var lar;
	if(screen.width < 900){
		lar='a';
	} else if(screen.width > 1100){
		lar='c';
	} else {
		lar='';
	}
	if(lar != ''){
		document.writeln ('<style type="text/css" media="screen"> @import url(./tpl/'+lar+'/style.css); </style>');
		document.close();
	}
}
function immagine(nomeImmagine, testoAlternativo){
	var lar;
	if(screen.width < 900){
		lar='a';
	} else if(screen.width < 1100){
		lar='b';
	} else {
		lar='c';
	}
	document.write('<img src="./tpl/'+lar+'/'+nomeImmagine+'" alt="'+testoAlternativo+'" border="0" />');
	document.close();
}
function sfondo(pagina){
	var lar;
	if(screen.width < 900){
		lar='a';
	} else if(screen.width < 1100){
		lar='b';
	} else {
		lar='c';
	}
	document.write('<table style="background-image: url(./tpl/'+lar+'/TB'+pagina+'.jpg); background-repeat: no-repeat; background-position: right top; border-right: 1px solid #40330C;" border="0" cellpadding="0" cellspacing="0" width="100%">');
	document.close();
}
function testata1(pagina){
	document.writeln('<table style="background-image: url(./tpl/'+tpl()+'/TB'+pagina+'.jpg); background-repeat: no-repeat; background-position: right top; border-right: 1px solid #40330C;" border="0" cellpadding="0" cellspacing="0" width="100%">');
	document.close();
}
function comune1(in1){
	document.writeln('<tr><td style="background-color: #FFF6DB;" id="logo1" align="left" valign="bottom" rowspan="2">');
	document.writeln(in1);
	document.close();
}
function comune2(in1){
	document.writeln(in1);
	document.writeln('</td><td style="background-color: #FFF6DB;" id="logo2" align="left" valign="bottom">');
	document.close();
}
function comune3(in1){
	document.writeln(in1);
	document.close();
}
function comune4(in1){
	document.writeln(in1);
	document.writeln('</td><td align="left"><img id="blanktb" src="./tpl/blank.gif" alt="" /></td></tr><tr><td id="logo3" align="left" valign="top">');
	document.close();
}
function comune5(in1){
	document.writeln(in1);
	document.close();
}
function comune6(in1){
	document.writeln(in1);
	document.writeln('</td><td id="tb" align="right" valign="top">');
	document.close();
}
function comune7(in1){
	document.writeln(in1);
	document.writeln('</td></tr></table>');
	document.close();
}
-->
