/* [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','312',jdecode('Pr%C3%A9sentation'),jdecode(''),'/312.html','true',[],''],
	['PAGE','15301',jdecode('Expression+sur+objets'),jdecode(''),'/15301.html','true',[],''],
	['PAGE','18901',jdecode('Dessins+sur+papier'),jdecode(''),'/18901.html','true',[],''],
	['PAGE','34101',jdecode('Cartes+%C3%A0+gratter'),jdecode(''),'/34101.html','true',[],''],
	['PAGE','34501',jdecode('Derni%C3%A8res+r%C3%A9alisations'),jdecode(''),'/34501.html','true',[],''],
	['PAGE','28901',jdecode('Le+village+d%26%23x27%3BAdjouah'),jdecode(''),'/28901.html','true',[],''],
	['PAGE','26601',jdecode('Contact'),jdecode(''),'/26601.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Ragtime';
theSitetree.paletteFamily='9BA8DA';
theSitetree.keyvisualId='3572';
theSitetree.keyvisualName='kv_3572.jpg';
theSitetree.fontsetId='10737';
theSitetree.graphicsetId='10850';
theSitetree.contentColor='646580';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Ragtime',
				paletteFamily: 	'9BA8DA',
				keyvisualId: 	'3572',
				keyvisualName: 	'kv_3572.jpg',
				fontsetId: 		'10737',
				graphicsetId: 	'10850',
				contentColor: 	'646580',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'9BA8DA',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'8D8C8C',
				e_color: 		'7D87B0',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '312',
internalId:  '',
customField: '20090709-160208'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '26601',
internalId:  '5212386',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20090709-112355'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28901',
internalId:  '',
customField: '20090715-140819'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26601',
internalId:  '',
customField: '20090709-155048'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18901',
internalId:  '',
customField: '20090709-110801'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34501',
internalId:  '',
customField: '20090727-175902'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34101',
internalId:  '',
customField: '20090522-155015'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INZ50W';
var companyName   = 'C%C3%A9line+Agnini+cr%C3%A9ations+-+Le+village+d%27Adjouah';
var htmlTitle	  = 'C%C3%A9line+Agnini+cr%C3%A9ations';
var metaKeywords  = 'C%C3%A9line+Agnini%3B+Dessins%2C+Art%2C+C%C3%B4te+dIvoire%2C+Akwaba+';
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;                                                                     
	};                                                                               
/* EOF */					                                                            

