/* [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','2501',jdecode('Home'),jdecode(''),'/2501.html','true',[],'',''],
	['PAGE','69016',jdecode('CHARTS'),jdecode(''),'/69016/index.html','true',[ 
		['PAGE','68995',jdecode('M4+Chart'),jdecode(''),'/69016/68995.html','true',[],'',''],
		['PAGE','69037',jdecode('Optics+Charts'),jdecode(''),'/69016/69037.html','true',[],'',''],
		['PAGE','69058',jdecode('FF+Rail+Chart'),jdecode(''),'/69016/69058.html','true',[],'',''],
		['PAGE','92021',jdecode('Sound+Suppressor+Chart'),jdecode(''),'/69016/92021.html','true',[],'','']
	],'',''],
	['PAGE','74595',jdecode('MEDIA+%2F+PUBLICATIONS'),jdecode(''),'/74595.html','true',[],'',''],
	['PAGE','8301',jdecode('REVIEWS'),jdecode(''),'/8301/index.html','true',[ 
		['PAGE','51903',jdecode('T%26E+Procedures'),jdecode(''),'/8301/51903.html','true',[],'',''],
		['PAGE','134521',jdecode('Firearms+Reviews'),jdecode(''),'/8301/134521.html','true',[],'',''],
		['PAGE','134542',jdecode('Support+Gear+Reviews'),jdecode(''),'/8301/134542.html','true',[],'',''],
		['PAGE','134563',jdecode('Clothing+%26+Apparel+Reviews'),jdecode(''),'/8301/134563.html','true',[],'',''],
		['PAGE','130621',jdecode('Armor+%26+Load+Carriage'),jdecode(''),'/8301/130621.html','true',[],'',''],
		['PAGE','125421',jdecode('Lower+Reciver+Comparison+%28090905%29'),jdecode(''),'/8301/125421.html','true',[],'',''],
		['PAGE','111221',jdecode('Magpul+MBUS+%28090614%29'),jdecode(''),'/8301/111221.html','true',[],'',''],
		['PAGE','106721',jdecode('TLR-1+vs.+X300+%28090504%29'),jdecode(''),'/8301/106721.html','true',[],'',''],
		['PAGE','100421',jdecode('9mm+Carbines+%28090422%29'),jdecode(''),'/8301/100421.html','true',[],'',''],
		['PAGE','92421',jdecode('Painting+Pmags+%28090307%29'),jdecode(''),'/8301/92421.html','true',[],'',''],
		['PAGE','82279',jdecode('One+Source+Sneaky+Bag+%28090102%29'),jdecode(''),'/8301/82279.html','true',[],'',''],
		['PAGE','58727',jdecode('Anvil%2FRRA+9mm+SBR+%28080913%29'),jdecode(''),'/8301/58727.html','true',[],'',''],
		['PAGE','54427',jdecode('Boonie+Packer+Single+Point+Sling+%28080829%29'),jdecode(''),'/8301/54427.html','true',[],'',''],
		['PAGE','46141',jdecode('Charles+Daly+D-M4LE+%28080726%29'),jdecode(''),'/8301/46141.html','true',[],'',''],
		['PAGE','12901',jdecode('Back+in+Black+%28080625%29'),jdecode(''),'/8301/12901.html','true',[],'',''],
		['PAGE','43341',jdecode('Custom+AK-Magazine+Chest+Rig+%28080508%29'),jdecode(''),'/8301/43341.html','true',[],'',''],
		['PAGE','11001',jdecode('My+AK+%28080312%29'),jdecode(''),'/8301/11001.html','true',[],'',''],
		['PAGE','39371',jdecode('Ops+15th+Shift+%28070806%29'),jdecode(''),'/8301/39371.html','true',[],'',''],
		['PAGE','11801',jdecode('A+Tale+of+Two+Carbines+%28070728%29'),jdecode(''),'/8301/11801.html','true',[],'',''],
		['PAGE','22101',jdecode('Y-B+1*++Enhanced+%28070106%29'),jdecode(''),'/8301/22101.html','true',[],'','']
	],'',''],
	['PAGE','134584',jdecode('AFTER+ACTION+REPORTS+%28AAR%29'),jdecode(''),'/134584/index.html','true',[ 
		['PAGE','134605',jdecode('Training+AAR'),jdecode(''),'/134584/134605.html','true',[],'',''],
		['PAGE','134626',jdecode('Competition+AAR'),jdecode(''),'/134584/134626.html','true',[],'',''],
		['PAGE','134647',jdecode('Show+AAR'),jdecode(''),'/134584/134647.html','true',[],'','']
	],'',''],
	['PAGE','8343',jdecode('ARTICLES+%2F+CONCEPTS'),jdecode(''),'/8343/index.html','true',[ 
		['PAGE','126721',jdecode('Go+Shoot+the+Gun%21+%28090906%29'),jdecode(''),'/8343/126721.html','true',[],'',''],
		['PAGE','116021',jdecode('Wolf+Ammo+-+How+To+%28090805%29'),jdecode(''),'/8343/116021.html','true',[],'',''],
		['PAGE','59827',jdecode('Basic+AR+Carbine+Build+%28081001%29'),jdecode(''),'/8343/59827.html','true',[],'',''],
		['PAGE','58027',jdecode('AR-Related+Book+Suggestions+%28080907%29'),jdecode(''),'/8343/58027.html','true',[],'',''],
		['PAGE','56227',jdecode('Load+Carriage+for+Training+Classes+%28080904%29'),jdecode(''),'/8343/56227.html','true',[],'',''],
		['PAGE','50303',jdecode('Evolution+of+a+Chest+Rig+%28080811%29'),jdecode(''),'/8343/50303.html','true',[],'',''],
		['PAGE','41127',jdecode('%22Which+M4+Rail+Should+I+Buy%3F%22+%28080720%29'),jdecode(''),'/8343/41127.html','true',[],'',''],
		['PAGE','25301',jdecode('Build+a+Better+AR+for+Less+%28080714%29'),jdecode(''),'/8343/25301.html','true',[],'',''],
		['PAGE','9201',jdecode('New+AR+Recomendation+%28080512%29'),jdecode(''),'/8343/9201.html','true',[],'',''],
		['PAGE','16001',jdecode('%22Oh+No%21++I+Bought+a+BM%2FRRA%2FStag%21%22+%28070906%29'),jdecode(''),'/8343/16001.html','true',[],'','']
	],'',''],
	['PAGE','3301',jdecode('LINKS'),jdecode(''),'/3301.html','true',[],'',''],
	['PAGE','14401',jdecode('ABOUT+ME'),jdecode(''),'/14401/index.html','true',[ 
		['PAGE','16301',jdecode('Contact'),jdecode(''),'/14401/16301.html','true',[],'',''],
		['PAGE','60927',jdecode('Schwag'),jdecode(''),'/14401/60927.html','true',[],'',''],
		['PAGE','73895',jdecode('An+Unqualified+Opinion...'),jdecode(''),'/14401/73895.html','true',[],'','']
	],'',''],
	['PAGE','8322',jdecode('TRAINING+AAR'),jdecode(''),'/8322/index.html','true',[ 
		['PAGE','75195',jdecode('081212-14+EAG+Carbine'),jdecode(''),'/8322/75195.html','true',[],'',''],
		['PAGE','8901',jdecode('080514-15+YFA+Carbine'),jdecode(''),'/8322/8901.html','true',[],'',''],
		['PAGE','20301',jdecode('080329-31+SDI+Handgun'),jdecode(''),'/8322/20301.html','true',[],'',''],
		['PAGE','21101',jdecode('061215-17+EAG+Carbine'),jdecode(''),'/8322/21101.html','true',[],'','']
	],'',''],
	['PAGE','2594',jdecode('COMPETITION+AAR'),jdecode(''),'/2594/index.html','true',[ 
		['PAGE','122121',jdecode('090830+SFDCC+AUG+After-Match'),jdecode(''),'/2594/122121.html','true',[],'',''],
		['PAGE','118921',jdecode('090827+SFDCC+AUG+Match'),jdecode(''),'/2594/118921.html','true',[],'',''],
		['PAGE','114621',jdecode('090803+SFDCC+JUL+Match'),jdecode(''),'/2594/114621.html','true',[],'',''],
		['PAGE','102721',jdecode('090428+SFDCC+APR+Match'),jdecode(''),'/2594/102721.html','true',[],'',''],
		['PAGE','98921',jdecode('090404+SFDCC+MAR+Match'),jdecode(''),'/2594/98921.html','true',[],'',''],
		['PAGE','89621',jdecode('090226+SFDCC+Feb+Match'),jdecode(''),'/2594/89621.html','true',[],'',''],
		['PAGE','88021',jdecode('090127+SFDCC+Jan+Match'),jdecode(''),'/2594/88021.html','true',[],'',''],
		['PAGE','79279',jdecode('081231+SFDCC+Dec+Match'),jdecode(''),'/2594/79279.html','true',[],'',''],
		['PAGE','72295',jdecode('081125+SFDCC+Nov+Match'),jdecode(''),'/2594/72295.html','true',[],'',''],
		['PAGE','62227',jdecode('081102+SFPC+USPSA+AAR'),jdecode(''),'/2594/62227.html','true',[],'',''],
		['PAGE','64227',jdecode('081028+SFDCC+Oct+Match'),jdecode(''),'/2594/64227.html','true',[],'',''],
		['PAGE','52303',jdecode('080826+SFDCC+Match'),jdecode(''),'/2594/52303.html','true',[],'',''],
		['PAGE','43362',jdecode('080722+SFDCC+Match'),jdecode(''),'/2594/43362.html','true',[],'','']
	],'',''],
	['PAGE','2615',jdecode('HUNTING+AAR'),jdecode(''),'/2615/index.html','true',[ 
		['PAGE','32957',jdecode('070205+Hog+Hunt+%28070205%29'),jdecode(''),'/2615/32957.html','true',[],'','']
	],'',''],
	['PAGE','2636',jdecode('SHOW+AAR'),jdecode(''),'/2636/index.html','true',[ 
		['PAGE','84807',jdecode('2009+SHOT+Show'),jdecode(''),'/2636/84807.html','true',[],'',''],
		['PAGE','28801',jdecode('2007+SHOT+Show+%28070115%29'),jdecode(''),'/2636/28801.html','true',[],'','']
	],'',''],
	['PAGE','94921',jdecode('EMERGENCY+MANAGEMENT'),jdecode(''),'/94921/index.html','true',[ 
		['PAGE','97121',jdecode('Airway+%26+Breathing'),jdecode(''),'/94921/97121.html','true',[],'',''],
		['PAGE','94963',jdecode('Chest+Seals'),jdecode(''),'/94921/94963.html','true',[],'',''],
		['PAGE','95005',jdecode('Hemostatic+Agents'),jdecode(''),'/94921/95005.html','true',[],'',''],
		['PAGE','97142',jdecode('Miscellaneous+%26+Small+Parts'),jdecode(''),'/94921/97142.html','true',[],'',''],
		['PAGE','95026',jdecode('Tools'),jdecode(''),'/94921/95026.html','true',[],'',''],
		['PAGE','94942',jdecode('Tourniquets'),jdecode(''),'/94921/94942.html','true',[],'',''],
		['PAGE','94984',jdecode('Trauma%2FCompression+Dressings'),jdecode(''),'/94921/94984.html','true',[],'',''],
		['PAGE','97184',jdecode('Load+Carriage'),jdecode(''),'/94921/97184.html','true',[],'',''],
		['PAGE','97163',jdecode('Kits'),jdecode(''),'/94921/97163.html','true',[],'','']
	],'',''],
	['PAGE','117521',jdecode('APPAREL+REVIEWS'),jdecode(''),'/117521/index.html','true',[ 
		['PAGE','117542',jdecode('PropperShort+%26+Pant'),jdecode(''),'/117521/117542.html','true',[],'','']
	],'',''],
	['PAGE','38671',jdecode('MISC.'),jdecode(''),'/38671.html','true',[],'',''],
	['PAGE','132221',jdecode('THE+YELLOW+PAPERS'),jdecode(''),'/132221.html','true',[],'','']];
var siteelementCount=86;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='FDBC3F';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10896';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'FDBC3F',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10896',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FDBC3F',
				e_color: 		'FDBC3F',
				f_color: 		'FDBC3F',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2501',
internalId:  '',
customField: '20100218-150856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8343',
internalId:  '',
customField: '20100520-071654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8322',
internalId:  '',
customField: '20100314-144809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2594',
internalId:  '',
customField: '20090830-130118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2615',
internalId:  '',
customField: '20080721-125904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2636',
internalId:  '',
customField: '20090124-122547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3301',
internalId:  '',
customField: '20100204-111617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9201',
internalId:  '',
customField: '20080710-073359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8301',
internalId:  '',
customField: '20100219-154348'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8901',
internalId:  '',
customField: '20080719-084045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11001',
internalId:  '',
customField: '20090515-070256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11801',
internalId:  '',
customField: '20080724-122744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12901',
internalId:  '',
customField: '20080710-064932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16001',
internalId:  '',
customField: '20080710-054101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14401',
internalId:  '',
customField: '20080711-080421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16301',
internalId:  '',
customField: '20080710-122722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20301',
internalId:  '',
customField: '20080711-123817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21101',
internalId:  '',
customField: '20080711-130240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22101',
internalId:  '',
customField: '20080712-185724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25301',
internalId:  '',
customField: '20080714-222926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28801',
internalId:  '',
customField: '20080718-082722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32957',
internalId:  '',
customField: '20080715-055924'
};
webappMappings['7060']=webappMappings['7060-97d01c3c4c286c2921c8a0aa932331a2']={
webappId:    '7060',
documentId:  '38671',
internalId:  '97d01c3c4c286c2921c8a0aa932331a2',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38671',
internalId:  '',
customField: '20080719-085626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39371',
internalId:  '',
customField: '20080719-175023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41127',
internalId:  '',
customField: '20080720-094513'
};
webappMappings['7060']=webappMappings['7060-181238e4806f89d19c9ea7111a3b306e']={
webappId:    '7060',
documentId:  '43362',
internalId:  '181238e4806f89d19c9ea7111a3b306e',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43341',
internalId:  '',
customField: '20080723-133054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43362',
internalId:  '',
customField: '20080828-062526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46141',
internalId:  '',
customField: '20080729-113149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50303',
internalId:  '',
customField: '20080811-132100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51903',
internalId:  '',
customField: '20081205-091843'
};
webappMappings['7060']=webappMappings['7060-f985e7bc15ee8446db424b0153913731']={
webappId:    '7060',
documentId:  '52303',
internalId:  'f985e7bc15ee8446db424b0153913731',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52303',
internalId:  '',
customField: '20080829-075821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54427',
internalId:  '',
customField: '20081229-195439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56227',
internalId:  '',
customField: '20090926-113617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58027',
internalId:  '',
customField: '20080909-132701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58727',
internalId:  '',
customField: '20080913-192736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59827',
internalId:  '',
customField: '20090725-073707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60927',
internalId:  '',
customField: '20090124-122314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62227',
internalId:  '',
customField: '20081104-070342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64227',
internalId:  '',
customField: '20081104-071206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68995',
internalId:  '',
customField: '20100117-140206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69016',
internalId:  '',
customField: '20100626-081516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69037',
internalId:  '',
customField: '20100227-181452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69058',
internalId:  '',
customField: '20090823-164809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72295',
internalId:  '',
customField: '20081126-105438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73895',
internalId:  '',
customField: '20081127-164733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74595',
internalId:  '',
customField: '20091105-074257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75195',
internalId:  '',
customField: '20081229-200226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79279',
internalId:  '',
customField: '20081231-174736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82279',
internalId:  '',
customField: '20100204-112148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84807',
internalId:  '',
customField: '20090121-111837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88021',
internalId:  '',
customField: '20090129-082412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89621',
internalId:  '',
customField: '20090226-121444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92021',
internalId:  '',
customField: '20090823-165002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92421',
internalId:  '',
customField: '20090307-145521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94921',
internalId:  '',
customField: '20090313-064644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94942',
internalId:  '',
customField: '20090404-144452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94963',
internalId:  '',
customField: '20090313-054121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94984',
internalId:  '',
customField: '20090313-064550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95005',
internalId:  '',
customField: '20090313-054311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95026',
internalId:  '',
customField: '20090313-054339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97163',
internalId:  '',
customField: '20090313-061701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97121',
internalId:  '',
customField: '20090313-061854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97142',
internalId:  '',
customField: '20090313-061955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97184',
internalId:  '',
customField: '20090313-062053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98921',
internalId:  '',
customField: '20090404-142323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100421',
internalId:  '',
customField: '20090422-073514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102721',
internalId:  '',
customField: '20090501-130655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106721',
internalId:  '',
customField: '20090813-074633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111221',
internalId:  '',
customField: '20090614-170519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114621',
internalId:  '',
customField: '20090804-142433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116021',
internalId:  '',
customField: '20090805-135138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117521',
internalId:  '',
customField: '20090823-165757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117542',
internalId:  '',
customField: '20090824-142129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118921',
internalId:  '',
customField: '20090828-070123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122121',
internalId:  '',
customField: '20090830-142139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125421',
internalId:  '',
customField: '20090906-141346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126721',
internalId:  '',
customField: '20090906-103536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130621',
internalId:  '',
customField: '20091214-151449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132221',
internalId:  '',
customField: '20100118-145403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134521',
internalId:  '',
customField: '20100515-152413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134542',
internalId:  '',
customField: '20100722-105038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134563',
internalId:  '',
customField: '20100218-130637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134584',
internalId:  '',
customField: '20100224-135035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134605',
internalId:  '',
customField: '20100314-151840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134626',
internalId:  '',
customField: '20100218-130637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134647',
internalId:  '',
customField: '20100218-130637'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0IN2L0F';
var companyName   = 'TACTICALYELLOWVISOR.NET';
var htmlTitle	  = 'Tacticalyellowvisor.net';
var metaKeywords  = '';
var metaContents  = '';
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();
};
