/* [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','301',jdecode('Home'),jdecode(''),'/301.html','true',[],'',''],
	['PAGE','373',jdecode('Accounting+Services'),jdecode(''),'/373.html','true',[],'',''],
	['PAGE','394',jdecode('Tax+Services'),jdecode(''),'/394.html','true',[],'',''],
	['PAGE','415',jdecode('Financial+Services'),jdecode(''),'/415.html','true',[],'',''],
	['PAGE','755012',jdecode('QuickBooks+Services'),jdecode(''),'/755012.html','true',[],'',''],
	['PAGE','478',jdecode('Important+Links'),jdecode(''),'/478.html','true',[],'',''],
	['PAGE','499',jdecode('About+Us'),jdecode(''),'/499.html','true',[],'',''],
	['PAGE','820667',jdecode('Testimonials'),jdecode(''),'/820667.html','true',[],'',''],
	['PAGE','520',jdecode('Contact+Us'),jdecode(''),'/520.html','true',[],'',''],
	['PAGE','19701',jdecode('Any+Questions%3F'),jdecode(''),'/19701.html','true',[],'',''],
	['PAGE','12901',jdecode('Map'),jdecode(''),'/12901.html','true',[],'',''],
	['PAGE','6301',jdecode('Driving+Direction'),jdecode(''),'/6301.html','true',[],'',''],
	['PAGE','574801',jdecode('Site+Map'),jdecode(''),'/574801.html','true',[],'','']];
var siteelementCount=13;
theSitetree.topTemplateName='Art';
theSitetree.paletteFamily='660000';
theSitetree.keyvisualId='1768';
theSitetree.keyvisualName='abschluss.jpg';
theSitetree.fontsetId='285';
theSitetree.graphicsetId='352';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='660000';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Art',
				paletteFamily: 	'660000',
				keyvisualId: 	'1768',
				keyvisualName: 	'abschluss.jpg',
				fontsetId: 		'285',
				graphicsetId: 	'352',
				contentColor: 	'FFFFFF',
				contentBGColor: '660000',
				a_color: 		'660000',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '12901',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '6301',
internalId:  'routing',
customField: 'en_US'
};
webappMappings['7008']=webappMappings['7008-793']={
webappId:    '7008',
documentId:  '520',
internalId:  '793',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-794']={
webappId:    '7008',
documentId:  '19701',
internalId:  '794',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20100810-160851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '373',
internalId:  '',
customField: '20090604-002504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '394',
internalId:  '',
customField: '20090730-013302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '415',
internalId:  '',
customField: '20090524-200412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '755012',
internalId:  '',
customField: '20090524-200428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '478',
internalId:  '',
customField: '20081211-011843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '499',
internalId:  '',
customField: '20091013-232712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '520',
internalId:  '',
customField: '20100810-161205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '820667',
internalId:  '',
customField: '20100413-151812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19701',
internalId:  '',
customField: '20081211-013633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12901',
internalId:  '',
customField: '20081211-013654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20081211-013720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '574801',
internalId:  '',
customField: '20100330-151345'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INVBPG';
var companyName   = 'Ace+Tax%2C+Inc.++%3A%3A%3A%3A%3A%3A%3A+a+Certified+Public+Accounting+firm+%3A%3A%3A%3A%3A%3A%3A';
var htmlTitle	  = 'Ace+Tax%2C+Inc.+%7C+Pleasanton%2C+CA+%28California%29+%7C+CPA+Firm+%7C+Accounting+Firm+%7C+Accountant+in+Pleasanton%2C+CA+%28California%29+%7C+Bookkeeping%2C+Accounting%2C+Tax+Preparation+Services+%7C+Directory%2C+List%2C+of%2C+All%2C+CPA+Firms%2C+Accounting+Firms%2C+Tax+Preparers%2C';
var metaKeywords  = 'Pleasanton%2C+CA+%28California%29%2C+Dublin%2C+CA+%28California%29%2C+San+Ramon%2C+CA+%28California%29%2C+Danville%2C+CA+%28California%29%2C+Livermore%2C+CA+%28California%29%2C+Alamo%2C+CA+%28California%29%2C+Walnut+Creek%2C+CA+%28California%29%2C+Moraga%2C+CA+%28California%29%2C+Lafayette%2C+CA+%28California%29%2C+Castro+Valley%2C+CA+%28California%29%2C+San+Jose%2C+CA+%28California%29%2C+Oakland%2C+CA+%28California%29%2C+San+Francisco%2C+CA+%28California%29%2C+East+Bay%2C+CA+%28California%29%2C+Bay+Area%2C+CA+%28California%29%2C+Tri-Valley%2C+CA+%28California%29%2C+Tri+Valley%2C+CA+%28California%29%2C+individual+and+business+tax%2C+accounting%2C+bookkeeping%2C+consulting%2C+financial+services%2C+tax+preparation%2C+incorporation+service%2C+LLC+formation%2C+business+formation%2C+tax+strategies%2C+tax+compliance%2C+tax+audit+representation%2C+IRS+tax+audit%2C+tax+services%2C+accounting+services%2C+bookkeeping+services%2C+QuickBooks+support%2C+QuickBooks+setup%2C+QuickBooks+training%2C+certified+QuickBooks+proadvisor%2C+incorporation+services%2C+tax+services%2C+tax+prep%2C+tax+filing+services%2C+e-file+services%2C+corporation+tax+preparation%2C+partnership+tax+preparation%2C+LLC+tax+preparation%2C+non-profit+organization+tax+preparation%2C+CPA%2C+accountant%2C+enrolled+agent%2C+bookkeeper%2C+CPA+firm%2C+accounting+firm%2C+tax+firm%2C+enrolled+agent+firm%2C+bookkeeping+firm%2C+certified+public+accountant%2C+CPA%2C+enrolled+agent%2C+EA%2C+accredited+business+advisor%C2%AE%2C+ABA%2C+QuickBooks+certified+proadvisor%2C+tax+preparation+services%2C+individual+tax+preparation%2C+partnership+tax+preparation%2C+corporation+tax+preparation%2C+LLC+tax+preparation%2C+non-profit+organization+tax+preparation%2C+IRS+tax+audit+representation%2C+franchise+tax+board+FTB+tax+audit+representation%2C+state+board+of+equalization+sales+tax+audit+representation%2C+employment+development+department+EDD+payroll+tax+audit+representation%2C+bookkeeping%2C+compilation%2C+writ-up%2C+part-time+CFO+services%2C+CFO+services%2C+part-time+controller+services%2C+controller+services%2C+financial+advisor%2C+incorporation+services%2C+QuickBooks+training%2C+QuickBooks+support%2C+QuickBooks+setup%2C+accountant%2C+accounting%2C+bookkeeping%2C+bookkeeper%2C+tax+preparer%2C+business+accounting%2C+business+CPA%2C+bookkeeping+help%2C+business+help%2C+free+consultation%2C+CPAs%2C+accountants%2C+CPA+firms%2C+accounting+firms%2C+tax+firms%2C+tax+preparation+firms%2C+bookkeeping+firms%2C+business+accounting+firms%2C+business+tax+firms%2C+business+bookkeeping+firms%2C+business+CPA+firms%2C+business+accountants%2C+all+accounting+firms%2C+all+tax+firms%2C+all+CPA+firms%2C+all+bookkeeping+firms%2C+all+bookkeeping+services%2C+all+tax+preparation+prep+services%2C+all+accountants%2C+list+of+accounting+firms%2C+list+of+tax+firms%2C+list+CPA+firms%2C+list+of+bookkeeping+firms%2C+list+of+bookkeeping+services%2C+list+of+tax+preparation+prep+services%2C+directory%2C+list+of+accountants%2C+list%2C+lists%2C+of%2C+all%2C+accountants%2C+CPAs%2C';
var metaContents  = 'Certified+Public+Accountant+%28CPA%29+tax+accounting+firm+in+Pleasanton%2C+CA+%28California%29+that+provides+individual+and+business+tax%2C+accounting%2C+bookkeeping%2C+consulting%2C+financial+services%2C+tax+preparation%2C+incorporation+service%2C+LLC+formation%2C+business+formation%2C+tax+strategies%2C+tax+compliance%2C+tax+audit+representation%2C+IRS+tax+audit%2C+tax+services%2C+accounting+services%2C+bookkeeping+services%2C+QuickBooks+support%2C+QuickBooks+setup%2C+QuickBooks+training%2C+certified+QuickBooks+proadvisor%2C+incorporation+services%2C+tax+services%2C+tax+prep%2C+tax+filing+services%2C+e-file+services%2C+corporation+tax+preparation%2C+partnership+tax+preparation%2C+LLC+tax+preparation%2C+non-profit+organization+tax+preparation%2C+CPA%2C+accountant%2C+enrolled+agent%2C+bookkeeper%2C+CPA+firm%2C+accounting+firm%2C+tax+firm%2C+enrolled+agent+firm%2C+bookkeeping+firm%2C+certified+public+accountant%2C+CPA%2C+enrolled+agent%2C+EA%2C+accredited+business+advisor%C2%AE%2C+ABA%2C+QuickBooks+certified+proadvisor%2C+tax+preparation+services%2C+individual+tax+preparation%2C+partnership+tax+preparation%2C+corporation+tax+preparation%2C+LLC+tax+preparation%2C+non-profit+organization+tax+preparation%2C+IRS+tax+audit+representation%2C+franchise+tax+board+FTB+tax+audit+representation%2C+state+board+of+equalization+sales+tax+audit+representation%2C+employment+development+department+EDD+payroll+tax+audit+representation%2C+bookkeeping%2C+compilation%2C+writ-up%2C+part-time+CFO+services%2C+CFO+services%2C+part-time+controller+services%2C+controller+services%2C+financial+advisor%2C+incorporation+services%2C+QuickBooks+training%2C+QuickBooks+support%2C+QuickBooks+setup%2C+accountant%2C+accounting%2C+bookkeeping%2C+bookkeeper%2C+tax+preparer%2C+business+accounting%2C+business+CPA%2C+bookkeeping+help%2C+business+help%2C+free+consultation%2C+CPAs%2C+accountants%2C+CPA+firms%2C+accounting+firms%2C+tax+firms%2C+tax+preparation+firms%2C+bookkeeping+firms%2C+business+accounting+firms%2C+business+tax+firms%2C+business+bookkeeping+firms%2C+business+CPA+firms%2C+business+accountants%2C+all+accounting+firms%2C+all+tax+firms%2C+all+CPA+firms%2C+all+bookkeeping+firms%2C+all+bookkeeping+services%2C+all+tax+preparation+prep+services%2C+all+accountants%2C+list+of+accounting+firms%2C+list+of+tax+firms%2C+list+CPA+firms%2C+list+of+bookkeeping+firms%2C+list+of+bookkeeping+services%2C+list+of+tax+preparation+prep+services%2C+directory%2C+list+of+accountants%2C+list%2C+lists%2C+of%2C+all%2C+accountants%2C+CPAs%2C+Pleasanton%2C+CA+%28California%29%2C+Dublin%2C+CA+%28California%29%2C+San+Ramon%2C+CA+%28California%29%2C+Danville%2C+CA+%28California%29%2C+Livermore%2C+CA+%28California%29%2C+Alamo%2C+CA+%28California%29%2C+Walnut+Creek%2C+CA+%28California%29%2C+Moraga%2C+CA+%28California%29%2C+Lafayette%2C+CA+%28California%29%2C+Castro+Valley%2C+CA+%28California%29%2C+San+Jose%2C+CA+%28California%29%2C+Oakland%2C+CA+%28California%29%2C+San+Francisco%2C+CA+%28California%29%2C+East+Bay%2C+CA+%28California%29%2C+Bay+Area%2C+CA+%28California%29%2C+Tri-Valley%2C+CA+%28California%29%2C+Tri+Valley%2C+CA+%28California%29%2C';
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();
};
