/* [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('Tremies'),jdecode(''),'/501.html','true',[],''],
	['PAGE','5001',jdecode('Other+products'),jdecode(''),'/5001.html','true',[],'']];
var siteelementCount=2;
theSitetree.topTemplateName='Seifenblase';
theSitetree.paletteFamily='C8E2FF';
theSitetree.keyvisualId='2353';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='381';
theSitetree.graphicsetId='427';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Seifenblase',
				paletteFamily: 	'C8E2FF',
				keyvisualId: 	'2353',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'381',
				graphicsetId: 	'427',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'6666CC',
				e_color: 		'3333CC',
				f_color: 		'9999CC',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100820-112152'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20100820-111208'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLVVW';
var companyName   = 'W.E.+Couplings+Ltd++++++Tremie+Couplings';
var htmlTitle	  = 'W.E.+Couplings+Ltd+-+Tremie+Couplings';
var metaKeywords  = 'meta+name%3Drevisit-after+content%3D1+day++meta+name%3Drobots+content%3DALL++meta+name%3Ddescription+content%3Dsupplier+of+industrial+hose+fittings%2C+internal+and+external+swaging+facilities%2C+concrete+pumping%2C+line+adaptors%2C+groundwork%2C+de-watering+unions.++meta+name%3Dkeywords+content%3Dhigh+quality+%7C+custom+built+large+bore+hose+and+fittings+%7C+hot+water+washdown+%7C+pvc+clear+wire+suction+hose+%7C+hose+adaptors+%7C+hose+assemblies+%7C+concrete+sexual+fittings+%7C+RJT+%7C+BSP+%7C+PN16+%7C+NP16+%7C+DIN+%7C+breakdowns+%7C+off+the+shelf+%7C+same+day+service+%7C+next+day+service%7C+layflat+hose+%7C+food+hose+%7C+milk+hose+%7C+food+quality+hose+%7C+water+hose+%7C+brewers+hose+%7C+fire+hose+%7C+cement+hose+%7C+general+purpose+suction+and+delivery+hose+%7C+multi+purpose+hose+assemblies+%7C+special+design+%7C+large+bore+hose+and+related+problems+%7C+shotblast+hose%7C+abrasive+material+hose+%7C+wire+armoured+hose+%7C+material+handling+%7C+polyurethane+hose+%7C+industrial+vacuum+hose+%7C+gas+exhaust+hose+%7C+steel+helix+wire+%7C+fume+extraction+%7C+hygienic+end+fittings+%7C+hose+%7Cdredging+hose+%7C+tank+truck+supply+hose+%7C+plaster+and+concrete+pumping+hose+%7C+bulk+material+suction+and+delivery+hose+%7C+saturated+and+superheated+steam+hose+%7C+steam+hose+%7C+steam+couplings+%7C+steam+clamps+%7C+air+hose+%7C+compressed+air+hose+%7C+hot+air+hose+%7C+flexible+hose+%7C+suction+and+delivery+hose+%7C+suction+hose+%7C+delivery+hose+%7C+oil+hose+%7C+petroleum+hose+%7C+oil+rig+supply+hose+%7C+rig+supply+%7C+potable+water+%7C+liquid+mud+delivery+%7C+oil+dock+hose+%7C+chemical+hose+%7C+metallic+hose+%7C+metal+hose+%7C+ducting+hose+%7C+composite+hose+%7C+stainless+steel+flexible+hose+%7C+hard+wall+%7C+soft+wall+%7C+heavy+duty+%7C+high+pressure+%7C+Lloyds+Register+%7C+DNV+%7C+Quality+Certification+%7C+hose+reelers+%7C+industrial+reelers+%7C+pressure+testing+%7C+thickness+testing+%7C+hose+inspection+camera+%7C+hose+camera+%7C+PTFE+%7C+EPDM+%7C+UHMWPE+%7C+XLPE+%7C+nylon+%7C+symmetric+%7C+storz+%7C+stortz+%7C+dalai+%7C+dallai+%7C+flanges+%7C+nipples+%7C+split+rings+%7C+clamp+%7C+gate+valve+%7C+instantaneous+%7C+instantaneous+%7C+fire+coupling+%7C+round+thread+%7C+bellows+%7C+pump+%7C+alfa+%7C+alfagomma+%7C+couplings+%7C+swivel+%7C+camlock+%7C+bauer+%7C+baur+%7C+agrilok+%7C+pvc+flange+%7C+welding+%7C+fabrication+%7C+machining+%7C+CNC+machining+%7C+rotary+pipe+swivels+%7C+offshore+%7C+dock+hose+%7C+offshore+hose+%7C+balls+%7C+plugs+%7C+tremmie+%7C+tremie+%7C+tremi+%7C+wellmaster+%7C+pump+primer+%7C+washout+pipe+%7C+layflat+hose+%7C+hydraulic+hose+%7C+Anderton+%7C+Chorley+%7C+Cheshire+%7C+northwest+%7C+north+west+%7C+international+pipeline+%7C+pipe+%7C+lancashire+%7C+uk+%7C+hose+%7C+large+bore+%7C+big+bore+%7C+swage+%7C+swaging+%7C+crimp+%7C+crimping+%7C+large+capacity+hose+crimping+%7C+rotary+pipe+joints+%7C+dragline+couplings+%7C+lay+flat+hose+%7C+roof+drain+hose+%7C+tank+drain+hose+%7C+tank+%7C+farm+hose+%7C+pipe+adaptors+%7C+pipe+adapters+%7C+tremie+couplings+%7C+tremmie+pipe+%7C+tremie+pipe+%7C+hose+fittings+%7C+concrete+boom+kits+%7C+concrete+hose+%7C+auger+ropes+%7C+steel+loop+wires+%7C+concrete+adaptors+%7C+engineering+%7C+bespoke+design+%7C+bespoke+designing+%7C+nuclear+%7C+sub+sea+%7C+ship+to+shore+%7C+North+Sea+%7C+St+Helena+%7C+layflat+%7C+hose+ramps+%7C+hose+bridge+%7C+fire+service+%7C+Weflat+%7C+Russia+%7C+Kuala+Lumpur+%7C+Malaysia+%7C+Canada+%7C+New+Zealand+%7C+tanker+clamps+%7C+hose+connections+%7C+swivel+joint+%7C+steel+flange+adaptors+%7C+steel+flange+adapters+%7C+hose+adaptors+%7C+swivel+pipe+couplings+%7C+headworks+%7C+topworks+%7C+spool+pieces+%7C+whipchecks+%7C+whip+checks+%7C+hose+adapter+%7C+stainless+steel+%7C+mild+steel+%7C+aluminium+%7C+sexual+fittings+%7C+hose+%7C+export+%7C+layflathose+%7C+tremies+%7C+pipe%7C+hose+manifold+%7C+swivel+coupling+%7C+line+prime+%7C+lineprime+%7C+starship+coupling+%7C+tremie+pipe+%7C+tremiepipe+%7C+swivel+joint+%7C+disposable+auger+plugs+%7C+disposable+auger+caps+%7C+disposable+CFA+caps+%7C+disposable+CFA+plugs+%7C+nitrile+tank+drain+hose+%7C+viton+tank+drain+hose%7C+viton+drain+hose+%7C+tankdrain+hose+%7C+meta+name%3Dclassification+content%3DConstruction+manufacturing+fittings+concrete+hose+meta+name%3Drating+content%3DGeneral++meta+name%3Dauthor+content%3DW.E.+Couplings+Ltd++meta+name%3Dreply-to+content%3Dtina%40we-couplings.com++titleW.E.+Couplings+Ltd%2Ftitle';
var metaContents  = 'WE+COUPLINGS+LTD%2C+GRIMEFORD+LANE%2C+ANDERTON%2C+CHORLEY%2C+PR6+9HL+PHONE+%3A%3A+01257+475101++FAX+01257+482424+TREMIE+COUPLINGS++PIPE';
					                                                                    
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 */					                                                            

