/* [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('Accueil'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('Catalogue+%2F+Prix'),jdecode(''),'/452.html','true',[],'']];
var siteelementCount=2;
theSitetree.topTemplateName='Collage';
theSitetree.paletteFamily='6683B6';
theSitetree.keyvisualId='2446';
theSitetree.keyvisualName='business.jpg';
theSitetree.fontsetId='406';
theSitetree.graphicsetId='461';
theSitetree.contentColor='2F325F';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Collage',
				paletteFamily: 	'6683B6',
				keyvisualId: 	'2446',
				keyvisualName: 	'business.jpg',
				fontsetId: 		'406',
				graphicsetId: 	'461',
				contentColor: 	'2F325F',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'6683B6',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100802-101014'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20100830-152534'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLXD7';
var companyName   = 'Location+de+mat%C3%A9riel+informatique+et+vid%C3%A9o';
var htmlTitle	  = 'Location+ordinateur+portable+-+D%C3%A9pannage+PC-+materiel+informatique+vid%C3%A9oprojecteur+-+%C3%A9cran+LCD+-+Lyon';
var metaKeywords  = 'location+Location+louer+Louer+materiel+informatique+Informatique+ordinateur+Ordinateur+portable+Portable+bureau+pc+PC+Lyon+LYON++Rhone+rh%C3%B4ne+69++formation+Formation+R%C3%A9troprojecteur+retroprojecteur+videoprojecteur+Videoprojecteur++vid%C3%A9oprojecteur+Imprimante+imprimante+portable+reseau+WiFi+laser+jet+encre+longue+courte+dur%C3%A9e+salons+expositions+foire+evenement+%C3%A9v%C3%A9nement+sp%C3%A9cialiste+de+la+location+ordinateurs%2C+de+mat%C3%A9riel+informatique+vid%C3%A9o+audiovisuel.+Location+de+pc%2C+portables%2C+%C3%A9crans%2C+imprimantes%2C+69%2C+38%2C+01+++Loire+Is%C3%A9re+Ain+loire+isere+ain+video++week-end+promo+prix+%C3%A9tudiant+remise%2Cmoniteur%2C+ecran%2C+autonomie++depannage+informatique%2C+devis+personnalis%C3%A9%2C+louer+PC+pas+cher%2C+%C3%A9cran+LCD%2C+TI%2C+tableau+blanc+interactif+mobile%2C+stylet';
var metaContents  = 'Location+informatique+ordinateur+portable+et+de+bureau%2C+vid%C3%A9oprojecteur%2C+moniteur%2C+%C3%A9cran+LCD%2C+d%C3%A9pannage+Lyon%2C+%2C+Louer+PC+pas+cher%2C+imprimante+portable+jet+d%E2%80%99encre%2C+laser.+Lyon+Rhone++location+longue+ou+courte+dur%C3%A9e+Salons+Expositions+Foires++promo+prix+remise+%C3%A9tudiant.+D%C3%A9pannage+particuliers%2C+devis+personnalis%C3%A9%2C+r%C3%A9paration%2C+tableau+blanc+interactif+mobile';
					                                                                    
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 */					                                                            
