/* [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','1509',jdecode('Accueil'),jdecode(''),'/1509.html','true',[],''],
	['PAGE','36768',jdecode('Visite+du+g%C3%AEte'),jdecode(''),'/36768.html','true',[],''],
	['PAGE','79512',jdecode('photos'),jdecode(''),'/79512.html','true',[],''],
	['PAGE','39719',jdecode('Activit%C3%A9s'),jdecode(''),'/39719.html','true',[],''],
	['PAGE','9473',jdecode('Prix'),jdecode(''),'/9473.html','true',[],''],
	['PAGE','36795',jdecode('R%C3%A9servation'),jdecode(''),'/36795/index.html','true',[ 
		['PAGE','41008',jdecode('R%C3%A9servation+%28volgende+pagina%29'),jdecode(''),'/36795/41008.html','false',[],'']
	],''],
	['PAGE','9500',jdecode('Acc%C3%A8s'),jdecode(''),'/9500.html','true',[],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Proton';
theSitetree.paletteFamily='DCEAAA';
theSitetree.keyvisualId='3546';
theSitetree.keyvisualName='kv_3546.jpg';
theSitetree.fontsetId='10446';
theSitetree.graphicsetId='10830';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='DCEAAA';
var theTemplate={
				name: 			'Proton',
				paletteFamily: 	'DCEAAA',
				keyvisualId: 	'3546',
				keyvisualName: 	'kv_3546.jpg',
				fontsetId: 		'10446',
				graphicsetId: 	'10830',
				contentColor: 	'000000',
				contentBGColor: 'DCEAAA',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'747474',
				e_color: 		'864242',
				f_color: 		'A9A9A9',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1001']={
webappId:    '1001',
documentId:  '36795',
internalId:  'aam010in3zt4109e343d6b0',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '41008',
internalId:  'aam010in3zt4109e343d6b0',
customField: 'followUp'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1509',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1509',
internalId:  '',
customField: '20071211-092420'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36768',
internalId:  '',
customField: '20071211-092527'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '79512',
internalId:  '',
customField: '20071105-120511'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '39719',
internalId:  '',
customField: '20071105-123116'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9473',
internalId:  '',
customField: '20071211-092633'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36795',
internalId:  '',
customField: '20071211-092701'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41008',
internalId:  '',
customField: '20060310-092647'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9500',
internalId:  '',
customField: '20060314-143417'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3ZT4';
var companyName   = 'LE+PETIT+PHOQUE';
var htmlTitle	  = 'le+petit+phoque.com';
var metaKeywords  = 'FontenilBrian%EF%BF%BDon+Durance+Vall%EF%BF%BDe+Clar%EF%BF%BDe+Prorel+GR5+Montgen%EF%BF%BDvre+Italie+Serre-Chevalier+Calme+Convivialit%EF%BF%BD+sourire+Vacances+Repas+maison+moulin+vieille+ville+gargouille%2C+fortification+sport+kayak+parapente+escalade+montagnarde+patinoire+nature+randonn%EF%BF%BDes+randonneurs+vtt+gestion+libre+demi-pension+italien+anglais+fran%EF%BF%BDais+espagnol+tcheck+nuit%EF%BF%BDes+chambres+dortoirs+village+montagne+paysage+soleil+remise+en+forme+canyoning+d%EF%BF%BDguster+cadre+id%EF%BF%BDal+col+Lautaret+Galibier+isoloire+tarif+r%C3%A9duit+pas+cher+moins+chers';
var metaContents  = 'Le+g%EF%BF%BDte+d%EF%BF%BDtape+le+petit+phoque+%EF%BF%BD+Brian%EF%BF%BDon+vous+accueille+tout+au+long+de+lann%EF%BF%BD';
					                                                                    
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 */					                                                            
