/* [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','1301',jdecode('Inicio'),jdecode(''), jdecode('%2F1301.html'), 'true',[],'',''],
	['PAGE','1394',jdecode('Quienes+Somos'),jdecode(''), jdecode('%2F1394.html'), 'true',[],'',''],
	['PAGE','1352',jdecode('Servicios'),jdecode(''), jdecode('%2F1352.html'), 'true',[],'',''],
	['PAGE','7701',jdecode('Productos'),jdecode(''), jdecode('%2F7701.html'), 'true',[],'',''],
	['PAGE','1373',jdecode('Contactos'),jdecode(''), jdecode('%2F1373.html'), 'true',[],'',''],
	['PAGE','15606',jdecode('Correo+ELectr%C3%B3nico'),jdecode(''), jdecode('%2F15606.html'), 'false',[],'',''],
	['PAGE','16006',jdecode('Solicitud+de+Servicio'),jdecode(''), jdecode('%2F16006.html'), 'true',[],'','']];
var siteelementCount=7;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='AC2323';
theSitetree.keyvisualId='1741';
theSitetree.keyvisualName='ebusiness.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='356';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='AC2323';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'endurance',
  product: 'WSCSYSSSSLY0XRNC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'AC2323',
				keyvisualId: 	'1741',
				keyvisualName: 	'ebusiness.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: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1301',
internalId:  '',
customField: '20111103-085951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1352',
internalId:  '',
customField: '20100825-095847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1373',
internalId:  '',
customField: '20111102-113117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1394',
internalId:  '',
customField: '20100528-101255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15606',
internalId:  '',
customField: '20081124-222741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7701',
internalId:  '',
customField: '20111103-085359'
};
webappMappings['1501']=webappMappings['1501-12521580']={
webappId:    '1501',
documentId:  '1301',
internalId:  '12521580',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16006',
internalId:  '',
customField: '20081125-171018'
};
webappMappings['7008']=webappMappings['7008-10967']={
webappId:    '7008',
documentId:  '16006',
internalId:  '10967',
customField: 'language:en;country:US;'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0INEW2E';
var companyName   = 'R%40M+TECHNOLOGY';
var htmlTitle	  = 'R%40M+Technology%2C+Soluciones+Tecnol%C3%B3gicas+al+Instante.';
var metaKeywords  = 'pc%2Ccomputadoras%2Creparacion%2Creparaci%C3%B3n%2Cpersonal+computer%2Cprinter%2Cscanner%2Cnetwork%2Cred%2Cinalambrica%2Cservicio+a+domicilio%2Climpieza+fisica%2Climpieza+logica%2Cconfiguraci%C3%B3n%2Cconfiguracion%2Cinstalaci%C3%B3n%2Cinstalacion%2Csoftware%2Cservicio%2Csoluciones+tecnologicas%2Creparacion+computadoras%2Cinstalacion+de+redes%2Cconfiguracion%2Cavg%2Cdevicelock%2Cradmin%2Cvirus%2Cspywares%2Ccontrol+remoto%2Csantiago%2Csantiago+de+los+caballeros%2Csanto+domingo%2Crepublica+dominicana%2Cservicio+personalizado%2Credes%2Cavg+internet+security';
var metaContents  = 'R%40M+Technology+C+por+A+es+una+empresa+dedicada+a+ofrecer+a+nuestros+clientes+soluciones+tecnol%C3%B3gicas+al+instante+con+un+equipo+de+profesionales+altamente+calificados+y+con+los+mejores+precios+del+mercado.+Todo+ello%2C+con+el+objetivo+de+optimizar+los+recursos+tecnol%C3%B3gicos+de+su+empresa%2C+a+trav%C3%A9s+de+soluciones+vanguardistas.+Ofrecemos+servicios+de+mantenimiento+preventivo+a+sus+equipos+de+c%C3%B3mputos%2C+computadoras+personales%2C+impresoras%2C+scaners.+Tambi%C3%A9n+instalaci%C3%B3n+de+redes+alambradas+e+inal%C3%A1mbricas+con+t%C3%A9cnicos+calificados%2C+limpieza+f%C3%ADsica+de+computadoras+personales.';
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();
};

