/* [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','22133',jdecode('MEDIA+PAGE'),jdecode(''), jdecode('%2F22133.html'), 'true',[],'',''],
	['PAGE','20375',jdecode('HOME+'),jdecode(''), jdecode('%2F20375.html'), 'false',[],'',''],
	['PAGE','6012',jdecode('HOME+PAGE'),jdecode(''), jdecode('%2F6012.html'), 'true',[],'',''],
	['PAGE','53068',jdecode(''),jdecode(''), jdecode('%2F53068.html'), 'true',[],'',''],
	['PAGE','54568',jdecode('PLAT+DU+JOUR+%28cost%2Brecipe%29'),jdecode(''), jdecode('%2F54568.html'), 'true',[],'',''],
	['PAGE','11933',jdecode('FOIE+GRAS'),jdecode(''), jdecode('%2F11933.html'), 'true',[],'',''],
	['PAGE','12254',jdecode('%231+WAGYU+BEEF%2FVIANDES'),jdecode(''), jdecode('%2F12254.html'), 'true',[],'',''],
	['PAGE','25412',jdecode('HAMS+%26+BACONS'),jdecode(''), jdecode('%2F25412.html'), 'true',[],'',''],
	['PAGE','19712',jdecode('SAUSAGE+FRANCE+%26+E.U'),jdecode(''), jdecode('%2F19712.html'), 'true',[],'',''],
	['PAGE','25712',jdecode('P%C3%A2t%C3%A9+%26+TERINNE'),jdecode(''), jdecode('%2F25712.html'), 'true',[],'',''],
	['PAGE','32923',jdecode('ORGANIC+POULTRY'),jdecode(''), jdecode('%2F32923.html'), 'true',[],'',''],
	['PAGE','33223',jdecode('FISH+SMOKED'),jdecode(''), jdecode('%2F33223.html'), 'true',[],'',''],
	['PAGE','25112',jdecode('CAVIAR'),jdecode(''), jdecode('%2F25112.html'), 'true',[],'',''],
	['PAGE','21912',jdecode('MUSHROOMS+%26+TRUFFLES'),jdecode(''), jdecode('%2F21912.html'), 'true',[],'',''],
	['PAGE','11912',jdecode('CHEESE%2FFROMAGES'),jdecode(''), jdecode('%2F11912.html'), 'true',[],'',''],
	['PAGE','43223',jdecode('CHEESE+RACLETTE+MACHINE'),jdecode(''), jdecode('%2F43223.html'), 'true',[],'',''],
	['PAGE','33286',jdecode('FRUITS%2F+WHOLE%2F+PUREE%2F+COULIS'),jdecode(''), jdecode('%2F33286.html'), 'true',[],'',''],
	['PAGE','33265',jdecode('VEGETABLES'),jdecode(''), jdecode('%2F33265.html'), 'true',[],'',''],
	['PAGE','21933',jdecode('BAKERIE%2F+PASTRIES'),jdecode(''), jdecode('%2F21933.html'), 'true',[],'',''],
	['PAGE','21954',jdecode('PRESERVE+%26+CONFITURE'),jdecode(''), jdecode('%2F21954.html'), 'true',[],'',''],
	['PAGE','33244',jdecode('CONDIMENTS'),jdecode(''), jdecode('%2F33244.html'), 'true',[],'',''],
	['PAGE','37723',jdecode('WHOLESALE+PRICING+'),jdecode(''), jdecode('%2F37723.html'), 'true',[],'',''],
	['PAGE','11954',jdecode('LUNCH+to+go'),jdecode(''), jdecode('%2F11954.html'), 'false',[],'',''],
	['PAGE','12233',jdecode('DINNER+to+go'),jdecode(''), jdecode('%2F12233.html'), 'true',[],'',''],
	['PAGE','6063',jdecode('ALKALINE+WATER'),jdecode(''), jdecode('%2F6063.html'), 'false',[],'',''],
	['PAGE','11996',jdecode('About+us'),jdecode(''), jdecode('%2F11996%2Findex.html'), 'true',[ 
		['PAGE','12017',jdecode('Our+team'),jdecode(''), jdecode('%2F11996%2F12017.html'), 'true',[],'',''],
		['PAGE','12038',jdecode('How+to+find+us'),jdecode(''), jdecode('%2F11996%2F12038.html'), 'true',[],'','']
	],'',''],
	['PAGE','6084',jdecode('Customers'),jdecode(''), jdecode('%2F6084.html'), 'false',[],'',''],
	['PAGE','6105',jdecode('CONTACT'),jdecode(''), jdecode('%2F6105.html'), 'true',[],'',''],
	['PAGE','11975',jdecode('Special+events'),jdecode(''), jdecode('%2F11975.html'), 'false',[],'',''],
	['PAGE','47323',jdecode('Restaurant+links'),jdecode(''), jdecode('%2F47323.html'), 'true',[],'',''],
	['PAGE','20312',jdecode('Guestbook'),jdecode(''), jdecode('%2F20312.html'), 'false',[],'',''],
	['PAGE','36323',jdecode('Imprint'),jdecode(''), jdecode('%2F36323.html'), 'false',[],'',''],
	['PAGE','20333',jdecode('LOCATION'),jdecode(''), jdecode('%2F20333.html'), 'true',[],'',''],
	['PAGE','20354',jdecode('Forum'),jdecode(''), jdecode('%2F20354.html'), 'false',[],'',''],
	['PAGE','22112',jdecode('New+page'),jdecode(''), jdecode('%2F22112.html'), 'false',[],'',''],
	['PAGE','38423',jdecode('Disclaimer+%2F+Privacy+notice'),jdecode(''), jdecode('%2F38423.html'), 'true',[],'','']];
var siteelementCount=38;
theSitetree.topTemplateName='Cater';
theSitetree.paletteFamily='DFDEDC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10475';
theSitetree.graphicsetId='10959';
theSitetree.contentColor='0000A0';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'hps_testtown',
  product: 'WSCSYSSSSLYTC245'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Cater',
				paletteFamily: 	'DFDEDC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10475',
				graphicsetId: 	'10959',
				contentColor: 	'0000A0',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'ADACAC',
				e_color: 		'ADACAC',
				f_color: 		'ADACAC',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6012',
internalId:  '',
customField: '20111031-121957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6063',
internalId:  '',
customField: '20090810-193333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6084',
internalId:  '',
customField: '20090810-193333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6105',
internalId:  '',
customField: '20101203-150355'
};
webappMappings['1501']=webappMappings['1501-8244258']={
webappId:    '1501',
documentId:  '6012',
internalId:  '8244258',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36323',
internalId:  '',
customField: '20101108-115203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54568',
internalId:  '',
customField: '20110222-152058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53068',
internalId:  '',
customField: '20101213-160621'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '6012',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11912',
internalId:  '',
customField: '20101203-145440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11933',
internalId:  '',
customField: '20101203-142035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11954',
internalId:  '',
customField: '20101102-111943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12254',
internalId:  '',
customField: '20101203-144021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19712',
internalId:  '',
customField: '20101203-144237'
};
webappMappings['1002']=webappMappings['1002-20312ahw050inlbg8']={
webappId:    '1002',
documentId:  '20312',
internalId:  '20312ahw050inlbg8',
customField: 'icq=false'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '20333',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['1003']=webappMappings['1003-ahw050inlbg812c0eb5c023']={
webappId:    '1003',
documentId:  '20354',
internalId:  'ahw050inlbg812c0eb5c023',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20375',
internalId:  '',
customField: '20101102-173318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21912',
internalId:  '',
customField: '20101203-145329'
};
webappMappings['7050']=webappMappings['7050-3199']={
webappId:    '7050',
documentId:  '22112',
internalId:  '3199',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21933',
internalId:  '',
customField: '20101203-145916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21954',
internalId:  '',
customField: '20101203-150032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11996',
internalId:  '',
customField: '20101104-163401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12017',
internalId:  '',
customField: '20101104-164124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25112',
internalId:  '',
customField: '20101203-145131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25412',
internalId:  '',
customField: '20101203-144717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25712',
internalId:  '',
customField: '20101203-144157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12038',
internalId:  '',
customField: '20101104-164255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22133',
internalId:  '',
customField: '20101104-164353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20333',
internalId:  '',
customField: '20101209-151243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32923',
internalId:  '',
customField: '20101203-144955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33223',
internalId:  '',
customField: '20101203-145103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33244',
internalId:  '',
customField: '20101203-150120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33286',
internalId:  '',
customField: '20101203-145658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33265',
internalId:  '',
customField: '20101203-145742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12233',
internalId:  '',
customField: '20101203-150259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11975',
internalId:  '',
customField: '20101101-140225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20312',
internalId:  '',
customField: '20101102-172929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20354',
internalId:  '',
customField: '20101102-172941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22112',
internalId:  '',
customField: '20101103-122502'
};
webappMappings['7008']=webappMappings['7008-10021']={
webappId:    '7008',
documentId:  '37723',
internalId:  '10021',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37723',
internalId:  '',
customField: '20101122-165629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38423',
internalId:  '',
customField: '20101111-090745'
};
webappMappings['5003']=webappMappings['5003-tid:1;pid:WSCSYSSSSLYTC245']={
webappId:    '5003',
documentId:  '6012',
internalId:  'tid:1;pid:WSCSYSSSSLYTC245',
customField: 'en:US::;language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43223',
internalId:  '',
customField: '20101203-145541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47323',
internalId:  '',
customField: '20101130-163616'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '6012',
internalId:  '1501',
customField: '1501'
};
webappMappings['7005']=webappMappings['7005-762']={
webappId:    '7005',
documentId:  '22133',
internalId:  '762',
customField: 'language:en;country:US;'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INLBG8';
var companyName   = '+++++++++Le+Bec+Fin+Fine+Food++++++';
var htmlTitle	  = 'FRENCH+FINE+FOOD+WHOLESALE+%26+RETAIL+';
var metaKeywords  = 'organic%2C+food%2C+french%2C+new+jersey%2C+connecticut%2C+new+york+restaurant%2C+fine+food%2C+wholesale+distributor%2C+bread%2C+dessert%2C+fish%2C+caviar%2C+fois+gras%2C+meat%2C+kobe+beef%2C+french+cheese%2C+french+pastries%2C+game%2C+%2Cbeef%2C+pate%2C+terrine%2C+sausage%2C+cheese%2C+organic+meat%2C+';
var metaContents  = 'Retail+%26+wholesale++french+imported+organic*products+for+New+Jersey%2C+Connecticut+%26+New+York+restaurant+%2CFrench+and+Europeen+delicacies%2C+Online+e-commerce+catalog+for+wholesale+%26+retail+product....%0D%0A%0D%0A';
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();
};

