/* [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('Accueil'),jdecode(''),'/701.html','true',[],''],
	['PAGE','6001',jdecode('Qui+sommes-nous%3F'),jdecode(''),'/6001.html','true',[],''],
	['PAGE','6022',jdecode('O%C3%B9+nous+trouver+%3F'),jdecode(''),'/6022.html','true',[],''],
	['PAGE','6043',jdecode('Nous+contacter+%3F'),jdecode(''),'/6043.html','true',[],''],
	['PAGE','16501',jdecode('Nos+Occasions'),jdecode(''),'/16501.html','true',[],''],
	['PAGE','6064',jdecode('Nos+Promotions'),jdecode(''),'/6064.html','true',[],''],
	['PAGE','50101',jdecode('Pi%C3%A8ces+d%C3%A9tach%C3%A9es'),jdecode(''),'/50101.html','true',[],''],
	['PAGE','51301',jdecode('Partenaires'),jdecode(''),'/51301.html','true',[],''],
	['PAGE','60701',jdecode('DDR+en+Course'),jdecode(''),'/60701.html','true',[],''],
	['PAGE','58601',jdecode('LE+MANS+2009'),jdecode(''),'/58601.html','true',[],''],
	['PAGE','53622',jdecode('M%C3%A9dia'),jdecode(''),'/53622.html','true',[],''],
	['PAGE','53601',jdecode('Galerie+Photos'),jdecode(''),'/53601.html','true',[],''],
	['PAGE','65406',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/65406/index.html','true',[ 
		['PAGE','65401',jdecode('Entr%C3%A9es'),jdecode(''),'/65406/65401.html','true',[],'']
	],'']];
var siteelementCount=14;
theSitetree.topTemplateName='NewYork';
theSitetree.paletteFamily='660000';
theSitetree.keyvisualId='965';
theSitetree.keyvisualName='autofahrer.jpg';
theSitetree.fontsetId='171';
theSitetree.graphicsetId='197';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'NewYork',
				paletteFamily: 	'660000',
				keyvisualId: 	'965',
				keyvisualName: 	'autofahrer.jpg',
				fontsetId: 		'171',
				graphicsetId: 	'197',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'660000',
				c_color: 		'000000',
				d_color: 		'990000',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20100201-093153'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6001',
internalId:  '',
customField: '20090430-110947'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6022',
internalId:  '',
customField: '20090428-151048'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6043',
internalId:  '',
customField: '20100202-141510'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6064',
internalId:  '',
customField: '20090430-134811'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16501',
internalId:  '',
customField: '20100202-145110'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '53622',
internalId:  '',
customField: '20100206-165958'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '53601',
internalId:  '',
customField: '20100202-145940'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '51301',
internalId:  '',
customField: '20091104-182613'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50101',
internalId:  '',
customField: '20100202-150743'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '701',
internalId:  '6248582',
customField: '1501'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '58601',
internalId:  '124b737db3e',
customField: 'g.14irj3pj8.kep7bb0mn7g.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '58601',
internalId:  '',
customField: '20091103-155954'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '60701',
internalId:  '124bae41e82',
customField: 'g.14ite2plg.p2td9crttl.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '60701',
internalId:  '',
customField: '20100206-171446'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '65406',
internalId:  '65406aam010inz5xn',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '65401',
internalId:  '65406aam010inz5xn',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '65406',
internalId:  '',
customField: '20100202-145447'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '65401',
internalId:  '',
customField: '20100202-145447'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INZ5XN';
var companyName   = '';
var htmlTitle	  = 'Bienvenue+chez+DE+DAIN+RACING+%28DDR%29';
var metaKeywords  = 'Porsche%2C+m%C3%A9canique%2C+Voiture';
var metaContents  = 'Porsche+m%C3%A9canique';
					                                                                    
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 */					                                                            
