/* [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','1508',jdecode('Accueil'),jdecode(''),'/1508.html','true',[],''],
	['PAGE','3101',jdecode('L%26%23x27%3Bart-th%C3%A9rapie'),jdecode(''),'/3101.html','true',[],''],
	['PAGE','2201',jdecode('Le+mot+du+th%C3%A9rapeute'),jdecode(''),'/2201.html','true',[],''],
	['PAGE','2228',jdecode('Domaines+d%26%23x27%3Bapplication'),jdecode(''),'/2228.html','true',[],''],
	['PAGE','7901',jdecode('+Stages+pr%C3%A9vus+'),jdecode(''),'/7901.html','true',[],''],
	['PAGE','2255',jdecode('Lieux+et+tarifs'),jdecode(''),'/2255.html','true',[],''],
	['PAGE','35214',jdecode('Cours'),jdecode(''),'/35214.html','true',[],''],
	['PAGE','21614',jdecode('Contact'),jdecode(''),'/21614.html','true',[],''],
	['PAGE','38214',jdecode('Weblog'),jdecode(''),'/38214.html','true',[],''],
	['PAGE','42519',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/42519/index.html','true',[ 
		['PAGE','42514',jdecode('Entr%C3%A9es'),jdecode(''),'/42519/42514.html','true',[],'']
	],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Theater';
theSitetree.paletteFamily='C8A74E';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10781';
theSitetree.graphicsetId='11137';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Theater',
				paletteFamily: 	'C8A74E',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10781',
				graphicsetId: 	'11137',
				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: 		'680C0C',
				e_color: 		'680C0C',
				f_color: 		'680C0C',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '35214',
internalId:  '',
customField: '20110609-221754'
};
webappMappings['1003']={
webappId:    '1003',
documentId:  '35214',
internalId:  'aam010ine7ea1251c4b3464',
customField: 'fr:FR:'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1508',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1508',
internalId:  '',
customField: '20110902-112907'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3101',
internalId:  '',
customField: '20110811-192826'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2201',
internalId:  '',
customField: '20100211-112925'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2228',
internalId:  '',
customField: '20050216-172255'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2255',
internalId:  '',
customField: '20100322-121806'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7901',
internalId:  '',
customField: '20110806-164956'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '21614',
internalId:  '',
customField: '20090204-100522'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '21614',
internalId:  '11515050',
customField: 'fr:FR:'
};
webappMappings['3030']={
webappId:    '3030',
documentId:  '38214',
internalId:  '38214',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '38214',
internalId:  '',
customField: '20100211-095536'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '1508',
internalId:  '13200334',
customField: '1501'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '42519',
internalId:  '42519aam010ine7ea',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '42514',
internalId:  '42519aam010ine7ea',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42519',
internalId:  '',
customField: '20101012-174851'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42514',
internalId:  '',
customField: '20101012-174851'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INE7EA';
var companyName   = 'L%27AUTRE+VOIX';
var htmlTitle	  = 'ART-THERAPIE';
var metaKeywords  = 'chant%2C+psychologie%2Cart-th%C3%A9rapie%2C+voix%2C+psychoth%C3%A9rapie%2C+musique%2Cart%2C+culture';
var metaContents  = 'Bienvenue+sur+le+site+de+vocal+art-th%C3%A9rapie++De+la+voix+%C3%A0+la+voie+de+la+connaissance+de+soi+il+ni+a+quun+pas.+Le+chant+permet+de+travailler+sur+ce+qui+fait+signe%2C+sur+ce+que+le+corps+dit+de+nous+et+qui+est+v%C3%A9hicul%C3%A9+par+de+notre+voix.+La+voix+est+notre+corps+sonore.';
					                                                                    
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 */					                                                            

