/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','851',jdecode('Spainish+Retreats+'),jdecode(''),'/851/index.html','true',[ 
		['PAGE','914',jdecode('Los+Limoneros+Gallery'),jdecode(''),'/851/914.html','true',[],'',''],
		['PAGE','103801',jdecode('Testimonials'),jdecode(''),'/851/103801.html','true',[],'',''],
		['PAGE','98801',jdecode('Develop+your+Reiki+'),jdecode(''),'/851/98801.html','true',[],'','']
	],'',''],
	['PAGE','452',jdecode('Reiki+Training'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','473',jdecode('About+Reiki'),jdecode(''),'/452/473.html','true',[],'',''],
		['PAGE','494',jdecode('Reiki+Courses'),jdecode(''),'/452/494.html','true',[],'',''],
		['PAGE','557',jdecode('Testimonials'),jdecode(''),'/452/557.html','true',[],'',''],
		['PAGE','515',jdecode('Book+a+Reiki+Course'),jdecode(''),'/452/515.html','true',[],'','']
	],'',''],
	['PAGE','788',jdecode('Egypt+Trip'),jdecode(''),'/788/index.html','true',[ 
		['PAGE','78501',jdecode('Luxor'),jdecode(''),'/788/78501.html','true',[],'',''],
		['PAGE','78522',jdecode('Abu+Simbel+%26+Aswan'),jdecode(''),'/788/78522.html','true',[],'',''],
		['PAGE','95101',jdecode('Cairo'),jdecode(''),'/788/95101.html','true',[],'',''],
		['PAGE','76601',jdecode('Our+Hotel'),jdecode(''),'/788/76601.html','true',[],'',''],
		['PAGE','76622',jdecode('Meet+the+Team'),jdecode(''),'/788/76622.html','true',[],'',''],
		['PAGE','74001',jdecode('2006+Trip'),jdecode(''),'/788/74001.html','true',[],'',''],
		['PAGE','77701',jdecode('Booking+Information'),jdecode(''),'/788/77701.html','true',[],'','']
	],'',''],
	['PAGE','13501',jdecode('Quantum+Touch+'),jdecode(''),'/13501.html','true',[],'',''],
	['PAGE','578',jdecode('Holistic+Therapies'),jdecode(''),'/578/index.html','true',[ 
		['PAGE','599',jdecode('Aromatherapy'),jdecode(''),'/578/599.html','true',[],'',''],
		['PAGE','620',jdecode('Deep+Tissue+Massage'),jdecode(''),'/578/620.html','true',[],'',''],
		['PAGE','641',jdecode('Reflexology'),jdecode(''),'/578/641.html','true',[],'',''],
		['PAGE','662',jdecode('Reiki'),jdecode(''),'/578/662.html','true',[],'',''],
		['PAGE','683',jdecode('Indian+Head+Massage'),jdecode(''),'/578/683.html','true',[],'',''],
		['PAGE','725',jdecode('Aqua+Detox'),jdecode(''),'/578/725.html','true',[],'',''],
		['PAGE','746',jdecode('Quantum+Touch'),jdecode(''),'/578/746.html','true',[],'','']
	],'',''],
	['PAGE','88201',jdecode('Your+Space'),jdecode(''),'/88201/index.html','true',[ 
		['PAGE','88222',jdecode('Orb+Photos'),jdecode(''),'/88201/88222.html','true',[],'','']
	],'',''],
	['PAGE','935',jdecode('Shop'),jdecode(''),'/935.html','true',[],'',''],
	['PAGE','956',jdecode('Resources'),jdecode(''),'/956/index.html','true',[ 
		['PAGE','977',jdecode('Links'),jdecode(''),'/956/977.html','true',[],'','']
	],'',''],
	['PAGE','1019',jdecode('About+Me'),jdecode(''),'/1019.html','true',[],'',''],
	['PAGE','2701',jdecode('Contact+Me'),jdecode(''),'/2701.html','true',[],'','']];
var siteelementCount=34;
theSitetree.topTemplateName='Court';
theSitetree.paletteFamily='EEBE79';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16442';
theSitetree.graphicsetId='12145';
theSitetree.contentColor='472A15';
theSitetree.contentBGColor='FCE7CA';
var localeDef={
  language: 'en',
  country: 'GB'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Court',
				paletteFamily: 	'EEBE79',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16442',
				graphicsetId: 	'12145',
				contentColor: 	'472A15',
				contentBGColor: 'FCE7CA',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-1676']={
webappId:    '7008',
documentId:  '77701',
internalId:  '1676',
customField: 'language:en;country:GB;'
};
webappMappings['7008']=webappMappings['7008-1677']={
webappId:    '7008',
documentId:  '401',
internalId:  '1677',
customField: 'language:en;country:GB;'
};
webappMappings['7008']=webappMappings['7008-1678']={
webappId:    '7008',
documentId:  '788',
internalId:  '1678',
customField: 'language:en;country:GB;'
};
webappMappings['1501']=webappMappings['1501-640057']={
webappId:    '1501',
documentId:  '401',
internalId:  '640057',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-1679']={
webappId:    '7008',
documentId:  '851',
internalId:  '1679',
customField: 'language:en;country:GB;'
};
webappMappings['7008']=webappMappings['7008-1680']={
webappId:    '7008',
documentId:  '2701',
internalId:  '1680',
customField: 'language:en;country:GB;'
};
webappMappings['7008']=webappMappings['7008-1681']={
webappId:    '7008',
documentId:  '98801',
internalId:  '1681',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100830-195409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20070328-085204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20100207-120711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20070314-174918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20080908-223635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20070824-102653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '788',
internalId:  '',
customField: '20071109-095142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78501',
internalId:  '',
customField: '20070313-121709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78522',
internalId:  '',
customField: '20071108-162652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95101',
internalId:  '',
customField: '20070425-130204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76601',
internalId:  '',
customField: '20070425-114259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76622',
internalId:  '',
customField: '20070823-191055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74001',
internalId:  '',
customField: '20070314-233611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77701',
internalId:  '',
customField: '20071109-094547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '851',
internalId:  '',
customField: '20080205-202008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '914',
internalId:  '',
customField: '20070313-102645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98801',
internalId:  '',
customField: '20100830-202535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13501',
internalId:  '',
customField: '20070508-230949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20070307-095706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '599',
internalId:  '',
customField: '20070403-113424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20070130-181617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '641',
internalId:  '',
customField: '20070403-113652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '662',
internalId:  '',
customField: '20070307-095851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '683',
internalId:  '',
customField: '20070307-095919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '725',
internalId:  '',
customField: '20070130-181802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '746',
internalId:  '',
customField: '20070208-201334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88201',
internalId:  '',
customField: '20070319-092204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88222',
internalId:  '',
customField: '20070319-162356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '935',
internalId:  '',
customField: '20070312-152236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '956',
internalId:  '',
customField: '20070312-095512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '977',
internalId:  '',
customField: '20070425-132258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1019',
internalId:  '',
customField: '20070313-101020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2701',
internalId:  '',
customField: '20070403-220512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103801',
internalId:  '',
customField: '20070712-232652'
};
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT10INXEOJ';
var companyName   = 'Silver+Moon+Reiki+Training+%26+Retreats';
var htmlTitle	  = 'www.silvermoon.org.uk';
var metaKeywords  = 'reiki+courses+usui+mikao+master+teacher+learn+study+manual+silver+moon++therapy+therapies+aromatherapy+reflexology+indian+head+massage+quantum+touch+aqua+detox+holistic+tisserand+oils+essential+egypt+retreat+spain+los+limoneros+relaxing+rejuvinating+egyptology+egyptologist+luxor+karnac+hotel+luxury+energy+ancient+trip+holiday+andalusia+taichi+tai+chi+treatment+astrology+tarot+meditation+study+healing+quantum+touch+';
var metaContents  = '';
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();
};
