/* [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','2912',jdecode('Home'),jdecode(''),'/2912.html','true',[],''],
	['PAGE','7301',jdecode('Goddesses+of+Compassion'),jdecode(''),'/7301.html','true',[],''],
	['PAGE','7601',jdecode('Contact'),jdecode(''),'/7601.html','true',[],''],
	['PAGE','7622',jdecode('About+us'),jdecode(''),'/7622.html','true',[],''],
	['PAGE','7643',jdecode('Catalogue'),jdecode(''),'/7643.html','true',[],''],
	['PAGE','9701',jdecode('Links'),jdecode(''),'/9701.html','true',[],''],
	['PAGE','12106',jdecode('Guestbook'),jdecode(''),'/12106/index.html','true',[ 
		['PAGE','12101',jdecode('Read+Guestbook'),jdecode(''),'/12106/12101.html','true',[],'']
	],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Roses';
theSitetree.paletteFamily='FFFBF2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10743';
theSitetree.graphicsetId='10823';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFBF2';
var theTemplate={
				name: 			'Roses',
				paletteFamily: 	'FFFBF2',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10743',
				graphicsetId: 	'10823',
				contentColor: 	'000000',
				contentBGColor: 'FFFBF2',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'787878',
				e_color: 		'9D584B',
				f_color: 		'9D584B',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '2912',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '7301',
internalId:  '112dfd3a8bb',
customField: 'g.12bfssp4l.kbdhk4eiaj.d4'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '12106',
internalId:  '12106aen010in3tjg',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '12101',
internalId:  '12106aen010in3tjg',
customField: 'action=list'
};
var canonHostname = 'wsc.ehost-services.com';
var accountId     = 'AEN010IN3TJG';
var companyName   = 'Quan+Yin.com';
var htmlTitle	  = 'QuanYin';
var metaKeywords  = 'quan+Yin%2C+kwan+yin%2C+guan+yin%2C+santa+cruz%2C+goddess+of+compassion%2C+tahra+singh%2C+dharma+ridge%2C+Dakini%2C+Mary%2C+Goddesses%2C+Kali+Ma%2C+kundalini%2C+yoga%2C+meditation%2C+healing%2C';
var metaContents  = 'The+name+Quan+Shih+Yin%2C+as+she+is+often+called%2C+means+literally+the+one+who+regards%2C+looks+on%2C+or+hears+the+sounds+of+the+world.+According+to+legend%2C+Quan+Yin+was+about+to+enter+heaven+when+she+paused+on+the+threshold+as+the+cries+of+the+world+reached+her+ears.+Sacrificing+her+own+ascension+for+the+sake+of+her+children%2C+Quan+Yin+stayed+on+earth%2C+thereby+exhibiting+the+same+behavior+of+mothers+everywhere+who+would+sacrifice+their+very+lives+for+their+children.';
					                                                                    
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 */					                                                            
