/* [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','1401',jdecode('Home'),jdecode(''),'/1401/index.html','true',[ 
		['PAGE','23301',jdecode('Home+%28follow+up+page%29'),jdecode(''),'/1401/23301.html','false',[],'']
	],''],
	['PAGE','1536',jdecode('About+us'),jdecode(''),'/1536.html','true',[],''],
	['PAGE','1452',jdecode('Products'),jdecode(''),'/1452/index.html','true',[ 
		['PAGE','1473',jdecode('PINBALLS'),jdecode(''),'/1452/1473.html','true',[],''],
		['PAGE','1494',jdecode('VIDEO+GAMES'),jdecode(''),'/1452/1494.html','true',[],''],
		['PAGE','1515',jdecode('BILLIARDS+%26+OTHER'),jdecode(''),'/1452/1515.html','true',[],'']
	],''],
	['PAGE','1578',jdecode('Contact'),jdecode(''),'/1578/index.html','true',[ 
		['PAGE','1599',jdecode('Address'),jdecode(''),'/1578/1599.html','true',[],''],
		['PAGE','1620',jdecode('How+to+find+us'),jdecode(''),'/1578/1620.html','true',[],'']
	],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Cable';
theSitetree.paletteFamily='D30303';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10575';
theSitetree.graphicsetId='10527';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Cable',
				paletteFamily: 	'D30303',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10575',
				graphicsetId: 	'10527',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '1401',
internalId:  'aaff10inlwh31163ff0acb4',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '23301',
internalId:  'aaff10inlwh31163ff0acb4',
customField: 'followUp'
};
var canonHostname = 'wsc01.cm4all.affinity.com';
var accountId     = 'AAFF10INLWH3';
var companyName   = 'Game+Room+Treasures%2C+Inc++719.266.4208';
var htmlTitle	  = 'Game+Room+Treasures+Colorado';
var metaKeywords  = 'Pinball%2C+Video+Games%2C+Arcade+Game%2C+Colorado%2C+Colorado+Springs%2C+Colo+Spgs%2C+Colorado+Game+Room+Supplies%2C+Colorado+Springs+Pinball%2C+Colorado+Family+Game+Store%2C+Home+Game+Room+Colorado%2C+Pool+Tables%2C+Billiards%2C++Williams+Pinball%2C+Ballys+Pinball%2C+Stern+Pinball%2C+Data+East+Pinball%2C+Co+Springs+Pinball%2C+Gottlieb+Pinball%2C+Darts%2C+Shuffle+Board%2C+Air+Hockey%2C+Foosball%2C+Juke+Box%2C+Touch+scrren+Bar+Games%2C+GoldenT+Golf%2C+Golden+T+Golf%2C+Colorado+Games%2C+Colorado+Pinball+Machines%2C+Multi+Game+Arcade%2C+Ms.+Pacman%2C+mrs+Pacman%2C+pacman%2C+asteroids%2C+centipede%2C+Donkey+Kong%2C+Galaga%2C+Robotron%2C+Multi+cade+machine%2C+Home+Recreation+Products%2C+Poker+Tables%2C+arcade+legends%2C+Ping+Pong+Table%2C+Dome+Hockey+';
var metaContents  = 'Colorado+Springs+Pinball%2C+Video+Games%2C+Pool+Tables%2C+Poker+Tables%2C+Ping+Pong%2C+Arcade+Machines';
					                                                                    
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 */					                                                            
