function menustring()
{
menustring = '<p><a href="semplicita.html" title="Semplicit&agrave;"><strong>S</strong>emplicit&agrave;</a></p>'
menustring += '<p><a href="preghiera.html" title="Preghiera"><strong>P</strong>reghiera</a></p>'
menustring += '<p><a href="eucarestia.html" title="Eucarestia"><strong>E</strong>ucarestia</a></p>'
menustring += '<p><a href="silenzio.html" title="Silenzio"><strong>S</strong>ilenzio</a></p>'
menustring += '<p><a href="speranza.html" title="Speranza"><strong>S</strong>peranza</a></p>'
document.write(menustring)
return
}

function validazione(nomeform)
				{
				//imposto la variabile che segnalerą l'errore
				var error=0;
				//prendo il contenuto HTML compreso nel mio form
				var form_html=document.form1.innerHTML;
				//controllo che il browser supporti questo tipo di funzione
				if(document.getElementsByTagName)
				{
				//predispongo un array con tutti i possibili elementi che conterrą il form
				var tipo_dati=new Array('input','textarea','select');
				for(j=0; j < tipo_dati.length; j++)
				{
				var x=document.getElementsByTagName(tipo_dati[j]);
				for(i=0; i <x.length; i++)
				{
				var campo=x.item(i).name;
				//controllo che il nome del campo sia impostato
				if(campo!='')
				{
				//istruzione uguale per entrambi i browser
				var valore=x.item(i).value;
				if(navigator.appName.indexOf("Netscape")>=0)
				{
				var test=x.item(i).attributes;
				for(var a=test.length-1; a>=0; a--)
				{
				switch(test[a].name)
				{
				case "obbligatorio":
				var obbligatorio=test[a].value;
				break;
				case "msg_errore":
				var msg=test[a].value;
				break;
				case "dato":
				var tipo_dato=test[a].value;
				break;
				case "regex":
				var regex=test[a].value;
				break;
				}
				}
				}
				else
				{
				var obbligatorio=x.item(i).obbligatorio;
				var msg=x.item(i).msg_errore;
				var tipo_dato=x.item(i).dato;
				var regex=x.item(i).regex;
				} if(obbligatorio==1 && valore=='')
				{
				alert(campo + '-> ' + msg);
				error=1;
				}
				if(obbligatorio==1 && valore!='' && regex=='')
				{
				if(tipo_dato=='int' && isNaN(valore))
				{
				alert(campo + '-> ' +msg);
				error=1;
				}
				if(tipo_dato=='char' && !isNaN(valore))
				{
				alert(campo + '-> ' +msg);
				error=1;
				}
				} if(obbligatorio==1 && valore!='' && regex!='')
				{
				//prendo il pattern passato dal mio elemento HTML
				var pattern=new RegExp(regex);
				var result=valore.search(pattern);
				if(result!=0)
				{
				alert(campo + '-> ' +msg);
				error=1;
				}
				}
				}//campo
				}//for i
				}//for j
				}
				else
				{
				alert('Il tuo browser non supporta questo tipo di funzione');
				return false;
				}
				//Se tutto č andato a buon fine invia il form
				if(error==0)
				{
				document.forms[nomeform].submit();
				}
				}//END

function hidemail( part1, part2, part3, part4 )
{
return part1+part2+part3+part4
}

function TreeMenu(id) {
    this.init = function() {
        if (!document.getElementById(this.id)) {
            alert("Element '"+this.id+"' does not exist in this document. TreeMenu cannot be initialized");
            return;
        }
        this.parse(document.getElementById(this.id).childNodes, this.tree, this.id);
    }

    this.parse = function(nodes, tree, id) {
        for (var i = 0; i < nodes.length; i++) {
            if (nodes[i].nodeType != 1) {
                continue;
            }
            if (nodes[i].tagName.toLowerCase() == "li") {
                nodes[i].id = id + "-" + tree.length;
                tree[tree.length] = new Array();
                if (nodes[i].childNodes && this.hasUl(nodes[i].childNodes)) {
                    nodes[i].className = "section";
                    var a;
                    if (a = this.getA(nodes[i].childNodes)) {
                        a.id = nodes[i].id + "-a";
                        eval("document.getElementById('"+a.id+"').onclick = function() {"+
                            "self.click('"+nodes[i].id+"');"+
                        "}");
                    }
                } else {
                    nodes[i].className = "box";
                }
            }
            if (nodes[i].tagName.toLowerCase() == "ul") {
                nodes[i].style.display = "none";
                id = id + "-" + (tree.length - 1);
                nodes[i].id = id + "-section";
                tree = tree[tree.length - 1];
            }
            if (nodes[i].childNodes) {
                this.parse(nodes[i].childNodes, tree, id);
            }
        }
    }

    this.hasUl = function(nodes) {
        for (var i = 0; i < nodes.length; i++) {
            if (nodes[i].nodeType != 1) {
                continue;
            }
            if (nodes[i].tagName.toLowerCase() == "ul") {
                return true;
            }
            if (nodes[i].childNodes) {
                if (this.hasUl(nodes[i].childNodes)) {
                    return true;
                }
            }
        }
        return false;
    }

    this.getA = function(nodes) {
        for (var i = 0; i < nodes.length; i++) {
            if (nodes[i].nodeType == 1) {
                if (nodes[i].tagName.toLowerCase() == "a") {
                    return nodes[i];
                }
                return false;
            }
        }
    }

    this.click = function(id) {
        e1 = document.getElementById(id + "-section");
        e2 = document.getElementById(id);
        if (e1.style.display == "none") {
            e1.style.display = "";
            e2.className = "section-open";
        } else {
            e1.style.display = "none";
            e2.className = "section";
        }
    }

    var self = this;
    this.id = id;
    this.tree = new Array();
    this.init();
}

// FUNZIONE NEWS SCROLL

var delayb4scroll=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=''

function scrollmarquee(){
if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
else
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
}

function initializemarquee(){
cross_marquee=document.getElementById("vmarquee")
cross_marquee.style.top=0
marqueeheight=document.getElementById("marqueecontainer").offsetHeight
actualheight=cross_marquee.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee.style.height=marqueeheight+"px"
cross_marquee.style.overflow="scroll"
return
}
setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)
}
