/* [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','901',jdecode('Home'),jdecode(''),'/901.html','true',[],'',''],
	['PAGE','5801',jdecode('About+us'),jdecode(''),'/5801/index.html','true',[ 
		['PAGE','5822',jdecode('Doug+Podzilni'),jdecode(''),'/5801/5822.html','true',[],'',''],
		['PAGE','6401',jdecode('Rhonda+Slone'),jdecode(''),'/5801/6401.html','true',[],'',''],
		['PAGE','6422',jdecode('Kurt+Blum'),jdecode(''),'/5801/6422.html','true',[],'',''],
		['PAGE','6443',jdecode('Ginger+Gerhart'),jdecode(''),'/5801/6443.html','true',[],'',''],
		['PAGE','6464',jdecode('Grant+Blum'),jdecode(''),'/5801/6464.html','true',[],'',''],
		['PAGE','8101',jdecode('Ryan+Mason'),jdecode(''),'/5801/8101.html','true',[],'','']
	],'',''],
	['PAGE','5843',jdecode('Products'),jdecode(''),'/5843/index.html','true',[ 
		['PAGE','5864',jdecode('Ghirardelli+Chocolate'),jdecode(''),'/5843/5864.html','true',[],'',''],
		['PAGE','6506',jdecode('Pacific+Natural+Foods'),jdecode(''),'/5843/6506.html','true',[],'',''],
		['PAGE','5906',jdecode('Pixie+Mate'),jdecode(''),'/5843/5906.html','true',[],'',''],
		['PAGE','6527',jdecode('Maui+Fruit+Blends'),jdecode(''),'/5843/6527.html','true',[],'',''],
		['PAGE','33701',jdecode('Sambazon'),jdecode(''),'/5843/33701.html','true',[],'',''],
		['PAGE','58601',jdecode('Whip+It'),jdecode(''),'/5843/58601.html','true',[],'',''],
		['PAGE','58622',jdecode('miam+miam'),jdecode(''),'/5843/58622.html','true',[],'',''],
		['PAGE','5885',jdecode('Island+Rose+Tea'),jdecode(''),'/5843/5885.html','true',[],'','']
	],'',''],
	['PAGE','5990',jdecode('Recipes'),jdecode(''),'/5990/index.html','true',[ 
		['PAGE','6569',jdecode('Barista+Dark+Drink+Prep.'),jdecode(''),'/5990/6569.html','true',[],'',''],
		['PAGE','6590',jdecode('Ghirardelli+Choc.+Drinks'),jdecode(''),'/5990/6590.html','true',[],'',''],
		['PAGE','31201',jdecode('Ghirardelli+Sauce+Recipes'),jdecode(''),'/5990/31201.html','true',[],'',''],
		['PAGE','25601',jdecode('Ghirardelli%2FMaui+Recipes'),jdecode(''),'/5990/25601.html','true',[],'','']
	],'',''],
	['PAGE','22401',jdecode('Photos'),jdecode(''),'/22401/index.html','true',[ 
		['PAGE','29801',jdecode('Ghirardelli'),jdecode(''),'/22401/29801.html','true',[],'','']
	],'',''],
	['PAGE','23001',jdecode('Upcoming+Events'),jdecode(''),'/23001.html','true',[],'',''],
	['PAGE','5927',jdecode('Contact+Us'),jdecode(''),'/5927/index.html','true',[ 
		['PAGE','5948',jdecode('Address'),jdecode(''),'/5927/5948.html','true',[],'',''],
		['PAGE','24401',jdecode('Questions%3F'),jdecode(''),'/5927/24401.html','true',[],'','']
	],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Retro';
theSitetree.paletteFamily='003366';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='202';
theSitetree.graphicsetId='240';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Retro',
				paletteFamily: 	'003366',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'202',
				graphicsetId: 	'240',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'003366',
				b_color: 		'D8F8F8',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'EAEAEA',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-3688']={
webappId:    '7008',
documentId:  '24401',
internalId:  '3688',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '901',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-4ac2b9943c7848e19eb6baba74bda442']={
webappId:    '7060',
documentId:  '29801',
internalId:  '4ac2b9943c7848e19eb6baba74bda442',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '901',
internalId:  '',
customField: '20091221-182848'
};
webappMappings['1501']=webappMappings['1501-13281824']={
webappId:    '1501',
documentId:  '901',
internalId:  '13281824',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20071227-172637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5822',
internalId:  '',
customField: '20091222-174403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6401',
internalId:  '',
customField: '20091222-174319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6422',
internalId:  '',
customField: '20091222-174449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6443',
internalId:  '',
customField: '20091222-174833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6464',
internalId:  '',
customField: '20091222-174642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8101',
internalId:  '',
customField: '20091222-172943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5843',
internalId:  '',
customField: '20091222-175016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5864',
internalId:  '',
customField: '20071228-161343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6506',
internalId:  '',
customField: '20091222-180553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5906',
internalId:  '',
customField: '20070124-112537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6527',
internalId:  '',
customField: '20070122-171108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33701',
internalId:  '',
customField: '20091222-180429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58601',
internalId:  '',
customField: '20091222-180345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58622',
internalId:  '',
customField: '20091222-175848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5885',
internalId:  '',
customField: '20091222-175717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5990',
internalId:  '',
customField: '20071227-174932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6569',
internalId:  '',
customField: '20070124-113543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6590',
internalId:  '',
customField: '20070124-120506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31201',
internalId:  '',
customField: '20070212-160248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25601',
internalId:  '',
customField: '20070129-103212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22401',
internalId:  '',
customField: '20070212-122034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29801',
internalId:  '',
customField: '20070212-123103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23001',
internalId:  '',
customField: '20080211-153102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5927',
internalId:  '',
customField: '20071227-175041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5948',
internalId:  '',
customField: '20071227-175131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24401',
internalId:  '',
customField: '20070126-172410'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INEXO9';
var companyName   = 'Gourmet+Source';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
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();
};
