/* [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/index.html','true',[ 
		['PAGE','57001',jdecode('Home+%28follow+up+page%29'),jdecode(''),'/401/57001.html','false',[],'']
	],''],
	['PAGE','452',jdecode('QUIENES+SOMOS'),jdecode(''),'/452.html','true',[],''],
	['PAGE','72022',jdecode('EDUCACION+'),jdecode(''),'/72022.html','true',[],''],
	['PAGE','78301',jdecode('ADIESTRAMIENTO'),jdecode(''),'/78301.html','true',[],''],
	['PAGE','494',jdecode('RESCATE'),jdecode(''),'/494.html','true',[],''],
	['PAGE','7622',jdecode('PASTOREO'),jdecode(''),'/7622.html','true',[],''],
	['PAGE','78901',jdecode('CAZA'),jdecode(''),'/78901.html','true',[],''],
	['PAGE','56101',jdecode('Album+de+fotos'),jdecode(''),'/56101.html','true',[],''],
	['PAGE','72001',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/72001.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Akropolis';
theSitetree.paletteFamily='5E5E5E';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10553';
theSitetree.graphicsetId='10448';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='5e5e5e';
var theTemplate={
				name: 			'Akropolis',
				paletteFamily: 	'5E5E5E',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10553',
				graphicsetId: 	'10448',
				contentColor: 	'FFFFFF',
				contentBGColor: '5e5e5e',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'5E5E5E',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '56101',
internalId:  '115270b3e2e',
customField: 'g.12kjg7sq0.li1n9hfrl2.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20091129-123950'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20091130-085257'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20091129-125319'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '401',
internalId:  'aars20in3cxh1160fee3f30',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '57001',
internalId:  'aars20in3cxh1160fee3f30',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78301',
internalId:  '',
customField: '20091203-160724'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '57001',
internalId:  '',
customField: '20071105-140940'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78901',
internalId:  '',
customField: '20090420-232830'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7622',
internalId:  '',
customField: '20091203-161332'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '72001',
internalId:  '',
customField: '20090111-201521'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '72022',
internalId:  '',
customField: '20091130-084019'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '56101',
internalId:  '',
customField: '20070921-095149'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20IN3CXH';
var companyName   = 'EL+CLAN+DEL+LOBO';
var htmlTitle	  = 'www.elclandellobo.com';
var metaKeywords  = 'perros++dog++entrenamiento++caza++rastreo++busqueda+cachorros+lobo+rescate';
var metaContents  = 'perros++dog++entrenamiento++caza++rastreo++busqueda++lobo+clan+rescate+busqueda+cachorros+cetreria';
					                                                                    
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 */					                                                            
