/* [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','1514',jdecode('Accueil+'),jdecode(''),'/1514.html','true',[],''],
	['PAGE','33107',jdecode('Nos+Chambres'),jdecode(''),'/33107.html','true',[],''],
	['PAGE','33134',jdecode('Nos+Tarifs'),jdecode(''),'/33134.html','true',[],''],
	['PAGE','4201',jdecode('Acc%C3%A8s'),jdecode(''),'/4201.html','true',[],''],
	['PAGE','33161',jdecode('Informations+-+Festivit%C3%A9s'),jdecode(''),'/33161.html','true',[],''],
	['PAGE','33188',jdecode('Aux+alentours'),jdecode(''),'/33188.html','true',[],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Proton';
theSitetree.paletteFamily='EEEFB1';
theSitetree.keyvisualId='3538';
theSitetree.keyvisualName='kv_3538.jpg';
theSitetree.fontsetId='10446';
theSitetree.graphicsetId='10831';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='EEEFB1';
var theTemplate={
				name: 			'Proton',
				paletteFamily: 	'EEEFB1',
				keyvisualId: 	'3538',
				keyvisualName: 	'kv_3538.jpg',
				fontsetId: 		'10446',
				graphicsetId: 	'10831',
				contentColor: 	'000000',
				contentBGColor: 'EEEFB1',
				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: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1514',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1514',
internalId:  '',
customField: '20111130-100430'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33161',
internalId:  '',
customField: '20111130-100353'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33107',
internalId:  '',
customField: '20111130-100512'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33134',
internalId:  '',
customField: '20111130-100617'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4201',
internalId:  '',
customField: '20111205-105834'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33188',
internalId:  '',
customField: '20111130-100744'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3U8L';
var companyName   = 'Le+Mas+du+Vieux+Ch%C3%AAne';
var htmlTitle	  = 'Mas+du+Vieux+Ch%C3%AAne+%3A+location+de+chambres+dh%C3%B4tes+en+Ard%C3%A8che+%2807%29';
var metaKeywords  = 'Chambre+d+hote%2C+location+de+chambres+d+hotes+en+ardeche+cevenole%2C+location+de+chambres+dhotes+en+france%2C+hebergement+pour+les+vacances+chez+l+habitant%2C+location+immobiliere+saisonniere%2C+chambre+d+hote+acceptant+les+cheques+vacances%2C+location+de+gites+en+ardeche%2C+location+touristique%2C+maison+a+louer+en+europe+pour+des+vacances+en+france%2C+promo+vacances+pas+cheres%2C+gites+ruraux%2Clocation+aux+particuliers%2Clocations+vacances%2C+chambre+d+hotes%2Cbed+and+breakfast%2C+bertrand+vacances%2Csejour+vert%2C+gite+rural%2Clocation+saisonniere%2C+tourisme+vert%2Cchambres+d+hote%2C+hebergement+ardeche%2C+location+saisonniere%2Cappartement+de+vacances%2Clocations+saisonnieres%2C+hebergement%2C+ardeche%2C+location%2C+gite%2C+rural%2C+location%2C+vacances%2C+se+mettre+au+vert%2C+montagne%2C+france%2C+location%2C+louer%2C+vacance%2C+chambre%2C+maison%2C+piscine%2C+recherche%2C+campagne%2C+tourisme%2C+gites%2C+villegiature%2C+gites%2C+hote%2C+chambres%2Ccuisine%2C';
var metaContents  = 'HEADTITLE%2F+Mas+du+Vieux+Chene+%3A+location+de+chambres+dhotes+en+Ardeche+Cevenole+%2807%29+-+Gite+de+France+3+epis%2FTITLEMETA+NAME%3DDescription+CONTENT%3DLe+Mas+du+Vieux+Chene%2C+etablissement+classe+gites+de+France+3+epis%2C+vous+accueille+dans+ses+chambres+dhotes+en+Ardeche+Cevenole+%2807%29.+Le+mas+comprend+4+chambres+pour+15+personnes+avec+piscine+et+terrain+ombrage.+Jeux+denfants+et+nombreuses+activites+alentours.+Accueil+chaleureux..META+NAME%3DKeywords+CONTENT%3Dlocation+de+chambres+dhotes+en+Ardeche+cevenole%2Clocation+de+chambres+dhotes+en+France%2Chebergement+pour+les+vacances+chez+lhabitant%2Clocation+immobiliere+saisonniere%2Cchambre+dhote+acceptant+les+cheques+vacances%2Clocation+de+gites+en+Ardeche%2Clocation+touristique+de+chambres+dhote+en+France%2Cgites+ruraux%2Clocation+particulier%2Cchambres+dhotes%2Cchambres+dhotes%2Clocations+vacances%2Cbed+and+breakfast%2Cbertrand+vacances%2Corganisateur%2Csejour+vert%2Cgite+rural%2Cdeposer+annonce%2Clocation+saisonniere%2Ctourisme+vert%2Cen+ligne%2Chebergement+Ardeche%2Clocation+ardeche%2Clocation+saisonniere%2Cappartement+de+vacances%2Clocation+saisonnieres%2Chebergement%2Cardeche%2Clocation%2Cgite%2Crural%2Clocation%2Cvacances%2Cse+mettre+au+vert%2Cmontagne%2CFrance%2Clocation%2Cgite%2Clouer%2Cvacances%2Cchambre%2Cmaison%2Cpiscine%2Crecherche%2Ccampagne%2Ctourisme%2Cgites%2Cvillegiature%2Cgites%2Cardeche%2Chote%2CchambresMETA+NAME%3DRobots+CONTENT%3Dindex%2Cnofollow%2FHEAD';
					                                                                    
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 */					                                                            

