/* [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','4556',jdecode('Home'),jdecode(''),'/4556.html','true',[],''],
	['PAGE','5101',jdecode('What%26%23x27%3Bs+new%3F'),jdecode(''),'/5101.html','true',[],''],
	['PAGE','4577',jdecode('About+Christine'),jdecode(''),'/4577.html','true',[],''],
	['PAGE','5127',jdecode('About+Neil'),jdecode(''),'/5127.html','true',[],''],
	['PAGE','5153',jdecode('Books'),jdecode(''),'/5153.html','true',[],''],
	['PAGE','4598',jdecode('My+Photos'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','5179',jdecode('Articles'),jdecode(''),'/5179.html','true',[],''],
	['PAGE','5205',jdecode('Speaking+and+events'),jdecode(''),'/5205.html','true',[],''],
	['PAGE','4651',jdecode('Email+me'),jdecode(''),'/4651.html','true',[],''],
	['PAGE','6401',jdecode('Order+form'),jdecode(''),'/6401.html','true',[],''],
	['PAGE','16430',jdecode('News+Archive+-+Gower'),jdecode(''),'/16430.html','false',[],''],
	['PAGE','17030',jdecode('News+Archive+-+Actors'),jdecode(''),'/17030.html','false',[],''],
	['PAGE','18030',jdecode('News+Archive+-+Granny'),jdecode(''),'/18030.html','false',[],''],
	['PAGE','18530',jdecode('News+Archive+-+Moving+Home'),jdecode(''),'/18530.html','false',[],''],
	['PAGE','18830',jdecode('News+Archive+-+My+Father'),jdecode(''),'/18830.html','false',[],''],
	['PAGE','19130',jdecode('News+Archive+-+That%26%23x27%3Bs+Life'),jdecode(''),'/19130.html','false',[],''],
	['PAGE','19230',jdecode('News+Archive+-+Stand+By'),jdecode(''),'/19230.html','false',[],''],
	['PAGE','22630',jdecode('News+Article+-+MPs+on+Wife+Swap'),jdecode(''),'/22630.html','false',[],''],
	['PAGE','22930',jdecode('News+Article+-+To+Russia+With+Love'),jdecode(''),'/22930.html','false',[],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Noble';
theSitetree.paletteFamily='960000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='17225';
theSitetree.graphicsetId='12669';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='960000';
var localeDef={
  language: 'en',
  country: 'GB'
};
var theTemplate={
				name: 			'Noble',
				paletteFamily: 	'960000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'17225',
				graphicsetId: 	'12669',
				contentColor: 	'FFFFFF',
				contentBGColor: '960000',
				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['7060']=webappMappings['7060-0415135a731f49c3fb108b7ee30942c0']={
webappId:    '7060',
documentId:  '4598',
internalId:  '0415135a731f49c3fb108b7ee30942c0',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18530',
internalId:  '',
customField: '20090817-111001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17030',
internalId:  '',
customField: '20090817-105908'
};
webappMappings['7008']=webappMappings['7008-3803']={
webappId:    '7008',
documentId:  '4651',
internalId:  '3803',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4556',
internalId:  '',
customField: '20090228-145003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4577',
internalId:  '',
customField: '20090218-215338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20090220-144204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18030',
internalId:  '',
customField: '20090817-110648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16430',
internalId:  '',
customField: '20090817-102917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4651',
internalId:  '',
customField: '20091015-195240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20100125-195614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5127',
internalId:  '',
customField: '20091019-205948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5153',
internalId:  '',
customField: '20090204-150637'
};
webappMappings['7008']=webappMappings['7008-3806']={
webappId:    '7008',
documentId:  '6401',
internalId:  '3806',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6401',
internalId:  '',
customField: '20090204-151023'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4556',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-8801506']={
webappId:    '1501',
documentId:  '4556',
internalId:  '8801506',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5179',
internalId:  '',
customField: '20091214-100616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5205',
internalId:  '',
customField: '20091008-173256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18830',
internalId:  '',
customField: '20090817-111439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19130',
internalId:  '',
customField: '20090817-111852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19230',
internalId:  '',
customField: '20090817-112128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22630',
internalId:  '',
customField: '20091214-100252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22930',
internalId:  '',
customField: '20091214-100526'
};
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT20INEOEB';
var companyName   = 'Christine+Hamilton+Is+Online%21';
var htmlTitle	  = 'Christine+Hamilton+Is+Online%21';
var metaKeywords  = 'Christine+Hamilton%2C+Neil+Hamilton%2C+British+Battle+Axe%2C+';
var metaContents  = 'Hello+there+-+thank+you+for+looking+in.++I%E2%80%99m+not+brilliant+at+all+this+technical+stuff%2C+but+thanks+to+my+friends+at+Easily.co.uk+I+now+have+a+new+website+which+I+can+maintain+myself.++I+promise+I+will+try+and+keep+it+up-dated+as+much+as+possible+but+it+is+tricky+finding+the+time+for+everything+life+throws+at+you%21If+you+want+to+contact+me+about+anything+at+all%2C+then+you+are+in+the+right+place.+If+you+would+like+me+to+come+and+speak+at+or+host+an+event+I+would+be+delighted+to+hear+from+you.+';
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();
};
