/* [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','20238',jdecode('Chocolate+Fountains'),jdecode(''),'/20238/index.html','true',[ 
		['PAGE','27448',jdecode('Frequent+Questions'),jdecode(''),'/20238/27448.html','true',[],'',''],
		['PAGE','27469',jdecode('Testimonials'),jdecode(''),'/20238/27469.html','true',[],'','']
	],'',''],
	['PAGE','2601',jdecode('Tropical+Plant+Rentals'),jdecode(''),'/2601.html','true',[],'',''],
	['PAGE','17238',jdecode('In+Blossom+Blog'),jdecode(''),'/17238.html','true',[],'',''],
	['PAGE','7901',jdecode('Foliage+Rentals'),jdecode(''),'/7901/index.html','true',[ 
		['PAGE','7922',jdecode('Introduction'),jdecode(''),'/7901/7922.html','true',[],'',''],
		['PAGE','19338',jdecode('Live+Plant+Centerpieces'),jdecode(''),'/7901/19338.html','true',[],'',''],
		['PAGE','7943',jdecode('Foliage+Listing'),jdecode(''),'/7901/7943.html','true',[],'',''],
		['PAGE','9401',jdecode('Terms+%26+Conditions'),jdecode(''),'/7901/9401.html','true',[],'','']
	],'',''],
	['PAGE','7985',jdecode('Plant+Service'),jdecode(''),'/7985/index.html','true',[ 
		['PAGE','24648',jdecode('Live+Plant+Party+Favors'),jdecode(''),'/7985/24648.html','true',[],'',''],
		['PAGE','26148',jdecode('Cut+Flowers+'),jdecode(''),'/7985/26148.html','true',[],'',''],
		['PAGE','8027',jdecode('Plant+Therapy'),jdecode(''),'/7985/8027.html','true',[],'',''],
		['PAGE','8006',jdecode('Benefit+of+Plants'),jdecode(''),'/7985/8006.html','true',[],'','']
	],'',''],
	['PAGE','22848',jdecode('About+In+Blossom'),jdecode(''),'/22848/index.html','true',[ 
		['PAGE','8111',jdecode('Contact+Information'),jdecode(''),'/22848/8111.html','true',[],'','']
	],'','']];
var siteelementCount=17;
theSitetree.topTemplateName='Atmosphere';
theSitetree.paletteFamily='660000';
theSitetree.keyvisualId='83';
theSitetree.keyvisualName='astern.jpg';
theSitetree.fontsetId='9';
theSitetree.graphicsetId='7';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Atmosphere',
				paletteFamily: 	'660000',
				keyvisualId: 	'83',
				keyvisualName: 	'astern.jpg',
				fontsetId: 		'9',
				graphicsetId: 	'7',
				contentColor: 	'000066',
				contentBGColor: 'FFFFFF',
				a_color: 		'660000',
				b_color: 		'CC6866',
				c_color: 		'000000',
				d_color: 		'',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2601',
internalId:  '',
customField: '20110205-181409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7985',
internalId:  '',
customField: '20100518-224118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7901',
internalId:  '',
customField: '20100531-222832'
};
webappMappings['5003']=webappMappings['5003-tid:1;pid:WSCSYSSSSLYTC245']={
webappId:    '5003',
documentId:  '2601',
internalId:  'tid:1;pid:WSCSYSSSSLYTC245',
customField: 'en:US::;language:en;country:US;'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '20238',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7922',
internalId:  '',
customField: '20100524-210918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8006',
internalId:  '',
customField: '20100519-091627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9401',
internalId:  '',
customField: '20100512-140451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22848',
internalId:  '',
customField: '20110209-124720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8027',
internalId:  '',
customField: '20100524-211544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8111',
internalId:  '',
customField: '20110205-153026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17238',
internalId:  '',
customField: '20110205-151120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7943',
internalId:  '',
customField: '20100524-211312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19338',
internalId:  '',
customField: '20100519-090717'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '20238',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-8195']={
webappId:    '7008',
documentId:  '8111',
internalId:  '8195',
customField: 'language:en;country:US;'
};
webappMappings['7050']=webappMappings['7050-2716']={
webappId:    '7050',
documentId:  '17238',
internalId:  '2716',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20238',
internalId:  '',
customField: '20110209-125244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27469',
internalId:  '',
customField: '20100607-071546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24648',
internalId:  '',
customField: '20100606-222852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26148',
internalId:  '',
customField: '20100606-231433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27448',
internalId:  '',
customField: '20110205-151453'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INZGZX';
var companyName   = 'Tropical+Plant+Rentals+from+In+Blossom';
var htmlTitle	  = 'The+Chocolate+Fountain+From+In+Blossom%2C+Short+Term+Tropical+Plant+Rentals%2C+Silks%2C+Seasonal+Foliage%2C+Flowering+Plants%2C+Vibrant+Floral+Centerpieces%2C+Seasonal+Trees+and+Plants+and+Interior+Plantscaping';
var metaKeywords  = 'Tropical+plant+rentals%2C+palm+trees%2C+ficus+trees%2C+lighting%2C+special+event+rentals%2C+chocolate+fountain+rentals%2C+weddings%2C+corporate+events%2C+holiday+parties%2C+bar+mitzvahs%2C+bat+mitzvahs%2C+floral+stems%2C+sweet+16%27s%2C+birthday+parties%2C+natural+green+plants%2C+flowering+plants%2C+dish+garden+planters%2C+live+plant+centerpieces%2C+floral+centerpieces%2C+foliage+rentals%2C+areca+palms%2C+majesty+palms%2C+cat+palm+trees%2C+pin+lighting%2C+up+lighting%2C+tented+events%2C+hotels%2C+country+clubs%2C+banquet+facilities%2C+beautification%2C+artificial+foliage%2C+silk+plants%2C+plant+lighting%2C+prop+rentals%2C+decor+rentals%2C+holiday+decor+rentals+and+installation%2C+plant+delivery+%26+installation';
var metaContents  = 'In+Blossom+is+pleased+to+provide+Short-Term+Tropical+Plant+Rentals+of+vibrant%2C+indoor+tropical+foliage%2C+seasonal+flowering+outdoor+plants+and+trees%2C+floral+arrangements+and+colorful+floral+stems%2C+plus+flowering+plants+for+special+events+of+all+types.++Lush+tropical+plants+and+foliage+will+create+a+lavish+atmosphere+for+Bar+and+Bat+Mitzvahs%2C+Weddings%2C+Banquets%2C+Sweet+16%27s%2C+Private+Parties%2C+Corporate+and+Social+Events%2C+or+a+Photo+Shoot.++In+Blossom+professionals+will+work+with+Caterers%2C+Banquet+Managers+and+Event+Planners%2C+to+transform+any+facility+into+a+beautiful+venue+for+your+upcoming+Event.';
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();
};

