/* [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 theSitetree=[ 
	['PAGE','143547',jdecode('Sleepair+MAJIC+PAD'),jdecode(''),'/143547.html','false',[],''],
	['PAGE','1601',jdecode('MATTRESS+SELECTOR'),jdecode(''),'/1601.html','true',[],''],
	['PAGE','140447',jdecode('NASAFOAM+BLOG'),jdecode(''),'/140447.html','true',[],''],
	['PAGE','140847',jdecode('Memory+foam+mattress'),jdecode(''),'/140847/index.html','true',[ 
		['PAGE','140868',jdecode('The+Original+Bed'),jdecode(''),'/140847/140868.html','true',[],''],
		['PAGE','140889',jdecode('The+Deluxe+bed'),jdecode(''),'/140847/140889.html','true',[],''],
		['PAGE','140910',jdecode('The+Ultima+Bed'),jdecode(''),'/140847/140910.html','true',[],''],
		['PAGE','140931',jdecode('The+Grand+Bed'),jdecode(''),'/140847/140931.html','true',[],''],
		['PAGE','140952',jdecode(''),jdecode(''),'/140847/140952.html','true',[],'']
	],''],
	['PAGE','140973',jdecode('Latex+mattresses'),jdecode(''),'/140973/index.html','true',[ 
		['PAGE','140994',jdecode('The+Original+latex'),jdecode(''),'/140973/140994.html','true',[],''],
		['PAGE','141015',jdecode('The+Deluxe+Latex'),jdecode(''),'/140973/141015.html','true',[],''],
		['PAGE','141036',jdecode('The+Grand+Latex'),jdecode(''),'/140973/141036.html','true',[],''],
		['PAGE','141057',jdecode('The+Grand+Latex+EURO'),jdecode(''),'/140973/141057.html','true',[],''],
		['PAGE','141078',jdecode('.'),jdecode(''),'/140973/141078.html','true',[],'']
	],''],
	['PAGE','140468',jdecode('Mattresses'),jdecode(''),'/140468/index.html','true',[ 
		['PAGE','140489',jdecode('Deluxe+series+'),jdecode(''),'/140468/140489.html','true',[],''],
		['PAGE','140510',jdecode('Premium+Series'),jdecode(''),'/140468/140510.html','true',[],''],
		['PAGE','140531',jdecode('Platinum+Series'),jdecode(''),'/140468/140531.html','true',[],''],
		['PAGE','140552',jdecode('Elite+Series'),jdecode(''),'/140468/140552.html','true',[],''],
		['PAGE','140573',jdecode('Diamond+Series'),jdecode(''),'/140468/140573.html','true',[],''],
		['PAGE','140594',jdecode('Designer+Series'),jdecode(''),'/140468/140594.html','true',[],'']
	],''],
	['PAGE','151147',jdecode('Bench+Made+Mattresses'),jdecode(''),'/151147/index.html','true',[ 
		['PAGE','151168',jdecode('Gravity+0.1'),jdecode(''),'/151147/151168.html','true',[],''],
		['PAGE','151189',jdecode('ZERO'),jdecode(''),'/151147/151189.html','true',[],''],
		['PAGE','151210',jdecode('Second+skin'),jdecode(''),'/151147/151210.html','true',[],''],
		['PAGE','151231',jdecode('Black+velvet'),jdecode(''),'/151147/151231.html','true',[],''],
		['PAGE','151252',jdecode('Natural+'),jdecode(''),'/151147/151252.html','true',[],'']
	],''],
	['PAGE','139747',jdecode('Coupon+Voucher'),jdecode(''),'/139747.html','false',[],''],
	['PAGE','134647',jdecode('MATTRESS+SALE+%21'),jdecode(''),'/134647.html','false',[],''],
	['PAGE','69201',jdecode('Gravity+0.1+product+describtion'),jdecode(''),'/69201.html','false',[],''],
	['PAGE','69401',jdecode('Deluxe+FIRM'),jdecode(''),'/69401.html','false',[],''],
	['PAGE','157547',jdecode('DELUXE+FIRM+product+Describtion'),jdecode(''),'/157547.html','false',[],''],
	['PAGE','69422',jdecode('Deluxe+Pillow+top'),jdecode(''),'/69422.html','false',[],''],
	['PAGE','157568',jdecode('Deluxe+pillow+top+product+Describtion'),jdecode(''),'/157568.html','false',[],''],
	['PAGE','36201',jdecode('Zero+Product+Decribtion'),jdecode(''),'/36201.html','false',[],''],
	['PAGE','37201',jdecode('Premium+FIRM'),jdecode(''),'/37201.html','false',[],''],
	['PAGE','157589',jdecode('Premium+Firm+product+Describtion'),jdecode(''),'/157589.html','false',[],''],
	['PAGE','37222',jdecode('Premium+X+Firm'),jdecode(''),'/37222.html','false',[],''],
	['PAGE','157610',jdecode('Premium+firm+product+describtion'),jdecode(''),'/157610.html','false',[],''],
	['PAGE','37243',jdecode('Premium+Plush+'),jdecode(''),'/37243.html','false',[],''],
	['PAGE','157631',jdecode('Premium+Plush+product+describtion'),jdecode(''),'/157631.html','false',[],''],
	['PAGE','37264',jdecode('Premium+Pillow+Top'),jdecode(''),'/37264.html','false',[],''],
	['PAGE','157652',jdecode('Premium+Pillow+Top+Product+describtion'),jdecode(''),'/157652.html','false',[],''],
	['PAGE','37001',jdecode('Second+Skin+product+describtion'),jdecode(''),'/37001.html','false',[],''],
	['PAGE','37285',jdecode('Platinum++X-Firm'),jdecode(''),'/37285.html','false',[],''],
	['PAGE','157673',jdecode('Platinum+X+Firm+Product+describtion'),jdecode(''),'/157673.html','false',[],''],
	['PAGE','37306',jdecode('Platinum+Plush'),jdecode(''),'/37306.html','false',[],''],
	['PAGE','157694',jdecode('Platinum+Plush+Product+describtion'),jdecode(''),'/157694.html','false',[],''],
	['PAGE','37327',jdecode('Platinum+Pillow+Top'),jdecode(''),'/37327.html','false',[],''],
	['PAGE','157715',jdecode('Platinum+Pillow+Top+Product+describtion'),jdecode(''),'/157715.html','false',[],''],
	['PAGE','37348',jdecode('Platinum++Euro+'),jdecode(''),'/37348.html','false',[],''],
	['PAGE','157736',jdecode('Platinum+euro+product+Describtion'),jdecode(''),'/157736.html','false',[],''],
	['PAGE','37369',jdecode('Link+to+Us'),jdecode(''),'/37369.html','true',[],''],
	['PAGE','157757',jdecode('.'),jdecode(''),'/157757.html','false',[],''],
	['PAGE','37390',jdecode('Diamond+FIRM'),jdecode(''),'/37390.html','false',[],''],
	['PAGE','157778',jdecode('DIAMOND+firm+Product+describtion'),jdecode(''),'/157778.html','false',[],''],
	['PAGE','129647',jdecode('Diamond+Emerald+FIRM'),jdecode(''),'/129647.html','false',[],''],
	['PAGE','157799',jdecode('Diamond+Emeral+Firm+Product+Describtion'),jdecode(''),'/157799.html','false',[],''],
	['PAGE','37411',jdecode('+Diamonds+Plush'),jdecode(''),'/37411.html','false',[],''],
	['PAGE','157820',jdecode('Diamond+Plush+Product+describtion'),jdecode(''),'/157820.html','false',[],''],
	['PAGE','37432',jdecode('Diamonds+Pillow+Soft'),jdecode(''),'/37432.html','false',[],''],
	['PAGE','157841',jdecode('Diamond+Pillow+Soft+Product+decribtion'),jdecode(''),'/157841.html','false',[],''],
	['PAGE','2901',jdecode('DESIGNER+Collection'),jdecode(''),'/2901.html','false',[],''],
	['PAGE','157862',jdecode('.'),jdecode(''),'/157862.html','false',[],''],
	['PAGE','38185',jdecode('Designer+Collection+FIRM'),jdecode(''),'/38185.html','false',[],''],
	['PAGE','157883',jdecode('DESIGNER+FIRM+Product+Describtion'),jdecode(''),'/157883.html','false',[],''],
	['PAGE','38206',jdecode('Designer+Collection+PLUSH'),jdecode(''),'/38206.html','false',[],''],
	['PAGE','157904',jdecode('Designer+Collection+Plush+product+Describtion'),jdecode(''),'/157904.html','false',[],''],
	['PAGE','40601',jdecode('Ultima+Product+describtion'),jdecode(''),'/40601.html','false',[],''],
	['PAGE','37474',jdecode('The+Original+Product+Description'),jdecode(''),'/37474.html','false',[],''],
	['PAGE','37495',jdecode('The+Deluxe+Product+Description'),jdecode(''),'/37495.html','false',[],''],
	['PAGE','97101',jdecode('Grand+Euro+Bed+Product+Description'),jdecode(''),'/97101.html','false',[],''],
	['PAGE','41301',jdecode('Latex+Mattresses'),jdecode(''),'/41301.html','false',[],''],
	['PAGE','37022',jdecode('The+Original+Latex+Product+Description'),jdecode(''),'/37022.html','false',[],''],
	['PAGE','37537',jdecode('The+Deluxe+Latex+Product+Description'),jdecode(''),'/37537.html','false',[],''],
	['PAGE','37558',jdecode('The+Grand+Bed++Latex+Product+Description'),jdecode(''),'/37558.html','false',[],''],
	['PAGE','38143',jdecode('ELITE+Series'),jdecode(''),'/38143.html','false',[],''],
	['PAGE','38164',jdecode('ELITE+PILLOW+SOFT'),jdecode(''),'/38164.html','false',[],''],
	['PAGE','158168',jdecode('Elite+Pillow+Soft+Product+describtion'),jdecode(''),'/158168.html','false',[],''],
	['PAGE','37579',jdecode('Elite+Ultima+'),jdecode(''),'/37579.html','false',[],''],
	['PAGE','158189',jdecode('elite+Ultima+Product+describtion'),jdecode(''),'/158189.html','false',[],''],
	['PAGE','38101',jdecode('0.1+GRAVITY+'),jdecode(''),'/38101.html','false',[],''],
	['PAGE','158210',jdecode('0.1+Gravity+Product+describtion'),jdecode(''),'/158210.html','false',[],''],
	['PAGE','6101',jdecode('NASAFOAM+ACCESSORIES'),jdecode(''),'/6101.html','true',[],''],
	['PAGE','53301',jdecode('NASAFOAM+CRIB+'),jdecode(''),'/53301.html','false',[],''],
	['PAGE','53801',jdecode('PREMIUM+CRIB'),jdecode(''),'/53801.html','false',[],''],
	['PAGE','158252',jdecode('Premium+crib+Product+describtion'),jdecode(''),'/158252.html','false',[],''],
	['PAGE','53822',jdecode('PLATINUM+CRIB'),jdecode(''),'/53822.html','false',[],''],
	['PAGE','158273',jdecode('Platinum+crib+Product+describtion'),jdecode(''),'/158273.html','false',[],''],
	['PAGE','1652',jdecode('+About+Latex'),jdecode(''),'/1652.html','false',[],''],
	['PAGE','3301',jdecode('+About+MEMORY+FOAM+'),jdecode(''),'/3301.html','false',[],''],
	['PAGE','89501',jdecode('ADJUST+A+BED'),jdecode(''),'/89501.html','false',[],''],
	['PAGE','38227',jdecode('Warranty+Registration+Form'),jdecode(''),'/38227.html','false',[],''],
	['PAGE','76601',jdecode('Warranty+Info'),jdecode(''),'/76601.html','false',[],''],
	['PAGE','38248',jdecode('NASA+Flex-Pay+0%25+Intrest'),jdecode(''),'/38248.html','false',[],''],
	['PAGE','7101',jdecode('Use+%26+Care+Instructions'),jdecode(''),'/7101.html','false',[],''],
	['PAGE','3901',jdecode('Features+%26+Benifits'),jdecode(''),'/3901.html','false',[],''],
	['PAGE','72501',jdecode('Learning+Centre'),jdecode(''),'/72501.html','false',[],''],
	['PAGE','85301',jdecode('Buyers+Guide'),jdecode(''),'/85301.html','false',[],''],
	['PAGE','56201',jdecode('Our+Location'),jdecode(''),'/56201.html','false',[],''],
	['PAGE','8501',jdecode('News'),jdecode(''),'/8501.html','false',[],''],
	['PAGE','4101',jdecode('Contact+Us'),jdecode(''),'/4101.html','false',[],''],
	['PAGE','56001',jdecode('email+us'),jdecode(''),'/56001.html','false',[],''],
	['PAGE','56301',jdecode('Search'),jdecode(''),'/56301.html','false',[],''],
	['PAGE','57201',jdecode('Dealer+log+in'),jdecode(''),'/57201.html','false',[],''],
	['PAGE','36001',jdecode('Jobs'),jdecode(''),'/36001.html','false',[],''],
	['PAGE','68101',jdecode('Order+Desk'),jdecode(''),'/68101.html','false',[],''],
	['PAGE','72901',jdecode('Dealer+Support'),jdecode(''),'/72901.html','false',[],''],
	['PAGE','92301',jdecode('Dealer+Locator'),jdecode(''),'/92301.html','false',[],''],
	['PAGE','72101',jdecode('Consumer+Support'),jdecode(''),'/72101.html','true',[],''],
	['PAGE','73601',jdecode('Message+from+our+president'),jdecode(''),'/73601.html','false',[],''],
	['PAGE','95901',jdecode('Index'),jdecode(''),'/95901.html','true',[],''],
	['PAGE','97901',jdecode('Register+for+upcoming+Sales'),jdecode(''),'/97901.html','false',[],''],
	['PAGE','108523',jdecode('%22Free+Trial+Offer'),jdecode(''),'/108523.html','false',[],''],
	['PAGE','111225',jdecode('Contract+bedding'),jdecode(''),'/111225.html','false',[],'']];
var siteelementCount=116;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10892';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10892',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1601',
internalId:  '',
customField: '20100729-140433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1652',
internalId:  '',
customField: '20100727-233908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2901',
internalId:  '',
customField: '20100728-233535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3301',
internalId:  '',
customField: '20100727-233825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3901',
internalId:  '',
customField: '20100727-233352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4101',
internalId:  '',
customField: '20100727-233108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20100729-154615'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '95901',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '95901',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7101',
internalId:  '',
customField: '20100727-233412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8501',
internalId:  '',
customField: '20100729-000943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36001',
internalId:  '',
customField: '20100725-221440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36201',
internalId:  '',
customField: '20100705-170323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37369',
internalId:  '',
customField: '20100731-111643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37022',
internalId:  '',
customField: '20100729-000205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37001',
internalId:  '',
customField: '20100729-113653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38101',
internalId:  '',
customField: '20100725-195145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40601',
internalId:  '',
customField: '20100725-155248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41301',
internalId:  '',
customField: '20100728-235505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37537',
internalId:  '',
customField: '20100729-000103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37558',
internalId:  '',
customField: '20100729-000257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37390',
internalId:  '',
customField: '20100728-225750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37201',
internalId:  '',
customField: '20100728-194224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37264',
internalId:  '',
customField: '20100728-194748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37222',
internalId:  '',
customField: '20100728-194333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37243',
internalId:  '',
customField: '20100728-194557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37285',
internalId:  '',
customField: '20100728-194851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38143',
internalId:  '',
customField: '20100328-124524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37474',
internalId:  '',
customField: '20100728-235057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37327',
internalId:  '',
customField: '20100728-200127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37306',
internalId:  '',
customField: '20100728-195400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38185',
internalId:  '',
customField: '20100728-234647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38206',
internalId:  '',
customField: '20100728-234809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37495',
internalId:  '',
customField: '20100728-235208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129647',
internalId:  '',
customField: '20100728-232443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37348',
internalId:  '',
customField: '20100728-225433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37411',
internalId:  '',
customField: '20100728-233014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37432',
internalId:  '',
customField: '20100728-234313'
};
webappMappings['7008']=webappMappings['7008-22656']={
webappId:    '7008',
documentId:  '108523',
internalId:  '22656',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157862',
internalId:  '',
customField: '20100722-170151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38164',
internalId:  '',
customField: '20100328-130423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37579',
internalId:  '',
customField: '20100328-124727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38227',
internalId:  '',
customField: '20100727-233631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38248',
internalId:  '',
customField: '20100727-233502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53301',
internalId:  '',
customField: '20100704-223107'
};
webappMappings['7008']=webappMappings['7008-20932']={
webappId:    '7008',
documentId:  '56001',
internalId:  '20932',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56001',
internalId:  '',
customField: '20100727-233006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '56201',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '56301',
internalId:  'search',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56301',
internalId:  '',
customField: '20090919-230440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56201',
internalId:  '',
customField: '20100728-225023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53801',
internalId:  '',
customField: '20100729-000509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57201',
internalId:  '',
customField: '20100725-221610'
};
webappMappings['7008']=webappMappings['7008-21010']={
webappId:    '7008',
documentId:  '38227',
internalId:  '21010',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53822',
internalId:  '',
customField: '20100729-000609'
};
webappMappings['7060']=webappMappings['7060-d18b902e3d42c95dd9bade490056f8df']={
webappId:    '7060',
documentId:  '57201',
internalId:  'd18b902e3d42c95dd9bade490056f8df',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-21015']={
webappId:    '7008',
documentId:  '38248',
internalId:  '21015',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-21043']={
webappId:    '7008',
documentId:  '68101',
internalId:  '21043',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68101',
internalId:  '',
customField: '20100728-003105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69201',
internalId:  '',
customField: '20100623-203436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69401',
internalId:  '',
customField: '20100725-125334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69422',
internalId:  '',
customField: '20100725-125430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72101',
internalId:  '',
customField: '20100725-221101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72501',
internalId:  '',
customField: '20091105-162819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72901',
internalId:  '',
customField: '20091110-142442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73601',
internalId:  '',
customField: '20100725-210849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76601',
internalId:  '',
customField: '20100727-233552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85301',
internalId:  '',
customField: '20100727-233304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89501',
internalId:  '',
customField: '20100727-233748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92301',
internalId:  '',
customField: '20091003-123526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95901',
internalId:  '',
customField: '20100731-122249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97101',
internalId:  '',
customField: '20100728-235339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97901',
internalId:  '',
customField: '20100725-202349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111225',
internalId:  '',
customField: '20100725-201813'
};
webappMappings['7008']=webappMappings['7008-22108']={
webappId:    '7008',
documentId:  '97901',
internalId:  '22108',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108523',
internalId:  '',
customField: '20100725-202310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134647',
internalId:  '',
customField: '20100721-121750'
};
webappMappings['7008']=webappMappings['7008-29161']={
webappId:    '7008',
documentId:  '139747',
internalId:  '29161',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139747',
internalId:  '',
customField: '20100728-161947'
};
webappMappings['7050']=webappMappings['7050-12183']={
webappId:    '7050',
documentId:  '140447',
internalId:  '12183',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140447',
internalId:  '',
customField: '20100623-200125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140468',
internalId:  '',
customField: '20100728-185228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140489',
internalId:  '',
customField: '20100728-171852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140510',
internalId:  '',
customField: '20100728-173123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140531',
internalId:  '',
customField: '20100728-173634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140552',
internalId:  '',
customField: '20100728-173756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140573',
internalId:  '',
customField: '20100728-174619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140594',
internalId:  '',
customField: '20100728-151444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140847',
internalId:  '',
customField: '20100729-153503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140973',
internalId:  '',
customField: '20100729-153608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140868',
internalId:  '',
customField: '20100728-131706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140889',
internalId:  '',
customField: '20100728-131846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140910',
internalId:  '',
customField: '20100728-131956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140931',
internalId:  '',
customField: '20100728-132053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140952',
internalId:  '',
customField: '20100623-201023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140994',
internalId:  '',
customField: '20100723-112124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141015',
internalId:  '',
customField: '20100723-112025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141036',
internalId:  '',
customField: '20100723-111602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141057',
internalId:  '',
customField: '20100723-111451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141078',
internalId:  '',
customField: '20100623-201023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143547',
internalId:  '',
customField: '20100728-170602'
};
webappMappings['7008']=webappMappings['7008-30196']={
webappId:    '7008',
documentId:  '37369',
internalId:  '30196',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151147',
internalId:  '',
customField: '20100729-153924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151168',
internalId:  '',
customField: '20100728-154750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157757',
internalId:  '',
customField: '20100722-170151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157589',
internalId:  '',
customField: '20100725-130251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157547',
internalId:  '',
customField: '20100725-125408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157568',
internalId:  '',
customField: '20100725-130007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157610',
internalId:  '',
customField: '20100725-130626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157631',
internalId:  '',
customField: '20100725-130817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157652',
internalId:  '',
customField: '20100729-113625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157673',
internalId:  '',
customField: '20100725-132037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157694',
internalId:  '',
customField: '20100725-132316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157715',
internalId:  '',
customField: '20100725-132637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157736',
internalId:  '',
customField: '20100725-134529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157778',
internalId:  '',
customField: '20100725-134949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157799',
internalId:  '',
customField: '20100725-135237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157820',
internalId:  '',
customField: '20100725-140340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157841',
internalId:  '',
customField: '20100728-233428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157883',
internalId:  '',
customField: '20100725-144142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157904',
internalId:  '',
customField: '20100725-144450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158168',
internalId:  '',
customField: '20100722-233614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158189',
internalId:  '',
customField: '20100722-233709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158210',
internalId:  '',
customField: '20100722-233751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151252',
internalId:  '',
customField: '20100728-161602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158252',
internalId:  '',
customField: '20100729-000755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158273',
internalId:  '',
customField: '20100729-000728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151189',
internalId:  '',
customField: '20100728-161106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151210',
internalId:  '',
customField: '20100728-161733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151231',
internalId:  '',
customField: '20100729-114524'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0IN3DS8';
var companyName   = 'NASAFOAM%C2%AE+Mattresses';
var htmlTitle	  = 'Nasafoam.ca';
var metaKeywords  = 'nasafoam+Mattress%2Cnasa+foam%2Cnasa%2Cfoam%2Cmattress%2Csleep%2Cproducts%2Cnasafoam+mattress%2Cbetter+sleep+system%2Ctheworlds+best+mattresses%2Cmattress+on+sale+now%2C+sale%2Cmattresses%2Csingle+mattress%2Cdouble+mattress%2Cqueeen+mattresses%2Cking+size%2Cqueen+mattress%2Csingle%2Cmattress%2Cdouble%2Cking%2Csizes_of_mattress%2Csleep%2Cworlds%2Cbest%2Cmattresses%2C';
var metaContents  = 'Nasa+foam+Mattress%2C+Innovative+award+winning+sleep+system%2C++try+a+NASAFOAM+Mattress+today%2C+often+immitated+but+never+duplicated%2C+buy+the+original+Nasafoam+Mattress+hear.+there+is+no+mattress+like+it+%21NASAFOAM%2Cwhat+are+you+sleeping+on+%3F';
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();
};
