/* [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','14',jdecode('Home'),jdecode(''),'/14.html','true',[],'',''],
	['PAGE','1009',jdecode('About+us'),jdecode(''),'/1009.html','true',[],'',''],
	['PAGE','1018',jdecode('Contact+us'),jdecode(''),'/1018.html','true',[],'',''],
	['PAGE','1027',jdecode('Landscape+Services'),jdecode(''),'/1027.html','true',[],'',''],
	['PAGE','10301',jdecode('Christmas+Store'),jdecode(''),'/10301/index.html','true',[ 
		['PAGE','11001',jdecode('Wreath+order+form'),jdecode(''),'/10301/11001.html','true',[],'','']
	],'',''],
	['PAGE','1036',jdecode('The+Garden+Center'),jdecode(''),'/1036/index.html','true',[ 
		['PAGE','1045',jdecode('Sales+and+specials'),jdecode(''),'/1036/1045.html','true',[],'',''],
		['PAGE','21701',jdecode('Hardgoods+price+list'),jdecode(''),'/1036/21701.html','true',[],'',''],
		['PAGE','35201',jdecode('Hours+of+Operation'),jdecode(''),'/1036/35201.html','true',[],'',''],
		['PAGE','55223',jdecode('Organic+and+Natural+Products'),jdecode(''),'/1036/55223.html','true',[],'',''],
		['PAGE','69856',jdecode('Plant+availability'),jdecode(''),'/1036/69856.html','true',[],'','']
	],'',''],
	['PAGE','1491',jdecode('Guestbook'),jdecode(''),'/1491/index.html','true',[ 
		['PAGE','1490',jdecode('Read+Guestbook'),jdecode(''),'/1491/1490.html','false',[],'','']
	],'',''],
	['PAGE','1599',jdecode('Newsletter'),jdecode(''),'/1599/index.html','true',[ 
		['PAGE','49112',jdecode('2010+Current+Issues'),jdecode(''),'/1599/49112.html','true',[],'',''],
		['PAGE','43312',jdecode('Holiday+2008'),jdecode(''),'/1599/43312.html','true',[],'',''],
		['PAGE','41212',jdecode('August%2FSept+2008'),jdecode(''),'/1599/41212.html','true',[],'',''],
		['PAGE','37201',jdecode('Summer+2008'),jdecode(''),'/1599/37201.html','true',[],'',''],
		['PAGE','24101',jdecode('Spring+2008'),jdecode(''),'/1599/24101.html','true',[],'',''],
		['PAGE','24122',jdecode('Fall%2FHoliday+2007'),jdecode(''),'/1599/24122.html','true',[],'',''],
		['PAGE','24143',jdecode('Summer+2007'),jdecode(''),'/1599/24143.html','true',[],'',''],
		['PAGE','24164',jdecode('Spring+2007'),jdecode(''),'/1599/24164.html','true',[],'',''],
		['PAGE','24185',jdecode('Holiday+2006'),jdecode(''),'/1599/24185.html','true',[],'',''],
		['PAGE','24206',jdecode('Summer+2006'),jdecode(''),'/1599/24206.html','true',[],'',''],
		['PAGE','24227',jdecode('Spring+2006'),jdecode(''),'/1599/24227.html','true',[],'','']
	],'',''],
	['PAGE','12301',jdecode('Weddings'),jdecode(''),'/12301.html','true',[],'',''],
	['PAGE','18201',jdecode('Class+Schedule'),jdecode(''),'/18201.html','true',[],'',''],
	['PAGE','29501',jdecode('Picture+of+the+day'),jdecode(''),'/29501.html','true',[],'',''],
	['PAGE','38701',jdecode('Richland+Farmers+Market'),jdecode(''),'/38701.html','true',[],'',''],
	['PAGE','60334',jdecode('Arbor+Day'),jdecode(''),'/60334.html','true',[],'',''],
	['PAGE','47912',jdecode('Photo+Album'),jdecode(''),'/47912.html','true',[],'',''],
	['PAGE','61334',jdecode('Hot+topics+in+the+news...'),jdecode(''),'/61334.html','true',[],'',''],
	['PAGE','6601',jdecode('+'),jdecode(''),'/6601.html','true',[],'','']];
var siteelementCount=34;
theSitetree.topTemplateName='Meadow';
theSitetree.paletteFamily='0000BB';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10703';
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: 		'10703',
				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:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '14',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1009',
internalId:  '',
customField: '20100329-105822'
};
webappMappings['1002']=webappMappings['1002-1491AVEC10IN24J0']={
webappId:    '1002',
documentId:  '1491',
internalId:  '1491AVEC10IN24J0',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1036',
internalId:  '',
customField: '20100324-115543'
};
webappMappings['7008']=webappMappings['7008-4931']={
webappId:    '7008',
documentId:  '11001',
internalId:  '4931',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14',
internalId:  '',
customField: '20090402-134727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1018',
internalId:  '',
customField: '20081112-121755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1027',
internalId:  '',
customField: '20090331-132517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10301',
internalId:  '',
customField: '20100329-111947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11001',
internalId:  '',
customField: '20071017-130018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1045',
internalId:  '',
customField: '20100615-103447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21701',
internalId:  '',
customField: '20090422-094647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35201',
internalId:  '',
customField: '20100525-104523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1491',
internalId:  '',
customField: '20060407-141324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1490',
internalId:  '',
customField: '20060306-125836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1599',
internalId:  '',
customField: '20100329-112729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43312',
internalId:  '',
customField: '20081113-123321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41212',
internalId:  '',
customField: '20080811-133802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37201',
internalId:  '',
customField: '20080528-114820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24101',
internalId:  '',
customField: '20080410-135317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24122',
internalId:  '',
customField: '20080408-133736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24143',
internalId:  '',
customField: '20080408-134233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24164',
internalId:  '',
customField: '20080408-135328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24185',
internalId:  '',
customField: '20080408-135632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24206',
internalId:  '',
customField: '20080408-140340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24227',
internalId:  '',
customField: '20080414-080228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12301',
internalId:  '',
customField: '20080908-112119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18201',
internalId:  '',
customField: '20100329-114417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29501',
internalId:  '',
customField: '20090605-110326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60334',
internalId:  '',
customField: '20090429-150132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38701',
internalId:  '',
customField: '20100329-112914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6601',
internalId:  '',
customField: '20071017-114036'
};
webappMappings['7060']=webappMappings['7060-002218319af2857200b130ce139952c9']={
webappId:    '7060',
documentId:  '12301',
internalId:  '002218319af2857200b130ce139952c9',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-ce813ee8c3b6977c98213416227c4068']={
webappId:    '7060',
documentId:  '47912',
internalId:  'ce813ee8c3b6977c98213416227c4068',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47912',
internalId:  '',
customField: '20090312-141108'
};
webappMappings['7080']=webappMappings['7080-150']={
webappId:    '7080',
documentId:  '1036',
internalId:  '150',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-1a0b98fb7763a75e692443331ff33964']={
webappId:    '7060',
documentId:  '1027',
internalId:  '1a0b98fb7763a75e692443331ff33964',
customField: 'language:en;country:US;'
};
webappMappings['7050']=webappMappings['7050-1471']={
webappId:    '7050',
documentId:  '49112',
internalId:  '1471',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49112',
internalId:  '',
customField: '20090331-131843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55223',
internalId:  '',
customField: '20090405-115322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61334',
internalId:  '',
customField: '20090508-111821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69856',
internalId:  '',
customField: '20100424-122114'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN24J0';
var companyName   = 'Gull+Lake+Landscape+Co';
var htmlTitle	  = '';
var metaKeywords  = 'Richland+Garden+Center++Gull+Lake+landscaping++native+Michigan+plants++hydrangea++retaining+walls++paver+installation++custom+landscape+design++MCN+++lakeshore+restoration++fruit+CGIP++MSU+perennials+shrubs+trees+professional+';
var metaContents  = 'Custom+Landscape+Design+Installation+and+Retail+Garden+Center';
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();
};
