/* [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','501',jdecode('Services'),jdecode(''),'/501/index.html','true',[ 
		['PAGE','18701',jdecode('Flier'),jdecode(''),'/501/18701.html','true',[],'']
	],''],
	['PAGE','552',jdecode('Hours'),jdecode(''),'/552.html','true',[],''],
	['PAGE','657',jdecode('Cool+Links'),jdecode(''),'/657.html','true',[],''],
	['PAGE','678',jdecode('Contact'),jdecode(''),'/678.html','true',[],''],
	['PAGE','17201',jdecode('Photos'),jdecode(''),'/17201.html','true',[],''],
	['PAGE','17306',jdecode('Guestbook'),jdecode(''),'/17306/index.html','true',[ 
		['PAGE','17301',jdecode('Read+Guestbook'),jdecode(''),'/17306/17301.html','true',[],'']
	],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Maschine';
theSitetree.paletteFamily='C0BFBB';
theSitetree.keyvisualId='1917';
theSitetree.keyvisualName='industry2.jpg';
theSitetree.fontsetId='319';
theSitetree.graphicsetId='373';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Maschine',
				paletteFamily: 	'C0BFBB',
				keyvisualId: 	'1917',
				keyvisualName: 	'industry2.jpg',
				fontsetId: 		'319',
				graphicsetId: 	'373',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'474141',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '17201',
internalId:  '118fcd8b383',
customField: 'g.133ud883q.3tvm5ga9jcs.d4'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '17306',
internalId:  '17306abri10ine3nl',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '17301',
internalId:  '17306abri10ine3nl',
customField: 'action=list'
};
var canonHostname = 'wsc2.brinkster.com';
var accountId     = 'ABRI10INE3NL';
var companyName   = 'RJ+Fabrication';
var htmlTitle	  = 'RJ+Fabrication+-+Rob+Lindsay';
var metaKeywords  = 'RJ+Fabrication++RJ+Fab++On+and+Off+road+fabrication++NHRA+Certified+Chassis++Roll+Cages++Complete+Turn-Key+Hot+Rods++Racecars++Pro-Street++Pro-Touring++Street+Cars++Sand+Rails+%2F+Buggies++Rear+End+Narrowing++Custom+Housings++Inter+Cooler+Piping++Tin+Work+%2F+Sheet+Metal++4-Link+%2F+Ladder+Bar++Front+Clips++Custom+Headers++Exhaust++Plumbing++Wiring++Custom+Aluminum+Fuel+Cells++Tig++Mig+Welding++dragnuts';
var metaContents  = 'RJ+Fabrication++RJ+Fab++On+and+Off+road+fabrication++NHRA+Certified+Chassis++Roll+Cages++Complete+Turn-Key+Hot+Rods++Racecars++Pro+Street++Pro+Touring++Street+Cars++Sand+Rails+%2F+Buggies++Rear+End+Narrowing++Custom+Housings++Inter+Cooler+Piping++Tin+Work+%2F+Sheet+Metal++4-Link+%2F+Ladder+Bar++Front+Clips++Custom+Headers++Exhaust++Plumbing++Wiring++Custom+Aluminum+Fuel+Cells++Tig++Mig+Welding++dragnuts';
					                                                                    
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 */					                                                            
