/* [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','1153',jdecode('Home'),jdecode(''),'/1153.html','true',[],''],
	['PAGE','12720',jdecode('About+the+Group'),jdecode(''),'/12720.html','true',[],''],
	['PAGE','65719',jdecode('Poetry+%26+Singing+in+Islam'),jdecode(''),'/65719.html','true',[],''],
	['PAGE','65619',jdecode('The+Duff+by+SHAAM'),jdecode(''),'/65619.html','true',[],''],
	['PAGE','65650',jdecode('Buy+The+Duff'),jdecode(''),'/65650.html','true',[],''],
	['PAGE','12365',jdecode('Albums'),jdecode(''),'/12365/index.html','true',[ 
		['PAGE','1206',jdecode('Mercy+like+the+Rain'),jdecode(''),'/12365/1206.html','true',[],''],
		['PAGE','12338',jdecode('Spring+has+Come'),jdecode(''),'/12365/12338.html','true',[],''],
		['PAGE','50021',jdecode('SHAAM+In+Concert'),jdecode(''),'/12365/50021.html','true',[],''],
		['PAGE','51719',jdecode('Mawlid+At+Abbey+Road'),jdecode(''),'/12365/51719.html','true',[],''],
		['PAGE','63998',jdecode('SHAAM+The+Early+Years'),jdecode(''),'/12365/63998.html','true',[],'']
	],''],
	['PAGE','64320',jdecode('Buy+Albums'),jdecode(''),'/64320.html','true',[],''],
	['PAGE','12419',jdecode('Lyrics'),jdecode(''),'/12419/index.html','true',[ 
		['PAGE','1229',jdecode('Mercy+like+the+Rain'),jdecode(''),'/12419/1229.html','true',[],''],
		['PAGE','12392',jdecode('Spring+has+Come'),jdecode(''),'/12419/12392.html','true',[],'']
	],''],
	['PAGE','1252',jdecode('Events+Diary'),jdecode(''),'/1252/index.html','true',[ 
		['PAGE','66536',jdecode('2009'),jdecode(''),'/1252/66536.html','true',[],''],
		['PAGE','66505',jdecode('2008'),jdecode(''),'/1252/66505.html','true',[],''],
		['PAGE','66474',jdecode('2007'),jdecode(''),'/1252/66474.html','true',[],''],
		['PAGE','66443',jdecode('2006'),jdecode(''),'/1252/66443.html','true',[],''],
		['PAGE','66412',jdecode('2005'),jdecode(''),'/1252/66412.html','true',[],''],
		['PAGE','66381',jdecode('2004'),jdecode(''),'/1252/66381.html','true',[],''],
		['PAGE','66350',jdecode('2003'),jdecode(''),'/1252/66350.html','true',[],''],
		['PAGE','66319',jdecode('2002'),jdecode(''),'/1252/66319.html','true',[],'']
	],''],
	['PAGE','66119',jdecode('Watch+Videos'),jdecode(''),'/66119.html','true',[],''],
	['PAGE','12747',jdecode('Photo+Gallery'),jdecode(''),'/12747.html','true',[],''],
	['PAGE','1298',jdecode('Contact+us'),jdecode(''),'/1298/index.html','true',[ 
		['PAGE','49220',jdecode('Contact+us+%28follow+up+page%29'),jdecode(''),'/1298/49220.html','false',[],'']
	],''],
	['PAGE','12984',jdecode('Guestbook'),jdecode(''),'/12984/index.html','true',[ 
		['PAGE','12985',jdecode('Read+Guestbook'),jdecode(''),'/12984/12985.html','true',[],'']
	],''],
	['PAGE','45324',jdecode('News+Archive'),jdecode(''),'/45324.html','true',[],''],
	['PAGE','68319',jdecode('Orphan+Sponsorship'),jdecode(''),'/68319/index.html','true',[ 
		['PAGE','68414',jdecode('Orphan+Sponsorship+%28follow+up+page%29'),jdecode(''),'/68319/68414.html','false',[],''],
		['PAGE','68386',jdecode('Orphan+Sponsorship+%28follow+up+page%29'),jdecode(''),'/68319/68386.html','false',[],'']
	],''],
	['PAGE','41521',jdecode('Links'),jdecode(''),'/41521.html','true',[],'']];
var siteelementCount=35;
theSitetree.topTemplateName='NewYork';
					                                                                    
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 */					                                                            
