/* [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','32',jdecode('Home'),jdecode(''),'/32.html','true',[],'',''],
	['PAGE','21912',jdecode('Recipes'),jdecode(''),'/21912/index.html','true',[ 
		['PAGE','29212',jdecode('Beef'),jdecode(''),'/21912/29212.html','true',[],'',''],
		['PAGE','25033',jdecode('Pork'),jdecode(''),'/21912/25033.html','true',[],'',''],
		['PAGE','35012',jdecode('Chicken'),jdecode(''),'/21912/35012.html','true',[],'',''],
		['PAGE','25054',jdecode('Fish'),jdecode(''),'/21912/25054.html','true',[],'',''],
		['PAGE','25075',jdecode('Pasta'),jdecode(''),'/21912/25075.html','true',[],'',''],
		['PAGE','25096',jdecode('Vegetable'),jdecode(''),'/21912/25096.html','true',[],'',''],
		['PAGE','25012',jdecode('Egg'),jdecode(''),'/21912/25012.html','true',[],'',''],
		['PAGE','30012',jdecode('Sauces+%26+Dressings+'),jdecode(''),'/21912/30012.html','true',[],'',''],
		['PAGE','33412',jdecode('Rice'),jdecode(''),'/21912/33412.html','true',[],'',''],
		['PAGE','39922',jdecode('Dessert'),jdecode(''),'/21912/39922.html','true',[],'','']
	],'',''],
	['PAGE','31912',jdecode('Anti-Aging'),jdecode(''),'/31912/index.html','true',[ 
		['PAGE','32912',jdecode('Beauty'),jdecode(''),'/31912/32912.html','true',[],'',''],
		['PAGE','32933',jdecode('food'),jdecode(''),'/31912/32933.html','true',[],'','']
	],'',''],
	['PAGE','898',jdecode('Peekskill+Aikido'),jdecode(''),'/898/index.html','true',[ 
		['PAGE','14926',jdecode('What+is+Aikido%3F'),jdecode(''),'/898/14926.html','true',[],'',''],
		['PAGE','14935',jdecode('Class+Schedule+%26+Fees'),jdecode(''),'/898/14935.html','true',[],'',''],
		['PAGE','15167',jdecode('Martial+Arts+and+Children'),jdecode(''),'/898/15167.html','true',[],'',''],
		['PAGE','15543',jdecode('Location'),jdecode(''),'/898/15543.html','true',[],'','']
	],'',''],
	['PAGE','943',jdecode('Contact'),jdecode(''),'/943.html','true',[],'',''],
	['PAGE','4068',jdecode('About+us'),jdecode(''),'/4068.html','true',[],'',''],
	['PAGE','6968',jdecode('Authorize.Net'),jdecode(''),'/6968.html','true',[],'','']];
var siteelementCount=23;
theSitetree.topTemplateName='Angkor';
theSitetree.paletteFamily='A5B351';
theSitetree.keyvisualId='6861';
theSitetree.keyvisualName='kv_6861.jpg';
theSitetree.fontsetId='11212';
theSitetree.graphicsetId='12031';
theSitetree.contentColor='657025';
theSitetree.contentBGColor='C1CF70';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Angkor',
				paletteFamily: 	'A5B351',
				keyvisualId: 	'6861',
				keyvisualName: 	'kv_6861.jpg',
				fontsetId: 		'11212',
				graphicsetId: 	'12031',
				contentColor: 	'657025',
				contentBGColor: 'C1CF70',
				a_color: 		'C1CF70',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '32',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32',
internalId:  '',
customField: '20101012-095130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '898',
internalId:  '',
customField: '20110824-154802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14926',
internalId:  '',
customField: '20080409-190723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14935',
internalId:  '',
customField: '20110625-115143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15167',
internalId:  '',
customField: '20080614-204238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15543',
internalId:  '',
customField: '20100918-143500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25012',
internalId:  '',
customField: '20101205-190435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25033',
internalId:  '',
customField: '20101013-174559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21912',
internalId:  '',
customField: '20101013-174201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '943',
internalId:  '',
customField: '20080404-012000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4068',
internalId:  '',
customField: '20080404-011103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6968',
internalId:  '',
customField: '20080325-193522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25054',
internalId:  '',
customField: '20110509-184052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25075',
internalId:  '',
customField: '20100923-153118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25096',
internalId:  '',
customField: '20100927-192405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29212',
internalId:  '',
customField: '20101013-180841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30012',
internalId:  '',
customField: '20100927-191224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31912',
internalId:  '',
customField: '20101017-192604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32912',
internalId:  '',
customField: '20101102-160617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32933',
internalId:  '',
customField: '20100927-161723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33412',
internalId:  '',
customField: '20101013-184815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35012',
internalId:  '',
customField: '20101013-184657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39922',
internalId:  '',
customField: '20110509-194210'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050IN31JC';
var companyName   = 'Angel+Garden';
var htmlTitle	  = 'Angel+Garden';
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();
};

