/* [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','301',jdecode('Home'),jdecode(''),'/301.html','true',[],''],
	['PAGE','352',jdecode('About+us'),jdecode(''),'/352/index.html','true',[ 
		['PAGE','373',jdecode('Jeff+Kay%26%23x27%3Bs+Painting'),jdecode(''),'/352/373.html','true',[],''],
		['PAGE','5701',jdecode('Jeff+Kay%26%23x27%3Bs+Restoration'),jdecode(''),'/352/5701.html','true',[],'']
	],''],
	['PAGE','394',jdecode('Residential+%26+Commercial'),jdecode(''),'/394/index.html','true',[ 
		['PAGE','415',jdecode('Interior%2FExterior+Painting'),jdecode(''),'/394/415.html','true',[],''],
		['PAGE','16001',jdecode('Epoxy+Floor'),jdecode(''),'/394/16001.html','true',[],''],
		['PAGE','436',jdecode('Table+Refinishing'),jdecode(''),'/394/436.html','true',[],''],
		['PAGE','499',jdecode('Powerwashing+'),jdecode(''),'/394/499.html','true',[],'']
	],''],
	['PAGE','646',jdecode('Contact%2FEstimates'),jdecode(''),'/646.html','true',[],''],
	['PAGE','10101',jdecode('Job+Photo%26%23x27%3Bs'),jdecode(''),'/10101/index.html','true',[ 
		['PAGE','16701',jdecode('Epoxy+Floor'),jdecode(''),'/10101/16701.html','true',[],''],
		['PAGE','17701',jdecode('Driveway+Coating'),jdecode(''),'/10101/17701.html','true',[],''],
		['PAGE','14601',jdecode('Table+Refinishing+Pictures'),jdecode(''),'/10101/14601.html','true',[],'']
	],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Card';
theSitetree.paletteFamily='990000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='428';
theSitetree.graphicsetId='479';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Card',
				paletteFamily: 	'990000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'428',
				graphicsetId: 	'479',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1007']={
webappId:    '1007',
documentId:  '10101',
internalId:  '110acfa48f7',
customField: 'g.122mf09ge.npoqa3ushu.9c'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '14601',
internalId:  '111806785c1',
customField: 'g.126069bcc.m08bb496uj.7g'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '16701',
internalId:  '11510b62590',
customField: 'g.12k8b8f73.g0ljequphl.7g'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '17701',
internalId:  '115f306b8ca',
customField: 'g.12npgage8.o61g4d4qct.7g'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN3CKS';
var companyName   = 'The+Jeff+Kay%27s+Painting+Group';
var htmlTitle	  = '';
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 */					                                                            
