/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','452',jdecode('Product+Index'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','494',jdecode('Industrial+Cleaning+Chemicals+'),jdecode(''),'/452/494.html','true',[],'',''],
		['PAGE','515',jdecode('Dairy+Detergents+'),jdecode(''),'/452/515.html','true',[],'','']
	],'',''],
	['PAGE','599',jdecode('Alu+Plus+Cleaner+%26+Alu+Brite+%28Polish%29'),jdecode(''),'/599.html','true',[],'',''],
	['PAGE','683',jdecode('Cleaning+Supplies%2FPaper+Products'),jdecode(''),'/683.html','true',[],'',''],
	['PAGE','31001',jdecode('Counts+Down+%28Dairy+Acid%29'),jdecode(''),'/31001.html','true',[],'',''],
	['PAGE','557',jdecode('Cow+Mate'),jdecode(''),'/557.html','true',[],'',''],
	['PAGE','31201',jdecode('Enviro+Acid+Wash'),jdecode(''),'/31201.html','true',[],'',''],
	['PAGE','31222',jdecode('Enviro+Alkali+Wash'),jdecode(''),'/31222.html','true',[],'',''],
	['PAGE','536',jdecode('Enviro+Safe'),jdecode(''),'/536.html','true',[],'',''],
	['PAGE','31243',jdecode('Enviro+Sani+Kleen+Plus'),jdecode(''),'/31243.html','true',[],'',''],
	['PAGE','23201',jdecode('Laundry+Products'),jdecode(''),'/23201.html','true',[],'',''],
	['PAGE','620',jdecode('Mower+Plus'),jdecode(''),'/620.html','true',[],'',''],
	['PAGE','25601',jdecode('Pumps'),jdecode(''),'/25601.html','true',[],'',''],
	['PAGE','28601',jdecode('Solvents'),jdecode(''),'/28601.html','true',[],'',''],
	['PAGE','578',jdecode('Tar+Remover'),jdecode(''),'/578.html','true',[],'',''],
	['PAGE','31801',jdecode('Timber+Plus'),jdecode(''),'/31801.html','true',[],'',''],
	['PAGE','29701',jdecode('Vacuums'),jdecode(''),'/29701.html','true',[],'',''],
	['PAGE','473',jdecode('Specials'),jdecode(''),'/473.html','true',[],'',''],
	['PAGE','662',jdecode('Distributors+%2F+Jobs'),jdecode(''),'/662.html','true',[],'',''],
	['PAGE','33701',jdecode('Chemical+Pulse+Meter'),jdecode(''),'/33701.html','true',[],'',''],
	['PAGE','34001',jdecode('Drum+Spill+Containers'),jdecode(''),'/34001.html','true',[],'','']];
var siteelementCount=23;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='B5D3B5';
theSitetree.keyvisualId='2054';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='328';
theSitetree.graphicsetId='384';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Stylus',
				paletteFamily: 	'B5D3B5',
				keyvisualId: 	'2054',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'328',
				graphicsetId: 	'384',
				contentColor: 	'000066',
				contentBGColor: 'FFFFFF',
				a_color: 		'B5D3B5',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100801-032220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '662',
internalId:  '',
customField: '20091130-182531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20071211-211403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31801',
internalId:  '',
customField: '20100801-043708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '683',
internalId:  '',
customField: '20100801-015821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31001',
internalId:  '',
customField: '20100801-034413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20100801-044111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20071017-000807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20071016-231328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20100801-011352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20100808-190751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '599',
internalId:  '',
customField: '20100801-011218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20100801-040700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20100801-043929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23201',
internalId:  '',
customField: '20090822-031646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31201',
internalId:  '',
customField: '20100801-034813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25601',
internalId:  '',
customField: '20100729-002815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28601',
internalId:  '',
customField: '20100810-003521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29701',
internalId:  '',
customField: '20100801-021524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31222',
internalId:  '',
customField: '20100801-035322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31243',
internalId:  '',
customField: '20100801-035937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33701',
internalId:  '',
customField: '20100810-005051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34001',
internalId:  '',
customField: '20100810-010257'
};
var canonHostname = 'wscwrk02.ehost-services.com';
var accountId     = 'AEN010INVWJM';
var companyName   = 'EnviroChem+Industries+P%2FL';
var htmlTitle	  = 'EnviroChem';
var metaKeywords  = 'EnviroChem%2CEnviro+Safe%2CCow+Mate%2CEnviromentally+Friendly+Chemicals%2CDairy+Detergents%2CCleaning+Chemicals%2CChemicals%2CCleaning+supplies%2CPaper+Products%2CDairy+Supplies%2CCar+wash%2CTruck+wash%2CCurtain+Side+Cleaner%2CFloor+Cleaner%2CGraffiti+Remover%2CWax+Remover%2CBrake+cleaner%2CEngine+Coolant%2CAgricultural+Chemicals+-+Air+Craft+Cleaners+-+Carpet+Cleaning+Chemicals+-+Chemicals+%3A+Retail+-+Cleaning+Chemicals+-+Cow+Mate+-+Dairy+Chemicals+-+Degreasers+-+Detergents+-+Disinfectant+-+Enviro+Safe+%28Enviromentally+Friendly+-+Enviromentally+Friendly+Cleaning+Chemicals+-+Floor+Cleaning+Chemicals+-+Graffitti+Remover+-+Hand+Cleaners+-+High+Pressure+Water+Cleaners+-+Highly+Concentrated+Cleaning+Chemical+-+Metal+Polish+-+Mines+Cleaners+-+Organinc+-+Soaps++Detergents+%3A+Retail+-+Steam+Cleaners+-+Truck+Wash+-+Window+Cleaning+Chemicals%2C+Distributors%2CEnvirosafe';
var metaContents  = 'EnviroChem%2CEnviro+Safe%2CCow+Mate%2CEnviromentally+Friendly+Chemicals%2CDairy+Detergents%2CCleaning+Chemicals%2CChemicals%2CCleaning+supplies%2CPaper+Products%2CDairy+Supplies%2CCar+wash%2CTruck+wash%2CCurtain+Side+Cleaner%2CFloor+Cleaner%2CGraffiti+Remover%2CWax+Remover%2CBrake+cleaner%2CEngine+Coolant%2CAgricultural+Chemicals+-+Air+Craft+Cleaners+-+Carpet+Cleaning%2CDistributors%2C+Chemicals+-+Chemicals+%3A+Retail+-+Cleaning+Chemicals+-+Cow+Mate+-+Dairy+Chemicals+-+Degreasers+-+Detergents+-+Disinfectant+-+Enviro+Safe+%28Enviromentally+Friendly+-+Enviromentally+Friendly+Cleaning+Chemicals+-+Floor+Cleaning+Chemicals+-+Graffitti+Remover+-+Hand+Cleaners+-+High+Pressure+Water+Cleaners+-+Highly+Concentrated+Cleaning+Chemical+-+Metal+Polish+-+Mines+Cleaners+-+Organinc+-+Soaps++Detergents+%3A+Retail+-+Steam+Cleaners+-+Truck+Wash+-+Window+Cleaning+ChemicalsEnvirosafe';
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();
};
