// JavaScript Document

// ******************************************
// Inserisce un pannello con le immagini e i 
// link degli sponsor per le pagine ita_index 
// ed eng_index. 
// ******************************************
function sponsorIndex()
{
 document.write('<table border="0" align="center" cellpadding="0" cellspacing="0" width="677"> ');
 document.write('<!-- fwtable fwsrc="20070714 barra pubblicità.png" fwbase="20070714_barra_sponsor.jpg" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" --> ');
 document.write('  <tr> ');
  document.write('  <td><img src="images/spacer.gif" width="16" height="1" border="0" alt=""></td> ');
 document.write('   <td><img src="images/spacer.gif" width="102" height="1" border="0" alt=""></td> ');
 document.write('   <td><img src="images/spacer.gif" width="46" height="1" border="0" alt=""></td> ');
 document.write('   <td><img src="images/spacer.gif" width="138" height="1" border="0" alt=""></td> ');
 document.write('   <td><img src="images/spacer.gif" width="33" height="1" border="0" alt=""></td> ');
 document.write('   <td><img src="images/spacer.gif" width="101" height="1" border="0" alt=""></td> ');
  document.write('  <td><img src="images/spacer.gif" width="14" height="1" border="0" alt=""></td> ');
  document.write('  <td><img src="images/spacer.gif" width="214" height="1" border="0" alt=""></td> ');
   document.write(' <td><img src="images/spacer.gif" width="13" height="1" border="0" alt=""></td> ');
  document.write('  <td><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td> ');
  document.write(' </tr> ');
  document.write(' <tr> ');
  document.write('  <td><img name="n20070714_barra_sponsor_r1_c1" src="images/20070714_barra_sponsor_r1_c1.jpg" width="16" height="42" border="0" alt=""></td> ');
  document.write('  <td><a href="http://www.prsguitars.com" target="_blank"><img name="n20070714_barra_sponsor_r1_c2" src="images/20070714_barra_sponsor_r1_c2.jpg" width="102" height="42" border="0" alt=""></a></td> ');
  document.write('  <td><img name="n20070714_barra_sponsor_r1_c3" src="images/20070714_barra_sponsor_r1_c3.jpg" width="46" height="42" border="0" alt=""></td> ');
  document.write('  <td><a href="http://www.zeta-car.com" target="_blank"><img name="n20070714_barra_sponsor_r1_c4" src="images/20070714_barra_sponsor_r1_c4.jpg" width="138" height="42" border="0" alt=""></a></td> ');
  document.write('  <td><img name="n20070714_barra_sponsor_r1_c5" src="images/20070714_barra_sponsor_r1_c5.jpg" width="33" height="42" border="0" alt=""></td> ');
  document.write('  <td><a href="http://www.archimedediffusori.com" target="_blank"><img name="n20070714_barra_sponsor_r1_c6" src="images/20070714_barra_sponsor_r1_c6.jpg" width="101" height="42" border="0" alt=""></a></td> ');
  document.write('  <td><img name="n20070714_barra_sponsor_r1_c7" src="images/20070714_barra_sponsor_r1_c7.jpg" width="14" height="42" border="0" alt=""></td> ');
  document.write('  <td><a href="http://www.referencelaboratory.com" target="_blank"><img name="n20070714_barra_sponsor_r1_c8" src="images/20070714_barra_sponsor_r1_c8.jpg" width="214" height="42" border="0" alt=""></a></td> ');
  document.write('  <td><img name="n20070714_barra_sponsor_r1_c9" src="images/20070714_barra_sponsor_r1_c9.jpg" width="13" height="42" border="0" alt=""></td> ');
  document.write('  <td><img src="images/spacer.gif" width="1" height="42" border="0" alt=""></td> ');
  document.write(' </tr> ');
  document.write(' </table> ');
}



// ******************************************
// Inserisce un pannello con le immagini e i 
// link degli sponsor per le pagine nelle
// sottocartelle. 
// ******************************************
function sponsorSottocartelle()
{
 document.write('<table border="0" align="center" cellpadding="0" cellspacing="0" width="677"> ');
 document.write('<!-- fwtable fwsrc="20070714 barra pubblicità.png" fwbase="20070714_barra_sponsor.jpg" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" --> ');
 document.write('  <tr> ');
  document.write('  <td><img src="../images/spacer.gif" width="16" height="1" border="0" alt=""></td> ');
 document.write('   <td><img src="../images/spacer.gif" width="102" height="1" border="0" alt=""></td> ');
 document.write('   <td><img src="../images/spacer.gif" width="46" height="1" border="0" alt=""></td> ');
 document.write('   <td><img src="../images/spacer.gif" width="138" height="1" border="0" alt=""></td> ');
 document.write('   <td><img src="../images/spacer.gif" width="33" height="1" border="0" alt=""></td> ');
 document.write('   <td><img src="../images/spacer.gif" width="101" height="1" border="0" alt=""></td> ');
  document.write('  <td><img src="../images/spacer.gif" width="14" height="1" border="0" alt=""></td> ');
  document.write('  <td><img src="../images/spacer.gif" width="214" height="1" border="0" alt=""></td> ');
   document.write(' <td><img src="../images/spacer.gif" width="13" height="1" border="0" alt=""></td> ');
  document.write('  <td><img src="../images/spacer.gif" width="1" height="1" border="0" alt=""></td> ');
  document.write(' </tr> ');
  document.write(' <tr> ');
  document.write('  <td><img name="n20070714_barra_sponsor_r1_c1" src="../images/20070714_barra_sponsor_r1_c1.jpg" width="16" height="42" border="0" alt=""></td> ');
  document.write('  <td><a href="http://www.prsguitars.com" target="_blank"><img name="n20070714_barra_sponsor_r1_c2" src="../images/20070714_barra_sponsor_r1_c2.jpg" width="102" height="42" border="0" alt=""></a></td> ');
  document.write('  <td><img name="n20070714_barra_sponsor_r1_c3" src="../images/20070714_barra_sponsor_r1_c3.jpg" width="46" height="42" border="0" alt=""></td> ');
  document.write('  <td><a href="http://www.zeta-car.com" target="_blank"><img name="n20070714_barra_sponsor_r1_c4" src="../images/20070714_barra_sponsor_r1_c4.jpg" width="138" height="42" border="0" alt=""></a></td> ');
  document.write('  <td><img name="n20070714_barra_sponsor_r1_c5" src="../images/20070714_barra_sponsor_r1_c5.jpg" width="33" height="42" border="0" alt=""></td> ');
  document.write('  <td><a href="http://www.archimedediffusori.com" target="_blank"><img name="n20070714_barra_sponsor_r1_c6" src="../images/20070714_barra_sponsor_r1_c6.jpg" width="101" height="42" border="0" alt=""></a></td> ');
  document.write('  <td><img name="n20070714_barra_sponsor_r1_c7" src="../images/20070714_barra_sponsor_r1_c7.jpg" width="14" height="42" border="0" alt=""></td> ');
  document.write('  <td><a href="http://www.referencelaboratory.com" target="_blank"><img name="n20070714_barra_sponsor_r1_c8" src="../images/20070714_barra_sponsor_r1_c8.jpg" width="214" height="42" border="0" alt=""></a></td> ');
  document.write('  <td><img name="n20070714_barra_sponsor_r1_c9" src="../images/20070714_barra_sponsor_r1_c9.jpg" width="13" height="42" border="0" alt=""></td> ');
  document.write('  <td><img src="../images/spacer.gif" width="1" height="42" border="0" alt=""></td> ');
  document.write(' </tr> ');
  document.write(' </table> ');
}




// ******************************************
// Inserisce un pannello con le immagini e i 
// link degli sponsor. 
// ******************************************
function sponsor()
{
document.write('<table border="0" align="center" cellpadding="0" cellspacing="0" width="674"> ');
 document.write('<!-- fwtable fwsrc="20070714 barra pubblicità.png" fwbase="20070714_barra_sponsor.jpg" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" --> ');
 document.write('  <tr> ');
  document.write('  <td><img src="images/spacer.gif" width="14" height="1" border="0" alt=""></td> ');
 document.write('   <td><img src="images/spacer.gif" width="102" height="1" border="0" alt=""></td> ');
 document.write('   <td><img src="images/spacer.gif" width="46" height="1" border="0" alt=""></td> ');
 document.write('   <td><img src="images/spacer.gif" width="138" height="1" border="0" alt=""></td> ');
 document.write('   <td><img src="images/spacer.gif" width="33" height="1" border="0" alt=""></td> ');
 document.write('   <td><img src="images/spacer.gif" width="101" height="1" border="0" alt=""></td> ');
  document.write('  <td><img src="images/spacer.gif" width="14" height="1" border="0" alt=""></td> ');
  document.write('  <td><img src="images/spacer.gif" width="214" height="1" border="0" alt=""></td> ');
   document.write(' <td><img src="images/spacer.gif" width="12" height="1" border="0" alt=""></td> ');
  document.write('  <td><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td> ');
  document.write(' </tr> ');
  document.write(' <tr> ');
  document.write('  <td><img name="n20070714_barra_sponsor_r1_c1" src="images/20070714_barra_sponsor_r1_c1.jpg" width="14" height="42" border="0" alt=""></td> ');
  document.write('  <td><a href="http://www.prsguitars.com" target="_blank"><img name="n20070714_barra_sponsor_r1_c2" src="images/20070714_barra_sponsor_r1_c2.jpg" width="102" height="42" border="0" alt=""></a></td> ');
  document.write('  <td><img name="n20070714_barra_sponsor_r1_c3" src="images/20070714_barra_sponsor_r1_c3.jpg" width="46" height="42" border="0" alt=""></td> ');
  document.write('  <td><a href="http://www.zeta-car.com" target="_blank"><img name="n20070714_barra_sponsor_r1_c4" src="images/20070714_barra_sponsor_r1_c4.jpg" width="138" height="42" border="0" alt=""></a></td> ');
  document.write('  <td><img name="n20070714_barra_sponsor_r1_c5" src="images/20070714_barra_sponsor_r1_c5.jpg" width="33" height="42" border="0" alt=""></td> ');
	  document.write('  <td><a href="http://www.archimedediffusori.com" target="_blank"><img name="n20070714_barra_sponsor_r1_c6" src="images/20070714_barra_sponsor_r1_c6.jpg" width="101" height="42" border="0" alt=""></a></td> ');
  document.write('  <td><img name="n20070714_barra_sponsor_r1_c7" src="images/20070714_barra_sponsor_r1_c7.jpg" width="14" height="42" border="0" alt=""></td> ');
  document.write('  <td><a href="http://www.referencelaboratory.com" target="_blank"><img name="n20070714_barra_sponsor_r1_c8" src="images/20070714_barra_sponsor_r1_c8.jpg" width="214" height="42" border="0" alt=""></a></td> ');
  document.write('  <td><img name="n20070714_barra_sponsor_r1_c9" src="images/20070714_barra_sponsor_r1_c9.jpg" width="12" height="42" border="0" alt=""></td> ');
  document.write('  <td><img src="images/spacer.gif" width="1" height="42" border="0" alt=""></td> ');
  document.write(' </tr> ');
  document.write(' </table> ');
}





// ******************************************
// Inserisce una colonna con le immagini e i 
// link di progetti versione ENG. 
// ******************************************
function progetti_eng()
{
document.write('<a href="eng_projects_caffe_espresso_blues_latino.html"><img src="images/ita_progetti_caffe_espresso_blues_latino.jpg" width="191" height="136" border="0"></a><br>');
        document.write('<br>'); 
		document.write('<a href="eng_projects_esperando_sito.html"><img src="images/ita_progetti_esperando.jpg" width="185" height="85" border="0"></a><br>');
        document.write('<br>');
        document.write('<a href="eng_projects_last_call_sito.html"><img src="images/ita_progetti_last_call.jpg" width="186" height="68" border="0"></a><br>');
		document.write('<br>');      
		document.write('<a href="eng_projects_barbara_carr.html"><img src="images/ita_progetti_barbara_carr.jpg" width="183" height="52" border="0"></a><br>');
        document.write('<br>');
        document.write('<a href="eng_projects_blues_swingers.html"><img src="images/ita_progetti_blues_swingers.jpg" width="188" height="55" border="0"></a><br>');
        document.write('<br>');    
		document.write('<a href="eng_projects_jazz_project_trio.html"><img src="images/ita_progetti_jazz_project.jpg" width="180" border="0"></a><br>');
        document.write('<br> ');
		document.write('<a href="eng_projects_e3.html"><img src="images/ita_progetti_e3.jpg" width="149" height="95" border="0"></a><br>');
        document.write('<br>');  
        document.write('<a href="eng_projects_caffe_espresso.html"><img src="images/ita_progetti_caffe_espresso.jpg" width="192" height="46" border="0"></a><br>');
        document.write('<br> ');
        document.write('<a href="eng_projects_blues_swingers_orchestra.html"><img src="images/ita_progetti_blues_swingers_orchestra.jpg" width="188" height="55" border="0"></a><br>');
        document.write('<br> ');		
}

// ******************************************
// Inserisce una colonna con le immagini e i 
// link di progetti versione ENG. 
// ******************************************
function progetti_ita()
{
document.write(' <a href="ita_progetti_caffe_espresso_blues_latino.html"><img src="images/ita_progetti_caffe_espresso_blues_latino.jpg" width="191" height="136" border="0"></a><br>');
        document.write('<br> ');
		document.write(' <a href="ita_progetti_esperando.html"><img src="images/ita_progetti_esperando.jpg" width="185" height="85" border="0"></a><br>');
        document.write(' <br>');
        document.write(' <a href="ita_progetti_last_call.html"><img src="images/ita_progetti_last_call.jpg" width="186" height="68" border="0"></a><br>');
		document.write(' <br>  ');    
		document.write(' <a href="ita_progetti_barbara_carr.html"><img src="images/ita_progetti_barbara_carr.jpg" width="183" height="52" border="0"></a><br>');
        document.write(' <br>');
        document.write(' <a href="ita_progetti_blues_swingers.html"><img src="images/ita_progetti_blues_swingers.jpg" width="188" height="55" border="0"></a><br>');
        document.write(' <br> ');   
		document.write('<a href="ita_progetti_jazz_project_trio.html"><img src="images/ita_progetti_jazz_project.jpg" width="180" border="0"></a><br>');
        document.write('<br> ');
		document.write(' <a href="ita_progetti_e3.html"><img src="images/ita_progetti_e3.jpg" width="149" height="95" border="0"></a><br>');
        document.write(' <br> ');   
        document.write(' <a href="ita_progetti_caffe_espresso.html"><img src="images/ita_progetti_caffe_espresso.jpg" width="192" height="46" border="0"></a><br>');
        document.write(' <br>');
        document.write(' <a href="ita_progetti_blues_swingers_orchestra.html"><img src="images/ita_progetti_blues_swingers_orchestra.jpg" width="188" height="55" border="0"></a><br>');
       document.write('  <br> ');		
}




// ******************************************
// Apre una popup. 
// Dichiarare, nel file prima della function: var popUpWin=0; 
// Per chiamare la function, ad esempio: popUpWindow('nomefilexxx', 10, 10, 600, 500)
// ******************************************
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}


// ******************************************
// Apre una popup, con barra di scorrimento laterale 
// Dichiarare, nel file prima della function: var popUpWin=0; 
// Per chiamare la function, ad esempio: popUpWindow('nomefilexxx', 10, 10, 600, 500)
// ******************************************
function popUpScroll(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=yes,location=no,directories=no,status=no,menub ar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
  popUpWin.focus();
}

// ************************************************
// Apre una popup sul body della homepage ita e ing
// con il file HTML desiderato
// la popup è attiva da giono (1 - 30 opp 31 opp 28 opp 29) ... a giorno ... del mese (0 - 11)
// Dichiarare, nel file prima della function: var popUpMessaggiHome=0; 
// Per chiamare la function, ad esempio: popupMessaggiHomepage('nomefilexxx', 10, 10, 600, 500)
// ************************************************
function popupMessaggiHomepage(URLStr, left, top, width, height)
{
 // Apre una popup dal giono (1 - 30 opp 31 opp 28 opp 29) ... al giorno ... del mese (0 - 11)
  var annoScadenzaattivaPopup = 2008;
  var meseScadenzaattivaPopup = 0;
  var giornoScadenzaattivaPopup = 15;  
 // Crea un numero realizzato con la data di scadenza per agevolare il confronto if
  if (meseScadenzaattivaPopup < 10)
  	meseScadenzaattivaPopup = "0" + meseScadenzaattivaPopup;
  if (giornoScadenzaattivaPopup < 10)
  	giornoScadenzaattivaPopup = "0" + giornoScadenzaattivaPopup;
  dataScadenza = annoScadenzaattivaPopup + "0" + meseScadenzaattivaPopup + "0" + giornoScadenzaattivaPopup;
 
 // Recupera la data odierna
  var oggi = new Date();
  var giorno = oggi.getDate();
  var mese = oggi.getMonth();
  var anno = oggi.getYear();
 //*** Elimino l'errore di data del Netscape 4 e 6 pr1 - (C) by Filippo Spadaro ***
  var browserName = navigator.appName;
  var browserVer = parseInt(navigator.appVersion);
  if ((browserName=="Netscape") && (anno<2000))
    anno=anno+1900;
 // Crea un numero realizzato con la data attuale per agevolare il confronto if
   if (mese < 10)
  	mese = "0" + mese;
  if (giorno < 10)
  	giorno = "0" + giorno;	
  dataAttuale = anno + "0" + mese + "0" + giorno;

 // Apre eventuale popup se la data Attuale è precedente la data di Scadenza
  if (dataAttuale<=dataScadenza)
 	{
	  if(popUpMessaggiHome)
	  {
		if(!popUpMessaggiHome.closed) popUpMessaggiHome.close();
	  }
	  popUpMessaggiHome = open(URLStr, 'popUpMessaggiHome', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
	  popUpMessaggiHome.focus();
	}
}
 
 