/* [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','5401',jdecode('Home'),jdecode(''), jdecode('%2F5401.html'), 'true',[],'',''],
	['PAGE','73134',jdecode('Purchase'),jdecode(''), jdecode('%2F73134%2Findex.html'), 'true',[ 
		['PAGE','80934',jdecode('Wood+Industry+USA'),jdecode(''), jdecode('%2F73134%2F80934.html'), 'true',[],'',''],
		['PAGE','81034',jdecode('Other+Industries'),jdecode(''), jdecode('%2F73134%2F81034.html'), 'true',[],'','']
	],'',''],
	['PAGE','5452',jdecode('Contact'),jdecode(''), jdecode('%2F5452.html'), 'true',[],'',''],
	['PAGE','5473',jdecode('Scenarios+%26+Solutions'),jdecode(''), jdecode('%2F5473%2Findex.html'), 'true',[ 
		['PAGE','5494',jdecode('Custom+Cabinet+Shop'),jdecode(''), jdecode('%2F5473%2F5494.html'), 'true',[],'',''],
		['PAGE','5515',jdecode('Payroll+%26+Job+Cost+Flow+Chart'),jdecode(''), jdecode('%2F5473%2F5515.html'), 'false',[],'',''],
		['PAGE','5536',jdecode('Materials+%26+Inventory+Flow+Chart'),jdecode(''), jdecode('%2F5473%2F5536.html'), 'false',[],'','']
	],'',''],
	['PAGE','5557',jdecode('Products'),jdecode(''), jdecode('%2F5557%2Findex.html'), 'true',[ 
		['PAGE','5578',jdecode('TracManager+Module+Overview'),jdecode(''), jdecode('%2F5557%2F5578.html'), 'true',[],'',''],
		['PAGE','5599',jdecode('Time+%26+Payroll'),jdecode(''), jdecode('%2F5557%2F5599.html'), 'true',[],'',''],
		['PAGE','5620',jdecode('Job+Cost+%26+Analysis'),jdecode(''), jdecode('%2F5557%2F5620.html'), 'true',[],'',''],
		['PAGE','5641',jdecode('Estimating'),jdecode(''), jdecode('%2F5557%2F5641.html'), 'true',[],'',''],
		['PAGE','5683',jdecode('Materials+%26+Inventory'),jdecode(''), jdecode('%2F5557%2F5683.html'), 'true',[],'',''],
		['PAGE','5662',jdecode('Manufacturing+%26+Scheduling'),jdecode(''), jdecode('%2F5557%2F5662.html'), 'true',[],'',''],
		['PAGE','5704',jdecode('Data+Capture'),jdecode(''), jdecode('%2F5557%2F5704.html'), 'true',[],'','']
	],'',''],
	['PAGE','5725',jdecode('Integration+%26+Links'),jdecode(''), jdecode('%2F5725%2Findex.html'), 'true',[ 
		['PAGE','66234',jdecode('QuickBooks+Integration'),jdecode(''), jdecode('%2F5725%2F66234.html'), 'true',[],'',''],
		['PAGE','68734',jdecode('TracLink+for+Cabinet+Vision'),jdecode(''), jdecode('%2F5725%2F68734.html'), 'true',[],'',''],
		['PAGE','69134',jdecode('TracLink+for+Master+Builder'),jdecode(''), jdecode('%2F5725%2F69134.html'), 'true',[],'',''],
		['PAGE','71534',jdecode('OnScreen+Take-Off'),jdecode(''), jdecode('%2F5725%2F71534.html'), 'true',[],'',''],
		['PAGE','69155',jdecode('PeachTree+Accounting'),jdecode(''), jdecode('%2F5725%2F69155.html'), 'false',[],'','']
	],'',''],
	['PAGE','5746',jdecode('Screenshots'),jdecode(''), jdecode('%2F5746%2Findex.html'), 'true',[ 
		['PAGE','5767',jdecode('Time+%26+Payroll'),jdecode(''), jdecode('%2F5746%2F5767.html'), 'true',[],'',''],
		['PAGE','5788',jdecode('Job+Cost+%26+Analysis'),jdecode(''), jdecode('%2F5746%2F5788.html'), 'true',[],'',''],
		['PAGE','5809',jdecode('Estimating'),jdecode(''), jdecode('%2F5746%2F5809.html'), 'true',[],'',''],
		['PAGE','5830',jdecode('Materials+%26+Inventory'),jdecode(''), jdecode('%2F5746%2F5830.html'), 'true',[],'',''],
		['PAGE','5851',jdecode('Manufacturing+%26+Scheduling'),jdecode(''), jdecode('%2F5746%2F5851.html'), 'true',[],'','']
	],'',''],
	['PAGE','22201',jdecode('Report+Samples'),jdecode(''), jdecode('%2F22201.html'), 'false',[],'',''],
	['PAGE','5893',jdecode('Customer+Showcase'),jdecode(''), jdecode('%2F5893%2Findex.html'), 'true',[ 
		['PAGE','22701',jdecode('Custom+Woodworking'),jdecode(''), jdecode('%2F5893%2F22701.html'), 'true',[],'',''],
		['PAGE','22722',jdecode('Countertops'),jdecode(''), jdecode('%2F5893%2F22722.html'), 'true',[],'',''],
		['PAGE','22743',jdecode('Custom+Manufacturing'),jdecode(''), jdecode('%2F5893%2F22743.html'), 'true',[],'',''],
		['PAGE','22764',jdecode('Yachts'),jdecode(''), jdecode('%2F5893%2F22764.html'), 'true',[],'',''],
		['PAGE','22785',jdecode('Other+Industries'),jdecode(''), jdecode('%2F5893%2F22785.html'), 'true',[],'',''],
		['PAGE','79134',jdecode('Elevators'),jdecode(''), jdecode('%2F5893%2F79134.html'), 'true',[],'',''],
		['PAGE','79155',jdecode('Plumbing'),jdecode(''), jdecode('%2F5893%2F79155.html'), 'true',[],'','']
	],'',''],
	['PAGE','5914',jdecode('Resources'),jdecode(''), jdecode('%2F5914.html'), 'true',[],'',''],
	['PAGE','63434',jdecode('Partners+%26+Associates'),jdecode(''), jdecode('%2F63434.html'), 'true',[],'',''],
	['PAGE','5935',jdecode('Support'),jdecode(''), jdecode('%2F5935.html'), 'true',[],'',''],
	['PAGE','54823',jdecode('Time+%26+Payroll++-+Reminders+-+Help+Center'),jdecode(''), jdecode('%2F54823.html'), 'false',[],'',''],
	['PAGE','54844',jdecode('Time+%26+Payroll+-+Report+Center+-+Help+Center'),jdecode(''), jdecode('%2F54844.html'), 'false',[],'',''],
	['PAGE','54865',jdecode('Time+%26+Payroll+-+Report+Favorites+-+Help+Center'),jdecode(''), jdecode('%2F54865.html'), 'false',[],'',''],
	['PAGE','54886',jdecode('Time+%26+Payroll+-+Timesheets+-+Help+Center'),jdecode(''), jdecode('%2F54886.html'), 'false',[],'',''],
	['PAGE','54907',jdecode('Time+%26+Payroll+-+Customer%2FJob%2FBudgets+-+Help+Center'),jdecode(''), jdecode('%2F54907.html'), 'false',[],'',''],
	['PAGE','54928',jdecode('Time+%26+Payroll+-+Activities+-+Help+Center'),jdecode(''), jdecode('%2F54928.html'), 'false',[],'',''],
	['PAGE','54949',jdecode('Time+%26+Payroll+-+Help+Lists+-+Help+Center'),jdecode(''), jdecode('%2F54949.html'), 'false',[],'',''],
	['PAGE','54970',jdecode('Time+%26+Payroll+-+Set+Up+-+Help+Center'),jdecode(''), jdecode('%2F54970.html'), 'false',[],'','']];
var siteelementCount=49;
theSitetree.topTemplateName='Business';
theSitetree.paletteFamily='003366';
theSitetree.keyvisualId='2487';
theSitetree.keyvisualName='seminar.jpg';
theSitetree.fontsetId='418';
theSitetree.graphicsetId='463';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'hostway_generic',
  product: 'WSCSYSSSSLYTC245'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Business',
				paletteFamily: 	'003366',
				keyvisualId: 	'2487',
				keyvisualName: 	'seminar.jpg',
				fontsetId: 		'418',
				graphicsetId: 	'463',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'003366',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5401',
internalId:  '',
customField: '20110523-124825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5935',
internalId:  '',
customField: '20110801-174307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5452',
internalId:  '',
customField: '20110715-132214'
};
webappMappings['7008']=webappMappings['7008-6470']={
webappId:    '7008',
documentId:  '5452',
internalId:  '6470',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5473',
internalId:  '',
customField: '20101207-082632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5494',
internalId:  '',
customField: '20100427-144849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5515',
internalId:  '',
customField: '20100427-143020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5536',
internalId:  '',
customField: '20100427-143040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5557',
internalId:  '',
customField: '20110309-165133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5578',
internalId:  '',
customField: '20100503-102156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5599',
internalId:  '',
customField: '20110619-090352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5620',
internalId:  '',
customField: '20110619-090411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5641',
internalId:  '',
customField: '20110619-090438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5662',
internalId:  '',
customField: '20110619-090456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5746',
internalId:  '',
customField: '20100203-160154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5767',
internalId:  '',
customField: '20100131-082324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5683',
internalId:  '',
customField: '20110619-090526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5704',
internalId:  '',
customField: '20110301-185607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5725',
internalId:  '',
customField: '20111110-123554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79155',
internalId:  '',
customField: '20110706-104100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5914',
internalId:  '',
customField: '20111110-112746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5788',
internalId:  '',
customField: '20100129-133919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5809',
internalId:  '',
customField: '20100310-160301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5830',
internalId:  '',
customField: '20100129-141228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5851',
internalId:  '',
customField: '20100202-150023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5893',
internalId:  '',
customField: '20110706-102632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22701',
internalId:  '',
customField: '20110728-101008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22722',
internalId:  '',
customField: '20110711-141349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22743',
internalId:  '',
customField: '20100129-154316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22764',
internalId:  '',
customField: '20100129-155006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22785',
internalId:  '',
customField: '20100129-155627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22201',
internalId:  '',
customField: '20100129-141607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81034',
internalId:  '',
customField: '20110715-132346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63434',
internalId:  '',
customField: '20110715-132614'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54844',
internalId:  '',
customField: '20100824-094638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54865',
internalId:  '',
customField: '20100824-094837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54886',
internalId:  '',
customField: '20100824-094403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54823',
internalId:  '',
customField: '20100825-111232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66234',
internalId:  '',
customField: '20110301-172232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68734',
internalId:  '',
customField: '20110817-144858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69134',
internalId:  '',
customField: '20101207-135456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69155',
internalId:  '',
customField: '20101207-135548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71534',
internalId:  '',
customField: '20111110-123719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73134',
internalId:  '',
customField: '20110715-132641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54907',
internalId:  '',
customField: '20100818-141849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54928',
internalId:  '',
customField: '20100818-141849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54949',
internalId:  '',
customField: '20100818-141849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54970',
internalId:  '',
customField: '20100818-141849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80934',
internalId:  '',
customField: '20110715-135850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79134',
internalId:  '',
customField: '20110706-101946'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INZML0';
var companyName   = 'Tractivity+-+Job+Costing+Solutions';
var htmlTitle	  = 'Job+Costing+Solutions';
var metaKeywords  = 'job+costing%2C+job+cost%2C+job+costing+software%2C+time+tracking%2C+estimating+software%2C+software%2C+inventory%2C+purchasing%2C+QuickBooks%2C+Custom%2C+Cabinetry%2C+Manufacturing%2C+ERP%2C+MRP%2C+Planit%2C+Cabinet+Vision%2C+Cabnetware%2C+Take-off%2C+Oncenter%2C+Onscreen';
var metaContents  = 'Job+Costing+Solutions+for+Custom+Manufacturing';
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();
};

