/* [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('Catala'),jdecode(''),'/473/index.html','true',[ 
		['PAGE','6101',jdecode('++'),jdecode(''),'/473/6101.html','true',[],''],
		['PAGE','46901',jdecode('+'),jdecode(''),'/473/46901.html','true',[],''],
		['PAGE','11601',jdecode('+++++++++++++++++++++'),jdecode(''),'/473/11601.html','true',[],''],
		['PAGE','11622',jdecode('+++++++++++++++++++++'),jdecode(''),'/473/11622.html','true',[],''],
		['PAGE','12001',jdecode('++++++++++++'),jdecode(''),'/473/12001.html','true',[],''],
		['PAGE','12022',jdecode('+++++++++'),jdecode(''),'/473/12022.html','true',[],''],
		['PAGE','45601',jdecode('+'),jdecode(''),'/473/45601.html','true',[],'']
	],''],
	['PAGE','494',jdecode('+'),jdecode(''),'/494/index.html','true',[ 
		['PAGE','6122',jdecode('+'),jdecode(''),'/494/6122.html','true',[],''],
		['PAGE','12601',jdecode('+'),jdecode(''),'/494/12601.html','true',[],''],
		['PAGE','12622',jdecode('+'),jdecode(''),'/494/12622.html','true',[],''],
		['PAGE','12643',jdecode('+'),jdecode(''),'/494/12643.html','true',[],''],
		['PAGE','12664',jdecode('+'),jdecode(''),'/494/12664.html','true',[],''],
		['PAGE','12685',jdecode('+'),jdecode(''),'/494/12685.html','true',[],''],
		['PAGE','12706',jdecode('+'),jdecode(''),'/494/12706.html','true',[],'']
	],''],
	['PAGE','515',jdecode('++'),jdecode(''),'/515/index.html','true',[ 
		['PAGE','6143',jdecode('+'),jdecode(''),'/515/6143.html','true',[],''],
		['PAGE','12727',jdecode('+'),jdecode(''),'/515/12727.html','true',[],''],
		['PAGE','12748',jdecode('+'),jdecode(''),'/515/12748.html','true',[],''],
		['PAGE','12769',jdecode('+'),jdecode(''),'/515/12769.html','true',[],''],
		['PAGE','12790',jdecode('+'),jdecode(''),'/515/12790.html','true',[],''],
		['PAGE','12811',jdecode('+'),jdecode(''),'/515/12811.html','true',[],''],
		['PAGE','12832',jdecode('+'),jdecode(''),'/515/12832.html','true',[],'']
	],''],
	['PAGE','536',jdecode('Mapa'),jdecode(''),'/536.html','true',[],''],
	['PAGE','5701',jdecode('E-mail'),jdecode(''),'/5701.html','true',[],''],
	['PAGE','13401',jdecode('Photo'),jdecode(''),'/13401.html','true',[],''],
	['PAGE','24801',jdecode('Links'),jdecode(''),'/24801.html','true',[],''],
	['PAGE','54001',jdecode('Prensa'),jdecode(''),'/54001.html','true',[],''],
	['PAGE','58406',jdecode('Libro+de+visitas'),jdecode(''),'/58406/index.html','true',[ 
		['PAGE','58401',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/58406/58401.html','true',[],'']
	],'']];
var siteelementCount=32;
theSitetree.topTemplateName='Neon';
theSitetree.paletteFamily='FF6600';
theSitetree.keyvisualId='896';
theSitetree.keyvisualName='schminke.jpg';
theSitetree.fontsetId='160';
theSitetree.graphicsetId='194';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Neon',
				paletteFamily: 	'FF6600',
				keyvisualId: 	'896',
				keyvisualName: 	'schminke.jpg',
				fontsetId: 		'160',
				graphicsetId: 	'194',
				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: '20100629-164330'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20100629-072606'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20100629-164246'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20100616-200709'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20100629-072703'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5701',
internalId:  '',
customField: '20100629-164457'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20090401-095908'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6122',
internalId:  '',
customField: '20090401-100025'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54001',
internalId:  '',
customField: '20090921-072653'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '13401',
internalId:  '119b9757cd9',
customField: 'g.136sj0ar0.jkbk2hf65p.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13401',
internalId:  '',
customField: '20091128-101738'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6143',
internalId:  '',
customField: '20090320-180650'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '5701',
internalId:  '783547',
customField: 'es:ES:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12022',
internalId:  '',
customField: '20080520-141922'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '46901',
internalId:  '1202d147acc',
customField: 'g.140md61vh.4kp5h73ia4f.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11601',
internalId:  '',
customField: '20090322-080131'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11622',
internalId:  '',
customField: '20080807-222900'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12001',
internalId:  '',
customField: '20090322-081220'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12601',
internalId:  '',
customField: '20080505-134034'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12622',
internalId:  '',
customField: '20080505-134034'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12643',
internalId:  '',
customField: '20080505-134034'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12664',
internalId:  '',
customField: '20080505-134034'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12685',
internalId:  '',
customField: '20080505-134034'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12706',
internalId:  '',
customField: '20080505-134034'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12727',
internalId:  '',
customField: '20080505-134034'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12748',
internalId:  '',
customField: '20080505-134034'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12769',
internalId:  '',
customField: '20080505-134034'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12790',
internalId:  '',
customField: '20080505-134034'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12811',
internalId:  '',
customField: '20080505-134034'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12832',
internalId:  '',
customField: '20080505-134034'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24801',
internalId:  '',
customField: '20100629-133058'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '45601',
internalId:  '1202d078267',
customField: 'g.140mccui2.lmss27bv0.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '45601',
internalId:  '',
customField: '20090322-082037'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '46901',
internalId:  '',
customField: '20100302-164530'
};
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: '20091128-092823'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '58401',
internalId:  '',
customField: '20091128-092823'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '401',
internalId:  '853868',
customField: '1501'
};
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++Riudellots+de+la+selva++foneria+a+la+cera+perduda++ARTISTICA+FUNDICION+FAR';
					                                                                    
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 */					                                                            
