/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],''],
	['PAGE','552',jdecode('About+us'),jdecode(''),'/552.html','true',[],''],
	['PAGE','573',jdecode('Products'),jdecode(''),'/573.html','true',[],''],
	['PAGE','594',jdecode('Offers'),jdecode(''),'/594.html','true',[],''],
	['PAGE','615',jdecode('Contact'),jdecode(''),'/615.html','true',[],'']];
var siteelementCount=5;
theSitetree.topTemplateName='Sober';
theSitetree.paletteFamily='F64C37';
theSitetree.keyvisualId='3479';
theSitetree.keyvisualName='kv_3479.jpg';
theSitetree.fontsetId='10435';
theSitetree.graphicsetId='10787';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFECD7';
var theTemplate={
				name: 			'Sober',
				paletteFamily: 	'F64C37',
				keyvisualId: 	'3479',
				keyvisualName: 	'kv_3479.jpg',
				fontsetId: 		'10435',
				graphicsetId: 	'10787',
				contentColor: 	'000000',
				contentBGColor: 'FFECD7',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'F64C37',
				e_color: 		'707070',
				f_color: 		'979696',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'wsc01.cm4all.affinity.com';
var accountId     = 'AAFF10IN2E95';
var companyName   = '++++++++++++We%27ll+Be+Seeing+You%21';
var htmlTitle	  = 'Aspen+Eyewear--+Boulders+Premier+Destination+for+Glasses+and+Eyecare';
var metaKeywords  = 'Boulder%2C+CO%2C+Colorado%2C+glasses%2C+lenses%2C+eyewear%2C+sunglasses%2C+optical%2C+prescription%2C+bifocal%2C+progressive%2C+80302%2C+Varilux%2C+no-line%2C+zeiss%2C+crizal%2C+polarized%2C+optician%2C+frame%2C+repair%2C+hi-index%2C+university%2C+contacts%2C+contact%2C+80301%2C+80303%2C+80304%2C+best';
var metaContents  = 'Aspen+Eyewear+is+Boulders+premier+destination+for+eyeglasses%2C+sunglasses+and+eye+examinations.++We+have+consistently+been+voted+Best+Eye+Care+Store+in+Boulder+for+eight+consecutive+years.++Our+selection+of+glasses+and+sunglasses+is+immense+and+our+board-certified+opticians+can+help+to+help+you+find+the+right+glasses+for+your+prescription+and+lifestyle.++On+on-site+custom+lab+ensures+that+your+glasses+will+be+made+with+precision+in+a+timely+manner.++Eye+examinations+and+contact+lens+fittings+are+available+in+store+by+Dr.+Bollenbacher%2C+an+independent+optometrist.';
					                                                                    
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 */					                                                            
