/* [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.html','true',[],''],
	['PAGE','15343',jdecode('Tanning+Beds+%26+Prices+'),jdecode(''),'/15343/index.html','true',[ 
		['PAGE','1557',jdecode('Tanning+Beds'),jdecode(''),'/15343/1557.html','true',[],''],
		['PAGE','3022',jdecode('Offers'),jdecode(''),'/15343/3022.html','true',[],'']
	],''],
	['PAGE','1494',jdecode('Products'),jdecode(''),'/1494/index.html','true',[ 
		['PAGE','1515',jdecode('Lotions'),jdecode(''),'/1494/1515.html','true',[],''],
		['PAGE','1536',jdecode('Swimwear'),jdecode(''),'/1494/1536.html','true',[],'']
	],''],
	['PAGE','15322',jdecode('Opening+hours'),jdecode(''),'/15322.html','true',[],''],
	['PAGE','1452',jdecode('About+us'),jdecode(''),'/1452/index.html','true',[ 
		['PAGE','15301',jdecode('The+team'),jdecode(''),'/1452/15301.html','true',[],'']
	],''],
	['PAGE','1641',jdecode('Tanning+Facts'),jdecode(''),'/1641.html','true',[],''],
	['PAGE','1578',jdecode('Contact'),jdecode(''),'/1578/index.html','true',[ 
		['PAGE','21401',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/1578/21401.html','false',[],'']
	],''],
	['PAGE','41501',jdecode('People'),jdecode(''),'/41501.html','true',[],''],
	['PAGE','42601',jdecode('Map'),jdecode(''),'/42601.html','true',[],''],
	['PAGE','49001',jdecode('All'),jdecode(''),'/49001.html','true',[],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Sportive';
theSitetree.paletteFamily='E9EEF4';
theSitetree.keyvisualId='2691';
theSitetree.keyvisualName='urlaub2.jpg';
theSitetree.fontsetId='224';
theSitetree.graphicsetId='262';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E9EEF4';
var theTemplate={
				name: 			'Sportive',
				paletteFamily: 	'E9EEF4',
				keyvisualId: 	'2691',
				keyvisualName: 	'urlaub2.jpg',
				fontsetId: 		'224',
				graphicsetId: 	'262',
				contentColor: 	'000000',
				contentBGColor: 'E9EEF4',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'E9EEF4',
				b_color: 		'C1C4D3',
				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['1006']={
webappId:    '1006',
documentId:  '1401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '1401',
internalId:  '2177252',
customField: '1501'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '41501',
internalId:  '1101cc9d0cc',
customField: 'g.120ecc1nk.dssd7dukuo.d4'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '1578',
internalId:  'aaff10in34y410efb8abbc7',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '21401',
internalId:  'aaff10in34y410efb8abbc7',
customField: 'followUp'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '42601',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '49001',
internalId:  '11106b70dee',
customField: 'g.1243abn0q.7iurn27ndj.d4'
};
var canonHostname = 'localhost';
var accountId     = 'AAFF10IN34Y4';
var companyName   = 'THE+BEACH+TANNING+SALON+Aurora+Co';
var htmlTitle	  = 'WELCOME+TO+THE+BEACH+TANNING+SALON%2C+Aurora%2C+CO';
var metaKeywords  = 'tan+tanning+beds+lotions+samples+ebay+aurora+co+planet+always+tan+hot+bulbs+ebay+store+shop+swimwear+ritchie+designer+skin+australian+gold+parker+co+planet+beach+when+the+sun+goes+down+colorado';
var metaContents  = 'aurora+co+tanning+tan+planet+beach+tan+tanning+salon+darque+tan+when+the+sun+goes+down+uva+uvb+wolfee+bulbs+beds+always+tan';
					                                                                    
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 */					                                                            
