/* [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','752',jdecode('Prices+%26+Information'),jdecode(''),'/752.html','true',[],''],
	['PAGE','4001',jdecode('Frequently+Asked+Questions'),jdecode(''),'/4001.html','true',[],''],
	['PAGE','794',jdecode('Order+Form'),jdecode(''),'/794.html','true',[],''],
	['PAGE','815',jdecode('Pick+A+Layout'),jdecode(''),'/815.html','true',[],''],
	['PAGE','6001',jdecode('Terms+%26+Conditions'),jdecode(''),'/6001.html','true',[],''],
	['PAGE','16701',jdecode('Useful+Links'),jdecode(''),'/16701.html','true',[],''],
	['PAGE','857',jdecode('+Request+Samples'),jdecode(''),'/857/index.html','true',[ 
		['PAGE','5901',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/857/5901.html','false',[],'']
	],''],
	['PAGE','9006',jdecode('Guestbook'),jdecode(''),'/9006/index.html','true',[ 
		['PAGE','9001',jdecode('Read+Guestbook'),jdecode(''),'/9006/9001.html','true',[],'']
	],''],
	['PAGE','12801',jdecode('About+us'),jdecode(''),'/12801.html','true',[],''],
	['PAGE','12885',jdecode('Contact'),jdecode(''),'/12885.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Dispose';
theSitetree.paletteFamily='BD64DE';
theSitetree.keyvisualId='9684';
theSitetree.keyvisualName='kv_9684.gif';
theSitetree.fontsetId='10669';
theSitetree.graphicsetId='11187';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='CCCACA';
var theTemplate={
				name: 			'Dispose',
				paletteFamily: 	'BD64DE',
				keyvisualId: 	'9684',
				keyvisualName: 	'kv_9684.gif',
				fontsetId: 		'10669',
				graphicsetId: 	'11187',
				contentColor: 	'000000',
				contentBGColor: 'CCCACA',
				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: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1001']={
webappId:    '1001',
documentId:  '857',
internalId:  'aaff10inva8s111b9c4de0b',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '5901',
internalId:  'aaff10inva8s111b9c4de0b',
customField: 'followUp'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '9006',
internalId:  '9006aaff10inva8s',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '9001',
internalId:  '9006aaff10inva8s',
customField: 'action=list'
};
var canonHostname = 'wsc01.cm4all.affinity.com';
var accountId     = 'AAFF10INVA8S';
var companyName   = 'Comp+Cards+and+Headshots';
var htmlTitle	  = 'Comp+Cards';
var metaKeywords  = 'comp+cards%2Cmodel+comp+cards%2Ccomposite+cards%2Czed+cards%2Ccomp+card+printers%2Cheadshots';
var metaContents  = 'comp+cards';
					                                                                    
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 */					                                                            
