// ***********
// Scripts per il layout
// ***********

// Definizione immagini testatina
//
PagImg = new Array;
PagImg["home"] = "img/h-lontano.jpg";
PagImg["dove"] = "img/h-lucignano.jpg";
PagImg["cosa"] = "img/h-piscina.jpg";
PagImg["dentro"] = "img/h-stanza.jpg";
PagImg["contatti"] = "img/h-cavalli.jpg";

// Definizione link menu
//
MLink = new Array;
MLink[0] = ["MATRESSA","index-gb.htm"];
MLink[1] = ["APARTMENTS","apartments.htm"];
MLink[2] = ["WHAT","todo.htm"];
MLink[3] = ["WHERE","where.htm"];
MLink[4] = ["GALLERY","gallery.htm"];
MLink[5] = ["CONTACTS","contacts.htm"];

// Testata di ogni pagina. Pagina indica quale immagine visualizzare nella testatina
//
function Testata(Pagina) {
   document.write("<IMG SRC='lay/top-gb.jpg' WIDTH=830 HEIGHT=170 /><BR />");
   document.write("<CENTER><DIV CLASS='main'>");
   document.write("<IMG SRC='"+PagImg[Pagina]+"' WIDTH=760 HEiGHT=180 /><BR />");
   document.write("<CENTER><DIV CLASS='menoo'>");
   for (x=0; x<MLink.length; x++) {
     document.write("<A HREF='"+MLink[x][1]+"' CLASS='barra'>"+MLink[x][0]+"</A>");
   }
  document.write("</DIV>");
}

// Testata di ogni pagina. Pagina indica quale immagine visualizzare nella testatina
//
function Pedice() {
   document.write("<DIV CLASS='pedice'> - ");
   for (x=0; x<MLink.length; x++) {
     document.write("<A HREF='"+MLink[x][1]+"' CLASS='piede'>"+MLink[x][0]+"</A>");
     document.write(" - ");
   }
   document.write("<IMG SRC='lay/avana.gif' WIDTH=540 HEIGHT=29>");
   document.write("<P CLASS='indirizzo'>");
   document.write("\"Podere MATRESSA\", Loc. Matressa n. 30, 52046 Lucignano, Arezzo, Italy<BR>");
   document.write("Tel./Fax: +39 0575 998357, Cell.: +39 338 9198280, ");
   document.write("<A CLASS='piede' HREF='mailto:info@matressa.com'>info@matressa.com</A></P>");
   document.write("</DIV>");
}
// Popup delle foto nella gallery
//
function PopFoto(Foto) {
  FotoUrl = "foto.htm?a="+Foto;
  FotoCar = "width=650 height=650";
  window.open(FotoUrl,"",FotoCar);
}

