/* [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 theSitetree=[ 
	['PAGE','27212',jdecode('Bulletin+-+News'),jdecode(''),'/27212/index.html','true',[ 
		['PAGE','99267',jdecode('Our+Mission'),jdecode(''),'/27212/99267.html','true',[],''],
		['PAGE','20812',jdecode('Liturgy+Schedule'),jdecode(''),'/27212/20812.html','true',[],''],
		['PAGE','28612',jdecode('Parish+Council'),jdecode(''),'/27212/28612.html','true',[],''],
		['PAGE','99288',jdecode('President%26%23x27%3Bs+message'),jdecode(''),'/27212/99288.html','true',[],'']
	],''],
	['PAGE','501',jdecode('About+Us'),jdecode(''),'/501/index.html','true',[ 
		['PAGE','42654',jdecode('Becoming+a+Member'),jdecode(''),'/501/42654.html','true',[],''],
		['PAGE','42633',jdecode('History'),jdecode(''),'/501/42633.html','true',[],'']
	],''],
	['PAGE','10854',jdecode('Bookings%26Rentals'),jdecode(''),'/10854/index.html','true',[ 
		['PAGE','10833',jdecode('Hall+Rental'),jdecode(''),'/10854/10833.html','true',[],'']
	],''],
	['PAGE','39812',jdecode('Fr.+Mark%26%23x27%3Bs++Page'),jdecode(''),'/39812/index.html','true',[ 
		['PAGE','720',jdecode('Sacraments'),jdecode(''),'/39812/720.html','true',[],'']
	],''],
	['PAGE','95567',jdecode('5+Minute+Retreats'),jdecode(''),'/95567.html','true',[],''],
	['PAGE','573',jdecode('Organizations'),jdecode(''),'/573/index.html','true',[ 
		['PAGE','594',jdecode('Catechism'),jdecode(''),'/573/594.html','true',[],''],
		['PAGE','615',jdecode('Choirs'),jdecode(''),'/573/615.html','true',[],''],
		['PAGE','37912',jdecode('Kildonan+Seniors'),jdecode(''),'/573/37912.html','true',[],''],
		['PAGE','657',jdecode('Knights+of+Columbus'),jdecode(''),'/573/657.html','true',[],''],
		['PAGE','37512',jdecode('Liturgical'),jdecode(''),'/573/37512.html','true',[],''],
		['PAGE','678',jdecode('Lubov+Nursery'),jdecode(''),'/573/678.html','true',[],''],
		['PAGE','30512',jdecode('Outreach'),jdecode(''),'/573/30512.html','true',[],''],
		['PAGE','10875',jdecode('UCWLC'),jdecode(''),'/573/10875.html','true',[],'']
	],''],
	['PAGE','636',jdecode('Dance+School'),jdecode(''),'/636/index.html','true',[ 
		['PAGE','36012',jdecode('How+to+Register'),jdecode(''),'/636/36012.html','true',[],''],
		['PAGE','70412',jdecode('Annual+Concert+2009'),jdecode(''),'/636/70412.html','true',[],''],
		['PAGE','93867',jdecode('Concert+Pictures+2010'),jdecode(''),'/636/93867.html','true',[],'']
	],''],
	['PAGE','699',jdecode('Youth'),jdecode(''),'/699/index.html','true',[ 
		['PAGE','10896',jdecode('What+We%26%23x27%3Bve+Done'),jdecode(''),'/699/10896.html','true',[],''],
		['PAGE','10917',jdecode('Links+%26+Games'),jdecode(''),'/699/10917.html','true',[],'']
	],''],
	['PAGE','48312',jdecode('Photo+Gallery'),jdecode(''),'/48312/index.html','true',[ 
		['PAGE','48212',jdecode('Meditation+Garden'),jdecode(''),'/48312/48212.html','true',[],''],
		['PAGE','48612',jdecode('Catechism+Walls'),jdecode(''),'/48312/48612.html','true',[],'']
	],''],
	['PAGE','10938',jdecode('Contact+Us'),jdecode(''),'/10938/index.html','true',[ 
		['PAGE','31012',jdecode('Map'),jdecode(''),'/10938/31012.html','true',[],'']
	],'']];
var siteelementCount=34;
theSitetree.topTemplateName='cutout';
theSitetree.paletteFamily='BEDEB5';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10350';
theSitetree.graphicsetId='10477';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'cutout',
				paletteFamily: 	'BEDEB5',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10350',
				graphicsetId: 	'10477',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				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['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '31012',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['7008']=webappMappings['7008-115']={
webappId:    '7008',
documentId:  '615',
internalId:  '115',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '27212',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-119']={
webappId:    '7008',
documentId:  '30512',
internalId:  '119',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-120']={
webappId:    '7008',
documentId:  '10875',
internalId:  '120',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-121']={
webappId:    '7008',
documentId:  '594',
internalId:  '121',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-122']={
webappId:    '7008',
documentId:  '42654',
internalId:  '122',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-576ec0c8bb58d2f8acd5f380d8d685eb']={
webappId:    '7060',
documentId:  '48212',
internalId:  '576ec0c8bb58d2f8acd5f380d8d685eb',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-21a3c1e302f7e57c1c4184870c5cbf56']={
webappId:    '7060',
documentId:  '48612',
internalId:  '21a3c1e302f7e57c1c4184870c5cbf56',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99288',
internalId:  '',
customField: '20100903-110420'
};
webappMappings['7060']=webappMappings['7060-2bc3a9a2257310082c26752182de84c7']={
webappId:    '7060',
documentId:  '93867',
internalId:  '2bc3a9a2257310082c26752182de84c7',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100824-183554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99267',
internalId:  '',
customField: '20100902-161621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20812',
internalId:  '',
customField: '20100808-014105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27212',
internalId:  '',
customField: '20100903-112759'
};
webappMappings['7008']=webappMappings['7008-123']={
webappId:    '7008',
documentId:  '27212',
internalId:  '123',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28612',
internalId:  '',
customField: '20100808-014205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42633',
internalId:  '',
customField: '20080925-231200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42654',
internalId:  '',
customField: '20080902-151227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10854',
internalId:  '',
customField: '20100902-171256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '720',
internalId:  '',
customField: '20080820-190144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10833',
internalId:  '',
customField: '20100903-111033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39812',
internalId:  '',
customField: '20100903-112555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20100902-172704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20100518-152929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20090904-150306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37912',
internalId:  '',
customField: '20100617-121446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '657',
internalId:  '',
customField: '20100526-164150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37512',
internalId:  '',
customField: '20100526-164230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '678',
internalId:  '',
customField: '20080822-170502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30512',
internalId:  '',
customField: '20080822-170622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10875',
internalId:  '',
customField: '20100617-121602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '636',
internalId:  '',
customField: '20100729-135202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36012',
internalId:  '',
customField: '20100903-113929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '699',
internalId:  '',
customField: '20100617-121029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10896',
internalId:  '',
customField: '20080925-232120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10917',
internalId:  '',
customField: '20080817-194159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48312',
internalId:  '',
customField: '20080925-232434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48212',
internalId:  '',
customField: '20080925-234414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48612',
internalId:  '',
customField: '20080925-234427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10938',
internalId:  '',
customField: '20100808-015522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31012',
internalId:  '',
customField: '20080819-194926'
};
webappMappings['7060']=webappMappings['7060-99c2633427833a89c27c883112429e6c']={
webappId:    '7060',
documentId:  '70412',
internalId:  '99c2633427833a89c27c883112429e6c',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70412',
internalId:  '',
customField: '20100419-132716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93867',
internalId:  '',
customField: '20100710-193948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95567',
internalId:  '',
customField: '20100808-005159'
};
var canonHostname = 'wsc1.brinkster.com';
var accountId     = 'ABRI10INV3I4';
var companyName   = 'St.+Anne+Ukrainian+Catholic+Church';
var htmlTitle	  = 'St.+Anne+Ukrainian+Catholic+Church';
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();
};
