/* [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','86',jdecode('Home'),jdecode(''),'/86.html','true',[],'',''],
	['PAGE','26001',jdecode('Private+Parties%2C+Weddings'),jdecode(''),'/26001.html','true',[],'',''],
	['PAGE','22601',jdecode('Artisanal+Gourmet+Gifts'),jdecode(''),'/22601.html','true',[],'',''],
	['PAGE','116',jdecode('Bed+and+Breakfast'),jdecode(''),'/116.html','true',[],'',''],
	['PAGE','125',jdecode('Cooking+%26+Wine+classes'),jdecode(''),'/125.html','true',[],'',''],
	['PAGE','575',jdecode('Domaine+de+Claudine'),jdecode(''),'/575.html','true',[],'',''],
	['PAGE','2747',jdecode('Recipes'),jdecode(''),'/2747.html','true',[],'',''],
	['PAGE','3044',jdecode('Appetizers'),jdecode(''),'/3044/index.html','true',[ 
		['PAGE','8101',jdecode('Artichoke+dip'),jdecode(''),'/3044/8101.html','true',[],'',''],
		['PAGE','10201',jdecode('Crab+cakes'),jdecode(''),'/3044/10201.html','true',[],'',''],
		['PAGE','18801',jdecode('Figs+and+Prociutto'),jdecode(''),'/3044/18801.html','true',[],'',''],
		['PAGE','5302',jdecode('Mousse+of+Chicken+Livers'),jdecode(''),'/3044/5302.html','true',[],'',''],
		['PAGE','12901',jdecode('Peaches+with+Crab'),jdecode(''),'/3044/12901.html','true',[],'',''],
		['PAGE','9601',jdecode('Seafood+dip'),jdecode(''),'/3044/9601.html','true',[],'',''],
		['PAGE','4729',jdecode('Snails'),jdecode(''),'/3044/4729.html','true',[],'','']
	],'',''],
	['PAGE','3053',jdecode('Desserts'),jdecode(''),'/3053.html','true',[],'',''],
	['PAGE','3062',jdecode('Fish+Entrees'),jdecode(''),'/3062.html','true',[],'',''],
	['PAGE','3071',jdecode('Meat+Entrees'),jdecode(''),'/3071/index.html','true',[ 
		['PAGE','5159',jdecode('Zucchinis+stuffed+with+Turkey'),jdecode(''),'/3071/5159.html','true',[],'','']
	],'',''],
	['PAGE','11101',jdecode('Preserves'),jdecode(''),'/11101/index.html','true',[ 
		['PAGE','11501',jdecode('Fig+preserves'),jdecode(''),'/11101/11501.html','true',[],'','']
	],'',''],
	['PAGE','3080',jdecode('Salades'),jdecode(''),'/3080.html','true',[],'',''],
	['PAGE','3089',jdecode('Sauces'),jdecode(''),'/3089.html','true',[],'',''],
	['PAGE','3098',jdecode('Soups'),jdecode(''),'/3098/index.html','true',[ 
		['PAGE','4173',jdecode('Zucchini+and+Herbs+Cold+Summer+Soup'),jdecode(''),'/3098/4173.html','true',[],'',''],
		['PAGE','4553',jdecode('Gaspacho'),jdecode(''),'/3098/4553.html','true',[],'','']
	],'',''],
	['PAGE','3107',jdecode('Vegetables'),jdecode(''),'/3107/index.html','true',[ 
		['PAGE','4638',jdecode('Mushrooms'),jdecode(''),'/3107/4638.html','true',[],'','']
	],'',''],
	['PAGE','2931',jdecode('Tips+%26+Tricks'),jdecode(''),'/2931.html','true',[],'',''],
	['PAGE','4916',jdecode('French+Wines'),jdecode(''),'/4916/index.html','true',[ 
		['PAGE','4925',jdecode('Bordeaux'),jdecode(''),'/4916/4925.html','true',[],'',''],
		['PAGE','4980',jdecode('The+Loire+Valley'),jdecode(''),'/4916/4980.html','true',[],'',''],
		['PAGE','5074',jdecode('Provence'),jdecode(''),'/4916/5074.html','true',[],'','']
	],'','']];
var siteelementCount=33;
theSitetree.topTemplateName='Billy';
theSitetree.paletteFamily='8D7C50';
theSitetree.keyvisualId='7078';
theSitetree.keyvisualName='kv_7078.jpg';
theSitetree.fontsetId='16390';
theSitetree.graphicsetId='12126';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='8D7C50';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Billy',
				paletteFamily: 	'8D7C50',
				keyvisualId: 	'7078',
				keyvisualName: 	'kv_7078.jpg',
				fontsetId: 		'16390',
				graphicsetId: 	'12126',
				contentColor: 	'FFFFFF',
				contentBGColor: '8D7C50',
				a_color: 		'000000',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '86',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-59ecc86c14579183b53e70f6ed1ec95c']={
webappId:    '7060',
documentId:  '575',
internalId:  '59ecc86c14579183b53e70f6ed1ec95c',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86',
internalId:  '',
customField: '20100527-150405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116',
internalId:  '',
customField: '20070607-155946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125',
internalId:  '',
customField: '20091205-151858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '575',
internalId:  '',
customField: '20080510-222704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2747',
internalId:  '',
customField: '20091019-085917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3044',
internalId:  '',
customField: '20091019-085735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8101',
internalId:  '',
customField: '20080704-115503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10201',
internalId:  '',
customField: '20080704-123029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5302',
internalId:  '',
customField: '20080608-191922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12901',
internalId:  '',
customField: '20080806-131933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9601',
internalId:  '',
customField: '20080630-163139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4729',
internalId:  '',
customField: '20080606-161841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3053',
internalId:  '',
customField: '20080605-165814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3062',
internalId:  '',
customField: '20080605-165814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3071',
internalId:  '',
customField: '20080607-024143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5159',
internalId:  '',
customField: '20080607-030005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11101',
internalId:  '',
customField: '20080730-152346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11501',
internalId:  '',
customField: '20080730-161259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3080',
internalId:  '',
customField: '20080605-165814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3089',
internalId:  '',
customField: '20080605-165815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3098',
internalId:  '',
customField: '20080605-193145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4173',
internalId:  '',
customField: '20080605-193759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4553',
internalId:  '',
customField: '20080606-160616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3107',
internalId:  '',
customField: '20080606-161457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4638',
internalId:  '',
customField: '20080606-162943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2931',
internalId:  '',
customField: '20080607-025415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4916',
internalId:  '',
customField: '20080607-203751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4925',
internalId:  '',
customField: '20080607-203638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4980',
internalId:  '',
customField: '20080607-014235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5074',
internalId:  '',
customField: '20080607-014448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18801',
internalId:  '',
customField: '20090724-174142'
};
webappMappings['5003']=webappMappings['5003-tid:1;pid:WSCSYSSSSLYTC24G']={
webappId:    '5003',
documentId:  '86',
internalId:  'tid:1;pid:WSCSYSSSSLYTC24G',
customField: 'en:US::;language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22601',
internalId:  '',
customField: '20091205-182405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26001',
internalId:  '',
customField: '20100527-150935'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INX34V';
var companyName   = 'DomaineDeClaudine.com';
var htmlTitle	  = 'DomaineDeClaudine.com';
var metaKeywords  = '+Florence+SC+Bed+and+Breakfast+++Cooking+classes++++Claudine+Delvaux+Stallworth+++relocation+Services%2C+Private+parties%2C+weddings';
var metaContents  = 'Florence+SC+Bed+and+Breakfast%2C+recipes%2C+++++Cooking+classes%2C+Private+Parties%2C+Weddings++Claudine+Delvaux+Stallworth+%2C+Relocation+Services';
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();
};
