/* [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','5001',jdecode('Home'),jdecode(''),'/5001.html','true',[],''],
	['PAGE','5052',jdecode('Registration'),jdecode(''),'/5052.html','true',[],''],
	['PAGE','5078',jdecode('contact'),jdecode(''),'/5078.html','true',[],''],
	['PAGE','5104',jdecode('FAQ'),jdecode(''),'/5104.html','true',[],''],
	['PAGE','5130',jdecode('Pricing'),jdecode(''),'/5130.html','true',[],''],
	['PAGE','5156',jdecode('Terms+and+Conditions'),jdecode(''),'/5156.html','true',[],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Elegance';
theSitetree.paletteFamily='EBEFF8';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10402';
theSitetree.graphicsetId='10624';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'GB'
};
var theTemplate={
				name: 			'Elegance',
				paletteFamily: 	'EBEFF8',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10402',
				graphicsetId: 	'10624',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				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-6043']={
webappId:    '7008',
documentId:  '5052',
internalId:  '6043',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20091111-221301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5052',
internalId:  '',
customField: '20091112-104415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5078',
internalId:  '',
customField: '20091112-205041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5104',
internalId:  '',
customField: '20091111-132411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5130',
internalId:  '',
customField: '20091111-223153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5156',
internalId:  '',
customField: '20091111-220441'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5001',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT10IN3A44';
var companyName   = 'Fineline+Secretarial+Services';
var htmlTitle	  = '';
var metaKeywords  = 'transcription%2C+outsourcing%2C+secretary%2C+typing%2C+office%2C+outsec%2C+bluebell%2C+uk+digital%2C+english+digital%2C+digital%2C+online+typing%2C+digital+typing%2C+outsourcing%2C+virtual+typing%2C+virtual+secretary%2C+Angel%2C+Career+Legal%2C+temping%2C+digital+transcription%2C+digital+secretary%2C+digital+typing%2C+legal+secretary%2C+medical+secretary%2C+typing+help%2C+big+hand%2C+secretarial+help%2C+secretarial%2C+digital+dictation%2C+medico-legal%2C+medicolegal%2C+medico+legal%2C+medico+legal+report+typing%2C+outsec%2C+typing+services%2C+digital+transcription+service%2C+tape+transcription%2C+transcription+service%2C+tapes+transcribing+services%2C+transcript%2C+business+transcribe%2C+legal+audio%2C+telephone+dictation%2C+conference%2C+virtual+assistant%2C+assistants+pa%2C+secretary%2C+webcast%2C+digital%2C+contracts%2C+police+station+interview%2C+typing%2C+secretaries%2C+CD%2C+recorded+message%2C+videotape%2C+precongnitiontyping+company%2C+temp%2C+temp+staff%2C+temp+secretary%2C+legal+typing%2C+online+typing%2C+OutSec%2C+outsourcing%2C+outsource+secretarial%2C+digital+typing%2Cdigital+transcription%2Coutsourced+typing%2Ctranscription%2C+transcription+services+transcription+service%2C+medical+transcription%2C+legal+transcription%2C+legal+transcription+company%2C+secretarial+services%2C+online+secretary%2C+virtual+secretary%2C+business+solution%2C+support+services%2C+secretarial%2C+digital+dictation%2C+medico-legal%2C+medicolegal%2C+medico+legal%2C+medico+legal+report+typing%2C+outsourced+digital+transcription+limited%2C+typing+services%2C+digital+transcription+service%2C+tape+transcription%2C+transcription+service%2C+tapes+transcribing+services%2C+transcript%2C+business+transcribe%2C+legal+audio%2C+telephone+dictation%2C+conference%2C+virtual+assistant%2C+assistants+pa%2C+secretary%2C+webcast%2C+digital%2C+contracts%2C+police+station+interview%2C+typing%2C+secretaries%2C+CD%2C+recorded+message%2C+videotape%2C+precongnitiontyping+company%2C+temp%2C+temp+staff%2C+temp+secretary%2C+legal+typing%2C+online+typing%2Coutsourcing%2C+outsource+secretarial%2C+digital+typing%2Cdigital+transcription%2Coutsourced+typing%2Ctranscription%2C+transcription+services+transcription+service%2C+medical+transcription%2C+legal+transcription%2C+legal+transcription+company%2C+secretarial+services%2C+online+secretary%2C+virtual+secretary%2C+business+solution%2C+support+services%2C+secretarial%2C+online+transcription+services%2C+digital+transcription%2C+dictation+transcription%2C+online+secretaries%2C+audio+transcription%2C+legal+transcription%2C+medical+transcription%2C+property+transcription%2C+business+transcription%2C+conference+transcription%2C+interview+transcription%2C+university+transcription%2C+finelinesecretarialservices%2C';
var metaContents  = 'Online+digital+transcription+service+for+any+business+requiring+secretarial+assistance+-+A+British+online+internet+secretarial+typing+service+-+an+alternative+to+hiring+temps+with+instant+web+access+to+UK+trained+typists+on+a+pay-as-you-go+basis';
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();
};
