/* [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','4559',jdecode('Page+d%26%23x27%3Baccueil'),jdecode(''),'/4559.html','true',[],''],
	['PAGE','4616',jdecode('La+chambre+%22Lilas%22'),jdecode(''),'/4616.html','true',[],''],
	['PAGE','4643',jdecode('La+chambre+%22Capucine%22'),jdecode(''),'/4643.html','true',[],''],
	['PAGE','4670',jdecode('%22La+chambre+%C3%A0+fleurs%22'),jdecode(''),'/4670.html','true',[],''],
	['PAGE','4697',jdecode('La+salle+de+vie'),jdecode(''),'/4697.html','true',[],''],
	['PAGE','4724',jdecode('A+proximit%C3%A9'),jdecode(''),'/4724.html','true',[],''],
	['PAGE','15301',jdecode('Acc%C3%A8s'),jdecode(''),'/15301.html','true',[],''],
	['PAGE','29501',jdecode('No%C3%ABl+au+Mont-Saint-Michel'),jdecode(''),'/29501.html','true',[],''],
	['PAGE','32501',jdecode('Le+Mont+vu+par+nos+clients'),jdecode(''),'/32501.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Inspiration';
theSitetree.paletteFamily='819B9B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='100';
theSitetree.graphicsetId='127';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='819B9B';
var theTemplate={
				name: 			'Inspiration',
				paletteFamily: 	'819B9B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'100',
				graphicsetId: 	'127',
				contentColor: 	'FFFFFF',
				contentBGColor: '819B9B',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'819B9B',
				b_color: 		'C8C899',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4559',
internalId:  '',
customField: '20100206-174117'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4616',
internalId:  '',
customField: '20091128-152650'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4643',
internalId:  '',
customField: '20091128-152702'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4670',
internalId:  '',
customField: '20100316-165033'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4697',
internalId:  '',
customField: '20100206-174152'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4724',
internalId:  '',
customField: '20100206-174233'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4559',
internalId:  '11347032',
customField: '1501'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '15301',
internalId:  'location',
customField: 'language:fr;country:FR;isIncluded:false;'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4559',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20091128-152848'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '29501',
internalId:  '1253c5ab3a9',
customField: 'g.14ku5bjgh.5kg4j42apj4.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '29501',
internalId:  '',
customField: '20091128-212456'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '32501',
internalId:  '128c01f6fd1',
customField: 'g.15301jbir.19dp8cb77ovo.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '32501',
internalId:  '',
customField: '20100522-152731'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3VVO';
var companyName   = 'Chambres+d%27h%C3%B4tes+proche+du+Mont+Saint+Michel+%22Les+Salles%22';
var htmlTitle	  = 'Chambres+dh%C3%B4tes+Mont+Saint+Michel';
var metaKeywords  = 'chambres+dh%C3%B4tes+au+Mont-Saint-Michel%2C+chambres+dh%C3%B4tes+Mont-Saint-Michel%2C+chambres+dh%C3%B4tes+MONT+SAINT+MICHEL%2C+chambres+dh%C3%B4tes+Mont-St+Michel%2C+chambres+dh%C3%B4tes+%C3%A0+c%C3%B4t%C3%A9+du+Mont-Saint-Michel%2C+chambres+dh%C3%B4tes+proche+mont-saint-michel%2C+chambres+dh%C3%B4tes+Beauvoir%2C+chambres+dh%C3%B4tes%2C+chambres+dh%C3%B4tes+Les+Salles%2C+chambres+dh%C3%B4tes+Baie+du+Mont-Saint-Michel%2C+chambres+dh%C3%B4tes+Pontorson';
var metaContents  = 'Situ%C3%A9+%C3%A0+4%2C3+km+du+Mont-Saint-Michel%2C+nous+disposons+de+3+chambres.+Une+avec+baignoire+relaxante+et+les+2+autres+avec+douche+relaxante.+A+partir+de+32%E2%82%AC.+Petit-d%C3%A9jeuner+%3A+4%E2%82%AC+par+personne.+Situ%C3%A9s+%C3%A0+1km+de+laxe+principale%2C+route+de+Les+Pas.++';
					                                                                    
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 */					                                                            
