/* [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','1401',jdecode('Home'),jdecode(''),'/1401.html','true',[],'',''],
	['PAGE','4264',jdecode('Our+services'),jdecode(''),'/4264/index.html','true',[ 
		['PAGE','4306',jdecode('Catering'),jdecode(''),'/4264/4306.html','true',[],'',''],
		['PAGE','11095',jdecode('Weddings+%26+Socials'),jdecode(''),'/4264/11095.html','true',[],'','']
	],'',''],
	['PAGE','4348',jdecode('Weddings+2010+Menus'),jdecode(''),'/4348.html','true',[],'',''],
	['PAGE','53059',jdecode('Entrees'),jdecode(''),'/53059.html','true',[],'',''],
	['PAGE','53080',jdecode('Salads+and+Sides+'),jdecode(''),'/53080.html','true',[],'',''],
	['PAGE','71239',jdecode('Graduation+Menu%26%23x27%3Bs'),jdecode(''),'/71239.html','true',[],'',''],
	['PAGE','54159',jdecode('Stations'),jdecode(''),'/54159.html','true',[],'',''],
	['PAGE','9451',jdecode('Cakes+%26+Dessert+Bar'),jdecode(''),'/9451.html','true',[],'',''],
	['PAGE','11158',jdecode('Kids+Corner-+Classes+'),jdecode(''),'/11158.html','true',[],'',''],
	['PAGE','27651',jdecode('Gallery'),jdecode(''),'/27651.html','true',[],'',''],
	['PAGE','31259',jdecode('Kids+Camps+Photos'),jdecode(''),'/31259.html','true',[],'',''],
	['PAGE','43980',jdecode('Appetizers'),jdecode(''),'/43980.html','false',[],'',''],
	['PAGE','54059',jdecode('Super+Bowl+Menu'),jdecode(''),'/54059.html','false',[],'',''],
	['PAGE','43959',jdecode('Holiday+Menus'),jdecode(''),'/43959.html','false',[],'',''],
	['PAGE','44759',jdecode('More+Holiday+Menu%26%23x27%3Bs'),jdecode(''),'/44759.html','false',[],'',''],
	['PAGE','44001',jdecode('Holiday+Desserts'),jdecode(''),'/44001.html','false',[],'',''],
	['PAGE','45859',jdecode('Policies+and+Terms'),jdecode(''),'/45859.html','false',[],'',''],
	['PAGE','30559',jdecode('Recipes'),jdecode(''),'/30559.html','false',[],'',''],
	['PAGE','9493',jdecode('Contact'),jdecode(''),'/9493.html','true',[],'',''],
	['PAGE','11023',jdecode('Blog'),jdecode(''),'/11023.html','true',[],'',''],
	['PAGE','11074',jdecode('Guestbook'),jdecode(''),'/11074.html','true',[],'','']];
var siteelementCount=23;
theSitetree.topTemplateName='Bubbles';
theSitetree.paletteFamily='FF7C00';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16';
theSitetree.graphicsetId='10';
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: 			'Bubbles',
				paletteFamily: 	'FF7C00',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16',
				graphicsetId: 	'10',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FF7C00',
				b_color: 		'FF8900',
				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:  '1401',
internalId:  '',
customField: '20100522-112511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53059',
internalId:  '',
customField: '20100420-170406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11023',
internalId:  '',
customField: '20090329-025915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11158',
internalId:  '',
customField: '20100506-121621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4264',
internalId:  '',
customField: '20100522-121941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54059',
internalId:  '',
customField: '20100114-102703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4306',
internalId:  '',
customField: '20100522-121430'
};
webappMappings['7060']=webappMappings['7060-6e61ee33d4604981b1a45df61369792e']={
webappId:    '7060',
documentId:  '27651',
internalId:  '6e61ee33d4604981b1a45df61369792e',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4348',
internalId:  '',
customField: '20100521-153321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11095',
internalId:  '',
customField: '20100522-124735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11074',
internalId:  '',
customField: '20090329-025132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9451',
internalId:  '',
customField: '20100210-021842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9493',
internalId:  '',
customField: '20091231-145110'
};
webappMappings['7050']=webappMappings['7050-1440']={
webappId:    '7050',
documentId:  '11023',
internalId:  '1440',
customField: 'language:en;country:US;'
};
webappMappings['1002']=webappMappings['1002-11074avfl30inhww5']={
webappId:    '1002',
documentId:  '11074',
internalId:  '11074avfl30inhww5',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53080',
internalId:  '',
customField: '20100420-170432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27651',
internalId:  '',
customField: '20090614-151450'
};
webappMappings['7060']=webappMappings['7060-729ba1e2661f45fb5e1e369a77fee5c3']={
webappId:    '7060',
documentId:  '31259',
internalId:  '729ba1e2661f45fb5e1e369a77fee5c3',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43959',
internalId:  '',
customField: '20091013-170402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30559',
internalId:  '',
customField: '20090614-134901'
};
webappMappings['7008']=webappMappings['7008-8572']={
webappId:    '7008',
documentId:  '9493',
internalId:  '8572',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43980',
internalId:  '',
customField: '20091004-161147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31259',
internalId:  '',
customField: '20090618-111225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44001',
internalId:  '',
customField: '20091004-161147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44759',
internalId:  '',
customField: '20091005-205134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45859',
internalId:  '',
customField: '20091005-205346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54159',
internalId:  '',
customField: '20100103-152344'
};
webappMappings['1501']=webappMappings['1501-13865918']={
webappId:    '1501',
documentId:  '1401',
internalId:  '13865918',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71239',
internalId:  '',
customField: '20100506-120109'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHWW5';
var companyName   = 'Rangel+Catering+%26+Event+Planner';
var htmlTitle	  = 'Cater+Wedding+Cakes++Event+Planner';
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();
};
