/* [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','11',jdecode('Home'),jdecode(''),'/11.html','true',[],''],
	['PAGE','32',jdecode('About+us'),jdecode(''),'/32.html','true',[],''],
	['PAGE','41',jdecode('Service'),jdecode(''),'/41.html','true',[],''],
	['PAGE','50',jdecode('Contact'),jdecode(''),'/50.html','true',[],''],
	['PAGE','68',jdecode('Testimonials'),jdecode(''),'/68.html','true',[],''],
	['PAGE','1179',jdecode('Photo+Gallery'),jdecode(''),'/1179.html','true',[],''],
	['PAGE','10820',jdecode('of+Various+Projects'),jdecode(''),'/10820.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Staples';
theSitetree.paletteFamily='e6e1e4';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10767';
theSitetree.graphicsetId='10486';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='e6e1e4';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Staples',
				paletteFamily: 	'e6e1e4',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10767',
				graphicsetId: 	'10486',
				contentColor: 	'000000',
				contentBGColor: 'e6e1e4',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'7f1818',
				e_color: 		'635353',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1007']={
webappId:    '1007',
documentId:  '1179',
internalId:  '122d9009215',
customField: 'g.14bces38k.n6l9c4qmv1.7g'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '10820',
internalId:  '131874be160',
customField: 'g.1663jup9s.h21enis4l1.7g'
};
var canonHostname = 'diy00.oem.mlpsca02.us.diy-servers.net';
var accountId     = 'AVWHN0INXE0S';
var companyName   = 'Meticulous+Consulting+Group%2C+LLC';
var htmlTitle	  = '';
var metaKeywords  = 'Construction%2C+project%2C+remodeling%2C+renovations%2C+landscaping%2C+outdoor+living%2C+swimming+pool%2C+trellis%2C+gazebo%2C+doors%2C+windows%2C+specialty+construction%2C+permits%2C+architectural%2C+construction+management%2C+water+falls%2C+contractor%2C+patio%2C+stonewall%2C+concrete%2C+driveways%2C+design%2C+building%2C+carpentry%2C+kitchens%2C+cabinets%2C+columns';
var metaContents  = 'Construction+management+services';
					                                                                    
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 */					                                                            

