/* [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 theSitetree=[ 
	['PAGE','3901',jdecode('Home'),jdecode(''),'/3901.html','true',[],''],
	['PAGE','3952',jdecode('What+is+Shiatsu%3F'),jdecode(''),'/3952.html','true',[],''],
	['PAGE','3978',jdecode('Benefits+of+Shiatsu'),jdecode(''),'/3978.html','true',[],''],
	['PAGE','4004',jdecode('A+typical+session'),jdecode(''),'/4004.html','true',[],''],
	['PAGE','17701',jdecode('Shiatsu+%26+Spring'),jdecode(''),'/17701.html','false',[],''],
	['PAGE','4030',jdecode('Contact+me'),jdecode(''),'/4030.html','true',[],''],
	['PAGE','9901',jdecode('About+me'),jdecode(''),'/9901.html','true',[],''],
	['PAGE','4056',jdecode('Testimonials'),jdecode(''),'/4056.html','true',[],''],
	['PAGE','7501',jdecode('Events'),jdecode(''),'/7501.html','false',[],''],
	['PAGE','4082',jdecode('Links'),jdecode(''),'/4082.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Court';
theSitetree.paletteFamily='9D9D9E';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16442';
theSitetree.graphicsetId='12148';
theSitetree.contentColor='4C4C4C';
theSitetree.contentBGColor='D6D5D5';
var localeDef={
  language: 'en',
  country: 'GB'
};
var theTemplate={
				name: 			'Court',
				paletteFamily: 	'9D9D9E',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16442',
				graphicsetId: 	'12148',
				contentColor: 	'4C4C4C',
				contentBGColor: 'D6D5D5',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				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['7008']=webappMappings['7008-1478']={
webappId:    '7008',
documentId:  '4030',
internalId:  '1478',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3901',
internalId:  '',
customField: '20100121-231352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3952',
internalId:  '',
customField: '20100121-231416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4030',
internalId:  '',
customField: '20100121-231543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3978',
internalId:  '',
customField: '20100121-231454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4004',
internalId:  '',
customField: '20100121-232954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4056',
internalId:  '',
customField: '20100121-231649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4082',
internalId:  '',
customField: '20100121-232441'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '3901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7501',
internalId:  '',
customField: '20090220-125153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9901',
internalId:  '',
customField: '20100121-231630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17701',
internalId:  '',
customField: '20090410-222353'
};
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT20IN2SAE';
var companyName   = 'Zen+Shiatsu';
var htmlTitle	  = 'Zen+Shiatsu+Newcastle+%7C+The+Pilates+Studio+Gosforth';
var metaKeywords  = 'Shiatsu%2C+zen+shiatsu%2C+shiatsu+massage%2C+shiatsu+practitioner%2C+shiatsu+therapist%2C+newcastle+upon+tyne%2C+uk%2C+the+pilates+studio%2C+health%2C+wellbeing%2C+chinese+medicine%2C+complementary+therapy%2C+complimentary+therapy%2C+alternative+therapy%2C+alternative+medicine%2C+chi%2C+qi%2C+meridians%2C+stress+relief%2C+healing%2C+body%2C+mind%2C+soul%2C+spirit%2C+harmony%2C+balance%2C+energy%2C+vitality';
var metaContents  = 'Welcome+to+Zen+Shiatsu+Newcastle%21+Shiatsu+is+a+Japanese%2C+hands-on%2C+holistic+healing+art+for+body%2C+mind+and+soul.+Shiatsu+can+help+to+bring+relief+to+a+wide+range+of+health+problems%2C+as+well+as+calimg+the+mind+and+producing+a+feeling+of+well-being.+Regular+sessions+can+help+prevent+the+build-up+of+stress+in+our+bodies%2C+thus+increasing+our+capacity+to+ward+off+ill+health.+Shiatsu+is+available+at+The+Pilates+Studio+in+Gosforth%2C+Newcastle+upon+Tyne%2C+UK.';
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();
};
