/* [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','1601',jdecode('Home'),jdecode(''),'/1601.html','true',[],'',''],
	['PAGE','45012',jdecode('Chemical+Supply+Store'),jdecode(''),'/45012.html','true',[],'',''],
	['PAGE','6222',jdecode('Carpet+Cleaning'),jdecode(''),'/6222/index.html','true',[ 
		['PAGE','8001',jdecode('Package+1+-+Dry+Extraction'),jdecode(''),'/6222/8001.html','true',[],'',''],
		['PAGE','8022',jdecode('Package+2+-+Steam+Extraction'),jdecode(''),'/6222/8022.html','true',[],'',''],
		['PAGE','8043',jdecode('Package+3+-+Premium+Extraction'),jdecode(''),'/6222/8043.html','true',[],'',''],
		['PAGE','8064',jdecode('Restorational+Cleanings'),jdecode(''),'/6222/8064.html','true',[],'',''],
		['PAGE','50112',jdecode('Odor+Restoration'),jdecode(''),'/6222/50112.html','true',[],'','']
	],'',''],
	['PAGE','33612',jdecode('Recommended+Maintenance'),jdecode(''),'/33612.html','true',[],'',''],
	['PAGE','6243',jdecode('Upholstery+Cleaning'),jdecode(''),'/6243.html','true',[],'',''],
	['PAGE','6264',jdecode('Oriental+Rugs'),jdecode(''),'/6264.html','true',[],'',''],
	['PAGE','6285',jdecode('Autos'),jdecode(''),'/6285.html','true',[],'',''],
	['PAGE','6306',jdecode('Carpet+Repair'),jdecode(''),'/6306.html','true',[],'',''],
	['PAGE','67710',jdecode('New+Carpet+Replacement'),jdecode(''),'/67710.html','true',[],'',''],
	['PAGE','35654',jdecode('Advanced+Spot+Dyeing'),jdecode(''),'/35654.html','true',[],'',''],
	['PAGE','6390',jdecode('FREE+Spotting+Chart'),jdecode(''),'/6390.html','true',[],'',''],
	['PAGE','6327',jdecode('Do+It+Yourself+Center%21'),jdecode(''),'/6327/index.html','true',[ 
		['PAGE','6348',jdecode('Professional+Spotting+Products'),jdecode(''),'/6327/6348.html','true',[],'',''],
		['PAGE','6369',jdecode('Rental+Equipment'),jdecode(''),'/6327/6369.html','true',[],'','']
	],'',''],
	['PAGE','7701',jdecode('Specials'),jdecode(''),'/7701.html','true',[],'',''],
	['PAGE','6411',jdecode('About+us'),jdecode(''),'/6411/index.html','true',[ 
		['PAGE','6432',jdecode('The+team'),jdecode(''),'/6411/6432.html','true',[],'','']
	],'',''],
	['PAGE','6453',jdecode('Contact'),jdecode(''),'/6453.html','true',[],'',''],
	['PAGE','33633',jdecode('Scheduling'),jdecode(''),'/33633.html','true',[],'',''],
	['PAGE','53917',jdecode('Guestbook'),jdecode(''),'/53917/index.html','true',[ 
		['PAGE','53912',jdecode('Read+Guestbook'),jdecode(''),'/53917/53912.html','false',[],'','']
	],'',''],
	['PAGE','55112',jdecode('Photo+Album'),jdecode(''),'/55112.html','true',[],'','']];
var siteelementCount=27;
theSitetree.topTemplateName='Antigua';
theSitetree.paletteFamily='61926E';
theSitetree.keyvisualId='6903';
theSitetree.keyvisualName='kv_6903.jpg';
theSitetree.fontsetId='11216';
theSitetree.graphicsetId='12037';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='80AF8C';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Antigua',
				paletteFamily: 	'61926E',
				keyvisualId: 	'6903',
				keyvisualName: 	'kv_6903.jpg',
				fontsetId: 		'11216',
				graphicsetId: 	'12037',
				contentColor: 	'000000',
				contentBGColor: '80AF8C',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1601',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-849290']={
webappId:    '1501',
documentId:  '1601',
internalId:  '849290',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1601',
internalId:  '',
customField: '20091009-163652'
};
webappMappings['1002']=webappMappings['1002-53917AHW050INE1YU']={
webappId:    '1002',
documentId:  '53917',
internalId:  '53917AHW050INE1YU',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-864b7d05a6e403174ff17024ae071739']={
webappId:    '7060',
documentId:  '55112',
internalId:  '864b7d05a6e403174ff17024ae071739',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55112',
internalId:  '',
customField: '20080219-152615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45012',
internalId:  '',
customField: '20090114-185634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6222',
internalId:  '',
customField: '20080407-162042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8001',
internalId:  '',
customField: '20100727-164021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8022',
internalId:  '',
customField: '20100727-164158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8043',
internalId:  '',
customField: '20100727-164847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8064',
internalId:  '',
customField: '20100727-165145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50112',
internalId:  '',
customField: '20080408-203918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33612',
internalId:  '',
customField: '20080204-211532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6243',
internalId:  '',
customField: '20080201-145725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6264',
internalId:  '',
customField: '20080218-212028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6285',
internalId:  '',
customField: '20080201-184644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6306',
internalId:  '',
customField: '20080201-190555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35654',
internalId:  '',
customField: '20080220-161102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6390',
internalId:  '',
customField: '20080218-214630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6327',
internalId:  '',
customField: '20080204-150426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6348',
internalId:  '',
customField: '20080204-203018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6369',
internalId:  '',
customField: '20080204-164241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7701',
internalId:  '',
customField: '20080204-175726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6411',
internalId:  '',
customField: '20090210-131910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6432',
internalId:  '',
customField: '20090210-132121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6453',
internalId:  '',
customField: '20090114-185727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33633',
internalId:  '',
customField: '20091009-165334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53917',
internalId:  '',
customField: '20080219-142915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53912',
internalId:  '',
customField: '20080219-142915'
};
webappMappings['7008']=webappMappings['7008-5109']={
webappId:    '7008',
documentId:  '33633',
internalId:  '5109',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67710',
internalId:  '',
customField: '20100312-144330'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INE1YU';
var companyName   = 'Carpet+Cleaning+Reduces+Biological+Contamination';
var htmlTitle	  = 'Spot-Tech+Carpet+Medic%2C+cleaning+%26++spotting+equipment+and+supply';
var metaKeywords  = 'spokane+carpet+cleaning+.+carpet+cleaning+spokane+%2C+steam+clean+%2C+clean+steam%2C+truck+mounted+%2C+truck+mounted+extraction+%2C+dry+clean+%2C+clean+dry+%2C+rug+cleaning+%2C+rug+washing+%2C+washing+rugs+%2C+clean+rugs+%2C+area+rugs+%2C+Oriental+rugs+%2C+wool+rugs+%2C+spots++stains+%2C+spot+removal+%2C+stain+removal+%2C+remove+spot+%2C+remove+stain+%2C+advanced+spotting+%2C+spot+dying+%2C+dying+spot+%2C+restoration+%2C+hot+water+extraction+%2C+rug+shampooing+%2C+shampoo+rugs+%2C+shampoo+carpets+%2C+carpet+shampoo%2C+clean+green+%2C+green+clean+%2C+portable+equipment+%2C+portable+extractors+%2C+fiber+protector+%2C+Teflon+%2C+residue+free+%2C+no+residue+%2C+safe+%2C+carpet+maintenance+%2C+maintain+carpets+%2C+residential+carpet+cleaning+%2C+commercial+carpet+cleaning+%2C+maintenance+program+carpet+%2C+carpets+cleaning+Coeur+dAlene+%2C+coeur+dlene+carpet+cleaning+%2C+carpet+cleaning+post+falls+%2C+clean+carpets+post+falls+carpet+repair+%2C+repair+carpets+%2C+stretch+carpets+%2C+burns+%2C+holes+%2C+stains+spots+equipment+rental+%2C+chemical+supplies+%2C+spotting+products+%2C+stain+removal+%2C+spot+removal+%2C+deodorizer+mold+.+deodorizer+pet+%2C+pet+stains+%2C+pet+odors+%2C+urine+odors+%2C+bad+smells+%2C+odors+urine+%2C+pet+restoration+%2C+bleach+spot+%2C+spot+bleach+%2C+dying+carpet+%2C+carpet+dying+%2C+mustard+stains+%2C+ink+stains+%2C+red+stains+%2C+wine+stains+%2C+coffee+stains+%2C+brown+stains+%2C+enzyme+deodorizer+%2C+pet+smells+%2C+HOST+products+%2C+dry+extraction+%2C+Mytee+products+%2C+CORE+products+%2C+extract+dry%2C+vacuum+%2C+dirt+removal+%2C+remove+dirt+%2C+remove+odors+%2C+odor+removal+%2C+warranty+carpet+cleaning+%2C+carpet+warranty+%2C+carpet+cleaning+%2C+carpets+cleaned+%2C+carpet+washing+%2C+carpet+shampooing+%2C+clean+carpets+%2C+wash+carpets+%2C+shampoo+carpets+%2C+extract+carpets+%2C+flood+extractors+%2C+water+extraction+%2C+flooded+carpets+%2C+flood+%2C+carpets+wet+%2C+carpets+flooded+%2C+carpet+cleaning+machines+%2C+carpet+cleaning+chemicals+%2C+carpets+cleaning+products+%2C+carpet+cleaning+extractors+%2C+hot+water+extractors+%2C+green+chemicals+%2C+green+products+%2C+do+it+yourself+%2C+certified+company+%2C+certified+cleaners+%2C+deep+clean+%2C+clean+deep+%2C+spokane+carpet+cleaning+%2C+carpet++rug+cleaning+%2C+wands+%2C+hoses+%2C+carpet+spots+%2C+carpet+stains+%2C+stained+carpets+%2C+oriental+rug+%2C+area+rug+%2C+rug+washing+%2C+chemdry%2C++zerorez+stanely+steamer+%2C+clean+carpets+%2C+truck+mounted+%2C+steam+clean+%2C+dry+clean+%2C+mold+%2C+milder+%2C+odors+%2C+deodorizers+%2C+sanitizers+%2C+odors+%2C+pet+odor+%2C+dog+urine+%2C+cat+urine+%2C+pet+odors+%2C+enzyme+%2C+enzymes+%2C+pluss+2+%2C+black+light+%2C+carpet+cleaning+inspection+%2C+inspections+%2C+rug+inspections+%2C+free+estimate+carpet+cleaning+%2C++Spokane+%2C+post+falls+%2C+courdalene+Washington+%2C+Idaho+%2C++spot+tech+%2C+spottech+%2C+spot-tech+%2C+carpet+shampoo+%2C+rug+shampoo+%2C+shampoo+carpets+%2C+shampoo+rugs+%2C+dirty+carpets+%2C+carpet+dirt+%2C+carpet+tiles+%2C+replace+carpet+%2C+carpet+replace+%2C+dirty+rugs+%2C+rug+dirty+%2C+carpet+rug+cleaning+%2C+wool+rugs+%2C+wool+carpets+%2C+nylon+carpets+%2C+olefin+carpets+%2C+silk+rugs+%2C+cotton+rugs+%2C+clean+wool+.+wool+wash+%2C+clean+wool+rugs+%2C+auto+interior+%2C+auto+detailing+%2C+furniture+cleaning+%2C+upholstery+cleaning+%2C+clean+upholstery+%2C+clean+cushions+%2C+remove+pet+odors+%2C+remove+pet+odors+upholstery%2C+remove+pet+odors+furniture%2C+low+price+carpet+cleaning+%2C+carpet+cleaning+specials+%2C+high+price+carpet+cleaning+%2C+carpet+washing+%2C+clean+carpets+%2C+shampoo+carpets+%2C+stain+resist+carpet+%2C+warranty+cleaning+%2C+warranty+carpet+cleaning+company+%2C+carpet+mill+warranty+%2C+guaranteed+cleaning+%2C+spot+removal+%2C+stain+removal+%2C+spotting+products+%2C+mats+%2C+clean+mats+%2C+buy+carpet+%2C+buy+carpet+cleaning+%2C+carpet+cleaning+equipment+%2C+carpet+cleaning+supplies+%2C+wall+to+wall+carpet+cleaning+%2C+glued+down+carpet+%2C+residential+carpet+cleaning+%2C+commercial+carpet+cleaning+%2C+janitorial+cleaning+%2C++++++++++';
var metaContents  = 'SPOKANE+CARPET+CLEANING+%2C+CARPET+SPOTTING+%2C+CARPET+STAINS+%2C+PET+ODOR+%2C+ODORS+%2C+MOLD+%2C+MILDEW+%2C+FLOODS+%2C+EMERGENCY+FLOODS+%2C+CARPET+CLEANING+EQUIPMENT+%2C+CARPET+CLEANING+EQUIPMENT+RENTAL+%2C+CARPET+CLEANING+SUPPLIES+%2C+CARPET+CLEANING+CHEMICALS+%2C+CARPET+REPAIR+%2C+HOLES+%2C+SEAMS+%2C+STRETCHING+%2C+AUTO+DETAILING+%2C+AUTO+INTERIOR+%2C++ORIENTAL+RUGS+%2C+ARE+RUGS+%2C+RUG+WASHING+%2C+HOT+WATER+EXTRACTORS+%2C+PORTABLE+CARPET+CLEANING+MACHINES+%2C+DO+IT+YOUR+SELF+CENTER+%2C+CHEMICAL+AND+SUPPLY++STORE+%2C+DEODORIZERS+%2C+SANITIZERS+%2C+TRUCK+MOUNTED+%2C+STEAM+CLEAN+%2C+DRY+CLEAN+%2C++CERTIFIED+CLEANING+%2C+CERTIFIED+FIRM+%2C+CLEAN+CARPETS+%2C+RUGS+%2C+UPHOLSTERY+';
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();
};
