/* [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','56838',jdecode('Membership'),jdecode(''),'/56838.html','true',[],''],
	['PAGE','167414',jdecode('Industry+Contacts'),jdecode(''),'/167414/index.html','true',[ 
		['PAGE','170614',jdecode('Crop+Insurance+Fact+Sheet'),jdecode(''),'/167414/170614.html','true',[],'']
	],''],
	['PAGE','176914',jdecode('2003+Economic+Profile'),jdecode(''),'/176914.html','true',[],''],
	['PAGE','57086',jdecode('Calendar'),jdecode(''),'/57086.html','true',[],''],
	['PAGE','56931',jdecode('CPH'),jdecode(''),'/56931/index.html','true',[ 
		['PAGE','177741',jdecode('Exam+Schedule'),jdecode(''),'/56931/177741.html','true',[],''],
		['PAGE','182642',jdecode('Companies+Employing+CPHs'),jdecode(''),'/56931/182642.html','true',[],'']
	],''],
	['PAGE','56962',jdecode('Legislative%2FMaGIC'),jdecode(''),'/56962/index.html','true',[ 
		['PAGE','169914',jdecode('Legislative+Updates'),jdecode(''),'/56962/169914.html','true',[],''],
		['PAGE','169945',jdecode('MaGIC+Member+Profiles'),jdecode(''),'/56962/169945.html','true',[],'']
	],''],
	['PAGE','192941',jdecode('MANTS'),jdecode(''),'/192941.html','true',[],''],
	['PAGE','57024',jdecode('Careers'),jdecode(''),'/57024.html','true',[],''],
	['PAGE','83438',jdecode('Scholarship'),jdecode(''),'/83438.html','true',[],''],
	['PAGE','167514',jdecode('Consumer'),jdecode(''),'/167514.html','true',[],''],
	['PAGE','167545',jdecode('Classifieds'),jdecode(''),'/167545.html','true',[],''],
	['PAGE','56993',jdecode('Licensing'),jdecode(''),'/56993.html','true',[],''],
	['PAGE','167607',jdecode('Press+Releases'),jdecode(''),'/167607/index.html','true',[ 
		['PAGE','193841',jdecode('Thomas+Dudich+-+CID'),jdecode(''),'/167607/193841.html','true',[],''],
		['PAGE','186453',jdecode('Spring+Garden+Symposium'),jdecode(''),'/167607/186453.html','true',[],''],
		['PAGE','175414',jdecode('Rust+on+the+Queen%26%23x27%3Bs+Crown'),jdecode(''),'/167607/175414.html','true',[],''],
		['PAGE','175445',jdecode('Mile-A-Minute+Weed'),jdecode(''),'/167607/175445.html','true',[],'']
	],''],
	['PAGE','167576',jdecode('Root+of+the+Matter'),jdecode(''),'/167576.html','true',[],''],
	['PAGE','197059',jdecode('Online+Plant+Search'),jdecode(''),'/197059.html','true',[],''],
	['PAGE','102601',jdecode('Free+State+Newsletter'),jdecode(''),'/102601.html','true',[],''],
	['PAGE','11204',jdecode('Contact+Information'),jdecode(''),'/11204/index.html','true',[ 
		['PAGE','87948',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/contact/thanks.html','false',[],'']
	],'']];
var siteelementCount=27;
theSitetree.topTemplateName='Collage';
					                                                                    
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 */					                                                            
