/* [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','801',jdecode('Home'),jdecode(''),'/801.html','true',[],''],
	['PAGE','852',jdecode('P%C3%A1gina+inicial'),jdecode(''),'/852.html','true',[],''],
	['PAGE','873',jdecode('Quem+somos'),jdecode(''),'/873/index.html','true',[ 
		['PAGE','894',jdecode('Nossa+equipe'),jdecode(''),'/873/894.html','true',[],''],
		['PAGE','915',jdecode('Onde+estamos'),jdecode(''),'/873/915.html','true',[],'']
	],''],
	['PAGE','936',jdecode('Contato'),jdecode(''),'/936.html','true',[],''],
	['PAGE','957',jdecode('Informes+do+mercado'),jdecode(''),'/957.html','true',[],''],
	['PAGE','978',jdecode('Ofertas+especiais'),jdecode(''),'/978.html','true',[],''],
	['PAGE','999',jdecode('Loca%C3%A7ao'),jdecode(''),'/999/index.html','true',[ 
		['PAGE','1020',jdecode('Comercial%2C+residencial'),jdecode(''),'/999/1020.html','true',[],''],
		['PAGE','1041',jdecode('Administra%C3%A7%C3%A3o+de+im%C3%B3veis'),jdecode(''),'/999/1041.html','true',[],''],
		['PAGE','1062',jdecode('Im%C3%B3veis+para+Venda'),jdecode(''),'/999/1062.html','true',[],'']
	],''],
	['PAGE','1083',jdecode('Rurais'),jdecode(''),'/1083/index.html','true',[ 
		['PAGE','1104',jdecode('Urbanos'),jdecode(''),'/1083/1104.html','true',[],''],
		['PAGE','1125',jdecode('Apartamentos'),jdecode(''),'/1083/1125.html','true',[],'']
	],''],
	['PAGE','1146',jdecode('casas'),jdecode(''),'/1146/index.html','true',[ 
		['PAGE','1167',jdecode('Terrenos'),jdecode(''),'/1146/1167.html','true',[],'']
	],''],
	['PAGE','1188',jdecode('Not%C3%ADcias'),jdecode(''),'/1188.html','true',[],''],
	['PAGE','1209',jdecode('Links+Favoritos'),jdecode(''),'/1209.html','true',[],''],
	['PAGE','3701',jdecode('Blog'),jdecode(''),'/3701.html','true',[],''],
	['PAGE','3806',jdecode('Livro+de+visitas%2FF%C3%B3rum'),jdecode(''),'/3806/index.html','true',[ 
		['PAGE','3801',jdecode('Servi%C3%A7o+de+bilhetes'),jdecode(''),'/3806/3801.html','true',[],'']
	],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Trend';
theSitetree.paletteFamily='3F70CF';
theSitetree.keyvisualId='7933';
theSitetree.keyvisualName='kv_7933.jpg';
theSitetree.fontsetId='16912';
theSitetree.graphicsetId='12323';
theSitetree.contentColor='163D88';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Trend',
				paletteFamily: 	'3F70CF',
				keyvisualId: 	'7933',
				keyvisualName: 	'kv_7933.jpg',
				fontsetId: 		'16912',
				graphicsetId: 	'12323',
				contentColor: 	'163D88',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '801',
internalId:  '1006',
customField: '1006'
};
webappMappings['3030']={
webappId:    '3030',
documentId:  '3701',
internalId:  '3701',
customField: 'language:pt;country:BR;'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '3806',
internalId:  '3806avec10inp1pm',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '3801',
internalId:  '3806avec10inp1pm',
customField: 'action=list'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INP1PM';
var companyName   = '+IMOBILI%C3%81RIA+FIGUEIREDO';
var htmlTitle	  = 'IMOBILI%C3%81RIA+FIGUEIREDO';
var metaKeywords  = '';
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 */					                                                            
