// *****************************************************************************
// **                                SETTINGS                                 **
// *****************************************************************************

// 'linka' use this if part of the URL is the same in ALL the links
// In this example all the files are in a subfolder called 'pages'
linka='';

// the filename of the page the menu appears in eg 'menu.html'
thisPage='menu.html';

// Do you want to use images for the category bullets?
// If so then specify the path to your images folder from the menu page
imgPath='/';

// do you want to use images for the category bullets?
lev1img='yes';					// insert yes or no

// give image names and dimensions
lev1OpName='arrow-trans.gif';			// open image name
lev1OpHeight='15';				// image height
lev1OpWidth='1';				// image width

lev1ClosName='arrow-trans.gif';		// closed image name
lev1ClosHeight='15';			// image height
lev1ClosWidth='1';				// image width

// do you want to use images for the sub-category bullets?
lev2img='yes';		// insert yes or no

// give image names and dimensions
lev2Name='bullet.gif';			// image name
lev2Height='10';				// image height
lev2Width='16';					// image width

// do you want to use a text character for the sub-category bullets?
lev2Char='no';		// insert yes or no

// set bullet character for level 2 bullets
bullet = '› ';

// base target - the frame that the links are targetting
base = 'main';

// *****************************************************************************
// **                             END OF SETTINGS                             **
// *****************************************************************************

// pulls 'page' variable out of URL - do not alter
	var x = 0
	page = location.search.substr(1).split("?")
	for (x=0;x<=page.length;x++) {
		eval(page)
		}
page = escape(page);
page = page.slice(7);

// do not alter this bit
function subMenu(name,linkb) {
 this.name = name;
 this.linkb = linkb;
}
document.write('<BASE target="' + base + '">');

// *****************************************************************************
// **                             BUILD MENU DATA                             **
// *****************************************************************************

// Home
if (page=='h') {
thisMenu = new Array();
parent.main.location.href = 'main.htm'; 
}

// Site Search
if (page=='ss') {
thisMenu = new Array();
parent.main.location.href = 'search/search.html'; 
}

// New and Updated
if (page=='nu') {
thisMenu = new Array();
parent.main.location.href = 'new.html'; 
}

// Site Map
if (page=='sm') {
thisMenu = new Array();
parent.main.location.href = 'map.html'; 
}

// Bishop Guglielmone
if (page=='bg') {
thisMenu = new Array();
parent.main.location.href = 'bishopguglielmone/index.htm'; 
}


// Building & Renovation Commission
if (page=='brc') {
thisMenu = new Array();
parent.main.location.href = 'br/index.html'; 
}
 
// Campus Ministry
if (page=='cm') {
thisMenu = new Array();
parent.main.location.href = 'campus/index.html'; 
}

// Catechesis and Christian Initiation
if (page=='ci') {
thisMenu = new Array();
parent.main.location.href = 'catechesis/index.html'; 
}

// Catholic Schools Office
if (page=='cso') {
thisMenu = new Array();
parent.main.location.href = 'cso/index.php'; 
}


// Diocesan Information
if (page=='di') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Statistics','doc-stats-2009.htm');
thisMenu[1] = new subMenu('History','doc-history2009.html');
thisMenu[2] = new subMenu('Calendar','http://docnotes.catholic-doc.org/mail/dcalenda.nsf/738cb93ae2e1b7f8852564b5001283e2?OpenView&Grid=4&');
thisMenu[3] = new subMenu('Diocesan Offices','doc-offices09.htm');
thisMenu[4] = new subMenu('Telephone Directory','http://docnotes.catholic-doc.org/phones.nsf/d61414c3ac6c34ab8525673600592023?OpenView&Start=1&Count=120');
thisMenu[5] = new subMenu('Email Directory','ns-email.html');
}

// Diocesan Departments Menu
if (page=='dd') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Archives','archives/index.html');
thisMenu[1] = new subMenu('Catholic Charities','catholiccharities/INDEX.html');
thisMenu[2] = new subMenu('Child Protection Services/VIRTUS','cps/index.html');
thisMenu[3] = new subMenu('Computer Services','/cs/index.html');
thisMenu[4] = new subMenu('Diaconate','/diaconate/index.html');
thisMenu[5] = new subMenu('Ecumenical','ecumenical/index.htm');
thisMenu[6] = new subMenu('Ethnic Ministries','em/index.html');
thisMenu[7] = new subMenu('Family Life','http://www.sc-familylife.org');
thisMenu[8] = new subMenu('Finance','finance/index.html');
thisMenu[9] = new subMenu('Human Resources','hr/index.html');
thisMenu[10] = new subMenu('Media Relations','media/index.html');
thisMenu[11] = new subMenu('Newspaper','http://www.themiscellany.org');
thisMenu[12] = new subMenu('Planning & Research','planningresearch/index.html'); 
thisMenu[13] = new subMenu('Publications','publication/index.html');
thisMenu[14] = new subMenu('Stewardship','stewardship/index.html');	
thisMenu[15] = new subMenu('Tribunal','Tribunal/index.html');
thisMenu[16] = new subMenu('Vocations','vocations/index.html');
thisMenu[17] = new subMenu('Volunteers Program','volunteers/index.html');
thisMenu[18] = new subMenu('Youth Ministry','http://www.catholic-doc.org/ym/index.html');
}

// Parish/School Menu
if (page=='ps') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Listing of Parishes','http://data.catholic-doc.org/dir_display_app/DDARequestController?ProcessType=request_p910&PersonnelType=3&FilterName=A&CurrentMode=firstpage&CountryCode=US&LanguageCode=en');
thisMenu[1] = new subMenu('Listing of Schools','cso/schoolslist.html');
thisMenu[2] = new subMenu('Parish & School Sites','ns-scps.html');
}

if (page=='dpc') {
thisMenu = new Array();
parent.main.location.href = 'dpc/index.html'; 
}

// Personnel Menu
if (page=='p') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Priests','http://data.catholic-doc.org/dir_display_app/DDARequestController?ProcessType=request_p900&PersonnelType=2&FilterName=A&CurrentMode=firstpage&CountryCode=US&LanguageCode=en');
thisMenu[1] = new subMenu('Deacons','http://data.catholic-doc.org/dir_display_app/DDARequestController?ProcessType=request_p902&PersonnelType=5&FilterName=A&CurrentMode=firstpage&CountryCode=US&LanguageCode=en');
thisMenu[2] = new subMenu('Sisters','http://data.catholic-doc.org/dir_display_app/DDARequestController?ProcessType=request_p904&PersonnelType=4&FilterName=A&CurrentMode=firstpage&CountryCode=US&LanguageCode=en');
thisMenu[3] = new subMenu('Brothers','http://data.catholic-doc.org/dir_display_app/DDARequestController?ProcessType=request_p906&PersonnelType=3&FilterName=A&CurrentMode=firstpage&CountryCode=US&LanguageCode=en');
}

if (page=='v') {
thisMenu = new Array();
parent.main.location.href = 'vocations/index.html'; 
}

if (page=='virtus') {
thisMenu = new Array();
parent.main.location.href = 'cps/VIRTUS.html'; 
}

if (page=='sapp') {
thisMenu = new Array();
parent.main.location.href = 'SAPolicy.html'; 
}
// Site Search
if (page=='ss') {
thisMenu = new Array();
parent.main.location.href = 'search/search.html'; 
}
// Site Map
if (page=='sm') {
thisMenu = new Array();
parent.main.location.href = 'sitemap_09.html'; 
}

// Videos
if (page=='vid') {
thisMenu = new Array();
parent.main.location.href = 'videos.html'; 
}
