var ut           = new Object(); 

ut.SfondoPag    = "#FFFFFF";
ut.Intestazione = "#299629";
ut.Link         = "#007080";
ut.Riquadri     = "#D5FFD5";
//ut.Riquadri     = "#D0FFD0";
ut.RiquadriEsp  = "#D0EFE0";

//  oggettoColor.Intestazione = "#208040";
//  oggettoColor.Riquadri     = "#C0FFE0";

//  oggettoColor.Impostaz     = "Blu";
//  oggettoColor.Intestazione = "#2929A6";
//  oggettoColor.Riquadri     = "#D0D0FF";

//  oggettoColor.Impostaz     = "Rosso";
//  oggettoColor.Intestazione = "#A62929";
//  oggettoColor.Riquadri     = "#FFD0D0";


document.bgColor    = ut.SfondoPag; 
document.linkColor  = ut.Link;
document.alinkColor = ut.Link;
document.vlinkColor = ut.Link;


/****************************************************************************/
/* Un unico riquadro con tutti e 4 gli angoli arrotondati.                  */
/****************************************************************************/

function RiquadroSuperiore (colore1, colore2, titolo) {
if (titolo == '') 
  document.write("<table width=100% border=0 cellpadding=0 cellspacing=5 bgcolor='", colore2, "' style=\"border-radius: 12px;\"><tr><td>");
else
  document.write("<table width=100% border=0 cellpadding=0 cellspacing=5 bgcolor='", colore2, "' style=\"border-radius: 12px;\">",
                 "  <tr><td style=\"border-radius: 10px;\" bgcolor='", colore1, "' align='CENTER' valign='top'><font color='white'><big>", titolo ,"&nbsp;</big></font></td>",
				 "  </tr>",
				 "<tr><td>");
  }

function RiquadroInferiore () {
  document.write("    </td>",
                 "  </tr>",
                 "  <tr><td></td></tr>",
                 "</table>",
                 "<br>");
  }

/****************************************************************************/
/* Crea 2 riquadri come il precedente che restano affiancati tra di loro.   */
/****************************************************************************/

function RiquadroX2Superiore (colore1, colore2, titolo, larghezzaColonna) {
  document.write("<table width=100% border=0 cellpadding=0 cellspacing=0><tr valign=\"top\"><td width=", larghezzaColonna, ">");
  RiquadroSuperiore(colore1, colore2, titolo);
  }

function RiquadroX2Intermedio (colore1, colore2, titolo) {
	RiquadroInferiore();
	document.write("</td><td>&nbsp;&nbsp;&nbsp;</td><td>");
	RiquadroSuperiore(colore1, colore2, titolo);
}
  

function RiquadroX2Inferiore () {
  RiquadroInferiore();
  document.write("</td></tr></table><br>");
  }

/****************************************************************************/

function GalleriaImmagineApertura (numImg) {
  RiquadroSuperiore (ut.Intestazione, ut.Riquadri, numImg);
  document.write("<table width='100%' cellspacing=0 cellPadding=0 border=0>",
				 "  <tr><td colspan=7><font size='-6'>&nbsp;</font></td></tr>",
				 "  <tr valign='top'>",
				 "    <td width=\"200\" align=\"center\"><a href='galleria/foto.htm?", numImg, "'><img src='galleria/TN_g", numImg, ".JPG'></a></td>",
				 "    <td width=1 bgColor='#000000'><P></P></td>",
				 "    <td width=10>&nbsp;</td>",
				 "    <td width='40%'>");
  }

function GalleriaImmagineIntermezzo () {
  document.write("</td>",
				 "    <td width='1' bgColor='#000000'><P></P></td>",
				 "    <td width='10'>&nbsp;</td>",
				 "    <td width='40%'><i>");
  }

function GalleriaImmagineChiusura () {
  document.write("    </i></td>",
				 "  </tr>",
				 "</table>");
  RiquadroInferiore();
  }

/****************************************************************************/

function Intestazione (voceMenu, img) {
  document.write("<link rel=stylesheet href=\"stile.css\" type=\"text/css\">",
		 "<body>",
                 "<a href=\"top\"></a>",
  				 "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=0><tr><td valign=\"center\"  width=150>",
				 "<center><img src=\"img/flago.gif\"></center>",
				 "</td><td>&nbsp;&nbsp;</td><td style=\"font-family:Verdana, Arial, Helvetica, sans-serif\">",
				 "<center><B><FONT color='#ffFFFE' size=6>Scopriamo l' </FONT>",
				 "<FONT color='#FF010D' size=10>E</FONT>",
				 "<FONT color='#FE01A2' size=10>S</FONT>",
				 "<FONT color='#EF01FE' size=10>P</FONT>",
				 "<font color='#8401FE' size=10>E</font>",
				 "<FONT color='#1901FE' size=10>R</FONT>",
				 "<FONT color='#0178FE' size=10>A</FONT>",
				 "<FONT color='#01FEF5' size=10>N</FONT>",
				 "<font color='#48FE01' size=10>T</font>",
				 "<font color='#BFFE01' size=10>O</font>",
				 "<font color='#ffFFFE' size=6> a</font>",
				 "<font size=10>",
				   "<font color='#FEBA01'> T</font>",
				   "<font color='#FE4E01'>O</font>",
				   "<font color='#FE1301'>R</font>",
				   "<font color='#000099'>I</font>",
				   "<font color='#00FF00'>N</font>",
				   "<font color='#040000'>O</font>",
				 "</font>",
				 "</td></tr><tr><td>&nbsp;</td></tr><tr><td valign=\"top\" width=\"200\">");

  RiquadroSuperiore (ut.Intestazione, ut.Riquadri, "Men&ugrave;");
 document.write("<table border=0 cellspacing=0>",
				 "  <tr>",
				 "    <td><A class=\"stileMenuP\" href=\"welcome.htm\"><br><b>Pagina Iniziale</b></A><br>");
 document.write ("     &nbsp;&nbsp;&nbsp;<A class=\"stileMenuP\" href=\"sbirciatina.htm\">Sbirciatina</A>");
 if (voceMenu == '1') document.write("&nbsp;&nbsp;<img src=\"img/dialog-apply.png\">");
 document.write ("<br> &nbsp;&nbsp;&nbsp;<A class=\"stileMenuP\" href=\"galleria.htm\">Galleria</A>");
 if (voceMenu == '2') document.write("&nbsp;&nbsp;<img src=\"img/dialog-apply.png\">");
 document.write ("<br> &nbsp;&nbsp;&nbsp;<A class=\"stileMenuP\" href=\"contatti.htm\">Contatto</A>");
 if (voceMenu == '3') document.write("&nbsp;&nbsp;<img src=\"img/dialog-apply.png\">");
 document.write ("<br> &nbsp;&nbsp;&nbsp;<A class=\"stileMenuP\" href=\"servizi.htm\">Attivit&agrave;</A>");
 if (voceMenu == '4') document.write("&nbsp;&nbsp;<img src=\"img/dialog-apply.png\">");
 document.write ("<br> &nbsp;&nbsp;&nbsp;<A class=\"stileMenuP\" href=\"gruppi.htm\">Gruppi</A>");
 if (voceMenu == '5') document.write("&nbsp;&nbsp;<img src=\"img/dialog-apply.png\">");
 document.write ("<br> &nbsp;&nbsp;&nbsp;<A class=\"stileMenuP\" href=\"legge.htm\">Legge</A>");
 if (voceMenu == '6') document.write("&nbsp;&nbsp;<img src=\"img/dialog-apply.png\">");
 document.write ("<br> &nbsp;&nbsp;&nbsp;<A class=\"stileMenuP\" href=\"storia.htm\">Storia</A>");
 if (voceMenu == '7') document.write("&nbsp;&nbsp;<img src=\"img/dialog-apply.png\">");
 document.write ("<br>",
				 "  </td></tr>",
				 "</table>");
  RiquadroInferiore();
  document.write("<center>");
  
  if      (voceMenu == '1') document.write("<img class=\"trasparenza\" src=\"img/dngconverter128.png\">");
  else if (voceMenu == '2') document.write("<img class=\"trasparenza\" src=\"img/camera128.png\">");
  else if (voceMenu == '3') document.write("<img class=\"trasparenza\" src=\"img/chromium128.png\">");
  else if (voceMenu == '4') document.write("<img class=\"trasparenza\" src=\"img/bookcase128.png\">");
  else if (voceMenu == '5') document.write("<img class=\"trasparenza\" src=\"img/catfish128.png\">");
  else if (voceMenu == '6') document.write("<img class=\"trasparenza\" src=\"img/edit-copy128.png\">");
  else if (voceMenu == '7') document.write("<img class=\"trasparenza\" src=\"img/mime-audio_x128.png\">");
  document.write("</center></td><td></td><td valign=\"top\">");
}

function IntestazioneFineConRitorno() {
  document.write("<div align=\"right\">",
                 "<a href=\"welcome.htm\"><img src=\"img/icon_homepage.png\" border=0></a> ",
                 "<a href=\"#top\"><img src=\"img/arrow-up-double.png\" border=0></a>",
				 "</div></td></tr></table>",
  				 "</body>",
  				 "</HTML>");
}

function IntestazioneFine() {
  document.write("</td></tr></table>",
  				 "</body>",
  				 "</HTML>");
}
//  location.href=page;  // cambia pagina
  
