/* [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','206',jdecode('INTRODUTIONS'),jdecode(''),'/206.html','true',[],''],
	['PAGE','89601',jdecode('NEW+Hirees'),jdecode(''),'/89601.html','true',[],''],
	['PAGE','59753',jdecode('CORRUPTION%2C+ISLIP%3F'),jdecode(''),'/59753.html','true',[],''],
	['PAGE','149801',jdecode('TAX+MONEY+THEFT'),jdecode(''),'/149801.html','true',[],''],
	['PAGE','59966',jdecode('Bloopers+you+fell+for'),jdecode(''),'/59966.html','true',[],''],
	['PAGE','59571',jdecode('Greed+with+your+%24'),jdecode(''),'/59571.html','true',[],''],
	['PAGE','42124',jdecode('Should+be+VERY+CONCERNED+'),jdecode(''),'/42124.html','true',[],''],
	['PAGE','42167',jdecode('Builders+Alert+%26+Permits'),jdecode(''),'/42167.html','true',[],''],
	['PAGE','42233',jdecode('%24+wasted+by+a+hypocrite'),jdecode(''),'/42233.html','true',[],''],
	['PAGE','42303',jdecode('GPS+Fraud'),jdecode(''),'/42303.html','true',[],''],
	['PAGE','42481',jdecode('Free+Cars+your+%24%24%24'),jdecode(''),'/42481.html','true',[],''],
	['PAGE','42522',jdecode('Freedom+of+Information'),jdecode(''),'/42522.html','true',[],''],
	['PAGE','42595',jdecode('What%26%23x27%3Bs+out+of+%26+in+your+wallet%3F'),jdecode(''),'/42595.html','true',[],''],
	['PAGE','42728',jdecode('Councilmens+Jobs'),jdecode(''),'/42728.html','true',[],''],
	['PAGE','42765',jdecode('One+for+All%2C+All+for+me%3F'),jdecode(''),'/42765.html','true',[],''],
	['PAGE','42912',jdecode('What%26%23x27%3Bs+in+your+backround'),jdecode(''),'/42912.html','true',[],''],
	['PAGE','42980',jdecode('Threats'),jdecode(''),'/42980.html','true',[],''],
	['PAGE','43194',jdecode('How+your+reps+are+chosen'),jdecode(''),'/43194.html','true',[],''],
	['PAGE','43279',jdecode('How+are+you+taxed%3F'),jdecode(''),'/43279.html','true',[],''],
	['PAGE','43419',jdecode('Caught'),jdecode(''),'/43419.html','true',[],''],
	['PAGE','43821',jdecode('Islip+same+corruption%21'),jdecode(''),'/43821.html','true',[],''],
	['PAGE','43920',jdecode('Airport+hot+air%3F'),jdecode(''),'/43920.html','true',[],''],
	['PAGE','43968',jdecode('My+out+of+towners+your%24%24%24'),jdecode(''),'/43968.html','true',[],''],
	['PAGE','44391',jdecode('Spy+games'),jdecode(''),'/44391.html','true',[],''],
	['PAGE','44520',jdecode('Financial+Rape'),jdecode(''),'/44520.html','true',[],''],
	['PAGE','44819',jdecode('Vehicle+abuse'),jdecode(''),'/44819.html','true',[],''],
	['PAGE','44978',jdecode('Scenario+Lane'),jdecode(''),'/44978.html','true',[],''],
	['PAGE','45044',jdecode('Payback-using+your+%24%24%24'),jdecode(''),'/45044.html','true',[],''],
	['PAGE','45137',jdecode('Disgracing+the+town'),jdecode(''),'/45137.html','true',[],''],
	['PAGE','45253',jdecode('Cellphone+abuse'),jdecode(''),'/45253.html','true',[],''],
	['PAGE','150601',jdecode('GROUND+CONTAMINATION'),jdecode(''),'/150601.html','true',[],''],
	['PAGE','152801',jdecode('+COVER+UP%2F+CONTAMI..'),jdecode(''),'/152801.html','true',[],''],
	['PAGE','156201',jdecode('MORE+CONTAMINATION'),jdecode(''),'/156201.html','true',[],''],
	['PAGE','153301',jdecode('Water+results+are+in%21'),jdecode(''),'/153301.html','true',[],''],
	['PAGE','59218',jdecode('NEW+Laws+not+for+%3F'),jdecode(''),'/59218.html','true',[],''],
	['PAGE','60065',jdecode('Disrespect'),jdecode(''),'/60065.html','true',[],''],
	['PAGE','60157',jdecode('OUT+OF+CONTROL+%24%24%24%24%24'),jdecode(''),'/60157.html','true',[],''],
	['PAGE','60319',jdecode('EXTORTION%3F'),jdecode(''),'/60319.html','true',[],''],
	['PAGE','60425',jdecode('archives'),jdecode(''),'/60425.html','true',[],''],
	['PAGE','61801',jdecode('Union+info'),jdecode(''),'/61801.html','true',[],''],
	['PAGE','63201',jdecode('Selective+harrassment'),jdecode(''),'/63201.html','true',[],''],
	['PAGE','65901',jdecode('BONDS+at+YOUR+COST'),jdecode(''),'/65901.html','true',[],''],
	['PAGE','76901',jdecode('Taxpayer+Funds+used'),jdecode(''),'/76901.html','true',[],''],
	['PAGE','77901',jdecode('ATTORNEY+EXPLOSION'),jdecode(''),'/77901.html','true',[],''],
	['PAGE','79001',jdecode('Work+given+out+for+%24+++%3F'),jdecode(''),'/79001.html','true',[],''],
	['PAGE','85001',jdecode('A+Real+Plow+Job'),jdecode(''),'/85001.html','true',[],''],
	['PAGE','93901',jdecode('Special+Streets'),jdecode(''),'/93901.html','true',[],''],
	['PAGE','97101',jdecode('Where%26%23x27%3Bs+the+sand+%26+salt'),jdecode(''),'/97101.html','true',[],''],
	['PAGE','102301',jdecode('Union+Agrement'),jdecode(''),'/102301.html','true',[],''],
	['PAGE','103301',jdecode('Town+Law+Suit+Filed'),jdecode(''),'/103301.html','true',[],''],
	['PAGE','105401',jdecode('Disgrace+to+this+town'),jdecode(''),'/105401.html','true',[],''],
	['PAGE','108101',jdecode('Town+Has+Lied+to+Us+%24%24'),jdecode(''),'/108101.html','true',[],''],
	['PAGE','110601',jdecode('GPS+PROVEN+LIE'),jdecode(''),'/110601.html','true',[],''],
	['PAGE','114501',jdecode('COLLEGE+YOU+PAY'),jdecode(''),'/114501.html','true',[],''],
	['PAGE','117301',jdecode('GAS+SAVINGS+FRAUD'),jdecode(''),'/117301.html','true',[],''],
	['PAGE','118101',jdecode('PARKS+CLOSED+YOU+PAY+FOR'),jdecode(''),'/118101.html','true',[],''],
	['PAGE','119401',jdecode('NON+UNION+WORK'),jdecode(''),'/119401.html','true',[],''],
	['PAGE','126801',jdecode('Town+Clerk+Spec+Friend'),jdecode(''),'/126801.html','true',[],''],
	['PAGE','128401',jdecode('LABOR+ATTORNEYS+%24%24'),jdecode(''),'/128401.html','true',[],''],
	['PAGE','129501',jdecode('Nolan+and+crimminals%21'),jdecode(''),'/129501.html','true',[],''],
	['PAGE','130001',jdecode('EXTORTION%21'),jdecode(''),'/130001.html','true',[],''],
	['PAGE','130401',jdecode('Campaign+Fraud%3F'),jdecode(''),'/130401.html','true',[],''],
	['PAGE','131101',jdecode('Mega+%24%24+spent'),jdecode(''),'/131101.html','true',[],''],
	['PAGE','133301',jdecode('TOWN+CLERK+ABUSEFUL'),jdecode(''),'/133301.html','true',[],''],
	['PAGE','134201',jdecode('PAY+TO+PLAY+SCHEME'),jdecode(''),'/134201.html','true',[],''],
	['PAGE','134601',jdecode('You+fell+for+this+lie+%24'),jdecode(''),'/134601.html','true',[],''],
	['PAGE','138301',jdecode('In+Your+Face+%24+spent'),jdecode(''),'/138301.html','true',[],''],
	['PAGE','140101',jdecode('Gov%26%23x27%3Bt+funds+illegal'),jdecode(''),'/140101.html','true',[],''],
	['PAGE','141001',jdecode('we+are+above+law'),jdecode(''),'/141001.html','true',[],''],
	['PAGE','142901',jdecode('Islip+Doesn%26%23x27%3Bt+Need+This%3F'),jdecode(''),'/142901.html','true',[],'']];
var siteelementCount=70;
theSitetree.topTemplateName='Aroundtheworld';
theSitetree.paletteFamily='7FACDC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10793';
theSitetree.graphicsetId='11215';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='7FACDC';
var theTemplate={
				name: 			'Aroundtheworld',
				paletteFamily: 	'7FACDC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10793',
				graphicsetId: 	'11215',
				contentColor: 	'000000',
				contentBGColor: '7FACDC',
				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: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '206',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206',
internalId:  '',
customField: '20100116-151633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59753',
internalId:  '',
customField: '20091023-210148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59966',
internalId:  '',
customField: '20080825-205246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59571',
internalId:  '',
customField: '20090904-174010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42124',
internalId:  '',
customField: '20090701-210140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42167',
internalId:  '',
customField: '20080626-082317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42233',
internalId:  '',
customField: '20091025-101225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42303',
internalId:  '',
customField: '20091029-230127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42481',
internalId:  '',
customField: '20080218-203908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42522',
internalId:  '',
customField: '20081114-190740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42595',
internalId:  '',
customField: '20081106-210532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42728',
internalId:  '',
customField: '20090425-120109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42765',
internalId:  '',
customField: '20080527-020249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42912',
internalId:  '',
customField: '20090117-203002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42980',
internalId:  '',
customField: '20080218-205812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43194',
internalId:  '',
customField: '20080119-045914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43279',
internalId:  '',
customField: '20081114-200236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43419',
internalId:  '',
customField: '20080527-004626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43821',
internalId:  '',
customField: '20090802-203922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43920',
internalId:  '',
customField: '20090117-203555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43968',
internalId:  '',
customField: '20080612-003912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44391',
internalId:  '',
customField: '20080403-114726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126801',
internalId:  '',
customField: '20091023-210535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44520',
internalId:  '',
customField: '20090117-201237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128401',
internalId:  '',
customField: '20090701-203609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44819',
internalId:  '',
customField: '20090202-022928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44978',
internalId:  '',
customField: '20080626-071348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45044',
internalId:  '',
customField: '20080825-210935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45137',
internalId:  '',
customField: '20090418-214642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45253',
internalId:  '',
customField: '20080610-132424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59218',
internalId:  '',
customField: '20091021-061237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60065',
internalId:  '',
customField: '20090806-075801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60157',
internalId:  '',
customField: '20090530-215619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60319',
internalId:  '',
customField: '20080907-205743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60425',
internalId:  '',
customField: '20081013-204318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61801',
internalId:  '',
customField: '20090224-095946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63201',
internalId:  '',
customField: '20080928-173810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65901',
internalId:  '',
customField: '20090126-113455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76901',
internalId:  '',
customField: '20091023-090743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77901',
internalId:  '',
customField: '20090904-174415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79001',
internalId:  '',
customField: '20081205-065056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85001',
internalId:  '',
customField: '20090126-113020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93901',
internalId:  '',
customField: '20090126-220520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89601',
internalId:  '',
customField: '20091027-220428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97101',
internalId:  '',
customField: '20090127-093343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102301',
internalId:  '',
customField: '20090211-122617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103301',
internalId:  '',
customField: '20090806-080142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105401',
internalId:  '',
customField: '20090219-081320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108101',
internalId:  '',
customField: '20090312-213148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110601',
internalId:  '',
customField: '20090422-122147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114501',
internalId:  '',
customField: '20090311-214110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117301',
internalId:  '',
customField: '20090322-204525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118101',
internalId:  '',
customField: '20090819-201848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119401',
internalId:  '',
customField: '20090403-113235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129501',
internalId:  '',
customField: '20091023-210514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130001',
internalId:  '',
customField: '20090709-162616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130401',
internalId:  '',
customField: '20090713-211631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131101',
internalId:  '',
customField: '20090722-121237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133301',
internalId:  '',
customField: '20090806-090916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134201',
internalId:  '',
customField: '20090818-150654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134601',
internalId:  '',
customField: '20090811-153926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138301',
internalId:  '',
customField: '20090822-151228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140101',
internalId:  '',
customField: '20090904-175005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141001',
internalId:  '',
customField: '20091027-214320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142901',
internalId:  '',
customField: '20091027-212650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149801',
internalId:  '',
customField: '20091118-063432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150601',
internalId:  '',
customField: '20091215-211249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152801',
internalId:  '',
customField: '20091231-220109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153301',
internalId:  '',
customField: '20100101-103205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '156201',
internalId:  '',
customField: '20100116-153534'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INXECW';
var companyName   = 'isliptownshipwatch';
var htmlTitle	  = 'Islip+Township+Watch';
var metaKeywords  = 'Islip%2C+Islip+Town%2C+Islip+Township%2C+McGowan%2C+Bodkin%2C+Flotteron%2C+Greene%2C+Rowley%2C+Brentwood%2C+Central+Ilip%2C+Ronkonkoma%2C+Bohemia%2C+Sayville%2C+West+Sayville%2C+Oakdale%2C+East+Islip%2C+West+Islip%2C+Brightwaters%2C+Great+River%2C+Bayport%2C+Hauppage';
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();
};
