/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],''],
	['PAGE','24001',jdecode('About+us'),jdecode(''),'/24001.html','true',[],''],
	['PAGE','594',jdecode('Contact'),jdecode(''),'/594.html','true',[],''],
	['PAGE','6701',jdecode('How+to+find+us'),jdecode(''),'/6701.html','true',[],''],
	['PAGE','699',jdecode('Notice+of+Privacy+Practices'),jdecode(''),'/699.html','true',[],''],
	['PAGE','11101',jdecode('FAQ+about+acupuncture'),jdecode(''),'/11101.html','true',[],''],
	['PAGE','46443',jdecode('Some+facts+about+TCM'),jdecode(''),'/46443.html','true',[],''],
	['PAGE','48125',jdecode('Miscellaneous'),jdecode(''),'/48125.html','true',[],''],
	['PAGE','46669',jdecode('News'),jdecode(''),'/46669.html','true',[],''],
	['PAGE','5401',jdecode('Links'),jdecode(''),'/5401.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Angkor';
theSitetree.paletteFamily='C5A858';
theSitetree.keyvisualId='6854';
theSitetree.keyvisualName='kv_6854.jpg';
theSitetree.fontsetId='11212';
theSitetree.graphicsetId='12034';
theSitetree.contentColor='64511A';
theSitetree.contentBGColor='DABB67';
var theTemplate={
				name: 			'Angkor',
				paletteFamily: 	'C5A858',
				keyvisualId: 	'6854',
				keyvisualName: 	'kv_6854.jpg',
				fontsetId: 		'11212',
				graphicsetId: 	'12034',
				contentColor: 	'64511A',
				contentBGColor: 'DABB67',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'DABB67',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20091214-144402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24001',
internalId:  '',
customField: '20100104-204639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11101',
internalId:  '',
customField: '20091222-101242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20091121-090809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6701',
internalId:  '',
customField: '20091214-160031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '699',
internalId:  '',
customField: '20071119-174244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5401',
internalId:  '',
customField: '20071119-182415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46443',
internalId:  '',
customField: '20090108-130427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46669',
internalId:  '',
customField: '20100104-150820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48125',
internalId:  '',
customField: '20091221-191900'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INXX2O';
var companyName   = 'Chinese+Acupuncture+%26+Herbs';
var htmlTitle	  = 'Acupuncture%2C+Charleston+SC%2C+Dr.+Zhibo+Ding%2C+Chinese+Acupuncture+and+Herbs%2C+1954+Ashley+River+Rd%2C+Ste+L%2C+Charleston%2C+SC+29407';
var metaKeywords  = 'acupuncture%2C+Charleston%2C+herb%2C+Charleston+SC%2C+health%2C+holistic+health%2C+in+charleston+sc%2C+Charleston%2C+SC%2C+Charleston%2C+South+Carolina%2C+miscellaneous+keywords.+Dr.+Ding';
var metaContents  = 'Zhibo+Ding%2C+M.D.*+Acupuncturist+and+Herbologist+National+Board+Certified+SC+Medical+Board+Licensed+*Licensed+Acupuncture+Physician+in+China++Our+acupuncturist+Dr.+Ding+received+her+training+in+China.+She+has+undergone+five+years+of+study+at+the+Changchun+College+of+Traditional+Chinese+Medicine+%28TCM%29+and+five+years+of+residential+training+in+the+Department+of+Acupuncture+at+the+Clinical+Hospital+of+Jilin+Institute+of+TCM.+After+her+basic+training%2C+Dr.+Ding+was+appointed+an+attending+acupuncture+doctor+and+worked+in+the+Department+of+TCM+at+the+third+hospital+of+Beijing+Medical+University+for+five+years.+During+her+practice+in+China%2C+Dr.+Ding+built+up+a+solid+foundation+of+TCM+and+treated+tens+of+thousands+of+patients.++Dr.+Ding+came+to+the+United+State+with+her+family+in+1995.+In+order+to+continue+to+practice+acupuncture+and+see+how+medicine+is+practiced+here+in+the+United+States%2C+Dr.+Ding+first+participated+in+eight+months+of+clinical+observation+in+the+Department+of+Physical+Medicine+in+the+Medical+University+of+South+Carolina.+Then+she+joined+the+Charleston+Pain+and+Rehabilitation+Center+and+worked+as+an+independent+acupuncturist+for+seven+years.++In+2003%2C+Dr.+Ding+started+Chinese+Acupuncture++Herbs%2C+Inc.+and+has+treated+patients+in+the+Charleston+area+of+South+Carolina+to+this+day.++During+her+twelve+years+practice+as+a+Board+certified+acupuncturist+and+Chinese+herbologist+here+in+Charleston+Dr.+Ding+has+used+her+skills+to+help+a+wide+variety+of+patients.+She+has+treated+patients+as+young+as+6+to+as+old+as+96+with+a+wide+spectrum+of+diseases+including+painful%2C+somatic+and+psychosomatic+disorders.+Patients+are+benefiting+from+the+TCM+with+Dr.+Ding%EF%BF%BD%EF%BF%BD%EF%BF%BDs+practice.+++Welcome+To+Our+Website++Traditional+Chinese+Medicine+%28TCM%29+has+existed+for+more+than+three+thousands+years+and+has+brought+health+benefits+to+generations+of+Chinese+people.+In+today%EF%BF%BD%EF%BF%BD%EF%BF%BDs+age+of+advanced+technology%2C+the+Chinese+still+rely+on+this+traditional+medicine+for+healthcare%2C+which+often+supplements+Western+Medicine+in+the+Chinese+medical+system.+Now%2C+people+over+the+whole+world+have+begun+to+become+interested+in+TCM%2C+namely+the+practice+of+acupuncture+and+Chinese+herbal+medicine.++The+practice+of+acupuncture+uses+the+body%EF%BF%BD%EF%BF%BD%EF%BF%BDs+natural+healing+systems+to+promote+well-being+with+the+benefit+of+having+no+side+effects.++At+Chinese+Acupuncture++Herbs%2C+we+offer+the+finest+acupuncture+treatment+in+Charleston.+Our+acupuncturist+Dr.+Ding+is+trained+in+China+and+has+practiced+acupuncture+for+22+years.+For+more+about+her%2C+please+see+About+us.++Chinese+Acupuncture++Herbs+is+located+off+of+the+intersection+of+Savage+Road+and+Ashley+Road+behind+the+Rite+Aid+pharmacy+in+West+Ashley.+Come+give+us+a+visit+or+call+us+to+learn+what+acupuncture+can+do+for+your+health+at+any+time+between+9AM+to+5PM+on+Monday+through+Friday+at+%28843%29763-6788.+For+more+information+please+see+FAQ+about+acupuncture.++What+Is+Acupuncture%3F++Acupuncture+is+the+insertion+of+very+fine+needles+on+the+body%EF%BF%BD%EF%BF%BD%EF%BF%BDs+surface+in+order+to+influence+the+functioning+of+the+body.+It+is+one+of+the+two+major+components+of+traditional+Chinese+medicine%2C+a+comprehensive+medicine+system+with+a+continuous+history+of+over+3000+years.+The+other+major+component+is+herbal+medicine.++How+Does+Acupuncture+Work%3F++The+basic+model+in+traditional+Chinese+medicine+is+based+on+the+concept+of+yin%2Fyang%2C+zang%2Ffu+organs+and+meridians.+Yin+and+yang+are+universal+laws+of+the+natural+world.+They+hold+that+all+things+have+two+opposite+aspects.+The+zang+and+fu+organs+are+the+internal+organs+of+the+body.+Meridians+are+special+pathways+on+the+body+and+are+associated+with+the+zang+and+fu+organs.++It+is+theorized+that+the+body+has+an+energy+force+running+through+the+meridians.+This+energy+force+is+known+as+Qi.+Qi+consists+of+all+essential+life+activities+which+include+the+spiritual%2C+emotional%2C+mental+and+physical+aspects+of+life.++According+to+traditional+Chinese+medicine%2C+a+person%EF%BF%BD%EF%BF%BD%EF%BF%BDs+health+is+influenced+by+the+flow+of+Qi+in+the+body.+If+the+flow+of+Qi+is+insufficient%2C+interrupted%2C+excessive+or+unbalanced%2C+yin%2Fyang+and+the+zang%2Ffu+organs+become+unbalanced+which+may+result+in+disorders+or+diseases.+Special+locations+with+specific+functions+along+the+meridians+are+called+acupuncture+points.+Insertion+of+needles+at+a+certain+set+of+acupuncture+points+using+different+skills+has+an+influence+of+the+flow+of+Qi%2C+and+also+on+the+internal+organs.+This+procedure+may+maintain+or+restore+the+balance+of+Qi%2C+and+aid+in+the+prevention+or+cure+of+diseases.++How+Does+The+Acupuncturist+Make+A+Diagnosis%3F++The+principle+of+diagnosis+in+traditional+Chinese+medicine+is+to+determine+the+cause+of+the+imbalance+of+yin%2Fyang+and+the+zang%2Ffu+organs+by+asking+the+medical+history%2C+checking+the+wrist+pulse%2C+and+observing+the+tongue+and+other+signs+and+symptoms+of+the+patient.+A+treatment+plan+is+then+formulated+to+induce+a+more+balanced+state+of+heath.++What+Diseases+May+Be+Treated+With+Acupuncture%3F++++++*+Painful+Disorders%3A+Headache%2C+Migraine%2C+Trigeminal+neuralgia%2C+Cervical+spondylosis%2C+frozen+shoulder%2C+Tennis+elbow%2C+Carpel+tunnel+syndrome%2C+Intercostals+neuralgia%2C+Low+back+pain%2C+Sciatica%2C+Muscle+spasms%2C+Various+forms+of+tendonitis%2C+Fibromyalgia%2C+Arthritis%2C+Dysmenorrhea.++++++*+Somatic+Disorders%3A+Gastritis%2C+Peptic+ulcers%2C+Constipation%2C+Irritable+bowel+syndrome%2C+Diabetes%2C+Common+cold%2C+Sore+throat%2C+Sinusitis%2C+Bronchial+asthma%2C+Enuresis%2C+Urinary+tract+infection%2C+Menstrual+problems%2C+Bells+palsy%2C+Stroke+rehabilitation%2C+Smoking+cessation%2C+Acne%2C+Shingles%2C+Allergic+reactions.++++++*+Psychosomatic+disorders%3A+Insomnia%2C+Fatigue%2C+Anxiety+disorders%2C+Depression.++Is+There+A+Possibility+Of+Infection+Or+Any+Pain+Involved+In+Acupuncture%3F++The+needles+for+acupuncture+are+made+from+stainless+steel+which+are+sterile+and+disposable.+They+can+not+be+the+cause+of+infection.+They+are+very+thin+and+solid.+Most+patients+feel+no+pain+and+some+feel+only+minimal+pain.++Is+Acupuncture+Covered+By+Insurance%3F++Increasingly%2C+insurance+companies+are+starting+to+cover+acupuncture+cost+such+as+the+BlueCrossBlueShield+Federal+Employee+Program+and+The+Mail+Handlers+Benefit+Plan.+You+may+want+to+check+with+your+insurance+company.++Chinese+Acupuncture++Herbs+1954+Ashley+River+Road%2C+Suite+L+Charleston%2C+SC+29407++%28843%29763-6788+FAX%3A+%28843%29763-6755+www.healthcarecah.com';
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();
};
