/* [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('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('%C2%BFQuienes+Somos%3F'),jdecode(''),'/452.html','true',[],''],
	['PAGE','473',jdecode('Proyectos+Terminados+D.F.'),jdecode(''),'/473/index.html','true',[ 
		['PAGE','6501',jdecode('Condominio+Los+Cedros'),jdecode(''),'/473/6501.html','true',[],''],
		['PAGE','6522',jdecode('Condominio+Los+Pinos'),jdecode(''),'/473/6522.html','true',[],''],
		['PAGE','16801',jdecode('Condominio+San+Miguel'),jdecode(''),'/473/16801.html','true',[],'']
	],''],
	['PAGE','515',jdecode('Proyectos+Construcci%C3%B3n+D.F.'),jdecode(''),'/515/index.html','true',[ 
		['PAGE','6543',jdecode('Condominio+Vill+Ada'),jdecode(''),'/515/6543.html','true',[],'']
	],''],
	['PAGE','494',jdecode('Proyectos+en+Venta+D.F.'),jdecode(''),'/494.html','true',[],''],
	['PAGE','536',jdecode('Proyectos+a+Futuro+D.F.'),jdecode(''),'/536.html','true',[],''],
	['PAGE','10701',jdecode('Proyecto+en+Queretaro'),jdecode(''),'/10701/index.html','true',[ 
		['PAGE','16822',jdecode('Casa+Colibri'),jdecode(''),'/10701/16822.html','true',[],''],
		['PAGE','16843',jdecode('Casa+Canario'),jdecode(''),'/10701/16843.html','true',[],''],
		['PAGE','16864',jdecode('Casa+Tucan'),jdecode(''),'/10701/16864.html','true',[],''],
		['PAGE','16885',jdecode('Casa+Calandria'),jdecode(''),'/10701/16885.html','true',[],'']
	],''],
	['PAGE','557',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/557.html','true',[],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Logg';
theSitetree.paletteFamily='3D4B78';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='423';
theSitetree.graphicsetId='467';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='3D4B78';
var theTemplate={
				name: 			'Logg',
				paletteFamily: 	'3D4B78',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'423',
				graphicsetId: 	'467',
				contentColor: 	'DDDDDD',
				contentBGColor: '3D4B78',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'3D4B78',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '557',
internalId:  '3282897',
customField: 'es:ES:'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN3W30';
var companyName   = 'Promotora+Pazco+S.A+de+C.V.';
var htmlTitle	  = 'Promotora+Pazco';
var metaKeywords  = 'promotorapazco%2C+inmobiliaria%2C+casas%2C+desarrollos';
var metaContents  = '';
					                                                                    
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 */					                                                            

