/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(s);
}

var POS_NODENAME=0;
var POS_ID=1;
var POS_NAME=2;
var POS_NAVIGATIONTEXT=3;
var POS_HREF=4;
var POS_ISNAVIGATION=5;
var POS_CHILDS=6;
var POS_TEMPLATENAME=7;
var POS_TARGET=8;
var theSitetree=[ 
	['PAGE','6501',jdecode('Home'),jdecode(''), jdecode('%2F6501.html'), 'true',[],'',''],
	['PAGE','6552',jdecode('Mission+Statement'),jdecode(''), jdecode('%2F6552%2Findex.html'), 'true',[ 
		['PAGE','6573',jdecode('History'),jdecode(''), jdecode('%2F6552%2F6573.html'), 'true',[],'',''],
		['PAGE','6594',jdecode('Adoration+Chapel'),jdecode(''), jdecode('%2F6552%2F6594.html'), 'true',[],'',''],
		['PAGE','6615',jdecode('Safe+Environment'),jdecode(''), jdecode('%2F6552%2F6615.html'), 'true',[],'',''],
		['PAGE','6636',jdecode('Feast+Day'),jdecode(''), jdecode('%2F6552%2F6636.html'), 'true',[],'',''],
		['PAGE','6657',jdecode('Staff+Photos'),jdecode(''), jdecode('%2F6552%2F6657.html'), 'true',[],'','']
	],'',''],
	['PAGE','9501',jdecode('Religious+Education'),jdecode(''), jdecode('%2F9501%2Findex.html'), 'true',[ 
		['PAGE','9522',jdecode('Calendar'),jdecode(''), jdecode('%2F9501%2F9522.html'), 'true',[],'',''],
		['PAGE','9543',jdecode('Youth+Groups'),jdecode(''), jdecode('%2F9501%2F9543.html'), 'true',[],'',''],
		['PAGE','9564',jdecode('Curriculum+and+Text'),jdecode(''), jdecode('%2F9501%2F9564.html'), 'true',[],'',''],
		['PAGE','9585',jdecode('Catechists'),jdecode(''), jdecode('%2F9501%2F9585.html'), 'true',[],'',''],
		['PAGE','9606',jdecode('Photos'),jdecode(''), jdecode('%2F9501%2F9606.html'), 'true',[],'','']
	],'',''],
	['PAGE','9627',jdecode('Council+%26+Commissions'),jdecode(''), jdecode('%2F9627%2Findex.html'), 'true',[ 
		['PAGE','9648',jdecode('Worship+Commission'),jdecode(''), jdecode('%2F9627%2F9648.html'), 'true',[],'',''],
		['PAGE','9669',jdecode('Education+Commission'),jdecode(''), jdecode('%2F9627%2F9669.html'), 'true',[],'',''],
		['PAGE','9690',jdecode('Stewardship+Commission'),jdecode(''), jdecode('%2F9627%2F9690.html'), 'true',[],'',''],
		['PAGE','9711',jdecode('Christian+Service+Commission'),jdecode(''), jdecode('%2F9627%2F9711.html'), 'true',[],'',''],
		['PAGE','9732',jdecode('Finance+Council'),jdecode(''), jdecode('%2F9627%2F9732.html'), 'true',[],'','']
	],'',''],
	['PAGE','6678',jdecode('Men%26%23x27%3Bs+Activities+Club'),jdecode(''), jdecode('%2F6678.html'), 'true',[],'',''],
	['PAGE','9753',jdecode('Queenship+of+Mary+Guild'),jdecode(''), jdecode('%2F9753.html'), 'true',[],'',''],
	['PAGE','9774',jdecode('Interesting+links'),jdecode(''), jdecode('%2F9774.html'), 'true',[],'','']];
var siteelementCount=22;
theSitetree.topTemplateName='Contrast';
theSitetree.paletteFamily='3F7928';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16627';
theSitetree.graphicsetId='12214';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLYTC2ZA'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Contrast',
				paletteFamily: 	'3F7928',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16627',
				graphicsetId: 	'12214',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6501',
internalId:  '',
customField: '20110116-174325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6552',
internalId:  '',
customField: '20110114-190437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6594',
internalId:  '',
customField: '20110114-162800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6615',
internalId:  '',
customField: '20110114-192125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6636',
internalId:  '',
customField: '20110114-192310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6657',
internalId:  '',
customField: '20110116-174521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6678',
internalId:  '',
customField: '20110114-160147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6573',
internalId:  '',
customField: '20110114-190342'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '6501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9627',
internalId:  '',
customField: '20110114-190606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9501',
internalId:  '',
customField: '20110119-182157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9522',
internalId:  '',
customField: '20110114-192505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9543',
internalId:  '',
customField: '20110116-174642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9564',
internalId:  '',
customField: '20110119-183042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9585',
internalId:  '',
customField: '20110119-180512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9606',
internalId:  '',
customField: '20110119-182903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9648',
internalId:  '',
customField: '20110114-194737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9669',
internalId:  '',
customField: '20110114-180620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9690',
internalId:  '',
customField: '20110114-180545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9711',
internalId:  '',
customField: '20110114-194833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9732',
internalId:  '',
customField: '20110114-194913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9753',
internalId:  '',
customField: '20110114-160107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9774',
internalId:  '',
customField: '20110116-175033'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVF340I7KMJE';
var companyName   = 'ST.+SABINA+CATHOLIC+CHURCH';
var htmlTitle	  = 'St.+Sabina+Catholic+Church+-+Dearborn+Heights%2C+Michigan';
var metaKeywords  = 'Catholic+%0D%0AChurch%0D%0ADearborn+Heights%0D%0A';
var metaContents  = 'Founded+in+1957%2C+St.+Priscilla+is+a+Parish+Community+of+located+in+the+northern+section+of+Dearborn+Heights+and+the+southern+section+of+Redford+Township.';
theSitetree.getById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		if (ar[i][POS_ID] == id){
			return ar[i];
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getParentById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		for (var j = 0; j < ar[i][POS_CHILDS].length; j++) {
			if (ar[i][POS_CHILDS][j][POS_ID] == id) {
				// child found
				return ar[i];
			}
			var result=this.getParentById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getName = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAME];
	}
	return null;
};

theSitetree.getNavigationText = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAVIGATIONTEXT];
	}
	return null;
};

theSitetree.getHREF = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_HREF];
	}
	return null;
};

theSitetree.getIsNavigation = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_ISNAVIGATION];
	}
	return null;
};

theSitetree.getTemplateName = function(id, lastTemplateName, ar) {
	if (typeof(lastTemplateName) == 'undefined'){
		lastTemplateName = this.topTemplateName;
	}
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		var actTemplateName = ar[i][POS_TEMPLATENAME];
		if (actTemplateName == ''){
			actTemplateName = lastTemplateName;
		}
		if (ar[i][POS_ID] == id) {
			return actTemplateName;
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getTemplateName(id, actTemplateName, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getByXx = function(lookup, xx, ar) {
    if (typeof(ar) == 'undefined'){
    	ar = this;
    }
    for (var i=0; i < ar.length; i++) {
        if (ar[i][xx] == lookup){
        	return ar[i];
        }
        if (ar[i][POS_CHILDS].length > 0) {
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);
            if (result != null){
                return result;
               }
        }
    }
    return null;
};

function gotoPage(lookup) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	var page = theSitetree.getHREF(lookup);
	if (!page) {
		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];
		for (var i=0 ; i < testFor.length ; i++) {
			var p = theSitetree.getByXx(lookup, testFor[i]);
			if (p != null) {
				page = p[POS_HREF];
				break;
			}
		}
	}
	document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
};
St. Sabina - Dearborn Heights, MI 
