/* Valori Accettati per TIPOLOGIA_MENU
0 - Scritta NEW dopo il link
1 - Scritta NEW prima del link
*/
var tipologia_menu=0; 
var classe1="menu";		/*classe applicata alla voce di menu non selezionata*/
var classe2="sel";		/*classe applicata alla voce di menu selezionata*/
/*arrNew:  ARRAY delle pagine NUOVE (scritta NEW)*/
arrNew=new Array(
	/*"pagina1.html",*/	
	"pagina10_bis.html",
	"pagina19_bis.html",
	"pagina24.html",
	"pagina25.html",
	"pagina26.html",
	"pagina28.html",
	"pagina34.html",
	"pagina36.html",
	"pagina39_bis.html",
	"pagina48.html"
);
/*arrPag:  ARRAY delle pagine (link)*/
arrPag = new Array(
/*1 */ "pagina1.html", 
/*2 */ "pagina2.html", 
/*3 */ "pagina3.html", 
/*4 */ "pagina4.html", 
/*5 */ "pagina5.html", 
/*6 */ "pagina6.html", 
/*7 */ "pagina7.html", 
/*8 */ "pagina8.html", 
/*9 */ "pagina9.html", 
/*10_bis*/ "pagina10.html",
/*10*/ "pagina10_bis.html",
/*11*/ "pagina11.html",
/*12*/ "pagina12.html",
/*13*/ "pagina13.html",
/*14*/ "pagina14.html",
/*15*/ "pagina15.html",
/*16*/ "pagina16.html",
/*17*/ "pagina17.html",
/*18*/ "pagina18.html",
/*19*/ "pagina19.html",
/*19_bis*/ "pagina19_bis.html",
/*20*/ "pagina20.html",
/*21*/ "pagina21.html",
/*22*/ "pagina22.html",
/*23*/ "pagina23.html",
/*24*/ "pagina24.html",
/*25*/ "pagina25.html",
/*26*/ "pagina26.html",
/*27*/ "pagina27.html",
/*28*/ "pagina28.html",
/*29*/ "pagina29.html",
/*30*/ "pagina30.html",
/*31*/ "pagina31.html",
/*32*/ "pagina32.html",
/*33*/ "pagina33.html",
/*33*/ "pagina34.html",
/*35*/ "pagina35.html",
/*36*/ "pagina36.html",
/*37*/ "pagina37.html",
/*38*/ "pagina38.html",
/*39*/ "pagina39.html",
/*39_bis*/ "pagina39_bis.html",
/*40*/ "pagina40.html",
/*41*/ "pagina41.html",
/*42*/ "pagina42.html",
/*43*/ "pagina43.html",
/*44*/ "pagina44.html",
/*45*/ "pagina45.html",
/*46*/ "pagina46.html",
/*47*/ "pagina47.html",
/*48*/ "pagina48.html",
/*49*/ "pagina49.html"
);
/*arrMen:  ARRAY delle voci di menu*/
arrMen = new Array(
/*1 */	  	   "Why is it necessary to announce Jesus Christ?",
/*2 */         "Evangelisation: why and how?",
/*3 */         "Why are the Four Gospels the heart of  Christian Faith?",
/*4 */         "Jesus Christ: how is he true God and true man?",
/*5 */         "The Resurrection of Christ: Why is it the high point of the Christian Faith?",
/*6 */         "Yes to Christ, No to the Church?",
/*7 */         "The primacy of Peter: When and how did Christ entrust it to him?",
/*8 */         "Ecumenism: What is the relationship of the Catholic Church to the Orthodox Churches, and the non-Catholic Christian communities?",
/*9 */         "The Catholic Church and non-Christian religions.",
/*10*/         "I am made in the image of God: What does this mean and what does it involve?",
/*10_bis*/     "Human rights and obligations: What are their foundation and characteristics?",
/*11*/         "How do we become Saints?",
/*12*/         "Why Baptise my Child?",
/*13*/         "Why go to Mass every Sunday?",
/*14*/         "How do I sanctify Sunday?",
/*15*/         "When and how should I go to confession?",
/*16*/         "Examination of conscience: how do i make one before going to confession (using the Ten Commandments)?",
/*17*/         "What moral conscience?",
/*18*/         "How to pray?",
/*19*/         "How to meditate as Christians?",
/*19_bis*/     "Lent: How to live it?",
/*20*/         "Our Lady: how do we venerate her?",
/*21*/         "The holy rosary",
/*22*/         "The angels: who are they and what do they do?",
/*23*/         "Indulgences: How do they benefit the living and the deceased?",
/*24*/         "Holy images: why?",
/*25*/         "Liturgical Vestments: what is their religious meaning?",
/*26*/         "Extraordinary phenomena : how are they to be evaluated?",
/*27*/         "The devil: how do we overcome him?",
/*28*/         "Magic, spiritism...:why are these things unacceptable?",
/*29*/         "Woman - Man: What is their relationship according to the Catholic Church?",
/*30*/         "Which love?",
/*31*/         "How should sexuality be lived in chastity?",
/*32*/         "Engaged couples: sexual intercourse yes or no?",
/*33*/         "Marriage and family: What is their concept in the Christian Faith?",
/*34*/         "Co-habitation, couples living together, common law marriages: should these be legalised?",
/*35*/         "Human paternity-maternity: How are they responsibly realized in marriage and family?",
/*36*/         "The Human Person: Which Dignity? Current Questions Of  Bioethics",
/*37*/         "Artificial insemination and in vitro fertilization: Are they morally acceptable?",
/*38*/         "Irregular affective situations: how are they considered by the Catholic Church?",
/*39*/         "Homosexuality and the Catholic Church.",
/*39_bis*/     "The priest: who is he and what does do?",
/*40*/         "Celibate priests: Why are priests in the Latin Church celibate?",
/*41*/		   "Illness: How can it be confronted as a christian?",
/*42*/         "Money: Is it a good or an evil?",
/*43*/         "When is work for man?",
/*44*/         "How should Christians be involved in politics?",
/*45*/         "Science and Christian Faith: How are they reconciled?",
/*46*/		   "What happens with and after death?",
/*47*/         "Which hope?",
/*48*/         "The death penalty: what does the church say?",
/*49*/         "Euthanasia"
);
menuSx = new Array(arrPag,arrMen);

objMenu=document.getElementById("menuLaterale")
for (var x=0; x<menuSx[0].length; x++){
	var elLI = document.createElement("li");
	var elA=document.createElement("a")
	var testoelA = document.createTextNode(menuSx[1][x]);
	if (tipologia_menu==0){
		elA.appendChild(testoelA);
	}
	for (var jk=0; jk<arrNew.length;jk++){
		if (arrNew[jk]==menuSx[0][x]){
			objImg1=document.createElement("img")
			objImg1.setAttribute("src","New_icons_17.gif")
			objImg1.setAttribute("align","absmiddle")
			objImg1.setAttribute("border","0")
			var testoelA1 = document.createTextNode("  ");
			if (tipologia_menu==0){
				elA.appendChild(testoelA1);
			}
			elA.appendChild(objImg1)
			if (tipologia_menu==1){
				elA.appendChild(testoelA1);
			}
		}
	}
	if (tipologia_menu==1){
		elA.appendChild(testoelA);
	}
	if (menuSx[0][x]==paginaCorrente){
		elA.setAttribute("className", classe2);
		elA.setAttribute("class", classe2);
		elLI.setAttribute("className", classe2);
		elLI.setAttribute("class", classe2);
	}
	else{
		elA.setAttribute("href",menuSx[0][x]);
		elA.setAttribute("className", classe1);
		elA.setAttribute("class", classe1);
	}
	elLI.appendChild(elA);
	objMenu.appendChild(elLI);
}