/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],''],
	['PAGE','552',jdecode('About+us'),jdecode(''),'/552/index.html','true',[ 
		['PAGE','13601',jdecode('Our+staff'),jdecode(''),'/552/13601.html','true',[],''],
		['PAGE','21701',jdecode('Photo+album'),jdecode(''),'/552/21701.html','true',[],'']
	],''],
	['PAGE','5306',jdecode('Services+and++Policies+'),jdecode(''),'/5306/index.html','true',[ 
		['PAGE','34301',jdecode('Appointments+'),jdecode(''),'/5306/34301.html','true',[],''],
		['PAGE','34322',jdecode('Registration+forms'),jdecode(''),'/5306/34322.html','true',[],''],
		['PAGE','38542',jdecode('Phone+Calls'),jdecode(''),'/5306/38542.html','true',[],''],
		['PAGE','38551',jdecode('Immunization+Records'),jdecode(''),'/5306/38551.html','true',[],''],
		['PAGE','38858',jdecode('Referral+Procedures'),jdecode(''),'/5306/38858.html','true',[],'']
	],''],
	['PAGE','27001',jdecode('Tips+on+Calling+The+Doctor'),jdecode(''),'/27001/index.html','true',[ 
		['PAGE','33601',jdecode('Common+Colds'),jdecode(''),'/27001/33601.html','true',[],''],
		['PAGE','33622',jdecode('Head+Trauma'),jdecode(''),'/27001/33622.html','true',[],''],
		['PAGE','33643',jdecode('Ear+Pain+and+Ear+Infection'),jdecode(''),'/27001/33643.html','true',[],''],
		['PAGE','33664',jdecode('Fever'),jdecode(''),'/27001/33664.html','true',[],''],
		['PAGE','33685',jdecode('Asthma'),jdecode(''),'/27001/33685.html','true',[],''],
		['PAGE','33706',jdecode('Cough'),jdecode(''),'/27001/33706.html','true',[],''],
		['PAGE','33727',jdecode('Vomiting%2Fdiarrhea'),jdecode(''),'/27001/33727.html','true',[],''],
		['PAGE','33748',jdecode('Constipation'),jdecode(''),'/27001/33748.html','true',[],'']
	],''],
	['PAGE','39906',jdecode('Immunization+Topics'),jdecode(''),'/39906/index.html','true',[ 
		['PAGE','28101',jdecode('check+ups+%26+labs'),jdecode(''),'/39906/28101.html','true',[],'']
	],''],
	['PAGE','5285',jdecode('Hours'),jdecode(''),'/5285.html','true',[],''],
	['PAGE','636',jdecode('Location%2FDirection'),jdecode(''),'/636.html','true',[],''],
	['PAGE','5390',jdecode('Links'),jdecode(''),'/5390.html','true',[],''],
	['PAGE','5411',jdecode('News+letters+'),jdecode(''),'/5411.html','true',[],''],
	['PAGE','20801',jdecode('Chinese+page+%E4%B8%AD%E6%96%87'),jdecode(''),'/20801.html','true',[],'']];
var siteelementCount=26;
theSitetree.topTemplateName='Dispose';
theSitetree.paletteFamily='BD64DE';
theSitetree.keyvisualId='9688';
theSitetree.keyvisualName='kv_9688.gif';
theSitetree.fontsetId='10659';
theSitetree.graphicsetId='11187';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='CCCACA';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Dispose',
				paletteFamily: 	'BD64DE',
				keyvisualId: 	'9688',
				keyvisualName: 	'kv_9688.gif',
				fontsetId: 		'10659',
				graphicsetId: 	'11187',
				contentColor: 	'000000',
				contentBGColor: 'CCCACA',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INXS8E';
var companyName   = 'Kiddyatrics++Dr.+Hua+E.+Fang-Patrick%2C+M.D.';
var htmlTitle	  = 'kiddyatrics.com';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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 */					                                                            
