/* [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','4556',jdecode('Home'),jdecode(''),'/4556.html','true',[],'',''],
	['PAGE','5701',jdecode('English'),jdecode(''),'/5701/index.html','true',[ 
		['PAGE','6201',jdecode('Tax+Services'),jdecode(''),'/5701/6201.html','true',[],'',''],
		['PAGE','20463',jdecode('Payroll'),jdecode(''),'/5701/20463.html','true',[],'',''],
		['PAGE','6228',jdecode('Custom+and+Duties'),jdecode(''),'/5701/6228.html','true',[],'',''],
		['PAGE','6255',jdecode('Audit+Services'),jdecode(''),'/5701/6255.html','true',[],'',''],
		['PAGE','6282',jdecode('Accounting+Services'),jdecode(''),'/5701/6282.html','true',[],'',''],
		['PAGE','6309',jdecode('Law+Firm+Services'),jdecode(''),'/5701/6309.html','true',[],'',''],
		['PAGE','20281',jdecode('Tax+Reforms+2008'),jdecode(''),'/5701/20281.html','true',[],'',''],
		['PAGE','6661',jdecode('Contact+us'),jdecode(''),'/5701/6661.html','true',[],'','']
	],'',''],
	['PAGE','4613',jdecode('Impuestos'),jdecode(''),'/4613/index.html','true',[ 
		['PAGE','21070',jdecode('Reformas+Fiscales+2010'),jdecode(''),'/4613/21070.html','true',[],'',''],
		['PAGE','20695',jdecode('Est%C3%ADmulos+Fiscales+IETU'),jdecode(''),'/4613/20695.html','true',[],'',''],
		['PAGE','20290',jdecode('Reformas+Fiscales+2008'),jdecode(''),'/4613/20290.html','true',[],'',''],
		['PAGE','20180',jdecode('Iniciativa+Reformas+2008'),jdecode(''),'/4613/20180.html','true',[],'',''],
		['PAGE','15366',jdecode('Reformas+Fiscales+2007'),jdecode(''),'/4613/15366.html','true',[],'',''],
		['PAGE','14244',jdecode('Compensaci%C3%B3n+Universal'),jdecode(''),'/4613/14244.html','true',[],'',''],
		['PAGE','14516',jdecode('Facturas+Digitales'),jdecode(''),'/4613/14516.html','true',[],'','']
	],'',''],
	['PAGE','21079',jdecode('Crear+p%C3%A1gina'),jdecode(''),'/21079.html','true',[],'',''],
	['PAGE','4640',jdecode('Auditor%C3%ADa'),jdecode(''),'/4640.html','true',[],'',''],
	['PAGE','4667',jdecode('Contabilidad'),jdecode(''),'/4667.html','true',[],'',''],
	['PAGE','20775',jdecode('Maquila+de+N%C3%B3mina'),jdecode(''),'/20775.html','true',[],'',''],
	['PAGE','4721',jdecode('Comercio+Exterior'),jdecode(''),'/4721.html','true',[],'',''],
	['PAGE','4694',jdecode('Legal'),jdecode(''),'/4694.html','true',[],'',''],
	['PAGE','5154',jdecode('Capacitaci%C3%B3n'),jdecode(''),'/5154.html','true',[],'',''],
	['PAGE','4748',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''),'/4748.html','true',[],'',''],
	['PAGE','4802',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/4802.html','true',[],'',''],
	['PAGE','5192',jdecode('Libro+de+visitas'),jdecode(''),'/5192/index.html','true',[ 
		['PAGE','5193',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/5192/5193.html','false',[],'','']
	],'','']];
var siteelementCount=29;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='AC2323';
theSitetree.keyvisualId='1762';
theSitetree.keyvisualName='telekommunikation.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='356';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='AC2323';
var localeDef={
  language: 'es',
  country: 'ES'
};
var prodDef={
  wl_name: 'grp13-hostin',
  product: 'WSCSYSSSSLY0XJEZ'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'AC2323',
				keyvisualId: 	'1762',
				keyvisualName: 	'telekommunikation.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'356',
				contentColor: 	'FFFFFF',
				contentBGColor: 'AC2323',
				a_color: 		'AC2323',
				b_color: 		'480F0F',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4556',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-59044']={
webappId:    '1501',
documentId:  '4556',
internalId:  '59044',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6201',
internalId:  '',
customField: '20071103-134536'
};
webappMappings['1002']=webappMappings['1002-5192AVEC10INXX0Y']={
webappId:    '1002',
documentId:  '5192',
internalId:  '5192AVEC10INXX0Y',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4556',
internalId:  '',
customField: '20101102-004801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5701',
internalId:  '',
customField: '20071103-144628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20463',
internalId:  '',
customField: '20071103-135926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6228',
internalId:  '',
customField: '20071103-140435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6255',
internalId:  '',
customField: '20071103-140254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6282',
internalId:  '',
customField: '20071103-135324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6309',
internalId:  '',
customField: '20071103-135409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20281',
internalId:  '',
customField: '20071103-134217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6661',
internalId:  '',
customField: '20071217-011126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4613',
internalId:  '',
customField: '20101102-000527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21070',
internalId:  '',
customField: '20100116-124636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20695',
internalId:  '',
customField: '20071212-012236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20290',
internalId:  '',
customField: '20071103-131331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20180',
internalId:  '',
customField: '20070903-103059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15366',
internalId:  '',
customField: '20070113-191327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14244',
internalId:  '',
customField: '20040808-232516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14516',
internalId:  '',
customField: '20101102-001314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21079',
internalId:  '',
customField: '20080110-131639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4640',
internalId:  '',
customField: '20071212-004638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4667',
internalId:  '',
customField: '20071212-004734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20775',
internalId:  '',
customField: '20071212-004845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4721',
internalId:  '',
customField: '20071212-005005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4694',
internalId:  '',
customField: '20071212-005040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5154',
internalId:  '',
customField: '20071212-005125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4748',
internalId:  '',
customField: '20071212-005440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4802',
internalId:  '',
customField: '20071217-010945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5192',
internalId:  '',
customField: '20040722-000348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5193',
internalId:  '',
customField: '20040722-000348'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INXX0Y';
var companyName   = 'Tax+and+Administrative+Services';
var htmlTitle	  = 'Despacho+de+Contadores+expertos+en+impuestos%2C+factura+electr%C3%B3nica%2C+servicios+de+Outsourcing%2C+Auditor%C3%ADa%2C+Comercio+Exterior%2C+Legal+Fiscal%2C+Sitemas%2C+Adminsitraci%C3%B3n+de+empresas......Reformas+Fiscales.....Factura+Electr%C3%B3nica....Firma+Electr%C3%B3nica.....Compensaci';
var metaKeywords  = 'Facturacion+electrponica%2C+Estados+financieros%2C+contabilidad%2C+impuestos%2C+fiscal%2C+legislaci%C3%B3n%2C+Ley+aduanera%2C+Comercio+exterior%2C+tablas+de+impuestos%2C+Outsourcing%2C+registros+contables%2C+administraci%C3%B3n+de+empresas%2C+declaraciones+de+impuestos%2C+capacitac%C3%AD%C3%B3n%2C+cursos+a+empresas%2C+Tax%2C+Mexican+tax+legislation%2C+Accountant%2C+Despacho+de+Contadores%2C+fiscalistas%2C+dictamen+fiscal%2C+fusiones%2C+escisiones%2C+asesores+de+negocios%2C+International+tax%2C+auditor%C3%ADa+externa%2C+interna%2C+control+interno%2C+INPC%2C+tasas%2C+resoluci%C3%B3n+miscel%C3%A1nea%2C+criterios+SAT%2C+';
var metaContents  = 'Servicios+profesionales+de+asesor%C3%ADa+de+negocios%2C+Contadores+expertos+en+Impuestos+y+toda+la+legislaci%C3%B3n+mexicana%2C+facturacion+electr%C3%B3nica%2C+servicios+de+Outsourcing%2C+creaci%C3%B3n+de+empresas%2C+estados+financieros%2C+admininistraci%C3%B3n+de+negocios%2C+auditor%C3%ADas%2C+Comercio+exterior%2C+legal+fiscal%2C+desarrollo+de+sistemas%2C+impuestos+internacionalles%2C+aplicaci%C3%B3n+de+tratados+internacionales+de+impuestos+para+evitar+la+doble+tributaci%C3%B3n.';
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();
};

