/* [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(''),'/1720.html','true',[],'',''],
	['PAGE','29620',jdecode('ABOUT+US'),jdecode(''),'/29620.html','true',[],'',''],
	['PAGE','4320',jdecode('PUBLICATIONS'),jdecode(''),'/4320/index.html','true',[ 
		['PAGE','29641',jdecode('Weekly+Bulletins'),jdecode(''),'/4320/29641.html','true',[],'',''],
		['PAGE','39920',jdecode('Our+Sunday+Visitor'),jdecode(''),'/4320/39920.html','true',[],'',''],
		['PAGE','44920',jdecode('Texas+Catholic+Herald'),jdecode(''),'/4320/44920.html','true',[],'','']
	],'',''],
	['PAGE','29683',jdecode('LITURGICAL+Schedule'),jdecode(''),'/29683.html','true',[],'',''],
	['PAGE','29809',jdecode('CENTENNIAL+Celebration'),jdecode(''),'/29809/index.html','true',[ 
		['PAGE','50853',jdecode('Our+History'),jdecode(''),'/29809/50853.html','true',[],'',''],
		['PAGE','50874',jdecode('Committees'),jdecode(''),'/29809/50874.html','true',[],'','']
	],'',''],
	['PAGE','35220',jdecode('CALENDAR+of+EVENTS'),jdecode(''),'/35220/index.html','true',[ 
		['PAGE','47720',jdecode('74th+Annual+Bazaar'),jdecode(''),'/35220/47720.html','true',[],'',''],
		['PAGE','47741',jdecode('Centennial+Celebration'),jdecode(''),'/35220/47741.html','true',[],'','']
	],'',''],
	['PAGE','29830',jdecode('STEWARDSHIP+-+a+way+of+life'),jdecode(''),'/29830/index.html','true',[ 
		['PAGE','29851',jdecode('Administrative'),jdecode(''),'/29830/29851.html','true',[],'',''],
		['PAGE','29872',jdecode('Spiritual+Fellowship'),jdecode(''),'/29830/29872.html','true',[],'',''],
		['PAGE','29893',jdecode('Liturgy+%2F+Sacramental'),jdecode(''),'/29830/29893.html','true',[],'',''],
		['PAGE','29914',jdecode('Social+Outreach'),jdecode(''),'/29830/29914.html','true',[],'',''],
		['PAGE','29935',jdecode('Spiritual+Development'),jdecode(''),'/29830/29935.html','true',[],'','']
	],'',''],
	['PAGE','29956',jdecode('EDUCATION'),jdecode(''),'/29956/index.html','true',[ 
		['PAGE','29977',jdecode('Catholic+School'),jdecode(''),'/29956/29977.html','true',[],'',''],
		['PAGE','29998',jdecode('Adult+Education'),jdecode(''),'/29956/29998.html','true',[],'',''],
		['PAGE','30019',jdecode('RCIA+%2F+BIBLE+STUDY'),jdecode(''),'/29956/30019.html','true',[],'',''],
		['PAGE','30040',jdecode('CCE+%28Continuing+Christian+Education%29'),jdecode(''),'/29956/30040.html','true',[],'',''],
		['PAGE','30061',jdecode('GOF+%28Generations+of+Faith%29'),jdecode(''),'/29956/30061.html','true',[],'','']
	],'',''],
	['PAGE','2220',jdecode('CONTACT+US'),jdecode(''),'/2220/index.html','true',[ 
		['PAGE','52353',jdecode('Contact'),jdecode(''),'/2220/52353.html','true',[],'','']
	],'',''],
	['PAGE','30082',jdecode('SOCIAL+Organizations'),jdecode(''),'/30082/index.html','true',[ 
		['PAGE','35520',jdecode('Catholic+Daughters+of+the+Americas'),jdecode(''),'/30082/35520.html','true',[],'',''],
		['PAGE','35820',jdecode('Knights+of+Columbus+-+1st+thru+3rd+Degree'),jdecode(''),'/30082/35820.html','true',[],'',''],
		['PAGE','33220',jdecode('Knights+of+Columbus+-+4th+Degree'),jdecode(''),'/30082/33220.html','true',[],'',''],
		['PAGE','30822',jdecode('KJZT+%28Catholic+Family+Fraternal+of+Texas%29'),jdecode(''),'/30082/30822.html','true',[],'',''],
		['PAGE','30843',jdecode('KJT+%28Cathoiic+Union+of+Texas%29'),jdecode(''),'/30082/30843.html','true',[],'','']
	],'',''],
	['PAGE','39320',jdecode('USEFUL+LINKS'),jdecode(''),'/39320.html','true',[],'','']];
var siteelementCount=34;
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 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: '20100809-122949'
};
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: '20100805-132043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35520',
internalId:  '',
customField: '20100729-175639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29956',
internalId:  '',
customField: '20100729-193054'
};
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:  '29809',
internalId:  '',
customField: '20100804-143027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29872',
internalId:  '',
customField: '20100729-180757'
};
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: '20100729-185929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29998',
internalId:  '',
customField: '20100729-183122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30019',
internalId:  '',
customField: '20100729-190057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30040',
internalId:  '',
customField: '20100729-190226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30061',
internalId:  '',
customField: '20100729-190303'
};
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: '20100802-173953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33220',
internalId:  '',
customField: '20100714-092047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35220',
internalId:  '',
customField: '20100802-183017'
};
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: '20100818-092447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47741',
internalId:  '',
customField: '20100804-152108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50853',
internalId:  '',
customField: '20100804-142951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50874',
internalId:  '',
customField: '20100804-145413'
};
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: '20100809-093421'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVF340I7C0OP';
var companyName   = 'Holy+Rosary+Catholic+Church%2C+Rosenberg%2C+TX+77471';
var htmlTitle	  = '';
var metaKeywords  = '';
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();
};
