/* [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','2101',jdecode('Home'),jdecode(''),'/2101.html','true',[],'',''],
	['PAGE','2152',jdecode('Products'),jdecode(''),'/2152/index.html','true',[ 
		['PAGE','3201',jdecode('Fertilizers'),jdecode(''),'/2152/3201.html','true',[],'',''],
		['PAGE','3222',jdecode('Soils+and+Conditioners'),jdecode(''),'/2152/3222.html','true',[],'',''],
		['PAGE','3243',jdecode('Miscellaneous+Products'),jdecode(''),'/2152/3243.html','true',[],'','']
	],'',''],
	['PAGE','2173',jdecode('Rebate+Offers'),jdecode(''),'/2173.html','true',[],'',''],
	['PAGE','2194',jdecode('Contact+Us'),jdecode(''),'/2194.html','true',[],'',''],
	['PAGE','2215',jdecode('Delivery+Areas'),jdecode(''),'/2215.html','true',[],'',''],
	['PAGE','2236',jdecode('Fact+Sheets+-+Fertilizer'),jdecode(''),'/2236/index.html','true',[ 
		['PAGE','3264',jdecode('6-in-1+Complete+Fertilizer'),jdecode(''),'/2236/3264.html','true',[],'',''],
		['PAGE','3285',jdecode('Organic+Fertilizer'),jdecode(''),'/2236/3285.html','true',[],'',''],
		['PAGE','3306',jdecode('Foliar+Fertilizer'),jdecode(''),'/2236/3306.html','true',[],'','']
	],'',''],
	['PAGE','2257',jdecode('Fact+sheets+-+Soils'),jdecode(''),'/2257/index.html','true',[ 
		['PAGE','3327',jdecode('Composted+Organic+Mulch'),jdecode(''),'/2257/3327.html','true',[],'',''],
		['PAGE','3348',jdecode('Orchid+Mix'),jdecode(''),'/2257/3348.html','true',[],'',''],
		['PAGE','3369',jdecode('Potting+Mix'),jdecode(''),'/2257/3369.html','true',[],'',''],
		['PAGE','3390',jdecode('Soil+Improver'),jdecode(''),'/2257/3390.html','true',[],'','']
	],'',''],
	['PAGE','2278',jdecode('Fact+sheets+-+Misc'),jdecode(''),'/2278/index.html','true',[ 
		['PAGE','3411',jdecode('Lawn+Seed'),jdecode(''),'/2278/3411.html','true',[],'',''],
		['PAGE','3432',jdecode('Moss+Killer'),jdecode(''),'/2278/3432.html','true',[],'',''],
		['PAGE','3453',jdecode('Contact+Weed+Killer'),jdecode(''),'/2278/3453.html','true',[],'',''],
		['PAGE','3474',jdecode('Selective+Weed+Killer'),jdecode(''),'/2278/3474.html','true',[],'',''],
		['PAGE','3495',jdecode('Lime+%28Melbourne+only%29'),jdecode(''),'/2278/3495.html','true',[],'','']
	],'',''],
	['PAGE','2299',jdecode('Other+Information'),jdecode(''),'/2299/index.html','true',[ 
		['PAGE','3516',jdecode('NPK'),jdecode(''),'/2299/3516.html','true',[],'',''],
		['PAGE','3537',jdecode('Gypsum'),jdecode(''),'/2299/3537.html','true',[],'',''],
		['PAGE','3558',jdecode('Coverage+Areas'),jdecode(''),'/2299/3558.html','true',[],'','']
	],'',''],
	['PAGE','2320',jdecode('Employment+Opportunities'),jdecode(''),'/2320.html','true',[],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Meadow';
theSitetree.paletteFamily='0000BB';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10473';
theSitetree.graphicsetId='10949';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='9FD796';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Meadow',
				paletteFamily: 	'0000BB',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10473',
				graphicsetId: 	'10949',
				contentColor: 	'000000',
				contentBGColor: '9FD796',
				a_color: 		'6EC262',
				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:  '2101',
internalId:  '',
customField: '20091010-234809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2320',
internalId:  '',
customField: '20091007-040118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2299',
internalId:  '',
customField: '20091007-042138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2215',
internalId:  '',
customField: '20091007-033919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2194',
internalId:  '',
customField: '20091007-035836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2173',
internalId:  '',
customField: '20091007-052100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2236',
internalId:  '',
customField: '20091011-000908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2257',
internalId:  '',
customField: '20091011-000209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2278',
internalId:  '',
customField: '20091011-013238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2152',
internalId:  '',
customField: '20091011-013513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3516',
internalId:  '',
customField: '20091007-044741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3537',
internalId:  '',
customField: '20091007-044652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3558',
internalId:  '',
customField: '20091007-050342'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3201',
internalId:  '',
customField: '20091011-003401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3264',
internalId:  '',
customField: '20091011-001027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3285',
internalId:  '',
customField: '20091011-001138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3411',
internalId:  '',
customField: '20091010-235433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3432',
internalId:  '',
customField: '20091010-235543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3453',
internalId:  '',
customField: '20091010-235714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3474',
internalId:  '',
customField: '20091010-235902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3495',
internalId:  '',
customField: '20091011-000019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3327',
internalId:  '',
customField: '20091011-000329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3348',
internalId:  '',
customField: '20091011-000439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3369',
internalId:  '',
customField: '20091011-000553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3390',
internalId:  '',
customField: '20091011-000730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3306',
internalId:  '',
customField: '20091011-001740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3222',
internalId:  '',
customField: '20091011-013502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3243',
internalId:  '',
customField: '20091011-012437'
};
var canonHostname = 'wscwrk01.ehost-services.com';
var accountId     = 'AEN330INFDW2';
var companyName   = 'Betta+Grower';
var htmlTitle	  = '';
var metaKeywords  = 'Garden+products%2C+mulch%2C+potting+mix%2C+orchid+mix%2C+lime%2C+lawn+seed%2C+weed+killer%2C+fertilizer%2C+soil+improver%2C+gypsum%2C+NPK';
var metaContents  = 'Garden+Products+including+fertilizers%2C+mulches%2C+potting+mixes+and+soil+conditioners.+Available+in+the+Victoria+and+South+Australia+regions.';
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();
};

