/* [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='Picture';
theSitetree.paletteFamily='E1E2FD';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10727';
theSitetree.graphicsetId='10753';
theSitetree.contentColor='4D3B17';
theSitetree.contentBGColor='E1E2FD';
var theTemplate={
				name: 			'Picture',
				paletteFamily: 	'E1E2FD',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10727',
				graphicsetId: 	'10753',
				contentColor: 	'4D3B17',
				contentBGColor: 'E1E2FD',
				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: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				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: '20110529-112737'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36768',
internalId:  '',
customField: '20110529-112728'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '79512',
internalId:  '',
customField: '20071105-120511'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '39719',
internalId:  '',
customField: '20110529-105234'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9473',
internalId:  '',
customField: '20110529-105745'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36795',
internalId:  '',
customField: '20110529-105901'
};
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	  = 'lepetitphoque.com';
var metaKeywords  = 'g%C3%AEte%2C+dortoir%2C+locaiton%2C+ski%2C+Fontenil%2C+Brian%C3%A7on%2C+Vall%C3%A9e+Clar%C3%A9e%2C+Prorel%2C+GR5%2C+Montgen%C3%A8vre%2C+Serre-Chevalier%2CVacances%2C+Repas%2C+maison%2C+moulin%2C+vieille+ville%2C+gargouille%2C+fortification%2C+sport%2C+kayak%2C+parapente%2C+escalade%2C+patinoire%2C+nature%2C+randonn%C3%A9es%2C+randonneurs%2C+vtt%2C+gestion%2C+libre%2C+demi-pension%2C+nuit%C3%A9es%2C++Calme%2C+Convivialit%C3%A9%2C+sourire%2C+chambres%2C+dortoirs%2C+montagne%2C+paysage%2C+soleil%2C+remise+en+forme%2C+canyoning%2C+d%C3%A9guster%2C+cadre+id%C3%A9al%2C+col+Lautaret%2C+Galibier%2C+tarif+r%C3%A9duit%2C+pas+cher%2C+moins+chers';
var metaContents  = 'Le+g%C3%AEte+d%C3%A9tape+le+petit+phoque+%C3%A0+Brian%C3%A7on+vous+accueille+tout+au+long+de+lann%C3%A9e';
					                                                                    
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 */					                                                            

