/* [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','1801',jdecode('+Home'),jdecode(''),'/1801.html','true',[],'',''],
	['PAGE','2901',jdecode('About+Us'),jdecode(''),'/2901/index.html','true',[ 
		['PAGE','24601',jdecode('About+us+email'),jdecode(''),'/2901/24601.html','false',[],'','']
	],'',''],
	['PAGE','34301',jdecode('Meetings'),jdecode(''),'/34301.html','true',[],'',''],
	['PAGE','2927',jdecode('Products'),jdecode(''),'/2927/index.html','true',[ 
		['PAGE','3453',jdecode('Body+Balance'),jdecode(''),'/2927/3453.html','true',[],'',''],
		['PAGE','3101',jdecode('Essential+7'),jdecode(''),'/2927/3101.html','true',[],'',''],
		['PAGE','3201',jdecode('Everyday+Oils+'),jdecode(''),'/2927/3201.html','true',[],'',''],
		['PAGE','2953',jdecode('NingXia+Red'),jdecode(''),'/2927/2953.html','true',[],'',''],
		['PAGE','46317',jdecode('Omega+Blue'),jdecode(''),'/2927/46317.html','true',[],'',''],
		['PAGE','58217',jdecode('PanAway'),jdecode(''),'/2927/58217.html','true',[],'',''],
		['PAGE','3227',jdecode('Raindrop+Technique'),jdecode(''),'/2927/3227.html','true',[],'',''],
		['PAGE','3705',jdecode('Valor'),jdecode(''),'/2927/3705.html','true',[],'','']
	],'',''],
	['PAGE','2979',jdecode('Information+%26+Support'),jdecode(''),'/2979/index.html','true',[ 
		['PAGE','3427',jdecode('Antioxidant'),jdecode(''),'/2979/3427.html','true',[],'',''],
		['PAGE','3401',jdecode('Aroma'),jdecode(''),'/2979/3401.html','true',[],'',''],
		['PAGE','3731',jdecode('Auto+Nervous+System'),jdecode(''),'/2979/3731.html','true',[],'',''],
		['PAGE','3627',jdecode('External+Links'),jdecode(''),'/2979/3627.html','true',[],'',''],
		['PAGE','34501',jdecode('Info+Library'),jdecode(''),'/2979/34501.html','true',[],'',''],
		['PAGE','3653',jdecode('Literature'),jdecode(''),'/2979/3653.html','true',[],'',''],
		['PAGE','3757',jdecode('MRSA'),jdecode(''),'/2979/3757.html','true',[],'',''],
		['PAGE','3479',jdecode('Nutritional'),jdecode(''),'/2979/3479.html','true',[],'',''],
		['PAGE','58243',jdecode('Pain'),jdecode(''),'/2979/58243.html','true',[],'','']
	],'',''],
	['PAGE','41317',jdecode('AromaSteam'),jdecode(''),'/41317/index.html','false',[ 
		['PAGE','42817',jdecode('AromaSteam+Oil+Packs'),jdecode(''),'/41317/42817.html','true',[],'','']
	],'',''],
	['PAGE','55417',jdecode('Petrapeace'),jdecode(''),'/55417.html','false',[],'',''],
	['PAGE','38717',jdecode('YouTube'),jdecode(''),'/38717.html','false',[],'',''],
	['PAGE','19401',jdecode('Order+here'),jdecode(''),'/19401/index.html','true',[ 
		['PAGE','19601',jdecode('Becoming+a+Distributor'),jdecode(''),'/19401/19601.html','true',[],'',''],
		['PAGE','4001',jdecode('Regular+Monthly+Orders'),jdecode(''),'/19401/4001.html','true',[],'',''],
		['PAGE','3601',jdecode('Business+Opportunity'),jdecode(''),'/19401/3601.html','true',[],'','']
	],'',''],
	['PAGE','3005',jdecode('Contact'),jdecode(''),'/3005.html','true',[],'',''],
	['PAGE','3505',jdecode('News+and+Events'),jdecode(''),'/3505/index.html','true',[ 
		['PAGE','50917',jdecode('Retirement+Show'),jdecode(''),'/3505/50917.html','true',[],'',''],
		['PAGE','3253',jdecode('Valor+Balance'),jdecode(''),'/3505/3253.html','true',[],'',''],
		['PAGE','3679',jdecode('Wellness+Regimes'),jdecode(''),'/3505/3679.html','true',[],'','']
	],'',''],
	['PAGE','3279',jdecode('Guestbook'),jdecode(''),'/3279.html','true',[],'','']];
var siteelementCount=37;
theSitetree.topTemplateName='Porthole';
theSitetree.paletteFamily='920707';
theSitetree.keyvisualId='6721';
theSitetree.keyvisualName='kv_6721.jpg';
theSitetree.fontsetId='11200';
theSitetree.graphicsetId='12017';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FAEEEE';
var localeDef={
  language: 'en',
  country: 'GB'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Porthole',
				paletteFamily: 	'920707',
				keyvisualId: 	'6721',
				keyvisualName: 	'kv_6721.jpg',
				fontsetId: 		'11200',
				graphicsetId: 	'12017',
				contentColor: 	'000000',
				contentBGColor: 'FAEEEE',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1801',
internalId:  '',
customField: '20110503-200933'
};
webappMappings['7008']=webappMappings['7008-6903']={
webappId:    '7008',
documentId:  '3005',
internalId:  '6903',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2901',
internalId:  '',
customField: '20100505-215532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2927',
internalId:  '',
customField: '20110503-201148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2953',
internalId:  '',
customField: '20100318-194855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3101',
internalId:  '',
customField: '20100316-004341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2979',
internalId:  '',
customField: '20110503-173353'
};
webappMappings['1002']=webappMappings['1002-3279anbt30in3rm7']={
webappId:    '1002',
documentId:  '3279',
internalId:  '3279anbt30in3rm7',
customField: 'icq=false'
};
webappMappings['7050']=webappMappings['7050-3718']={
webappId:    '7050',
documentId:  '3505',
internalId:  '3718',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3201',
internalId:  '',
customField: '20100316-004548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3253',
internalId:  '',
customField: '20100318-221148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3005',
internalId:  '',
customField: '20110330-182452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3505',
internalId:  '',
customField: '20100718-142848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3279',
internalId:  '',
customField: '20100309-202813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3227',
internalId:  '',
customField: '20100316-023820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19401',
internalId:  '',
customField: '20100718-150131'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3705',
internalId:  '',
customField: '20110503-205251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3757',
internalId:  '',
customField: '20100410-234759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3731',
internalId:  '',
customField: '20110503-173750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3401',
internalId:  '',
customField: '20100310-171129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3427',
internalId:  '',
customField: '20100308-001703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3453',
internalId:  '',
customField: '20110503-173306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3601',
internalId:  '',
customField: '20100318-211917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3627',
internalId:  '',
customField: '20100316-013618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3653',
internalId:  '',
customField: '20100316-014750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3479',
internalId:  '',
customField: '20100316-015510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4001',
internalId:  '',
customField: '20100520-142834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3679',
internalId:  '',
customField: '20100316-015655'
};
webappMappings['7008']=webappMappings['7008-7086']={
webappId:    '7008',
documentId:  '34301',
internalId:  '7086',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19601',
internalId:  '',
customField: '20100718-151552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24601',
internalId:  '',
customField: '20100311-135802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34301',
internalId:  '',
customField: '20100713-114744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34501',
internalId:  '',
customField: '20110503-173409'
};
webappMappings['7060']=webappMappings['7060-d741f2af7e31832bb5a506532ede931e']={
webappId:    '7060',
documentId:  '38717',
internalId:  'd741f2af7e31832bb5a506532ede931e',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38717',
internalId:  '',
customField: '20100414-223149'
};
webappMappings['7060']=webappMappings['7060-7bb8e6ab7e93241f54b08f18bded6b9b']={
webappId:    '7060',
documentId:  '38717',
internalId:  '7bb8e6ab7e93241f54b08f18bded6b9b',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41317',
internalId:  '',
customField: '20100520-143118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42817',
internalId:  '',
customField: '20100506-010847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46317',
internalId:  '',
customField: '20100607-011711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50917',
internalId:  '',
customField: '20100718-143519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55417',
internalId:  '',
customField: '20101023-180831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58243',
internalId:  '',
customField: '20110403-193825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58217',
internalId:  '',
customField: '20110503-173323'
};
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT30IN3RM7';
var companyName   = '+';
var htmlTitle	  = '';
var metaKeywords  = 'Essential+Oils%2C+Aromatherapy%2C+Wellbeing%2C+Wellness%2C+Healing%2C+Massage+Oils%2C+Pain+Relief%2C+Organic%2C+Therapeutic%2C+Nutritional+Supplements%2C+Lavender%2C+Peppermint%2C+Frankincense%2C+Lemon%2C+Joy%2C+Wolfberries%2C+NingXia+Red%2C+Goji%2C+Stress%2C+Sleep%2C+Anxiety%2C+Fibromyalgia%2C+ORAC+scale%2C+Free+Radicals%2C+Antioxidants%2C+Anti-inflammatory%2C+Energy%2C+Cancer%2C+Blood+sugar%2C+glucose%2C+Agave.+Osteoarthritis%2C+Arthritis%2C+Depression%2C+Omega+3%2C+Omega+Blue%2C+Dementia%2C+Alzheimers%2C+Alzheimer%27s%2C+ADHD%2C+Free+Radical+Damage%2C+Diabetes%2C+Health+Drink%2C+Energy.';
var metaContents  = 'We+market+wellness+choices.++Essential+Oils%2C+Aromatherapy%2C+Wellbeing%2C+Wellness%2C+Healing%2C+Massage+Oils%2C+Pain+Relief%2C+Organic%2C+Therapeutic%2C+Nutritional+Supplements%2C+Lavender%2C+Peppermint%2C+Frankincense%2C+Lemon%2C+Joy%2C+Wolfberries%2C+NingXia+Red%2C+Goji%2C+Stress%2C+Sleep%2C+Anxiety%2C+Fibromyalgia%2C+ORAC+scale%2C+Free+Radicals%2C+Antioxidants%2C+Anti-inflammatory%2C+Energy%2C+Cancer%2C+Blood+sugar%2C+glucose%2C+Agave%2C+Osteoarthritis%2C+Arthritis%2C+Depression%2C+Omega+3%2C+Omega+Blue%2C+Dementia%2C+Alzheimers%2C+Alzheimer%27s%2C+ADHD%2C+Free+Radical+Damage%2C+Diabetes%2C+Health+Drink%2C+Energy.';
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();
};

