/* [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','3601',jdecode('Home'),jdecode(''),'/3601.html','true',[],'',''],
	['PAGE','3652',jdecode('The+Insider+Risk+Problem'),jdecode(''),'/3652.html','true',[],'',''],
	['PAGE','3673',jdecode('The+Solution'),jdecode(''),'/3673/index.html','true',[ 
		['PAGE','10701',jdecode('How+It+Works'),jdecode(''),'/3673/10701.html','true',[],'',''],
		['PAGE','15615',jdecode('Cloud+SaaS+Model'),jdecode(''),'/3673/15615.html','true',[],'',''],
		['PAGE','17115',jdecode('Anomaly+Detection'),jdecode(''),'/3673/17115.html','true',[],'',''],
		['PAGE','17315',jdecode('Fraud+Detection'),jdecode(''),'/3673/17315.html','true',[],'',''],
		['PAGE','32015',jdecode('Our+Customers'),jdecode(''),'/3673/32015.html','true',[],'','']
	],'',''],
	['PAGE','3694',jdecode('Contact'),jdecode(''),'/3694.html','true',[],'',''],
	['PAGE','3715',jdecode('About+us'),jdecode(''),'/3715/index.html','true',[ 
		['PAGE','12215',jdecode('Nowell%26%23x27%3Bs+Foundations'),jdecode(''),'/3715/12215.html','true',[],'',''],
		['PAGE','12115',jdecode('Our+Board'),jdecode(''),'/3715/12115.html','true',[],'',''],
		['PAGE','17715',jdecode('Intellectual+Property'),jdecode(''),'/3715/17715.html','true',[],'','']
	],'',''],
	['PAGE','3820',jdecode('Publications'),jdecode(''),'/3820.html','true',[],'',''],
	['PAGE','5901',jdecode('News'),jdecode(''),'/5901.html','true',[],'','']];
var siteelementCount=15;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10892';
theSitetree.contentColor='555454';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10892',
				contentColor: 	'555454',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3601',
internalId:  '',
customField: '20091030-204032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3652',
internalId:  '',
customField: '20090814-010358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3673',
internalId:  '',
customField: '20090817-232602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3694',
internalId:  '',
customField: '20100117-192054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3715',
internalId:  '',
customField: '20091030-204138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12215',
internalId:  '',
customField: '20090810-013547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20090813-174627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20091030-204434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3820',
internalId:  '',
customField: '20090819-121446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17715',
internalId:  '',
customField: '20100117-192014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17315',
internalId:  '',
customField: '20090813-175509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12115',
internalId:  '',
customField: '20091017-001049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15615',
internalId:  '',
customField: '20090819-122050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17115',
internalId:  '',
customField: '20090808-093850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32015',
internalId:  '',
customField: '20091006-184255'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INLB5M';
var companyName   = '';
var htmlTitle	  = 'Nowell%3A+Insider+Risk+SaaS+Security+Platform';
var metaKeywords  = 'insider+threat%2C++nowell+development+inc%2C+insider+threat+detection%2C+security+risk+management%2C+identity+theft%2C+nowell%2C+shalom%2C+nowell+shalom%2C+shalom+security+platform%2C++internal+fraud%2C+anomaly+detection%2C+multifactor+authentication%2C+nowell+software%2C+saas+security+platform%2C+computer+security%2C+information+security%2C+nowell+inc%2C+phishing%2C+antiphishing%2C+omon+edeki';
var metaContents  = 'Nowell+focuses+on+defeating+Insider+Threats%2C+Identity+Theft+and+Fraud+by+detecting+high+risk+suspicious+behavior.+Shalom+Security+Platform%2C+which+is+delivered+as+a+secure+service+via+the+cloud%2C+addresses+Identity+theft%2C+Internal+Fraud%2C+and+Insider+Risk.+Nowell%E2%80%99s+products+offer+proactive+internal+risk+management+controls+that+enforce+compliance+with+regulations+such+as+FFIEC+Security%2C+SOX%2C+VISA-CISP%2CFISMA+HIPAA%2C+and+GLBA.';
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();
};
