/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','5006',jdecode('Guestbook'),jdecode(''),'/5006/index.html','true',[ 
		['PAGE','5001',jdecode('Read+Guestbook'),jdecode(''),'/5006/5001.html','true',[],'','']
	],'',''],
	['PAGE','5101',jdecode('Shop'),jdecode(''),'/5101.html','true',[],'',''],
	['PAGE','42001',jdecode('Cona+Reproduction+link'),jdecode(''),'/42001.html','true',[],'',''],
	['PAGE','36501',jdecode('The+Classicona+Gallery+link'),jdecode(''),'/36501.html','true',[],'',''],
	['PAGE','36527',jdecode('Standard+Kitchen+Model'),jdecode(''),'/36527.html','true',[],'',''],
	['PAGE','5201',jdecode('Payment+options'),jdecode(''),'/5201.html','true',[],'',''],
	['PAGE','6101',jdecode('contact'),jdecode(''),'/6101.html','true',[],'',''],
	['PAGE','12801',jdecode('The+Odette+Collection'),jdecode(''),'/12801.html','false',[],'',''],
	['PAGE','18101',jdecode('Vienna+Gold+%26+Chrome+Coffee+Maker'),jdecode(''),'/18101.html','true',[],'',''],
	['PAGE','25501',jdecode('New+Cona+Models'),jdecode(''),'/25501.html','true',[],'',''],
	['PAGE','31701',jdecode('TERMS+%26+CONDITIONS'),jdecode(''),'/31701.html','true',[],'','']];
var siteelementCount=13;
theSitetree.topTemplateName='Zoe';
theSitetree.paletteFamily='243356';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='410';
theSitetree.graphicsetId='456';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'GB'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Zoe',
				paletteFamily: 	'243356',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'410',
				graphicsetId: 	'456',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'1B2B52',
				e_color: 		'676F74',
				f_color: 		'FE7F01',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20080710-083947'
};
webappMappings['1002']=webappMappings['1002-5006anbt10in2q5g']={
webappId:    '1002',
documentId:  '5006',
internalId:  '5006anbt10in2q5g',
customField: 'icq=false'
};
webappMappings['4001']=webappMappings['4001-3850996']={
webappId:    '4001',
documentId:  '5101',
internalId:  '3850996',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20100122-193313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5006',
internalId:  '',
customField: '20071119-162846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20071124-152419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5201',
internalId:  '',
customField: '20100122-193655'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-3869718']={
webappId:    '1501',
documentId:  '401',
internalId:  '3869718',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-2d5afe22a0b362c4abf45e41cf9bbf08']={
webappId:    '7060',
documentId:  '12801',
internalId:  '2d5afe22a0b362c4abf45e41cf9bbf08',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12801',
internalId:  '',
customField: '20080226-221709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18101',
internalId:  '',
customField: '20100313-202630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31701',
internalId:  '',
customField: '20090223-210542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20071119-162846'
};
webappMappings['7060']=webappMappings['7060-2edc331793347b6d737c206ef3eb2391']={
webappId:    '7060',
documentId:  '25501',
internalId:  '2edc331793347b6d737c206ef3eb2391',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25501',
internalId:  '',
customField: '20100405-115536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36527',
internalId:  '',
customField: '20090713-160124'
};
webappMappings['7060']=webappMappings['7060-69a0fb57f77d35e9afe3497152c436ea']={
webappId:    '7060',
documentId:  '36527',
internalId:  '69a0fb57f77d35e9afe3497152c436ea',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36501',
internalId:  '',
customField: '20090717-201134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42001',
internalId:  '',
customField: '20100405-113342'
};
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT10IN2Q5G';
var companyName   = 'CLASSICONA';
var htmlTitle	  = 'CLASSICONA+SUPPLIERS+OF+CONA+COFFEE+MAKERS+AND+SPARES';
var metaKeywords  = 'META+name%3Dkeywords+content%3Dcona+coffee+machines%2C+cona+products%2C+cona%2C+cona+water+heater+uk%2Ccona+coffee+maker%2Ccona+coffee+percolator%2Ccona+spares%2Ccona+vacuum+coffee+maker%2Ccona+vacuum+coffee+percolator%2Ccona+vacuum+coffee+brewers%2Ccona+coffee+machine+spares%2Ctraditional+coffee+machine%2Cbuy+coffee+makers%2Cespresso+coffee+makers%2Ccoffee+maker+uk%2Cstove+top+coffee+maker%2Cvacuum+coffee+maker%2Chome+coffee+makers%2Ccoffee+percolators%2Ccoffee+brewers%2CSIPHONS%2CSYPHONS%2Cstove+top+coffee+percolator%2C1960+coffee+percolator%2Ccoffee+percolator+uk%2Cgourmet+coffee+brewer%2Ccoffee+funnel%2Ccoffee+maker+spares%2Ccoffee+maker+parts%2C+www.classicona.com';
var metaContents  = 'SPECIALISTS+IN+THE+SUPPLY+OF+CONA%2CCONA+COFFEE+MAKERS%2C+CONA+SPARES+%26+PARTS%2C%0D%0AOCAREE+SIPHON+BREWERS%2C+SYPHON+COFFEE+MAKERS%2C+BALANCE+COFFEE+MAKERS.%0D%0ACONA+JUNIOR%2CCONA+C+%2C+CONA+D%2C+CONA+STANDARD%2C+CONA+FB103.';
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();
};
