/* [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','2001',jdecode('Home'),jdecode(''), jdecode('%2F2001.html'), 'true',[],'',''],
	['PAGE','162435',jdecode('Retail+Garden+Center'),jdecode(''), jdecode('%2F162435%2Findex.html'), 'true',[ 
		['PAGE','161935',jdecode('About+the+Garden+Center'),jdecode(''), jdecode('%2F162435%2F161935.html'), 'true',[],'',''],
		['PAGE','158135',jdecode('Annette%26%23x27%3Bs+Favorites'),jdecode(''), jdecode('%2F162435%2F158135.html'), 'true',[],'',''],
		['PAGE','237452',jdecode('Gardening+Tips'),jdecode(''), jdecode('%2F162435%2F237452.html'), 'true',[],'',''],
		['PAGE','34969',jdecode('Newsletter+Archive'),jdecode(''), jdecode('%2F162435%2F34969.html'), 'true',[],'',''],
		['PAGE','155142',jdecode('Meet+the+Team'),jdecode(''), jdecode('%2F162435%2F155142.html'), 'true',[],'','']
	],'',''],
	['PAGE','34843',jdecode('Greenhouses'),jdecode(''), jdecode('%2F34843%2Findex.html'), 'true',[ 
		['PAGE','155163',jdecode('Plant+Production'),jdecode(''), jdecode('%2F34843%2F155163.html'), 'true',[],'',''],
		['PAGE','151342',jdecode('Container+Pots'),jdecode(''), jdecode('%2F34843%2F151342.html'), 'true',[],'',''],
		['PAGE','151321',jdecode('Bonsai'),jdecode(''), jdecode('%2F34843%2F151321.html'), 'true',[],'',''],
		['PAGE','155184',jdecode('Meet+the+team'),jdecode(''), jdecode('%2F34843%2F155184.html'), 'true',[],'',''],
		['PAGE','314480',jdecode('Floral+Route+'),jdecode(''), jdecode('%2F34843%2F314480.html'), 'true',[],'','']
	],'',''],
	['PAGE','34885',jdecode('Landscape+Maintenance'),jdecode(''), jdecode('%2F34885%2Findex.html'), 'true',[ 
		['PAGE','67458',jdecode('Meet+Our+Team'),jdecode(''), jdecode('%2F34885%2F67458.html'), 'true',[],'',''],
		['PAGE','67479',jdecode('How+To+Reach+Us'),jdecode(''), jdecode('%2F34885%2F67479.html'), 'true',[],'',''],
		['PAGE','67500',jdecode('The+Estimate+Process'),jdecode(''), jdecode('%2F34885%2F67500.html'), 'true',[],'',''],
		['PAGE','67521',jdecode('Routine+Service'),jdecode(''), jdecode('%2F34885%2F67521.html'), 'true',[],'',''],
		['PAGE','67542',jdecode('Lawn+and+Shrub+Care+Services'),jdecode(''), jdecode('%2F34885%2F67542.html'), 'true',[],'',''],
		['PAGE','67563',jdecode('Landscape+Enhancement+Services'),jdecode(''), jdecode('%2F34885%2F67563.html'), 'true',[],'',''],
		['PAGE','67584',jdecode('Annual+Color+Services'),jdecode(''), jdecode('%2F34885%2F67584.html'), 'true',[],'',''],
		['PAGE','69058',jdecode('Acreage+Mowing+Services'),jdecode(''), jdecode('%2F34885%2F69058.html'), 'true',[],'',''],
		['PAGE','67605',jdecode('Billing+and+How+It+Works'),jdecode(''), jdecode('%2F34885%2F67605.html'), 'true',[],'',''],
		['PAGE','67626',jdecode('Yard+Of+The+Month+'),jdecode(''), jdecode('%2F34885%2F67626.html'), 'true',[],'',''],
		['PAGE','330380',jdecode('Newsletter+Archive'),jdecode(''), jdecode('%2F34885%2F330380.html'), 'true',[],'','']
	],'',''],
	['PAGE','34864',jdecode('Landscape+Your+Home'),jdecode(''), jdecode('%2F34864%2Findex.html'), 'true',[ 
		['PAGE','217466',jdecode('Landscape+Design'),jdecode(''), jdecode('%2F34864%2F217466.html'), 'true',[],'',''],
		['PAGE','147102',jdecode('Meet+The+Team'),jdecode(''), jdecode('%2F34864%2F147102.html'), 'true',[],'',''],
		['PAGE','147123',jdecode('Questions+for+Installation'),jdecode(''), jdecode('%2F34864%2F147123.html'), 'true',[],'',''],
		['PAGE','34948',jdecode('Catalog'),jdecode(''), jdecode('%2F34864%2F34948.html'), 'true',[],'',''],
		['PAGE','87287',jdecode('Shrub+%26+Tree+Installation'),jdecode(''), jdecode('%2F34864%2F87287.html'), 'true',[],'',''],
		['PAGE','87308',jdecode('Sod+Installation'),jdecode(''), jdecode('%2F34864%2F87308.html'), 'true',[],'',''],
		['PAGE','87329',jdecode('Irrigation+Installation'),jdecode(''), jdecode('%2F34864%2F87329.html'), 'true',[],'',''],
		['PAGE','87350',jdecode('Hardscape+Installation'),jdecode(''), jdecode('%2F34864%2F87350.html'), 'true',[],'',''],
		['PAGE','87371',jdecode('Drainage+Installation'),jdecode(''), jdecode('%2F34864%2F87371.html'), 'true',[],'',''],
		['PAGE','219866',jdecode('Site+Work%2FGrading'),jdecode(''), jdecode('%2F34864%2F219866.html'), 'true',[],'','']
	],'',''],
	['PAGE','78858',jdecode('Wholesale+Farm'),jdecode(''), jdecode('%2F78858%2Findex.html'), 'true',[ 
		['PAGE','132305',jdecode('About+the+Farm'),jdecode(''), jdecode('%2F78858%2F132305.html'), 'true',[],'',''],
		['PAGE','75358',jdecode('Wholesale+Availability'),jdecode(''), jdecode('%2F78858%2F75358.html'), 'true',[],'',''],
		['PAGE','75379',jdecode('Contact+the+Team'),jdecode(''), jdecode('%2F78858%2F75379.html'), 'true',[],'','']
	],'',''],
	['PAGE','78058',jdecode('Plant+Library'),jdecode(''), jdecode('%2F78058%2Findex.html'), 'true',[ 
		['PAGE','78079',jdecode('Annuals'),jdecode(''), jdecode('%2F78058%2F78079.html'), 'true',[],'',''],
		['PAGE','72858',jdecode('Perennials+%26+Grasses'),jdecode(''), jdecode('%2F78058%2F72858.html'), 'true',[],'',''],
		['PAGE','78100',jdecode('Shrubs'),jdecode(''), jdecode('%2F78058%2F78100.html'), 'true',[],'',''],
		['PAGE','78121',jdecode('Trees'),jdecode(''), jdecode('%2F78058%2F78121.html'), 'true',[],'',''],
		['PAGE','78142',jdecode('Vines+%26+Groundcovers'),jdecode(''), jdecode('%2F78058%2F78142.html'), 'true',[],'',''],
		['PAGE','125194',jdecode('House+Plants'),jdecode(''), jdecode('%2F78058%2F125194.html'), 'true',[],'','']
	],'',''],
	['PAGE','34801',jdecode('About+Us'),jdecode(''), jdecode('%2F34801.html'), 'true',[],'',''],
	['PAGE','257480',jdecode('Employment+Opportunities+'),jdecode(''), jdecode('%2F257480.html'), 'true',[],'',''],
	['PAGE','34990',jdecode('Contact+Us'),jdecode(''), jdecode('%2F34990.html'), 'true',[],'',''],
	['ITEM','288080',jdecode('Cold+Creek+Blog'),jdecode(''), jdecode('http%3A%2F%2Fcoldcreeknurseries.net%2Fblog'), 'true',[],'','_blank']];
var siteelementCount=51;
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 prodDef={
  wl_name: 'fatcow',
  product: 'WSCSYSSSSLY0XRN4'
};
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: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20120111-101724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '219866',
internalId:  '',
customField: '20100305-133052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34843',
internalId:  '',
customField: '20120111-105733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34801',
internalId:  '',
customField: '20100305-134749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34864',
internalId:  '',
customField: '20100309-133404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34990',
internalId:  '',
customField: '20100308-092356'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '34990',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34948',
internalId:  '',
customField: '20100202-132840'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '2001',
internalId:  'search',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34885',
internalId:  '',
customField: '20110526-114407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75358',
internalId:  '',
customField: '20110526-114748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147123',
internalId:  '',
customField: '20100305-141627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67458',
internalId:  '',
customField: '20120120-093517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67479',
internalId:  '',
customField: '20110511-133705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67500',
internalId:  '',
customField: '20100305-140238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67521',
internalId:  '',
customField: '20111028-114308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67542',
internalId:  '',
customField: '20110804-151639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67563',
internalId:  '',
customField: '20111028-113432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67584',
internalId:  '',
customField: '20111028-100810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69058',
internalId:  '',
customField: '20100305-140642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67605',
internalId:  '',
customField: '20100301-155531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67626',
internalId:  '',
customField: '20110907-150148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34969',
internalId:  '',
customField: '20120111-103625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72858',
internalId:  '',
customField: '20100224-211814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75379',
internalId:  '',
customField: '20100804-140818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78858',
internalId:  '',
customField: '20100613-172248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78058',
internalId:  '',
customField: '20100614-211245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '237452',
internalId:  '',
customField: '20100614-211856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87287',
internalId:  '',
customField: '20100305-132114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87350',
internalId:  '',
customField: '20110628-150121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87308',
internalId:  '',
customField: '20100305-132605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78100',
internalId:  '',
customField: '20100314-171642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87371',
internalId:  '',
customField: '20100305-132930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78121',
internalId:  '',
customField: '20100314-165720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78079',
internalId:  '',
customField: '20100223-220132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78142',
internalId:  '',
customField: '20100223-195431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87329',
internalId:  '',
customField: '20110610-162526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125194',
internalId:  '',
customField: '20100223-215058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132305',
internalId:  '',
customField: '20100312-164558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147102',
internalId:  '',
customField: '20110606-142514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217466',
internalId:  '',
customField: '20100303-152519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151321',
internalId:  '',
customField: '20100303-141326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151342',
internalId:  '',
customField: '20120105-151945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155142',
internalId:  '',
customField: '20111121-114553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158135',
internalId:  '',
customField: '20120109-103256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155163',
internalId:  '',
customField: '20120109-104202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155184',
internalId:  '',
customField: '20110405-170422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161935',
internalId:  '',
customField: '20100303-150828'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162435',
internalId:  '',
customField: '20120112-143918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '257480',
internalId:  '',
customField: '20120120-094717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '330380',
internalId:  '',
customField: '20111028-111051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '314480',
internalId:  '',
customField: '20110425-155243'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0INVYMY';
var companyName   = 'Cold+Creek+Nurseries';
var htmlTitle	  = 'Cold+Creek+Nurseries';
var metaKeywords  = 'Nursery%2C+grass%2C+plants%2C+seeds%2C+trees%2C+mowing%2C+weed%2C+weedeating%2C+flowers%2C+landscape%2C+wholesales+trees%2C+pavers%2C+fertilization%2C+insect+and+weed+control%2C+shrubbery%2C+retaining+wall%2C+patio%2C+landscape+lighting%2C+irrigation%2C+sprinkler+system%2C+pottery%2C+garden+supplies%2C+bulbs%2C+bird+feeders%2C+giftware%2C+planters%2C+yard%2C+lawn%2C+aeratin%2C+dethatching%2C+trimming%2C+mulching%2C+bedding+plants%2C+trimming+shurbs%2C+';
var metaContents  = '++++++++++Cold+Creek+Nurseries+is+a+traditional+garden+center%2C+built+on+a+foundation+of+plant+selection+and+horticultural+wisdom.+We+embrace+home+in+every+aspect+of+our+business.+Our+customers+can+decorate+both+outside+and+inside+of+their+homes+with+the+wide+variety+of+items+and+services+that+we+provide.';
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();
};

