/* [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','501',jdecode('Home'),jdecode(''), jdecode('%2F501.html'), 'true',[],'',''],
	['PAGE','5801',jdecode('Restoring+Heatlh'),jdecode(''), jdecode('%2F5801.html'), 'true',[],'',''],
	['PAGE','47301',jdecode('Health+Diagnosis+%26+Treatment'),jdecode(''), jdecode('%2F47301.html'), 'true',[],'',''],
	['PAGE','10301',jdecode('CranioSacral+Therapy'),jdecode(''), jdecode('%2F10301.html'), 'true',[],'',''],
	['PAGE','50901',jdecode('Transformational+Therapy'),jdecode(''), jdecode('%2F50901.html'), 'true',[],'',''],
	['PAGE','76901',jdecode('Reiki'),jdecode(''), jdecode('%2F76901.html'), 'true',[],'',''],
	['PAGE','46201',jdecode('Aura+%26+Psychic+Reading'),jdecode(''), jdecode('%2F46201.html'), 'true',[],'',''],
	['PAGE','49801',jdecode('NLP%2C+Hypnosis+%26+EFT'),jdecode(''), jdecode('%2F49801.html'), 'true',[],'',''],
	['PAGE','6901',jdecode('Becoming+Pregnant'),jdecode(''), jdecode('%2F6901.html'), 'true',[],'',''],
	['PAGE','7401',jdecode('Pregnancy'),jdecode(''), jdecode('%2F7401.html'), 'true',[],'',''],
	['PAGE','7801',jdecode('HypnoBirthing'),jdecode(''), jdecode('%2F7801.html'), 'true',[],'',''],
	['PAGE','8301',jdecode('Babies+%26+Children'),jdecode(''), jdecode('%2F8301.html'), 'true',[],'',''],
	['PAGE','8801',jdecode('Teenagers'),jdecode(''), jdecode('%2F8801.html'), 'true',[],'',''],
	['PAGE','9701',jdecode('eLybra+8'),jdecode(''), jdecode('%2F9701.html'), 'true',[],'',''],
	['PAGE','71901',jdecode('Inspiring+Women'),jdecode(''), jdecode('%2F71901.html'), 'true',[],'',''],
	['PAGE','48801',jdecode('Transformational+Steps+'),jdecode(''), jdecode('%2F48801.html'), 'true',[],'',''],
	['PAGE','10701',jdecode('Venues%2C+Classes+%26+Workshops'),jdecode(''), jdecode('%2F10701.html'), 'true',[],'',''],
	['PAGE','9406',jdecode('Guestbook'),jdecode(''), jdecode('%2F9406%2Findex.html'), 'true',[ 
		['PAGE','9401',jdecode('Read+Guestbook'),jdecode(''), jdecode('%2F9406%2F9401.html'), 'false',[],'','']
	],'',''],
	['PAGE','15001',jdecode('contact'),jdecode(''), jdecode('%2F15001.html'), 'true',[],'',''],
	['PAGE','22901',jdecode('useful+links'),jdecode(''), jdecode('%2F22901.html'), 'true',[],'',''],
	['PAGE','24201',jdecode('Recommended+Reading+%26+Viewing'),jdecode(''), jdecode('%2F24201.html'), 'true',[],'',''],
	['PAGE','57201',jdecode('Testimonials'),jdecode(''), jdecode('%2F57201.html'), 'true',[],'','']];
var siteelementCount=23;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='333F65';
theSitetree.keyvisualId='1745';
theSitetree.keyvisualName='familie.jpg';
theSitetree.fontsetId='290';
theSitetree.graphicsetId='355';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='333F65';
var localeDef={
  language: 'en',
  country: 'GB'
};
var prodDef={
  wl_name: 'easily_co_uk',
  product: 'WSCSYSSSSLY0XVDH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'333F65',
				keyvisualId: 	'1745',
				keyvisualName: 	'familie.jpg',
				fontsetId: 		'290',
				graphicsetId: 	'355',
				contentColor: 	'FFFFFF',
				contentBGColor: '333F65',
				a_color: 		'333F65',
				b_color: 		'040507',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-9406anbt10inx3i1']={
webappId:    '1002',
documentId:  '9406',
internalId:  '9406anbt10inx3i1',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['7050']=webappMappings['7050-392']={
webappId:    '7050',
documentId:  '24201',
internalId:  '392',
customField: 'language:en;country:GB;'
};
webappMappings['7008']=webappMappings['7008-898']={
webappId:    '7008',
documentId:  '15001',
internalId:  '898',
customField: 'language:en;country:GB;'
};
webappMappings['7060']=webappMappings['7060-1cef2d645f1e5c9e11dae713ec59fb89']={
webappId:    '7060',
documentId:  '46201',
internalId:  '1cef2d645f1e5c9e11dae713ec59fb89',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20110910-175955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47301',
internalId:  '',
customField: '20110910-180557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9701',
internalId:  '',
customField: '20070224-062706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46201',
internalId:  '',
customField: '20090315-145608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20070224-200253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6901',
internalId:  '',
customField: '20070221-121808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7401',
internalId:  '',
customField: '20070224-202750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7801',
internalId:  '',
customField: '20070525-071645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8301',
internalId:  '',
customField: '20080630-192536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8801',
internalId:  '',
customField: '20080507-233513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10301',
internalId:  '',
customField: '20080630-192510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76901',
internalId:  '',
customField: '20110910-222832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20111009-084357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9406',
internalId:  '',
customField: '20080507-234911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20081016-225318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22901',
internalId:  '',
customField: '20110910-182539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24201',
internalId:  '',
customField: '20080415-213149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71901',
internalId:  '',
customField: '20110910-184202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48801',
internalId:  '',
customField: '20110910-181032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49801',
internalId:  '',
customField: '20111009-085339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50901',
internalId:  '',
customField: '20110910-180505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9401',
internalId:  '',
customField: '20070216-191323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57201',
internalId:  '',
customField: '20101122-150912'
};
webappMappings['1501']=webappMappings['1501-6590037']={
webappId:    '1501',
documentId:  '501',
internalId:  '6590037',
customField: '1501'
};
var webAppHostname = 'cgi.easily.co.uk:80';
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT10INX3I1';
var companyName   = 'Positive+Health+for+Healthy+Living';
var htmlTitle	  = '';
var metaKeywords  = 'Therapy%2C+Complementary+therapies%2C+Susan+King%2C+Massage%2C+CranioSacral+Therapy%2C+Back+Pain%2C+chronic+fatigue%2C+stress%2C+headaches%2C+pregnancy%2C+newborns%2C+reflexology%2C+health%2C+wellbeing%2C+nlp%2C+life+coaching%2C+hypnosis%2C+Journey%2C+Wholeness%2C+Transformation%2C+healing%2C+workshops%2C+courses%2C+transformational+therapy%2C+healing%2C+stress%2C+massage%2C+spiritual%2C+ME%2C+fibromyalgia%2C+pain%2C+pregnancy%2C+depression%2C+emotion%2C+reiki%2C+massage%2C+self+esteem%2C+personal+development%2C+life+changing%2C+bioresonance%2C+medium%2C+mscle+ache%2C+pain%2C+baby+massage%2C+self+esteem%2C+women%2C+men%2C+';
var metaContents  = 'Complementry+therapist+treating+mind%2C+body++spirit.++Trained+in+advanced+healing+techniques%2C+specializing+in+post+viral+and+core+nervous+dissorders.++Emotional+Mastery.';
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();
};

