function htmlMenu(bookmark) {
	this.bookmark = bookmark;
	this.menuList = new Array();
	
	this.menuList[0] = new JBmenu('intro','INTRODUZZJONI','1','0', bookmark);
		this.menuList[0].addItem(
			new menuItem('X\'inhu Sinodu','intro/sinodu.html','?'), 
			new menuItem('Innu tas-Sinodu','intro/innu.html','?'), 
			new menuItem('Is-Sinodu fil-qosor','intro/process.html','Deskrizzjoni tas-Sinodu f\'immagini'), 
			new menuItem('Il-mixja tas-Sinodu Djocesan fil-qosor','intro/timeline.html','?'),
			new menuItem('Persuni','intro/persuni.html','?'),
			new menuItem('Ritratti','intro/gallerija.html','?'),
			new menuItem('Direttorju','intro/direttorju.html','?'),
			new menuItem('Talba tas-Sinodu','intro/talba.html','?')
			);
	this.menuList[1] = new JBmenu('tfal','TFAL','5','0', bookmark);
		this.menuList[1].addItem(
			new menuItem('Indici','tfal/index.html','?'),
			new menuItem('Djalogu','tfal/flash1.html','?'),
			new menuItem('Komunjoni','tfal/flash2.html','?')
			);
	this.menuList[2] = new JBmenu('news','AHBARIJIET','2','0', bookmark);
		this.menuList[2].addItem(
			new menuItem('indici','news/index.html','?'),
			new menuItem('ASSEMBLEA DJOĊESANA 2006—PROGRAMM','news/20060926-1.html'),
			new menuItem('Pjan Pastorali 2007-2008','news/20060330-1.html'),
			new menuItem('Assemblea Djocesana 2005','news/20051022-1.html'),
			new menuItem('It-twettiq tal-Pjan Pastorali 2005-2006','news/20050929-1.html'),
			new menuItem('Inkomplu b\'entuzjazmu u b\'energija gdida t-triq tat-twettiq tas-Sinodu.','news/20050516-1.html'),
			new menuItem('Flimkien fi Knisja mgedda bil-qawwa ta\' l-Ispirtu','news/20050510-1.html'),
			new menuItem('Titwaqqaf il-Kummissjoni Kultura', 'news/20050323-1.html','?'),
			new menuItem('L-ewwel Assemblea Djocesana wara s-Sinodu', 'news/20040914-1.html','?'),
			new menuItem('Booklets li jghinu biex jitwassal ahjar il-messagg tas-Sinodu', 'news/20040708-1.html','?'),
			new menuItem('Hidma biex jithejja pjan ta\' sentejn li jkompli t-twettiq tas-sinodu', 'news/20040615-1.html','?'),
			new menuItem('Harget is-CD Rom \'Is-Sinodu ghat-Tfal\'', 'news/20040423-1.html','?'),
			new menuItem('Arkivju','news/arch/index.html','?')
		);
	this.menuList[3] = new JBmenu('docs','DOKUMENTI','3','0', bookmark);
		this.menuList[3].addItem(
			new menuItem('Indici','docs/index.html','?'), 
			new menuItem('Pjan Pastorali 05/6','docs/pp05-6.html','?'), 
			new menuItem('&nbsp','docs/index.html','?'), 
			new menuItem('Introduzzjoni','docs/doc-0.html','?'), 
			new menuItem('Kultura-Socjet&agrave;-Knisja','docs/doc-1.html','?'), 
			new menuItem('Vizjoni ta\' Knisja','docs/doc-2.html','?'), 
			new menuItem('Lajci','docs/doc-3.html','?'), 
			new menuItem('Kelma/Xandir','docs/doc-4.html','?'), 
			new menuItem('Liturgija/Sagramenti','docs/doc-5.html','?'), 
			new menuItem('Djakonija/Gustizzja','docs/doc-6.html','?'), 
			new menuItem('Zwieg u Familja','docs/doc-7.html','?'), 
			new menuItem('Zghazagh u Adolexxenti','docs/doc-8.html','?'),
			new menuItem('Libretti','docs/libretti/index.html','?')
			);
	this.menuList[4] = new JBmenu('arch','ARKIVJU','4','0', bookmark);
		this.menuList[4].addItem(
			new menuItem('Indici','arch/index.html','?'),
			new menuItem('Arcisqof','arch/bishop/index.html','?'),
			new menuItem('Rapporti','arch/reports/index.html','?'),
			new menuItem('Artikli: Gensillum','arch/pressclips/ilgensillum/index.html','?'),
			new menuItem('Artikli: Flimkien','arch/pressclips/flimkien/index.html','?'),
			new menuItem('Design+Coding: Manifesto','arch/colophon/manifesto.html','Requires 6+ browsers')
			);
		
	var code = '<div id="submenuBlock">\n	<div id="submenus" >\n';
	for (var i= 0; i < this.menuList.length; i++) {
		code += this.menuList[i].code();
	}
	code += '</div>\n	</div>\n';
	this.code = code;
}

//###########################
var siteName = "www"; //set root to which the links will relate
if (document.all || document.getElementById) { // cheap kludge to check for compliant browsers
	var subMenus = new htmlMenu(siteName);
	document.write(subMenus.code);
	document.close;
} 
else {
	x = location.href.split('/');
	y = x[x.length-1];
	if ( y == 'index.html') {alert('For better site surfing, \n use Netscape 6+ or IE 5+')};
}
