
var menu= [
	["http://www.sjf.org/about/","About Us",1],
	["http://www.sjf.org/sacraments/baptism.html","Baptisms",2],
	["http://www.sjf.org/sacraments/marriage.html","Weddings",3],
	["http://www.sjf.org/sacraments/communion.html","1st Communion",4],
	["http://www.sjf.org/confirmation/","Confirmation",10],
	["http://www.schoolspeak.com/schools/sjf/","Parish School",5],
	["http://www.sjf.org/rel-ed/","Religious Education",6],
	["http://www.sjf.org/youth/","Youth",7],
	["http://www.sjf.org/adulted/","Adult Faith Formation",11],
	["http://www.sjf.org/adulted/rcia.html","Becoming Catholic",9]
	];
	
var tmenu= [
	["http://www.sjf.org/staffs/","directory"],
	["http://www.sjf.org/bulletin.pdf","bulletin"],
	["http://www.sjf.org/mass.html","times of services"],
	["http://www.sjf.org/links.html","links"],
	["http://www.sjf.org/faq.html","FAQ"],
	["http://www.sjf.org/feedback.html","feedback"],
	["http://www.sjf.org/","home"]
	];
	
	/** * Display Left Menu dynamically
	 * index is the item number of the menu, starting from 1.
	 */
	   function showLM(index){
	   	var menutxt;
	   	document.writeln('<td class="lmenu" rowspan="4" width="160" valign="top" >\n');
	   	document.writeln('<a href="http://www.sjf.org/"><img src="http://www.sjf.org/Logo.gif" height="182" width="158" alt=""></a><br>');
		for (var i=0; i<menu.length; i++) {
			if (index == menu[i][2]) {menutxt=menu[i][1].toUpperCase( );
			document.writeln('<a class="lmenu" href="'+menu[i][0]+'"><b>' +menutxt + '</b></a><br>')}
			else {menutxt=menu[i][1];
			document.writeln('<a class="lmenu" href="'+menu[i][0]+'">' +menutxt + '</a><br>')}
			}
		document.writeln('</p><p align="center"><a class="lmenu" href="http://www.sjf.org/help/"><b>Need Assistance?<br>We\'re here to help!</b></a></p></td>');
		}	
	
	 /** * Display Top Menu dynamically
	 */
	   function showTM(){	
	   	var tm1=tmenu.length-1;
	   	document.writeln('<small>');
	   	for (var i=0; i<tm1; i++) 
					document.writeln('<a href="'+tmenu[i][0]+'">' +tmenu[i][1] + '</a> |');
		document.writeln('<a href="'+tmenu[tm1][0]+'">' +tmenu[tm1][1] + '</a></small>&nbsp;<br><img src="http://www.sjf.org/sjfbanner.gif" align="left" hspace="0" vspace="3"></td>');
		}

	
	 /** * Display RE Top Menu dynamically
	 */
	   function showTMR(){	
	   	var tm1=tmenu.length-1;
	   	document.writeln('<small>');
	   	for (var i=0; i<tm1; i++) 
					document.writeln('<a href="'+tmenu[i][0]+'">' +tmenu[i][1] + '</a> |');
		document.writeln('<a href="'+tmenu[tm1][0]+'">' +tmenu[tm1][1] + '</a></small>&nbsp;<br><img src="http://www.sjf.org/sjfbannerre.gif" align="left" hspace="0" vspace="3"></td>');
		}

	 /** * Display Bottom Menu dynamically
	 */
	   function showBM(){	
	   	var mm1=menu.length-1;
	   	document.writeln('<tr><td class="bmenu">');
	   	for (var i=0; i<mm1; i++) 
					document.writeln('<a href="'+menu[i][0]+'">' +menu[i][1] + '</a> |');
		document.writeln('<a href="'+menu[mm1][0]+'">' +menu[mm1][1] + '</a> | <a href="http://www.sjf.org/help/">Need Assistance?</a></td></tr>');
		}
		
	function copyRight(){		
		document.writeln('<center><font size="1">&copy; 2002 St. John Fisher. All rights reserved. <a href="http://www.sjf.org/privacy.html">Privacy Policy</a> <a href="http://www.sjf.org/ethics.html">Ethical Guidelines</a></font></center>');
	}

	function popup(mylink, windowname) {
		window.open(mylink, windowname, 'width=400,height=200,scrollbars=yes');
	}
