﻿/************************************************************************************/
function sommario()
{
    var sito=new Array();
    var link=new Array();
    var f,evidenzia,nonevidenzia;

    //Lista di links del menù.
    sito[0]=" Homepage "
    sito[1]=" Storia dell' Agesci  "
    sito[2]=" Storia del gruppo"
    sito[3]=" Comunita Capi"
    sito[4]=" Lupetti "
    sito[5]=" Esploratori "
    sito[6]=" Clan "
    sito[7]=" Foto "
    sito[8]=" Leggi Guestbook "
    sito[9]=" Firma Guestbook  "
    sito[10]=" Preziosi link  "


    //Questi sono i links.
    link[0]="home.htm" 
    link[1]="Storiagesci.htm" 
    link[2]="storia.htm" 
    link[3]="coca.htm" 
    link[4]="lupetti.htm" 
    link[5]="reparto.htm"
    link[6]="clan.htm "
    link[7]="foto.htm"
    link[8]="http://www.pollit.com/guestbook/entries?gbID=30214&gbaction=viewResponses&qxe=bbhbcebccbacbaibab&email=rosario.valenti%40tiscalinet.it Leggi Guestbook"
    link[9]="guestbook.htm"
    link[10]="link.htm"


    for (i=0;i<=sito.length-1;i++ )
    {
       f="font" + i;
       evidenzia=" Change(" + f + ") " ;
       nonevidenzia=" resetChange(" + f + ") ";
       document.write('<a href='+ link[i] +' onMouseOver='+ evidenzia +' onMouseOut='+ nonevidenzia+' ><font id=' + f + ' size="3" color="#800000">'+ sito[i] +' </font></a><br>')
    }
  }
/************************************************************************************/  
function Change(f)//Illumina la scritta dei link
{
    f.size='+1';
    f.color='#FFFACD';
    f.style.background='Maroon';
    f.style.fontWeight =800;
}
function resetChange(f)//Fa ritornare la scritta come prima
{
 f.size='-0';
 f.color='#800000';       
 f.style.background='none';
 f.style.fontWeight ='normal';
}
/************************************************************************************/ 

function toolbarWrite()
{
var scrtxt="                             " +
"www.motta1.org --- Realizzazione: Rosario Valenti --- " +
"--- Gruppo Agesci Motta S. Anastasia 1° --- Mail: postmaster@motta1.org";
var lentxt=scrtxt.length;
var largh=100;
var pos=-1;
scorrevole() ;
}
/************************************************************************************/ 
function scorrevole() 
{
  pos++;
  var scroller="";
  if (pos==lentxt) 
  { pos=0;
  }
  else 
  {
  //Substring(i,j) prende j elementi a partire dalla posizione i 
  scroller=scrtxt.substring(pos,largh+pos);
  }
  window.status = scroller;
  setTimeout("scorrevole()",150);
  }
/************************************************************************************/ 
function byebyewin() 
  {
windowLeaving=window.open("",'Leaving','toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=0,top=300,left=300,width=500,height=180');
windowLeaving.document.writeln("<head><title>Ciao e Grazie</title></head><body background='Immagini/sfondo_antico.jpg' text=#800000>"); 
windowLeaving.document.writeln('<h3><center>Torna presto a trovarci!!!</center> <img border="0" src="Immagini/Sole.gif" align="right" width="90" height="60"></h3> ');
windowLeaving.document.writeln("<h2><center>Gruppo scout Motta S Anastasia 1° </center></h2> ");
windowLeaving.document.writeln('<h3><center>www.motta1.org</center> <img border="0" src="Immagini/FIS.jpg" align="top left" width="85" height="34"></h3>');
windowLeaving.document.writeln('</a>');
windowLeaving.setTimeout("self.close()",6000); 
}
/************************************************************************************/ 



/************************************************************************************/ 

function PulsazioneUp()//Espande il colore
{
    
if (i < spessore_finale)
{
// Glow da l'effetto brillanza sfumato attorno al testo(Colore,spessore)
testo.style.filter = "Glow(Color=" + Colore + ", Strength=" + i + ")";
i++;
 setTimeout('PulsazioneUp()',lentezza);
return 0;
}

if (i==spessore_finale)
 {
  setTimeout('PulsazioneDown()',lentezza);
 return 0;
 }
}
/************************************************************************************/ 

function PulsazioneDown()//Restringe il colore
{testo=document.getElementById('testo');
if (i > spessore_iniziale)
{
testo.style.filter = "Glow(Color=" + Colore + ", Strength=" + i + ")";
i--;
 setTimeout('PulsazioneDown()',lentezza);
return 0;
}
if (i == spessore_iniziale)
{     return 0;

}
}
/************************************************************************************/ 

function apriPhotoViewer(page)
{
   
   winOpened=window.open(page,"popup","resizable=1,height=800,width=900,scrollbars=yes,toolbar=no,location=no,directories=no");
   //'window.open("http://www.motta1.org/snitz/","popup","resizable=1,toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes")'
}
   

