/* [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','55303',jdecode('Les+photos+du+mois'),jdecode(''),'/55303.html','true',[],''],
	['PAGE','75901',jdecode('Corvette+C5+GT1'),jdecode(''),'/75901.html','true',[],''],
	['PAGE','23902',jdecode('Corvette+C4+GT1'),jdecode(''),'/23902.html','true',[],''],
	['PAGE','78901',jdecode('Ford+GT40+MKI+Replica'),jdecode(''),'/78901.html','true',[],''],
	['PAGE','43002',jdecode('Hommage+%C3%A0+un+Champion'),jdecode(''),'/43002.html','true',[],''],
	['PAGE','93501',jdecode('Huiles+et+technologie+MD10'),jdecode(''),'/93501.html','true',[],''],
	['PAGE','6336',jdecode('Liens+et+partenaires'),jdecode(''),'/6336.html','true',[],''],
	['PAGE','6309',jdecode('Contact'),jdecode(''),'/6309/index.html','true',[ 
		['PAGE','30502',jdecode('Contact+%28volgende+pagina%29'),jdecode(''),'/6309/30502.html','false',[],'']
	],''],
	['PAGE','94201',jdecode('Annonces'),jdecode(''),'/94201.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='AC2323';
theSitetree.keyvisualId='1819';
theSitetree.keyvisualName='kv_dummy.jpg';
theSitetree.fontsetId='294';
theSitetree.graphicsetId='356';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='AC2323';
var theTemplate={
				name: 			'Movement',
				paletteFamily: 	'AC2323',
				keyvisualId: 	'1819',
				keyvisualName: 	'kv_dummy.jpg',
				fontsetId: 		'294',
				graphicsetId: 	'356',
				contentColor: 	'FFFFFF',
				contentBGColor: 'AC2323',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'AC2323',
				b_color: 		'480F0F',
				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:  '93501',
internalId:  '',
customField: '20091122-175904'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '23902',
internalId:  '105252f658e',
customField: 'g.12lfamkuq.26pd2ar1e9uil.6rn80'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '6309',
internalId:  'aam010in34ck1052b8bee4c',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '30502',
internalId:  'aam010in34ck1052b8bee4c',
customField: 'followUp'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '43002',
internalId:  '1061b37edb4',
customField: 'Champion'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '94201',
internalId:  '',
customField: '20091108-152047'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '55303',
internalId:  '5428850',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '55303',
internalId:  '',
customField: '20091122-173551'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78901',
internalId:  '',
customField: '20091118-001528'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23902',
internalId:  '',
customField: '20091117-222002'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '43002',
internalId:  '',
customField: '20091121-213908'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '75901',
internalId:  '',
customField: '20091122-184738'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6336',
internalId:  '',
customField: '20091117-222250'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6309',
internalId:  '',
customField: '20091118-205950'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30502',
internalId:  '',
customField: '20050718-220415'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN34CK';
var companyName   = 'Corvette+By+JPS+Racing';
var htmlTitle	  = 'Corvette+By+JPS+Racing';
var metaKeywords  = 'Corvette%2C+course%2C+racing%2C+GT1%2C+C4%2C+C5%2C+Vincent%2C+Sarlin%2C+JPS+Racing%2C+Team%2C+France';
var metaContents  = 'Vincent+Sarlin+pr%EF%BF%BDsente+Corvette+By+JPS+Racing.+Corvette+By+JPS+Racing%2C+anciennement+Red+Racing+Team%2C+est+une+association+%EF%BF%BD+but+non+lucratif+ayant+pour+vocation+%EF%BF%BD+faire+rouler+en+Europe+des+Corvette+de+course+dexception%2C+et+de+simplement+se+faire+plaisir+en+pilotant+des+auto+performantes.+Les+aventures+de+Corvette+By+JPS+Racing+en+photos...';
					                                                                    
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 */					                                                            
