/* [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','1001',jdecode('Home'),jdecode(''),'/1001.html','true',[],''],
	['PAGE','5722',jdecode('THE+CSL+AWARDS'),jdecode(''),'/5722.html','true',[],''],
	['PAGE','8722',jdecode('Categories+%26+Criteria'),jdecode(''),'/8722.html','true',[],''],
	['PAGE','65501',jdecode('Nominate%3A+Submit+an+Entry'),jdecode(''),'/65501.html','true',[],''],
	['PAGE','97501',jdecode('RSVP'),jdecode(''),'/97501.html','true',[],''],
	['PAGE','97522',jdecode('ORDER+TICKETS'),jdecode(''),'/97522.html','true',[],''],
	['PAGE','91401',jdecode('VOTING+PAGE'),jdecode(''),'/91401.html','true',[],''],
	['PAGE','8743',jdecode('Entry+Rules'),jdecode(''),'/8743.html','true',[],''],
	['PAGE','38685',jdecode('Youth+Finalists'),jdecode(''),'/38685.html','true',[],''],
	['PAGE','80501',jdecode('Downloads'),jdecode(''),'/80501.html','true',[],''],
	['PAGE','5701',jdecode('Can+Indo+Lanka+Magazine'),jdecode(''),'/5701.html','true',[],''],
	['PAGE','38601',jdecode('About+the+Company'),jdecode(''),'/38601/index.html','true',[ 
		['PAGE','53601',jdecode('Our+Vision'),jdecode(''),'/38601/53601.html','true',[],'']
	],''],
	['PAGE','38664',jdecode('Advertising+%26+Sponsorships'),jdecode(''),'/38664.html','true',[],''],
	['PAGE','79201',jdecode('Photo+Gallery'),jdecode(''),'/79201/index.html','true',[ 
		['PAGE','77601',jdecode('Sports+Album'),jdecode(''),'/79201/77601.html','true',[],''],
		['PAGE','79222',jdecode('Wedding+Album'),jdecode(''),'/79201/79222.html','true',[],'']
	],''],
	['PAGE','52901',jdecode('JOIN+OUR+EMAIL+LIST'),jdecode(''),'/52901.html','true',[],''],
	['PAGE','5764',jdecode('Contact+Us'),jdecode(''),'/5764.html','true',[],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Liveliness';
theSitetree.paletteFamily='D74343';
theSitetree.keyvisualId='3277';
theSitetree.keyvisualName='kv_3277.jpg';
theSitetree.fontsetId='10693';
theSitetree.graphicsetId='10731';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Liveliness',
				paletteFamily: 	'D74343',
				keyvisualId: 	'3277',
				keyvisualName: 	'kv_3277.jpg',
				fontsetId: 		'10693',
				graphicsetId: 	'10731',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D74343',
				e_color: 		'BCBCBC',
				f_color: 		'737373',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1008']={
webappId:    '1008',
documentId:  '97501',
internalId:  '9011068',
customField: 'en:US:'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1001',
internalId:  '1006',
customField: '1006'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '91401',
internalId:  '8494146',
customField: 'en:US:'
};
webappMappings['1005']={
webappId:    '1005',
documentId:  '1001',
internalId:  '11637483c46.f23a67a7',
customField: 'en:US:'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '77601',
internalId:  '1167ea0ff0b',
customField: 'g.12pvcrggu.12qlppcl72.9c'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '5764',
internalId:  '8077772',
customField: 'en:US:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '5701',
internalId:  '8077874',
customField: 'en:US:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '52901',
internalId:  '8077874',
customField: 'en:US:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '65501',
internalId:  '8077643',
customField: 'en:US:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '97522',
internalId:  '9011493',
customField: 'en:US:'
};
var canonHostname = 'wsc1.brinkster.com';
var accountId     = 'ABRI10IN3PDB';
var companyName   = 'The+first+and+only+magazine+of+its+kind';
var htmlTitle	  = 'Welcome+to+Can+Indo+Lanka';
var metaKeywords  = 'South+Asian+Awards';
var metaContents  = 'Sri+Lanka+Sri+Lanka+Awards+South+Asian+Awards+India+Sri+Lankan+issues';
					                                                                    
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 */					                                                            
