/* [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','1501',jdecode('Home'),jdecode(''),'/1501.html','true',[],''],
	['PAGE','1552',jdecode('My+Farm'),jdecode(''),'/1552.html','true',[],''],
	['PAGE','10401',jdecode('Fjord+Horses'),jdecode(''),'/10401/index.html','true',[ 
		['PAGE','1573',jdecode('Stallions'),jdecode(''),'/10401/1573.html','true',[],''],
		['PAGE','1594',jdecode('Mares'),jdecode(''),'/10401/1594.html','true',[],''],
		['PAGE','9701',jdecode('Sales'),jdecode(''),'/10401/9701.html','true',[],''],
		['PAGE','9722',jdecode('New+Arrivals+%22babies%22'),jdecode(''),'/10401/9722.html','true',[],'']
	],''],
	['PAGE','14522',jdecode('Polled+Hereford+Cattle'),jdecode(''),'/14522/index.html','true',[ 
		['PAGE','15801',jdecode('New+Arrivals+%22babies%22'),jdecode(''),'/14522/15801.html','true',[],''],
		['PAGE','15822',jdecode('Bull%28s%29'),jdecode(''),'/14522/15822.html','true',[],'']
	],''],
	['PAGE','8601',jdecode('Contact'),jdecode(''),'/8601.html','true',[],''],
	['PAGE','24901',jdecode('Links'),jdecode(''),'/24901.html','true',[],'']];
var siteelementCount=12;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='978561';
theSitetree.keyvisualId='1399';
theSitetree.keyvisualName='astern.jpg';
theSitetree.fontsetId='233';
theSitetree.graphicsetId='290';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Startup',
				paletteFamily: 	'978561',
				keyvisualId: 	'1399',
				keyvisualName: 	'astern.jpg',
				fontsetId: 		'233',
				graphicsetId: 	'290',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'978561',
				b_color: 		'333333',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1501',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INEAFT';
var companyName   = 'WWW.CMFfarm.com';
var htmlTitle	  = 'CMF+Farm+FJORD+HORSES';
var metaKeywords  = 'fjord++fjords++horse++stallion++mares++Anvils++++breeding++NFHR++PNFPG+++Fjord+horse++';
var metaContents  = 'Welcome+to+the+wonderful+world+of+Fjord+Horses.++Here+at+CMF+Farm+we+are+breeding+and+raising+beautiful+Norwegian+Fjord+Horses.++These+gentle+docile+horses+are+some+of+the+most+beautiful+horses+in+the+world.++Their+temperment+is+calm+and+collected.++Please+visit+our+website+and+see+all+of+our+horses%2C+Anvils+Riderlig.+We+are+located+in+Western+Washington+on+a+30+acre+farm+in+Eatonville%2C+WA';
					                                                                    
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 */					                                                            
