/* [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','2401',jdecode('Home'),jdecode(''), jdecode('%2F2401.html'), 'true',[],'',''],
	['PAGE','18922',jdecode('Shop+Our+Online+Store%21%21%21'),jdecode(''), jdecode('%2F18922.html'), 'true',[],'',''],
	['PAGE','72234',jdecode('Lemon+and+Lime+Trees'),jdecode(''), jdecode('%2F72234.html'), 'true',[],'',''],
	['PAGE','5364',jdecode('Photos+of+Tropical+Plants'),jdecode(''), jdecode('%2F5364%2Findex.html'), 'true',[ 
		['PAGE','205288',jdecode('Tropical+Plants+by+Name'),jdecode(''), jdecode('%2F5364%2F205288.html'), 'true',[],'','']
	],'',''],
	['PAGE','19901',jdecode('Browse+Our+Gift+Shop'),jdecode(''), jdecode('%2F19901.html'), 'true',[],'',''],
	['PAGE','85987',jdecode('Candy+and+Gourmet+Food'),jdecode(''), jdecode('%2F85987.html'), 'true',[],'',''],
	['PAGE','75366',jdecode('How+to+Place+an+Order'),jdecode(''), jdecode('%2F75366.html'), 'true',[],'',''],
	['PAGE','162988',jdecode('Vietnam+and+Cambodia%21'),jdecode(''), jdecode('%2F162988%2Findex.html'), 'true',[ 
		['PAGE','148788',jdecode('Anchorage+to+Saigon'),jdecode(''), jdecode('%2F162988%2F148788.html'), 'true',[],'',''],
		['PAGE','160588',jdecode('Saigon+to+Mekong+Delta'),jdecode(''), jdecode('%2F162988%2F160588.html'), 'true',[],'',''],
		['PAGE','163988',jdecode('Phnom+Penh%2C+Cambodia'),jdecode(''), jdecode('%2F162988%2F163988.html'), 'true',[],'',''],
		['PAGE','175488',jdecode('Siem+Reap%2C+Cambodia'),jdecode(''), jdecode('%2F162988%2F175488.html'), 'true',[],'','']
	],'',''],
	['PAGE','167088',jdecode('Travel+Forum'),jdecode(''), jdecode('%2F167088.html'), 'false',[],'',''],
	['PAGE','134888',jdecode('View+Our+TV+Commercials'),jdecode(''), jdecode('%2F134888.html'), 'true',[],'',''],
	['PAGE','98277',jdecode('CLASSES+%28NEW%29+%21'),jdecode(''), jdecode('%2F98277.html'), 'false',[],'',''],
	['PAGE','5301',jdecode('Photos+of+our+Annuals'),jdecode(''), jdecode('%2F5301%2Findex.html'), 'true',[ 
		['PAGE','207888',jdecode('Annuals+from+A-I'),jdecode(''), jdecode('%2F5301%2F207888.html'), 'true',[],'',''],
		['PAGE','61855',jdecode('Annuals+from+I-Z'),jdecode(''), jdecode('%2F5301%2F61855.html'), 'true',[],'','']
	],'',''],
	['PAGE','5322',jdecode('Perennials'),jdecode(''), jdecode('%2F5322%2Findex.html'), 'true',[ 
		['PAGE','56734',jdecode('About+Perennials'),jdecode(''), jdecode('%2F5322%2F56734.html'), 'true',[],'',''],
		['PAGE','188988',jdecode('Perennial+Photos'),jdecode(''), jdecode('%2F5322%2F188988.html'), 'false',[],'',''],
		['PAGE','189009',jdecode('Perennials+By+Name'),jdecode(''), jdecode('%2F5322%2F189009.html'), 'true',[],'','']
	],'',''],
	['PAGE','5343',jdecode('Herbs'),jdecode(''), jdecode('%2F5343.html'), 'true',[],'',''],
	['PAGE','5385',jdecode('Berries+and+Fruit'),jdecode(''), jdecode('%2F5385.html'), 'true',[],'',''],
	['PAGE','18901',jdecode('Vegetables'),jdecode(''), jdecode('%2F18901.html'), 'true',[],'',''],
	['PAGE','5406',jdecode('Trees%2C+Bushes+and+Shrubs'),jdecode(''), jdecode('%2F5406.html'), 'true',[],'',''],
	['PAGE','104688',jdecode('Amaryllis+'),jdecode(''), jdecode('%2F104688.html'), 'true',[],'',''],
	['PAGE','95766',jdecode('Fall+Bulbs'),jdecode(''), jdecode('%2F95766.html'), 'true',[],'',''],
	['PAGE','131988',jdecode('Cooking+Classes%21%21%21'),jdecode(''), jdecode('%2F131988.html'), 'false',[],'',''],
	['PAGE','71234',jdecode('Christmas+Trees'),jdecode(''), jdecode('%2F71234.html'), 'true',[],'',''],
	['PAGE','2452',jdecode('Contact+Us'),jdecode(''), jdecode('%2F2452.html'), 'true',[],'',''],
	['PAGE','33701',jdecode('About+Us'),jdecode(''), jdecode('%2F33701.html'), 'true',[],'',''],
	['PAGE','35601',jdecode('Business+Hours'),jdecode(''), jdecode('%2F35601.html'), 'true',[],'',''],
	['PAGE','126888',jdecode('How+to+Find+us'),jdecode(''), jdecode('%2F126888.html'), 'true',[],'','']];
var siteelementCount=35;
theSitetree.topTemplateName='Angkor';
theSitetree.paletteFamily='879ED6';
theSitetree.keyvisualId='6862';
theSitetree.keyvisualName='kv_6862.jpg';
theSitetree.fontsetId='11211';
theSitetree.graphicsetId='12030';
theSitetree.contentColor='354B86';
theSitetree.contentBGColor='94AAE1';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'hostway_generic',
  product: 'WSCSYSSSSLYTC245'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Angkor',
				paletteFamily: 	'879ED6',
				keyvisualId: 	'6862',
				keyvisualName: 	'kv_6862.jpg',
				fontsetId: 		'11211',
				graphicsetId: 	'12030',
				contentColor: 	'354B86',
				contentBGColor: '94AAE1',
				a_color: 		'94AAE1',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2401',
internalId:  '',
customField: '20120113-184620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98277',
internalId:  '',
customField: '20101028-133157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20120111-134726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2452',
internalId:  '',
customField: '20120103-182556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19901',
internalId:  '',
customField: '20111231-212306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33701',
internalId:  '',
customField: '20111231-200524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5343',
internalId:  '',
customField: '20120104-213034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5322',
internalId:  '',
customField: '20111231-195703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18901',
internalId:  '',
customField: '20111231-200037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5364',
internalId:  '',
customField: '20111231-210301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56734',
internalId:  '',
customField: '20111231-195752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5406',
internalId:  '',
customField: '20111231-200133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5385',
internalId:  '',
customField: '20111231-195958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18922',
internalId:  '',
customField: '20111231-211737'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '126888',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126888',
internalId:  '',
customField: '20111231-194743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35601',
internalId:  '',
customField: '20111231-194855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61855',
internalId:  '',
customField: '20120104-214724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71234',
internalId:  '',
customField: '20111231-205528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95766',
internalId:  '',
customField: '20111231-200257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72234',
internalId:  '',
customField: '20111231-211857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85987',
internalId:  '',
customField: '20111231-195308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75366',
internalId:  '',
customField: '20111231-212433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131988',
internalId:  '',
customField: '20111231-200331'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104688',
internalId:  '',
customField: '20111231-200216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134888',
internalId:  '',
customField: '20111231-212713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148788',
internalId:  '',
customField: '20111223-214257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160588',
internalId:  '',
customField: '20111203-193518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162988',
internalId:  '',
customField: '20111231-212619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163988',
internalId:  '',
customField: '20111231-152633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175488',
internalId:  '',
customField: '20111203-200353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167088',
internalId:  '',
customField: '20111126-182713'
};
webappMappings['1003']=webappMappings['1003-ahw050inz96c133e25e96af']={
webappId:    '1003',
documentId:  '167088',
internalId:  'ahw050inz96c133e25e96af',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189009',
internalId:  '',
customField: '20111231-195831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188988',
internalId:  '',
customField: '20111217-214919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205288',
internalId:  '',
customField: '20111231-212039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207888',
internalId:  '',
customField: '20120104-214537'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INZ96C';
var companyName   = 'Mile+5.2+Greenhouse+%26+Gift+Shop%2C+LLC';
var htmlTitle	  = 'Mile+5.2+Greenhouse+%26+Gift+Shop%2C+LLC';
var metaKeywords  = 'Lemon+Trees%2C+Lime+Trees%2C++Banana+Tree%2C+Citrus+Trees%2C+Anchorage+Greenhouse%2C+Eagle+River+Greenhouse%2C++Eagle+River+Nursery%2C+Hydrangea%2C+Pre+de+Provence+Soap%2C+Vietnam%2C+Cambodia%2C++Orange+Tree%2C+Bonsai%2C+Mile+5.2+Greenhouse%2C+Jasmine%2C+Gardenias%2C+perennials%2C+unusual+tropical+plants%2C+herbs';
var metaContents  = 'Lemon+Tree%2C+Lime+Tree%2C+Citrus+Tree%2C+Orange+Tree%2C+Anchorage+Greenhouse%2C+Anchorage+Nursery%2C+Mile+5.2+Greenhouse%2C+Eagle+River+Nursery%2C+Eagle+River+Greenhouse%2C+Unusual+tropical+plants';
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();
};

