/* [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','1052',jdecode('Infants+and+Toddlers'),jdecode(''),'/1052/index.html','true',[ 
		['PAGE','1073',jdecode('The+1st+Year'),jdecode(''),'/1052/1073.html','true',[],''],
		['PAGE','1094',jdecode('SIDS'),jdecode(''),'/1052/1094.html','true',[],''],
		['PAGE','1115',jdecode('The+2nd+Year'),jdecode(''),'/1052/1115.html','true',[],''],
		['PAGE','1136',jdecode('Toys%2C+Books+and+Games+'),jdecode(''),'/1052/1136.html','true',[],'']
	],''],
	['PAGE','1157',jdecode('Preschool'),jdecode(''),'/1157/index.html','true',[ 
		['PAGE','1178',jdecode('Age+3-5'),jdecode(''),'/1157/1178.html','true',[],''],
		['PAGE','1199',jdecode('Toys%2C+Books+and+Games'),jdecode(''),'/1157/1199.html','true',[],'']
	],''],
	['PAGE','53201',jdecode('Thoughts+and+Feelings'),jdecode(''),'/53201/index.html','true',[ 
		['PAGE','53222',jdecode('Safely+Surrendered+Baby+'),jdecode(''),'/53201/53222.html','true',[],''],
		['PAGE','53243',jdecode('Post+Partum+Depression'),jdecode(''),'/53201/53243.html','true',[],''],
		['PAGE','53264',jdecode('Shaken+Baby+Syndrome'),jdecode(''),'/53201/53264.html','true',[],''],
		['PAGE','53285',jdecode('Stress+and+Frustration'),jdecode(''),'/53201/53285.html','true',[],''],
		['PAGE','53306',jdecode('Taking+Care+of+Yourself'),jdecode(''),'/53201/53306.html','true',[],'']
	],''],
	['PAGE','53327',jdecode('School+and+Your+Rights'),jdecode(''),'/53327/index.html','true',[ 
		['PAGE','53348',jdecode('Statistics'),jdecode(''),'/53327/53348.html','true',[],''],
		['PAGE','53369',jdecode('What+is+Title+IX%3F'),jdecode(''),'/53327/53369.html','true',[],''],
		['PAGE','53390',jdecode('Programs+in+California'),jdecode(''),'/53327/53390.html','true',[],''],
		['PAGE','53411',jdecode('Info+for+Other+States'),jdecode(''),'/53327/53411.html','true',[],'']
	],''],
	['PAGE','53432',jdecode('Childcare+and+Day+Care'),jdecode(''),'/53432/index.html','true',[ 
		['PAGE','53453',jdecode('Childcare'),jdecode(''),'/53432/53453.html','true',[],''],
		['PAGE','53474',jdecode('Day+Care'),jdecode(''),'/53432/53474.html','true',[],'']
	],''],
	['PAGE','53495',jdecode('Resources+and+Links'),jdecode(''),'/53495/index.html','true',[ 
		['PAGE','53516',jdecode('4+Mothers+and+Fathers'),jdecode(''),'/53495/53516.html','true',[],''],
		['PAGE','53537',jdecode('Newborn+-+Preschool'),jdecode(''),'/53495/53537.html','true',[],''],
		['PAGE','53558',jdecode('Childcare+and+Day+Care'),jdecode(''),'/53495/53558.html','true',[],''],
		['PAGE','53579',jdecode('Health+and+Stress+'),jdecode(''),'/53495/53579.html','true',[],''],
		['PAGE','53600',jdecode('School+and+Your+Rights'),jdecode(''),'/53495/53600.html','true',[],'']
	],''],
	['PAGE','61701',jdecode('Contact+Me'),jdecode(''),'/61701.html','true',[],'']];
var siteelementCount=30;
theSitetree.topTemplateName='Curve';
theSitetree.paletteFamily='FFE397';
theSitetree.keyvisualId='5769';
theSitetree.keyvisualName='kv_5769.jpg';
theSitetree.fontsetId='11088';
theSitetree.graphicsetId='11856';
theSitetree.contentColor='464646';
theSitetree.contentBGColor='FFD791';
var theTemplate={
				name: 			'Curve',
				paletteFamily: 	'FFE397',
				keyvisualId: 	'5769',
				keyvisualName: 	'kv_5769.jpg',
				fontsetId: 		'11088',
				graphicsetId: 	'11856',
				contentColor: 	'464646',
				contentBGColor: 'FFD791',
				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: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1001',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'AAPLU0IN2NMR';
var companyName   = '4TeenParents.com';
					                                                                    
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 */					                                                            

