/* [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','1720',jdecode('HOME'),jdecode(''), jdecode('%2F1720.html'), 'true',[],'',''],
	['PAGE','29620',jdecode('ABOUT+US'),jdecode(''), jdecode('%2F29620%2Findex.html'), 'true',[ 
		['PAGE','102808',jdecode('Our+History'),jdecode(''), jdecode('%2F29620%2F102808.html'), 'true',[],'','']
	],'',''],
	['PAGE','75664',jdecode('REGISTRATION'),jdecode(''), jdecode('%2F75664.html'), 'true',[],'',''],
	['PAGE','97308',jdecode('ROMAN+MISSAL+-+Third+Edition'),jdecode(''), jdecode('%2F97308%2Findex.html'), 'true',[ 
		['PAGE','97329',jdecode('Message+from+Cardinal'),jdecode(''), jdecode('%2F97308%2F97329.html'), 'true',[],'',''],
		['PAGE','97350',jdecode('Articles+of+Interest'),jdecode(''), jdecode('%2F97308%2F97350.html'), 'true',[],'',''],
		['PAGE','97371',jdecode('Mass+Responses+and+Prayers'),jdecode(''), jdecode('%2F97308%2F97371.html'), 'true',[],'','']
	],'',''],
	['PAGE','4320',jdecode('PUBLICATIONS'),jdecode(''), jdecode('%2F4320%2Findex.html'), 'true',[ 
		['PAGE','29641',jdecode('Weekly+BULLETINS'),jdecode(''), jdecode('%2F4320%2F29641.html'), 'true',[],'',''],
		['PAGE','39920',jdecode('Our+Sunday+Visitor'),jdecode(''), jdecode('%2F4320%2F39920.html'), 'true',[],'',''],
		['PAGE','44920',jdecode('Texas+Catholic+Herald'),jdecode(''), jdecode('%2F4320%2F44920.html'), 'true',[],'',''],
		['PAGE','54953',jdecode('U.S.Catholic+Magazine'),jdecode(''), jdecode('%2F4320%2F54953.html'), 'true',[],'','']
	],'',''],
	['PAGE','29683',jdecode('LITURGICAL+Schedule'),jdecode(''), jdecode('%2F29683%2Findex.html'), 'true',[ 
		['PAGE','64364',jdecode('2012+Holy+Days'),jdecode(''), jdecode('%2F29683%2F64364.html'), 'true',[],'',''],
		['PAGE','64164',jdecode('Lenten+Schedule'),jdecode(''), jdecode('%2F29683%2F64164.html'), 'true',[],'',''],
		['PAGE','64185',jdecode('Easter+Schedule'),jdecode(''), jdecode('%2F29683%2F64185.html'), 'true',[],'',''],
		['PAGE','64206',jdecode('October+Devotions'),jdecode(''), jdecode('%2F29683%2F64206.html'), 'true',[],'',''],
		['PAGE','64227',jdecode('Christmas+Schedule'),jdecode(''), jdecode('%2F29683%2F64227.html'), 'true',[],'','']
	],'',''],
	['PAGE','35220',jdecode('CALENDAR+of+EVENTS'),jdecode(''), jdecode('%2F35220%2Findex.html'), 'true',[ 
		['PAGE','59764',jdecode('Church+Calendar'),jdecode(''), jdecode('%2F35220%2F59764.html'), 'true',[],'',''],
		['PAGE','59785',jdecode('Advent+Confessions'),jdecode(''), jdecode('%2F35220%2F59785.html'), 'true',[],'',''],
		['PAGE','59806',jdecode('Holiday+Schedule'),jdecode(''), jdecode('%2F35220%2F59806.html'), 'true',[],'',''],
		['PAGE','47720',jdecode('75th+Annual+Bazaar'),jdecode(''), jdecode('%2F35220%2F47720.html'), 'true',[],'','']
	],'',''],
	['PAGE','29830',jdecode('STEWARDSHIP+-+a+way+of+life'),jdecode(''), jdecode('%2F29830%2Findex.html'), 'true',[ 
		['PAGE','29851',jdecode('Administrative'),jdecode(''), jdecode('%2F29830%2F29851.html'), 'true',[],'',''],
		['PAGE','29872',jdecode('Spiritual+Fellowship'),jdecode(''), jdecode('%2F29830%2F29872.html'), 'true',[],'',''],
		['PAGE','29893',jdecode('Liturgy+%2F+Sacramental'),jdecode(''), jdecode('%2F29830%2F29893.html'), 'true',[],'',''],
		['PAGE','29914',jdecode('Social+Outreach'),jdecode(''), jdecode('%2F29830%2F29914.html'), 'true',[],'',''],
		['PAGE','29935',jdecode('Spiritual+Development'),jdecode(''), jdecode('%2F29830%2F29935.html'), 'true',[],'','']
	],'',''],
	['PAGE','29998',jdecode('ADULT+EDUCATION'),jdecode(''), jdecode('%2F29998%2Findex.html'), 'true',[ 
		['PAGE','94608',jdecode('Bible+Study'),jdecode(''), jdecode('%2F29998%2F94608.html'), 'true',[],'',''],
		['PAGE','30019',jdecode('RCIA+'),jdecode(''), jdecode('%2F29998%2F30019.html'), 'true',[],'','']
	],'',''],
	['PAGE','29956',jdecode('EDUCATION'),jdecode(''), jdecode('%2F29956%2Findex.html'), 'true',[ 
		['PAGE','30040',jdecode('CCE+%28Continuing+Christian+Education%29'),jdecode(''), jdecode('%2F29956%2F30040.html'), 'true',[],'',''],
		['PAGE','29977',jdecode('Day+School'),jdecode(''), jdecode('%2F29956%2F29977.html'), 'true',[],'',''],
		['PAGE','30061',jdecode('GOF+%28Generations+of+Faith%29'),jdecode(''), jdecode('%2F29956%2F30061.html'), 'true',[],'','']
	],'',''],
	['PAGE','2220',jdecode('CONTACT+US'),jdecode(''), jdecode('%2F2220%2Findex.html'), 'true',[ 
		['PAGE','52353',jdecode('E-Mail+Us'),jdecode(''), jdecode('%2F2220%2F52353.html'), 'true',[],'','']
	],'',''],
	['PAGE','30082',jdecode('SOCIAL+Organizations'),jdecode(''), jdecode('%2F30082%2Findex.html'), 'true',[ 
		['PAGE','35520',jdecode('Catholic+Daughters+of+the+Americas'),jdecode(''), jdecode('%2F30082%2F35520.html'), 'true',[],'',''],
		['PAGE','35820',jdecode('Knights+of+Columbus+-+1st+thru+3rd+Degree'),jdecode(''), jdecode('%2F30082%2F35820.html'), 'true',[],'',''],
		['PAGE','33220',jdecode('Knights+of+Columbus+-+4th+Degree'),jdecode(''), jdecode('%2F30082%2F33220.html'), 'true',[],'',''],
		['PAGE','30822',jdecode('KJZT+%28Catholic+Family+Fraternal+of+Texas%29'),jdecode(''), jdecode('%2F30082%2F30822.html'), 'true',[],'',''],
		['PAGE','30843',jdecode('KJT+%28Catholic+Union+of+Texas%29'),jdecode(''), jdecode('%2F30082%2F30843.html'), 'true',[],'','']
	],'',''],
	['PAGE','39320',jdecode('USEFUL+LINKS'),jdecode(''), jdecode('%2F39320.html'), 'true',[],'','']];
var siteelementCount=46;
theSitetree.topTemplateName='Modul';
theSitetree.paletteFamily='151B65';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10380';
theSitetree.graphicsetId='10557';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F1F1F1';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLY0X9RC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Modul',
				paletteFamily: 	'151B65',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10380',
				graphicsetId: 	'10557',
				contentColor: 	'000000',
				contentBGColor: 'F1F1F1',
				a_color: 		'1643AA',
				b_color: 		'3B84E0',
				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:  '1720',
internalId:  '',
customField: '20100712-210009'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1720',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2220',
internalId:  '',
customField: '20120113-180206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4320',
internalId:  '',
customField: '20100730-184613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29620',
internalId:  '',
customField: '20100730-093629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29641',
internalId:  '',
customField: '20120119-132432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35520',
internalId:  '',
customField: '20100729-175639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29956',
internalId:  '',
customField: '20111101-152709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30082',
internalId:  '',
customField: '20100715-130818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29683',
internalId:  '',
customField: '20100713-095148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29830',
internalId:  '',
customField: '20100802-173446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29851',
internalId:  '',
customField: '20100714-074726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29872',
internalId:  '',
customField: '20101229-181024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29893',
internalId:  '',
customField: '20100729-182207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29914',
internalId:  '',
customField: '20100729-182852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29935',
internalId:  '',
customField: '20100729-180232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29977',
internalId:  '',
customField: '20111101-114410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29998',
internalId:  '',
customField: '20111101-105435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30019',
internalId:  '',
customField: '20111101-105517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30040',
internalId:  '',
customField: '20101229-093938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30061',
internalId:  '',
customField: '20101229-094039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30822',
internalId:  '',
customField: '20100714-092436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30843',
internalId:  '',
customField: '20100714-092657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39320',
internalId:  '',
customField: '20120119-083730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33220',
internalId:  '',
customField: '20100714-092047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35220',
internalId:  '',
customField: '20111213-153705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35820',
internalId:  '',
customField: '20100715-130440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39920',
internalId:  '',
customField: '20100730-094804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44920',
internalId:  '',
customField: '20100730-184300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47720',
internalId:  '',
customField: '20110512-173800'
};
webappMappings['7008']=webappMappings['7008-18987']={
webappId:    '7008',
documentId:  '52353',
internalId:  '18987',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52353',
internalId:  '',
customField: '20120113-180427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54953',
internalId:  '',
customField: '20101014-152857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59764',
internalId:  '',
customField: '20110922-154919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59785',
internalId:  '',
customField: '20101202-185147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59806',
internalId:  '',
customField: '20111213-153828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64364',
internalId:  '',
customField: '20111213-153405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64227',
internalId:  '',
customField: '20111213-151407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64206',
internalId:  '',
customField: '20101202-184814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64185',
internalId:  '',
customField: '20110407-092346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64164',
internalId:  '',
customField: '20110407-091721'
};
webappMappings['7008']=webappMappings['7008-23923']={
webappId:    '7008',
documentId:  '75664',
internalId:  '23923',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75664',
internalId:  '',
customField: '20120119-131407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94608',
internalId:  '',
customField: '20111101-105315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102808',
internalId:  '',
customField: '20120113-172240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97308',
internalId:  '',
customField: '20111103-170150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97350',
internalId:  '',
customField: '20111103-175806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97329',
internalId:  '',
customField: '20111103-180704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97371',
internalId:  '',
customField: '20111107-094534'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVF340I7C0OP';
var companyName   = 'Holy+Rosary+Catholic+Church%2C+Rosenberg%2C+TX+77471';
var htmlTitle	  = '';
var metaKeywords  = 'Rosenberg+Catholic+Church+Holy+Rosary+Mass+CYO+School+Stewardship';
var metaContents  = '';
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();
};

