/* [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','2101',jdecode('Home'),jdecode(''),'/2101.html','true',[],'',''],
	['PAGE','14301',jdecode('NEWS'),jdecode(''),'/14301.html','true',[],'',''],
	['PAGE','20301',jdecode('Publications'),jdecode(''),'/20301.html','true',[],'',''],
	['PAGE','11901',jdecode('Links'),jdecode(''),'/11901/index.html','true',[ 
		['PAGE','11922',jdecode('ID+Theft'),jdecode(''),'/11901/11922.html','true',[],'',''],
		['PAGE','11943',jdecode('Law+Enforcement'),jdecode(''),'/11901/11943.html','true',[],'',''],
		['PAGE','18001',jdecode('Scams'),jdecode(''),'/11901/18001.html','true',[],'',''],
		['PAGE','11964',jdecode('Task+Forces'),jdecode(''),'/11901/11964.html','true',[],'',''],
		['PAGE','16501',jdecode('Organizations'),jdecode(''),'/11901/16501.html','true',[],'',''],
		['PAGE','16301',jdecode('LAWS'),jdecode(''),'/11901/16301.html','true',[],'','']
	],'',''],
	['PAGE','19401',jdecode('PC+530.8'),jdecode(''),'/19401.html','true',[],'',''],
	['PAGE','2222',jdecode('Press+Releases'),jdecode(''),'/2222/index.html','false',[ 
		['PAGE','12801',jdecode('2009'),jdecode(''),'/2222/12801.html','true',[],'',''],
		['PAGE','12822',jdecode('2008'),jdecode(''),'/2222/12822.html','true',[],'',''],
		['PAGE','12843',jdecode('2007'),jdecode(''),'/2222/12843.html','true',[],'',''],
		['PAGE','12864',jdecode('2006'),jdecode(''),'/2222/12864.html','true',[],'',''],
		['PAGE','14901',jdecode('2005'),jdecode(''),'/2222/14901.html','true',[],'',''],
		['PAGE','14922',jdecode('2004'),jdecode(''),'/2222/14922.html','true',[],'',''],
		['PAGE','14943',jdecode('2003'),jdecode(''),'/2222/14943.html','true',[],'','']
	],'',''],
	['PAGE','2264',jdecode('Report+a+crime'),jdecode(''),'/2264.html','true',[],'',''],
	['PAGE','10601',jdecode('Industry+BOLO%26%23x27%3Bs'),jdecode(''),'/10601.html','true',[],'',''],
	['PAGE','10701',jdecode('About+us'),jdecode(''),'/10701.html','true',[],'',''],
	['PAGE','2285',jdecode('Guest+Book'),jdecode(''),'/2285.html','true',[],'',''],
	['PAGE','19901',jdecode('Alumni'),jdecode(''),'/19901.html','true',[],'','']];
var siteelementCount=24;
theSitetree.topTemplateName='Amaze';
theSitetree.paletteFamily='0A2447';
theSitetree.keyvisualId='2416';
theSitetree.keyvisualName='digital.jpg';
theSitetree.fontsetId='394';
theSitetree.graphicsetId='444';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='0A2447';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Amaze',
				paletteFamily: 	'0A2447',
				keyvisualId: 	'2416',
				keyvisualName: 	'digital.jpg',
				fontsetId: 		'394',
				graphicsetId: 	'444',
				contentColor: 	'FFFFFF',
				contentBGColor: '0A2447',
				a_color: 		'0A2447',
				b_color: 		'081B35',
				c_color: 		'3268E2',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-2285avec10infrq3']={
webappId:    '1002',
documentId:  '2285',
internalId:  '2285avec10infrq3',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2101',
internalId:  '',
customField: '20100211-161615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10601',
internalId:  '',
customField: '20090306-163546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20100128-153308'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2101',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-13190191']={
webappId:    '1501',
documentId:  '2101',
internalId:  '13190191',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2222',
internalId:  '',
customField: '20090306-153617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2264',
internalId:  '',
customField: '20090115-185127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2285',
internalId:  '',
customField: '20090320-163827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11901',
internalId:  '',
customField: '20090320-155042'
};
webappMappings['7008']=webappMappings['7008-3049']={
webappId:    '7008',
documentId:  '2264',
internalId:  '3049',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-5206']={
webappId:    '7008',
documentId:  '10601',
internalId:  '5206',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11922',
internalId:  '',
customField: '20090729-180206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11943',
internalId:  '',
customField: '20100106-121241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12801',
internalId:  '',
customField: '20090526-113703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12822',
internalId:  '',
customField: '20090318-102641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12843',
internalId:  '',
customField: '20090306-153835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12864',
internalId:  '',
customField: '20090306-154000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11964',
internalId:  '',
customField: '20090306-162455'
};
webappMappings['7050']=webappMappings['7050-1230']={
webappId:    '7050',
documentId:  '14301',
internalId:  '1230',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14301',
internalId:  '',
customField: '20090306-165140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14901',
internalId:  '',
customField: '20090306-175355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14943',
internalId:  '',
customField: '20090306-182621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14922',
internalId:  '',
customField: '20090306-182537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16301',
internalId:  '',
customField: '20090311-181908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16501',
internalId:  '',
customField: '20090311-135242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18001',
internalId:  '',
customField: '20090527-180911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19401',
internalId:  '',
customField: '20090320-170920'
};
webappMappings['7008']=webappMappings['7008-5562']={
webappId:    '7008',
documentId:  '19901',
internalId:  '5562',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19901',
internalId:  '',
customField: '20090320-163910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20301',
internalId:  '',
customField: '20090320-170829'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INFRQ3';
var companyName   = 'Rapid+Enforcement+Allied+Computer+Team';
var htmlTitle	  = 'The+Silicon+Valley%27s+High+Technology+Task+Force%2C+R.E.A.C.T.';
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();
};

