/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('Our+Practitioners'),jdecode(''),'/452.html','true',[],''],
	['PAGE','473',jdecode('Office+Locations'),jdecode(''),'/473.html','true',[],''],
	['PAGE','515',jdecode('Contact+Us'),jdecode(''),'/515.html','true',[],''],
	['PAGE','24001',jdecode('Office+Policies'),jdecode(''),'/24001.html','true',[],''],
	['PAGE','494',jdecode('Parent+Information'),jdecode(''),'/494/index.html','true',[ 
		['PAGE','21901',jdecode('Car+Seat+Safety'),jdecode(''),'/494/21901.html','true',[],''],
		['PAGE','18401',jdecode('Childproofing'),jdecode(''),'/494/18401.html','true',[],''],
		['PAGE','22501',jdecode('Colds'),jdecode(''),'/494/22501.html','true',[],''],
		['PAGE','40601',jdecode('Cholesterol'),jdecode(''),'/494/40601.html','true',[],''],
		['PAGE','20001',jdecode('Diaper+Rash'),jdecode(''),'/494/20001.html','true',[],''],
		['PAGE','15301',jdecode('Diarrhea'),jdecode(''),'/494/15301.html','true',[],''],
		['PAGE','22522',jdecode('Ear+Pain'),jdecode(''),'/494/22522.html','true',[],''],
		['PAGE','18422',jdecode('Fever'),jdecode(''),'/494/18422.html','true',[],''],
		['PAGE','20701',jdecode('Healhy+Habits'),jdecode(''),'/494/20701.html','true',[],''],
		['PAGE','30401',jdecode('Medication+Dosing'),jdecode(''),'/494/30401.html','true',[],''],
		['PAGE','20022',jdecode('MRSA+Skin+Infections'),jdecode(''),'/494/20022.html','true',[],''],
		['PAGE','40201',jdecode('Summer+Safety'),jdecode(''),'/494/40201.html','true',[],''],
		['PAGE','16001',jdecode('Toilet+Training'),jdecode(''),'/494/16001.html','true',[],''],
		['PAGE','12401',jdecode('Vaccines'),jdecode(''),'/494/12401.html','true',[],''],
		['PAGE','12422',jdecode('Vomiting'),jdecode(''),'/494/12422.html','true',[],''],
		['PAGE','18801',jdecode('Weight+Tips'),jdecode(''),'/494/18801.html','true',[],'']
	],''],
	['PAGE','536',jdecode('Interesting+Links'),jdecode(''),'/536.html','true',[],''],
	['PAGE','42901',jdecode('Newsletter'),jdecode(''),'/42901.html','true',[],''],
	['PAGE','44001',jdecode('Seasonal+Influenza'),jdecode(''),'/44001.html','true',[],''],
	['PAGE','49001',jdecode('H1N1+Influenza'),jdecode(''),'/49001.html','true',[],'']];
var siteelementCount=26;
theSitetree.topTemplateName='Borders';
theSitetree.paletteFamily='C9DFEE';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10571';
theSitetree.graphicsetId='10771';
theSitetree.contentColor='692643';
theSitetree.contentBGColor='F0F2F4';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Borders',
				paletteFamily: 	'C9DFEE',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10571',
				graphicsetId: 	'10771',
				contentColor: 	'692643',
				contentBGColor: 'F0F2F4',
				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: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20080424-074248'
};
webappMappings['7008']=webappMappings['7008-408']={
webappId:    '7008',
documentId:  '515',
internalId:  '408',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40201',
internalId:  '',
customField: '20090713-175715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20080709-212900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20080212-141150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20080424-075557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24001',
internalId:  '',
customField: '20080425-094955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20090613-075701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21901',
internalId:  '',
customField: '20080424-111210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20080406-193757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22501',
internalId:  '',
customField: '20090926-130901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20001',
internalId:  '',
customField: '20080301-114300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20080424-081006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22522',
internalId:  '',
customField: '20080424-081035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18422',
internalId:  '',
customField: '20080424-083211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20701',
internalId:  '',
customField: '20080424-075107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30401',
internalId:  '',
customField: '20080424-105745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20022',
internalId:  '',
customField: '20080424-083523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16001',
internalId:  '',
customField: '20080424-083634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12401',
internalId:  '',
customField: '20080424-083931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12422',
internalId:  '',
customField: '20080424-084049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18801',
internalId:  '',
customField: '20080406-195337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20100123-135533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42901',
internalId:  '',
customField: '20100130-051336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40601',
internalId:  '',
customField: '20090613-073831'
};
webappMappings['7008']=webappMappings['7008-491']={
webappId:    '7008',
documentId:  '42901',
internalId:  '491',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44001',
internalId:  '',
customField: '20100123-125842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49001',
internalId:  '',
customField: '20100123-125901'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'AAPLU0INLLPN';
var companyName   = 'East+Suburban+Pediatrics';
var htmlTitle	  = 'East+Suburban+Pediatrics';
var metaKeywords  = 'east+suburban+pediatrics%2C+pittsburgh%2C+monroeville%2C+murrysville%2C+pennsylvania%2C+irwin%2C+white+oak%2C+children%2C+hospital%2C+magee%2C+east%2C+suburban%2C+pediatrician%2C+pediatric%2C+huntington%2C+kensington%2C+forbes+hospital%2C+mckeesport%2C+debiasse%2C+keller%2C+trainer%2C+dingess%2C+geier++meta+name%3Dverify-v1+content%3Dr6MDSn%2FScdOaYx%2FqPtcoIvsyC2MMAHFKVNLcYerVSyg%3D+%2F';
var metaContents  = 'east+suburban+pediatrics%2C+pediatrician+pittsburgh%2C+pediatric+pittsburgh%2C+monroeville%2C+murrysville%2C+pennsylvania%2C+irwin%2C+white+oak%2C+children%2C+hospital%2C+magee%2C+east%2C+suburban%2C+pediatrician%2C+pediatric%2C+pediatrics%2C+huntington%2C+kensington%2C+forbes+hospital%2C+mckeesport%2C+debiasse%2C+keller%2C+trainer%2C+dingess%2C+geier++r6MDSn%2FScdOaYx%2FqPtcoIvsyC2MMAHFKVNLcYerVSyg%3D++meta+name%3Dverify-v1+content%3Dr6MDSn%2FScdOaYx%2FqPtcoIvsyC2MMAHFKVNLcYerVSyg%3D+%2F';
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();
};
