/* [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','4521',jdecode('Home'),jdecode(''),'/4521/index.html','true',[ 
		['PAGE','66412',jdecode('Dinghies+Yachts'),jdecode(''),'/4521/66412.html','true',[],''],
		['PAGE','66439',jdecode('Trailer+Yachts'),jdecode(''),'/4521/66439.html','true',[],''],
		['PAGE','66466',jdecode('Keeler+Yachts'),jdecode(''),'/4521/66466.html','true',[],''],
		['PAGE','66493',jdecode('Multihull+Yachts'),jdecode(''),'/4521/66493.html','true',[],'']
	],''],
	['PAGE','4632',jdecode('Profile'),jdecode(''),'/4632.html','true',[],''],
	['PAGE','62095',jdecode('Mast%2FBoom+Sections'),jdecode(''),'/62095/index.html','true',[ 
		['PAGE','62796',jdecode('F4'),jdecode(''),'/62095/62796.html','true',[],''],
		['PAGE','62823',jdecode('F5'),jdecode(''),'/62095/62823.html','true',[],''],
		['PAGE','62850',jdecode('F9'),jdecode(''),'/62095/62850.html','true',[],''],
		['PAGE','62877',jdecode('F11'),jdecode(''),'/62095/62877.html','true',[],''],
		['PAGE','91310',jdecode('F13'),jdecode(''),'/62095/91310.html','true',[],''],
		['PAGE','91319',jdecode('F14'),jdecode(''),'/62095/91319.html','true',[],''],
		['PAGE','91328',jdecode('F15'),jdecode(''),'/62095/91328.html','true',[],''],
		['PAGE','91346',jdecode('F16'),jdecode(''),'/62095/91346.html','true',[],''],
		['PAGE','91355',jdecode('F19'),jdecode(''),'/62095/91355.html','true',[],''],
		['PAGE','91364',jdecode('F25'),jdecode(''),'/62095/91364.html','true',[],''],
		['PAGE','91373',jdecode('F30'),jdecode(''),'/62095/91373.html','true',[],''],
		['PAGE','91382',jdecode('F33'),jdecode(''),'/62095/91382.html','true',[],''],
		['PAGE','91391',jdecode('F34'),jdecode(''),'/62095/91391.html','true',[],''],
		['PAGE','91400',jdecode('F36'),jdecode(''),'/62095/91400.html','true',[],''],
		['PAGE','91409',jdecode('F304'),jdecode(''),'/62095/91409.html','true',[],''],
		['PAGE','91436',jdecode('B6'),jdecode(''),'/62095/91436.html','true',[],'']
	],''],
	['PAGE','91481',jdecode('Tracks'),jdecode(''),'/91481/index.html','true',[ 
		['PAGE','91490',jdecode('F51'),jdecode(''),'/91481/91490.html','true',[],''],
		['PAGE','91499',jdecode('F49'),jdecode(''),'/91481/91499.html','true',[],''],
		['PAGE','91508',jdecode('F50'),jdecode(''),'/91481/91508.html','true',[],''],
		['PAGE','91517',jdecode('F46'),jdecode(''),'/91481/91517.html','true',[],''],
		['PAGE','91526',jdecode('F52'),jdecode(''),'/91481/91526.html','true',[],'']
	],''],
	['PAGE','93114',jdecode('Spreader+Sections'),jdecode(''),'/93114/index.html','true',[ 
		['PAGE','93123',jdecode('AYS+-+A'),jdecode(''),'/93114/93123.html','true',[],''],
		['PAGE','93132',jdecode('AYS+-+B'),jdecode(''),'/93114/93132.html','true',[],''],
		['PAGE','93141',jdecode('AYS+-+C'),jdecode(''),'/93114/93141.html','true',[],''],
		['PAGE','93150',jdecode('AYS+-+D'),jdecode(''),'/93114/93150.html','true',[],'']
	],''],
	['PAGE','91033',jdecode('Prices+%26+Plans'),jdecode(''),'/91033/index.html','true',[ 
		['PAGE','91088',jdecode('Starling'),jdecode(''),'/91033/91088.html','true',[],''],
		['PAGE','91097',jdecode('Jollyboat'),jdecode(''),'/91033/91097.html','true',[],''],
		['PAGE','91106',jdecode('Sunburst'),jdecode(''),'/91033/91106.html','true',[],''],
		['PAGE','91115',jdecode('Seascout+Cutter'),jdecode(''),'/91033/91115.html','true',[],''],
		['PAGE','91124',jdecode('Phase+2'),jdecode(''),'/91033/91124.html','true',[],''],
		['PAGE','91133',jdecode('Firebug'),jdecode(''),'/91033/91133.html','true',[],'']
	],''],
	['PAGE','92650',jdecode('Standing+Rigging'),jdecode(''),'/92650/index.html','true',[ 
		['PAGE','92659',jdecode('Wire'),jdecode(''),'/92650/92659.html','true',[],''],
		['PAGE','93830',jdecode('Rigging+Screws'),jdecode(''),'/92650/93830.html','true',[],''],
		['PAGE','93839',jdecode('Stud+Swages'),jdecode(''),'/92650/93839.html','true',[],''],
		['PAGE','93848',jdecode('Eye+Swages'),jdecode(''),'/92650/93848.html','true',[],''],
		['PAGE','93857',jdecode('Toggle+Swages'),jdecode(''),'/92650/93857.html','true',[],''],
		['PAGE','93866',jdecode('Stemball+Swages'),jdecode(''),'/92650/93866.html','true',[],''],
		['PAGE','92668',jdecode('Ball+Tang+Swages'),jdecode(''),'/92650/92668.html','true',[],''],
		['PAGE','93875',jdecode('T-Bar+Swages'),jdecode(''),'/92650/93875.html','true',[],''],
		['PAGE','93884',jdecode('Insulators'),jdecode(''),'/92650/93884.html','true',[],''],
		['PAGE','93893',jdecode('Toggles'),jdecode(''),'/92650/93893.html','true',[],''],
		['PAGE','93902',jdecode('Swageless+Eye'),jdecode(''),'/92650/93902.html','true',[],''],
		['PAGE','93911',jdecode('Swageless+Toggle'),jdecode(''),'/92650/93911.html','true',[],''],
		['PAGE','93920',jdecode('Swageless+Stud'),jdecode(''),'/92650/93920.html','true',[],''],
		['PAGE','93929',jdecode('Backstay+Bridal'),jdecode(''),'/92650/93929.html','true',[],'']
	],''],
	['PAGE','94043',jdecode('Running+Rigging'),jdecode(''),'/94043.html','true',[],''],
	['PAGE','68806',jdecode('Furlers'),jdecode(''),'/68806/index.html','true',[ 
		['PAGE','68833',jdecode('Headsail'),jdecode(''),'/68806/68833.html','true',[],''],
		['PAGE','68860',jdecode('Mainsail'),jdecode(''),'/68806/68860.html','true',[],''],
		['PAGE','70619',jdecode('Batten+Travelers'),jdecode(''),'/68806/70619.html','true',[],'']
	],''],
	['PAGE','67112',jdecode('Products'),jdecode(''),'/67112/index.html','true',[ 
		['PAGE','67139',jdecode('Masts+%26+Booms'),jdecode(''),'/67112/67139.html','true',[],''],
		['PAGE','67193',jdecode('Rig+Fittings'),jdecode(''),'/67112/67193.html','true',[],''],
		['PAGE','67220',jdecode('Navigation+Lights'),jdecode(''),'/67112/67220.html','true',[],''],
		['PAGE','60329',jdecode('Custom+Fabrication'),jdecode(''),'/67112/60329.html','true',[],'']
	],''],
	['PAGE','4605',jdecode('Architectural'),jdecode(''),'/4605/index.html','true',[ 
		['PAGE','19694',jdecode('Balustrading'),jdecode(''),'/4605/19694.html','true',[],''],
		['PAGE','27305',jdecode('Shade+Systems'),jdecode(''),'/4605/27305.html','true',[],''],
		['PAGE','5506',jdecode('Rod+%26+Cable+Systems'),jdecode(''),'/4605/5506.html','true',[],''],
		['PAGE','73030',jdecode('Flagpoles'),jdecode(''),'/4605/73030.html','true',[],'']
	],''],
	['PAGE','88568',jdecode('NEWS'),jdecode(''),'/88568.html','true',[],''],
	['PAGE','4659',jdecode('Contact+%26+Links'),jdecode(''),'/4659/index.html','true',[ 
		['PAGE','20671',jdecode('Contact+%26+Links+%28follow+up+page%29'),jdecode(''),'/4659/20671.html','false',[],''],
		['PAGE','91024',jdecode('How+to+find+us'),jdecode(''),'/4659/91024.html','true',[],'']
	],'']];
var siteelementCount=75;
theSitetree.topTemplateName='elliptic';
theSitetree.paletteFamily='FFFFFF';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10627';
theSitetree.graphicsetId='10504';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'elliptic',
				paletteFamily: 	'FFFFFF',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10627',
				graphicsetId: 	'10504',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1008']={
webappId:    '1008',
documentId:  '4659',
internalId:  '7230136',
customField: 'en:US:'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2GX1';
var companyName   = 'Fostermasts+Ltd++++++-++++++Auckland++++++-++++++New+Zealand+';
var htmlTitle	  = 'FOSTERMASTS+sparmakers++yacht+riggers';
var metaKeywords  = 'yacht+rigging%2C+spar%2C+spars%2C+mast%2C+masts%2C+wire%2C+boat%2C+fosters%2C+swage%2C+toggle%2C+dinghy%2C+keeler%2C+multihull%2C+starling%2C+sunburst%2C+optimist%2C+jollyboat%2C+elliott%2C+design%2C+fabrication%2C+aluminium%2C+stainless+steel%2C+architectural+rigging%2C+sailing';
var metaContents  = 'Sparmakers+-+Yachtriggers.+Specialists+in+the+design+and+manufacture+of+aluminium+masts+and+rigging+for+dinghies%2C+trailer+yachts%2C+multihulls+and+keelers+to+20m.+';
					                                                                    
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 */					                                                            

