/* [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','13',jdecode('%E3%83%9B%E3%83%BC%E3%83%A0'),jdecode(''), jdecode('%2F13.html'), 'true',[],'',''],
	['PAGE','17863',jdecode('What%26%23x27%3Bs+new'),jdecode(''), jdecode('%2F17863.html'), 'true',[],'',''],
	['PAGE','347',jdecode('%E3%82%AA%E3%83%AA%E3%82%B8%E3%83%8A%E3%83%AB%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3'),jdecode(''), jdecode('%2F347.html'), 'true',[],'',''],
	['PAGE','5001',jdecode('%E5%AE%9A%E7%95%AA%E3%82%A8%E3%83%B3%E3%83%96%E3%83%AC%E3%83%A0'),jdecode(''), jdecode('%2F5001.html'), 'true',[],'',''],
	['PAGE','20033',jdecode('%E5%AE%9A%E7%95%AA%E3%82%A8%E3%83%AC%E3%82%AC%E3%83%B3%E3%82%B9'),jdecode(''), jdecode('%2F20033.html'), 'true',[],'',''],
	['PAGE','13077',jdecode('%E3%83%AF%E3%82%B1%E3%82%A2%E3%83%AA%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3%E2%91%A0'),jdecode(''), jdecode('%2F13077.html'), 'true',[],'',''],
	['PAGE','17349',jdecode('%E3%83%AF%E3%82%B1%E3%82%A2%E3%83%AA%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3%E2%91%A1'),jdecode(''), jdecode('%2F17349.html'), 'true',[],'',''],
	['PAGE','18351',jdecode('%E3%83%AF%E3%82%B1%E3%82%A2%E3%83%AA%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3%E2%91%A2'),jdecode(''), jdecode('%2F18351.html'), 'true',[],'',''],
	['PAGE','19155',jdecode('%E3%83%AF%E3%82%B1%E3%82%A2%E3%83%AA%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3%E2%91%A3'),jdecode(''), jdecode('%2F19155.html'), 'true',[],'',''],
	['PAGE','21822',jdecode('%E3%83%AF%E3%82%B1%E3%82%A2%E3%83%AA%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3%E2%91%A4'),jdecode(''), jdecode('%2F21822.html'), 'true',[],'',''],
	['PAGE','22548',jdecode('%E3%83%AF%E3%82%B1%E3%82%A2%E3%83%AA%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3%E2%91%A5'),jdecode(''), jdecode('%2F22548.html'), 'true',[],'',''],
	['PAGE','23150',jdecode('%E3%83%AF%E3%82%B1%E3%82%A2%E3%83%AA%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3%E2%91%A6'),jdecode(''), jdecode('%2F23150.html'), 'true',[],'',''],
	['PAGE','24017',jdecode('%E3%83%AF%E3%82%B1%E3%82%A2%E3%83%AA%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3%E2%91%A7'),jdecode(''), jdecode('%2F24017.html'), 'true',[],'',''],
	['PAGE','24557',jdecode('%E3%83%AF%E3%82%B1%E3%82%A2%E3%83%AA%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3%E2%91%A8'),jdecode(''), jdecode('%2F24557.html'), 'true',[],'',''],
	['PAGE','25281',jdecode('%E3%83%AF%E3%82%B1%E3%82%A2%E3%83%AA%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3%E2%91%A9'),jdecode(''), jdecode('%2F25281.html'), 'true',[],'',''],
	['PAGE','26308',jdecode('%E3%83%AF%E3%82%B1%E3%82%A2%E3%83%AA%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3%E2%91%AA'),jdecode(''), jdecode('%2F26308.html'), 'true',[],'',''],
	['PAGE','5638',jdecode('%E3%83%89%E3%83%83%E3%82%B0%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3'),jdecode(''), jdecode('%2F5638.html'), 'true',[],'',''],
	['PAGE','338',jdecode('%E4%BB%8A%E6%9C%88%E3%81%AE%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3'),jdecode(''), jdecode('%2F338.html'), 'true',[],'',''],
	['PAGE','419',jdecode('%E3%82%B3%E3%83%AC%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3%E2%91%A0'),jdecode(''), jdecode('%2F419.html'), 'true',[],'',''],
	['PAGE','17179',jdecode('%E3%82%B3%E3%83%AC%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3%E2%91%A1'),jdecode(''), jdecode('%2F17179.html'), 'true',[],'',''],
	['PAGE','374',jdecode('%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3%E6%89%8B%E6%B3%95'),jdecode(''), jdecode('%2F374%2Findex.html'), 'true',[ 
		['PAGE','383',jdecode('%E5%88%BA%E7%B9%8D'),jdecode(''), jdecode('%2F374%2F383.html'), 'true',[],'',''],
		['PAGE','392',jdecode('%E6%8D%BA%E6%9F%93%E3%83%97%E3%83%AA%E3%83%B3%E3%83%88'),jdecode(''), jdecode('%2F374%2F392.html'), 'true',[],'',''],
		['PAGE','401',jdecode('%E3%82%A4%E3%83%B3%E3%82%AF%E3%82%B8%E3%82%A7%E3%83%83%E3%83%88'),jdecode(''), jdecode('%2F374%2F401.html'), 'true',[],'','']
	],'',''],
	['PAGE','437',jdecode('%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3%E7%B4%A0%E6%9D%90'),jdecode(''), jdecode('%2F437.html'), 'true',[],'',''],
	['PAGE','3337',jdecode('%E5%9B%B3%E6%A1%88+%2F+%E3%83%87%E3%82%B6%E3%82%A4%E3%83%B3'),jdecode(''), jdecode('%2F3337.html'), 'true',[],'',''],
	['PAGE','17899',jdecode('%E5%88%BA%E7%B9%8D%E3%81%AE%E3%81%94%E6%A1%88%E5%86%85'),jdecode(''), jdecode('%2F17899.html'), 'true',[],'',''],
	['PAGE','22305',jdecode('%E8%AA%95%E7%94%9F%E8%8A%B1%E3%82%B7%E3%83%AA%E3%83%BC%E3%82%BA'),jdecode(''), jdecode('%2F22305.html'), 'true',[],'',''],
	['PAGE','18913',jdecode('%E5%92%8C%E3%83%86%E3%82%A4%E3%82%B9%E3%83%88%E5%88%BA%E7%B9%8D'),jdecode(''), jdecode('%2F18913.html'), 'true',[],'',''],
	['PAGE','12112',jdecode('%E5%88%BA%E7%B9%8D%E3%83%91%E3%83%B3%E3%83%81%E3%83%B3%E3%82%B0'),jdecode(''), jdecode('%2F12112.html'), 'true',[],'',''],
	['PAGE','6227',jdecode('%E3%82%B9%E3%83%AF%E3%83%AD%E3%83%95%E3%82%B9%E3%82%AD%E3%83%BC'),jdecode(''), jdecode('%2F6227.html'), 'true',[],'',''],
	['PAGE','22216',jdecode('%E8%92%94%E7%B5%B5%E3%82%B7%E3%83%BC%E3%83%AB'),jdecode(''), jdecode('%2F22216.html'), 'true',[],'',''],
	['PAGE','787',jdecode('%E4%BC%9A%E7%A4%BE%E6%A1%88%E5%86%85+%2F+%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9'),jdecode(''), jdecode('%2F787.html'), 'true',[],'',''],
	['PAGE','805',jdecode('%E6%B3%95%E5%AE%9A%E8%A1%A8%E8%A8%98'),jdecode(''), jdecode('%2F805.html'), 'true',[],'',''],
	['PAGE','446',jdecode('%E3%81%94%E6%B3%A8%E6%96%87%E3%81%AE%E6%96%B9%E6%B3%95'),jdecode(''), jdecode('%2F446.html'), 'true',[],'',''],
	['PAGE','455',jdecode('%E3%81%8A%E6%94%AF%E6%89%95%E3%81%84%E3%81%A8%E3%81%8A%E5%B1%8A%E3%81%91'),jdecode(''), jdecode('%2F455.html'), 'true',[],'',''],
	['PAGE','19334',jdecode('%E6%B3%95%E4%BA%BA%E6%B1%BA%E6%B8%88%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0'),jdecode(''), jdecode('%2F19334.html'), 'true',[],'',''],
	['PAGE','5385',jdecode('%E3%83%97%E3%83%A9%E3%82%A4%E3%82%B9%E3%83%9D%E3%83%AA%E3%82%B7%E3%83%BC'),jdecode(''), jdecode('%2F5385.html'), 'true',[],'',''],
	['PAGE','464',jdecode('%E3%82%88%E3%81%8F%E3%81%82%E3%82%8B%E3%81%94%E8%B3%AA%E5%95%8F'),jdecode(''), jdecode('%2F464.html'), 'true',[],'',''],
	['PAGE','769',jdecode('%E3%81%8A%E5%95%8F%E5%90%88%E3%81%9B%28%EF%BC%86%E6%B3%A8%E6%96%87%EF%BC%89'),jdecode(''), jdecode('%2F769%2Findex.html'), 'true',[ 
		['PAGE','2316',jdecode('%E3%81%8A%E5%95%8F%E3%81%84%E5%90%88%E3%82%8F%E3%81%9B+%28%E3%83%95%E3%82%A9%E3%83%AD%E3%83%BC%E3%82%A2%E3%83%83%E3%83%97%E3%81%AE%E3%83%9A%E3%83%BC%E3%82%B8%29'),jdecode(''), jdecode('%2F769%2F2316.html'), 'false',[],'','']
	],'',''],
	['PAGE','16797',jdecode('%E3%82%B2%E3%82%B9%E3%83%88%E3%83%96%E3%83%83%E3%82%AF'),jdecode(''), jdecode('%2F16797%2Findex.html'), 'true',[ 
		['PAGE','16796',jdecode('%E6%8A%95%E7%A8%BF%E4%B8%80%E8%A6%A7'),jdecode(''), jdecode('%2F16797%2F16796.html'), 'false',[],'','']
	],'',''],
	['PAGE','5995',jdecode('%E3%83%AA%E3%83%B3%E3%82%AF%E9%9B%86'),jdecode(''), jdecode('%2F5995.html'), 'true',[],'','']];
var siteelementCount=44;
theSitetree.topTemplateName='Global';
theSitetree.paletteFamily='006600';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='13788';
theSitetree.graphicsetId='104';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'ja',
  country: 'JP'
};
var prodDef={
  wl_name: 'ocn',
  product: 'WSCSYSSSSLYTC2JF'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Global',
				paletteFamily: 	'006600',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'13788',
				graphicsetId: 	'104',
				contentColor: 	'666666',
				contentBGColor: 'FFFFFF',
				a_color: 		'176B03',
				b_color: 		'669900',
				c_color: 		'000000',
				d_color: 		'E0EEE3',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'MS PGothic',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '17863',
internalId:  '-',
customField: '20120221-180303'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '5001',
internalId:  '-',
customField: '20091022-154820'
};
webappMappings['1002']=webappMappings['1002-16797AVESJ0INES6N']={
webappId:    '1002',
documentId:  '16797',
internalId:  '16797AVESJ0INES6N',
customField: 'icq=false'
};
webappMappings['7005']=webappMappings['7005-241']={
webappId:    '7005',
documentId:  '347',
internalId:  '241',
customField: 'language:ja;country:JP;'
};
webappMappings['7005']=webappMappings['7005-242']={
webappId:    '7005',
documentId:  '5001',
internalId:  '242',
customField: 'language:ja;country:JP;'
};
webappMappings['7005']=webappMappings['7005-243']={
webappId:    '7005',
documentId:  '13077',
internalId:  '243',
customField: 'language:ja;country:JP;'
};
webappMappings['7050']=webappMappings['7050-93']={
webappId:    '7050',
documentId:  '17863',
internalId:  '93',
customField: 'language:ja;country:JP;'
};
webappMappings['7008']=webappMappings['7008-3426']={
webappId:    '7008',
documentId:  '769',
internalId:  '3426',
customField: 'language:ja;country:JP;'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '347',
internalId:  '-',
customField: '20091022-152129'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '13',
internalId:  '-',
customField: '20110208-164421'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '20033',
internalId:  '-',
customField: '20091022-151647'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '13077',
internalId:  '-',
customField: '20101227-083711'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '17349',
internalId:  '-',
customField: '20101227-083758'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '18351',
internalId:  '-',
customField: '20101227-083846'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '19155',
internalId:  '-',
customField: '20101227-084149'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '21822',
internalId:  '-',
customField: '20110107-102818'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '22548',
internalId:  '-',
customField: '20101227-084516'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '23150',
internalId:  '-',
customField: '20110107-102320'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '24017',
internalId:  '-',
customField: '20110107-102405'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '24557',
internalId:  '-',
customField: '20101222-100005'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '25281',
internalId:  '-',
customField: '20100514-162645'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '26308',
internalId:  '-',
customField: '20110309-172946'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '5638',
internalId:  '-',
customField: '20100219-154541'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '338',
internalId:  '-',
customField: '20090825-172517'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '419',
internalId:  '-',
customField: '20090911-092153'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '17179',
internalId:  '-',
customField: '20090911-092308'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '374',
internalId:  '-',
customField: '20090806-141826'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '383',
internalId:  '-',
customField: '20090728-171347'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '392',
internalId:  '-',
customField: '20090808-160122'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '401',
internalId:  '-',
customField: '20090728-171733'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '437',
internalId:  '-',
customField: '20090910-173300'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '3337',
internalId:  '-',
customField: '20090916-161633'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '17899',
internalId:  '-',
customField: '20091007-105344'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '22305',
internalId:  '-',
customField: '20100126-155529'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '18913',
internalId:  '-',
customField: '20091117-160404'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '12112',
internalId:  '-',
customField: '20090806-102912'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '6227',
internalId:  '-',
customField: '20090915-103626'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '22216',
internalId:  '-',
customField: '20100122-114310'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '787',
internalId:  '-',
customField: '20091007-103359'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '805',
internalId:  '-',
customField: '20090806-113645'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '446',
internalId:  '-',
customField: '20090806-113419'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '455',
internalId:  '-',
customField: '20090806-170459'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '19334',
internalId:  '-',
customField: '20091008-151238'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '5385',
internalId:  '-',
customField: '20090806-113515'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '464',
internalId:  '-',
customField: '20090806-113541'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '769',
internalId:  '-',
customField: '20100212-175220'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '2316',
internalId:  '-',
customField: '20090414-152034'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '16797',
internalId:  '-',
customField: '20090827-090343'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '16796',
internalId:  '-',
customField: '20090806-152621'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '5995',
internalId:  '-',
customField: '20101104-120250'
};
var webAppHostname = 'diycgi.cluster.mlpsca01.us.diy-servers.net:80';
var canonHostname = 'diywk00.cluster.mlpsca01.us.diy-servers.net';
var accountId     = 'AVESJ0INES6N';
var companyName   = '%E4%B8%96%E7%95%8C%E4%B8%80%E3%81%8B%E3%81%A3%E3%81%93%E3%81%84%E3%81%84%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3';
var htmlTitle	  = '%E5%88%BA%E7%B9%8D%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3+%E8%A3%BD%E9%80%A0%E3%83%BB%E8%B2%A9%E5%A3%B2+%7C+%E4%B8%96%E7%95%8C%E4%B8%80%E3%81%8B%E3%81%A3%E3%81%93%E3%81%84%E3%81%84%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3';
var metaKeywords  = '%E5%88%BA%E7%B9%8D%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3%2C%E5%89%B5%E4%BD%9C%E5%88%BA%E7%B9%8D%2C%E3%83%8E%E3%83%99%E3%83%AB%E3%83%86%E3%82%A3%E5%88%BA%E7%B9%8D%2C%E5%86%A0%E5%A9%9A%E8%91%AC%E7%A5%AD%E5%88%BA%E7%B9%8D%2C%E6%97%A5%E6%9C%AC%E4%B8%80%E3%81%8D%E3%82%8C%E3%81%84%2C%E4%B8%96%E7%95%8C%E4%B8%80%E3%81%8B%E3%81%A3%E3%81%93%E3%81%84%E3%81%84%2C%E5%88%BA%E7%B9%8D%E3%83%91%E3%83%B3%E3%83%81%E3%83%B3%E3%82%B0%2C%E8%A3%BD%E9%80%A0%E7%9B%B4%E8%B2%A9+';
var metaContents  = '%E4%B8%96%E7%95%8C%E4%B8%80%E3%81%8B%E3%81%A3%E3%81%93%E3%81%84%E3%81%84%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3%E3%82%92%E3%80%81%E5%8C%A0%E3%81%AE%E6%8A%80%E3%81%A7%E3%80%81%E6%97%A9%E3%81%8F%E5%AE%89%E3%81%8F%E3%80%81%E7%9A%86%E6%A7%98%E3%81%AB%E3%81%8A%E5%B1%8A%E3%81%91%E3%80%82%E5%88%BA%E7%B9%8D%E5%B7%A5%E5%A0%B4%E7%9B%B4%E5%96%B6%E3%82%B5%E3%82%A4%E3%83%88%E3%81%A7%E5%AE%89%E5%BF%83%E3%80%82%E9%A9%9A%E3%81%8D%E8%B6%85%E7%89%B9%E4%BE%A1%E3%83%AF%E3%82%B1%E3%82%A2%E3%83%AA%E3%83%AF%E3%83%83%E3%83%9A%E3%83%B3%E3%81%AF%E5%BF%85%E8%A6%8B%EF%BC%81%EF%BC%81';
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();
};

