/* [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','401',jdecode('Accueil'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('Contact'),jdecode(''),'/452.html','true',[],'']];
var siteelementCount=2;
theSitetree.topTemplateName='Picture';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10727';
theSitetree.graphicsetId='10752';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='1D1D1D';
var theTemplate={
				name: 			'Picture',
				paletteFamily: 	'000000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10727',
				graphicsetId: 	'10752',
				contentColor: 	'FFFFFF',
				contentBGColor: '1D1D1D',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20091109-095948'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20091109-095948'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INZNA4';
var companyName   = 'Sejours-france.com+by+Voyages+Provence';
var htmlTitle	  = 'S%C3%A9jours-France.com+by+Voyages+Provence';
var metaKeywords  = 'r%C3%A9servations%2C+bons+cadeaux+activit%C3%A9s%2C+particuliers%2C+billetterie%2C+s%C3%A9minaires%2C+team-building%2C+transports%2C+mariages%2C+s%C3%A9jours%2C+restaurants%2C+produits+r%C3%A9gionaux%2C+DIF%2C+tourisme%2C+loisirs%2C+activit%C3%A9s%2C+Provence%2C+C%C3%B4te+d%E2%80%99Azur%2C+r%C3%A9gion+lyonnaise%2C+Savoie%2C+Paris%2C+Normandie%2C+Languedoc+Roussillon%2C+Corse%2C+Pays+Basque%2C+Bretagne%2C+Ch%C3%A2teaux+de+la+Loire%2C+Alsace%2C+chez+les+Chti%2C+Strasbourg%2C+Disneyland+Paris%2C+restaurants%2C+h%C3%A9bergements%2C+Nautisme%2C+Gastronomie%2C+%C5%92nologie%2C+Activit%C3%A9s+sportives%2C+stage+F1%2C+rallyes+p%C3%A9destres%2C+cours+de+cuisine%2C+massages%2C+spa%2C+nage+avec+les+dauphins%2C+golf%2C+parapente%2C+visites.+';
var metaContents  = 'S%C3%A9jours-France.com+by+Voyages+Provence';
					                                                                    
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 */					                                                            

