/* [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','501',jdecode('Inicio'),jdecode(''),'/501.html','true',[],''],
	['PAGE','552',jdecode('Servicios'),jdecode(''),'/552.html','true',[],''],
	['PAGE','6101',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''),'/6101/index.html','true',[ 
		['PAGE','6122',jdecode('D%C3%B3nde+encontranos'),jdecode(''),'/6101/6122.html','true',[],'']
	],''],
	['PAGE','573',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/573/index.html','true',[ 
		['PAGE','17601',jdecode('Cont%C3%A1ctenos+%28follow+up+page%29'),jdecode(''),'/573/17601.html','false',[],'']
	],''],
	['PAGE','18901',jdecode('%C3%81lbum+de+fotos'),jdecode(''),'/18901.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Inspiration';
theSitetree.paletteFamily='CCCC99';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='101';
theSitetree.graphicsetId='120';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='CCCC99';
var theTemplate={
				name: 			'Inspiration',
				paletteFamily: 	'CCCC99',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'101',
				graphicsetId: 	'120',
				contentColor: 	'000000',
				contentBGColor: 'CCCC99',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'CCCC99',
				b_color: 		'99667A',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20090719-010932'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20090718-230955'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20090720-082545'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20090719-151602'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6122',
internalId:  '',
customField: '20090718-233932'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '573',
internalId:  'aars20inlwhr1228fcf9cb3',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '17601',
internalId:  'aars20inlwhr1228fcf9cb3',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17601',
internalId:  '',
customField: '20090718-234103'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '18901',
internalId:  '122902aa278',
customField: 'g.14a86trol.14hphklultn.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18901',
internalId:  '',
customField: '20090719-012208'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20INLWHR';
var companyName   = 'Insonorizaci%C3%B3n%2C+reformas%2C+decoraci%C3%B3n++y+pintura';
var htmlTitle	  = 'PintaB+insonorizaci%C3%B3n%2C+reformas%2C+decoraci%C3%B3n+y+pintura';
var metaKeywords  = 'pintura%2C+ibiza%2C+decoraci%C3%B3n%2C+eivissa%2C+reformas%2C+barrisol%2C+techos+pretensados%2C+ac%C3%BAstica+integral%2C+valentine%2C+barnices%2C+techos%2C+sant+jordi+de+ses+salines%2C+insonorizaci%C3%B3n.';
var metaContents  = 'Somos+una+empresa+especialista+en%3A+Montaje+insonorizaci%C3%B3n+%28viviendas%2C+locales+comerciales%2C+maquinaria+industrial..%29%2C+todo+tipo+de+Techos+Suspendido+%28incluyendo+como+novedad+en+Ibiza-Formentera+Techos+Tensados+BARRISOL%29%2C+Muebles+de+Obra%2C+Montaje+de+Tarima-Parquet%2C+Lacados+de+Muebles%2C+Estucos%2C+Pintura';
					                                                                    
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 */					                                                            
