/* [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','1901',jdecode('NEW+CNC%26%23x27%3Bs+-+HOME'),jdecode(''),'/1901.html','true',[],''],
	['PAGE','129587',jdecode('YAMA+SEIKI'),jdecode(''),'/129587/index.html','true',[ 
		['PAGE','130887',jdecode('TA-32'),jdecode(''),'/129587/130887.html','true',[],''],
		['PAGE','130908',jdecode('TS-150M'),jdecode(''),'/129587/130908.html','true',[],''],
		['PAGE','130929',jdecode('TS-150'),jdecode(''),'/129587/130929.html','true',[],''],
		['PAGE','130950',jdecode('GLS-150'),jdecode(''),'/129587/130950.html','true',[],''],
		['PAGE','130971',jdecode('GLS-200'),jdecode(''),'/129587/130971.html','true',[],''],
		['PAGE','130992',jdecode('GLS-200M'),jdecode(''),'/129587/130992.html','true',[],''],
		['PAGE','131013',jdecode('GS-280M'),jdecode(''),'/129587/131013.html','true',[],''],
		['PAGE','131034',jdecode('GS-280'),jdecode(''),'/129587/131034.html','true',[],''],
		['PAGE','131055',jdecode('GS-280LY'),jdecode(''),'/129587/131055.html','true',[],''],
		['PAGE','131076',jdecode('GS-400L'),jdecode(''),'/129587/131076.html','true',[],''],
		['PAGE','131097',jdecode('GS-400LM'),jdecode(''),'/129587/131097.html','true',[],''],
		['PAGE','131118',jdecode('GS-460L'),jdecode(''),'/129587/131118.html','true',[],''],
		['PAGE','131139',jdecode('GTS-150X'),jdecode(''),'/129587/131139.html','true',[],''],
		['PAGE','131160',jdecode('GTS-150MMX'),jdecode(''),'/129587/131160.html','true',[],''],
		['PAGE','131181',jdecode('GA-2000'),jdecode(''),'/129587/131181.html','true',[],''],
		['PAGE','131202',jdecode('GA-2600'),jdecode(''),'/129587/131202.html','true',[],''],
		['PAGE','131223',jdecode('GA-2600M'),jdecode(''),'/129587/131223.html','true',[],''],
		['PAGE','131244',jdecode('GA-2800'),jdecode(''),'/129587/131244.html','true',[],''],
		['PAGE','131265',jdecode('GA-3300'),jdecode(''),'/129587/131265.html','true',[],''],
		['PAGE','131286',jdecode('GA-3300L'),jdecode(''),'/129587/131286.html','true',[],''],
		['PAGE','131307',jdecode('GA-3600L'),jdecode(''),'/129587/131307.html','true',[],'']
	],''],
	['PAGE','129987',jdecode('AWEA'),jdecode(''),'/129987.html','true',[],''],
	['PAGE','130008',jdecode('GOODWAY'),jdecode(''),'/130008.html','true',[],''],
	['PAGE','1952',jdecode('USED+MACHINERY'),jdecode(''),'/1952/index.html','true',[ 
		['PAGE','98629',jdecode('MONTHLY+SPECIAL'),jdecode(''),'/1952/98629.html','true',[],''],
		['PAGE','186698',jdecode('OKUMA+MC+60VAE'),jdecode(''),'/1952/186698.html','true',[],''],
		['PAGE','104229',jdecode('OKUMA+LH55N'),jdecode(''),'/1952/104229.html','true',[],''],
		['PAGE','64750',jdecode('CNC+TURNING+'),jdecode(''),'/1952/64750.html','true',[],''],
		['PAGE','2901',jdecode('CNC+HMC'),jdecode(''),'/1952/2901.html','true',[],''],
		['PAGE','2922',jdecode('NIIGATA+HMC+HN50-C'),jdecode(''),'/1952/2922.html','true',[],''],
		['PAGE','2943',jdecode('MITSUI+SEIKI+63A'),jdecode(''),'/1952/2943.html','true',[],''],
		['PAGE','101729',jdecode('MAKINO+RMC55'),jdecode(''),'/1952/101729.html','true',[],''],
		['PAGE','101750',jdecode('DAEWOO+HMC'),jdecode(''),'/1952/101750.html','true',[],''],
		['PAGE','2015',jdecode('CNC+HBM'),jdecode(''),'/1952/2015.html','true',[],''],
		['PAGE','19322',jdecode('WOTAN+CNC+HBM'),jdecode(''),'/1952/19322.html','true',[],''],
		['PAGE','19343',jdecode('CINCIMATIC+CNC+HBM'),jdecode(''),'/1952/19343.html','true',[],''],
		['PAGE','2057',jdecode('CNC+VTL'),jdecode(''),'/1952/2057.html','true',[],''],
		['PAGE','185998',jdecode('New+Bullard+Dynautape+'),jdecode(''),'/1952/185998.html','true',[],''],
		['PAGE','2985',jdecode('46%22+CNC+BULLARD+4+AXIS'),jdecode(''),'/1952/2985.html','true',[],''],
		['PAGE','3006',jdecode('48%22+GIDDINGS+AND+LEWIS+CNC+'),jdecode(''),'/1952/3006.html','true',[],''],
		['PAGE','3027',jdecode('46%22+BULLARD+DYNAUTAPE+CNC+VTL'),jdecode(''),'/1952/3027.html','true',[],''],
		['PAGE','3048',jdecode('42%22+BULLARD+DYNATURN+CNC'),jdecode(''),'/1952/3048.html','true',[],''],
		['PAGE','3069',jdecode('42%22+BULLARD++DYNATURN+CNC'),jdecode(''),'/1952/3069.html','true',[],''],
		['PAGE','3090',jdecode('81%22+DORRIES+VBM+CNC'),jdecode(''),'/1952/3090.html','true',[],''],
		['PAGE','94929',jdecode('42%22+GRAY+VFR+CNC+VTL'),jdecode(''),'/1952/94929.html','true',[],''],
		['PAGE','64129',jdecode('36%22+EXCELLO+CNC+VTL'),jdecode(''),'/1952/64129.html','true',[],''],
		['PAGE','2099',jdecode('CNC+VBM'),jdecode(''),'/1952/2099.html','true',[],''],
		['PAGE','3501',jdecode('81%22+DORRIES+CNC'),jdecode(''),'/1952/3501.html','true',[],''],
		['PAGE','3111',jdecode('110%22+NEW+CENTURY+CNC+VBM'),jdecode(''),'/1952/3111.html','true',[],''],
		['PAGE','1994',jdecode('CNC+MILLS'),jdecode(''),'/1952/1994.html','true',[],''],
		['PAGE','3522',jdecode('TREE+VMC+1250+CNC'),jdecode(''),'/1952/3522.html','true',[],''],
		['PAGE','19364',jdecode('BRIDGEPORT+CNC+VERTICAL+MILL'),jdecode(''),'/1952/19364.html','true',[],''],
		['PAGE','80629',jdecode('CINCINNATI+VMC'),jdecode(''),'/1952/80629.html','true',[],''],
		['PAGE','93029',jdecode('TOSHIBA+FLOOR+MILL'),jdecode(''),'/1952/93029.html','true',[],''],
		['PAGE','88329',jdecode('LAGUN+VMC'),jdecode(''),'/1952/88329.html','true',[],''],
		['PAGE','125687',jdecode('2005+%26+2006+CINCINNATI+VCNC-500+VMC'),jdecode(''),'/1952/125687.html','true',[],''],
		['PAGE','2162',jdecode('CNC+LATHES'),jdecode(''),'/1952/2162.html','true',[],''],
		['PAGE','19427',jdecode('MAZAK+POWER+MASTER'),jdecode(''),'/1952/19427.html','true',[],''],
		['PAGE','19448',jdecode('JONES+LAMBSON+CNC'),jdecode(''),'/1952/19448.html','true',[],''],
		['PAGE','93629',jdecode('MORI+SEIKI+SL-7B+CNC+LATHE'),jdecode(''),'/1952/93629.html','true',[],''],
		['PAGE','2078',jdecode('MANUAL+VTL'),jdecode(''),'/1952/2078.html','true',[],''],
		['PAGE','3564',jdecode('36%22+BULLARD+DYNATROL'),jdecode(''),'/1952/3564.html','true',[],''],
		['PAGE','24101',jdecode('BULLARD+SPIRAL+DRIVES'),jdecode(''),'/1952/24101.html','true',[],''],
		['PAGE','27201',jdecode('30%22BULLARD+CUTMASTER'),jdecode(''),'/1952/27201.html','true',[],''],
		['PAGE','2183',jdecode('MANUAL+LATHES'),jdecode(''),'/1952/2183.html','true',[],''],
		['PAGE','19490',jdecode('MONARCH+LATHE+18+X+48'),jdecode(''),'/1952/19490.html','true',[],''],
		['PAGE','19553',jdecode('MONARCH+10+EE+12+X+20'),jdecode(''),'/1952/19553.html','true',[],''],
		['PAGE','25001',jdecode('AMERICAN+TOOLROOM+LATHE'),jdecode(''),'/1952/25001.html','true',[],''],
		['PAGE','70229',jdecode('LEBLOND+4025%2F65-130+NK+SERIES'),jdecode(''),'/1952/70229.html','true',[],''],
		['PAGE','1973',jdecode('MANUAL+MILLS'),jdecode(''),'/1952/1973.html','true',[],''],
		['PAGE','2141',jdecode('MANUAL+GRINDERS'),jdecode(''),'/1952/2141.html','true',[],''],
		['PAGE','19658',jdecode('CINCINATTI+OD+AND+ID+GRINDER'),jdecode(''),'/1952/19658.html','true',[],''],
		['PAGE','100129',jdecode('GRINDING+MACHINES'),jdecode(''),'/1952/100129.html','true',[],''],
		['PAGE','100150',jdecode('MATTISON+HORIZONTAL+SURFACE+GRINDER'),jdecode(''),'/1952/100150.html','true',[],''],
		['PAGE','2036',jdecode('MANUAL+HBM'),jdecode(''),'/1952/2036.html','true',[],''],
		['PAGE','19679',jdecode('WOTAN+HBM+80+X+80'),jdecode(''),'/1952/19679.html','true',[],''],
		['PAGE','124287',jdecode('VERTICAL+MILLERS'),jdecode(''),'/1952/124287.html','true',[],''],
		['PAGE','3132',jdecode('TOOL+ROOM'),jdecode(''),'/1952/3132.html','true',[],''],
		['PAGE','19721',jdecode('CUT+OFF+SAW'),jdecode(''),'/1952/19721.html','true',[],''],
		['PAGE','19805',jdecode('BRIDGEPORTS'),jdecode(''),'/1952/19805.html','true',[],''],
		['PAGE','19826',jdecode('SAWS'),jdecode(''),'/1952/19826.html','true',[],''],
		['PAGE','19847',jdecode('DRILL+PRESS'),jdecode(''),'/1952/19847.html','true',[],''],
		['PAGE','75629',jdecode('PRECISION+LATHES'),jdecode(''),'/1952/75629.html','true',[],''],
		['PAGE','78229',jdecode('DUST+COLLECTOR'),jdecode(''),'/1952/78229.html','true',[],'']
	],''],
	['PAGE','166077',jdecode('ONLINE+STORE'),jdecode(''),'/166077.html','true',[],''],
	['PAGE','58901',jdecode('CONTACT+INFORMATION'),jdecode(''),'/58901.html','true',[],''],
	['PAGE','166277',jdecode('REQUEST+FORM'),jdecode(''),'/166277.html','true',[],''],
	['PAGE','166977',jdecode('TAKE+A+BREAK'),jdecode(''),'/166977.html','true',[],'']];
var siteelementCount=90;
theSitetree.topTemplateName='Solid';
theSitetree.paletteFamily='8396BA';
theSitetree.keyvisualId='4356';
theSitetree.keyvisualName='kv_4356.jpg';
theSitetree.fontsetId='10800';
theSitetree.graphicsetId='11232';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='8396BA';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Solid',
				paletteFamily: 	'8396BA',
				keyvisualId: 	'4356',
				keyvisualName: 	'kv_4356.jpg',
				fontsetId: 		'10800',
				graphicsetId: 	'11232',
				contentColor: 	'FFFFFF',
				contentBGColor: '8396BA',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20100215-201345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1952',
internalId:  '',
customField: '20100114-112120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1973',
internalId:  '',
customField: '20090106-094421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1994',
internalId:  '',
customField: '20090225-084455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2015',
internalId:  '',
customField: '20080911-161841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2036',
internalId:  '',
customField: '20081105-091207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2057',
internalId:  '',
customField: '20081223-092524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2078',
internalId:  '',
customField: '20090129-091141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2099',
internalId:  '',
customField: '20080911-163557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2141',
internalId:  '',
customField: '20090129-091506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2162',
internalId:  '',
customField: '20080923-131708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2183',
internalId:  '',
customField: '20090129-091304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2901',
internalId:  '',
customField: '20081112-115014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2922',
internalId:  '',
customField: '20080919-130706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2943',
internalId:  '',
customField: '20081112-120042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94929',
internalId:  '',
customField: '20080912-141804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2985',
internalId:  '',
customField: '20081112-124442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3006',
internalId:  '',
customField: '20100114-143304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3027',
internalId:  '',
customField: '20100114-141604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3048',
internalId:  '',
customField: '20100114-142423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3069',
internalId:  '',
customField: '20081031-100203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3090',
internalId:  '',
customField: '20080905-140334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3111',
internalId:  '',
customField: '20081024-161143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3132',
internalId:  '',
customField: '20080916-113032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3522',
internalId:  '',
customField: '20081112-131149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3501',
internalId:  '',
customField: '20080905-144612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3564',
internalId:  '',
customField: '20081016-153424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19322',
internalId:  '',
customField: '20080905-120028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19343',
internalId:  '',
customField: '20081118-115250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19364',
internalId:  '',
customField: '20080905-145907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19427',
internalId:  '',
customField: '20080916-122037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19448',
internalId:  '',
customField: '20081112-133032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19490',
internalId:  '',
customField: '20080330-163651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19553',
internalId:  '',
customField: '20080707-141240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98629',
internalId:  '',
customField: '20090413-205643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64129',
internalId:  '',
customField: '20080905-140503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64750',
internalId:  '',
customField: '20080912-135837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19658',
internalId:  '',
customField: '20081016-154115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19679',
internalId:  '',
customField: '20081112-160842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19721',
internalId:  '',
customField: '20080330-171931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19805',
internalId:  '',
customField: '20080912-113155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19826',
internalId:  '',
customField: '20090115-095153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19847',
internalId:  '',
customField: '20080330-132907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24101',
internalId:  '',
customField: '20081112-163151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25001',
internalId:  '',
customField: '20090226-130815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27201',
internalId:  '',
customField: '20080916-110328'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58901',
internalId:  '',
customField: '20080919-102133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185998',
internalId:  '',
customField: '20100114-144449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '186698',
internalId:  '',
customField: '20100114-151415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70229',
internalId:  '',
customField: '20080912-105224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75629',
internalId:  '',
customField: '20081112-153642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78229',
internalId:  '',
customField: '20081112-153442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80629',
internalId:  '',
customField: '20080905-150000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88329',
internalId:  '',
customField: '20080930-152720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93029',
internalId:  '',
customField: '20081112-131918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93629',
internalId:  '',
customField: '20080912-132536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100129',
internalId:  '',
customField: '20081016-155820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100150',
internalId:  '',
customField: '20080923-115202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101729',
internalId:  '',
customField: '20081110-151347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101750',
internalId:  '',
customField: '20080930-160319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104229',
internalId:  '',
customField: '20081223-092306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125687',
internalId:  '',
customField: '20090224-123108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124287',
internalId:  '',
customField: '20090107-111206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129587',
internalId:  '',
customField: '20091009-160318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129987',
internalId:  '',
customField: '20090413-162016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130887',
internalId:  '',
customField: '20090505-192046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130908',
internalId:  '',
customField: '20090505-192207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130929',
internalId:  '',
customField: '20090615-165309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130950',
internalId:  '',
customField: '20090505-190703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130971',
internalId:  '',
customField: '20090505-190946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130992',
internalId:  '',
customField: '20090505-191208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131013',
internalId:  '',
customField: '20090505-191615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131034',
internalId:  '',
customField: '20090505-191839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131055',
internalId:  '',
customField: '20090407-110440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131076',
internalId:  '',
customField: '20090407-110440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131097',
internalId:  '',
customField: '20090407-110440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131118',
internalId:  '',
customField: '20090407-110440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131139',
internalId:  '',
customField: '20090407-110440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131160',
internalId:  '',
customField: '20090407-110440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131181',
internalId:  '',
customField: '20090407-110440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131202',
internalId:  '',
customField: '20090407-110440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131223',
internalId:  '',
customField: '20090407-110440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131244',
internalId:  '',
customField: '20090407-110440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131265',
internalId:  '',
customField: '20090407-110440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131286',
internalId:  '',
customField: '20090407-110440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131307',
internalId:  '',
customField: '20090407-110440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130008',
internalId:  '',
customField: '20090505-160910'
};
webappMappings['1501']=webappMappings['1501-6826831']={
webappId:    '1501',
documentId:  '1901',
internalId:  '6826831',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166077',
internalId:  '',
customField: '20090413-204630'
};
webappMappings['7008']=webappMappings['7008-15569']={
webappId:    '7008',
documentId:  '166277',
internalId:  '15569',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166277',
internalId:  '',
customField: '20090413-204120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166977',
internalId:  '',
customField: '20090420-151423'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0IN2NRD';
var companyName   = 'TAS+IRON+LTD';
var htmlTitle	  = 'YAMA+SEIKI%2C+YAMA+SEIKI+AWEA%2C+YAMA+SEIKI+GOODWAY+AND+QUALITY+USED+MACHINERY';
var metaKeywords  = 'VERTICAL%2C+HORIZONTAL%2C+MILL%2C+BORING%2C+VTL%2C+VBM%2C+LATHES%2C+LATHE%2C+MILLS%2C+OKUMA%2C+TOSHIBA%2C+YAMA%2C+SEIKI%2C+MAZAK%2C+MORI%2C+GL%2C+GIDDINGS%2C+LEWIS%2C+LUCAS%2C+CINCINATTI%2C+AMERICAN%2C+BALANCER%2C+cnc%2C+cnc+lathes%2C+cnc+vmc%2C+awea%2C+goodway%2C+yama+seiki%2C+used+machine+tools%2C+machinetools%2C+';
var metaContents  = 'DISTRIBUTOR+OF+QUALITY+USED+MACHINE+TOOLS%2C+NEW+MACHINE+TOOLS%2C+FULL+STOCKING+DEALER+COVERING+EAST+AND+WEST+BY+THREE+LOCATIONS+AND+MANY+TRADING+PARTNERS.';
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();
};
