/* [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','701',jdecode('Intervention+Plomberie+Imm%C3%A9diate'),jdecode(''),'/701.html','true',[],''],
	['PAGE','18501',jdecode('URGENCE+PLOMBERIE+7%2F7+24%2F24'),jdecode(''),'/18501.html','true',[],''],
	['PAGE','18522',jdecode('Service+sp%C3%A9cialis%C3%A9+Travaux'),jdecode(''),'/18522.html','true',[],''],
	['PAGE','18543',jdecode('TVA+%C3%A0+5%2C5+%25+%3F'),jdecode(''),'/18543.html','true',[],''],
	['PAGE','752',jdecode('Obtenir+un+DEVIS+travaux+GRATUIT'),jdecode(''),'/752.html','true',[],''],
	['PAGE','22601',jdecode('Le+m%C3%A9tier+de+plombier'),jdecode(''),'/22601.html','true',[],''],
	['PAGE','22622',jdecode('Contact+%26+Recrutement'),jdecode(''),'/22622.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='B0CBD6';
theSitetree.keyvisualId='2054';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='329';
theSitetree.graphicsetId='383';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Stylus',
				paletteFamily: 	'B0CBD6',
				keyvisualId: 	'2054',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'329',
				graphicsetId: 	'383',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'B0CBD6',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20120129-224841'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20120129-224414'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18501',
internalId:  '',
customField: '20120129-224154'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18543',
internalId:  '',
customField: '20120129-224347'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18522',
internalId:  '',
customField: '20120129-224308'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '752',
internalId:  '4058346',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22601',
internalId:  '',
customField: '20100831-163735'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22622',
internalId:  '',
customField: '20120129-224516'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '22622',
internalId:  '4058346',
customField: 'fr:FR:'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INZ10K';
var companyName   = 'SOS+Plombier+0493867007+Intervention+Imm%C3%A9diate+7J%2F7+24H%2F24+D%C3%A9pannage-Urgence+Plomberie-Travaux';
var htmlTitle	  = 'PLOMBIER+NICE+PAS+CHER+24h%2F24+7j%2F7+T%C3%A9l+04.93.867.007';
var metaKeywords  = 'plombier+Nice%2Cplomberie+nice%2C+plombier+a+Nice%2Cplombier+%C3%A0+Nice%2C+Tadini+plomberie%2C+Nice%2C+06%2C+Tadini%2C+plomberie+Nice%2C+plomberie+06%2C+chauffage+Nice%2C+plombier+a+Nice%2C+plombiers+%C3%A0+Nice%2C+maintenance+et+d%C3%A9pannage%2C+maintenance+chaudi%C3%A8re%2C+maintenance+chauffage%2C+travaux+de+plomberie+%C3%A0+Nice%2C+devis+plomberie+Nice%2C+salle+de+bains%2C+mise+en+conformit%C3%A9%2C+entretien+chaudi%C3%A8re%2C+entreprise+de+plomberie+%C3%A0+Nice%2C+entreprise+de+plomberie+a+Nice%2C+plombiers+a+Nice%2C+plumber%2C+plumber+in+Nice%2CPlombier+Nice+Entreprise+Tadini+plomberie%2C+4+Av+Cauvin%2C+06100%2C+Nice%2C+Alpes+Maritimes%2C+PACA%2C+France+-+Tel%3A+04.93.86.70.07';
var metaContents  = 'PLOMBIER+NICE+PAS+CHER+Intrvention+Imm%C3%A9diate+SANS+RDV+24h%2F24+7j%2F7+D%C3%A9pannages%2C+Installations%2C+Entretien%2C+Conseil+...+T%C3%A9l+04.93.867.007+';
					                                                                    
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 */					                                                            

