/* [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','4478',jdecode('Inicio'),jdecode(''),'/4478.html','true',[],''],
	['PAGE','4562',jdecode('Nuestra+empresa'),jdecode(''),'/4562/index.html','true',[ 
		['PAGE','6205',jdecode('Perfil+de+clientes'),jdecode(''),'/4562/6205.html','true',[],''],
		['PAGE','4535',jdecode('Compromiso+de+Calidad'),jdecode(''),'/4562/4535.html','true',[],'']
	],''],
	['PAGE','4589',jdecode('Areas+de+Negocio'),jdecode(''),'/4589/index.html','true',[ 
		['PAGE','4643',jdecode('Area+de+Servicios'),jdecode(''),'/4589/4643.html','true',[],''],
		['PAGE','4616',jdecode('Area+de+Productos'),jdecode(''),'/4589/4616.html','true',[],'']
	],''],
	['PAGE','4670',jdecode('Contactenos'),jdecode(''),'/4670/index.html','true',[ 
		['PAGE','6569',jdecode('Cont%C3%A1ctenos+%28follow+up+page%29'),jdecode(''),'/4670/6569.html','false',[],'']
	],''],
	['PAGE','18069',jdecode('D%C3%B3nde+encontrarnos'),jdecode(''),'/18069.html','true',[],''],
	['PAGE','46623',jdecode('Soporte+Online'),jdecode(''),'/46623.html','true',[],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='333F65';
theSitetree.keyvisualId='1741';
theSitetree.keyvisualName='ebusiness.jpg';
theSitetree.fontsetId='290';
theSitetree.graphicsetId='355';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='333F65';
var theTemplate={
				name: 			'Movement',
				paletteFamily: 	'333F65',
				keyvisualId: 	'1741',
				keyvisualName: 	'ebusiness.jpg',
				fontsetId: 		'290',
				graphicsetId: 	'355',
				contentColor: 	'FFFFFF',
				contentBGColor: '333F65',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'333F65',
				b_color: 		'040507',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4478',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '4670',
internalId:  'aas010in2dir100180eac31',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '6569',
internalId:  'aas010in2dir100180eac31',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4562',
internalId:  '',
customField: '20080516-140040'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4478',
internalId:  '',
customField: '20080516-133626'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4478',
internalId:  '1420403',
customField: '1501'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '18069',
internalId:  'location',
customField: 'language:es;country:ES;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6205',
internalId:  '',
customField: '20061126-133105'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4535',
internalId:  '',
customField: '20080516-134135'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4589',
internalId:  '',
customField: '20080516-135441'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4643',
internalId:  '',
customField: '20080516-145417'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4616',
internalId:  '',
customField: '20080516-140711'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4670',
internalId:  '',
customField: '20070823-103704'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6569',
internalId:  '',
customField: '20041108-130042'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18069',
internalId:  '',
customField: '20080516-150305'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '46623',
internalId:  '',
customField: '20081020-162641'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'Aas010IN2DIR';
var companyName   = 'NT+DISTRIBUCION%2C+S.A.';
var htmlTitle	  = 'NT+DISTRIBUCION%2C+S.A.+SERVICIOS+Y+SOLUCIONES+INFORM%C3%81TICAS';
var metaKeywords  = 'INFORMATICOS';
var metaContents  = 'META+NAME%3DDESCRIPTION+CONTENT%3DServicios+Inform%EF%BF%BDticos+empresarialesMETA+NAME%3DKEYWORDS+CONTENT%3DMANTENIMIENTOS%2C+SERVICIOS+INFORMATICOS%2C+SISTEMAS';
					                                                                    
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 */					                                                            
