/* [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','93',jdecode('Home'),jdecode(''),'/93.html','true',[],'',''],
	['PAGE','41301',jdecode('Appointment+Req...'),jdecode(''),'/41301.html','true',[],'',''],
	['PAGE','42401',jdecode('Newsletter+Sign+Up'),jdecode(''),'/42401.html','true',[],'',''],
	['PAGE','42422',jdecode('Free+Reports'),jdecode(''),'/42422/index.html','true',[ 
		['PAGE','74501',jdecode('Back+Pain+Report'),jdecode(''),'/42422/74501.html','true',[],'',''],
		['PAGE','74522',jdecode('Neck+Pain+Report'),jdecode(''),'/42422/74522.html','true',[],'',''],
		['PAGE','74543',jdecode('Carpal+Tunnel+Report'),jdecode(''),'/42422/74543.html','true',[],'',''],
		['PAGE','74564',jdecode('Headache+Report'),jdecode(''),'/42422/74564.html','true',[],'','']
	],'',''],
	['PAGE','75',jdecode('About+Us'),jdecode(''),'/75/index.html','true',[ 
		['PAGE','11522',jdecode('Meet+The+Doctor'),jdecode(''),'/75/11522.html','true',[],'',''],
		['PAGE','49001',jdecode('Testimonials'),jdecode(''),'/75/49001.html','true',[],'',''],
		['PAGE','55201',jdecode('Celebrity+Testimonials'),jdecode(''),'/75/55201.html','true',[],'',''],
		['PAGE','11543',jdecode('Our+Mission'),jdecode(''),'/75/11543.html','true',[],'',''],
		['PAGE','51901',jdecode('Our+Office'),jdecode(''),'/75/51901.html','true',[],'','']
	],'',''],
	['PAGE','51101',jdecode('Massage+Therapy+'),jdecode(''),'/51101.html','false',[],'',''],
	['PAGE','150',jdecode('Contact'),jdecode(''),'/150.html','true',[],'',''],
	['PAGE','36301',jdecode('Ask+The+Doctor%3F'),jdecode(''),'/36301.html','true',[],'',''],
	['PAGE','1421',jdecode('Directions'),jdecode(''),'/1421.html','true',[],'',''],
	['PAGE','4686',jdecode('Office+Hours'),jdecode(''),'/4686.html','true',[],'',''],
	['PAGE','11564',jdecode('Range+of+Practice'),jdecode(''),'/11564/index.html','true',[ 
		['PAGE','55901',jdecode('Progressive+Functional+Rehab'),jdecode(''),'/11564/55901.html','true',[],'','']
	],'',''],
	['PAGE','41322',jdecode('Media+Album'),jdecode(''),'/41322.html','true',[],'',''],
	['PAGE','23701',jdecode('FAQ%26%23x27%3BS'),jdecode(''),'/23701.html','true',[],'',''],
	['PAGE','11648',jdecode('Interesting+Links'),jdecode(''),'/11648.html','true',[],'',''],
	['PAGE','24301',jdecode('Consultation+Offer'),jdecode(''),'/24301.html','true',[],'',''],
	['PAGE','38001',jdecode('Health+Blog'),jdecode(''),'/38001.html','true',[],'',''],
	['PAGE','38022',jdecode('Patient+Forms'),jdecode(''),'/38022.html','true',[],'',''],
	['PAGE','40801',jdecode('Affiliations'),jdecode(''),'/40801.html','true',[],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Disco';
theSitetree.paletteFamily='3D5465';
theSitetree.keyvisualId='4613';
theSitetree.keyvisualName='fitness.jpg';
theSitetree.fontsetId='307';
theSitetree.graphicsetId='364';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3D5465';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Disco',
				paletteFamily: 	'3D5465',
				keyvisualId: 	'4613',
				keyvisualName: 	'fitness.jpg',
				fontsetId: 		'307',
				graphicsetId: 	'364',
				contentColor: 	'FFFFFF',
				contentBGColor: '3D5465',
				a_color: 		'3D5465',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '1421',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '93',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11522',
internalId:  '',
customField: '20100427-174450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75',
internalId:  '',
customField: '20100427-230141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36301',
internalId:  '',
customField: '20100517-154725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93',
internalId:  '',
customField: '20100618-114041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11543',
internalId:  '',
customField: '20100225-213541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150',
internalId:  '',
customField: '20100517-154712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1421',
internalId:  '',
customField: '20100427-230629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4686',
internalId:  '',
customField: '20100225-213802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11564',
internalId:  '',
customField: '20100225-123259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23701',
internalId:  '',
customField: '20100517-155341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11648',
internalId:  '',
customField: '20100225-221023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74522',
internalId:  '',
customField: '20100618-114706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74543',
internalId:  '',
customField: '20100618-114833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24301',
internalId:  '',
customField: '20100427-185235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74501',
internalId:  '',
customField: '20100618-114739'
};
webappMappings['7050']=webappMappings['7050-1562']={
webappId:    '7050',
documentId:  '38001',
internalId:  '1562',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38022',
internalId:  '',
customField: '20100427-185732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38001',
internalId:  '',
customField: '20100427-185649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40801',
internalId:  '',
customField: '20091206-200959'
};
webappMappings['7060']=webappMappings['7060-0bc72934d6ecd31e4d19759ae7bbaad9']={
webappId:    '7060',
documentId:  '41322',
internalId:  '0bc72934d6ecd31e4d19759ae7bbaad9',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41301',
internalId:  '',
customField: '20100427-225525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41322',
internalId:  '',
customField: '20100119-235926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42401',
internalId:  '',
customField: '20100427-223648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42422',
internalId:  '',
customField: '20100517-152347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49001',
internalId:  '',
customField: '20100517-154533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51101',
internalId:  '',
customField: '20091208-154103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51901',
internalId:  '',
customField: '20100427-174827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55201',
internalId:  '',
customField: '20091217-234120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55901',
internalId:  '',
customField: '20100225-220335'
};
webappMappings['7008']=webappMappings['7008-7768']={
webappId:    '7008',
documentId:  '42401',
internalId:  '7768',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74564',
internalId:  '',
customField: '20100427-203424'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INXST4';
var companyName   = '';
var htmlTitle	  = 'Rivano+Chiropractic+Sports+%26+Family+Care+-+Chiropractor+Florham+Park';
var metaKeywords  = 'Chiropractor+Florham+Park%2C+Florham+Park+Chiropractor%2C+Chiropractic+Florham+Park%2C+Florham+Park+Chiropractic%2C+NJ%2C+07932%2C+Morris+County%2C+973-845-6282%2C+Sports+Chiropractor%2C+Madison+Chiropractor%2C+Chatham+Chiropractor%2C+East+Hanover+Chiropractor%2C+Morristown+Chiropractor%2C+Morris+Plains+Chiropractor%2C+chiropractor+in+florham+park%2C+chiropractors%2C+back+pain%2C+neck+pain%2C+pain+relief%2C+lower+back+pain%2C+upper+back+pain%2C+headache%2C+shoulder+pain%2C+elbow+pain%2C+carpal+tunnel%2C++knee+pain%2C+foot+pain%2C+nutritionist%2C+sciatica%2C+sciatic+pain+relief%2C+fibromyalgia+specialist%2C+Florham+Park+Back+Pain+Specialist%2C+Florham+Park+Neck+Pain+Specialist%2C+Florham+Park+Carpal+Tunnel+Specialist%2C+Florham+Park+Shoulder+Specialist%2C+back+pain+specialist%2C+neck+pain+specialist%2C+headache+specialist%2C+carpal+tunnel+specialsit%2C+knee+pain+specialist%2C+cold+laser+therapy+florham+park';
var metaContents  = 'The+Rivano+Chiropractic+Health+Center%2C+LLC+practice+is+equipped+with+all+the+tools+necessary+to+provide+you+with+the+absolute+best+chiropractic+care+possible.+Dr.+Rivano+is+rated+the+best+Florham+Park+Chiropractor+by+his+patients+and+has+treated+many+patient+conditions+ranging+from+acute+and+chronic+pain%3B+sports+related+overuse+injuries%2C+headaches%2C+low+back+pain%2C+carpal+tunnel+syndrome%2C+fibromyalgia%2C+sciatica%2C+shoulder+impingements%2C+and+neck+pain+as+well+as+herniated+discs.+He+is+Florham+Park%27s+back+pain+specialist%2C+neck+pain+specialist%2C+sports+chiropractic+specialist%2C+and+headache+specialist+providing+patients+with+immediate+relief+of+their+condition.';
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();
};
