/* [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(''),'/5901.html','true',[],'',''],
	['PAGE','14101',jdecode('About+us'),jdecode(''),'/14101.html','true',[],'',''],
	['PAGE','7601',jdecode('Events'),jdecode(''),'/7601.html','true',[],'',''],
	['PAGE','13901',jdecode('Learn+the+Basics'),jdecode(''),'/13901/index.html','true',[ 
		['PAGE','35901',jdecode('Why+a+VACUFLOSTL%3F'),jdecode(''),'/13901/35901.html','true',[],'',''],
		['PAGE','37301',jdecode('Benefits+of+a+VACUFLO+'),jdecode(''),'/13901/37301.html','true',[],'','']
	],'',''],
	['PAGE','15001',jdecode('GREEN-Healthy+Home'),jdecode(''),'/15001.html','true',[],'',''],
	['PAGE','37001',jdecode('Pricing'),jdecode(''),'/37001/index.html','true',[ 
		['PAGE','7622',jdecode('Pricing+Poll'),jdecode(''),'/37001/7622.html','true',[],'',''],
		['PAGE','44901',jdecode('Do-it-Yourself'),jdecode(''),'/37001/44901.html','true',[],'','']
	],'',''],
	['PAGE','5973',jdecode('Products'),jdecode(''),'/5973.html','true',[],'',''],
	['PAGE','58723',jdecode('New+Products'),jdecode(''),'/58723/index.html','true',[ 
		['PAGE','88323',jdecode('Garage+VROOM'),jdecode(''),'/58723/88323.html','true',[],'',''],
		['PAGE','64123',jdecode('Draw+Vac'),jdecode(''),'/58723/64123.html','true',[],'','']
	],'',''],
	['PAGE','87123',jdecode('Hose+Management+'),jdecode(''),'/87123/index.html','true',[ 
		['PAGE','41101',jdecode('Hide+A+Hose+'),jdecode(''),'/87123/41101.html','true',[],'',''],
		['PAGE','57144',jdecode('VROOM+'),jdecode(''),'/87123/57144.html','true',[],'',''],
		['PAGE','57123',jdecode('SPOT+by+Vroom'),jdecode(''),'/87123/57123.html','true',[],'','']
	],'',''],
	['PAGE','15201',jdecode('Builder+Center'),jdecode(''),'/15201.html','true',[],'',''],
	['PAGE','54201',jdecode('Owner+Support'),jdecode(''),'/54201/index.html','true',[ 
		['PAGE','15801',jdecode('Register+Your+System'),jdecode(''),'/54201/15801.html','true',[],'',''],
		['PAGE','13201',jdecode('Product+Manuals'),jdecode(''),'/54201/13201.html','true',[],'',''],
		['PAGE','12901',jdecode('Warranty'),jdecode(''),'/54201/12901.html','true',[],'','']
	],'',''],
	['PAGE','5994',jdecode('Services'),jdecode(''),'/5994.html','true',[],'',''],
	['PAGE','11301',jdecode('FAQs'),jdecode(''),'/11301.html','true',[],'',''],
	['PAGE','16501',jdecode('Referral+Program'),jdecode(''),'/16501.html','true',[],'',''],
	['PAGE','30201',jdecode('Testimonials'),jdecode(''),'/30201.html','true',[],'',''],
	['PAGE','28901',jdecode('Online+Store%2FBuy+Now'),jdecode(''),'/28901/index.html','true',[ 
		['PAGE','37601',jdecode('Units%2FNew+VACUFLO'),jdecode(''),'/28901/37601.html','true',[],'',''],
		['PAGE','36501',jdecode('Used+Products%2FUnits'),jdecode(''),'/28901/36501.html','true',[],'',''],
		['PAGE','39501',jdecode('Self+Install+Kits'),jdecode(''),'/28901/39501.html','true',[],'','']
	],'',''],
	['PAGE','65223',jdecode('Promotions'),jdecode(''),'/65223.html','true',[],'',''],
	['PAGE','10001',jdecode('Specials'),jdecode(''),'/10001.html','true',[],'',''],
	['PAGE','43301',jdecode('Close+Out'),jdecode(''),'/43301.html','true',[],'',''],
	['PAGE','6036',jdecode('Contact+Us'),jdecode(''),'/6036/index.html','true',[ 
		['PAGE','16201',jdecode('FREE+Quote'),jdecode(''),'/6036/16201.html','true',[],'',''],
		['PAGE','6015',jdecode('Directions'),jdecode(''),'/6036/6015.html','true',[],'','']
	],'',''],
	['PAGE','7643',jdecode('Email+Club-COUPONS'),jdecode(''),'/7643.html','true',[],'','']];
var siteelementCount=38;
theSitetree.topTemplateName='Column';
theSitetree.paletteFamily='6266AD';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10400';
theSitetree.graphicsetId='10615';
theSitetree.contentColor='121447';
theSitetree.contentBGColor='D7D8ED';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Column',
				paletteFamily: 	'6266AD',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10400',
				graphicsetId: 	'10615',
				contentColor: 	'121447',
				contentBGColor: 'D7D8ED',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'6266AD',
				e_color: 		'3A3C83',
				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: '20100129-151806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5973',
internalId:  '',
customField: '20100622-100543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5994',
internalId:  '',
customField: '20100622-101526'
};
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: '20100903-145403'
};
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: '20100812-114619'
};
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: '20100622-104149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13201',
internalId:  '',
customField: '20100622-101436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13901',
internalId:  '',
customField: '20100622-100931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14101',
internalId:  '',
customField: '20100622-100726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20100622-095948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15201',
internalId:  '',
customField: '20100622-102901'
};
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: '20100622-105015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28901',
internalId:  '',
customField: '20100622-101647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30201',
internalId:  '',
customField: '20100622-101632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35901',
internalId:  '',
customField: '20100622-100953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36501',
internalId:  '',
customField: '20100622-101714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37001',
internalId:  '',
customField: '20100622-100054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37301',
internalId:  '',
customField: '20090829-083409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37601',
internalId:  '',
customField: '20100622-101702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39501',
internalId:  '',
customField: '20100622-104403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41101',
internalId:  '',
customField: '20100622-102336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44901',
internalId:  '',
customField: '20100622-100159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54201',
internalId:  '',
customField: '20100622-101358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57123',
internalId:  '',
customField: '20100622-101254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57144',
internalId:  '',
customField: '20100831-165600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58723',
internalId:  '',
customField: '20100903-150706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64123',
internalId:  '',
customField: '20100622-101324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65223',
internalId:  '',
customField: '20100622-101742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87123',
internalId:  '',
customField: '20100903-144353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88323',
internalId:  '',
customField: '20100903-141801'
};
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+st+claire+jefferson+madison+central+vacuum+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();
};
