/* [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','1901',jdecode('Home'),jdecode(''),'/1901/index.html','true',[ 
		['PAGE','12212',jdecode('Site+Search'),jdecode(''),'/1901/12212.html','true',[],'','']
	],'',''],
	['PAGE','1952',jdecode('The+Foundation'),jdecode(''),'/1952/index.html','true',[ 
		['PAGE','18312',jdecode('Our+President%26%23x27%3Bs+Page'),jdecode(''),'/1952/18312.html','true',[],'','']
	],'',''],
	['PAGE','1973',jdecode('SISFI+News'),jdecode(''),'/1973.html','true',[],'',''],
	['PAGE','19212',jdecode('SISFI+Programs'),jdecode(''),'/19212/index.html','true',[ 
		['PAGE','44212',jdecode('Abuse+Support+Groups'),jdecode(''),'/19212/44212.html','true',[],'',''],
		['PAGE','19233',jdecode('Cyberbullying+Counseling+Program'),jdecode(''),'/19212/19233.html','true',[],'',''],
		['PAGE','19712',jdecode('Secure+Minds+Initiative'),jdecode(''),'/19212/19712.html','true',[],'',''],
		['PAGE','15912',jdecode('Summer+School+Programs'),jdecode(''),'/19212/15912.html','true',[],'','']
	],'',''],
	['PAGE','41712',jdecode('SISFI+Radio+Shows'),jdecode(''),'/41712.html','true',[],'',''],
	['PAGE','2078',jdecode('Our+Center%28s%29'),jdecode(''),'/2078/index.html','true',[ 
		['PAGE','9212',jdecode('Arverne%2C+NY%2C+USA'),jdecode(''),'/2078/9212.html','true',[],'',''],
		['PAGE','10212',jdecode('South+Queens'),jdecode(''),'/2078/10212.html','true',[],'',''],
		['PAGE','10233',jdecode('Jamaica+Avenue'),jdecode(''),'/2078/10233.html','true',[],'','']
	],'',''],
	['PAGE','29712',jdecode('Our+IRRAMS'),jdecode(''),'/29712/index.html','true',[ 
		['PAGE','29733',jdecode('IRRAMS+Hierarchy'),jdecode(''),'/29712/29733.html','true',[],'',''],
		['PAGE','29754',jdecode('IRRAMS+Partners'),jdecode(''),'/29712/29754.html','true',[],'',''],
		['PAGE','35812',jdecode('IRRAMS+Users'),jdecode(''),'/29712/35812.html','true',[],'','']
	],'',''],
	['PAGE','39212',jdecode('Our+CSNOC'),jdecode(''),'/39212.html','true',[],'',''],
	['PAGE','27212',jdecode('Abuse+Task+Force'),jdecode(''),'/27212/index.html','true',[ 
		['PAGE','27233',jdecode('Task+Force+Team'),jdecode(''),'/27212/27233.html','true',[],'',''],
		['PAGE','27312',jdecode('Task+Force+Publications'),jdecode(''),'/27212/27312.html','true',[],'',''],
		['PAGE','46612',jdecode('Task+Force+Projects'),jdecode(''),'/27212/46612.html','true',[],'','']
	],'',''],
	['PAGE','35312',jdecode('Community+Advocates'),jdecode(''),'/35312/index.html','true',[ 
		['PAGE','35333',jdecode('Authors%2FWriters'),jdecode(''),'/35312/35333.html','true',[],'',''],
		['PAGE','35354',jdecode('Clerical+Leaders'),jdecode(''),'/35312/35354.html','true',[],'',''],
		['PAGE','35375',jdecode('Community+Groups'),jdecode(''),'/35312/35375.html','true',[],'',''],
		['PAGE','35396',jdecode('Community+Leaders'),jdecode(''),'/35312/35396.html','true',[],'',''],
		['PAGE','35417',jdecode('Doctors'),jdecode(''),'/35312/35417.html','true',[],'',''],
		['PAGE','35438',jdecode('Elected+Officials'),jdecode(''),'/35312/35438.html','true',[],'',''],
		['PAGE','35712',jdecode('General+Public'),jdecode(''),'/35312/35712.html','true',[],'',''],
		['PAGE','35459',jdecode('Law+Enforcement'),jdecode(''),'/35312/35459.html','true',[],'',''],
		['PAGE','35480',jdecode('Parents'),jdecode(''),'/35312/35480.html','true',[],'',''],
		['PAGE','35501',jdecode('School+Leaders'),jdecode(''),'/35312/35501.html','true',[],'',''],
		['PAGE','35522',jdecode('School+Safety'),jdecode(''),'/35312/35522.html','true',[],'',''],
		['PAGE','43512',jdecode('Youths%2FTeens+Leaders'),jdecode(''),'/35312/43512.html','true',[],'','']
	],'',''],
	['PAGE','28612',jdecode('SISFI%26%23x27%3Bs+Abused%2FBullied+Registry'),jdecode(''),'/28612.html','true',[],'',''],
	['PAGE','13912',jdecode('Our+Events+%26+Happenings'),jdecode(''),'/13912/index.html','true',[ 
		['PAGE','28512',jdecode('Anti-Bullying+Conference'),jdecode(''),'/13912/28512.html','true',[],'',''],
		['PAGE','39612',jdecode('Anti-Bullying+Parades'),jdecode(''),'/13912/39612.html','true',[],'',''],
		['PAGE','16312',jdecode('Awards+Ceremony'),jdecode(''),'/13912/16312.html','true',[],'',''],
		['PAGE','16112',jdecode('Cyberbullying+Campaign'),jdecode(''),'/13912/16112.html','true',[],'','']
	],'',''],
	['PAGE','16912',jdecode('Volunteers'),jdecode(''),'/16912/index.html','true',[ 
		['PAGE','17012',jdecode('In+the+Centers'),jdecode(''),'/16912/17012.html','true',[],'',''],
		['PAGE','17033',jdecode('Our+Events'),jdecode(''),'/16912/17033.html','true',[],'','']
	],'',''],
	['PAGE','26412',jdecode('Our+Social+Media'),jdecode(''),'/26412.html','true',[],'',''],
	['PAGE','9254',jdecode('Our+Guestbook'),jdecode(''),'/9254.html','true',[],'',''],
	['PAGE','11012',jdecode('Our+Photo+Gallery'),jdecode(''),'/11012.html','true',[],'',''],
	['PAGE','10254',jdecode('Our+Surveys-Polls'),jdecode(''),'/10254/index.html','true',[ 
		['PAGE','28633',jdecode('Bully+Offenders+Registry'),jdecode(''),'/10254/28633.html','true',[],'',''],
		['PAGE','30412',jdecode('School+Leadership'),jdecode(''),'/10254/30412.html','true',[],'','']
	],'',''],
	['PAGE','8712',jdecode('Our+Local+Weather'),jdecode(''),'/8712.html','true',[],'',''],
	['PAGE','1994',jdecode('About+SISFI'),jdecode(''),'/1994/index.html','true',[ 
		['PAGE','2015',jdecode('History'),jdecode(''),'/1994/2015.html','true',[],'',''],
		['PAGE','2057',jdecode('Statute'),jdecode(''),'/1994/2057.html','true',[],'',''],
		['PAGE','2036',jdecode('Board+of+Directors%2FTrustees'),jdecode(''),'/1994/2036.html','true',[],'',''],
		['PAGE','11712',jdecode('Management+Committee'),jdecode(''),'/1994/11712.html','true',[],'',''],
		['PAGE','12812',jdecode('Advisory+Committee'),jdecode(''),'/1994/12812.html','true',[],'',''],
		['PAGE','9233',jdecode('Our+Sponsors'),jdecode(''),'/1994/9233.html','true',[],'',''],
		['PAGE','12233',jdecode('Employment+Opportunities'),jdecode(''),'/1994/12233.html','true',[],'',''],
		['PAGE','16333',jdecode('Scholarship+Programs'),jdecode(''),'/1994/16333.html','true',[],'',''],
		['PAGE','8733',jdecode('Contact+us'),jdecode(''),'/1994/8733.html','true',[],'','']
	],'','']];
var siteelementCount=63;
theSitetree.topTemplateName='Bigcity_Space';
theSitetree.paletteFamily='3E648B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='21096';
theSitetree.graphicsetId='13166';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3E648B';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Bigcity_Space',
				paletteFamily: 	'3E648B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'21096',
				graphicsetId: 	'13166',
				contentColor: 	'FFFFFF',
				contentBGColor: '3E648B',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20100902-211537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1952',
internalId:  '',
customField: '20100808-222343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1973',
internalId:  '',
customField: '20100902-131324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1994',
internalId:  '',
customField: '20100902-140315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9254',
internalId:  '',
customField: '20100427-021848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2078',
internalId:  '',
customField: '20100429-025833'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1901',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-28713952']={
webappId:    '1501',
documentId:  '1901',
internalId:  '28713952',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2015',
internalId:  '',
customField: '20100404-103922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2036',
internalId:  '',
customField: '20100413-205914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2057',
internalId:  '',
customField: '20100402-153520'
};
webappMappings['7080']=webappMappings['7080-764']={
webappId:    '7080',
documentId:  '8712',
internalId:  '764',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-27203']={
webappId:    '7008',
documentId:  '8733',
internalId:  '27203',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8712',
internalId:  '',
customField: '20100407-034006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8733',
internalId:  '',
customField: '20100902-132444'
};
webappMappings['1002']=webappMappings['1002-9254aendu0inlazy']={
webappId:    '1002',
documentId:  '9254',
internalId:  '9254aendu0inlazy',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9233',
internalId:  '',
customField: '20100902-140336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9212',
internalId:  '',
customField: '20100409-162246'
};
webappMappings['7005']=webappMappings['7005-2997']={
webappId:    '7005',
documentId:  '10254',
internalId:  '2997',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10254',
internalId:  '',
customField: '20100417-091844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10212',
internalId:  '',
customField: '20100409-162258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10233',
internalId:  '',
customField: '20100409-162219'
};
webappMappings['7060']=webappMappings['7060-10b6edf701db6ac4cca5c9490a7bead5']={
webappId:    '7060',
documentId:  '11012',
internalId:  '10b6edf701db6ac4cca5c9490a7bead5',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11012',
internalId:  '',
customField: '20100616-213412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11712',
internalId:  '',
customField: '20100409-173501'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '12212',
internalId:  'search',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12212',
internalId:  '',
customField: '20100902-203522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12233',
internalId:  '',
customField: '20100412-114332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12812',
internalId:  '',
customField: '20100714-212819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13912',
internalId:  '',
customField: '20100714-210708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15912',
internalId:  '',
customField: '20100427-013106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16312',
internalId:  '',
customField: '20100617-200523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16112',
internalId:  '',
customField: '20100503-005455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16333',
internalId:  '',
customField: '20100427-014152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16912',
internalId:  '',
customField: '20100416-011536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17012',
internalId:  '',
customField: '20100416-012827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17033',
internalId:  '',
customField: '20100416-013414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18312',
internalId:  '',
customField: '20100902-223548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19212',
internalId:  '',
customField: '20100728-221317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19233',
internalId:  '',
customField: '20100714-112516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19712',
internalId:  '',
customField: '20100714-113601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26412',
internalId:  '',
customField: '20100902-223032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27212',
internalId:  '',
customField: '20100808-221139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27233',
internalId:  '',
customField: '20100902-222556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27312',
internalId:  '',
customField: '20100902-222732'
};
webappMappings['7005']=webappMappings['7005-3103']={
webappId:    '7005',
documentId:  '28633',
internalId:  '3103',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28633',
internalId:  '',
customField: '20100529-230048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28612',
internalId:  '',
customField: '20100902-133445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28512',
internalId:  '',
customField: '20100529-224335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29712',
internalId:  '',
customField: '20100703-222051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29733',
internalId:  '',
customField: '20100628-225303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29754',
internalId:  '',
customField: '20100628-225330'
};
webappMappings['7005']=webappMappings['7005-3146']={
webappId:    '7005',
documentId:  '30412',
internalId:  '3146',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30412',
internalId:  '',
customField: '20100615-123344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35312',
internalId:  '',
customField: '20100902-132840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35333',
internalId:  '',
customField: '20100703-215436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35354',
internalId:  '',
customField: '20100703-215930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35375',
internalId:  '',
customField: '20100703-220651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35396',
internalId:  '',
customField: '20100703-221045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35417',
internalId:  '',
customField: '20100703-231122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35812',
internalId:  '',
customField: '20100703-222348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35522',
internalId:  '',
customField: '20100704-025634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35501',
internalId:  '',
customField: '20100704-030515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35480',
internalId:  '',
customField: '20100704-030819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35459',
internalId:  '',
customField: '20100704-031811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35712',
internalId:  '',
customField: '20100704-032755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35438',
internalId:  '',
customField: '20100703-204747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39212',
internalId:  '',
customField: '20100902-223314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39612',
internalId:  '',
customField: '20100713-222613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41712',
internalId:  '',
customField: '20100902-132550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43512',
internalId:  '',
customField: '20100717-192539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44212',
internalId:  '',
customField: '20100728-223334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46612',
internalId:  '',
customField: '20100902-222754'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INLAZY';
var companyName   = 'SISFI';
var htmlTitle	  = 'SISFI+-+The+Scudder%27s+InfoTech+SecuriCity+Foundation%2C+Inc.';
var metaKeywords  = 'Bullying%2C+Cyberbullying%2C+Cybercrimes%2C+Suicide%2C+Brett+A.+Scudder%2C+Scudder%2C+Mass+Killings%2C+School+Shootings%2C+IT%2C+Technology%2C+IT+Security%2C+Education%2C+Awareness%2C+Training%2C+Development%2C+CSOC%2C+Youths%2C+Compliance%2C+Software%2C+Services%2C+SISFI%2C+TITSSN%2C+IRRAMS%2C';
var metaContents  = 'The+Scudders+InfoTech+SecuriCity+Foundation+-+A+Technology+and+IT+Security+Educational%2C+Training%2C+Awareness+and+Development+Community+Organization.';
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();
};

