/* [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','5901',jdecode('Home'),jdecode(''), jdecode('%2F5901.html'), 'true',[],'',''],
	['PAGE','14101',jdecode('About+us'),jdecode(''), jdecode('%2F14101.html'), 'true',[],'',''],
	['PAGE','7601',jdecode('Events'),jdecode(''), jdecode('%2F7601.html'), 'true',[],'',''],
	['PAGE','13901',jdecode('Learn+the+Basics'),jdecode(''), jdecode('%2F13901%2Findex.html'), 'true',[ 
		['PAGE','35901',jdecode('Why+a+VACUFLOSTL%3F'),jdecode(''), jdecode('%2F13901%2F35901.html'), 'true',[],'',''],
		['PAGE','37301',jdecode('Benefits+of+a+VACUFLO+'),jdecode(''), jdecode('%2F13901%2F37301.html'), 'true',[],'','']
	],'',''],
	['PAGE','15001',jdecode('GREEN-Healthy+Home'),jdecode(''), jdecode('%2F15001.html'), 'true',[],'',''],
	['PAGE','37001',jdecode('Pricing'),jdecode(''), jdecode('%2F37001%2Findex.html'), 'true',[ 
		['PAGE','7622',jdecode('Pricing+Poll'),jdecode(''), jdecode('%2F37001%2F7622.html'), 'true',[],'',''],
		['PAGE','44901',jdecode('Do-it-Yourself'),jdecode(''), jdecode('%2F37001%2F44901.html'), 'true',[],'','']
	],'',''],
	['PAGE','5973',jdecode('Products'),jdecode(''), jdecode('%2F5973.html'), 'true',[],'',''],
	['PAGE','58723',jdecode('New+Products'),jdecode(''), jdecode('%2F58723%2Findex.html'), 'true',[ 
		['PAGE','88323',jdecode('Garage+VROOM'),jdecode(''), jdecode('%2F58723%2F88323.html'), 'true',[],'',''],
		['PAGE','64123',jdecode('Draw+Vac'),jdecode(''), jdecode('%2F58723%2F64123.html'), 'true',[],'','']
	],'',''],
	['PAGE','110145',jdecode('Heater+-+Heatsmart+1500'),jdecode(''), jdecode('%2F110145.html'), 'true',[],'',''],
	['PAGE','87123',jdecode('Hose+Management+'),jdecode(''), jdecode('%2F87123%2Findex.html'), 'true',[ 
		['PAGE','41101',jdecode('Hide+A+Hose+'),jdecode(''), jdecode('%2F87123%2F41101.html'), 'true',[],'',''],
		['PAGE','104245',jdecode('Garage+VROOM'),jdecode(''), jdecode('%2F87123%2F104245.html'), 'true',[],'',''],
		['PAGE','57123',jdecode('SPOT+by+Vroom'),jdecode(''), jdecode('%2F87123%2F57123.html'), 'true',[],'',''],
		['PAGE','57144',jdecode('VROOM+'),jdecode(''), jdecode('%2F87123%2F57144.html'), 'true',[],'',''],
		['PAGE','118445',jdecode('WallyFlex'),jdecode(''), jdecode('%2F87123%2F118445.html'), 'true',[],'','']
	],'',''],
	['PAGE','15201',jdecode('Builder+Center'),jdecode(''), jdecode('%2F15201.html'), 'true',[],'',''],
	['PAGE','54201',jdecode('Owner+Support'),jdecode(''), jdecode('%2F54201%2Findex.html'), 'true',[ 
		['PAGE','15801',jdecode('Register+Your+System'),jdecode(''), jdecode('%2F54201%2F15801.html'), 'true',[],'',''],
		['PAGE','13201',jdecode('Product+Manuals'),jdecode(''), jdecode('%2F54201%2F13201.html'), 'true',[],'',''],
		['PAGE','12901',jdecode('Warranty'),jdecode(''), jdecode('%2F54201%2F12901.html'), 'true',[],'',''],
		['PAGE','113145',jdecode('Instruction+Videos'),jdecode(''), jdecode('%2F54201%2F113145.html'), 'true',[],'','']
	],'',''],
	['PAGE','5994',jdecode('Service'),jdecode(''), jdecode('%2F5994.html'), 'true',[],'',''],
	['PAGE','11301',jdecode('FAQs'),jdecode(''), jdecode('%2F11301.html'), 'true',[],'',''],
	['PAGE','16501',jdecode('Referral+Program'),jdecode(''), jdecode('%2F16501.html'), 'true',[],'',''],
	['PAGE','30201',jdecode('Testimonials'),jdecode(''), jdecode('%2F30201.html'), 'true',[],'',''],
	['PAGE','28901',jdecode('Online+Store%2FBuy+Now'),jdecode(''), jdecode('%2F28901%2Findex.html'), 'true',[ 
		['PAGE','37601',jdecode('Units%2FNew+VACUFLO'),jdecode(''), jdecode('%2F28901%2F37601.html'), 'true',[],'',''],
		['PAGE','36501',jdecode('Used+Products%2FUnits'),jdecode(''), jdecode('%2F28901%2F36501.html'), 'true',[],'',''],
		['PAGE','39501',jdecode('Self+Install+Kits'),jdecode(''), jdecode('%2F28901%2F39501.html'), 'true',[],'','']
	],'',''],
	['PAGE','65223',jdecode('Promotions'),jdecode(''), jdecode('%2F65223.html'), 'true',[],'',''],
	['PAGE','10001',jdecode('SPECIAL+PACKAGES'),jdecode(''), jdecode('%2F10001.html'), 'true',[],'',''],
	['PAGE','43301',jdecode('SALE+ITEMS'),jdecode(''), jdecode('%2F43301.html'), 'true',[],'',''],
	['PAGE','6036',jdecode('Contact+Us'),jdecode(''), jdecode('%2F6036%2Findex.html'), 'true',[ 
		['PAGE','16201',jdecode('FREE+Quote'),jdecode(''), jdecode('%2F6036%2F16201.html'), 'true',[],'',''],
		['PAGE','6015',jdecode('Directions'),jdecode(''), jdecode('%2F6036%2F6015.html'), 'true',[],'','']
	],'',''],
	['PAGE','7643',jdecode('Email+Club-COUPONS'),jdecode(''), jdecode('%2F7643.html'), 'true',[],'','']];
var siteelementCount=42;
theSitetree.topTemplateName='Delta';
theSitetree.paletteFamily='080245';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10440';
theSitetree.graphicsetId='10811';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='080245';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'valueweb',
  product: 'WSCSYSSSSLYTCR7V'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Delta',
				paletteFamily: 	'080245',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10440',
				graphicsetId: 	'10811',
				contentColor: 	'FFFFFF',
				contentBGColor: '080245',
				a_color: 		'221785',
				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:  '5901',
internalId:  '',
customField: '20110816-103809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5973',
internalId:  '',
customField: '20110718-120707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5994',
internalId:  '',
customField: '20110113-083534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6015',
internalId:  '',
customField: '20100414-150812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6036',
internalId:  '',
customField: '20090728-111819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11301',
internalId:  '',
customField: '20100622-101553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7601',
internalId:  '',
customField: '20120112-161246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7622',
internalId:  '',
customField: '20100622-101035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7643',
internalId:  '',
customField: '20100414-145038'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5901',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-3879332']={
webappId:    '1501',
documentId:  '5901',
internalId:  '3879332',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10001',
internalId:  '',
customField: '20110819-134911'
};
webappMappings['7008']=webappMappings['7008-2031']={
webappId:    '7008',
documentId:  '7643',
internalId:  '2031',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12901',
internalId:  '',
customField: '20111112-131241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13201',
internalId:  '',
customField: '20101012-160051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13901',
internalId:  '',
customField: '20101012-152135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14101',
internalId:  '',
customField: '20101026-153349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20100622-095948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15201',
internalId:  '',
customField: '20101012-155933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15801',
internalId:  '',
customField: '20100622-101409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16501',
internalId:  '',
customField: '20100622-101612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16201',
internalId:  '',
customField: '20100414-144926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43301',
internalId:  '',
customField: '20110927-125744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28901',
internalId:  '',
customField: '20101012-151041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30201',
internalId:  '',
customField: '20100920-152251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35901',
internalId:  '',
customField: '20100622-100953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36501',
internalId:  '',
customField: '20101221-115753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37001',
internalId:  '',
customField: '20110927-124432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37301',
internalId:  '',
customField: '20090829-083409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37601',
internalId:  '',
customField: '20101012-160550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39501',
internalId:  '',
customField: '20101012-160957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41101',
internalId:  '',
customField: '20110927-124834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44901',
internalId:  '',
customField: '20110927-124459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54201',
internalId:  '',
customField: '20100622-101358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57123',
internalId:  '',
customField: '20110405-125516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57144',
internalId:  '',
customField: '20110927-123950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58723',
internalId:  '',
customField: '20110927-123536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64123',
internalId:  '',
customField: '20100622-101324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65223',
internalId:  '',
customField: '20110927-125207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87123',
internalId:  '',
customField: '20100903-144353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88323',
internalId:  '',
customField: '20101012-152425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104245',
internalId:  '',
customField: '20110405-125310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110145',
internalId:  '',
customField: '20110117-145116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113145',
internalId:  '',
customField: '20110405-133327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118445',
internalId:  '',
customField: '20111010-130645'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INL9ID';
var companyName   = 'VacufloStL+%28636%29+294-6822';
var htmlTitle	  = 'Built-In+Central+Vacuum+Systems%3A+Sales%2C+Installation%2C+Service+%26+Parts.';
var metaKeywords  = 'Built+in+vacuums%2C+central+vacuums%2C+vacuum+systems%2C+vacuums%2C+upright+vacuum%2C+canister+vacuum%2C++Hide+a+hose%2C+Clean+air%2C+Clean+home%2C+Green+choice%2C+Allergies+vacuum%2C+Green+building%2C+Vacpan%2C+Automatic+dust+pan%2C+st+louis%2C+st+claire%2C+jefferson%2C+madison%2C+st+charles%2C+lincoln%2C+central+vacuum+system%2C+vroom%2C+garage+vroom%2C+spot%2C+hose+management+system%2C+';
var metaContents  = 'Specializing+in+Built-In+Central+Vacuum+Systems+for+over+25+years.+Serving+St+Charles%2C+St+Louis%2C+Warrenton+and+Lincoln+counties.+Providing+outsanding+customer+service%2C+installation%2C+sales++parts+for+all+makes+and+models.+We+carry+a+large+assortment+of+accessories+for+all+vacuums+and+central+vacuums.';
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();
};

