/* [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','701',jdecode('Home'),jdecode(''),'/701.html','true',[],''],
	['PAGE','5801',jdecode('About+us'),jdecode(''),'/5801.html','true',[],''],
	['PAGE','773',jdecode('Contact'),jdecode(''),'/773.html','true',[],''],
	['PAGE','794',jdecode('Product+Catalog'),jdecode(''),'/794/index.html','true',[ 
		['PAGE','815',jdecode('Snack+Machines'),jdecode(''),'/794/815.html','true',[],''],
		['PAGE','836',jdecode('Soda+Machines'),jdecode(''),'/794/836.html','true',[],''],
		['PAGE','857',jdecode('Combo+Machines'),jdecode(''),'/794/857.html','true',[],''],
		['PAGE','878',jdecode('Cold+Food'),jdecode(''),'/794/878.html','true',[],''],
		['PAGE','899',jdecode('Energy+Drinks'),jdecode(''),'/794/899.html','true',[],''],
		['PAGE','5822',jdecode('Candy+%26+Gumball'),jdecode(''),'/794/5822.html','true',[],''],
		['PAGE','5843',jdecode('Change+Machines'),jdecode(''),'/794/5843.html','true',[],''],
		['PAGE','5864',jdecode('Vending+Packages'),jdecode(''),'/794/5864.html','true',[],''],
		['PAGE','5885',jdecode('Used+Vending'),jdecode(''),'/794/5885.html','true',[],''],
		['PAGE','23101',jdecode('Coffee+Machines'),jdecode(''),'/794/23101.html','true',[],'']
	],''],
	['PAGE','752',jdecode('Online+Order'),jdecode(''),'/752.html','true',[],''],
	['PAGE','5906',jdecode('Consultation'),jdecode(''),'/5906.html','true',[],''],
	['PAGE','5927',jdecode('Finance+Application'),jdecode(''),'/5927.html','true',[],''],
	['PAGE','7401',jdecode('Vendor+Forum'),jdecode(''),'/7401.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Profile';
theSitetree.paletteFamily='333333';
theSitetree.keyvisualId='1262';
theSitetree.keyvisualName='seminar.jpg';
theSitetree.fontsetId='191';
theSitetree.graphicsetId='226';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Profile',
				paletteFamily: 	'333333',
				keyvisualId: 	'1262',
				keyvisualName: 	'seminar.jpg',
				fontsetId: 		'191',
				graphicsetId: 	'226',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'333333',
				b_color: 		'999999',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1008']={
webappId:    '1008',
documentId:  '773',
internalId:  '11428743',
customField: 'en:US:'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['1003']={
webappId:    '1003',
documentId:  '7401',
internalId:  'aaplu0in2mrc11cb524360a',
customField: 'en:US:'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'AAPLU0IN2MRC';
var companyName   = 'Enterprise+Vending';
var htmlTitle	  = 'Enterprise+Vending+-+Helping+You+Build+Your+Future';
var metaKeywords  = 'vending%2C+vending+machine%2C+soda+vending+machine%2C+candy+vending+machine%2C+snack+vending+machine%2C+gumball+machine';
var metaContents  = 'Enterprise+Vending+has+helped+many+individuals+like+yourself+start+and+grow+their+own+vending+business.++We+provide+free+consultation+about+the+vending+industry+and+machines%2C+a+great+selection+of+the+best+vending+machines+in+the+vending+business%2C+and+on-site+training+and+route+establishment+procedures.';
					                                                                    
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 */					                                                            
