<!--

var numOfBottoni;

var idx=0;

var nomeBottone  = new Array();
var testoBottone = new Array();
var linkBottone  = new Array();

numOfBottoni = 7;

nomeBottone[0] = "NOVITA";
testoBottone[0] = "Novità";
linkBottone[0] = "novita.html";

nomeBottone[1] = "CHISIAMO";
testoBottone[1] = "Chi siamo";
linkBottone[1] = "chisiamo.html";

nomeBottone[2] = "CORSI";
testoBottone[2] = "Corsi";
linkBottone[2] = "corsi.html";

nomeBottone[3] = "ALTRIINSEGNANTI";
testoBottone[3] = "Altri insegnanti";
linkBottone[3] = "altriinsegnanti.html";

nomeBottone[4] = "DOVESIAMO";
testoBottone[4] = "Dove siamo";
linkBottone[4] = "dovesiamo.html";

nomeBottone[5] = "COSAABBIAMOFATTO";
testoBottone[5] = "Cosa abbiamo fatto";
linkBottone[5] = "cosaabbiamofatto.html";

nomeBottone[6] = "STATUTO";
testoBottone[6] = "Statuto";
linkBottone[6] = "statuto.html";


function LmOver(elem)
{
   //ATTENZIONE IL COLORE E' UGUALE ALLO sfondo2
   elem.bgColor = "#fa8d0a";
   elem.firstChild.style.color = "#000000";
   elem.style.cursor = 'hand';
}

function LmOut(elem)
{
   elem.bgColor = '';
   elem.firstChild.style.color = "#000000";
}

function LmClick(path)
{location.href = path;}

function caricaIntestazione(callerPage)
{

// LOGO + Intestazione

str ="<table class=\"sfondo1\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" width=800 >";
str+="<tbody>";
str+="<tr>";
str+=" <td align=\"center\" valign=\"center\" height=\"120\" width=\"200\">";
str+="   <a href=\"index.html\" target=\"_top\"> <img src=\"images/logopiccolointestazione.gif\" alt=\"Home Page Danzamente\" border=\"0\"> </a>";
str+=" </td>";
str+=" <td align=\"center\" valign=\"center\"  width=\"600\">";
str+="  <img src=\"images/DanzamenteScritta.gif\" alt=\"Danzamente... la tua nuova scuola di danza\" border=\"0\">";
str+=" </td>";
str+=" <td align=\"center\" valign=\"bottom\"  width=\"*\">";
str+="  <a href=\"email.html\" target=\"_top\"> <img src=\"images/email.gif\" alt=\"scrivici un'e-mail\" border=\"0\"> </a>";
str+=" </td>";
str+=" <td align=\"center\" valign=\"center\"  width=\"20\">";
str+=" </td>";
str+="</tr>";
str+="</tbody>";
str+="</table>";

document.writeln(str);

// RIGA ORIZZONTALE
disegnaRiga();


// BOTTONI
document.writeln('<table class="sfondo1" align="center"  cellpadding="1" cellspacing="3" height="40" width=800> ');
document.writeln('  <tbody>');
document.writeln('    <tr>');
document.writeln('      <td width="1"><br>');
document.writeln('      </td>')

for(idx=0; idx<numOfBottoni; idx++ )
{

   if (callerPage==nomeBottone[idx])
   {
   document.writeln('      <td class="sfondo2" class="testobiancograss"');
   document.writeln('   align="center" height="40" width="100"><a href="');
   document.writeln(linkBottone[idx]);
   document.writeln('"class="testobianco">');
   document.writeln(testoBottone[idx]);
   }
   else
   {
   document.write('      <td class="testonero" onmouseover="LmOver(this)" onmouseout="LmOut(this)"');
   document.write('onclick="LmClick(\'');
   document.write(linkBottone[idx]);
   document.write('\')"');
   document.write('  align="center" height="40" width="100"><a href="');
   document.write(linkBottone[idx]);
   document.write('"class="testonero">');
   document.write(testoBottone[idx]);
   }



document.writeln('</a></td>');
}

document.writeln('      <td width="*"><br>');
document.writeln('      </td>');
document.writeln('    </tr>');
document.writeln('  </tbody>');
document.writeln('</table>');

disegnaRiga();

//disegnaRiganera();


}
// ---- fine di caricaIntestazione ----


function disegnaRiga()
{

document.writeln('<table class="sfondo1" align="center" cellpadding="0" cellspacing="0" width=800 >');
document.writeln(' <tr> ');
document.writeln('      <td class="riga"');
document.writeln(' </td> ');
document.writeln('    </tr> ');
document.writeln('</table> ');

}

function disegnaRiganera()
{

document.writeln('<table class="sfondo1" align="center" cellpadding="0" cellspacing="0" width="800" >');
document.writeln(' <tr> ');
document.writeln('      <td height="4">');
document.writeln(' </td> ');
document.writeln('    </tr> ');
document.writeln(' <tr> ');
document.writeln('      <td class="riganera"');
document.writeln(' </td> ');
document.writeln('    </tr> ');
document.writeln(' <tr> ');
document.writeln('      <td height="4">');
document.writeln(' </td> ');
document.writeln('    </tr> ');
document.writeln('</table> ');

}

function BottomOfPage()
{
   disegnaRiga()
document.writeln('<table  class="sfondo1" align="center" cellpadding="0" cellspacing="0" width=800 height=30>');
document.writeln(' <tbody>');
document.writeln(' <tr> ');
document.writeln('      <td align="right" class="testoaranciograss14">Danzamente... la tua nuova scuola di danza ');
document.writeln(' </td> ');
document.writeln('      <td class="spazioorizzontale20"> ');
document.writeln(' </td> ');document.writeln('    </tr> ');
document.writeln(' </tbody>');
document.writeln('</table> ');
}
//-->
