/* [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','3001',jdecode('Home'),jdecode(''),'/3001.html','true',[],''],
	['PAGE','3052',jdecode('About+Bewal'),jdecode(''),'/3052.html','true',[],''],
	['PAGE','3073',jdecode('About+us'),jdecode(''),'/3073/index.html','true',[ 
		['PAGE','3094',jdecode('Our+Objective'),jdecode(''),'/3073/3094.html','true',[],'']
	],''],
	['PAGE','3115',jdecode('The+Power+100'),jdecode(''),'/3115.html','true',[],''],
	['PAGE','3136',jdecode('Our+Villages'),jdecode(''),'/3136.html','true',[],''],
	['PAGE','3157',jdecode('Bewal+in+Islamabad'),jdecode(''),'/3157.html','true',[],''],
	['PAGE','3178',jdecode('How+You+Can+Help+Our+Schools%3F'),jdecode(''),'/3178.html','true',[],''],
	['PAGE','5406',jdecode('Guestbook'),jdecode(''),'/5406/index.html','true',[ 
		['PAGE','5401',jdecode('Read+Guestbook'),jdecode(''),'/5406/5401.html','true',[],'']
	],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Blossom';
theSitetree.paletteFamily='AC2E53';
theSitetree.keyvisualId='7108';
theSitetree.keyvisualName='kv_7108.jpg';
theSitetree.fontsetId='16394';
theSitetree.graphicsetId='12128';
theSitetree.contentColor='AC2E53';
theSitetree.contentBGColor='E5E2E2';
var theTemplate={
				name: 			'Blossom',
				paletteFamily: 	'AC2E53',
				keyvisualId: 	'7108',
				keyvisualName: 	'kv_7108.jpg',
				fontsetId: 		'16394',
				graphicsetId: 	'12128',
				contentColor: 	'AC2E53',
				contentBGColor: 'E5E2E2',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '3001',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '5406',
internalId:  '5406abri10in3wp9',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '5401',
internalId:  '5406abri10in3wp9',
customField: 'action=list'
};
var canonHostname = 'wsc.brinkster.com';
var accountId     = 'ABRI10IN3WP9';
var companyName   = 'BEWAL.NET';
var htmlTitle	  = 'BEWAL.NET+BY+ZAHID+HUSSAIN';
var metaKeywords  = 'BEWAL+%2CBEWAL.NET%2C+ZAHID+HUSSAIN%2C+THE+POWER+100+';
var metaContents  = 'Bewal+is+a+small+historical+town+in+tehsil+Gujar+Khan%2C+district+Rawalpindi.+It+is+located+near+the+northern+tip+of+the+tehsil%2C+about+14+km+from+Gujar+Khan+shehr.+Choha%2C+Qazian+and+Jabbar+Islampura+are+other+small+towns+of+importance+located+near+it.+Large+scale+migration+to+western+Europe+has+brought+an+incredible+amount+of+wealth+to+the+area.+For+this+reason+Bewal+has+proved+to+be+magnet+for+people+from+all+over+Pakistan.+The+town+is+as+good+as+England+itself+to+people+of+many+far+flung+poorer+areas+of+Pakistan+from+where+many+have+flocked+to+find+work.+The+area+presents+such+economic+opportunities+that+it+is+said+doctors+and+employees+of+electricity+and+telephone+companies+will+try+their+level+best+to+be+transferred+here.+Many+who+came+to+Bewal+for+work+%28from+as+far+away+as+Karak%2C+in+NWFP+and+Pakpattan+near+Lahore%29+never+left.+Rumours+go+that+word+has+got+to+places+as+far+away+as+Kabul+about+the+extraordinary+job+and+business+opportunities+available+in+Bewal.+';
					                                                                    
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 */					                                                            
