/* [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','4456',jdecode('Inicio'),jdecode(''),'/4456.html','true',[],''],
	['PAGE','4513',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''),'/4513.html','true',[],''],
	['PAGE','4540',jdecode('Servicios'),jdecode(''),'/4540.html','true',[],''],
	['PAGE','61321',jdecode('Fabricaci%C3%B3n'),jdecode(''),'/61321.html','true',[],''],
	['PAGE','63221',jdecode('Prestaci%C3%B3n+SAS'),jdecode(''),'/63221.html','true',[],''],
	['PAGE','51342',jdecode('Ofertas'),jdecode(''),'/51342.html','true',[],''],
	['PAGE','51321',jdecode('Novedades'),jdecode(''),'/51321.html','true',[],''],
	['PAGE','63721',jdecode('Podologos'),jdecode(''),'/63721.html','true',[],''],
	['PAGE','50621',jdecode('Art%C3%ADculos'),jdecode(''),'/50621/index.html','true',[ 
		['PAGE','4594',jdecode('Ort%C3%A9sica+y+Prot%C3%A9sica'),jdecode(''),'/50621/4594.html','true',[],''],
		['PAGE','50642',jdecode('Prendas+de+Compresi%C3%B3n'),jdecode(''),'/50621/50642.html','true',[],''],
		['PAGE','50663',jdecode('Calzado'),jdecode(''),'/50621/50663.html','true',[],''],
		['PAGE','6234',jdecode('Revelados+On+Line+%28follow+up+page%29'),jdecode(''),'/50621/6234.html','false',[],''],
		['PAGE','14623',jdecode('Silla+de+Ruedas'),jdecode(''),'/50621/14623.html','true',[],''],
		['PAGE','14650',jdecode('Ayudas+T%C3%A9cnicas'),jdecode(''),'/50621/14650.html','true',[],''],
		['PAGE','14677',jdecode('Mobiliario+Sanitario'),jdecode(''),'/50621/14677.html','true',[],''],
		['PAGE','50684',jdecode('Cl%C3%ADnicas+y+Geri%C3%A1tricos'),jdecode(''),'/50621/50684.html','true',[],''],
		['PAGE','55221',jdecode('Suministros+Sanitarios'),jdecode(''),'/50621/55221.html','true',[],'']
	],''],
	['PAGE','7361',jdecode('Otras+Web+de+Inter%C3%A9s'),jdecode(''),'/7361.html','true',[],''],
	['PAGE','4675',jdecode('Localizaci%C3%B3n'),jdecode(''),'/4675/index.html','true',[ 
		['PAGE','5297',jdecode('Cont%C3%A1ctenos+%28follow+up+page%29'),jdecode(''),'/4675/5297.html','false',[],''],
		['PAGE','52121',jdecode('C%C3%B3mo+encontrarnos'),jdecode(''),'/4675/52121.html','true',[],''],
		['PAGE','52221',jdecode('Mapa+de+acceso'),jdecode(''),'/4675/52221.html','true',[],'']
	],'']];
var siteelementCount=23;
theSitetree.topTemplateName='NewYork';
theSitetree.paletteFamily='FFCC33';
theSitetree.keyvisualId='1013';
theSitetree.keyvisualName='gymnastikgruppe2.jpg';
theSitetree.fontsetId='168';
theSitetree.graphicsetId='199';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'NewYork',
				paletteFamily: 	'FFCC33',
				keyvisualId: 	'1013',
				keyvisualName: 	'gymnastikgruppe2.jpg',
				fontsetId: 		'168',
				graphicsetId: 	'199',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000066',
				b_color: 		'FFCC33',
				c_color: 		'000000',
				d_color: 		'406BC0',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4456',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '4675',
internalId:  'aas010inemmn1071501ae1d',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '5297',
internalId:  'aas010inemmn1071501ae1d',
customField: 'followUp'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '4594',
internalId:  'aas010inemmn1071f31547f',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '6234',
internalId:  'aas010inemmn1071f31547f',
customField: 'followUp'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4456',
internalId:  '4304577',
customField: '1501'
};
webappMappings['2002']={
webappId:    '2002',
documentId:  '52121',
internalId:  'routing',
customField: 'es_ES'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '52221',
internalId:  'location',
customField: 'language:es;country:ES;isIncluded:false;'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'Aas010INEMMN';
var companyName   = 'ORTOPEDIA+PEDRO+JIMENEZ';
var htmlTitle	  = 'ORTOPEDIA+PEDRO+JIMENEZ';
var metaKeywords  = 'Tienda+Virtual%2C+fotografia%2C+ortopedia%2C+ayudas+t%EF%BF%BDcnicas';
var metaContents  = 'Tienda+Virtual%2C+Revelado+digital+online%2C+pedidos+online+fotografia%2C+ortopedia%2C+ayudas+tecnicas+';
					                                                                    
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 */					                                                            
