/* [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','473',jdecode('Serveis'),jdecode(''),'/473.html','true',[],''],
	['PAGE','6101',jdecode('Processos'),jdecode(''),'/6101/index.html','true',[ 
		['PAGE','11601',jdecode('MOTLLOS'),jdecode(''),'/6101/11601.html','true',[],''],
		['PAGE','11622',jdecode('CERES'),jdecode(''),'/6101/11622.html','true',[],''],
		['PAGE','12001',jdecode('REVESTIMENT+CER%C3%81MIC'),jdecode(''),'/6101/12001.html','true',[],''],
		['PAGE','12022',jdecode('FOSA'),jdecode(''),'/6101/12022.html','true',[],''],
		['PAGE','494',jdecode('PULIT'),jdecode(''),'/6101/494.html','true',[],''],
		['PAGE','6122',jdecode('PATINA'),jdecode(''),'/6101/6122.html','true',[],'']
	],''],
	['PAGE','76601',jdecode('Artistes'),jdecode(''),'/76601/index.html','true',[ 
		['PAGE','76622',jdecode('Annik+Lescure'),jdecode(''),'/76601/76622.html','true',[],''],
		['PAGE','101012',jdecode('Alain+Clinard'),jdecode(''),'/76601/101012.html','true',[],''],
		['PAGE','76643',jdecode('Ci%C3%B3+Abell%C3%AD'),jdecode(''),'/76601/76643.html','true',[],''],
		['PAGE','76664',jdecode('Francoise+Comaills'),jdecode(''),'/76601/76664.html','true',[],''],
		['PAGE','76685',jdecode('Gerard+Roca'),jdecode(''),'/76601/76685.html','true',[],''],
		['PAGE','97501',jdecode('Guerrero+Medina'),jdecode(''),'/76601/97501.html','true',[],''],
		['PAGE','76706',jdecode('Inke+Zeegelaar'),jdecode(''),'/76601/76706.html','true',[],''],
		['PAGE','97522',jdecode('Jan+Watson+Flood'),jdecode(''),'/76601/97522.html','true',[],''],
		['PAGE','97543',jdecode('Josep+M.+Simon'),jdecode(''),'/76601/97543.html','true',[],''],
		['PAGE','102212',jdecode('Marc+Pujol'),jdecode(''),'/76601/102212.html','true',[],''],
		['PAGE','104212',jdecode('Olivier+Delobel'),jdecode(''),'/76601/104212.html','true',[],''],
		['PAGE','97564',jdecode('Peter+Waller'),jdecode(''),'/76601/97564.html','true',[],''],
		['PAGE','76748',jdecode('Rosa+Serra'),jdecode(''),'/76601/76748.html','true',[],''],
		['PAGE','76727',jdecode('Merc%C3%A9+Riba'),jdecode(''),'/76601/76727.html','true',[],''],
		['PAGE','83601',jdecode('Pierre+Content'),jdecode(''),'/76601/83601.html','true',[],''],
		['PAGE','76769',jdecode('Solenn+Hart'),jdecode(''),'/76601/76769.html','true',[],'']
	],''],
	['PAGE','84201',jdecode('MICROFUSIO'),jdecode(''),'/84201/index.html','true',[ 
		['PAGE','84601',jdecode('Proc%C3%A9s'),jdecode(''),'/84201/84601.html','true',[],'']
	],''],
	['PAGE','536',jdecode('Situaci%C3%B3'),jdecode(''),'/536.html','true',[],''],
	['PAGE','5701',jdecode('Contacte'),jdecode(''),'/5701.html','true',[],''],
	['PAGE','54001',jdecode('Prensa'),jdecode(''),'/54001.html','true',[],''],
	['PAGE','103712',jdecode('Col.laboracions'),jdecode(''),'/103712.html','true',[],''],
	['PAGE','58406',jdecode('Llibre+visites'),jdecode(''),'/58406/index.html','true',[ 
		['PAGE','58401',jdecode('Llegir+llibre+visites'),jdecode(''),'/58406/58401.html','true',[],'']
	],''],
	['PAGE','78201',jdecode('Av%C3%ADs+Legal'),jdecode(''),'/78201.html','true',[],'']];
var siteelementCount=35;
theSitetree.topTemplateName='Neon';
theSitetree.paletteFamily='FF6600';
theSitetree.keyvisualId='896';
theSitetree.keyvisualName='schminke.jpg';
theSitetree.fontsetId='160';
theSitetree.graphicsetId='195';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Neon',
				paletteFamily: 	'FF6600',
				keyvisualId: 	'896',
				keyvisualName: 	'schminke.jpg',
				fontsetId: 		'160',
				graphicsetId: 	'195',
				contentColor: 	'DDDDDD',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'6699CC',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20120125-113513'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20110809-132127'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20110809-125210'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20110809-135953'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '97522',
internalId:  '',
customField: '20111229-170500'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '97543',
internalId:  '',
customField: '20111229-170713'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5701',
internalId:  '',
customField: '20110809-140312'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20111027-174642'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6122',
internalId:  '',
customField: '20111027-181743'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54001',
internalId:  '',
customField: '20111011-143322'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '76622',
internalId:  '',
customField: '20111229-170813'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '76601',
internalId:  '',
customField: '20110213-020222'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '5701',
internalId:  '783547',
customField: 'es:ES:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12022',
internalId:  '',
customField: '20111027-181914'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '97501',
internalId:  '',
customField: '20110720-161934'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11601',
internalId:  '',
customField: '20111011-143618'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11622',
internalId:  '',
customField: '20111011-143819'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12001',
internalId:  '',
customField: '20110809-131945'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '84601',
internalId:  '',
customField: '20110228-232922'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '97564',
internalId:  '',
customField: '20110720-163024'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '76643',
internalId:  '',
customField: '20110228-215324'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78201',
internalId:  '',
customField: '20110218-184757'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '76685',
internalId:  '',
customField: '20110722-095602'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '76727',
internalId:  '',
customField: '20110722-090808'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '76706',
internalId:  '',
customField: '20111229-170737'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '76769',
internalId:  '',
customField: '20110228-230445'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '76664',
internalId:  '',
customField: '20111229-170538'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '76748',
internalId:  '',
customField: '20110409-151231'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '83601',
internalId:  '',
customField: '20110228-232615'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '101012',
internalId:  '',
customField: '20111229-173041'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '84201',
internalId:  '',
customField: '20110809-134255'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '58406',
internalId:  '58406aak020in2958',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '58401',
internalId:  '58406aak020in2958',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '58406',
internalId:  '',
customField: '20110203-012823'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '58401',
internalId:  '',
customField: '20091128-092823'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '401',
internalId:  '853868',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '102212',
internalId:  '',
customField: '20111027-174628'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '103712',
internalId:  '',
customField: '20111108-174340'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '104212',
internalId:  '',
customField: '20111229-172604'
};
var canonHostname = 'localhost';
var accountId     = 'AAK020IN2958';
var companyName   = 'Foneria+Art%C3%ADstica+Riudellots';
var htmlTitle	  = '';
var metaKeywords  = 'fundicion+de+escultura+ARTISTICA+%2Cfundicio+a+la+cera+perduda%2C+fundicion+a+la+cera+perdida%2C+lost+wax+casting%2C++foneria++artistica+++Riudellots+de+la+selva%2C++BRONCE%2C++FAR%2C+Fonderie+a+la+cire+perdue%2C+fundicion+de+bronce%2C+esculturas%2C+regalos+empresa%2Csculpture+bronce%2C+bronze%2C+figuras+de+bronce%2C+estatuas+de+bronce%2C+monumentos+bronce%2C+fundicion+en+girona';
var metaContents  = 'Fundici%C3%B3n+a+la+cera+perdida%2C++Riudellots+de+la+selva%2C++foneria+a+la+cera+perduda%2C++ARTISTICA+FUNDICION%2C+FAR%2C+Foneria+artistica+a+girona%2C+fundicion+esculturas%2C+monumentos+de+bronce%2C+esculturas+bronce%2C+escultures+de+bronze%2C+bronzo%2C+bronce%2C+cast+wax';
					                                                                    
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 */					                                                            

