/* [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','452',jdecode('Home'),jdecode(''),'/452.html','false',[],'',''],
	['PAGE','14601',jdecode('HOME'),jdecode(''),'/14601/index.html','true',[ 
		['PAGE','641',jdecode('EFT+'),jdecode(''),'/14601/641.html','true',[],'',''],
		['PAGE','473',jdecode('Hypnotherapy'),jdecode(''),'/14601/473.html','true',[],'',''],
		['PAGE','494',jdecode('Stopping+Smoking'),jdecode(''),'/14601/494.html','true',[],'',''],
		['PAGE','53301',jdecode('Weight+Loss'),jdecode(''),'/14601/53301.html','true',[],'',''],
		['PAGE','515',jdecode('Other+Problems'),jdecode(''),'/14601/515.html','true',[],'',''],
		['PAGE','536',jdecode('FAQs'),jdecode(''),'/14601/536.html','true',[],'',''],
		['PAGE','662',jdecode('Testimonials'),jdecode(''),'/14601/662.html','true',[],'',''],
		['PAGE','29401',jdecode('Fees%2FOpen+Times'),jdecode(''),'/14601/29401.html','false',[],'',''],
		['PAGE','30601',jdecode('CD+-+Special+Offer'),jdecode(''),'/14601/30601.html','true',[],'','']
	],'',''],
	['PAGE','77101',jdecode('EFT+Workshop%2C+Manchester'),jdecode(''),'/77101.html','true',[],'',''],
	['PAGE','51701',jdecode('FREE'),jdecode(''),'/51701.html','true',[],'',''],
	['PAGE','40501',jdecode('Self+Hypnosis+Workshop'),jdecode(''),'/40501.html','false',[],'',''],
	['PAGE','9001',jdecode('MindMasters+Corporate'),jdecode(''),'/9001/index.html','true',[ 
		['PAGE','578',jdecode('Smoke+Free+Workplace'),jdecode(''),'/9001/578.html','true',[],'',''],
		['PAGE','620',jdecode('Stress+Management'),jdecode(''),'/9001/620.html','true',[],'','']
	],'',''],
	['PAGE','683',jdecode('Contact+Us'),jdecode(''),'/683.html','true',[],'',''],
	['PAGE','34001',jdecode('Useful+Video+Links'),jdecode(''),'/34001.html','true',[],'',''],
	['PAGE','64501',jdecode('New+Year+New+You+Workshop'),jdecode(''),'/64501.html','false',[],'',''],
	['PAGE','49201',jdecode('Latest+News'),jdecode(''),'/49201.html','true',[],'',''],
	['PAGE','54801',jdecode('Shop'),jdecode(''),'/54801.html','true',[],'',''],
	['PAGE','47701',jdecode('Therapist+Affiliate+Scheme'),jdecode(''),'/47701.html','true',[],'',''],
	['PAGE','11301',jdecode('Directions'),jdecode(''),'/11301.html','true',[],'',''],
	['PAGE','79401',jdecode('Hypnotherapy+%26+EFT+Manchester+Blog'),jdecode(''),'/79401.html','true',[],'','']];
var siteelementCount=25;
theSitetree.topTemplateName='Easylife';
theSitetree.paletteFamily='AD1D1D';
theSitetree.keyvisualId='5820';
theSitetree.keyvisualName='kv_5820.jpg';
theSitetree.fontsetId='11095';
theSitetree.graphicsetId='11868';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'GB'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Easylife',
				paletteFamily: 	'AD1D1D',
				keyvisualId: 	'5820',
				keyvisualName: 	'kv_5820.jpg',
				fontsetId: 		'11095',
				graphicsetId: 	'11868',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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['7008']=webappMappings['7008-511']={
webappId:    '7008',
documentId:  '683',
internalId:  '511',
customField: 'language:en;country:GB;'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '11301',
internalId:  'location',
customField: 'language:en;country:GB;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49201',
internalId:  '',
customField: '20080318-223758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20090126-153034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14601',
internalId:  '',
customField: '20100902-153121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20090722-131554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20090722-131716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20090126-153348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20090126-153433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '662',
internalId:  '',
customField: '20071109-182434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9001',
internalId:  '',
customField: '20090126-171613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20090126-153908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20090126-153959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '641',
internalId:  '',
customField: '20090126-153110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '683',
internalId:  '',
customField: '20100902-145616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11301',
internalId:  '',
customField: '20080421-135026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29401',
internalId:  '',
customField: '20080714-171555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30601',
internalId:  '',
customField: '20090722-132344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34001',
internalId:  '',
customField: '20091015-155339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40501',
internalId:  '',
customField: '20080220-161315'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '14601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47701',
internalId:  '',
customField: '20080220-160440'
};
webappMappings['7008']=webappMappings['7008-575']={
webappId:    '7008',
documentId:  '51701',
internalId:  '575',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51701',
internalId:  '',
customField: '20090126-163616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53301',
internalId:  '',
customField: '20090722-131842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54801',
internalId:  '',
customField: '20090316-171809'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '452',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '14601',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '641',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '473',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '494',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '53301',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '515',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '536',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '662',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '29401',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '30601',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '51701',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '40501',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '9001',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '578',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '620',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '683',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '34001',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '49201',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '54801',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '47701',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '11301',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77101',
internalId:  '',
customField: '20090722-130631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64501',
internalId:  '',
customField: '20090205-154201'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '77101',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '64501',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['7050']=webappMappings['7050-1211']={
webappId:    '7050',
documentId:  '79401',
internalId:  '1211',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79401',
internalId:  '',
customField: '20090406-191100'
};
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT10INXP9Z';
var companyName   = '+EFT+%26+Hypnotherapy+North+West';
var htmlTitle	  = 'Hypnotherapy%7CHypnosis%7CFemale+Hypnotherapist%7CNLP%7CEFT%7CLife+Coaching%7CWorkshops%7CManchester%7CLancashire%7CNorth+West';
var metaKeywords  = 'Hypnotherapy%2C+Stop+Smoking%2C+Hypnosis%2C+hypnotherapists+in+manchester%2C+EFT+workshops+in+Manchester%2C+Law+of+Attraction%2C+hypnotherapy+manchester%2C+help+with%2C+anxiety%2C+stress%2C+femaile+hypnotherapist%2C+insomnia%2C+comfort+eating%2C+Master+Hypnotherapist+in+Manchester%2C+Adel+Rawlinson%2C+Hypnosis%2C+Manchester%2C+Smoking+ban%2C+Weight+Loss%2C++Give+Up+Smoking%2C+clarendon+private+clinic%2C+adele+rawlinson%2C+loose+weight%2C+lose+weight+Hypnotherapy+CD%2C+Corporate+quit+smoking%2C+stress+management%2C+confidence%2C+EFT%2C+Emotional+freedom+technique%2C+gary+craig%2C+insomnia%2C+BBC+radio+GMR%2C+Adele+rawlinson%2C+rowlinson%2C+mindmaster%2C+mindmasters%2C+swinton%2C+lancashire%2C+monton%2C+manchester%2C+north+west%2C+nail+biting%2C+enchanted+fairy+taps%2C+depression%2C+NLP%2C++motivation%2C+goals%2C+nlp%2C+TFT%2C+EMDR%2C+hypnosis%2C+tapping+Hypnotherapy';
var metaContents  = 'Hypnotherapy%2C+EFT%2C+hypnotherapist+in+Manchester%2C+hypnotherapy+in+manchester%2C+female+hypnotherapist%2C+Stop+Smoking+with+hypnosis%2C+hypnotherapists+in+Manchester%2C+Weight+Loss%2C+hypnotherapy+manchester%2C+hypnotherapy+Swinton%2C+hypnotherapy+Eccles%2C+hypnotherapy+Worsley%2C+hypnotherapy+Bury%2C+hypnotherapy+salford%2C+emotional+freedom+technique%2C+Tapping%2C+quit+smoking%2C+anxiety%2C+hypnotist%2C+Corporate+Stress+Managment%2C+Corporate+services%2C+hypnotherapy+diploma+Training%2C+hypnosis+weight%2C+confidence%2C++law+of+attraction%2C+the+sercet%2C+abraham+hicks%2C+nail+biting%2C+stress%2C+EFT+workshops%2C+EFT+training+manchester%2C+counselling';
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();
};
