/* [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','601',jdecode('Home'),jdecode(''),'/601.html','true',[],''],
	['PAGE','673',jdecode('Online+order'),jdecode(''),'/673.html','true',[],''],
	['PAGE','694',jdecode('Service'),jdecode(''),'/694.html','true',[],''],
	['PAGE','715',jdecode('Products'),jdecode(''),'/715/index.html','true',[ 
		['PAGE','736',jdecode('PhotoThrow%26%23x27%3Bs'),jdecode(''),'/715/736.html','true',[],''],
		['PAGE','757',jdecode('Jewelry'),jdecode(''),'/715/757.html','true',[],'']
	],''],
	['PAGE','778',jdecode('Military+Specials'),jdecode(''),'/778.html','true',[],''],
	['PAGE','799',jdecode('Dates+for+your+calendar'),jdecode(''),'/799.html','true',[],''],
	['PAGE','841',jdecode('Contact'),jdecode(''),'/841.html','true',[],''],
	['PAGE','862',jdecode('About+us'),jdecode(''),'/862/index.html','true',[ 
		['PAGE','883',jdecode('Our+team'),jdecode(''),'/862/883.html','true',[],'']
	],''],
	['PAGE','904',jdecode('Imprint'),jdecode(''),'/904.html','true',[],'']];
var siteelementCount=12;
theSitetree.topTemplateName='Boston';
theSitetree.paletteFamily='832A2A';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='11067';
theSitetree.graphicsetId='11840';
theSitetree.contentColor='2B0606';
theSitetree.contentBGColor='A34242';
var theTemplate={
				name: 			'Boston',
				paletteFamily: 	'832A2A',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'11067',
				graphicsetId: 	'11840',
				contentColor: 	'2B0606',
				contentBGColor: 'A34242',
				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:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'localhost';
var accountId     = 'AAFF10INVJBP';
var companyName   = 'Making+Great+Impressions';
var htmlTitle	  = 'Making+Greating+Impressions';
var metaKeywords  = 'gifts+photo+throws+blankets+knit+afgans+woven+art+Military+specials+art+fused+glass+jewelry+pottery+necklaces+dichro+dichroic+baby+retired+air+Force+Army+Marines+Navy+coast+guard+realtor+store+wedding+photothrow+photothrows+handcrafted+usa+apo+fpo';
var metaContents  = 'PhotoThrows+order+custom+knitted+blankets.+Art+designs.+Fused+dichroic+dichro+glass+jewelry.+Art+Jewelry.+Pottery+handcrafted+Jewelry.+Gift+Store.+Military+Specials.+Baby+gifts.+wedding+gifts.+Military+gifts.+realtor+gifts.+Jewelry+gifts.+Personalized+products.+Photo+Blanket.';
					                                                                    
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 */					                                                            
