/* [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','2901',jdecode('Home'),jdecode(''), jdecode('%2F2901.html'), 'true',[],'',''],
	['PAGE','2952',jdecode('About+us'),jdecode(''), jdecode('%2F2952.html'), 'true',[],'',''],
	['PAGE','2994',jdecode('Flowering+Plants'),jdecode(''), jdecode('%2F2994%2Findex.html'), 'true',[ 
		['PAGE','23601',jdecode('African+Violets'),jdecode(''), jdecode('%2F2994%2F23601.html'), 'true',[],'',''],
		['PAGE','23622',jdecode('Azaleas'),jdecode(''), jdecode('%2F2994%2F23622.html'), 'true',[],'',''],
		['PAGE','23643',jdecode('Chrysanthemums'),jdecode(''), jdecode('%2F2994%2F23643.html'), 'true',[],'',''],
		['PAGE','23664',jdecode('Gerbera+Daisy'),jdecode(''), jdecode('%2F2994%2F23664.html'), 'true',[],'',''],
		['PAGE','23685',jdecode('Kalanchoes'),jdecode(''), jdecode('%2F2994%2F23685.html'), 'true',[],'',''],
		['PAGE','23706',jdecode('Mini+Roses'),jdecode(''), jdecode('%2F2994%2F23706.html'), 'true',[],'',''],
		['PAGE','23727',jdecode('Reiger+Begonias'),jdecode(''), jdecode('%2F2994%2F23727.html'), 'true',[],'',''],
		['PAGE','23748',jdecode('Peace+Lily'),jdecode(''), jdecode('%2F2994%2F23748.html'), 'true',[],'','']
	],'',''],
	['PAGE','3036',jdecode('Seasonal+Plants'),jdecode(''), jdecode('%2F3036%2Findex.html'), 'true',[ 
		['PAGE','23769',jdecode('Calla+Lily'),jdecode(''), jdecode('%2F3036%2F23769.html'), 'true',[],'',''],
		['PAGE','23790',jdecode('Cineraria'),jdecode(''), jdecode('%2F3036%2F23790.html'), 'true',[],'',''],
		['PAGE','23811',jdecode('Celosia'),jdecode(''), jdecode('%2F3036%2F23811.html'), 'true',[],'',''],
		['PAGE','23832',jdecode('Cyclamen'),jdecode(''), jdecode('%2F3036%2F23832.html'), 'true',[],'',''],
		['PAGE','23853',jdecode('Easter+Lily'),jdecode(''), jdecode('%2F3036%2F23853.html'), 'true',[],'',''],
		['PAGE','23874',jdecode('Hydrangeas'),jdecode(''), jdecode('%2F3036%2F23874.html'), 'true',[],'',''],
		['PAGE','23895',jdecode('Lisianthus'),jdecode(''), jdecode('%2F3036%2F23895.html'), 'true',[],'',''],
		['PAGE','23916',jdecode('Montauk+Daisy'),jdecode(''), jdecode('%2F3036%2F23916.html'), 'true',[],'',''],
		['PAGE','23937',jdecode('Persian+Violets'),jdecode(''), jdecode('%2F3036%2F23937.html'), 'true',[],'',''],
		['PAGE','23958',jdecode('Poinsettias'),jdecode(''), jdecode('%2F3036%2F23958.html'), 'true',[],'',''],
		['PAGE','23979',jdecode('Stargazer+Lily'),jdecode(''), jdecode('%2F3036%2F23979.html'), 'true',[],'','']
	],'',''],
	['PAGE','3015',jdecode('Foliage'),jdecode(''), jdecode('%2F3015.html'), 'true',[],'',''],
	['PAGE','14201',jdecode('Dish+Gardens'),jdecode(''), jdecode('%2F14201.html'), 'true',[],'',''],
	['PAGE','3078',jdecode('Availability'),jdecode(''), jdecode('%2F3078.html'), 'true',[],'',''],
	['PAGE','25001',jdecode('Gallery'),jdecode(''), jdecode('%2F25001.html'), 'true',[],'',''],
	['PAGE','3099',jdecode('Contact'),jdecode(''), jdecode('%2F3099%2Findex.html'), 'true',[ 
		['PAGE','3120',jdecode('Locations'),jdecode(''), jdecode('%2F3099%2F3120.html'), 'true',[],'','']
	],'','']];
var siteelementCount=29;
theSitetree.topTemplateName='Blossom';
theSitetree.paletteFamily='18902D';
theSitetree.keyvisualId='7127';
theSitetree.keyvisualName='kv_7127.jpg';
theSitetree.fontsetId='16396';
theSitetree.graphicsetId='12130';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E5E2E2';
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: 			'Blossom',
				paletteFamily: 	'18902D',
				keyvisualId: 	'7127',
				keyvisualName: 	'kv_7127.jpg',
				fontsetId: 		'16396',
				graphicsetId: 	'12130',
				contentColor: 	'000000',
				contentBGColor: 'E5E2E2',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2901',
internalId:  '',
customField: '20110808-141755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2952',
internalId:  '',
customField: '20110701-140112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23601',
internalId:  '',
customField: '20110922-104919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3099',
internalId:  '',
customField: '20110712-124622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3120',
internalId:  '',
customField: '20110712-115027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3015',
internalId:  '',
customField: '20110701-131332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2994',
internalId:  '',
customField: '20110713-131617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14201',
internalId:  '',
customField: '20110701-135312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3036',
internalId:  '',
customField: '20110713-131813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3078',
internalId:  '',
customField: '20110701-120852'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2901',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '3120',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['7060']=webappMappings['7060-bddcd1957791387faf08bf754e157b67']={
webappId:    '7060',
documentId:  '25001',
internalId:  'bddcd1957791387faf08bf754e157b67',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25001',
internalId:  '',
customField: '20110729-141413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23622',
internalId:  '',
customField: '20110729-103739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23643',
internalId:  '',
customField: '20110808-141156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23664',
internalId:  '',
customField: '20110808-141420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23685',
internalId:  '',
customField: '20110713-095040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23706',
internalId:  '',
customField: '20110726-134533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23727',
internalId:  '',
customField: '20110726-144118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23748',
internalId:  '',
customField: '20110729-103825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23769',
internalId:  '',
customField: '20110729-103546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23790',
internalId:  '',
customField: '20110713-100155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23811',
internalId:  '',
customField: '20110808-141657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23832',
internalId:  '',
customField: '20110729-111910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23853',
internalId:  '',
customField: '20110729-115420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23874',
internalId:  '',
customField: '20110729-121646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23895',
internalId:  '',
customField: '20110808-141729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23916',
internalId:  '',
customField: '20110729-124808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23937',
internalId:  '',
customField: '20110808-141908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23958',
internalId:  '',
customField: '20110729-133450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23979',
internalId:  '',
customField: '20110729-141133'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INFDL9';
var companyName   = 'Loop%27s+Nursery+%26+Greenhouses%2C+Inc.';
var htmlTitle	  = 'Loop%27s+Nursery+%26+Greenhouses';
var metaKeywords  = 'Loop%27s+Nursery%2C+Nurserys%2C+Plants%2C+Potted+Plants%2C+Flowers%2C+Plant+Wholesalers%2C+poinsettias%2C+easter+lily%2C+mum%2C+chrysanthemum%0D%0A%0D%0A';
var metaContents  = 'Loop%27s+Nursery+%26+Greenhouses+encompasses+650%2C000+square+feet+in+two+facilities+supplying+upscale+potted+plants%2C+flowers+and+shrubs+to+high-end+floral+retailers+around+the+world.%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A';
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();
};

