/* [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','43657',jdecode('JUNE+OPEN+EVENT'),jdecode(''),'/43657.html','true',[],''],
	['PAGE','4535',jdecode('INTRODUCTION'),jdecode(''),'/4535.html','true',[],''],
	['PAGE','17573',jdecode('ABOUT+US'),jdecode(''),'/17573.html','true',[],''],
	['PAGE','25177',jdecode('NEWS'),jdecode(''),'/25177/index.html','true',[ 
		['PAGE','37357',jdecode('Christmas+Cheer'),jdecode(''),'/25177/37357.html','true',[],''],
		['PAGE','39357',jdecode('Easter+Competition'),jdecode(''),'/25177/39357.html','true',[],'']
	],''],
	['PAGE','40645',jdecode('DURST+800'),jdecode(''),'/40645.html','true',[],''],
	['PAGE','42811',jdecode('DURST+320R'),jdecode(''),'/42811.html','true',[],''],
	['PAGE','40257',jdecode('DURST+INSTALL'),jdecode(''),'/40257.html','true',[],''],
	['PAGE','41009',jdecode('COLOUR+'),jdecode(''),'/41009.html','true',[],''],
	['PAGE','42842',jdecode('ZUND+G3'),jdecode(''),'/42842.html','true',[],''],
	['PAGE','36350',jdecode('+Eco+Solvent+Digital'),jdecode(''),'/36350.html','true',[],''],
	['PAGE','42507',jdecode('EPSON+Stylus+pro+11880'),jdecode(''),'/42507.html','true',[],''],
	['PAGE','37297',jdecode('KONGSBERG+'),jdecode(''),'/37297/index.html','true',[ 
		['PAGE','37798',jdecode('Kongsberg+Projects'),jdecode(''),'/37297/37798.html','true',[],''],
		['PAGE','38167',jdecode('Kongsberg+Projects'),jdecode(''),'/37297/38167.html','true',[],'']
	],''],
	['PAGE','17627',jdecode('Products+%26+Services'),jdecode(''),'/17627.html','true',[],''],
	['PAGE','36057',jdecode('PROJECTS'),jdecode(''),'/36057.html','true',[],''],
	['PAGE','31100',jdecode('POP+Displays'),jdecode(''),'/31100.html','true',[],''],
	['PAGE','30357',jdecode('TRADE+SERVICE'),jdecode(''),'/30357.html','true',[],''],
	['PAGE','17600',jdecode('THE+TEAM'),jdecode(''),'/17600/index.html','true',[ 
		['PAGE','17789',jdecode('Contact'),jdecode(''),'/17600/17789.html','true',[],'']
	],''],
	['PAGE','34009',jdecode('Finishing%2F+Distribution'),jdecode(''),'/34009.html','true',[],''],
	['PAGE','30757',jdecode('Artwork+Specs'),jdecode(''),'/30757.html','true',[],''],
	['PAGE','30457',jdecode('Upload+Files+%28FTP%29'),jdecode(''),'/30457.html','true',[],''],
	['PAGE','18771',jdecode('How+to+find+us'),jdecode(''),'/18771.html','true',[],''],
	['PAGE','19261',jdecode('Guestbook'),jdecode(''),'/19261/index.html','true',[ 
		['PAGE','19262',jdecode('Read+Guestbook'),jdecode(''),'/19261/19262.html','true',[],'']
	],''],
	['PAGE','20459',jdecode('Trading+Links'),jdecode(''),'/20459.html','true',[],''],
	['PAGE','25204',jdecode('Jobs'),jdecode(''),'/25204.html','true',[],''],
	['PAGE','43354',jdecode('DURST+320+ARRIVAL'),jdecode(''),'/43354.html','true',[],''],
	['PAGE','43385',jdecode('2010+XMAS+BASH'),jdecode(''),'/43385.html','true',[],'']];
var siteelementCount=32;
theSitetree.topTemplateName='Disco';
					                                                                    
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 */					                                                            

