/* [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','701',jdecode('Home'),jdecode(''),'/701/index.html','true',[ 
		['PAGE','752',jdecode('Map+and+Directions'),jdecode(''),'/701/752.html','true',[],'']
	],''],
	['PAGE','836',jdecode('The+Practice'),jdecode(''),'/836.html','true',[],''],
	['PAGE','773',jdecode('The+Physicians'),jdecode(''),'/773/index.html','true',[ 
		['PAGE','19699',jdecode('In+Memory+of+Dr.+Chiriboga'),jdecode(''),'/773/19699.html','true',[],'']
	],''],
	['PAGE','24701',jdecode('The+Team'),jdecode(''),'/24701.html','true',[],''],
	['PAGE','24722',jdecode('Your+Advantages'),jdecode(''),'/24722.html','true',[],''],
	['PAGE','15701',jdecode('Rejuvenate+at+PPC'),jdecode(''),'/15701/index.html','true',[ 
		['PAGE','19766',jdecode('Weight+Management'),jdecode(''),'/15701/19766.html','true',[],''],
		['PAGE','19775',jdecode('BMI+BODY+MASS+INDEX'),jdecode(''),'/15701/19775.html','true',[],''],
		['PAGE','19887',jdecode('BMI+INDEX+TABLE'),jdecode(''),'/15701/19887.html','true',[],'']
	],''],
	['PAGE','24743',jdecode('Useful+Infomation'),jdecode(''),'/24743/index.html','true',[ 
		['PAGE','983',jdecode('Interesting+links'),jdecode(''),'/24743/983.html','true',[],''],
		['PAGE','794',jdecode('Health+Screenings'),jdecode(''),'/24743/794.html','true',[],'']
	],''],
	['PAGE','920',jdecode('Contact+Us'),jdecode(''),'/920/index.html','true',[ 
		['PAGE','941',jdecode('Directory'),jdecode(''),'/920/941.html','true',[],''],
		['PAGE','962',jdecode('Employment'),jdecode(''),'/920/962.html','true',[],'']
	],''],
	['PAGE','16443',jdecode('Products'),jdecode(''),'/16443.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Layers';
theSitetree.paletteFamily='82B3CD';
theSitetree.keyvisualId='645';
theSitetree.keyvisualName='unterwegs.jpg';
theSitetree.fontsetId='133';
theSitetree.graphicsetId='148';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E6EAEF';
var theTemplate={
				name: 			'Layers',
				paletteFamily: 	'82B3CD',
				keyvisualId: 	'645',
				keyvisualName: 	'unterwegs.jpg',
				fontsetId: 		'133',
				graphicsetId: 	'148',
				contentColor: 	'000000',
				contentBGColor: 'E6EAEF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'006699',
				b_color: 		'CCCCCC',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '773',
internalId:  '',
customField: '20100301-140809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20100419-123745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20100226-104146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '794',
internalId:  '',
customField: '20070925-121442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15701',
internalId:  '',
customField: '20100301-143544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '836',
internalId:  '',
customField: '20100301-140309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '920',
internalId:  '',
customField: '20100301-145816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '941',
internalId:  '',
customField: '20100223-150702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '962',
internalId:  '',
customField: '20100223-154032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '983',
internalId:  '',
customField: '20071031-101337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16443',
internalId:  '',
customField: '20091207-125329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19699',
internalId:  '',
customField: '20100301-140726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19766',
internalId:  '',
customField: '20100301-145053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19775',
internalId:  '',
customField: '20100104-123901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19887',
internalId:  '',
customField: '20100104-134433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24722',
internalId:  '',
customField: '20100316-161314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24701',
internalId:  '',
customField: '20100301-141538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24743',
internalId:  '',
customField: '20100316-161215'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INEICT';
var companyName   = 'Personal+Physician+Care+P.A.';
var htmlTitle	  = 'Personal+Physician+Care';
var metaKeywords  = 'Dr.+David+Neuman%2C+Dr.+Roy+Cohen%2C+Dr.+Susan+Barish%2C+Dr.+Carlos+Chiriboga%2C+Dr.+Sydney+Abramson%2CInternal+Medicine%2Cinternal+medicine%2Cmedicine%2CMedinine%2Cwww.ppcare.net%2Cdoctor%2Cpersonal+phisician+care%2Cpersonal+doctor+care%2Chealth%2Cpregnancy%2Cmedical+research%2Cmedical+information%2Cprevention%2Cdisease%2Chealth+care%2Chealthcare%2Chealth+information%2Chealth+news%2Chealthcare+information%2Cdrug+information%2Ccancer%2Cdiabetes%2Cdepression%2Casthma%2Cmedical+library%2Ccholesterol%2Cherpes%2Cbipolar%2Cdiet%2Cweight+loss%2CDr.+David+Neuman%2C+Dr.+Roy+Cohen%2C+Dr.+Susan+Barish%2C+Dr.+Carlos+Chiriboga%2C+Dr.+Sydney+Abramson';
var metaContents  = 'Dr.+David+Neuman%2C+Dr.+Roy+Cohen%2C+Dr.+Susan+Barish%2C+Dr.+Carlos+Chiriboga%2C+Dr.+Sydney+Abramson%2CDr.+David+Neuman%2C+Dr.+Roy+Cohen%2C+Dr.+Susan+Barish%2C+Dr.+Carlos+Chiriboga%2C+Dr.+Sydney+Abramson%2CDr.+David+Neuman%2C+Dr.+Roy+Cohen%2C+Dr.+Susan+Barish%2C+Dr.+Carlos+Chiriboga%2C+Dr.+Sydney+Abramson%2CDr.+David+Neuman%2C+Dr.+Roy+Cohen%2C+Dr.+Susan+Barish%2C+Dr.+Carlos+Chiriboga%2C+Dr.+Sydney+Abramson%2CDr.+David+Neuman%2C+Dr.+Roy+Cohen%2C+Dr.+Susan+Barish%2C+Dr.+Carlos+Chiriboga%2C+Dr.+Sydney+Abramson%2CDr.+David+Neuman%2C+Dr.+Roy+Cohen%2C+Dr.+Susan+Barish%2C+Dr.+Carlos+Chiriboga%2C+Dr.+Sydney+Abramson%2CDr.+David+Neuman%2C+Dr.+Roy+Cohen%2C+Dr.+Susan+Barish%2C+Dr.+Carlos+Chiriboga%2C+Dr.+Sydney+Abramson%2CDr.+David+Neuman%2C+Dr.+Roy+Cohen%2C+Dr.+Susan+Barish%2C+Dr.+Carlos+Chiriboga%2C+Dr.+Sydney+Abramson%2CDr.+David+Neuman%2C+Dr.+Roy+Cohen%2C+Dr.+Susan+Barish%2C+Dr.+Carlos+Chiriboga%2C+Dr.+Sydney+Abramson%2CDr.+David+Neuman%2C+Dr.+Roy+Cohen%2C+Dr.+Susan+Barish%2C+Dr.+Carlos+Chiriboga%2C+Dr.+Sydney+Abramson%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) {
	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();
};
