/* [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','4520',jdecode('Accueil'),jdecode(''),'/4520/index.html','true',[ 
		['PAGE','51801',jdecode('Liens+favoris'),jdecode(''),'/4520/51801.html','true',[],''],
		['PAGE','51822',jdecode('Contact'),jdecode(''),'/4520/51822.html','true',[],'']
	],''],
	['PAGE','35501',jdecode('Parquet'),jdecode(''),'/35501.html','true',[],''],
	['PAGE','35543',jdecode('Peinture+et+enduits'),jdecode(''),'/35543.html','true',[],''],
	['PAGE','35564',jdecode('Carrelage'),jdecode(''),'/35564.html','true',[],''],
	['PAGE','35522',jdecode('Chaux'),jdecode(''),'/35522/index.html','true',[ 
		['PAGE','64801',jdecode('Fausse+pierre'),jdecode(''),'/35522/64801.html','true',[],'']
	],''],
	['PAGE','61301',jdecode('Isolation'),jdecode(''),'/61301.html','true',[],''],
	['PAGE','35901',jdecode('Am%C3%A9nagement'),jdecode(''),'/35901.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Snapshot';
theSitetree.paletteFamily='6F6F6F';
theSitetree.keyvisualId='3633';
theSitetree.keyvisualName='kv_3633.jpg';
theSitetree.fontsetId='10755';
theSitetree.graphicsetId='10878';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='6F6F6F';
var theTemplate={
				name: 			'Snapshot',
				paletteFamily: 	'6F6F6F',
				keyvisualId: 	'3633',
				keyvisualName: 	'kv_3633.jpg',
				fontsetId: 		'10755',
				graphicsetId: 	'10878',
				contentColor: 	'000000',
				contentBGColor: '6F6F6F',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FC5E7B',
				e_color: 		'BFBFBF',
				f_color: 		'050001',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4520',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4520',
internalId:  '',
customField: '20090419-184644'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '4520',
internalId:  '11557286',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '51801',
internalId:  '',
customField: '20090419-125939'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4520',
internalId:  '11812199',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '35543',
internalId:  '',
customField: '20090419-132237'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '35522',
internalId:  '',
customField: '20090412-231648'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '35564',
internalId:  '',
customField: '20080210-233639'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '35501',
internalId:  '',
customField: '20090419-184730'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '35901',
internalId:  '',
customField: '20090111-203254'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '51822',
internalId:  '',
customField: '20080528-220425'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '61301',
internalId:  '',
customField: '20090414-224855'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '64801',
internalId:  '',
customField: '20090412-215659'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INVVED';
var companyName   = 'SARL++MPS+++R%C3%A9novation+int%C3%A9rieure+';
var htmlTitle	  = 'SARL+MPS+parquet%2C+peinture%2C+isolation%2C+platrerie%2C+carrelage...';
var metaKeywords  = 'decoration+peinture+d%C3%A9corative+sol+agencement+follet+louis+roussille+bertrand+auvergne+cantal+parquet+coll%C3%A9+clou%C3%A9+flottant+aurillac+sarl+mps+stratifi%C3%A9+r%C3%A9novation+am%C3%A9nagement+int%C3%A9rieur+enduis+chaux+carrelage+faience+mosa%C3%AFque+scala+teck+massif+galet+cuisine+placard+isolation+d%C3%A9coration+platrerie+placo+cloisons+stuc+patines+effets+d%C3%A9coratifs+rev%C3%AAtement+sol+et+mur+pon%C3%A7age+vitrification+stucco+b%C3%A9ton+cir%C3%A9+a+l+ancienne+cir%C3%A9+badigeons+lambris+m%C3%A9tal+%C3%A9co+pr%C3%AAt+%C3%A0+taux+z%C3%A9ro+sol+et+plan+de+travail+b%C3%A9ton+I.T.E+isolation+thermique+ext%C3%A9rieur+zolpan+isolation+naturelle+fausse+pierre+peinture+mate+laque+satin%C3%A9e+NF+environnement+label+vert+phase+acrylique+scala+stuc+v%C3%A9nitien+laine+de+verre+laine+de+roche+polystyr%C3%A8ne+isolant+naturel+bio+laine+de+mouton+chanvre+fibre+de+bois';
var metaContents  = 'Bas%C3%A9+dans+le+cantal%2C+SARL+MPS+est+une+entreprise+sp%C3%A9cialis%C3%A9e+en+r%C3%A9novation+int%C3%A9rieur%2C+du+sol+au+plafond.+++Nous+effectuons+tous+type+de+travaux+d+am%C3%A9nagement+int%C3%A9rieur+%3A+peinture+et+effets+d%C3%A9coratifs%2C+chaux%2C+sol+et+plan+de+travail+b%C3%A9ton%2C+parquet%2C+vitrification%2C+pl%C3%A2trerie%2C+isolation%2C+carrelage%2C+rev%C3%AAtements+sols+et+murs...';
					                                                                    
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 */					                                                            
