/* [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','4436',jdecode('Home'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','239805',jdecode('Lease+Purchase'),jdecode(''),'/239805.html','true',[],''],
	['PAGE','12801',jdecode('RENTAL+Homes'),jdecode(''),'/12801/index.html','true',[ 
		['PAGE','125609',jdecode('Dekalb+Co+%2F+Henry+Co'),jdecode(''),'/12801/125609.html','true',[],''],
		['PAGE','125533',jdecode('Gwinnett+Co+%2F+Forsythe+Co'),jdecode(''),'/12801/125533.html','true',[],''],
		['PAGE','125702',jdecode('Fulton+Co+%2F+Cobb+Co'),jdecode(''),'/12801/125702.html','true',[],''],
		['PAGE','125733',jdecode('Clayton+County'),jdecode(''),'/12801/125733.html','true',[],''],
		['PAGE','126003',jdecode('Rockdale+Co+%2F+Newton+Co'),jdecode(''),'/12801/126003.html','true',[],'']
	],''],
	['PAGE','12863',jdecode('Rental+APPLICATION'),jdecode(''),'/12863.html','true',[],''],
	['PAGE','28801',jdecode('UTILITY+Companies'),jdecode(''),'/28801.html','true',[],''],
	['PAGE','111638',jdecode('LANDLORD+Contracts'),jdecode(''),'/111638.html','true',[],''],
	['PAGE','284595',jdecode('Property+Management'),jdecode(''),'/284595.html','true',[],''],
	['PAGE','59501',jdecode('Featured+Links'),jdecode(''),'/59501.html','true',[],''],
	['PAGE','29101',jdecode('FAQs'),jdecode(''),'/29101.html','true',[],''],
	['PAGE','219744',jdecode('Place+an+AD'),jdecode(''),'/219744/index.html','true',[ 
		['PAGE','17807',jdecode('Feedback+Form+%28follow+up+page%29'),jdecode(''),'/219744/17807.html','false',[],''],
		['PAGE','284596',jdecode('Read+Guestbook'),jdecode(''),'/219744/284596.html','true',[],'']
	],''],
	['PAGE','17701',jdecode('Feedback+Form'),jdecode(''),'/17701.html','true',[],''],
	['PAGE','7209',jdecode('Contact+Us'),jdecode(''),'/7209.html','true',[],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Moonflight';
					                                                                    
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 */					                                                            
