/* [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('Quienes+somos'),jdecode(''),'/4478.html','true',[],''],
	['PAGE','13223',jdecode('Que+ofrecemos'),jdecode(''),'/13223.html','true',[],''],
	['PAGE','13250',jdecode('Productos+y+servicios'),jdecode(''),'/13250.html','true',[],''],
	['PAGE','13304',jdecode('Contacto'),jdecode(''),'/13304/index.html','true',[ 
		['PAGE','61122',jdecode('Contacto+%28follow+up+page%29'),jdecode(''),'/13304/61122.html','false',[],'']
	],'']];
var siteelementCount=5;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='002F2F';
theSitetree.keyvisualId='1415';
theSitetree.keyvisualName='pr_agenten.jpg';
theSitetree.fontsetId='237';
theSitetree.graphicsetId='298';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Startup',
				paletteFamily: 	'002F2F',
				keyvisualId: 	'1415',
				keyvisualName: 	'pr_agenten.jpg',
				fontsetId: 		'237',
				graphicsetId: 	'298',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'002F2F',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4478',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '13304',
internalId:  'aas010ineynb11c4a3f8ff0',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '61122',
internalId:  'aas010ineynb11c4a3f8ff0',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4478',
internalId:  '',
customField: '20081118-053000'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13223',
internalId:  '',
customField: '20080930-011737'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13250',
internalId:  '',
customField: '20081118-045156'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13304',
internalId:  '',
customField: '20081118-053751'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '61122',
internalId:  '',
customField: '20080910-051311'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'Aas010INEYNB';
var companyName   = 'INFINET+TECHNOLOGIES';
var htmlTitle	  = 'INFINET+Soluciones+inform%C3%A1ticas+a+su+medida';
var metaKeywords  = 'servidores+ordenadores+dell+ibm+hp+EMC+distribuidor++backup+storage+almacenamiento+latitude+poweredge+optiplex+oferta';
var metaContents  = 'servidores+ordenadores+dell+ibm+hp+EMC+distribuidor+backup+storage+almacenamiento+latitude+poweredge+optiplex+oferta';
					                                                                    
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 */					                                                            

