/* [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','7114',jdecode('Home'),jdecode(''), jdecode('%2F7114.html'), 'true',[],'',''],
	['PAGE','7201',jdecode('About+us'),jdecode(''), jdecode('%2F7201.html'), 'true',[],'',''],
	['PAGE','8401',jdecode('Services'),jdecode(''), jdecode('%2F8401.html'), 'true',[],'',''],
	['PAGE','7222',jdecode('Our+Midwives'),jdecode(''), jdecode('%2F7222.html'), 'true',[],'',''],
	['PAGE','7264',jdecode('FAQs'),jdecode(''), jdecode('%2F7264%2Findex.html'), 'true',[ 
		['PAGE','23501',jdecode('General+Questions'),jdecode(''), jdecode('%2F7264%2F23501.html'), 'true',[],'',''],
		['PAGE','23522',jdecode('Gynecology+Questions'),jdecode(''), jdecode('%2F7264%2F23522.html'), 'true',[],'',''],
		['PAGE','23543',jdecode('Pregnancy+and+Birth+Questions'),jdecode(''), jdecode('%2F7264%2F23543.html'), 'true',[],'','']
	],'',''],
	['PAGE','7327',jdecode('Information+%26+Resources'),jdecode(''), jdecode('%2F7327%2Findex.html'), 'true',[ 
		['PAGE','24901',jdecode('New+OB+Handouts'),jdecode(''), jdecode('%2F7327%2F24901.html'), 'true',[],'',''],
		['PAGE','24922',jdecode('Third+Trimester+Handouts'),jdecode(''), jdecode('%2F7327%2F24922.html'), 'true',[],'',''],
		['PAGE','24964',jdecode('After+the+birth%3A+Your+Health+Postpartum'),jdecode(''), jdecode('%2F7327%2F24964.html'), 'true',[],'',''],
		['PAGE','25101',jdecode('Breastfeeding'),jdecode(''), jdecode('%2F7327%2F25101.html'), 'true',[],'',''],
		['PAGE','24985',jdecode('Childbirth+Classes'),jdecode(''), jdecode('%2F7327%2F24985.html'), 'true',[],'',''],
		['PAGE','25006',jdecode('Common+Problems+in+Pregnancy'),jdecode(''), jdecode('%2F7327%2F25006.html'), 'true',[],'',''],
		['PAGE','55801',jdecode('Common+Gynecology+Concerns'),jdecode(''), jdecode('%2F7327%2F55801.html'), 'true',[],'',''],
		['PAGE','24943',jdecode('Doulas+and+Other+Local+Resources'),jdecode(''), jdecode('%2F7327%2F24943.html'), 'true',[],'',''],
		['PAGE','64301',jdecode('Family+Planning'),jdecode(''), jdecode('%2F7327%2F64301.html'), 'true',[],'',''],
		['PAGE','25901',jdecode('Local+Home+and+Birth+Center+Options'),jdecode(''), jdecode('%2F7327%2F25901.html'), 'true',[],'',''],
		['PAGE','52101',jdecode('Menopause'),jdecode(''), jdecode('%2F7327%2F52101.html'), 'true',[],'',''],
		['PAGE','25122',jdecode('Parenting'),jdecode(''), jdecode('%2F7327%2F25122.html'), 'true',[],'',''],
		['PAGE','53501',jdecode('Substances+%26+Exposures+in+Pregnancy'),jdecode(''), jdecode('%2F7327%2F53501.html'), 'true',[],'',''],
		['PAGE','60501',jdecode('Weight+Gain+%26+Nutrition+in+Pregnancy'),jdecode(''), jdecode('%2F7327%2F60501.html'), 'true',[],'',''],
		['PAGE','50101',jdecode('Well+Woman+Exam'),jdecode(''), jdecode('%2F7327%2F50101.html'), 'true',[],'',''],
		['PAGE','29201',jdecode('Other'),jdecode(''), jdecode('%2F7327%2F29201.html'), 'true',[],'','']
	],'',''],
	['PAGE','7306',jdecode('Patient+Stories'),jdecode(''), jdecode('%2F7306%2Findex.html'), 'true',[ 
		['PAGE','41101',jdecode('Birth+Stories'),jdecode(''), jdecode('%2F7306%2F41101.html'), 'true',[],'',''],
		['PAGE','41122',jdecode('Parenting+Stories'),jdecode(''), jdecode('%2F7306%2F41122.html'), 'true',[],'','']
	],'',''],
	['PAGE','7285',jdecode('Contact+Us+'),jdecode(''), jdecode('%2F7285.html'), 'true',[],'',''],
	['PAGE','23122',jdecode('Location'),jdecode(''), jdecode('%2F23122.html'), 'true',[],'',''],
	['PAGE','25201',jdecode('En+Espa%C3%B1ol'),jdecode(''), jdecode('%2F25201%2Findex.html'), 'true',[ 
		['PAGE','30764',jdecode('Documentos+de+la+Primera+Cita'),jdecode(''), jdecode('%2F25201%2F30764.html'), 'true',[],'',''],
		['PAGE','30785',jdecode('Documentos+del+Tercer+Trimestre'),jdecode(''), jdecode('%2F25201%2F30785.html'), 'true',[],'',''],
		['PAGE','54801',jdecode('Las+Sustancias+y+Exposiciones+durante+Embarazo'),jdecode(''), jdecode('%2F25201%2F54801.html'), 'true',[],'',''],
		['PAGE','30701',jdecode('Problemas+M%C3%A1s+Comunes'),jdecode(''), jdecode('%2F25201%2F30701.html'), 'true',[],'','']
	],'','']];
var siteelementCount=35;
theSitetree.topTemplateName='Case';
theSitetree.paletteFamily='10224E';
theSitetree.keyvisualId='11061';
theSitetree.keyvisualName='kv_11061.jpg';
theSitetree.fontsetId='31941';
theSitetree.graphicsetId='13780';
theSitetree.contentColor='555555';
theSitetree.contentBGColor='F6FBFE';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'endurance',
  product: 'WSCSYSSSSLY0XRN4'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Case',
				paletteFamily: 	'10224E',
				keyvisualId: 	'11061',
				keyvisualName: 	'kv_11061.jpg',
				fontsetId: 		'31941',
				graphicsetId: 	'13780',
				contentColor: 	'555555',
				contentBGColor: 'F6FBFE',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7114',
internalId:  '',
customField: '20110714-135529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7327',
internalId:  '',
customField: '20100819-172935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7285',
internalId:  '',
customField: '20100325-134455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7222',
internalId:  '',
customField: '20110223-161207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20100325-133511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8401',
internalId:  '',
customField: '20100317-125251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7264',
internalId:  '',
customField: '20100325-133552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7306',
internalId:  '',
customField: '20100415-115811'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '7114',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23501',
internalId:  '',
customField: '20110429-175735'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '23122',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23122',
internalId:  '',
customField: '20100618-173727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23522',
internalId:  '',
customField: '20100310-165916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23543',
internalId:  '',
customField: '20100310-165215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25101',
internalId:  '',
customField: '20110714-140734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25122',
internalId:  '',
customField: '20110824-181529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24985',
internalId:  '',
customField: '20111025-135617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50101',
internalId:  '',
customField: '20101011-170325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25901',
internalId:  '',
customField: '20100310-194823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24901',
internalId:  '',
customField: '20110714-140852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24922',
internalId:  '',
customField: '20110912-175212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25006',
internalId:  '',
customField: '20110908-185340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24943',
internalId:  '',
customField: '20110824-183830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24964',
internalId:  '',
customField: '20110714-124958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25201',
internalId:  '',
customField: '20110429-174553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29201',
internalId:  '',
customField: '20110412-173300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30764',
internalId:  '',
customField: '20110429-174858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30785',
internalId:  '',
customField: '20110429-175100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30701',
internalId:  '',
customField: '20100311-173213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41122',
internalId:  '',
customField: '20100415-132805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41101',
internalId:  '',
customField: '20100521-145135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52101',
internalId:  '',
customField: '20101011-165027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53501',
internalId:  '',
customField: '20110301-174206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54801',
internalId:  '',
customField: '20110301-173701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55801',
internalId:  '',
customField: '20110429-184829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60501',
internalId:  '',
customField: '20110714-174033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64301',
internalId:  '',
customField: '20111027-183748'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0IN3AXZ';
var companyName   = 'Midwifery+and+Gynecology+Care';
var htmlTitle	  = 'WomanCare-Care+For+Women+of+All+Ages+in+All+Stages';
var metaKeywords  = 'womancare%2C+womens+care%2C+women+care%2C+olympia%2C+lacey%2C+midwife%2C+midwives%2C+birth%2C+labor%2C+st.+peters+hospital%2C+st.+petes%2C+birth+control%2C+pills%2C+iud%2C+implanon%2C+gynecology%2C+obstetrics%2C+delivery%2C+catch+babies%2C+hospital+birth%2C+natural+childbirth%2C+natural+birth%2C+std+treatment%2C+papsmear%2C+clinic%2C+home+birth%2C+yeast+infection%2C+uti%2C+bladder+infection%2C+ovarian+cyst%2C+certified+nurse+midwives%2C+nurse+practitioners';
var metaContents  = 'WomanCare+is+a+midwifery+clinic+that+has+helped+bring+almost+two+thousand+babies+into+the+world.++We+can+also+assist+you+with+gynecological+care%2C+from+papsmears+to+birth+control+we+would+love+to+have+you+as+a+patient.';
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();
};

