/* [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 theSitetree=[ 
	['PAGE','22901',jdecode('Home'),jdecode(''),'/22901.html','true',[],''],
	['PAGE','22952',jdecode('Hours+of+Operation'),jdecode(''),'/22952.html','true',[],''],
	['PAGE','22973',jdecode('How+to+find+us'),jdecode(''),'/22973.html','true',[],''],
	['PAGE','22994',jdecode('Menus'),jdecode(''),'/22994/index.html','true',[ 
		['PAGE','23401',jdecode('Small+Plates+%26+Pastas'),jdecode(''),'/22994/23401.html','true',[],''],
		['PAGE','23422',jdecode('Main+Plates'),jdecode(''),'/22994/23422.html','true',[],''],
		['PAGE','89637',jdecode('Bar+Bites+Menu'),jdecode(''),'/22994/89637.html','true',[],'']
	],''],
	['PAGE','23015',jdecode('Wine+List'),jdecode(''),'/23015.html','true',[],''],
	['PAGE','23036',jdecode('Reservations'),jdecode(''),'/23036/index.html','true',[ 
		['PAGE','23057',jdecode('Party+service'),jdecode(''),'/23036/23057.html','false',[],''],
		['PAGE','23078',jdecode('Reservations'),jdecode(''),'/23036/23078.html','false',[],'']
	],''],
	['PAGE','69101',jdecode('Catering'),jdecode(''),'/69101/index.html','false',[ 
		['PAGE','69122',jdecode('Catering+Menu'),jdecode(''),'/69101/69122.html','true',[],'']
	],''],
	['PAGE','23099',jdecode('Press'),jdecode(''),'/23099.html','false',[],''],
	['PAGE','23120',jdecode('Contact'),jdecode(''),'/23120.html','true',[],''],
	['PAGE','23141',jdecode('About+us'),jdecode(''),'/23141/index.html','false',[ 
		['PAGE','23162',jdecode('Our+team'),jdecode(''),'/23141/23162.html','true',[],''],
		['PAGE','23183',jdecode('Our+chef'),jdecode(''),'/23141/23183.html','true',[],'']
	],''],
	['PAGE','23204',jdecode('Imprint'),jdecode(''),'/23204.html','false',[],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Sportive';
theSitetree.paletteFamily='FADE8A';
theSitetree.keyvisualId='2682';
theSitetree.keyvisualName='speisen.jpg';
theSitetree.fontsetId='220';
theSitetree.graphicsetId='261';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FADE8A';
var theTemplate={
				name: 			'Sportive',
				paletteFamily: 	'FADE8A',
				keyvisualId: 	'2682',
				keyvisualName: 	'speisen.jpg',
				fontsetId: 		'220',
				graphicsetId: 	'261',
				contentColor: 	'000000',
				contentBGColor: 'FADE8A',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FADE8A',
				b_color: 		'D0B976',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22901',
internalId:  '',
customField: '20090222-101410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22952',
internalId:  '',
customField: '20090222-101848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22973',
internalId:  '',
customField: '20090225-093320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23204',
internalId:  '',
customField: '20090215-101615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23036',
internalId:  '',
customField: '20090221-104620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22994',
internalId:  '',
customField: '20090222-100834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23401',
internalId:  '',
customField: '20090502-091311'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '22973',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23099',
internalId:  '',
customField: '20090215-101615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23120',
internalId:  '',
customField: '20090223-114130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23141',
internalId:  '',
customField: '20090215-101615'
};
webappMappings['7008']=webappMappings['7008-1918']={
webappId:    '7008',
documentId:  '23120',
internalId:  '1918',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23015',
internalId:  '',
customField: '20090502-093458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69101',
internalId:  '',
customField: '20090218-085122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23422',
internalId:  '',
customField: '20090502-091715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23057',
internalId:  '',
customField: '20090215-101615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23078',
internalId:  '',
customField: '20090215-101615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69122',
internalId:  '',
customField: '20090218-085122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23162',
internalId:  '',
customField: '20090215-101615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23183',
internalId:  '',
customField: '20090215-101615'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '22901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89637',
internalId:  '',
customField: '20090605-101138'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INL1UA';
var companyName   = 'Basil+Garden+-+Genuine+Italian';
var htmlTitle	  = 'Basil+Garden+Italian+Restaurant+Boca+Raton+Florida';
var metaKeywords  = 'Restaurants+Boca+Raton%2C+Italian+Restaurants+Boca+Raton%2C+Restaurants+Delray+Beach%2C+Restaurants%2C+Restaurants+Italian';
var metaContents  = 'Basil+Garden+Boca+Raton%2C+Basil+garden+Italian+Restaurant+Boca+Raton%2C+Italian+restaurants+Boca+Raton%2C+restaurants+delray+beach+restaurants+south+florida+italian+restaurants+south+florida+';
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();
};
