/* [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','42',jdecode('Home'),jdecode(''),'/42/index.html','true',[ 
		['PAGE','2969',jdecode('Specials'),jdecode(''),'/42/2969.html','true',[],''],
		['PAGE','1686',jdecode('Client+References'),jdecode(''),'/42/1686.html','true',[],''],
		['PAGE','1695',jdecode('News'),jdecode(''),'/42/1695.html','true',[],''],
		['PAGE','1704',jdecode('Business+Relationships'),jdecode(''),'/42/1704.html','true',[],''],
		['PAGE','2978',jdecode('Privacy+Policy'),jdecode(''),'/42/2978.html','true',[],'']
	],''],
	['PAGE','1677',jdecode('About+Us'),jdecode(''),'/1677/index.html','true',[ 
		['PAGE','2429',jdecode('History'),jdecode(''),'/1677/2429.html','true',[],''],
		['PAGE','9201',jdecode('Mission+Statement'),jdecode(''),'/1677/9201.html','true',[],''],
		['PAGE','1713',jdecode('Awards+and+Organizations'),jdecode(''),'/1677/1713.html','true',[],'']
	],''],
	['PAGE','1225',jdecode('Services'),jdecode(''),'/1225/index.html','true',[ 
		['PAGE','1234',jdecode('Commercial+Cleanings'),jdecode(''),'/1225/1234.html','true',[],''],
		['PAGE','3714',jdecode('Go+Green+Cleanings'),jdecode(''),'/1225/3714.html','true',[],''],
		['PAGE','1289',jdecode('Carpet+Cleanings'),jdecode(''),'/1225/1289.html','true',[],''],
		['PAGE','1722',jdecode('Tiled+Floors'),jdecode(''),'/1225/1722.html','true',[],''],
		['PAGE','3581',jdecode('Lawn+Care'),jdecode(''),'/1225/3581.html','true',[],''],
		['PAGE','13101',jdecode('Snow+Removal'),jdecode(''),'/1225/13101.html','true',[],''],
		['PAGE','14401',jdecode('Food+Catering'),jdecode(''),'/1225/14401.html','true',[],''],
		['PAGE','3313',jdecode('Carpet+Cleaning+FAQ'),jdecode(''),'/1225/3313.html','true',[],''],
		['PAGE','2594',jdecode('Carplet+Cleaning+%22Spot%22+Warranty'),jdecode(''),'/1225/2594.html','true',[],''],
		['PAGE','3425',jdecode('Spot+Removing+Instructions'),jdecode(''),'/1225/3425.html','true',[],''],
		['PAGE','2603',jdecode('Carpet+Cleaning+Misconceptions'),jdecode(''),'/1225/2603.html','true',[],''],
		['PAGE','3919',jdecode('Old+Fashioned+Way'),jdecode(''),'/1225/3919.html','true',[],''],
		['PAGE','3928',jdecode('Modern%2FFuturistic'),jdecode(''),'/1225/3928.html','true',[],''],
		['PAGE','3080',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/1225/3080.html','false',[],'']
	],''],
	['PAGE','7301',jdecode('Photos'),jdecode(''),'/7301.html','true',[],''],
	['PAGE','90',jdecode('Contact'),jdecode(''),'/90.html','true',[],'']];
var siteelementCount=27;
theSitetree.topTemplateName='Craft';
theSitetree.paletteFamily='565EBF';
theSitetree.keyvisualId='5722';
theSitetree.keyvisualName='kv_5722.jpg';
theSitetree.fontsetId='11050';
theSitetree.graphicsetId='11809';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Craft',
				paletteFamily: 	'565EBF',
				keyvisualId: 	'5722',
				keyvisualName: 	'kv_5722.jpg',
				fontsetId: 		'11050',
				graphicsetId: 	'11809',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'565EBF',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1001']=webappMappings['1001-ahw050invw9o6ba8722babe10be5']={
webappId:    '1001',
documentId:  '90',
internalId:  'ahw050invw9o6ba8722babe10be5',
customField: ''
};
webappMappings['1001']=webappMappings['1001-ahw050invw9o6ba8722babe10be5']={
webappId:    '1001',
documentId:  '3080',
internalId:  'ahw050invw9o6ba8722babe10be5',
customField: 'followUp'
};
webappMappings['7005']=webappMappings['7005-159']={
webappId:    '7005',
documentId:  '42',
internalId:  '159',
customField: 'language:en;country:US;'
};
webappMappings['7005']=webappMappings['7005-160']={
webappId:    '7005',
documentId:  '1225',
internalId:  '160',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '42',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-d200f260824e6a065ec458e5940380da']={
webappId:    '7060',
documentId:  '7301',
internalId:  'd200f260824e6a065ec458e5940380da',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42',
internalId:  '',
customField: '20100418-233233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2969',
internalId:  '',
customField: '20081230-005227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1686',
internalId:  '',
customField: '20080412-023218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1695',
internalId:  '',
customField: '20080903-174834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1704',
internalId:  '',
customField: '20081230-005453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2978',
internalId:  '',
customField: '20081230-011342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1677',
internalId:  '',
customField: '20100418-233639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2429',
internalId:  '',
customField: '20100419-000415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9201',
internalId:  '',
customField: '20100419-000452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1713',
internalId:  '',
customField: '20080505-200905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1225',
internalId:  '',
customField: '20100418-233813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1234',
internalId:  '',
customField: '20080403-012132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3714',
internalId:  '',
customField: '20100418-235026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1289',
internalId:  '',
customField: '20100418-235131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3313',
internalId:  '',
customField: '20100418-235442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2594',
internalId:  '',
customField: '20100418-235657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3425',
internalId:  '',
customField: '20100418-235912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2603',
internalId:  '',
customField: '20100418-235947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1722',
internalId:  '',
customField: '20080403-064204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3581',
internalId:  '',
customField: '20080903-172359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3919',
internalId:  '',
customField: '20080417-230449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3928',
internalId:  '',
customField: '20100419-000038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20080903-174157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90',
internalId:  '',
customField: '20100419-000112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3080',
internalId:  '',
customField: '20080408-220347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13101',
internalId:  '',
customField: '20100418-235249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14401',
internalId:  '',
customField: '20100418-235327'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INVW9O';
var companyName   = 'King%27s+Services%2C+Inc.';
var htmlTitle	  = 'King%27s+Service%2C+Inc.';
var metaKeywords  = 'Janitorial%2C+Cleanings%2C+Hoffman+Estates%2C+Chicago%2C+Schaumburg%2C+Barrington%2C+Carpet+Cleanings%2C+Wall+Washing%2C+Floor+Cleanings%2C+Floors%2C+tiles%2C+tile+cleanings%2C+lawn+care%2C+snow+removal%2C+power+washing';
var metaContents  = 'Welcome+to+Kings+Service.+King%E2%80%99s+Service+is+an+insured+janitorial%2C+lawn-care%2C+snow+removal%2C+and+power+washing+company+that+specializes+in+commercial+cleanings.+We+were+originally+named+General+Maintenance+Services+and+founded+in+1979+as+a+one-man+shop+by+Salvatore+Intravartolo.+Kings+Service+is+a+family+owned+and+operated+organization+that+believes+hard+work+is+the+key+to+the+best+possible+service.+Since+the+beginning%2C+our+goal+has+been+to+provide+the+utmost+in+customer+service+and+long-term+client+satisfaction.';
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();
};
