/* [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('Products'),jdecode(''),'/552.html','true',[],''],
	['PAGE','573',jdecode('Contact'),jdecode(''),'/573/index.html','true',[ 
		['PAGE','9001',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/573/9001.html','false',[],'']
	],'']];
var siteelementCount=4;
theSitetree.topTemplateName='Fluent';
theSitetree.paletteFamily='9C2020';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10645';
theSitetree.graphicsetId='10522';
theSitetree.contentColor='DF0404';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Fluent',
				paletteFamily: 	'9C2020',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10645',
				graphicsetId: 	'10522',
				contentColor: 	'DF0404',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'A4A5A4',
				e_color: 		'8D1D1D',
				f_color: 		'DF0404',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1001']={
webappId:    '1001',
documentId:  '573',
internalId:  'aen010in34ip112c2b0fe55',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '9001',
internalId:  'aen010in34ip112c2b0fe55',
customField: 'followUp'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'wsc01.ehost-services.com';
var accountId     = 'AEN010IN34IP';
var companyName   = 'Cast+Iron+Fencing+%26+Architectural+Products';
var htmlTitle	  = 'castironfencing.com.au';
var metaKeywords  = 'Cast+Iron+Fencing+Australia+Quality+Fences+australian+full+range+quality+style+architectural+products';
var metaContents  = 'Cast+Iron+Fencing++Architectural+Products++Quality+and+style+that+will+last+forever++Thank+you+for+enquiring+about+Cast+Iron+Fencing++Architectural+products+range+of+beautiful+solid+cast+iron+products.+++Cast+Iron+Fencing++Architectural+products+was+established+to+provide+a+one+stop+shop+to+our+customers+with+a+full+range+of+cast+iron+products+and+services+from+supply+only+to+supply%2C+fabricate+and+install+as+well+as+repair+and+facilitate+reproduction+work+on+your+existing+cast+iron+products.+All+our+products+can+be+supplied+raw+or+we+can+have+them+painted+or+powder+coated+in+a+large+range+of+colors+to+meet+your+requirements.';
					                                                                    
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 */					                                                            

