/* [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','4436',jdecode('Home'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','41031',jdecode('Croaker+Pit+Challenge+2010'),jdecode(''),'/41031.html','true',[],''],
	['PAGE','36489',jdecode('2007+TSSC+Winners%21'),jdecode(''),'/36489.html','true',[],''],
	['PAGE','7101',jdecode('The+Krokus+Krew'),jdecode(''),'/7101/index.html','true',[ 
		['PAGE','42189',jdecode('Jarrad+Williams'),jdecode(''),'/7101/42189.html','true',[],''],
		['PAGE','41433',jdecode('Steve+%22Captain%22+Hill'),jdecode(''),'/7101/41433.html','true',[],''],
		['PAGE','33303',jdecode('Daniel+Norton'),jdecode(''),'/7101/33303.html','true',[],''],
		['PAGE','30207',jdecode('Kyle+Hopkins'),jdecode(''),'/7101/30207.html','true',[],''],
		['PAGE','38797',jdecode('Zane+Spence'),jdecode(''),'/7101/38797.html','true',[],''],
		['PAGE','38988',jdecode('Adam+Garrison'),jdecode(''),'/7101/38988.html','true',[],''],
		['PAGE','36427',jdecode('Bronson+%22Hilldo%22+Hilliard'),jdecode(''),'/7101/36427.html','true',[],''],
		['PAGE','36458',jdecode('David+%22Doc%22+Colombo'),jdecode(''),'/7101/36458.html','true',[],''],
		['PAGE','35756',jdecode('Bustalip'),jdecode(''),'/7101/35756.html','true',[],'']
	],''],
	['PAGE','7128',jdecode('Custom+Surfboards'),jdecode(''),'/7128/index.html','true',[ 
		['PAGE','42131',jdecode('Meteor'),jdecode(''),'/7128/42131.html','true',[],''],
		['PAGE','37838',jdecode('Pro-Grom+Mutilator'),jdecode(''),'/7128/37838.html','true',[],''],
		['PAGE','26801',jdecode('The+%22Mutilator%22'),jdecode(''),'/7128/26801.html','true',[],''],
		['PAGE','34958',jdecode('The+%22Predator%22'),jdecode(''),'/7128/34958.html','true',[],''],
		['PAGE','34927',jdecode('Escape+Pods'),jdecode(''),'/7128/34927.html','true',[],''],
		['PAGE','40284',jdecode('Second+Stage'),jdecode(''),'/7128/40284.html','true',[],''],
		['PAGE','28101',jdecode('The+%22Transporter%22'),jdecode(''),'/7128/28101.html','true',[],''],
		['PAGE','35091',jdecode('Star+Cruiser'),jdecode(''),'/7128/35091.html','true',[],''],
		['PAGE','39745',jdecode('The+ORB'),jdecode(''),'/7128/39745.html','true',[],''],
		['PAGE','42704',jdecode('The+Singularity'),jdecode(''),'/7128/42704.html','true',[],''],
		['PAGE','32606',jdecode('Gravity+WARP+Drive'),jdecode(''),'/7128/32606.html','true',[],'']
	],''],
	['PAGE','7155',jdecode('Accesories'),jdecode(''),'/7155/index.html','true',[ 
		['PAGE','24564',jdecode('Future+Composite+fins'),jdecode(''),'/7155/24564.html','true',[],''],
		['PAGE','24601',jdecode('Traction+Pads+and+Leashes'),jdecode(''),'/7155/24601.html','true',[],''],
		['PAGE','27916',jdecode('Clothing'),jdecode(''),'/7155/27916.html','true',[],'']
	],''],
	['PAGE','7182',jdecode('Links'),jdecode(''),'/7182.html','true',[],''],
	['PAGE','24102',jdecode('Krokus+Gallery'),jdecode(''),'/24102/index.html','true',[ 
		['PAGE','24702',jdecode('%22Bustalip%22'),jdecode(''),'/24102/24702.html','true',[],''],
		['PAGE','31815',jdecode('Krokus+Riders'),jdecode(''),'/24102/31815.html','true',[],'']
	],''],
	['PAGE','7209',jdecode('Contact+Us'),jdecode(''),'/7209/index.html','true',[ 
		['PAGE','31509',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/7209/31509.html','false',[],'']
	],'']];
var siteelementCount=35;
theSitetree.topTemplateName='Amaze';
					                                                                    
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 */					                                                            

