/* [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','5801',jdecode('Home'),jdecode(''),'/5801.html','true',[],''],
	['PAGE','5901',jdecode('About+us'),jdecode(''),'/5901/index.html','true',[ 
		['PAGE','5922',jdecode('Chorus+History'),jdecode(''),'/5901/5922.html','true',[],''],
		['PAGE','16701',jdecode('Who+We+Are'),jdecode(''),'/5901/16701.html','true',[],'']
	],''],
	['PAGE','9901',jdecode('Performances'),jdecode(''),'/9901/index.html','true',[ 
		['PAGE','5985',jdecode('Joining+%26+Practices'),jdecode(''),'/9901/5985.html','true',[],''],
		['PAGE','5964',jdecode('Church+Sings'),jdecode(''),'/9901/5964.html','true',[],''],
		['PAGE','9943',jdecode('Traveling+Concerts'),jdecode(''),'/9901/9943.html','true',[],''],
		['PAGE','9922',jdecode('Home+Concerts'),jdecode(''),'/9901/9922.html','true',[],''],
		['PAGE','19301',jdecode('Local+Weather'),jdecode(''),'/9901/19301.html','true',[],'']
	],''],
	['PAGE','15001',jdecode('Ticket+Orders'),jdecode(''),'/15001.html','true',[],''],
	['PAGE','17601',jdecode('Scholarship+Competition'),jdecode(''),'/17601.html','true',[],''],
	['PAGE','5943',jdecode('News'),jdecode(''),'/5943/index.html','true',[ 
		['PAGE','19322',jdecode('General+Updates'),jdecode(''),'/5943/19322.html','true',[],''],
		['PAGE','6111',jdecode('Press+Release'),jdecode(''),'/5943/6111.html','true',[],'']
	],''],
	['PAGE','21501',jdecode('Valued+Supporters'),jdecode(''),'/21501.html','true',[],''],
	['PAGE','6006',jdecode('Photographs'),jdecode(''),'/6006.html','true',[],''],
	['PAGE','6027',jdecode('Music+Snips'),jdecode(''),'/6027.html','false',[],''],
	['PAGE','17901',jdecode('Music+Library'),jdecode(''),'/17901.html','false',[],''],
	['PAGE','34301',jdecode('Past+Programs'),jdecode(''),'/34301.html','true',[],''],
	['PAGE','6090',jdecode('Links+to+Arts'),jdecode(''),'/6090/index.html','true',[ 
		['PAGE','19801',jdecode('Appleton+Area'),jdecode(''),'/6090/19801.html','true',[],''],
		['PAGE','19822',jdecode('D.J.'),jdecode(''),'/6090/19822.html','true',[],''],
		['PAGE','19843',jdecode('Female+Groups'),jdecode(''),'/6090/19843.html','true',[],''],
		['PAGE','19864',jdecode('Intrumental'),jdecode(''),'/6090/19864.html','true',[],''],
		['PAGE','19343',jdecode('Male+Chorus'),jdecode(''),'/6090/19343.html','true',[],''],
		['PAGE','19885',jdecode('Mime'),jdecode(''),'/6090/19885.html','true',[],''],
		['PAGE','19906',jdecode('Theater'),jdecode(''),'/6090/19906.html','true',[],''],
		['PAGE','19927',jdecode('Venues'),jdecode(''),'/6090/19927.html','true',[],'']
	],''],
	['PAGE','28801',jdecode('Community+Links'),jdecode(''),'/28801.html','true',[],''],
	['PAGE','6132',jdecode('Contact'),jdecode(''),'/6132/index.html','true',[ 
		['PAGE','19364',jdecode('Discussions'),jdecode(''),'/6132/19364.html','true',[],''],
		['PAGE','19385',jdecode('Mail+-+Phone'),jdecode(''),'/6132/19385.html','true',[],''],
		['PAGE','19001',jdecode('Question%2FComment'),jdecode(''),'/6132/19001.html','true',[],'']
	],''],
	['PAGE','24201',jdecode('Board'),jdecode(''),'/24201.html','false',[],'']];
var siteelementCount=35;
theSitetree.topTemplateName='Music';
theSitetree.paletteFamily='FF0000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10443';
theSitetree.graphicsetId='10818';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Music',
				paletteFamily: 	'FF0000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10443',
				graphicsetId: 	'10818',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'777676',
				f_color: 		'777676',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20100306-183835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20090329-193122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5922',
internalId:  '',
customField: '20090108-003937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6027',
internalId:  '',
customField: '20081110-184115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9901',
internalId:  '',
customField: '20100227-112746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5985',
internalId:  '',
customField: '20091016-113051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5964',
internalId:  '',
customField: '20100227-125426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5943',
internalId:  '',
customField: '20100227-194821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9922',
internalId:  '',
customField: '20091017-213759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9943',
internalId:  '',
customField: '20100313-004540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6132',
internalId:  '',
customField: '20090311-004121'
};
webappMappings['1501']=webappMappings['1501-15792820']={
webappId:    '1501',
documentId:  '5801',
internalId:  '15792820',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6006',
internalId:  '',
customField: '20081110-184115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19385',
internalId:  '',
customField: '20090310-154229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19364',
internalId:  '',
customField: '20090310-153811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6090',
internalId:  '',
customField: '20090310-155215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6111',
internalId:  '',
customField: '20081110-184115'
};
webappMappings['7008']=webappMappings['7008-14316']={
webappId:    '7008',
documentId:  '15001',
internalId:  '14316',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20100306-165722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20100204-142411'
};
webappMappings['7008']=webappMappings['7008-14426']={
webappId:    '7008',
documentId:  '17601',
internalId:  '14426',
customField: 'language:en;country:US;'
};
webappMappings['7080']=webappMappings['7080-437']={
webappId:    '7080',
documentId:  '19301',
internalId:  '437',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17601',
internalId:  '',
customField: '20100306-234742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19001',
internalId:  '',
customField: '20090310-154509'
};
webappMappings['1002']=webappMappings['1002-19001aendu0ineyqr']={
webappId:    '1002',
documentId:  '19001',
internalId:  '19001aendu0ineyqr',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17901',
internalId:  '',
customField: '20090310-025656'
};
webappMappings['7050']=webappMappings['7050-8372']={
webappId:    '7050',
documentId:  '19322',
internalId:  '8372',
customField: 'language:en;country:US;'
};
webappMappings['1003']=webappMappings['1003-aendu0ineyqr11ff1e16a31']={
webappId:    '1003',
documentId:  '19364',
internalId:  'aendu0ineyqr11ff1e16a31',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19301',
internalId:  '',
customField: '20090310-153455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19322',
internalId:  '',
customField: '20090310-153455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19801',
internalId:  '',
customField: '20091026-012531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19822',
internalId:  '',
customField: '20090310-155612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19843',
internalId:  '',
customField: '20090310-155612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19864',
internalId:  '',
customField: '20090310-155612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19343',
internalId:  '',
customField: '20090310-153455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19885',
internalId:  '',
customField: '20090310-155612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19906',
internalId:  '',
customField: '20091026-012625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19927',
internalId:  '',
customField: '20090310-155612'
};
webappMappings['7060']=webappMappings['7060-4504936931ebb312f8b7ea7c557b37bf']={
webappId:    '7060',
documentId:  '6027',
internalId:  '4504936931ebb312f8b7ea7c557b37bf',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21501',
internalId:  '',
customField: '20100306-191147'
};
webappMappings['1003']=webappMappings['1003-aendu0ineyqr120732c9cf3']={
webappId:    '1003',
documentId:  '24201',
internalId:  'aendu0ineyqr120732c9cf3',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24201',
internalId:  '',
customField: '20090404-180804'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28801',
internalId:  '',
customField: '20091026-011917'
};
webappMappings['7060']=webappMappings['7060-251bff2012c777aa0bf6b7a566224a21']={
webappId:    '7060',
documentId:  '6006',
internalId:  '251bff2012c777aa0bf6b7a566224a21',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-03c548e955601dc46726d3bb5ddb8caa']={
webappId:    '7060',
documentId:  '34301',
internalId:  '03c548e955601dc46726d3bb5ddb8caa',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34301',
internalId:  '',
customField: '20100306-192317'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0INEYQR';
var companyName   = 'MacDowell+Male+Chorus';
var htmlTitle	  = 'MacDowell+Male+Chorus+of+Appleton%2C+Wisconsin';
var metaKeywords  = 'music%2C+concert%2C+chorus%2C+song%2C+MacDowell%2C+Appleton%2C+Wisconsin%2C+Tunes%2C+Broadway%2C+Patriotic%2C+';
var metaContents  = 'MacDowell+Male+Chorus+has+been+entertaining+the+Fox+Cities+of+Wisconsin++surrounding+communities+and+states+for+the+past+75+years%21';
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();
};
