/* [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','401',jdecode('Pagina+Principal'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','9601',jdecode('Quienes+S%C3%B3mos'),jdecode(''),'/9601/index.html','true',[ 
		['PAGE','34901',jdecode('Misi%C3%B3n'),jdecode(''),'/9601/34901.html','true',[],'',''],
		['PAGE','65415',jdecode('Visi%C3%B3n'),jdecode(''),'/9601/65415.html','true',[],'','']
	],'',''],
	['PAGE','15901',jdecode('Sistemas+CONTPAQ+I+++'),jdecode(''),'/15901/index.html','true',[ 
		['PAGE','17522',jdecode('ContPaq+i+Cont+2010'),jdecode(''),'/15901/17522.html','true',[],'',''],
		['PAGE','41522',jdecode('Mejoras+Contpaq+i+2010'),jdecode(''),'/15901/41522.html','true',[],'',''],
		['PAGE','110215',jdecode('CONTPAQ+VS+COI'),jdecode(''),'/15901/110215.html','true',[],'',''],
		['PAGE','17501',jdecode('AdminPaq+2010'),jdecode(''),'/15901/17501.html','true',[],'',''],
		['PAGE','43601',jdecode('Factura+Electr%C3%B3nica'),jdecode(''),'/15901/43601.html','true',[],'',''],
		['PAGE','17543',jdecode('Contpaq+i+Nominas'),jdecode(''),'/15901/17543.html','true',[],'',''],
		['PAGE','15922',jdecode('Contpaq+i+Bancos'),jdecode(''),'/15901/15922.html','true',[],'','']
	],'',''],
	['PAGE','77015',jdecode('Licencias+Educativas'),jdecode(''),'/77015.html','true',[],'',''],
	['PAGE','41564',jdecode('Precios+PAQS'),jdecode(''),'/41564/index.html','true',[ 
		['PAGE','44301',jdecode('Actualizaci%C3%B3n+Competitiva'),jdecode(''),'/41564/44301.html','true',[],'','']
	],'',''],
	['PAGE','89315',jdecode('Manuales+Contpaq+i'),jdecode(''),'/89315.html','true',[],'',''],
	['PAGE','47001',jdecode('Servicios++'),jdecode(''),'/47001/index.html','true',[ 
		['PAGE','51001',jdecode('Soporte+t%C3%A9cnico'),jdecode(''),'/47001/51001.html','true',[],'',''],
		['PAGE','56415',jdecode('Conversion+de+Bases+d+Datos'),jdecode(''),'/47001/56415.html','true',[],'',''],
		['PAGE','49101',jdecode('Conexiones+remotas'),jdecode(''),'/47001/49101.html','true',[],'',''],
		['PAGE','56436',jdecode('Capacitaci%C3%B3n'),jdecode(''),'/47001/56436.html','true',[],'','']
	],'',''],
	['PAGE','17711',jdecode('Implantaci%C3%B3n++Sistemas'),jdecode(''),'/17711/index.html','true',[ 
		['PAGE','17732',jdecode('Opci%C3%B3n+1'),jdecode(''),'/17711/17732.html','true',[],'',''],
		['PAGE','17753',jdecode('Opci%C3%B3n+2'),jdecode(''),'/17711/17753.html','true',[],'',''],
		['PAGE','17774',jdecode('Opci%C3%B3n+3'),jdecode(''),'/17711/17774.html','true',[],'','']
	],'',''],
	['PAGE','35501',jdecode('Clientes+Satisfechos'),jdecode(''),'/35501/index.html','true',[ 
		['PAGE','91715',jdecode('Casos+de+Exito'),jdecode(''),'/35501/91715.html','true',[],'','']
	],'',''],
	['PAGE','30401',jdecode('Reformas+2008'),jdecode(''),'/30401/index.html','true',[ 
		['PAGE','90815',jdecode('%C2%BFQue+es+el+IETU%3F'),jdecode(''),'/30401/90815.html','true',[],'',''],
		['PAGE','62315',jdecode('Contpaq+i-IETU'),jdecode(''),'/30401/62315.html','true',[],'',''],
		['PAGE','65436',jdecode('M%C3%A1s+sobre+el+I.V.A.'),jdecode(''),'/30401/65436.html','true',[],'',''],
		['PAGE','79436',jdecode('Nomipaq+y+las+reformas'),jdecode(''),'/30401/79436.html','true',[],'','']
	],'',''],
	['PAGE','36101',jdecode('PROMOCION+DEL+MES'),jdecode(''),'/36101/index.html','true',[ 
		['PAGE','140115',jdecode('Contpaq+i+Contab'),jdecode(''),'/36101/140115.html','true',[],'','']
	],'',''],
	['PAGE','30822',jdecode('Eventos+'),jdecode(''),'/30822/index.html','true',[ 
		['PAGE','86315',jdecode('Reformas+2010'),jdecode(''),'/30822/86315.html','true',[],'','']
	],'',''],
	['PAGE','34922',jdecode('Contacto'),jdecode(''),'/34922/index.html','true',[ 
		['PAGE','53601',jdecode('Envienos+un+mail'),jdecode(''),'/34922/53601.html','true',[],'','']
	],'',''],
	['PAGE','82815',jdecode('Carta+del+Director+'),jdecode(''),'/82815.html','true',[],'',''],
	['PAGE','107015',jdecode('%C2%BFC%C3%93MO+COMPRAR%3F'),jdecode(''),'/107015.html','true',[],'',''],
	['PAGE','136515',jdecode('Tienda+online'),jdecode(''),'/136515.html','true',[],'',''],
	['PAGE','143726',jdecode('Solicitar+folleto'),jdecode(''),'/143726.html','true',[],'',''],
	['PAGE','143747',jdecode('Solicite+una+demo'),jdecode(''),'/143747.html','true',[],'','']];
var siteelementCount=43;
theSitetree.topTemplateName='Impulse';
theSitetree.paletteFamily='84AACA';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10652';
theSitetree.graphicsetId='10679';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='84AACA';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Impulse',
				paletteFamily: 	'84AACA',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10652',
				graphicsetId: 	'10679',
				contentColor: 	'FFFFFF',
				contentBGColor: '84AACA',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'517695',
				e_color: 		'4A6C8B',
				f_color: 		'2F6999',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-1723']={
webappId:    '7008',
documentId:  '53601',
internalId:  '1723',
customField: 'language:es;country:ES;'
};
webappMappings['1501']=webappMappings['1501-9470471']={
webappId:    '1501',
documentId:  '401',
internalId:  '9470471',
customField: '1501'
};
webappMappings['4001']=webappMappings['4001-9486643']={
webappId:    '4001',
documentId:  '136515',
internalId:  '9486643',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100427-173014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9601',
internalId:  '',
customField: '20090702-142932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34901',
internalId:  '',
customField: '20080407-183156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65415',
internalId:  '',
customField: '20080407-183311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15901',
internalId:  '',
customField: '20091130-235147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17501',
internalId:  '',
customField: '20071223-215212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43601',
internalId:  '',
customField: '20070530-212625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17522',
internalId:  '',
customField: '20090707-224228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110215',
internalId:  '',
customField: '20080420-185931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41522',
internalId:  '',
customField: '20080608-135357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17543',
internalId:  '',
customField: '20080608-134722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15922',
internalId:  '',
customField: '20080608-134852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77015',
internalId:  '',
customField: '20071112-003905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41564',
internalId:  '',
customField: '20090722-130817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44301',
internalId:  '',
customField: '20070420-182409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89315',
internalId:  '',
customField: '20080306-084523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47001',
internalId:  '',
customField: '20070525-180757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51001',
internalId:  '',
customField: '20080404-200104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56415',
internalId:  '',
customField: '20070525-104707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49101',
internalId:  '',
customField: '20070522-184834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56436',
internalId:  '',
customField: '20070525-113237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17711',
internalId:  '',
customField: '20071005-094007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17732',
internalId:  '',
customField: '20070416-161416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17753',
internalId:  '',
customField: '20070416-151437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17774',
internalId:  '',
customField: '20070416-151744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35501',
internalId:  '',
customField: '20080420-173357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91715',
internalId:  '',
customField: '20080420-173444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30401',
internalId:  '',
customField: '20070525-173039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90815',
internalId:  '',
customField: '20080306-093310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62315',
internalId:  '',
customField: '20080523-124141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65436',
internalId:  '',
customField: '20080420-192424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79436',
internalId:  '',
customField: '20080420-204340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36101',
internalId:  '',
customField: '20070525-095752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140115',
internalId:  '',
customField: '20080807-202027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30822',
internalId:  '',
customField: '20070525-101050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86315',
internalId:  '',
customField: '20080224-201853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34922',
internalId:  '',
customField: '20090722-130924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53601',
internalId:  '',
customField: '20070525-093149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82815',
internalId:  '',
customField: '20080403-084238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107015',
internalId:  '',
customField: '20080420-170820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136515',
internalId:  '',
customField: '20080513-000629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143726',
internalId:  '',
customField: '20090706-185529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143747',
internalId:  '',
customField: '20090706-185405'
};
webappMappings['7008']=webappMappings['7008-9022']={
webappId:    '7008',
documentId:  '143747',
internalId:  '9022',
customField: 'language:es;country:ES;'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN37L8';
var companyName   = 'Contpaq+i%2C+Nomipaq%2C+Adminpaq+Cheqpaq++';
var htmlTitle	  = '+Contpaq+i+cumple+las+disposiciones+fiscales+2010.++A+6+y+12+meses+sin+intereses%2C+Nomipaq%2C+Adminaq%2C+Cheqaq%2C+Contpaq+i+Nominas%2C+Contpaq+i+Bancos%2C+Contpaq+i+Punto+de+Venta';
var metaKeywords  = 'adminpaq++contpaq++nomipaq++cheqpaq++distribuidor+compac++cursos+compac++soporte+tecnico+aspel++soporte+tecnico+compac++actualizacion+contpaq+i+contabilidad%2C+contpaq+i+nominas%2C+contpaq+i+bancos%2C+contpaq+i+punto+de+venta%2C+nomipaq%2C+cheqpaq%2C+adminpaq.+Ofrecemos+todos+los+servicios+para+el+uso+de+los+sistemas+contpaq.';
var metaContents  = 'Distribuidor+contpaq%2C+venta+de+programas+contpaq%2C+cursos+contpaq+i%2C+implementaci%C3%B3n+de+sistemas+contpaq%2C+soporte+t%C3%A9cnico+contpaq+%2C+contpaq+i%2C+actualizacion+contpaq+i%2C++adminpaq%2C+nomipaq%2C+cheqpaq%2C+contpaq+i+nominas%2C+contpaq+i+bancos%2C+contpaq+i+contabilidad+y+contpaq+i+punto+de+venta.';
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();
};
