/* [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('ACCUEIL'),jdecode(''),'/4559/index.html','true',[ 
		['PAGE','33203',jdecode('NOS+MAGASINS'),jdecode(''),'/4559/33203.html','true',[],'']
	],''],
	['PAGE','5102',jdecode('FENETRES'),jdecode(''),'/5102/index.html','true',[ 
		['PAGE','8503',jdecode('PVC+Blanc%2C+Beige%2C+Gris'),jdecode(''),'/5102/8503.html','true',[],''],
		['PAGE','58703',jdecode('PVC+Ch%C3%AAne+dor%C3%A9+-+Acajou+'),jdecode(''),'/5102/58703.html','true',[],''],
		['PAGE','61703',jdecode('ALUMINIUM'),jdecode(''),'/5102/61703.html','true',[],''],
		['PAGE','58730',jdecode('MENUISERIE+BOIS'),jdecode(''),'/5102/58730.html','true',[],''],
		['PAGE','58757',jdecode('VOLETS'),jdecode(''),'/5102/58757.html','true',[],''],
		['PAGE','58784',jdecode('VITRAGES+%26+OPTIONS'),jdecode(''),'/5102/58784.html','true',[],''],
		['PAGE','69503',jdecode('RENOVATION+EN+5+ETAPES'),jdecode(''),'/5102/69503.html','true',[],''],
		['PAGE','64603',jdecode('AVANTAGES+FISCAUX'),jdecode(''),'/5102/64603.html','true',[],''],
		['PAGE','75403',jdecode('REALISATIONS+'),jdecode(''),'/5102/75403.html','true',[],'']
	],''],
	['PAGE','5183',jdecode('ENERGIES+RENOUVELABLES'),jdecode(''),'/5183/index.html','true',[ 
		['PAGE','78719',jdecode('POMPE+A+CHALEUR+AIR%2FEAU'),jdecode(''),'/5183/78719.html','true',[],''],
		['PAGE','9830',jdecode('POMPE+A+CHALEUR+AIR%2FAIR'),jdecode(''),'/5183/9830.html','true',[],''],
		['PAGE','9884',jdecode('CLIMATISATION'),jdecode(''),'/5183/9884.html','true',[],''],
		['PAGE','9457',jdecode('NOS+ENGAGEMENTS'),jdecode(''),'/5183/9457.html','true',[],''],
		['PAGE','88619',jdecode('AIR+CONDITIONING'),jdecode(''),'/5183/88619.html','true',[],''],
		['PAGE','24330',jdecode('NOS+REALISATIONS+CLIM'),jdecode(''),'/5183/24330.html','true',[],''],
		['PAGE','90319',jdecode('TELECHARGEMENT+doc'),jdecode(''),'/5183/90319.html','true',[],'']
	],''],
	['PAGE','39403',jdecode('IMPOTS+-+CG++-+Eco-Pr%C3%AAt+'),jdecode(''),'/39403.html','true',[],''],
	['PAGE','17703',jdecode('DEVIS'),jdecode(''),'/17703.html','true',[],''],
	['PAGE','34403',jdecode('ACTUALITES'),jdecode(''),'/34403.html','true',[],'']];
var siteelementCount=23;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='B0CBD6';
theSitetree.keyvisualId='1997';
theSitetree.keyvisualName='zeichnung.jpg';
theSitetree.fontsetId='329';
theSitetree.graphicsetId='383';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Stylus',
				paletteFamily: 	'B0CBD6',
				keyvisualId: 	'1997',
				keyvisualName: 	'zeichnung.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:  '4559',
internalId:  '',
customField: '20100618-182204'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5102',
internalId:  '',
customField: '20100618-183217'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4559',
internalId:  '1006',
customField: '1006'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '17703',
internalId:  '12940205',
customField: 'fr:FR:'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4559',
internalId:  '5862233',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8503',
internalId:  '',
customField: '20100419-185153'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '58703',
internalId:  '',
customField: '20080209-184628'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '61703',
internalId:  '',
customField: '20100618-183402'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '58730',
internalId:  '',
customField: '20091117-150136'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '58757',
internalId:  '',
customField: '20091117-150207'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '58784',
internalId:  '',
customField: '20100514-184500'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '69503',
internalId:  '',
customField: '20080302-153124'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '64603',
internalId:  '',
customField: '20100514-184654'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '75403',
internalId:  '',
customField: '20100618-183536'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5183',
internalId:  '',
customField: '20100618-183607'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9830',
internalId:  '',
customField: '20091109-142756'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9884',
internalId:  '',
customField: '20091125-154318'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78719',
internalId:  '',
customField: '20100618-183633'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '39403',
internalId:  '',
customField: '20100618-184048'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24330',
internalId:  '',
customField: '20100618-183907'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9457',
internalId:  '',
customField: '20100618-183749'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33203',
internalId:  '',
customField: '20100620-213726'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34403',
internalId:  '',
customField: '20100610-213200'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '88619',
internalId:  '',
customField: '20080209-183040'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17703',
internalId:  '',
customField: '20091212-170114'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '90319',
internalId:  '',
customField: '20080329-181108'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3QH8';
var companyName   = '++++L%27essentiel+de+votre+confort';
var htmlTitle	  = 'Mondial+Habitat+%3A+Fen%C3%AAtres%2C+Volets+Roulants%2C+Portail%2C+Climatisation';
var metaKeywords  = 'Menuiserie+PVC+BOIS+ALU+FENETRES+VOLETS+PORTES+Climatisation+Chauffage+Daikin+Carrier+Hitachi+LG+Mitsubishi+Toshiba+Cannes+Vivrelec+EDF++Mondialclim+Mondial+Habitat+MondialHabitat+';
var metaContents  = 'Mondial+Habitat+%2C+une+enseigne+de+la+Soci%C3%A9t%C3%A9+MONDIALCLIM+34+Fen%C3%AAtres+Aluminium+PVC+sur+mesure%2C+Volet+roulant+%2C+Store+..+Pompe+%C3%A0+chaleur+Climatisation+Chauffage+Plancher+Chauffant+...+Daikin+Hitachi+Carrier+';
					                                                                    
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 */					                                                            
