/* [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','2601',jdecode('Home'),jdecode(''),'/2601.html','true',[],''],
	['PAGE','57301',jdecode('Asphalt+Recycler'),jdecode(''),'/57301.html','true',[],''],
	['PAGE','58101',jdecode('Bloggers%21%21'),jdecode(''),'/58101.html','true',[],''],
	['PAGE','8206',jdecode('Infrareds'),jdecode(''),'/8206/index.html','true',[ 
		['PAGE','31601',jdecode('The+Infrared+Process'),jdecode(''),'/8206/31601.html','true',[],''],
		['PAGE','10301',jdecode('Profit+Scenario'),jdecode(''),'/8206/10301.html','false',[],''],
		['PAGE','8227',jdecode('LB+2-16'),jdecode(''),'/8206/8227.html','true',[],''],
		['PAGE','8269',jdecode('KM+2-18X'),jdecode(''),'/8206/8269.html','true',[],''],
		['PAGE','8290',jdecode('KM+4-40'),jdecode(''),'/8206/8290.html','true',[],''],
		['PAGE','8311',jdecode('KM+4-48'),jdecode(''),'/8206/8311.html','true',[],''],
		['PAGE','8248',jdecode('Lineals'),jdecode(''),'/8206/8248.html','true',[],'']
	],''],
	['PAGE','2673',jdecode('Hotboxes'),jdecode(''),'/2673/index.html','true',[ 
		['PAGE','10201',jdecode('KM+4000'),jdecode(''),'/2673/10201.html','true',[],''],
		['PAGE','10222',jdecode('KM+8000'),jdecode(''),'/2673/10222.html','true',[],''],
		['PAGE','8164',jdecode('KM+4000T'),jdecode(''),'/2673/8164.html','true',[],''],
		['PAGE','8185',jdecode('KM+8000T'),jdecode(''),'/2673/8185.html','true',[],''],
		['PAGE','18801',jdecode('Stock-Piled+Asphalt'),jdecode(''),'/2673/18801.html','true',[],'']
	],''],
	['PAGE','2694',jdecode('Crack+Maintenance'),jdecode(''),'/2694/index.html','true',[ 
		['PAGE','8143',jdecode('Crack+Jet+II'),jdecode(''),'/2694/8143.html','true',[],''],
		['PAGE','8101',jdecode('KM+55+Melting+Kettle'),jdecode(''),'/2694/8101.html','true',[],''],
		['PAGE','8122',jdecode('MA-10+Melter'),jdecode(''),'/2694/8122.html','true',[],''],
		['PAGE','10401',jdecode('Profit+Scenario'),jdecode(''),'/2694/10401.html','true',[],'']
	],''],
	['PAGE','2652',jdecode('Bulk+Storage+Tanks'),jdecode(''),'/2652/index.html','true',[ 
		['PAGE','29601',jdecode('Features+%26+Options'),jdecode(''),'/2652/29601.html','true',[],'']
	],''],
	['PAGE','8353',jdecode('Seal+Tanks'),jdecode(''),'/8353.html','true',[],''],
	['PAGE','45101',jdecode('Used+Equipment'),jdecode(''),'/45101.html','true',[],''],
	['PAGE','10501',jdecode('Equipment+Catalog'),jdecode(''),'/10501.html','true',[],''],
	['PAGE','2736',jdecode('Distributor+Locator'),jdecode(''),'/2736.html','true',[],''],
	['PAGE','50701',jdecode('Demo+Videos'),jdecode(''),'/50701/index.html','true',[ 
		['PAGE','51101',jdecode('KM+4-48+Operation'),jdecode(''),'/50701/51101.html','true',[],'']
	],''],
	['PAGE','41301',jdecode('Testimonials'),jdecode(''),'/41301.html','false',[],''],
	['PAGE','2757',jdecode('About+us'),jdecode(''),'/2757/index.html','true',[ 
		['PAGE','2778',jdecode('Our+team'),jdecode(''),'/2757/2778.html','true',[],'']
	],''],
	['PAGE','2820',jdecode('Contact'),jdecode(''),'/2820/index.html','true',[ 
		['PAGE','11301',jdecode('E-Mail+Request'),jdecode(''),'/2820/11301.html','true',[],'']
	],'']];
var siteelementCount=35;
theSitetree.topTemplateName='Limit';
theSitetree.paletteFamily='FB5E53';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10814';
theSitetree.graphicsetId='11255';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='969696';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Limit',
				paletteFamily: 	'FB5E53',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10814',
				graphicsetId: 	'11255',
				contentColor: 	'000000',
				contentBGColor: '969696',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2601',
internalId:  '',
customField: '20100415-154652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2652',
internalId:  '',
customField: '20080925-115253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2673',
internalId:  '',
customField: '20090831-133638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2694',
internalId:  '',
customField: '20090831-133907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8206',
internalId:  '',
customField: '20100415-152938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2736',
internalId:  '',
customField: '20100415-145740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2757',
internalId:  '',
customField: '20100415-153337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2778',
internalId:  '',
customField: '20090831-135012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8311',
internalId:  '',
customField: '20091020-094708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2820',
internalId:  '',
customField: '20100415-152050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8122',
internalId:  '',
customField: '20080910-124000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8353',
internalId:  '',
customField: '20090831-134126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8143',
internalId:  '',
customField: '20090303-144942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10501',
internalId:  '',
customField: '20100415-145450'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2601',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-7894']={
webappId:    '7008',
documentId:  '11301',
internalId:  '7894',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11301',
internalId:  '',
customField: '20080912-143905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10301',
internalId:  '',
customField: '20080828-103429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8248',
internalId:  '',
customField: '20090831-133039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10401',
internalId:  '',
customField: '20090206-105510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8101',
internalId:  '',
customField: '20080910-123444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10201',
internalId:  '',
customField: '20080925-114258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10222',
internalId:  '',
customField: '20080925-114404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8164',
internalId:  '',
customField: '20080925-114642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8185',
internalId:  '',
customField: '20080925-114851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8227',
internalId:  '',
customField: '20090206-110024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8269',
internalId:  '',
customField: '20090206-110226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8290',
internalId:  '',
customField: '20080924-165820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18801',
internalId:  '',
customField: '20090831-133837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29601',
internalId:  '',
customField: '20080925-115723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31601',
internalId:  '',
customField: '20090831-132217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45101',
internalId:  '',
customField: '20100415-130840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41301',
internalId:  '',
customField: '20081211-101436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50701',
internalId:  '',
customField: '20090831-134918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51101',
internalId:  '',
customField: '20090420-163036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57301',
internalId:  '',
customField: '20100415-152519'
};
webappMappings['7050']=webappMappings['7050-12086']={
webappId:    '7050',
documentId:  '58101',
internalId:  '12086',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58101',
internalId:  '',
customField: '20091023-101232'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INE0OO';
var companyName   = 'K+M+International';
var htmlTitle	  = 'K+M+International';
var metaKeywords  = 'asphalt+maintenance+equipment%2C+hotbox%2C+infrared%2C+millings%2C+recycle%2C+bulk+storage+tanks%2C+spray+rigs';
var metaContents  = 'Manufacturers+of+asphalt+repair+equipment+using+infrared+technology%3B+our+products+include+infrared+heaters%2C+crack+maintenance+equipment+and+hotboxes.';
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();
};
