/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(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','4597',jdecode('Home'),jdecode(''),'/4597.html','true',[],''],
	['PAGE','4789',jdecode('Music+Centres'),jdecode(''),'/4789/index.html','true',[ 
		['PAGE','66922',jdecode('Group+Tuition'),jdecode(''),'/4789/66922.html','true',[],''],
		['PAGE','59043',jdecode('Individual+Tuition'),jdecode(''),'/4789/59043.html','true',[],''],
		['PAGE','59022',jdecode('Ensembles'),jdecode(''),'/4789/59022.html','true',[],''],
		['PAGE','5428',jdecode('Fees'),jdecode(''),'/4789/5428.html','true',[],''],
		['PAGE','5401',jdecode('Calendar'),jdecode(''),'/4789/5401.html','true',[],''],
		['PAGE','57601',jdecode('Further+Information'),jdecode(''),'/4789/57601.html','true',[],''],
		['PAGE','68801',jdecode('Enrolment'),jdecode(''),'/4789/68801.html','true',[],'']
	],''],
	['PAGE','4843',jdecode('Workshops'),jdecode(''),'/4843.html','true',[],''],
	['PAGE','80801',jdecode('Concerts'),jdecode(''),'/80801.html','true',[],''],
	['PAGE','57622',jdecode('Schools%26%23x27%3B+Services'),jdecode(''),'/57622.html','true',[],''],
	['PAGE','4951',jdecode('Music+Publishing'),jdecode(''),'/4951.html','true',[],''],
	['PAGE','48203',jdecode('Other+Resources'),jdecode(''),'/48203/index.html','true',[ 
		['PAGE','48402',jdecode('Email+Messenger+%28follow+up+page%29'),jdecode(''),'/48203/48402.html','false',[],'']
	],''],
	['PAGE','4978',jdecode('Vacancies'),jdecode(''),'/4978.html','true',[],''],
	['PAGE','5005',jdecode('Contact+Us'),jdecode(''),'/5005/index.html','true',[ 
		['PAGE','49402',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/5005/49402.html','false',[],''],
		['PAGE','49302',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/5005/49302.html','false',[],''],
		['PAGE','47502',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/5005/47502.html','false',[],'']
	],'']];
var siteelementCount=20;
theSitetree.topTemplateName='NewYork';
theSitetree.paletteFamily='FFCC33';
theSitetree.keyvisualId='935';
theSitetree.keyvisualName='haengematte.jpg';
theSitetree.fontsetId='166';
theSitetree.graphicsetId='199';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'NewYork',
				paletteFamily: 	'FFCC33',
				keyvisualId: 	'935',
				keyvisualName: 	'haengematte.jpg',
				fontsetId: 		'166',
				graphicsetId: 	'199',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000066',
				b_color: 		'FFCC33',
				c_color: 		'000000',
				d_color: 		'406BC0',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1008']={
webappId:    '1008',
documentId:  '5005',
internalId:  '11922903',
customField: 'en:GB:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '68801',
internalId:  '',
customField: '20110618-000017'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4597',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4597',
internalId:  '',
customField: '20110929-181809'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '66922',
internalId:  '',
customField: '20110929-183221'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4789',
internalId:  '',
customField: '20110929-183022'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80801',
internalId:  '',
customField: '20110617-235114'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4843',
internalId:  '',
customField: '20110929-183005'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '59043',
internalId:  '',
customField: '20110616-233616'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4978',
internalId:  '',
customField: '20110802-174835'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48203',
internalId:  '',
customField: '20110612-125538'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5005',
internalId:  '',
customField: '20110831-004633'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5401',
internalId:  '',
customField: '20110714-224717'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5428',
internalId:  '',
customField: '20110616-232821'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4951',
internalId:  '',
customField: '20110612-125604'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48402',
internalId:  '',
customField: '20070529-233657'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '49402',
internalId:  '',
customField: '20070530-001322'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '49302',
internalId:  '',
customField: '20070530-001201'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '47502',
internalId:  '',
customField: '20070529-232129'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '59022',
internalId:  '',
customField: '20110831-004526'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '57622',
internalId:  '',
customField: '20110612-125655'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '57601',
internalId:  '',
customField: '20110616-232950'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLCUG';
var companyName   = '';
var htmlTitle	  = 'Chevin+Music+%2F+Achord+Arts';
var metaKeywords  = 'Achord+Arts%2C+Achord%2C+Arts%2C+Chapel+Allerton%2C+Music%2C+Tuition%2C+Lessons%2C+Leeds%2C+Bramhope%2C+Alison+Major%2C+Classes%2C+Orchestra%2C+Evening+Classes%2C+Chevin+Music%2C+Instrumental%2C+Theory%2C+Music+Appreciation%2C+Wednesdays%2C+Workshops%2C+Music+Publishing%2C+Ensembles%2C+Bands%2C+Strings%2C+Brass%2C+Music+Centre%2C+Alcuin+School%2C+Bramhope+Primary+School%2C+Violin%2C+Viola%2C+Keyboard%2C+Guitar%2C+Drum+Kit%2C+Woodwind%2C+Recorders%2C+Flute%2C+Oboe%2C+Clarinet%2C+Saxophone%2C+Bassoon%2C+Otley%2C+Alwoodley%2C+Cookridge%2C+Roundhay%2C+Horsforth%2C+Adel%2C+Yorkshire%2C+music+evening+class%2C+music+tuition%2C';
var metaContents  = 'Welcome+to+our+website%21+Building+on+5+years+of+successful+work+as+Chevin+Music%2C+we+are+currently+going+through+a+period+of+expansion+-+rebranding+over+the+next+twelve+months+as+Achord+Arts+to+promote+a+wider+artistic+offering.++++To+complement+our+existing+successful+programme+of+evening+classes+%28Chevin+Music+Centre+based+at+Bramhope+Primary+School+on+Wednesday+evenings%29%2C+we+are+launching+a+second+centre+in+September+2011+-+++Chapel+Allerton+Music+Centre.+Full+details+of+classes+from+September+are+available+in+the+music+centres+section+of+this+website.++++We+also+run+one-off+workshops+through+the+year%2C+supply+music+teaching+services+to+schools%2C+promote+concerts%2C+and+publish+music.';
					                                                                    
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;                                                                     
	};                                                                               
/* EOF */					                                                            

