/* [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','12401',jdecode('Home'),jdecode(''),'/12401.html','true',[],''],
	['PAGE','12452',jdecode('Opening+hours'),jdecode(''),'/12452.html','true',[],''],
	['PAGE','12473',jdecode('Spectrum+of+Practice'),jdecode(''),'/12473.html','true',[],''],
	['PAGE','12536',jdecode('Contact'),jdecode(''),'/12536.html','true',[],''],
	['PAGE','12578',jdecode('Our+Team'),jdecode(''),'/12578.html','true',[],''],
	['PAGE','19101',jdecode('Our+Office'),jdecode(''),'/19101.html','true',[],''],
	['PAGE','36201',jdecode('Informations+for+Adults'),jdecode(''),'/36201/index.html','true',[ 
		['PAGE','19001',jdecode('Cholesterol'),jdecode(''),'/36201/19001.html','false',[],''],
		['PAGE','37322',jdecode('Diabetes'),jdecode(''),'/36201/37322.html','false',[],''],
		['PAGE','37343',jdecode('Colorectal'),jdecode(''),'/36201/37343.html','false',[],''],
		['PAGE','37364',jdecode('Breast+Cancer'),jdecode(''),'/36201/37364.html','false',[],''],
		['PAGE','37385',jdecode('Prostate'),jdecode(''),'/36201/37385.html','false',[],''],
		['PAGE','37406',jdecode('Testicular'),jdecode(''),'/36201/37406.html','false',[],''],
		['PAGE','37427',jdecode('Blood+Tests'),jdecode(''),'/36201/37427.html','false',[],'']
	],''],
	['PAGE','36222',jdecode('Informations+for+Parents'),jdecode(''),'/36222/index.html','true',[ 
		['PAGE','37448',jdecode('Vaccination+%26+Bloodwork+Schedule'),jdecode(''),'/36222/37448.html','false',[],''],
		['PAGE','37469',jdecode('Car+Seat+Safety'),jdecode(''),'/36222/37469.html','false',[],''],
		['PAGE','37490',jdecode('Medication+Dosing'),jdecode(''),'/36222/37490.html','false',[],''],
		['PAGE','37511',jdecode('Feeding+Your+Baby'),jdecode(''),'/36222/37511.html','false',[],''],
		['PAGE','37532',jdecode('Your+Newborn+-+Health%2C+Care+and+Development'),jdecode(''),'/36222/37532.html','false',[],''],
		['PAGE','41901',jdecode('New+Parent'),jdecode(''),'/36222/41901.html','false',[],''],
		['PAGE','41922',jdecode('Development'),jdecode(''),'/36222/41922.html','false',[],''],
		['PAGE','41943',jdecode('Umbilical+Care'),jdecode(''),'/36222/41943.html','false',[],''],
		['PAGE','41964',jdecode('Circumcision+Care'),jdecode(''),'/36222/41964.html','false',[],''],
		['PAGE','41985',jdecode('Jaundice'),jdecode(''),'/36222/41985.html','false',[],''],
		['PAGE','42006',jdecode('Crying'),jdecode(''),'/36222/42006.html','false',[],''],
		['PAGE','42027',jdecode('Safety+%26+comfort'),jdecode(''),'/36222/42027.html','false',[],''],
		['PAGE','42048',jdecode('Bath+Time'),jdecode(''),'/36222/42048.html','false',[],''],
		['PAGE','42069',jdecode('Diapers'),jdecode(''),'/36222/42069.html','false',[],''],
		['PAGE','42090',jdecode('General+Feeding+Info'),jdecode(''),'/36222/42090.html','false',[],''],
		['PAGE','42111',jdecode('Breastfeeding'),jdecode(''),'/36222/42111.html','false',[],''],
		['PAGE','42132',jdecode('Supplementing'),jdecode(''),'/36222/42132.html','false',[],''],
		['PAGE','42153',jdecode('Bottle+feeding'),jdecode(''),'/36222/42153.html','false',[],''],
		['PAGE','42174',jdecode('Reduction+of+SIDS'),jdecode(''),'/36222/42174.html','false',[],''],
		['PAGE','42195',jdecode('Newborn+Screens'),jdecode(''),'/36222/42195.html','false',[],''],
		['PAGE','42216',jdecode('Common+Concerns'),jdecode(''),'/36222/42216.html','false',[],'']
	],''],
	['PAGE','53201',jdecode('Well+visit+packets'),jdecode(''),'/53201.html','false',[],''],
	['PAGE','18201',jdecode('Office+Updates'),jdecode(''),'/18201.html','true',[],''],
	['PAGE','15301',jdecode('PASE+in+the+Community'),jdecode(''),'/15301.html','true',[],'']];
var siteelementCount=39;
theSitetree.topTemplateName='Porthole';
theSitetree.paletteFamily='064B91';
theSitetree.keyvisualId='6704';
theSitetree.keyvisualName='kv_6704.jpg';
theSitetree.fontsetId='11200';
theSitetree.graphicsetId='12013';
theSitetree.contentColor='215991';
theSitetree.contentBGColor='E9F3FF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Porthole',
				paletteFamily: 	'064B91',
				keyvisualId: 	'6704',
				keyvisualName: 	'kv_6704.jpg',
				fontsetId: 		'11200',
				graphicsetId: 	'12013',
				contentColor: 	'215991',
				contentBGColor: 'E9F3FF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: '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',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12401',
internalId:  '',
customField: '20100402-130206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12452',
internalId:  '',
customField: '20100401-123531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12473',
internalId:  '',
customField: '20100401-123744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12578',
internalId:  '',
customField: '20100430-122934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12536',
internalId:  '',
customField: '20100401-130507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19101',
internalId:  '',
customField: '20090621-215345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18201',
internalId:  '',
customField: '20100402-141731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20080907-212240'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '12401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '12401',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19001',
internalId:  '',
customField: '20091111-152955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36201',
internalId:  '',
customField: '20091106-173402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37322',
internalId:  '',
customField: '20091111-153041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37343',
internalId:  '',
customField: '20091111-153344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37364',
internalId:  '',
customField: '20091111-153421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37385',
internalId:  '',
customField: '20091111-154349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37406',
internalId:  '',
customField: '20091111-154437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37427',
internalId:  '',
customField: '20091111-154514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36222',
internalId:  '',
customField: '20091209-171629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37532',
internalId:  '',
customField: '20091111-155042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41901',
internalId:  '',
customField: '20091111-155143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41922',
internalId:  '',
customField: '20091111-155221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41943',
internalId:  '',
customField: '20091111-155257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41964',
internalId:  '',
customField: '20091111-155356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41985',
internalId:  '',
customField: '20091111-155426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42006',
internalId:  '',
customField: '20091111-155504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42027',
internalId:  '',
customField: '20091111-155614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42048',
internalId:  '',
customField: '20091111-155715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42069',
internalId:  '',
customField: '20091111-155741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42090',
internalId:  '',
customField: '20091111-155848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42111',
internalId:  '',
customField: '20091111-155943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42132',
internalId:  '',
customField: '20091111-160015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42153',
internalId:  '',
customField: '20091111-160046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42174',
internalId:  '',
customField: '20091111-160126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42195',
internalId:  '',
customField: '20091111-160301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42216',
internalId:  '',
customField: '20091111-160356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37511',
internalId:  '',
customField: '20091111-155008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37490',
internalId:  '',
customField: '20091111-154930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37469',
internalId:  '',
customField: '20091111-154843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37448',
internalId:  '',
customField: '20091111-154807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53201',
internalId:  '',
customField: '20091209-171450'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0INEWID';
var companyName   = 'PASE+Healthcare%2C+PC';
var htmlTitle	  = 'PASE+Healthcare%2C+PC';
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;
};

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) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	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();
};
