/* [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','901',jdecode('Home'),jdecode(''),'/901.html','true',[],'',''],
	['PAGE','14201',jdecode('News'),jdecode(''),'/14201.html','true',[],'',''],
	['PAGE','1099',jdecode('Timetable'),jdecode(''),'/1099.html','true',[],'',''],
	['PAGE','1162',jdecode('Seminars'),jdecode(''),'/1162.html','true',[],'',''],
	['PAGE','25001',jdecode('Comments'),jdecode(''),'/25001.html','true',[],'',''],
	['PAGE','6301',jdecode('Mission+Statement'),jdecode(''),'/6301.html','true',[],'',''],
	['PAGE','5501',jdecode('Guro+Rick%26%23x27%3Bs+Letter'),jdecode(''),'/5501.html','true',[],'',''],
	['PAGE','18201',jdecode('Guro+Gary+Hoptroff'),jdecode(''),'/18201.html','true',[],'',''],
	['PAGE','994',jdecode('Guro+David+Onuma'),jdecode(''),'/994.html','true',[],'',''],
	['PAGE','72701',jdecode('Guro+Inosanto'),jdecode(''),'/72701.html','true',[],'',''],
	['PAGE','973',jdecode('Guro+Rick+Faye'),jdecode(''),'/973.html','true',[],'',''],
	['PAGE','28701',jdecode('HMA+Team'),jdecode(''),'/28701.html','true',[],'',''],
	['PAGE','1015',jdecode('Jun+Fan+-+JKD'),jdecode(''),'/1015.html','true',[],'',''],
	['PAGE','1036',jdecode('Kali+%28FMA%29'),jdecode(''),'/1036.html','true',[],'',''],
	['PAGE','1057',jdecode('Muay+Thai'),jdecode(''),'/1057.html','true',[],'',''],
	['PAGE','69001',jdecode('BJJ'),jdecode(''),'/69001.html','true',[],'',''],
	['PAGE','1078',jdecode('Grappling'),jdecode(''),'/1078.html','true',[],'',''],
	['PAGE','61501',jdecode('MKG+Phase+Class'),jdecode(''),'/61501.html','true',[],'',''],
	['PAGE','75801',jdecode('Strength+%26+Conditioning'),jdecode(''),'/75801.html','true',[],'',''],
	['PAGE','75827',jdecode('Yoga'),jdecode(''),'/75827.html','true',[],'',''],
	['PAGE','34201',jdecode('Ladies+Thai+Boxing'),jdecode(''),'/34201.html','true',[],'',''],
	['PAGE','70027',jdecode('Tiny+Tigers'),jdecode(''),'/70027.html','true',[],'',''],
	['PAGE','70001',jdecode('Thai+Tigers'),jdecode(''),'/70001.html','true',[],'',''],
	['PAGE','34222',jdecode('Junior+Thai+boxing'),jdecode(''),'/34222.html','true',[],'',''],
	['PAGE','7801',jdecode('Prices'),jdecode(''),'/7801.html','true',[],'',''],
	['PAGE','15501',jdecode('Gallery'),jdecode(''),'/15501.html','true',[],'',''],
	['PAGE','8506',jdecode('Guestbook'),jdecode(''),'/8506/index.html','true',[ 
		['PAGE','8501',jdecode('Read+Guestbook'),jdecode(''),'/8506/8501.html','false',[],'','']
	],'',''],
	['PAGE','8601',jdecode('Directions'),jdecode(''),'/8601.html','true',[],'',''],
	['PAGE','8701',jdecode('How+to+find+us'),jdecode(''),'/8701.html','true',[],'',''],
	['PAGE','1141',jdecode('Contact'),jdecode(''),'/1141.html','true',[],'',''],
	['PAGE','1183',jdecode('Links'),jdecode(''),'/1183.html','true',[],'','']];
var siteelementCount=32;
theSitetree.topTemplateName='Circulation';
theSitetree.paletteFamily='FC2323';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10587';
theSitetree.graphicsetId='10561';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'GB'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Circulation',
				paletteFamily: 	'FC2323',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10587',
				graphicsetId: 	'10561',
				contentColor: 	'DDDDDD',
				contentBGColor: '000000',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69001',
internalId:  '',
customField: '20100330-102826'
};
webappMappings['1002']=webappMappings['1002-8506anbt10inxx9e']={
webappId:    '1002',
documentId:  '8506',
internalId:  '8506anbt10inxx9e',
customField: 'icq=false'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '8601',
internalId:  'location',
customField: 'language:en;country:GB;isIncluded:false;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '8701',
internalId:  'routing',
customField: 'en_GB'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70027',
internalId:  '',
customField: '20100402-152649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72701',
internalId:  '',
customField: '20100725-221135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75801',
internalId:  '',
customField: '20100809-102400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75827',
internalId:  '',
customField: '20100809-103132'
};
webappMappings['7060']=webappMappings['7060-d1e7dae8ee3521c0e6124d981a1af261']={
webappId:    '7060',
documentId:  '15501',
internalId:  'd1e7dae8ee3521c0e6124d981a1af261',
customField: 'language:en;country:GB;'
};
webappMappings['1501']=webappMappings['1501-895162']={
webappId:    '1501',
documentId:  '901',
internalId:  '895162',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8701',
internalId:  '',
customField: '20070228-181522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '901',
internalId:  '',
customField: '20100809-095309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14201',
internalId:  '',
customField: '20100809-095525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7801',
internalId:  '',
customField: '20100709-201702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1162',
internalId:  '',
customField: '20100709-202221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25001',
internalId:  '',
customField: '20100514-093012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20080912-170453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5501',
internalId:  '',
customField: '20090505-172808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18201',
internalId:  '',
customField: '20100507-225339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '973',
internalId:  '',
customField: '20100725-221038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '994',
internalId:  '',
customField: '20100210-122930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1015',
internalId:  '',
customField: '20090603-124011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1036',
internalId:  '',
customField: '20090706-150018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1057',
internalId:  '',
customField: '20090603-124955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1078',
internalId:  '',
customField: '20100331-144351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1099',
internalId:  '',
customField: '20100809-100522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34201',
internalId:  '',
customField: '20080122-130105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34222',
internalId:  '',
customField: '20080513-112309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15501',
internalId:  '',
customField: '20061221-113654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1141',
internalId:  '',
customField: '20080826-150525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1183',
internalId:  '',
customField: '20100511-085653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8506',
internalId:  '',
customField: '20061219-165817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8501',
internalId:  '',
customField: '20061219-165817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8601',
internalId:  '',
customField: '20070228-181548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28701',
internalId:  '',
customField: '20100402-153043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61501',
internalId:  '',
customField: '20091007-125458'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70001',
internalId:  '',
customField: '20100402-153449'
};
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT10INXX9E';
var companyName   = 'Hertfordshire+Martial+Arts';
var htmlTitle	  = '';
var metaKeywords  = 'Jun+Fan+Gung+Fu%2C+JKD%2C+Jeet+Kune+Do%2C+Barnet%2C+Hertfordshire%2C+Filipino+Martial+Arts%2C+Panantukan%2C+Muay+Thai%2C+Grappling%2C+Self+Defence%2C+martial+arts%2C+ladies+only+classes%2C+childrens+martial+arts%2C+Gary+Hoptroff%2C+kids+martial+arts%2C+martial+arts+equipment%2C+Rick+Faye%2C+David+Onuma%2C+Kali%2C+Minnesota+Kali+Group%2C+Combined+Fighting+Systems%2C+MKG%2C+CFS%2C+BJJ%2C+kids+classes%2C+private+training%2C+seminars';
var metaContents  = 'Full+Time+Martial+Arts+Gym+in+Barnet%2C+Jeet+Kune+Do%2C+Filipino+Martial+Arts%2C+Muay+Thai%2C+Grappling%2C+MMA%2C+BJJ%2C+Ladies+Only+Muay+Thai+%26+Childrens+classes';
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();
};
