/* [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','8601',jdecode('Home'),jdecode(''), jdecode('%2F8601.html'), 'true',[],'',''],
	['PAGE','15601',jdecode('Our+Litigation+Services'),jdecode(''), jdecode('%2F15601%2Findex.html'), 'true',[ 
		['PAGE','15322',jdecode('Fraud+Detection+%26+Deterrence'),jdecode(''), jdecode('%2F15601%2F15322.html'), 'true',[],'',''],
		['PAGE','15343',jdecode('Business+Valuations'),jdecode(''), jdecode('%2F15601%2F15343.html'), 'true',[],'',''],
		['PAGE','15364',jdecode('Marital+Relations'),jdecode(''), jdecode('%2F15601%2F15364.html'), 'true',[],'',''],
		['PAGE','15385',jdecode('Damages+%26+Lost+Profits'),jdecode(''), jdecode('%2F15601%2F15385.html'), 'true',[],'',''],
		['PAGE','15406',jdecode('Bankruptcy+Services'),jdecode(''), jdecode('%2F15601%2F15406.html'), 'true',[],'','']
	],'',''],
	['PAGE','8715',jdecode('Contact+Us'),jdecode(''), jdecode('%2F8715.html'), 'true',[],'',''],
	['PAGE','21201',jdecode('Newsletters'),jdecode(''), jdecode('%2F21201%2Findex.html'), 'true',[ 
		['PAGE','21501',jdecode('Archived+Newsletters'),jdecode(''), jdecode('%2F21201%2F21501.html'), 'true',[],'','']
	],'',''],
	['PAGE','9106',jdecode('Links'),jdecode(''), jdecode('%2F9106.html'), 'true',[],'','']];
var siteelementCount=11;
theSitetree.topTemplateName='Antigua';
theSitetree.paletteFamily='955956';
theSitetree.keyvisualId='6909';
theSitetree.keyvisualName='kv_6909.jpg';
theSitetree.fontsetId='11214';
theSitetree.graphicsetId='12041';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='B17775';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'endurance',
  product: 'WSCSYSSSSLY0XRN4'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Antigua',
				paletteFamily: 	'955956',
				keyvisualId: 	'6909',
				keyvisualName: 	'kv_6909.jpg',
				fontsetId: 		'11214',
				graphicsetId: 	'12041',
				contentColor: 	'FFFFFF',
				contentBGColor: 'B17775',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8601',
internalId:  '',
customField: '20120103-152546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15343',
internalId:  '',
customField: '20100408-094742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15364',
internalId:  '',
customField: '20120103-114734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8715',
internalId:  '',
customField: '20120106-132705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9106',
internalId:  '',
customField: '20120103-143831'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '8601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15406',
internalId:  '',
customField: '20100408-094938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15385',
internalId:  '',
customField: '20090907-193709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15322',
internalId:  '',
customField: '20120103-114439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15601',
internalId:  '',
customField: '20100408-094405'
};
webappMappings['7008']=webappMappings['7008-33837']={
webappId:    '7008',
documentId:  '21201',
internalId:  '33837',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21201',
internalId:  '',
customField: '20110203-154100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21501',
internalId:  '',
customField: '20120103-145021'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0IN3ZLN';
var companyName   = '++++++P.D.+Eye+Forensics%2C+LLC';
var htmlTitle	  = 'Forensic+Accountants+in+Columbus%2C+Ohio';
var metaKeywords  = 'P.D.+Eye+Forensics%2C+PD+Eye+Forensics%2C+PDI+Forensics%2C+PD+EYE%2C+PDI%2C+Litigation+Support%2C+Litigation+Expert%2C+Forensic+Accountants%2C+fraud+detection%2C+fraud+deterrence%2C+Fraud+Investigation%2C+Business+Valuation%2C+Damage%2C+Lost+Profits%2C+Bankruptices%2C+Bankruptcy%2C+Marital+Dissolutions%2C+Marital+Relations%2C+Collaborative+Law%2C+Financial+Professionals%2C+Columbus%2C+Ohio%2C+Divorce%2C+Fraud%2C+Certified+Fraud+Examiner%2C++CFE%2C+CVA%2C+CFF%2C+CPA%2C+Expert+Witness%2C+Certified+Valuation+Analysts%2C+Certified+in+Financial+Forensics%2C+Certified+Fraud+Examiner%2C+Certified+Public+Accountant%2C+Chrissie+Powers%2C+Heather+Deskins%2C+forensic%2C+accounting%2C+witness%2C+litigation%2C+business+interruption%2C+business+damages%2C+wrongful+dealth%2C+divorce%2C+estate%2C+gift+tax%2C+wrongful+termination%2C+shareholder+disputes%2C+';
var metaContents  = 'P.D.+Eye+Forensics%2C+LLC+is+a+forensic+accounting+firm+located+in+Columbus%2C+Ohio.++The+practice+specializes+in+litigation+support%2C+fraud+investigations%2C+business+valuations%2C+marital+relations%2C+damange+%2F+lost+profit+calculations+and+bankruptcy+services.';
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();
};

