/* [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','1001',jdecode('Accueil'),jdecode(''),'/1001.html','true',[],''],
	['PAGE','1052',jdecode('Association+%26+Danses'),jdecode(''),'/1052.html','true',[],''],
	['PAGE','8122',jdecode('Planning+%26+Stages'),jdecode(''),'/8122.html','true',[],''],
	['PAGE','8143',jdecode('Edu-Danses'),jdecode(''),'/8143.html','true',[],''],
	['PAGE','8101',jdecode('Photos+%26+Videos'),jdecode(''),'/8101.html','true',[],''],
	['PAGE','8164',jdecode('Liens+%26+Articles'),jdecode(''),'/8164.html','true',[],''],
	['PAGE','8185',jdecode('Inscription+en+Ligne+%26+Contact'),jdecode(''),'/8185.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='DB7A7A';
theSitetree.keyvisualId='2054';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='330';
theSitetree.graphicsetId='386';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Stylus',
				paletteFamily: 	'DB7A7A',
				keyvisualId: 	'2054',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'330',
				graphicsetId: 	'386',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'DB7A7A',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1001',
internalId:  '',
customField: '20120129-185405'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1052',
internalId:  '',
customField: '20111215-091827'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8122',
internalId:  '',
customField: '20120129-185350'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8143',
internalId:  '',
customField: '20110621-111303'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8164',
internalId:  '',
customField: '20110902-195840'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8185',
internalId:  '',
customField: '20111115-095733'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8101',
internalId:  '',
customField: '20110902-192320'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '8185',
internalId:  '7482230',
customField: 'fr:FR:'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INZ836';
var companyName   = 'L%27Association+Danses+pour+Tous';
var htmlTitle	  = 'Danses+pour+Tous+-+Cours+de+Danse+de+Soci%C3%A9t%C3%A9+et+de+Zumba+-+Toulouse%2C+Venerque%2C+Pompertuzat%2C+Miremont%2C+...';
var metaKeywords  = 'Danses+de+Salon+%3B+Danse+de+soci%C3%A9t%C3%A9+%3B+venerque+%3B+pompertuzat+%3B+sicoval+%3B+rock+%3B+salsa+%3B+valse+%3B+tango+%3B+chachacha+%3B+vieille+toulouse%3B+zumba%3B+bowling+montaudran%3B+miremont+%3B+discoth%C3%A8que+le+modjo%3B+toulouse+montaudran%3B+toulouse%3B+montgiscard%3B+ayguevives+%3B+baziege%3B+castanet+tolosan+%3B++castanet+%3B+31320%3B+31450%3B+pechabou%3B+sud+toulouse%3B+zumba+fitness%3B+zumba+danse%3B+zumba+31%3B+zumba+sicoval%3B+danses+pour+tous%3B+danse+pour+tous%3B+zumba+fitness+31%3B+zumba+fitness+toulouse%3B+cours+zumba+toulouse%3B+';
var metaContents  = 'Cours+de+Danse+de+Soci%C3%A9t%C3%A9+et+de+Zumba+%C3%A0+Toulouse%2C+Venerque%2C+Pompertuzat%2C+Miremont%2C+...+Association+Danses+pour+Tous.+Cours+de+Zumba+Toulouse.+';
					                                                                    
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 */					                                                            

