/* [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','41801',jdecode('Alquiler+opci%C3%B3n+a+compra'),jdecode(''),'/41801.html','true',[],''],
	['PAGE','4497',jdecode('Activa+Inmobiliaria'),jdecode(''),'/4497/index.html','true',[ 
		['PAGE','5499',jdecode('Home+%28follow+up+page%29'),jdecode(''),'/4497/5499.html','false',[],'']
	],''],
	['PAGE','4856',jdecode('Buscador'),jdecode(''),'/4856.html','true',[],''],
	['PAGE','4964',jdecode('Promociones'),jdecode(''),'/4964/index.html','true',[ 
		['PAGE','35601',jdecode('Promociones+%28follow+up+page%29'),jdecode(''),'/4964/35601.html','false',[],'']
	],''],
	['PAGE','5072',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/5072/index.html','true',[ 
		['PAGE','36401',jdecode('Cont%C3%A1ctenos+%28follow+up+page%29'),jdecode(''),'/5072/36401.html','false',[],'']
	],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Commercial';
theSitetree.paletteFamily='C5E8FE';
theSitetree.keyvisualId='10204';
theSitetree.keyvisualName='house.swf';
theSitetree.fontsetId='21115';
theSitetree.graphicsetId='13215';
theSitetree.contentColor='232323';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Commercial',
				paletteFamily: 	'C5E8FE',
				keyvisualId: 	'10204',
				keyvisualName: 	'house.swf',
				fontsetId: 		'21115',
				graphicsetId: 	'13215',
				contentColor: 	'232323',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				a_color: 		'e6e6e6',
				b_color: 		'ffffff',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1001']={
webappId:    '1001',
documentId:  '4497',
internalId:  'aas010in2axwffa54bfe11',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '5499',
internalId:  'aas010in2axwffa54bfe11',
customField: 'followUp'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '41801',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '4964',
internalId:  'aas010in2axw112dc71c056',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '35601',
internalId:  'aas010in2axw112dc71c056',
customField: 'followUp'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '5072',
internalId:  'aas010in2axw112dc81c413',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '36401',
internalId:  'aas010in2axw112dc81c413',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4497',
internalId:  '',
customField: '20090602-193122'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41801',
internalId:  '',
customField: '20090602-192301'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5499',
internalId:  '',
customField: '20041017-071121'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4856',
internalId:  '',
customField: '20090602-193202'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4964',
internalId:  '',
customField: '20090602-193705'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '35601',
internalId:  '',
customField: '20070530-120441'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5072',
internalId:  '',
customField: '20090602-185601'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36401',
internalId:  '',
customField: '20070530-122211'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'Aas010IN2AXW';
var companyName   = 'Activa+Inmobiliaria';
var htmlTitle	  = 'Inmobiliaria+Sevilla.+Alquiler+con+opci%C3%B3n+a+compra.+SEVILLA';
var metaKeywords  = 'alquiler+con+opci%C3%B3n+a+compra%2Cinmobiliaria%2C+sevilla%2C+montellano%2C+el+coronil%2C+via+verde%2C+utrera%2C+dos+hermanas%2C+puerto+serrano%2C+coripe%2C+pruna%2C+olvera%2C+piso%2C+casa%2C+fincas%2C+sierra+sur%2C+ayuntamiento%2C+activa';
var metaContents  = 'Alquiler+con+opci%C3%B3n+a+compra.+SEVILLA.+Inmobiliaria+Montellano%3A+Primer+centro+de+gestion+inmobiliaria+de+la+Sierra+Sur+sevillana.+Montellano%2C+Sevilla.+Pisos+y+casas%2C+nuevos+y+de+ocasi%C3%B3n.++';
					                                                                    
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 */					                                                            
