/* [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','8301',jdecode('NOVEDADES'),jdecode(''),'/8301.html','true',[],''],
	['PAGE','4393',jdecode('Home'),jdecode(''),'/4393.html','true',[],''],
	['PAGE','5800',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''),'/5800/index.html','true',[ 
		['PAGE','5827',jdecode('Nuestro+equipo'),jdecode(''),'/5800/5827.html','true',[],'']
	],''],
	['PAGE','5854',jdecode('Servicios'),jdecode(''),'/5854/index.html','true',[ 
		['PAGE','5881',jdecode('Transporte+'),jdecode(''),'/5854/5881.html','true',[],''],
		['PAGE','5908',jdecode('Lavado+de+cisternas+'),jdecode(''),'/5854/5908.html','true',[],''],
		['PAGE','6376',jdecode('Calidad+y+Medio+Ambiente'),jdecode(''),'/5854/6376.html','true',[],'']
	],''],
	['PAGE','6016',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/6016/index.html','true',[ 
		['PAGE','6043',jdecode('Direcciones'),jdecode(''),'/6016/6043.html','true',[],''],
		['PAGE','6070',jdecode('D%C3%B3nde+encontrarnos'),jdecode(''),'/6016/6070.html','true',[],'']
	],''],
	['PAGE','6097',jdecode('Trucos+y+ayudas'),jdecode(''),'/6097.html','true',[],''],
	['PAGE','12829',jdecode('Bolsa+de+trabajo'),jdecode(''),'/12829.html','true',[],''],
	['PAGE','41501',jdecode('ttes+campa'),jdecode(''),'/41501.html','true',[],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Seifenblase';
theSitetree.paletteFamily='C8E2FF';
theSitetree.keyvisualId='2348';
theSitetree.keyvisualName='apotheke1.jpg';
theSitetree.fontsetId='379';
theSitetree.graphicsetId='427';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Seifenblase',
				paletteFamily: 	'C8E2FF',
				keyvisualId: 	'2348',
				keyvisualName: 	'apotheke1.jpg',
				fontsetId: 		'379',
				graphicsetId: 	'427',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'6666CC',
				e_color: 		'3333CC',
				f_color: 		'9999CC',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4393',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4393',
internalId:  '143821',
customField: '1501'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '41501',
internalId:  '113ab66175e',
customField: 'g.12elma0fg.2b1qpsl13a1.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4393',
internalId:  '',
customField: '20080604-194830'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12829',
internalId:  '',
customField: '20080604-180029'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6016',
internalId:  '',
customField: '20040531-145058'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5854',
internalId:  '',
customField: '20080604-180411'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8301',
internalId:  '',
customField: '20080604-185401'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5800',
internalId:  '',
customField: '20080620-192818'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5827',
internalId:  '',
customField: '20040531-142659'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5881',
internalId:  '',
customField: '20080604-195902'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5908',
internalId:  '',
customField: '20040531-142659'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6376',
internalId:  '',
customField: '20080604-200804'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6043',
internalId:  '',
customField: '20080604-200946'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6070',
internalId:  '',
customField: '20080604-202620'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6097',
internalId:  '',
customField: '20070709-171710'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41501',
internalId:  '',
customField: '20070709-163321'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'Aas010INXF23';
var companyName   = 'Transportes+Liquidos+Campa%C3%B1a%2C+s.l.';
var htmlTitle	  = 'www.ttescampa.com';
var metaKeywords  = 'transportes+liquidos%2C+cisternas%2C+contenedores%2C+lavadero%2C+adr';
var metaContents  = 'transportes+liquidos%2C+cisternas%2C+contenedores%2C+lavadero%2C+adr';
					                                                                    
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 */					                                                            
