/* [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','1901',jdecode('About+Us'),jdecode(''),'/1901.html','true',[],'',''],
	['PAGE','40823',jdecode('What+Distinguishes%3F'),jdecode(''),'/40823.html','true',[],'',''],
	['PAGE','37323',jdecode('References'),jdecode(''),'/37323.html','true',[],'',''],
	['PAGE','6701',jdecode('Special+Offers'),jdecode(''),'/6701.html','true',[],'',''],
	['PAGE','21232',jdecode('New+Technology'),jdecode(''),'/21232.html','true',[],'',''],
	['PAGE','19801',jdecode('What+is+IICRC%3F'),jdecode(''),'/19801.html','true',[],'',''],
	['PAGE','22330',jdecode('Carpet+'),jdecode(''),'/22330.html','true',[],'',''],
	['PAGE','22339',jdecode('Upholstery+'),jdecode(''),'/22339.html','true',[],'',''],
	['PAGE','41523',jdecode('Pet+Odor+Removal'),jdecode(''),'/41523.html','true',[],'',''],
	['PAGE','41823',jdecode('Protectants'),jdecode(''),'/41823.html','true',[],'',''],
	['PAGE','31823',jdecode('Green+Cleaning'),jdecode(''),'/31823.html','true',[],'',''],
	['PAGE','22348',jdecode('Furnace%2FAir+Duct'),jdecode(''),'/22348.html','true',[],'',''],
	['PAGE','28112',jdecode('Dryer+Vent'),jdecode(''),'/28112.html','true',[],'',''],
	['PAGE','23001',jdecode('Auto%26%23x27%3Bs%2FRV%26%23x27%3Bs%2FBoats'),jdecode(''),'/23001.html','true',[],'',''],
	['PAGE','23301',jdecode('Emergency+Flood'),jdecode(''),'/23301.html','true',[],'',''],
	['PAGE','6722',jdecode('Q+and+A%3F'),jdecode(''),'/6722.html','true',[],'',''],
	['PAGE','6743',jdecode('How+To+Choose%3F'),jdecode(''),'/6743.html','true',[],'',''],
	['PAGE','21312',jdecode('Why+Hire+Us%3F'),jdecode(''),'/21312.html','true',[],'',''],
	['PAGE','6764',jdecode('Spot+Removal'),jdecode(''),'/6764.html','true',[],'',''],
	['PAGE','6785',jdecode('Contact+Info'),jdecode(''),'/6785.html','true',[],'',''],
	['PAGE','39923',jdecode('Pro-Products'),jdecode(''),'/39923.html','true',[],'',''],
	['PAGE','15506',jdecode('Guestbook'),jdecode(''),'/15506/index.html','true',[ 
		['PAGE','15501',jdecode('Read+Guestbook'),jdecode(''),'/15506/15501.html','false',[],'','']
	],'','']];
var siteelementCount=23;
theSitetree.topTemplateName='Akropolis';
theSitetree.paletteFamily='4A587F';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10553';
theSitetree.graphicsetId='10449';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='4A587F';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Akropolis',
				paletteFamily: 	'4A587F',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10553',
				graphicsetId: 	'10449',
				contentColor: 	'FFFFFF',
				contentBGColor: '4A587F',
				a_color: 		'4A587F',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21232',
internalId:  '',
customField: '20090328-223729'
};
webappMappings['1002']=webappMappings['1002-15506AHW050INX32D']={
webappId:    '1002',
documentId:  '15506',
internalId:  '15506AHW050INX32D',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20090717-154411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19801',
internalId:  '',
customField: '20090321-102800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28112',
internalId:  '',
customField: '20090316-113936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6701',
internalId:  '',
customField: '20090305-192740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6722',
internalId:  '',
customField: '20090210-122151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6743',
internalId:  '',
customField: '20090210-122221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21312',
internalId:  '',
customField: '20090613-104042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6764',
internalId:  '',
customField: '20090210-122339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6785',
internalId:  '',
customField: '20090210-122403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22348',
internalId:  '',
customField: '20090829-234914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15506',
internalId:  '',
customField: '20090210-122427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15501',
internalId:  '',
customField: '20080221-151001'
};
webappMappings['1501']=webappMappings['1501-2775707']={
webappId:    '1501',
documentId:  '1901',
internalId:  '2775707',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22339',
internalId:  '',
customField: '20100318-090048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22330',
internalId:  '',
customField: '20100318-091625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23001',
internalId:  '',
customField: '20090210-122057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23301',
internalId:  '',
customField: '20090210-122123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31823',
internalId:  '',
customField: '20090316-113158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37323',
internalId:  '',
customField: '20091016-134649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39923',
internalId:  '',
customField: '20091020-202452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40823',
internalId:  '',
customField: '20090823-165917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41523',
internalId:  '',
customField: '20090722-160843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41823',
internalId:  '',
customField: '20090722-165440'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INX32D';
var companyName   = 'Cascade+Cleaning+Services%2C+LLC+++';
var htmlTitle	  = 'Boise+Carpet+Cleaners+Cleaning+Steam+Cleaning+Upholstery+Air+Duct+Dryer+Vent+Green+Cleaning+Idaho+Eagle+Meridian+Nampa%2C+Kuna';
var metaKeywords  = 'Boise+Carpet+cleaning+cleaners+green+carpet+cleaning+Steam+Carpet+Cleaning+Upholstery+Air+Duct+Dry+vent+cleaningTreasure+Valley+Boise+urine+pet+stains+dirty+carpet+dry+green+Rug+Eagle+Meridian+Nampa+Caldwell+Kuna+Idaho';
var metaContents  = 'Cascade+Cleaning+Services%2C+LLC+-+Accredited+Business+through+the+BBB.++407-8999.++All+services+and+products+are+guaranteed.++Stream+cleaning+that+dries+in+a+few+hours+not+a+few+days.++';
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();
};
