/* [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','5606',jdecode('Guestbook'),jdecode(''),'/5606/index.html','true',[ 
		['PAGE','5601',jdecode('Read+Guestbook'),jdecode(''),'/5606/5601.html','true',[],'']
	],''],
	['PAGE','5501',jdecode('Journal'),jdecode(''),'/5501.html','true',[],''],
	['PAGE','301',jdecode('Home'),jdecode(''),'/301.html','true',[],''],
	['PAGE','394',jdecode('Products'),jdecode(''),'/394/index.html','true',[ 
		['PAGE','415',jdecode('First+Product'),jdecode(''),'/394/415.html','true',[],''],
		['PAGE','436',jdecode('Second+Product'),jdecode(''),'/394/436.html','true',[],''],
		['PAGE','457',jdecode('Third+Product'),jdecode(''),'/394/457.html','true',[],'']
	],''],
	['PAGE','478',jdecode('Contact'),jdecode(''),'/478.html','true',[],''],
	['PAGE','499',jdecode('Tips+%26+Tricks'),jdecode(''),'/499.html','true',[],''],
	['PAGE','520',jdecode('Links'),jdecode(''),'/520.html','true',[],''],
	['PAGE','541',jdecode('Services'),jdecode(''),'/541.html','true',[],''],
	['PAGE','583',jdecode('News'),jdecode(''),'/583.html','true',[],''],
	['PAGE','8601',jdecode('new'),jdecode(''),'/8601.html','true',[],''],
	['PAGE','9001',jdecode('new'),jdecode(''),'/9001.html','true',[],''],
	['PAGE','9022',jdecode('new'),jdecode(''),'/9022.html','true',[],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='333F65';
theSitetree.keyvisualId='1743';
theSitetree.keyvisualName='ecommerce.jpg';
theSitetree.fontsetId='291';
theSitetree.graphicsetId='355';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='333F65';
var theTemplate={
				name: 			'Movement',
				paletteFamily: 	'333F65',
				keyvisualId: 	'1743',
				keyvisualName: 	'ecommerce.jpg',
				fontsetId: 		'291',
				graphicsetId: 	'355',
				contentColor: 	'FFFFFF',
				contentBGColor: '333F65',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'333F65',
				b_color: 		'040507',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1501']={
webappId:    '1501',
documentId:  '5501',
internalId:  '1501',
customField: '1501'
};
webappMappings['3030']={
webappId:    '3030',
documentId:  '5501',
internalId:  '5501',
customField: 'language:en;country:US;'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '5606',
internalId:  '5606aendu0inxemz',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '5601',
internalId:  '5606aendu0inxemz',
customField: 'action=list'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '5501',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '5501',
internalId:  '919394',
customField: '1501'
};
webappMappings['1005']={
webappId:    '1005',
documentId:  '8601',
internalId:  '1164d5c3a1c.c0a625b2',
customField: 'en:US:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '9022',
internalId:  '1244093',
customField: 'en:US:'
};
webappMappings['1005']={
webappId:    '1005',
documentId:  '9001',
internalId:  '1164d5b34de.4ac5ce5f',
customField: 'en:US:'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INXEMZ';
var companyName   = 'Online+Super+Marketing';
var htmlTitle	  = 'Online+Super+Marketing';
var metaKeywords  = 'online%2C+marketing%2C+advertising%2C+sales%2C+web%2C+events%2C+seminars%2C+training%2C+consulting%2C+webex%2C+cisco%2C+event+center%2C+training+center%2C+sales+center%2C+meeting+center';
var metaContents  = 'online%2C+marketing%2C+advertising%2C+sales%2C+web%2C+events%2C+seminars%2C+training';
					                                                                    
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 */					                                                            
