/* [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','32',jdecode('Home'),jdecode(''),'/32.html','true',[],''],
	['PAGE','818',jdecode('Blog'),jdecode(''),'/818.html','true',[],''],
	['PAGE','53',jdecode('Monique+Ferraro'),jdecode(''),'/53/index.html','true',[ 
		['PAGE','62',jdecode('Publications'),jdecode(''),'/53/62.html','true',[],'']
	],''],
	['PAGE','732',jdecode('Henry+Dodenhoff'),jdecode(''),'/732.html','true',[],''],
	['PAGE','71',jdecode('Services'),jdecode(''),'/71/index.html','true',[ 
		['PAGE','80',jdecode('Digital+Forensics'),jdecode(''),'/71/80.html','true',[],''],
		['PAGE','15601',jdecode('ESI+Discovery+Planning'),jdecode(''),'/71/15601.html','true',[],''],
		['PAGE','89',jdecode('Security+Consulting'),jdecode(''),'/71/89.html','true',[],''],
		['PAGE','98',jdecode('Training'),jdecode(''),'/71/98.html','true',[],'']
	],''],
	['PAGE','891',jdecode('News%2FCalendar'),jdecode(''),'/891.html','true',[],''],
	['PAGE','107',jdecode('Links'),jdecode(''),'/107.html','true',[],''],
	['PAGE','116',jdecode('Contact'),jdecode(''),'/116.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Amaze';
theSitetree.paletteFamily='0A2447';
theSitetree.keyvisualId='2415';
theSitetree.keyvisualName='computer.jpg';
theSitetree.fontsetId='394';
theSitetree.graphicsetId='444';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='0A2447';
var theTemplate={
				name: 			'Amaze',
				paletteFamily: 	'0A2447',
				keyvisualId: 	'2415',
				keyvisualName: 	'computer.jpg',
				fontsetId: 		'394',
				graphicsetId: 	'444',
				contentColor: 	'FFFFFF',
				contentBGColor: '0A2447',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'0A2447',
				b_color: 		'081B35',
				c_color: 		'3268E2',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '32',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32',
internalId:  '',
customField: '20080130-063756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '818',
internalId:  '',
customField: '20100227-215520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53',
internalId:  '',
customField: '20091127-200649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62',
internalId:  '',
customField: '20091127-202709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '732',
internalId:  '',
customField: '20080130-064013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71',
internalId:  '',
customField: '20091127-204145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80',
internalId:  '',
customField: '20091127-204456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89',
internalId:  '',
customField: '20080130-054516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98',
internalId:  '',
customField: '20080130-062158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '891',
internalId:  '',
customField: '20100226-204652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116',
internalId:  '',
customField: '20091127-205503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107',
internalId:  '',
customField: '20091128-194303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15601',
internalId:  '',
customField: '20091128-194126'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050IN3LLI';
var companyName   = 'Technology+Forensics%2C+LLC';
var htmlTitle	  = 'Technology+Forensics%2CLLC-++Digital+Forensics+Experts';
var metaKeywords  = 'Digital+Forensics%2C+computer+crime%2C+digital+forensics+connecticut%2C+information+security+consultant+connecticut%2C+digital+evidence+expert%2C+digital+evidence+expert+connecticut%2C+child+pornography+expert%2C+digital+forensics+training%2C+internet+safety+training%2C+monique+ferraro%2C+monique+mattei%2C+henry+dodenhoff%2C+electronic+discovery%2C+e-discovery%2C+esi+discovery';
var metaContents  = 'Digital+Forensics%2C+computer+forensics%2C+cell+phone+forensics%2C+electronic+discovery+planning%2C+electronic+discovery%2C+ESI+discovery+planning%2C+e-discovery+planning%2C+e-discovery%2C+e-discovery+consultant%2C+esi+discovery+consultant%2C+computer+crime%2C+digital+forensics+connecticut%2C+information+security+consultant+connecticut%2C+digital+evidence+expert%2C+digital+evidence+expert+connecticut%2C+child+pornography+expert%2C+digital+forensics+training%2C+internet+safety+training%2C+monique+mattei%2C+monique+mattei+ferraro%2C+henry+dodenhoff%2C+connecticut+department+of+public+safety%2C+computer+crime+connecticut%2C+internet+crime+connecticut%2C+digital+evidence+lab%2C+electronic+evidence+lab%2C+computer+crimes+and+electronic+evidence%2C+child+pornography+expert%2C+child+exploitation+expert%2C+cybercrime%2C+cybercrime+expert%2C+cyber+forensics%2C+cyber+forensics+expert';
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();
};
