/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(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','4401',jdecode('Home+Welcome'),jdecode(''),'/4401.html','true',[],''],
	['PAGE','5748',jdecode('Our+History'),jdecode(''),'/5748.html','true',[],''],
	['PAGE','6201',jdecode('Services'),jdecode(''),'/6201/index.html','true',[ 
		['PAGE','9601',jdecode('Home+Improvement'),jdecode(''),'/6201/9601.html','true',[],'']
	],''],
	['PAGE','6222',jdecode('Projects'),jdecode(''),'/6222/index.html','true',[ 
		['PAGE','11501',jdecode('Project+1+Before'),jdecode(''),'/6222/11501.html','true',[],''],
		['PAGE','11522',jdecode('Project+1+After'),jdecode(''),'/6222/11522.html','true',[],''],
		['PAGE','12801',jdecode('Project+2+Before'),jdecode(''),'/6222/12801.html','true',[],''],
		['PAGE','11564',jdecode('Project+2+After'),jdecode(''),'/6222/11564.html','true',[],''],
		['PAGE','11585',jdecode('Project+3'),jdecode(''),'/6222/11585.html','true',[],''],
		['PAGE','11606',jdecode('Project+4'),jdecode(''),'/6222/11606.html','true',[],''],
		['PAGE','11627',jdecode('Project+5'),jdecode(''),'/6222/11627.html','true',[],''],
		['PAGE','13901',jdecode('Project+6'),jdecode(''),'/6222/13901.html','true',[],'']
	],''],
	['PAGE','6601',jdecode('Testimonials'),jdecode(''),'/6601.html','true',[],''],
	['PAGE','6622',jdecode('Contact+Us'),jdecode(''),'/6622/index.html','true',[ 
		['PAGE','10201',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/6622/10201.html','false',[],'']
	],''],
	['PAGE','8401',jdecode('Our+Resources'),jdecode(''),'/8401.html','true',[],''],
	['PAGE','18482',jdecode('News'),jdecode(''),'/18482.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Court';
theSitetree.paletteFamily='72AD5C';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16444';
theSitetree.graphicsetId='12146';
theSitetree.contentColor='345C24';
theSitetree.contentBGColor='BEF0AB';
var theTemplate={
				name: 			'Court',
				paletteFamily: 	'72AD5C',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16444',
				graphicsetId: 	'12146',
				contentColor: 	'345C24',
				contentBGColor: 'BEF0AB',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1001']=webappMappings['1001-ahw050ine4gf6433be35a0d9a545']={
webappId:    '1001',
documentId:  '6622',
internalId:  'ahw050ine4gf6433be35a0d9a545',
customField: ''
};
webappMappings['1001']=webappMappings['1001-ahw050ine4gf6433be35a0d9a545']={
webappId:    '1001',
documentId:  '10201',
internalId:  'ahw050ine4gf6433be35a0d9a545',
customField: 'followUp'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4401',
internalId:  '',
customField: '20070105-152948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5748',
internalId:  '',
customField: '20070110-072813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8401',
internalId:  '',
customField: '20070105-181952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6201',
internalId:  '',
customField: '20070105-183620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9601',
internalId:  '',
customField: '20070105-160900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6222',
internalId:  '',
customField: '20070105-200823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11501',
internalId:  '',
customField: '20070105-173144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11522',
internalId:  '',
customField: '20070105-173426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12801',
internalId:  '',
customField: '20070105-175240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11564',
internalId:  '',
customField: '20070105-174703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11585',
internalId:  '',
customField: '20070105-175419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11606',
internalId:  '',
customField: '20070105-180110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11627',
internalId:  '',
customField: '20070105-180822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13901',
internalId:  '',
customField: '20070105-181023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6601',
internalId:  '',
customField: '20070115-174102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6622',
internalId:  '',
customField: '20070105-162123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10201',
internalId:  '',
customField: '20070105-161641'
};
webappMappings['1501']=webappMappings['1501-2803797']={
webappId:    '1501',
documentId:  '4401',
internalId:  '2803797',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18482',
internalId:  '',
customField: '20081112-113618'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INE4GF';
var companyName   = '%22Impeccable+Landscape+Done+On+Target%2C+On+Time+and+On+Budget%21%22';
var htmlTitle	  = 'Foothill+Landscape+Co.+in+Albuquerque%2C+New+Mexico';
var metaKeywords  = 'Landscaping%2C+Albuquerque%2C+Landscape+Contractors%2C+Designers%2C+Home%2C+Garden%2C+Heads-Up%2C+Hilltop%2C+Foothill+%2C+Lawn+Care%2C+Architect%2C+New+Mexico+';
var metaContents  = 'Landscaping+Professionals%2C+Albuquerque+Landscaping%2C+Landscape+Contractors%2C+Albuquerque+Landscape+Contractors';
					                                                                    
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;                                                                     
	};                                                                               
theSitetree.getByXx = function(lookup, xx, ar) {									 
    if (typeof(ar) == 'undefined')												 
    	ar = this;																	 
    for (var i=0; i < ar.length; i++) {										     
        if (ar[i][xx] == lookup)													 
        	return ar[i];															 
        if (ar[i][POS_CHILDS].length > 0) {										 
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);					 
            if (result != null)													 
                return result;													 
        }																			 
    }																				 
    return null;																	 
};																				 
function gotoPage(lookup) {														 
    var page = theSitetree.getHREF(lookup);										 
    if (!page) {																	 
  		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];							 
            for (var i=0 ; i < testFor.length ; i++) {							 
                    var p = theSitetree.getByXx(lookup, testFor[i]);				 
                    if (p != null) {												 
                            page = p[POS_HREF];									 
                            break;												 
                    }																 
            }																		 
    }																				 
 document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
}
/* EOF */					                                                            
