/* [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','401',jdecode('Inicio'),jdecode(''),'/401.html','true',[],''],
	['PAGE','473',jdecode('%C3%81reas+jur%C3%ADdicas'),jdecode(''),'/473/index.html','true',[ 
		['PAGE','4301',jdecode('Derecho+Civil'),jdecode(''),'/473/4301.html','true',[],''],
		['PAGE','4322',jdecode('Mercantil'),jdecode(''),'/473/4322.html','true',[],''],
		['PAGE','4343',jdecode('Penal'),jdecode(''),'/473/4343.html','true',[],''],
		['PAGE','4364',jdecode('Laboral'),jdecode(''),'/473/4364.html','true',[],''],
		['PAGE','4385',jdecode('Matrimonial'),jdecode(''),'/473/4385.html','true',[],''],
		['PAGE','6101',jdecode('Administrativo'),jdecode(''),'/473/6101.html','true',[],''],
		['PAGE','6122',jdecode('Urban%C3%ADstico'),jdecode(''),'/473/6122.html','true',[],'']
	],''],
	['PAGE','494',jdecode('Abogados'),jdecode(''),'/494.html','true',[],''],
	['PAGE','515',jdecode('Enlaces+de+inter%C3%A9s'),jdecode(''),'/515.html','true',[],''],
	['PAGE','536',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/536/index.html','true',[ 
		['PAGE','1901',jdecode('Cont%C3%A1ctenos+%28follow+up+page%29'),jdecode(''),'/536/1901.html','false',[],'']
	],''],
	['PAGE','3001',jdecode('Mapa+de+acceso'),jdecode(''),'/3001.html','true',[],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Holz';
theSitetree.paletteFamily='C239A1';
theSitetree.keyvisualId='8817';
theSitetree.keyvisualName='KV_03.swf';
theSitetree.fontsetId='17181';
theSitetree.graphicsetId='12652';
theSitetree.contentColor='FFBEEF';
theSitetree.contentBGColor='262626';
var theTemplate={
				name: 			'Holz',
				paletteFamily: 	'C239A1',
				keyvisualId: 	'8817',
				keyvisualName: 	'KV_03.swf',
				fontsetId: 		'17181',
				graphicsetId: 	'12652',
				contentColor: 	'FFBEEF',
				contentBGColor: '262626',
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'C039A3',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20080604-183151'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20080527-120931'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20080527-112803'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20080604-184845'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20080424-205511'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '536',
internalId:  'aars20in3xc911981c89013',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '1901',
internalId:  'aars20in3xc911981c89013',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4322',
internalId:  '',
customField: '20080527-114529'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4301',
internalId:  '',
customField: '20080527-113828'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20080424-205335'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20080527-120149'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6122',
internalId:  '',
customField: '20080527-120615'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '3001',
internalId:  'location',
customField: 'language:es;country:ES;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3001',
internalId:  '',
customField: '20080527-121307'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4343',
internalId:  '',
customField: '20080527-115133'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4364',
internalId:  '',
customField: '20080527-115640'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4385',
internalId:  '',
customField: '20080527-115940'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20IN3XC9';
var companyName   = 'Scasso+-+Olivares.+Abogados';
var htmlTitle	  = 'Scasso+Olivares.+Abogados';
var metaKeywords  = 'scasso%2C+abogados%2C+albacete%2C+carlos+scasso+veganzones%2C+maria+jose+olivares+lopez%2C+miguel+perez+solano%2C+inmaculada+oliva+morcillo%2C+sanchez+muliterno';
var metaContents  = 'Web+del+despacho+de+abogados+Scasso+-+Olivares.+Albacete';
					                                                                    
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 */					                                                            
