/* [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 POS_TARGET=8;
var theSitetree=[ 
	['PAGE','401',jdecode('Home'),jdecode(''), jdecode('%2F401%2Findex.html'), 'true',[ 
		['PAGE','5001',jdecode('Map'),jdecode(''), jdecode('%2F401%2F5001.html'), 'true',[],'','']
	],'',''],
	['PAGE','253616',jdecode('Philosophy'),jdecode(''), jdecode('%2F253616.html'), 'true',[],'',''],
	['PAGE','10701',jdecode('About+Dolphin'),jdecode(''), jdecode('%2F10701.html'), 'true',[],'',''],
	['PAGE','452',jdecode('About+the+Doctor'),jdecode(''), jdecode('%2F452%2Findex.html'), 'true',[ 
		['PAGE','25744',jdecode('Outdoor+Events'),jdecode(''), jdecode('%2F452%2F25744.html'), 'true',[],'','']
	],'',''],
	['PAGE','25648',jdecode('Faculty'),jdecode(''), jdecode('%2F25648.html'), 'true',[],'',''],
	['PAGE','17001',jdecode('Services'),jdecode(''), jdecode('%2F17001.html'), 'true',[],'',''],
	['PAGE','21801',jdecode('Lifestyle+Education'),jdecode(''), jdecode('%2F21801%2Findex.html'), 'true',[ 
		['PAGE','21822',jdecode('Boot+Camp'),jdecode(''), jdecode('%2F21801%2F21822.html'), 'true',[],'','']
	],'',''],
	['PAGE','473',jdecode('Education+Calender'),jdecode(''), jdecode('%2F473.html'), 'true',[],'',''],
	['PAGE','26470',jdecode('Raw+Vegan+Food'),jdecode(''), jdecode('%2F26470.html'), 'true',[],'',''],
	['PAGE','121922',jdecode('Recipes'),jdecode(''), jdecode('%2F121922%2Findex.html'), 'false',[ 
		['PAGE','161501',jdecode('Breakfasts'),jdecode(''), jdecode('%2F121922%2F161501.html'), 'true',[],'',''],
		['PAGE','173101',jdecode('Cooked'),jdecode(''), jdecode('%2F121922%2F173101.html'), 'true',[],'',''],
		['PAGE','123801',jdecode('Desserts'),jdecode(''), jdecode('%2F121922%2F123801.html'), 'true',[],'',''],
		['PAGE','128901',jdecode('Green+Smoothies'),jdecode(''), jdecode('%2F121922%2F128901.html'), 'true',[],'',''],
		['PAGE','170001',jdecode('Hors+D%26%23x27%3Boeuvres'),jdecode(''), jdecode('%2F121922%2F170001.html'), 'true',[],'',''],
		['PAGE','174001',jdecode('Juices'),jdecode(''), jdecode('%2F121922%2F174001.html'), 'true',[],'',''],
		['PAGE','123822',jdecode('Main+Dishes'),jdecode(''), jdecode('%2F121922%2F123822.html'), 'true',[],'',''],
		['PAGE','154401',jdecode('Salads'),jdecode(''), jdecode('%2F121922%2F154401.html'), 'true',[],'',''],
		['PAGE','255016',jdecode('Shakes'),jdecode(''), jdecode('%2F121922%2F255016.html'), 'true',[],'',''],
		['PAGE','268916',jdecode('Soups'),jdecode(''), jdecode('%2F121922%2F268916.html'), 'true',[],'','']
	],'',''],
	['PAGE','155001',jdecode('Before+%26+After'),jdecode(''), jdecode('%2F155001.html'), 'true',[],'',''],
	['PAGE','83601',jdecode('Media'),jdecode(''), jdecode('%2F83601.html'), 'false',[],'',''],
	['PAGE','536',jdecode('Book+Review'),jdecode(''), jdecode('%2F536.html'), 'true',[],'',''],
	['PAGE','183111',jdecode('Downloads'),jdecode(''), jdecode('%2F183111.html'), 'true',[],'',''],
	['PAGE','6501',jdecode('Store'),jdecode(''), jdecode('%2F6501.html'), 'true',[],'',''],
	['PAGE','494',jdecode('Office+Hours'),jdecode(''), jdecode('%2F494.html'), 'true',[],'',''],
	['PAGE','295316',jdecode('Appointment'),jdecode(''), jdecode('%2F295316.html'), 'true',[],'',''],
	['PAGE','599',jdecode('Contact+Us'),jdecode(''), jdecode('%2F599.html'), 'true',[],'',''],
	['PAGE','29401',jdecode('FAQ'),jdecode(''), jdecode('%2F29401.html'), 'true',[],'',''],
	['PAGE','188511',jdecode('Forms'),jdecode(''), jdecode('%2F188511.html'), 'true',[],'',''],
	['PAGE','14001',jdecode('Links'),jdecode(''), jdecode('%2F14001.html'), 'true',[],'','']];
var siteelementCount=34;
theSitetree.topTemplateName='Amaze';
theSitetree.paletteFamily='3F7177';
theSitetree.keyvisualId='2428';
theSitetree.keyvisualName='salat.jpg';
theSitetree.fontsetId='397';
theSitetree.graphicsetId='447';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3F7177';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'valueweb',
  product: 'WSCSYSSSSLYTCR7V'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Amaze',
				paletteFamily: 	'3F7177',
				keyvisualId: 	'2428',
				keyvisualName: 	'salat.jpg',
				fontsetId: 		'397',
				graphicsetId: 	'447',
				contentColor: 	'FFFFFF',
				contentBGColor: '3F7177',
				a_color: 		'3F7177',
				b_color: 		'2F5358',
				c_color: 		'3268E2',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '5001',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['1501']=webappMappings['1501-2170895']={
webappId:    '1501',
documentId:  '401',
internalId:  '2170895',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20111009-125231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20110930-172340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20110705-224412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20110527-120509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25648',
internalId:  '',
customField: '20110612-212808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17001',
internalId:  '',
customField: '20111030-154935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20111030-154416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6501',
internalId:  '',
customField: '20110814-154210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21801',
internalId:  '',
customField: '20110612-220742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174001',
internalId:  '',
customField: '20110131-183038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '268916',
internalId:  '',
customField: '20101018-175438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21822',
internalId:  '',
customField: '20111113-112553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20111229-202738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26470',
internalId:  '',
customField: '20110527-121657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25744',
internalId:  '',
customField: '20110814-163337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83601',
internalId:  '',
customField: '20100317-092221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '295316',
internalId:  '',
customField: '20110727-132639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20110713-133810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '255016',
internalId:  '',
customField: '20100519-181441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183111',
internalId:  '',
customField: '20110610-211317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29401',
internalId:  '',
customField: '20101110-235929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '599',
internalId:  '',
customField: '20111113-124312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14001',
internalId:  '',
customField: '20110715-214101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121922',
internalId:  '',
customField: '20101117-171520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123801',
internalId:  '',
customField: '20110913-091901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123822',
internalId:  '',
customField: '20110307-181243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128901',
internalId:  '',
customField: '20110913-091653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188511',
internalId:  '',
customField: '20110727-220439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161501',
internalId:  '',
customField: '20100323-102535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170001',
internalId:  '',
customField: '20110307-181437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '173101',
internalId:  '',
customField: '20101115-190423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154401',
internalId:  '',
customField: '20100928-214802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155001',
internalId:  '',
customField: '20110826-214828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '253616',
internalId:  '',
customField: '20110227-233602'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INXSP4';
var companyName   = 'Dolphin+Health+%26+Education';
var htmlTitle	  = 'Dolphin+Health+and+Education';
var metaKeywords  = 'Dolphin+Health++Education+is+a+1300+sq.+ft.+health+wellness+lifestyle+center%2C+helping+people+experience+vibrant+health+by+enabling+the+self-healing+mechanisms+of+the+God-made+human+body%2C+Miven+Donato%2C+PT%2C+DC%2C+MOMT%2C+Health+Minister%2C+Hallelujah+Acres%2C+Weight+Loss';
var metaContents  = 'Dolphin+Health++Education+is+a+1300+sq.+ft.+health+wellness+lifestyle+center%2C+helping+people+experience+vibrant+health+by+enabling+the+self-healing+mechanisms+of+the+God-made+human+body%2C+Miven+Donato%2C+PT%2C+DC%2C+MOMT%2C+Health+Minister%2C+Hallelujah+Acres%2C+maximum+weight+loss+program';
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();
};

