/* [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','2201',jdecode('Home'),jdecode(''), jdecode('%2F2201.html'), 'true',[],'',''],
	['PAGE','2252',jdecode('Hours+of+Operation'),jdecode(''), jdecode('%2F2252.html'), 'true',[],'',''],
	['PAGE','2294',jdecode('Menu'),jdecode(''), jdecode('%2F2294%2Findex.html'), 'true',[ 
		['PAGE','122318',jdecode('Appetizers'),jdecode(''), jdecode('%2F2294%2F122318.html'), 'true',[],'',''],
		['PAGE','122339',jdecode('Soup+and+Salad'),jdecode(''), jdecode('%2F2294%2F122339.html'), 'true',[],'',''],
		['PAGE','122718',jdecode('Entrees'),jdecode(''), jdecode('%2F2294%2F122718.html'), 'true',[],'',''],
		['PAGE','123718',jdecode('Sides+and+Add-Ons'),jdecode(''), jdecode('%2F2294%2F123718.html'), 'true',[],'',''],
		['PAGE','122739',jdecode('Dessert'),jdecode(''), jdecode('%2F2294%2F122739.html'), 'true',[],'',''],
		['PAGE','131385',jdecode('Lunch+Menu'),jdecode(''), jdecode('%2F2294%2F131385.html'), 'true',[],'','']
	],'',''],
	['PAGE','139585',jdecode('Gluten+Friendly+Menu'),jdecode(''), jdecode('%2F139585.html'), 'true',[],'',''],
	['PAGE','25501',jdecode('Drink+Menu'),jdecode(''), jdecode('%2F25501%2Findex.html'), 'true',[ 
		['PAGE','128285',jdecode('Wines'),jdecode(''), jdecode('%2F25501%2F128285.html'), 'true',[],'',''],
		['PAGE','128306',jdecode('Beer'),jdecode(''), jdecode('%2F25501%2F128306.html'), 'true',[],'',''],
		['PAGE','128327',jdecode('Available+Liquors'),jdecode(''), jdecode('%2F25501%2F128327.html'), 'true',[],'',''],
		['PAGE','128348',jdecode('Coffee+Drinks'),jdecode(''), jdecode('%2F25501%2F128348.html'), 'true',[],'','']
	],'',''],
	['PAGE','2315',jdecode('Banquets'),jdecode(''), jdecode('%2F2315%2Findex.html'), 'true',[ 
		['PAGE','124218',jdecode('Lunch+Banquet+Menu'),jdecode(''), jdecode('%2F2315%2F124218.html'), 'true',[],'',''],
		['PAGE','140285',jdecode('Salad+and+Sandwich+Lunch+Banquet'),jdecode(''), jdecode('%2F2315%2F140285.html'), 'true',[],'','']
	],'',''],
	['PAGE','137185',jdecode('Catering+Menu'),jdecode(''), jdecode('%2F137185%2Findex.html'), 'true',[ 
		['PAGE','137685',jdecode('Corporate+Lunch'),jdecode(''), jdecode('%2F137185%2F137685.html'), 'true',[],'',''],
		['PAGE','137985',jdecode('Hot+Buffet'),jdecode(''), jdecode('%2F137185%2F137985.html'), 'true',[],'',''],
		['PAGE','137706',jdecode('Breakfast'),jdecode(''), jdecode('%2F137185%2F137706.html'), 'true',[],'',''],
		['PAGE','137727',jdecode('Barbeque+Catering'),jdecode(''), jdecode('%2F137185%2F137727.html'), 'true',[],'',''],
		['PAGE','137748',jdecode('Party+Subs+and+Platters'),jdecode(''), jdecode('%2F137185%2F137748.html'), 'true',[],'',''],
		['PAGE','137769',jdecode('Wedding+Package'),jdecode(''), jdecode('%2F137185%2F137769.html'), 'true',[],'',''],
		['PAGE','137790',jdecode('Pan+Foods+and+Trays'),jdecode(''), jdecode('%2F137185%2F137790.html'), 'true',[],'','']
	],'',''],
	['PAGE','2273',jdecode('How+to+Find+Us'),jdecode(''), jdecode('%2F2273.html'), 'true',[],'',''],
	['PAGE','2399',jdecode('Contact+Us'),jdecode(''), jdecode('%2F2399.html'), 'true',[],'',''],
	['PAGE','2420',jdecode('About+us'),jdecode(''), jdecode('%2F2420.html'), 'true',[],'','']];
var siteelementCount=29;
theSitetree.topTemplateName='Tendril';
theSitetree.paletteFamily='D9F4D5';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33095';
theSitetree.graphicsetId='14058';
theSitetree.contentColor='3B8030';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLY0X9RC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Tendril',
				paletteFamily: 	'D9F4D5',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33095',
				graphicsetId: 	'14058',
				contentColor: 	'3B8030',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2201',
internalId:  '',
customField: '20110414-114629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2252',
internalId:  '',
customField: '20110410-091313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2273',
internalId:  '',
customField: '20091121-183541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2315',
internalId:  '',
customField: '20110420-091047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2294',
internalId:  '',
customField: '20091121-225017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25501',
internalId:  '',
customField: '20091126-010207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2399',
internalId:  '',
customField: '20101014-112000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2420',
internalId:  '',
customField: '20091121-183631'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137985',
internalId:  '',
customField: '20110415-124227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123718',
internalId:  '',
customField: '20110924-205456'
};
webappMappings['1501']=webappMappings['1501-15294852']={
webappId:    '1501',
documentId:  '2201',
internalId:  '15294852',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122339',
internalId:  '',
customField: '20110924-203910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122318',
internalId:  '',
customField: '20110924-203805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122718',
internalId:  '',
customField: '20110924-205322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122739',
internalId:  '',
customField: '20100417-134823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124218',
internalId:  '',
customField: '20110420-090336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128306',
internalId:  '',
customField: '20110415-123915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128285',
internalId:  '',
customField: '20110424-152438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137685',
internalId:  '',
customField: '20110415-124157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137185',
internalId:  '',
customField: '20110415-122009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128327',
internalId:  '',
customField: '20110406-131317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128348',
internalId:  '',
customField: '20110406-131809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131385',
internalId:  '',
customField: '20101022-143731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137706',
internalId:  '',
customField: '20110415-124358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137727',
internalId:  '',
customField: '20110424-152934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137748',
internalId:  '',
customField: '20110420-091205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137769',
internalId:  '',
customField: '20110415-124306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137790',
internalId:  '',
customField: '20110415-134046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139585',
internalId:  '',
customField: '20110420-085311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140285',
internalId:  '',
customField: '20110420-090743'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30I7C11J';
var companyName   = 'Steak.+Seafood.+Pasta';
var htmlTitle	  = 'Savannah%27s+Restaurant';
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();
};

