/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(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','612',jdecode('Home'),jdecode(''),'/612/index.html','true',[ 
		['PAGE','1101',jdecode('Hours+%26+Contact+Information'),jdecode(''),'/612/1101.html','true',[],''],
		['PAGE','4601',jdecode('Contact+NPSS'),jdecode(''),'/612/4601.html','true',[],''],
		['PAGE','3101',jdecode('Hours'),jdecode(''),'/612/3101.html','true',[],''],
		['PAGE','3122',jdecode('Address'),jdecode(''),'/612/3122.html','true',[],''],
		['PAGE','3143',jdecode('Map+%26+Directions'),jdecode(''),'/612/3143.html','true',[],''],
		['PAGE','3164',jdecode('Public+Transportation'),jdecode(''),'/612/3164.html','true',[],''],
		['PAGE','3185',jdecode('Phone+Number'),jdecode(''),'/612/3185.html','true',[],''],
		['PAGE','3206',jdecode('Phone+System+%2F+Phone+Policies'),jdecode(''),'/612/3206.html','true',[],''],
		['PAGE','3227',jdecode('Fax+Number'),jdecode(''),'/612/3227.html','true',[],''],
		['PAGE','3248',jdecode('Email'),jdecode(''),'/612/3248.html','true',[],''],
		['PAGE','1122',jdecode('Services+'),jdecode(''),'/612/1122.html','true',[],''],
		['PAGE','3269',jdecode('new'),jdecode(''),'/612/3269.html','true',[],'']
	],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Avocation';
theSitetree.paletteFamily='9590D2';
theSitetree.keyvisualId='4569';
theSitetree.keyvisualName='kv_4569.jpg';
theSitetree.fontsetId='10826';
theSitetree.graphicsetId='11277';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='9590D2';
var theTemplate={
				name: 			'Avocation',
				paletteFamily: 	'9590D2',
				keyvisualId: 	'4569',
				keyvisualName: 	'kv_4569.jpg',
				fontsetId: 		'10826',
				graphicsetId: 	'11277',
				contentColor: 	'FFFFFF',
				contentBGColor: '9590D2',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'9590D2',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'312C6A',
				e_color: 		'312C6A',
				f_color: 		'312C6A',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5003']=webappMappings['5003-tid:1;pid:WSCSYSSSSLYTC245']={
webappId:    '5003',
documentId:  '612',
internalId:  'tid:1;pid:WSCSYSSSSLYTC245',
customField: 'en:US:'
};
webappMappings['7008']=webappMappings['7008-681']={
webappId:    '7008',
documentId:  '4601',
internalId:  '681',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '612',
internalId:  '',
customField: '20080819-152126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4601',
internalId:  '',
customField: '20081130-210955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3101',
internalId:  '',
customField: '20081130-211529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1101',
internalId:  '',
customField: '20080819-145817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3122',
internalId:  '',
customField: '20081130-212417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3143',
internalId:  '',
customField: '20081130-212639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3185',
internalId:  '',
customField: '20081130-213350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3206',
internalId:  '',
customField: '20080903-193542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3227',
internalId:  '',
customField: '20080903-193542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3248',
internalId:  '',
customField: '20081130-213520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1122',
internalId:  '',
customField: '20081130-213829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3164',
internalId:  '',
customField: '20080903-193542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3269',
internalId:  '',
customField: '20080903-193542'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '612',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INVARM';
var companyName   = 'NPSS+-Neuropsychological+%26+Psychological+Services+for+the+Seacoast%2C+PLLC';
var htmlTitle	  = 'NPSS+-+Neuropsychological+%26+Psychological+Services+for+the+Seacoast%2C+PLLC';
var metaKeywords  = 'NPSS+Neuropsychological++Psychological+Services+for+the+Seacoast+PLLC%2CPortsmouth%2CCounseling%2CTherapy%2CIndividual+Psychotherapy%2CCouples+Counseling%2C+Family+Therapy%2C+Children%E2%80%99s+Group+Therapy%2CIndividual+Psychotherapy%2CCouples+Counseling%2C+Family+Therapy%2C+Group+Therapy%2CGBLT+Group+Therapy%2CChild+Therapy%2CEmployee+Assistance+Programs%2CEmployment+Testing%2CEmployee+Evaluations%2CEmployee+Assessment%2CPsychological+Consultation%2CPsychological+Testing%2C+Psychological+Assessment%2CPsychological+Evaluation%2CNeuropsychological+Testing%2C+Neuropsychological+Assessment%2CNeuropsychological+Evaluation%2CNeuropsychological+Evaluation%2CCognitive+Testing%2C+Cognitive+Assessment%2CCognitive+Evaluation%2CPsychoeducational+Assessment%2CPsychoeducational+Testing%2CPsychoeducational+Evaluation%2CADD+Evaluation%2CADD+Testing%2CADD+Assessment%2CADHD+Evaluation%2CADHD+Testing%2CADHD+Assessment%2CIndependent+Special+Education+Evaluation%2C++Independent+Special+Education+Testing%2CIndependent+Special+Education+Assessment%2CConsultation+to+families+educators+and+schools%2CGrief+Therapy%2CAnxiety+Reduction%2C+Stress+Reduction%2CAnxiety+Management%2CStress+Management%2CChildren%2CAdults%2CSeniors%2C';
var metaContents  = 'NPSS+Neuropsychological++Psychological+Services+for+the+Seacoast+PLLC%2CPortsmouth%2CCounseling%2CTherapy%2CIndividual+Psychotherapy%2CCouples+Counseling%2C+Family+Therapy%2C+Children%E2%80%99s+Group+Therapy%2CIndividual+Psychotherapy%2CCouples+Counseling%2C+Family+Therapy%2C+Group+Therapy%2CGBLT+Group+Therapy%2CChild+Therapy%2CEmployee+Assistance+Programs%2CEmployment+Testing%2CEmployee+Evaluations%2CEmployee+Assessment%2CPsychological+Consultation%2CPsychological+Testing%2C+Psychological+Assessment%2CPsychological+Evaluation%2CNeuropsychological+Testing%2C+Neuropsychological+Assessment%2CNeuropsychological+Evaluation%2CNeuropsychological+Evaluation%2CCognitive+Testing%2C+Cognitive+Assessment%2CCognitive+Evaluation%2CPsychoeducational+Assessment%2CPsychoeducational+Testing%2CPsychoeducational+Evaluation%2CADD+Evaluation%2CADD+Testing%2CADD+Assessment%2CADHD+Evaluation%2CADHD+Testing%2CADHD+Assessment%2CIndependent+Special+Education+Evaluation%2C++Independent+Special+Education+Testing%2CIndependent+Special+Education+Assessment%2CConsultation+to+families+educators+and+schools%2CGrief+Therapy%2CAnxiety+Reduction%2C+Stress+Reduction%2CAnxiety+Management%2CStress+Management%2CChildren%2CAdults%2CSeniors%2C';
					                                                                    
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;                                                                     
	};                                                                               
theSitetree.getByXx = function(lookup, xx, ar) {									 
    if (typeof(ar) == 'undefined')												 
    	ar = this;																	 
    for (var i=0; i < ar.length; i++) {										     
        if (ar[i][xx] == lookup)													 
        	return ar[i];															 
        if (ar[i][POS_CHILDS].length > 0) {										 
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);					 
            if (result != null)													 
                return result;													 
        }																			 
    }																				 
    return null;																	 
};																				 
function gotoPage(lookup) {														 
    var page = theSitetree.getHREF(lookup);										 
    if (!page) {																	 
  		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];							 
            for (var i=0 ; i < testFor.length ; i++) {							 
                    var p = theSitetree.getByXx(lookup, testFor[i]);				 
                    if (p != null) {												 
                            page = p[POS_HREF];									 
                            break;												 
                    }																 
            }																		 
    }																				 
 document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
}
/* EOF */					                                                            

