/* [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','601',jdecode('Home'),jdecode(''),'/601.html','true',[],''],
	['PAGE','4801',jdecode('Meet+The+Doctors'),jdecode(''),'/4801.html','true',[],''],
	['PAGE','4822',jdecode('Services'),jdecode(''),'/4822/index.html','true',[ 
		['PAGE','24201',jdecode('Techniques+%26+Procedures'),jdecode(''),'/4822/24201.html','true',[],''],
		['PAGE','14001',jdecode('Orthotics'),jdecode(''),'/4822/14001.html','true',[],''],
		['PAGE','13243',jdecode('Massage'),jdecode(''),'/4822/13243.html','true',[],''],
		['PAGE','14022',jdecode('Sports+Medicine+'),jdecode(''),'/4822/14022.html','true',[],''],
		['PAGE','13701',jdecode('X-ray+%26+Testing'),jdecode(''),'/4822/13701.html','true',[],'']
	],''],
	['PAGE','4843',jdecode('Conditions+We+Treat'),jdecode(''),'/4843.html','true',[],''],
	['PAGE','4864',jdecode('Professional+Relations'),jdecode(''),'/4864.html','true',[],''],
	['PAGE','4885',jdecode('About+Your+Care'),jdecode(''),'/4885.html','true',[],''],
	['PAGE','4906',jdecode('Patient+FAQs'),jdecode(''),'/4906.html','true',[],''],
	['PAGE','4927',jdecode('Your+First+Visit'),jdecode(''),'/4927.html','true',[],''],
	['PAGE','33901',jdecode('Tour+the+clinic'),jdecode(''),'/33901.html','true',[],''],
	['PAGE','4948',jdecode('Links'),jdecode(''),'/4948.html','true',[],''],
	['PAGE','4969',jdecode('Contact+Us'),jdecode(''),'/4969.html','true',[],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='990000';
theSitetree.keyvisualId='1356';
theSitetree.keyvisualName='jogging.jpg';
theSitetree.fontsetId='237';
theSitetree.graphicsetId='278';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Startup',
				paletteFamily: 	'990000',
				keyvisualId: 	'1356',
				keyvisualName: 	'jogging.jpg',
				fontsetId: 		'237',
				graphicsetId: 	'278',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'990000',
				b_color: 		'333333',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20091001-213046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4801',
internalId:  '',
customField: '20091001-213515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4822',
internalId:  '',
customField: '20080326-223302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24201',
internalId:  '',
customField: '20090615-223136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14001',
internalId:  '',
customField: '20090615-223249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13243',
internalId:  '',
customField: '20090212-224559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14022',
internalId:  '',
customField: '20080214-230554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20090615-223352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4843',
internalId:  '',
customField: '20090316-222508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4864',
internalId:  '',
customField: '20090615-223655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4885',
internalId:  '',
customField: '20080326-231019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4906',
internalId:  '',
customField: '20080326-231201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4927',
internalId:  '',
customField: '20080327-213409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4948',
internalId:  '',
customField: '20090212-230221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4969',
internalId:  '',
customField: '20090615-223825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33901',
internalId:  '',
customField: '20090320-164407'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INED5R';
var companyName   = 'Spine+%26+Injury+Clinic+of+Laramie%2C+PC';
var htmlTitle	  = 'Spine+and+Injury+Clinic+of+Laramie%2C+PC';
var metaKeywords  = 'Laramie%2C+Chiropractic%2C+Chiropractor%2C+Spine%2C+Spinal+Care%2C+Milam%2C+Dr.+Milam%2C+Dini+Chiropractic%2C+Cupps%2C+Jermey+Jones%2C+Wyoming%2C+Back%2C+Pain%2C+headaches%2C+neck%2C+sportsmedicine%2C+injury%2C+auto%2C+car+wreck%2C+wrist%2C+elbow%2C+hand%2C+doctor%2C+work+injury%2C+dylan%2C+ultrasound%2C+ice%2C+heat%2C+orthopedic%2C+othopedics%2C+knee%2C+ankle%2C+x-ray%2C+xrays%2C+foot%2C+biomechanics%2C+orthodics%2C+plantar+fasitis%2C+laramie+spinal+care+center%2C+albany+county%2C+albany+county+chiropractic%2C+kent+nelson%2C+DC%2C+Wyoming+cowboys%2C+football%2C+basketball%2C+rugby%2C+golf%2C+soccer%2C+specialist%2C+massage%2C+wellness%2C+accupuncture%2C+sports%2C+laramie+high+school%2C+decompression%2C+flexion%2C+rehab%2C+rehabilitation%2C+physical+therapy%2C+bone+and+joint%2C+gem+city+bone+and+joint.+homestead+physical+therapy%2C+darren+bressler%2C+sports%2C+sport%2C+sportsmed%2C+cowgirl%2C+uw%2C+university+of+wyoming%2C+shoulder%2C+leg%2C+knee%2C+arm%2C+wrist%2C+pain%2C+headache%2C+car+accident%2C+work+injury%2C+doctor%2C+physcian%2C+laramie+business.Spine++Injury+Clinic+of+Laramie%2C+PC.++%28307%29+742-2082+++409+S+4th+St.+Laramie%2C+WY+82070.++Specializing+in+Conservative+treatment+of+musculoskeletal+injuries.++Back+Pain%2C+Neck+Pain%2C+Headaches%2C+Sprains%2FStrains++Sports+medicine.++Dylan+N.+Milam%2C+DC%2C+CCSP%2C+CSCS.+David+M.+Milam%2C+DC%2C+ART%2C+Active+Release+Technique%2C+In+addition+to+being+a+Doctor+of+Chiropractic%2C+Dr.+Milam+is+a+Certified+Chiropractic+Sports+Physician+and+Certified+Strength++Conditioning+Specialist.';
var metaContents  = 'Spine++Injury+Clinic+of+Laramie%2C+PC.++%28307%29+742-2082+++409+S+4th+St.+Laramie%2C+WY+82070.++Specializing+in+Conservative+treatment+of+musculoskeletal+injuries.++Back+Pain%2C+Neck+Pain%2C+Headaches%2C+Sprains%2FStrains++Sports+medicine.++Dylan+N.+Milam%2C+DC%2C+CCSP%2C+CSCS.++In+addition+to+being+a+Doctor+of+Chiropractic%2C+Dr.+Milam+is+a+Certified+Chiropractic+Sports+Physician+and+Certified+Strength++Conditioning+Specialist.++David+M.+Milam%2C+DC%2C+CSCS.++Active+Release+Technique';
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();
};
