/* [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('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('Formulaire++renseignements'),jdecode(''),'/452.html','true',[],''],
	['PAGE','5801',jdecode('Formulaire+de+r%C3%A9servation'),jdecode(''),'/5801.html','true',[],''],
	['PAGE','7301',jdecode('...........'),jdecode(''),'/7301.html','true',[],''],
	['PAGE','7322',jdecode('Contact'),jdecode(''),'/7322.html','true',[],'']];
var siteelementCount=5;
theSitetree.topTemplateName='Moonflight';
theSitetree.paletteFamily='5B7A93';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='447';
theSitetree.graphicsetId='499';
theSitetree.contentColor='A00000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Moonflight',
				paletteFamily: 	'5B7A93',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'447',
				graphicsetId: 	'499',
				contentColor: 	'A00000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'2C5574',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20090123-142825'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20100309-163929'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '452',
internalId:  '4561992',
customField: 'fr:FR:'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20090123-155715'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '5801',
internalId:  '4562897',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7322',
internalId:  '',
customField: '20090123-155409'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20090123-155424'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INZ0CL';
var companyName   = 'Agence+Cap+d%27Agde+Le+Tuc+Immobilier';
var htmlTitle	  = '';
var metaKeywords  = 'agence+immobili%C3%A8re%2C+agences+immobiliere%2C+agences%2Cagence+cap+dagde%2C+agence%2Cimmobilier%2C+immobilier+cap+dagde%2Clocations+de+vacances%2Clocations+cap+d+agde%2C+capdagde%2C+capagde%2C+location+cap+dagde%2C+location+capdagde%2C+location%2C+locations%2C+ann%C3%A9e%2C+ablv%2C+france%2Cle+tuc%2Cle+tuc+immobilier%2C+tuc%2C+vieux+cap%2C+cap%2Cle+cap%2Cle+cap+dagde%2C+agde%2C+languedoc%2C+achat%2C+vente%2C+appartement%2C+achats%2C+ventes%2C+appartements%2C+annonce%2Cannonces%2C+Ventes+et+annonces+immobili%C3%A8res+le+cap+dAgde%2C+maison%2C+maisons%2Cvilla+%2Cvillas%2C+annonce+immobiliere%2C+annonces+immobiliere%2Cloger%2C+seloger%2C+se+loger%2C+immobilier+de+prestige%2C+prestige%2C+neuf%2C+promoteur%2C+programme+neuf++++';
var metaContents  = 'Agence+immobili%C3%A8re%2Clocations+au+cap+dagde+pour+les+vacances+%C3%A0+la+mer%2Cappartements+et+villas+dans+r%C3%A9sidence+avec+piscine%2C+achat+et+vente+appartement%2Cachats+et+ventes+appartements';
					                                                                    
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 */					                                                            

