/* [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','127862',jdecode('BRADYnews'),jdecode(''),'/127862/index.html','true',[ 
		['PAGE','15188',jdecode('BRADYtimeline'),jdecode(''),'/127862/15188.html','true',[],''],
		['PAGE','11363',jdecode('BRADYography'),jdecode(''),'/127862/11363.html','true',[],'']
	],''],
	['PAGE','4436',jdecode('BRADYart'),jdecode(''),'/4436/index.html','true',[ 
		['PAGE','223511',jdecode('NEWworld'),jdecode(''),'/4436/223511.html','true',[],''],
		['PAGE','181184',jdecode('MEDIAfriend'),jdecode(''),'/4436/181184.html','true',[],''],
		['PAGE','13753',jdecode('THEgrove'),jdecode(''),'/4436/13753.html','true',[],''],
		['PAGE','13815',jdecode('FEMMESdemyst%E8re'),jdecode(''),'/4436/13815.html','true',[],''],
		['PAGE','178462',jdecode('LOVEhate'),jdecode(''),'/4436/178462.html','true',[],''],
		['PAGE','13722',jdecode('ELcoraz%F3n'),jdecode(''),'/4436/13722.html','true',[],''],
		['PAGE','13877',jdecode('ENTERpolitico'),jdecode(''),'/4436/13877.html','true',[],''],
		['PAGE','13908',jdecode('GHOSTbawds'),jdecode(''),'/4436/13908.html','true',[],''],
		['PAGE','138562',jdecode('PITCHYpatchy'),jdecode(''),'/4436/138562.html','true',[],''],
		['PAGE','13784',jdecode('ZODIACsigns'),jdecode(''),'/4436/13784.html','true',[],''],
		['PAGE','13691',jdecode('TOTEMpoles'),jdecode(''),'/4436/13691.html','true',[],''],
		['PAGE','13846',jdecode('WHOisthat'),jdecode(''),'/4436/13846.html','true',[],''],
		['PAGE','138662',jdecode('WORDplay'),jdecode(''),'/4436/138662.html','true',[],''],
		['PAGE','138593',jdecode('THREEdimensions'),jdecode(''),'/4436/138593.html','true',[],'']
	],''],
	['PAGE','143962',jdecode('BRADYphotography'),jdecode(''),'/143962/index.html','true',[ 
		['PAGE','212161',jdecode('MEXICOcity'),jdecode(''),'/143962/212161.html','true',[],''],
		['PAGE','183947',jdecode('NEWorleans'),jdecode(''),'/143962/183947.html','true',[],''],
		['PAGE','184195',jdecode('LOSangeles'),jdecode(''),'/143962/184195.html','true',[],''],
		['PAGE','212130',jdecode('BUENOSaires'),jdecode(''),'/143962/212130.html','true',[],''],
		['PAGE','183916',jdecode('SANfrancisco'),jdecode(''),'/143962/183916.html','true',[],''],
		['PAGE','183885',jdecode('NEWyork'),jdecode(''),'/143962/183885.html','true',[],''],
		['PAGE','183978',jdecode('PARISfrance'),jdecode(''),'/143962/183978.html','true',[],''],
		['PAGE','184040',jdecode('MOSCOWrussia'),jdecode(''),'/143962/184040.html','true',[],''],
		['PAGE','184009',jdecode('UNITEDkingdom'),jdecode(''),'/143962/184009.html','true',[],''],
		['PAGE','212230',jdecode('BRAZILsaudade'),jdecode(''),'/143962/212230.html','true',[],''],
		['PAGE','184071',jdecode('FLORIDAtropics'),jdecode(''),'/143962/184071.html','true',[],''],
		['PAGE','184133',jdecode('SOUTHwest'),jdecode(''),'/143962/184133.html','true',[],'']
	],''],
	['PAGE','183494',jdecode('BRADYspotlight'),jdecode(''),'/183494/index.html','true',[ 
		['PAGE','11332',jdecode('BRADYjournals'),jdecode(''),'/183494/11332.html','true',[],''],
		['PAGE','176162',jdecode('BRADYfilm'),jdecode(''),'/183494/176162.html','true',[],''],
		['PAGE','123859',jdecode('BRADYtales'),jdecode(''),'/183494/123859.html','true',[],''],
		['PAGE','134062',jdecode('TREEofinspiration'),jdecode(''),'/183494/134062.html','true',[],''],
		['PAGE','160062',jdecode('MADONNAinart'),jdecode(''),'/183494/160062.html','true',[],''],
		['PAGE','128662',jdecode('GHOSTstories'),jdecode(''),'/183494/128662.html','true',[],'']
	],''],
	['PAGE','185278',jdecode('BRADYstore'),jdecode(''),'/185278/index.html','true',[ 
		['PAGE','185216',jdecode('BRADYprints'),jdecode(''),'/185278/185216.html','true',[],''],
		['PAGE','184164',jdecode('BRADYbooks'),jdecode(''),'/185278/184164.html','true',[],''],
		['PAGE','185247',jdecode('BRADYsale'),jdecode(''),'/185278/185247.html','true',[],''],
		['PAGE','185185',jdecode('BRADYdownloads'),jdecode(''),'/185278/185185.html','true',[],'']
	],''],
	['PAGE','128163',jdecode('BRADYguests'),jdecode(''),'/128163/index.html','true',[ 
		['PAGE','128164',jdecode('READcomments'),jdecode(''),'/128163/128164.html','true',[],'']
	],''],
	['PAGE','11301',jdecode('BRADYlinks'),jdecode(''),'/11301.html','true',[],'']];
var siteelementCount=46;
theSitetree.topTemplateName='Card';
					                                                                    
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 */					                                                            
