/* [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','87601',jdecode('DVD+and+2+CDs'),jdecode(''),'/87601.html','true',[],''],
	['PAGE','38801',jdecode('Piano+Competition+2010'),jdecode(''),'/38801/index.html','true',[ 
		['PAGE','85601',jdecode('The+Winners'),jdecode(''),'/38801/85601.html','true',[],''],
		['PAGE','84901',jdecode('Finalists+-+May+28%2C+2010'),jdecode(''),'/38801/84901.html','true',[],''],
		['PAGE','68201',jdecode('Competitors+2010'),jdecode(''),'/38801/68201.html','true',[],''],
		['PAGE','75701',jdecode('Competitors+-+Repertoire'),jdecode(''),'/38801/75701.html','true',[],''],
		['PAGE','80401',jdecode('Schedule+and+Admission'),jdecode(''),'/38801/80401.html','true',[],''],
		['PAGE','56401',jdecode('Competition+Jury'),jdecode(''),'/38801/56401.html','true',[],''],
		['PAGE','94012',jdecode('APPC-2010+Jury%26%23x27%3Bs+Rules'),jdecode(''),'/38801/94012.html','true',[],''],
		['PAGE','81901',jdecode('Selection+Jury'),jdecode(''),'/38801/81901.html','true',[],''],
		['PAGE','55701',jdecode('Competition+Supporters'),jdecode(''),'/38801/55701.html','true',[],''],
		['PAGE','56601',jdecode('Why+Paderewski+Piano+Competition%3F'),jdecode(''),'/38801/56601.html','true',[],''],
		['PAGE','41901',jdecode('Rules'),jdecode(''),'/38801/41901.html','true',[],''],
		['PAGE','44201',jdecode('Application+Form'),jdecode(''),'/38801/44201.html','true',[],''],
		['PAGE','45501',jdecode('Application+Procedure'),jdecode(''),'/38801/45501.html','true',[],''],
		['PAGE','49001',jdecode('Music+Scores'),jdecode(''),'/38801/49001.html','true',[],'']
	],''],
	['PAGE','7701',jdecode('Home'),jdecode(''),'/7701.html','true',[],''],
	['PAGE','16701',jdecode('About+Us'),jdecode(''),'/16701/index.html','true',[ 
		['PAGE','53401',jdecode('Appeal'),jdecode(''),'/16701/53401.html','true',[],'']
	],''],
	['PAGE','20501',jdecode('About+Paderewski'),jdecode(''),'/20501/index.html','true',[ 
		['PAGE','28501',jdecode('Biography'),jdecode(''),'/20501/28501.html','true',[],''],
		['PAGE','38001',jdecode('List+of+Works'),jdecode(''),'/20501/38001.html','true',[],''],
		['PAGE','16764',jdecode('Christopher+Onzol'),jdecode(''),'/20501/16764.html','true',[],''],
		['PAGE','16743',jdecode('Adam+Zamoyski'),jdecode(''),'/20501/16743.html','true',[],''],
		['PAGE','22601',jdecode('Henryk+Martenka'),jdecode(''),'/20501/22601.html','true',[],''],
		['PAGE','30401',jdecode('Cherles+Phillips'),jdecode(''),'/20501/30401.html','true',[],'']
	],''],
	['PAGE','16785',jdecode('Upcoming+Events'),jdecode(''),'/16785/index.html','true',[ 
		['PAGE','60101',jdecode('Leschetyzki+180th+Anniversary'),jdecode(''),'/16785/60101.html','true',[],''],
		['PAGE','60201',jdecode('Paderewski+150th+Anniversary'),jdecode(''),'/16785/60201.html','true',[],'']
	],''],
	['PAGE','20901',jdecode('Past+Events'),jdecode(''),'/20901/index.html','true',[ 
		['PAGE','19901',jdecode('Pommery+%26+Paderewski+08'),jdecode(''),'/20901/19901.html','true',[],''],
		['PAGE','19001',jdecode('LMU+%26+CSUN+08'),jdecode(''),'/20901/19001.html','true',[],''],
		['PAGE','33601',jdecode('LMU+%26+CSUN+09'),jdecode(''),'/20901/33601.html','true',[],''],
		['PAGE','46901',jdecode('Pommery+%26+Paderewski+09'),jdecode(''),'/20901/46901.html','true',[],''],
		['PAGE','47301',jdecode('Chopin+200th+Anniversary'),jdecode(''),'/20901/47301.html','true',[],'']
	],''],
	['PAGE','16827',jdecode('Donations'),jdecode(''),'/16827/index.html','true',[ 
		['PAGE','53101',jdecode('Appeal'),jdecode(''),'/16827/53101.html','true',[],''],
		['PAGE','24701',jdecode('Our+Benefactors'),jdecode(''),'/16827/24701.html','true',[],'']
	],''],
	['PAGE','63601',jdecode('Variety'),jdecode(''),'/63601/index.html','true',[ 
		['PAGE','62701',jdecode('Need+of+Music'),jdecode(''),'/63601/62701.html','true',[],''],
		['PAGE','63701',jdecode('Eternal+Chopin'),jdecode(''),'/63601/63701.html','true',[],'']
	],''],
	['PAGE','65901',jdecode('Press%2C+Comments%2C+%26+Kudos'),jdecode(''),'/65901/index.html','true',[ 
		['PAGE','66001',jdecode('Chopin%26%23x27%3Bs+200th+Anniversary'),jdecode(''),'/65901/66001.html','true',[],''],
		['PAGE','87301',jdecode('News+of+Polonia+-+June+2010'),jdecode(''),'/65901/87301.html','true',[],'']
	],''],
	['PAGE','16869',jdecode('Interesting+Links'),jdecode(''),'/16869/index.html','true',[ 
		['PAGE','34901',jdecode('Paderewski'),jdecode(''),'/16869/34901.html','true',[],''],
		['PAGE','34922',jdecode('Pianists'),jdecode(''),'/16869/34922.html','true',[],''],
		['PAGE','34943',jdecode('Music%26Art+Organizations'),jdecode(''),'/16869/34943.html','true',[],''],
		['PAGE','34964',jdecode('Media+%26+Other'),jdecode(''),'/16869/34964.html','true',[],'']
	],''],
	['PAGE','52001',jdecode('Radio'),jdecode(''),'/52001.html','true',[],''],
	['PAGE','16848',jdecode('Contact'),jdecode(''),'/16848.html','true',[],''],
	['PAGE','31601',jdecode('Guestbook'),jdecode(''),'/31601.html','true',[],'']];
var siteelementCount=52;
theSitetree.topTemplateName='Displace';
theSitetree.paletteFamily='2E2E2E';
theSitetree.keyvisualId='11075';
theSitetree.keyvisualName='kv_11075.jpg';
theSitetree.fontsetId='31958';
theSitetree.graphicsetId='13798';
theSitetree.contentColor='D8D8D5';
theSitetree.contentBGColor='2E2E2E';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Displace',
				paletteFamily: 	'2E2E2E',
				keyvisualId: 	'11075',
				keyvisualName: 	'kv_11075.jpg',
				fontsetId: 		'31958',
				graphicsetId: 	'13798',
				contentColor: 	'D8D8D5',
				contentBGColor: '2E2E2E',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7701',
internalId:  '',
customField: '20100518-030638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16743',
internalId:  '',
customField: '20090115-014527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20501',
internalId:  '',
customField: '20091123-232224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20100112-022927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16764',
internalId:  '',
customField: '20090924-200935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16785',
internalId:  '',
customField: '20100612-235716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20901',
internalId:  '',
customField: '20100613-000002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16827',
internalId:  '',
customField: '20100706-232434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16848',
internalId:  '',
customField: '20081206-223253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16869',
internalId:  '',
customField: '20100408-182814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19001',
internalId:  '',
customField: '20100130-193441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19901',
internalId:  '',
customField: '20100130-194613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22601',
internalId:  '',
customField: '20081228-212042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24701',
internalId:  '',
customField: '20100706-234252'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '7701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28501',
internalId:  '',
customField: '20090120-210111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30401',
internalId:  '',
customField: '20090225-230754'
};
webappMappings['1002']=webappMappings['1002-31601aendu0ineu37']={
webappId:    '1002',
documentId:  '31601',
internalId:  '31601aendu0ineu37',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31601',
internalId:  '',
customField: '20090303-003856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33601',
internalId:  '',
customField: '20091107-165814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34943',
internalId:  '',
customField: '20091110-165808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34901',
internalId:  '',
customField: '20090607-122308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34922',
internalId:  '',
customField: '20091013-211636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34964',
internalId:  '',
customField: '20100408-234635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38001',
internalId:  '',
customField: '20090620-011034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38801',
internalId:  '',
customField: '20091018-171630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45501',
internalId:  '',
customField: '20100309-193534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41901',
internalId:  '',
customField: '20100119-000020'
};
webappMappings['7008']=webappMappings['7008-19597']={
webappId:    '7008',
documentId:  '44201',
internalId:  '19597',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44201',
internalId:  '',
customField: '20100224-234251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46901',
internalId:  '',
customField: '20100130-142928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47301',
internalId:  '',
customField: '20100309-195707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49001',
internalId:  '',
customField: '20091231-124029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52001',
internalId:  '',
customField: '20100409-123653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53401',
internalId:  '',
customField: '20091107-174444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53101',
internalId:  '',
customField: '20100409-130050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60101',
internalId:  '',
customField: '20100612-235624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55701',
internalId:  '',
customField: '20100429-211138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56401',
internalId:  '',
customField: '20100506-012621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56601',
internalId:  '',
customField: '20100429-221929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60201',
internalId:  '',
customField: '20100115-220911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62701',
internalId:  '',
customField: '20100209-234729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63601',
internalId:  '',
customField: '20100210-000233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63701',
internalId:  '',
customField: '20100210-000149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65901',
internalId:  '',
customField: '20100708-205353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66001',
internalId:  '',
customField: '20100708-205447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68201',
internalId:  '',
customField: '20100503-012911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75701',
internalId:  '',
customField: '20100527-020019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80401',
internalId:  '',
customField: '20100526-020027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81901',
internalId:  '',
customField: '20100501-130634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84901',
internalId:  '',
customField: '20100528-030005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85601',
internalId:  '',
customField: '20100529-112029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87301',
internalId:  '',
customField: '20100707-001004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87601',
internalId:  '',
customField: '20100710-125608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94012',
internalId:  '',
customField: '20100717-133856'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INEU37';
var companyName   = 'Paderewski+Music+Society';
var htmlTitle	  = 'Paderewski+Music+Society';
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();
};
