/* [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','82',jdecode('Home'),jdecode(''),'/82.html','true',[],'',''],
	['PAGE','139',jdecode('About+me'),jdecode(''),'/139.html','true',[],'',''],
	['PAGE','8201',jdecode('What+I+can+do+for+you'),jdecode(''),'/8201.html','true',[],'',''],
	['PAGE','649',jdecode('What+to+expect'),jdecode(''),'/649.html','true',[],'',''],
	['PAGE','658',jdecode('What+I+don%26%23x27%3Bt+do'),jdecode(''),'/658.html','true',[],'',''],
	['PAGE','667',jdecode('What+do+I+charge%3F'),jdecode(''),'/667.html','true',[],'',''],
	['PAGE','1090',jdecode('Why+not+a+flat+fee%3F'),jdecode(''),'/1090.html','true',[],'',''],
	['PAGE','685',jdecode('Do+I+do+phone+consults%3F'),jdecode(''),'/685.html','true',[],'',''],
	['PAGE','694',jdecode('What+if+you+can%26%23x27%3Bt+afford+it%3F'),jdecode(''),'/694.html','true',[],'',''],
	['PAGE','6422',jdecode('Pump+rental+stations'),jdecode(''),'/6422.html','true',[],'',''],
	['PAGE','2870',jdecode('How-to+video'),jdecode(''),'/2870.html','true',[],'',''],
	['PAGE','301',jdecode('Client+testimonials'),jdecode(''),'/301.html','true',[],'',''],
	['PAGE','6401',jdecode('Additional+resources'),jdecode(''),'/6401.html','true',[],'',''],
	['PAGE','3114',jdecode('Links'),jdecode(''),'/3114.html','true',[],'',''],
	['PAGE','6443',jdecode('Gift+certificates'),jdecode(''),'/6443.html','true',[],'',''],
	['PAGE','923',jdecode('Contact+information'),jdecode(''),'/923.html','true',[],'','']];
var siteelementCount=16;
theSitetree.topTemplateName='Antigua';
theSitetree.paletteFamily='955956';
theSitetree.keyvisualId='6904';
theSitetree.keyvisualName='kv_6904.jpg';
theSitetree.fontsetId='11216';
theSitetree.graphicsetId='12041';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='B17775';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Antigua',
				paletteFamily: 	'955956',
				keyvisualId: 	'6904',
				keyvisualName: 	'kv_6904.jpg',
				fontsetId: 		'11216',
				graphicsetId: 	'12041',
				contentColor: 	'FFFFFF',
				contentBGColor: 'B17775',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '82',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82',
internalId:  '',
customField: '20100602-091627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3114',
internalId:  '',
customField: '20100128-135809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '923',
internalId:  '',
customField: '20100602-064526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2870',
internalId:  '',
customField: '20090128-082256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139',
internalId:  '',
customField: '20100125-081650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '649',
internalId:  '',
customField: '20090120-155355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '658',
internalId:  '',
customField: '20080104-191238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '667',
internalId:  '',
customField: '20080104-191524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1090',
internalId:  '',
customField: '20080105-162220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '685',
internalId:  '',
customField: '20080110-150926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '694',
internalId:  '',
customField: '20080104-191914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6401',
internalId:  '',
customField: '20090515-102320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20090301-124822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6422',
internalId:  '',
customField: '20100125-081554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6443',
internalId:  '',
customField: '20090118-090224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8201',
internalId:  '',
customField: '20091004-153959'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050IN3K1G';
var companyName   = 'Sandra+Cole%2C+RNC%2C+IBCLC+++';
var htmlTitle	  = 'LACTATION+CONSULTANT+ROCKLAND+COUNTY%2CNY++BERGEN+COUNTY%2CNJ';
var metaKeywords  = 'lactation+consultant++breastfeeding+help++Rockland+county++Bergen+County++New+York++New+Jersey++baby+nurse++babynurse++IBCLC++lactation+++Sandra+Cole';
var metaContents  = 'private+lactation+and+breastfeeding+consultation+in+Rockland+and+Bergen+Counties';
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();
};
