/* [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','901',jdecode('Home'),jdecode(''),'/901.html','true',[],''],
	['PAGE','952',jdecode('Contact+Us'),jdecode(''),'/952.html','true',[],''],
	['PAGE','1015',jdecode('About+us'),jdecode(''),'/1015/index.html','true',[ 
		['PAGE','22501',jdecode('The+team'),jdecode(''),'/1015/22501.html','true',[],'']
	],''],
	['PAGE','1057',jdecode('The+Collection'),jdecode(''),'/1057/index.html','true',[ 
		['PAGE','6401',jdecode('List+By+Title'),jdecode(''),'/1057/6401.html','true',[],''],
		['PAGE','8101',jdecode('List+By+Item+%23'),jdecode(''),'/1057/8101.html','true',[],''],
		['PAGE','8122',jdecode('List+By+Category'),jdecode(''),'/1057/8122.html','true',[],'']
	],''],
	['PAGE','17401',jdecode('Precious+Moments+History'),jdecode(''),'/17401.html','true',[],''],
	['PAGE','13101',jdecode('Annual+Symbols'),jdecode(''),'/13101.html','true',[],''],
	['PAGE','6422',jdecode('Ordering+Information'),jdecode(''),'/6422.html','true',[],''],
	['PAGE','9701',jdecode('Visit+Store'),jdecode(''),'/9701.html','true',[],''],
	['PAGE','10606',jdecode('Guestbook'),jdecode(''),'/10606/index.html','true',[ 
		['PAGE','10601',jdecode('Read+Guestbook'),jdecode(''),'/10606/10601.html','true',[],'']
	],''],
	['PAGE','26201',jdecode('Links'),jdecode(''),'/26201/index.html','true',[ 
		['PAGE','26222',jdecode('Favorite+Sites'),jdecode(''),'/26201/26222.html','true',[],'']
	],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Column';
theSitetree.paletteFamily='E7657A';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10599';
theSitetree.graphicsetId='10616';
theSitetree.contentColor='525585';
theSitetree.contentBGColor='F8E5E8';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Column',
				paletteFamily: 	'E7657A',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10599',
				graphicsetId: 	'10616',
				contentColor: 	'525585',
				contentBGColor: 'F8E5E8',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'BB4659',
				e_color: 		'924B56',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '901',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '10606',
internalId:  '10606AHW050INEAQY',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '10601',
internalId:  '10606AHW050INEAQY',
customField: 'action=list'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INEAQY';
var companyName   = 'CoralKey+Precious+Moments';
var htmlTitle	  = 'Coral+Key+Precious+Moments';
var metaKeywords  = 'Precious+Moments%2CEnesco%2Cbuyer%2CChapel%2Cvalue%2CTwelve+Days+of+Christmas%2C12+Days+of+Christmas%2CValue+Guide%2CCollectors+guide%2C+history%2Ccollector%2Ccollections%2Cproduction+dates%2Cpictures%2Cannual+symbols%2Cquotes%2Cbaby%2CPorcelain+Bisque%2Cfigurines%2Cornaments%2C+community%2Cbells%2C+plates%2Cthimbles%2Cpicture+frames%2CWedding%2CBride+and+Groom%2C+Anniversary%2CGraduation%2CJonathan+and+David%2CSam+Butcher%2CEugene+Freedman%2CNo+Mark%2Cunmarked%2CTriangle%2Cfish%2Ccross%2Cdove%2COlive+branch%2Ccedar+tree%2CPrecious+Moments+flower%2CPrecious+Moments+bow+and+arrow%2CFlame%2CVessel%2Cg-clef%2Cbutterfly%2Ctrumpet%2Cship%2Cheart%2Csword%2Ceyeglasses%2C+star%2Cegg%2Ccrown%2Csandal%2Ccreator%2CPM';
var metaContents  = 'Discount+prices%2C+FREE+SHIPPING++Precious+Moments+by+Enesco%2C+the+most+popular+collectible+in+America.+Find+Values%2C+Production+Symbols+and+History.+';
					                                                                    
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 */					                                                            
