/* [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','13501',jdecode('Home'),jdecode(''), jdecode('%2F13501%2Findex.html'), 'true',[ 
		['PAGE','20701',jdecode('Specialist+Books'),jdecode(''), jdecode('%2F13501%2F20701.html'), 'true',[],'',''],
		['PAGE','13601',jdecode('Links'),jdecode(''), jdecode('%2F13501%2F13601.html'), 'true',[],'','']
	],'',''],
	['PAGE','13627',jdecode('About+Us'),jdecode(''), jdecode('%2F13627%2Findex.html'), 'true',[ 
		['PAGE','22701',jdecode('Fairs+Calendar'),jdecode(''), jdecode('%2F13627%2F22701.html'), 'true',[],'','']
	],'',''],
	['PAGE','13653',jdecode('Contacts'),jdecode(''), jdecode('%2F13653%2Findex.html'), 'true',[ 
		['PAGE','13679',jdecode('Enquiries'),jdecode(''), jdecode('%2F13653%2F13679.html'), 'true',[],'',''],
		['PAGE','13705',jdecode('Purchase+Information'),jdecode(''), jdecode('%2F13653%2F13705.html'), 'true',[],'','']
	],'',''],
	['PAGE','13731',jdecode('Antiques'),jdecode(''), jdecode('%2F13731%2Findex.html'), 'true',[ 
		['PAGE','13757',jdecode('Royal+Worcester'),jdecode(''), jdecode('%2F13731%2F13757.html'), 'true',[],'',''],
		['PAGE','13991',jdecode('Candle+Extinguishers'),jdecode(''), jdecode('%2F13731%2F13991.html'), 'true',[],'',''],
		['PAGE','13783',jdecode('Minton'),jdecode(''), jdecode('%2F13731%2F13783.html'), 'true',[],'',''],
		['PAGE','13835',jdecode('Coalport'),jdecode(''), jdecode('%2F13731%2F13835.html'), 'true',[],'',''],
		['PAGE','13809',jdecode('Crown+Derby'),jdecode(''), jdecode('%2F13731%2F13809.html'), 'true',[],'',''],
		['PAGE','13861',jdecode('Wedgwood'),jdecode(''), jdecode('%2F13731%2F13861.html'), 'true',[],'',''],
		['PAGE','13913',jdecode('Hadley+'),jdecode(''), jdecode('%2F13731%2F13913.html'), 'true',[],'',''],
		['PAGE','13887',jdecode('Copeland%2FSpode'),jdecode(''), jdecode('%2F13731%2F13887.html'), 'true',[],'',''],
		['PAGE','13939',jdecode('Moorcroft'),jdecode(''), jdecode('%2F13731%2F13939.html'), 'true',[],'',''],
		['PAGE','22001',jdecode('Grainger'),jdecode(''), jdecode('%2F13731%2F22001.html'), 'true',[],'',''],
		['PAGE','13965',jdecode('Other+Factories'),jdecode(''), jdecode('%2F13731%2F13965.html'), 'true',[],'',''],
		['PAGE','85601',jdecode('SALE'),jdecode(''), jdecode('%2F13731%2F85601.html'), 'true',[],'','']
	],'',''],
	['PAGE','14017',jdecode('Modern+Collectables'),jdecode(''), jdecode('%2F14017%2Findex.html'), 'true',[ 
		['PAGE','14043',jdecode('Bronte'),jdecode(''), jdecode('%2F14017%2F14043.html'), 'true',[],'',''],
		['PAGE','14069',jdecode('Milwyn+Holloway++'),jdecode(''), jdecode('%2F14017%2F14069.html'), 'true',[],'',''],
		['PAGE','41401',jdecode('Skerrett'),jdecode(''), jdecode('%2F14017%2F41401.html'), 'true',[],'',''],
		['PAGE','41427',jdecode('Bryan+Cox'),jdecode(''), jdecode('%2F14017%2F41427.html'), 'true',[],'','']
	],'','']];
var siteelementCount=26;
theSitetree.topTemplateName='Animal';
theSitetree.paletteFamily='3468BD';
theSitetree.keyvisualId='4293';
theSitetree.keyvisualName='kv_4293.jpg';
theSitetree.fontsetId='10789';
theSitetree.graphicsetId='11209';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='D8E0ED';
var localeDef={
  language: 'en',
  country: 'GB'
};
var prodDef={
  wl_name: 'easily_co_uk',
  product: 'WSCSYSSSSLY0XVD7'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Animal',
				paletteFamily: 	'3468BD',
				keyvisualId: 	'4293',
				keyvisualName: 	'kv_4293.jpg',
				fontsetId: 		'10789',
				graphicsetId: 	'11209',
				contentColor: 	'000000',
				contentBGColor: 'D8E0ED',
				a_color: 		'3468BD',
				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-3713']={
webappId:    '7008',
documentId:  '13679',
internalId:  '3713',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13501',
internalId:  '',
customField: '20111002-130433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13731',
internalId:  '',
customField: '20090330-000145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13757',
internalId:  '',
customField: '20111002-224835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13783',
internalId:  '',
customField: '20111002-223649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13627',
internalId:  '',
customField: '20110621-224457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20701',
internalId:  '',
customField: '20090405-232414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13653',
internalId:  '',
customField: '20100103-115735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13835',
internalId:  '',
customField: '20110808-180325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13809',
internalId:  '',
customField: '20111002-222541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14043',
internalId:  '',
customField: '20090405-221609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14017',
internalId:  '',
customField: '20090401-160157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22701',
internalId:  '',
customField: '20101203-111629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14069',
internalId:  '',
customField: '20101219-172946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13705',
internalId:  '',
customField: '20090405-175148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13679',
internalId:  '',
customField: '20090128-141441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13601',
internalId:  '',
customField: '20090831-101442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13939',
internalId:  '',
customField: '20110808-180622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13861',
internalId:  '',
customField: '20111002-124915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13913',
internalId:  '',
customField: '20110808-151317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13991',
internalId:  '',
customField: '20110808-150138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13887',
internalId:  '',
customField: '20111002-224017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22001',
internalId:  '',
customField: '20110808-180659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41401',
internalId:  '',
customField: '20090830-174621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41427',
internalId:  '',
customField: '20090405-124053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13965',
internalId:  '',
customField: '20100103-092848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85601',
internalId:  '',
customField: '20110808-180103'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13501',
internalId:  '1006',
customField: '1006'
};
var webAppHostname = 'cgi.easily.co.uk:80';
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT20INEG03';
var companyName   = 'Tony+Horsley+Antiques';
var htmlTitle	  = 'Tony+Horsley+Antiques';
var metaKeywords  = 'Royal+Worcester%2C+Hadley%2C+Kerr+and+Binns%2C+Chamberlains+Worcester%2C+Grainger+Worcester%2C+Candle+Extinguishers%2C+Candle+Snuffers%2C+Candlesnuffers%2C+Crown+Derby%2C+Minton%2CCoalport%2C+Spode%2C+Copeland%2C+Wedgwood+lustre%2C+Moorcroft%2C+Majolica%2C+Parian%2C+Belleek%2C+Pastille+Burners%2C+Rockingham%2C+Doulton%2C+Ridgway%2C+Bronte+Porcelain%2C+Harry+Davis%2C+Powell%2C+Stinton%2C+Raby%2C+Baldwyn%2C+Hawkins%2C+Leroy%2C+Distinguished+Extinguishers%2C+Pate-SurPate%2C+GeorgeJones%2C+Worcester+Figures%2C+Worcester';
var metaContents  = 'Specialising+in+Royal+Worcester%2C+Candle+Extinguishers%2C+and+other+fine+English+Porcelain+and+Pottery.';
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();
};

