/* [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','2101',jdecode('About+Us'),jdecode(''),'/2101/index.html','true',[ 
		['PAGE','2152',jdecode('Customer+Service+Priority'),jdecode(''),'/2101/2152.html','true',[],'']
	],''],
	['PAGE','35301',jdecode('Tax+Services'),jdecode(''),'/35301.html','true',[],''],
	['PAGE','7901',jdecode('Bookkeeping+%26+Payroll'),jdecode(''),'/7901.html','true',[],''],
	['PAGE','8201',jdecode('Notary+%26++Loan+Signing'),jdecode(''),'/8201.html','true',[],''],
	['PAGE','7943',jdecode('LNT+Graphix'),jdecode(''),'/7943.html','true',[],''],
	['PAGE','3801',jdecode('Contact+Us'),jdecode(''),'/3801.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='View';
theSitetree.paletteFamily='FF6000';
theSitetree.keyvisualId='11132';
theSitetree.keyvisualName='kv_11132.jpg';
theSitetree.fontsetId='32028';
theSitetree.graphicsetId='13855';
theSitetree.contentColor='2F2F2F';
theSitetree.contentBGColor='FF6000';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'View',
				paletteFamily: 	'FF6000',
				keyvisualId: 	'11132',
				keyvisualName: 	'kv_11132.jpg',
				fontsetId: 		'32028',
				graphicsetId: 	'13855',
				contentColor: 	'2F2F2F',
				contentBGColor: 'FF6000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				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:  '2101',
internalId:  '',
customField: '20100223-024058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2152',
internalId:  '',
customField: '20100127-181315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8201',
internalId:  '',
customField: '20091231-113527'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '35301',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7943',
internalId:  '',
customField: '20100127-181417'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '2101',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '2152',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35301',
internalId:  '',
customField: '20100223-031157'
};
webappMappings['7008']=webappMappings['7008-24430']={
webappId:    '7008',
documentId:  '7901',
internalId:  '24430',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7901',
internalId:  '',
customField: '20100223-025320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3801',
internalId:  '',
customField: '20100127-183413'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '7901',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '8201',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '7943',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['1501']=webappMappings['1501-17556586']={
webappId:    '1501',
documentId:  '2101',
internalId:  '17556586',
customField: '1501'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '3801',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '3801',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0IN3O0P';
var companyName   = '';
var htmlTitle	  = 'Welcom+to+LNT+Business+Solutions+LLC--Bookkeeping%2CPayroll+Service%2C+Graphic+Designs%2C+Mobile+Notary+Public%2C+Network+Solutions%2C+Serving+the+Bay+Area';
var metaKeywords  = 'Accountancy%2C+Accountant%2C+Bookkeeping%2C+Bookkeeper%2C+bookkeeping+service%2C+quickbook%2C+Payroll%2C+Graphic+Design%2C+Graphic%2C+Magazine%2C+Logo%2C+Package%2C+Tax+preparation%2C+Tax+solution%2C+Mobile+Notary%2C+Loan+Signer%2C+Apostille%2C+Alameda+County%2C+San+Joaquin+County%2C+Newark%2C+Fremont%2C+Hayward%2C+Union+City%2C+Stockton%2C+Tracy%2C+Lodi%2C+Modesto%2C+San+Franciscobookkeeper+bookkeepers+visual+bookkeeper+certified+bookkeeper+bookkeeper+job+description+bookkeeper+duties+small+business+bookkeeper+find+a+bookkeeper+medical+bookkeeper+information+what+is+a+full+charge+bookkeeper+quickbooks+bookkeeper+east+bay+virtual+bookkeeper+bookkeeper+gloucester+ma+canadian+bookkeeper+rates+bookkeeper+hourly+rate+bookkeeper+liabilities+bookkeeper+salaries+business+solutions+american+solutions+for+business+business+process+management+solutions+small+business+solutions+business+edge+solutions+complete+business+solutions+business+software+solutions+internet+business+solutions+online+business+solutions+signature+business+solutions+superior+business+solutions+fabulous+business+solutions+small+business+communication+solutions+solutions+for+a+failing+business+american+business+solutions+business++financial+solutions+business+communication+solutions+business+presentation+solutions+business+solutions+in+birmingham+business+solutions+model+payroll+software+payroll+payroll+calculator+payroll+taxes+payroll+services+american+payroll+association+adecco+payroll+free+payroll+calculator+payroll+tax+calculator+payroll+bowling+green+ky+payroll+deductions+notary+public+do+and+do+nots+on+notary+public+notary+national+notary+association+notary+supplies+notary+stamp+how+to+become+a+notary+sample+notary+forms+notary+public+supplies+mobile+notary+become+a+notary+notary+services+notary+how+to+become+one+notary+seal+notary+updates+and+louisiana+become+a+notary+public+notary+forms+notary+public+stamps+california+notary+public+graphic+designer+famous+graphic+designers+graphic+designer+career+medical+graphic+designers+search+famous+graphic+designers+graphic+designer+job+description+graphic+designer+salaries+graphic+designers+become+a+graphic+designer+names+of+famous+graphic+designers+graphic+designer+resume+graphic+designer+jobs+graphic+designers+portfolio+graphic+designer+resume+samples+graphic+designer+strengths+graphic+designer+career+information+what+is+a+graphic+designer+duties+for+a+graphic+designer+graphic+designer+goals+how+to+write+a+graphic+designer+resume+graphic+designer+salary+world+famous+graphic+designers+graphic+designer+paul+rand+freelance+graphic+designer+graphic+designer+hiring+test+modern+famous+graphic+designers+graphic+designer+business+card+samples+tax+preparation+free+tax+preparation+tax+preparation+software+income+tax+preparation+bowling+green+ky+free+online+tax+preparation+tax+preparation+preparer+bowling+green+ky+incomes+tax+preparation+services+online+tax+preparation+free+state+tax+preparation+how+to+start+your+own+tax+preparation+home+business+income+tax+preparation+tax+preparation+services+tax+preparation+checklist+discount+tax+preparation+coupon+free+income+tax+preparation+tax+preparation+fees+tax+return+preparation+professional+tax+preparation+software+how+to+start+a+tax+preparation+business+free+business+plan+for+tax+return+preparation+free+tax+preparation+software+tax+preparation+worksheet+outsourcing+tax+preparation+tax+preparations+';
var metaContents  = 'LNT+Business+Solutions+LLC--Bookkeeping%2C+Payroll%2C+Tax+Preparation%2C+Notary+Public%2C+Graphic+Design';
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();
};
