/* [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','701',jdecode('Page+d%26%23x27%3Baccueil'),jdecode(''),'/701.html','true',[],''],
	['PAGE','54922',jdecode('Concerts'),jdecode(''),'/54922.html','true',[],''],
	['PAGE','54901',jdecode('Coin+choristes'),jdecode(''),'/54901.html','true',[],''],
	['PAGE','54943',jdecode('Bonus'),jdecode(''),'/54943.html','true',[],''],
	['PAGE','54964',jdecode('Contact'),jdecode(''),'/54964.html','true',[],''],
	['PAGE','103906',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/103906/index.html','true',[ 
		['PAGE','103901',jdecode('Entr%C3%A9es'),jdecode(''),'/103906/103901.html','true',[],'']
	],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Bigcity_NYC';
theSitetree.paletteFamily='303050';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='17892';
theSitetree.graphicsetId='13161';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='303050';
var theTemplate={
				name: 			'Bigcity_NYC',
				paletteFamily: 	'303050',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'17892',
				graphicsetId: 	'13161',
				contentColor: 	'FFFFFF',
				contentBGColor: '303050',
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20111208-215948'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '103906',
internalId:  '103906aam010inz1q1',
customField: 'action=form&icq=false'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54901',
internalId:  '',
customField: '20111029-203851'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54922',
internalId:  '',
customField: '20111208-215059'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54964',
internalId:  '',
customField: '20111102-185458'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54943',
internalId:  '',
customField: '20110816-223735'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '54964',
internalId:  '4065951',
customField: 'fr:FR:'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '103901',
internalId:  '103906aam010inz1q1',
customField: 'action=list'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INZ1Q1';
var companyName   = 'La-Mi-Choeur';
var htmlTitle	  = 'Chorale+la-mi-choeur...';
var metaKeywords  = 'chorale+chant++musique+Thonon+les+Bains++Chablais+Haute+Savoie+vari%C3%A9t%C3%A9+fran%C3%A7aise%2C+vari%C3%A9t%C3%A9+quebecoise%2C+chants+traditionnels+de+Savoie%2C+Los+Calchakis%2C+tierra+herida%2C+universo%2C+accord%C3%A9on%2C+guitare%2C+musiciens%2C+choeur+amateur+mixte+Musique+des+Andes+Siku+Kena';
var metaContents  = 'chorale+la+mi+choeur+le+site+de+la+chorale+amateur+de+Thonon+les+Bains+74+haute-Savoie+repertoire+de+chansons+de+vari%C3%A9t%C3%A9s+fran%C3%A7aise%2C+quebecoise%2C+chants+typiques+de+Savoie%2C+Los+Calchakis.+Accompagn%C3%A9s+par+deux+musiciens%2C+accord%C3%A9on+et+guitare.';
					                                                                    
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 */					                                                            

