/* [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','4901',jdecode('Inicio'),jdecode(''),'/4901.html','true',[],'',''],
	['PAGE','11622',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/11622.html','true',[],'',''],
	['PAGE','88601',jdecode('Comuniquese+con+nosotros'),jdecode(''),'/88601.html','true',[],'',''],
	['PAGE','11643',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''),'/11643/index.html','true',[ 
		['PAGE','11664',jdecode('Nuestro+equipo'),jdecode(''),'/11643/11664.html','true',[],'',''],
		['PAGE','11685',jdecode('Servicios'),jdecode(''),'/11643/11685.html','true',[],'',''],
		['PAGE','86901',jdecode('Empresas+Afiliadas'),jdecode(''),'/11643/86901.html','true',[],'',''],
		['PAGE','94601',jdecode('Contacto+para+afiliados'),jdecode(''),'/11643/94601.html','true',[],'',''],
		['PAGE','91101',jdecode('Formulario+afiliaci%C3%B3n'),jdecode(''),'/11643/91101.html','true',[],'','']
	],'',''],
	['PAGE','11706',jdecode('Alianzas+Estrat%C3%A9gicas'),jdecode(''),'/11706.html','true',[],'',''],
	['PAGE','89101',jdecode('Paquetes+Turisticos'),jdecode(''),'/89101.html','true',[],'',''],
	['PAGE','19001',jdecode('Rep.Dominicana'),jdecode(''),'/19001.html','true',[],'',''],
	['PAGE','33801',jdecode('CEI-RD'),jdecode(''),'/33801.html','true',[],'',''],
	['PAGE','88701',jdecode('Demandas+y+Ofertas'),jdecode(''),'/88701/index.html','true',[ 
		['PAGE','88722',jdecode('Demandas+productos'),jdecode(''),'/88701/88722.html','true',[],'',''],
		['PAGE','88743',jdecode('Ofertas+de+productos'),jdecode(''),'/88701/88743.html','true',[],'','']
	],'',''],
	['PAGE','91001',jdecode('Eventos+y+Ferias+'),jdecode(''),'/91001.html','true',[],'',''],
	['PAGE','11748',jdecode('Noticias'),jdecode(''),'/11748.html','true',[],'',''],
	['PAGE','118622',jdecode('Editorial'),jdecode(''),'/118622.html','true',[],'',''],
	['PAGE','11901',jdecode('Rep.Colombia'),jdecode(''),'/11901.html','true',[],'',''],
	['PAGE','113901',jdecode('Ferias+en+Colombia'),jdecode(''),'/113901.html','true',[],'',''],
	['PAGE','91601',jdecode('CI.+Edel+Group+Ltda.'),jdecode(''),'/91601.html','true',[],'',''],
	['PAGE','135937',jdecode('PL'),jdecode(''),'/135937.html','false',[],'',''],
	['PAGE','33822',jdecode('IED+Republica+Dominicana'),jdecode(''),'/33822.html','true',[],'',''],
	['PAGE','147959',jdecode('DEPTO+JURIDICO'),jdecode(''),'/147959.html','true',[],'',''],
	['PAGE','33864',jdecode('Enlaces+de+Inter%C3%A9s'),jdecode(''),'/33864.html','true',[],'',''],
	['PAGE','99501',jdecode('Parque+Industrial+San+Jos%C3%A9'),jdecode(''),'/99501.html','false',[],'',''],
	['PAGE','101901',jdecode('Bolsa+Empleos'),jdecode(''),'/101901/index.html','true',[ 
		['PAGE','101922',jdecode('Ofertas'),jdecode(''),'/101901/101922.html','true',[],'',''],
		['PAGE','101943',jdecode('Demandas'),jdecode(''),'/101901/101943.html','true',[],'','']
	],'',''],
	['PAGE','106701',jdecode('Datos+macroecon%C3%B3mocos+R.D.'),jdecode(''),'/106701.html','false',[],'',''],
	['PAGE','118801',jdecode('Editorial'),jdecode(''),'/118801.html','false',[],'',''],
	['PAGE','121137',jdecode('P%C3%A1gina+para+transferencias+imagenes'),jdecode(''),'/121137.html','false',[],'','']];
var siteelementCount=33;
theSitetree.topTemplateName='Rectangle';
theSitetree.paletteFamily='154186';
theSitetree.keyvisualId='2507';
theSitetree.keyvisualName='commerz.jpg';
theSitetree.fontsetId='451';
theSitetree.graphicsetId='505';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='154186';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Rectangle',
				paletteFamily: 	'154186',
				keyvisualId: 	'2507',
				keyvisualName: 	'commerz.jpg',
				fontsetId: 		'451',
				graphicsetId: 	'505',
				contentColor: 	'FFFFFF',
				contentBGColor: '154186',
				a_color: 		'154186',
				b_color: 		'FFFFFF',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4901',
internalId:  '',
customField: '20100830-161806'
};
webappMappings['7008']=webappMappings['7008-11446']={
webappId:    '7008',
documentId:  '94601',
internalId:  '11446',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11622',
internalId:  '',
customField: '20100221-094835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11748',
internalId:  '',
customField: '20100830-162508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11643',
internalId:  '',
customField: '20091128-155424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19001',
internalId:  '',
customField: '20091128-160500'
};
webappMappings['1501']=webappMappings['1501-16022514']={
webappId:    '1501',
documentId:  '4901',
internalId:  '16022514',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11664',
internalId:  '',
customField: '20100524-101641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11685',
internalId:  '',
customField: '20090922-190050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11706',
internalId:  '',
customField: '20090928-125650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11901',
internalId:  '',
customField: '20090920-134311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33801',
internalId:  '',
customField: '20090927-120431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33822',
internalId:  '',
customField: '20100805-162301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88701',
internalId:  '',
customField: '20090924-164041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33864',
internalId:  '',
customField: '20100119-095455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86901',
internalId:  '',
customField: '20100324-090302'
};
webappMappings['7008']=webappMappings['7008-11359']={
webappId:    '7008',
documentId:  '88601',
internalId:  '11359',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88601',
internalId:  '',
customField: '20100322-120038'
};
webappMappings['7008']=webappMappings['7008-11361']={
webappId:    '7008',
documentId:  '88722',
internalId:  '11361',
customField: 'language:es;country:ES;'
};
webappMappings['7008']=webappMappings['7008-11362']={
webappId:    '7008',
documentId:  '88743',
internalId:  '11362',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88722',
internalId:  '',
customField: '20090930-171443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88743',
internalId:  '',
customField: '20100127-170052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89101',
internalId:  '',
customField: '20100628-200122'
};
webappMappings['7008']=webappMappings['7008-11374']={
webappId:    '7008',
documentId:  '91101',
internalId:  '11374',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91101',
internalId:  '',
customField: '20090924-163648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91001',
internalId:  '',
customField: '20100504-204318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91601',
internalId:  '',
customField: '20090924-171804'
};
webappMappings['7008']=webappMappings['7008-11436']={
webappId:    '7008',
documentId:  '89101',
internalId:  '11436',
customField: 'language:es;country:ES;'
};
webappMappings['7008']=webappMappings['7008-11437']={
webappId:    '7008',
documentId:  '91001',
internalId:  '11437',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94601',
internalId:  '',
customField: '20090924-173023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99501',
internalId:  '',
customField: '20090928-204531'
};
webappMappings['7008']=webappMappings['7008-11588']={
webappId:    '7008',
documentId:  '99501',
internalId:  '11588',
customField: 'language:es;country:ES;'
};
webappMappings['7008']=webappMappings['7008-11625']={
webappId:    '7008',
documentId:  '101901',
internalId:  '11625',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101901',
internalId:  '',
customField: '20090930-164822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101922',
internalId:  '',
customField: '20091004-130131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101943',
internalId:  '',
customField: '20091004-121007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106701',
internalId:  '',
customField: '20091005-151203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113901',
internalId:  '',
customField: '20100322-121336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118801',
internalId:  '',
customField: '20091204-143519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118622',
internalId:  '',
customField: '20091204-152158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121137',
internalId:  '',
customField: '20091217-150458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135937',
internalId:  '',
customField: '20100324-092305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147959',
internalId:  '',
customField: '20100728-143809'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INH3Z6';
var companyName   = 'C%C3%A1mara+de+Comercio+Colombo+Dominicana';
var htmlTitle	  = 'CAMARA+DE+COMERCIO+COLOMBO+DOMINICANA';
var metaKeywords  = 'comercio+bilateral%2C+colombia+republica+dominicana%2C+republica+dominicana+colombia%2C+exportaciones+hacia+el+caribe%2C+intercambio+comercial%2C+tratados+de+libre+comercio%2C+acuerdos+comerciales%2C+exportaciones%2C+importaciones%2C+c%C3%A1mara+de+comercio+colombo+dominicana%2C+negocios+con+haiti+';
var metaContents  = 'c%C3%A1mara+de+comercio+colombo+dominicana%2C+comercio+bilateral%2C+colombia+republica+dominicana%2C+republica+dominicana+colombia%2C+exportaciones+hacia+el+caribe%2C+intercambio+comercial%2C+tratados+de+libre+comercio%2C+acuerdos+comerciales%2C+exportaciones%2C+importaciones%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();
};
