/* [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','9301',jdecode('Inicio'),jdecode(''),'/9301.html','true',[],'',''],
	['PAGE','9373',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''),'/9373.html','true',[],'',''],
	['PAGE','9394',jdecode('Nuestro+equipo'),jdecode(''),'/9394.html','true',[],'',''],
	['PAGE','373',jdecode('Respaldo'),jdecode(''),'/373.html','true',[],'',''],
	['PAGE','8101',jdecode('Maquinaria'),jdecode(''),'/8101.html','true',[],'',''],
	['PAGE','352',jdecode('Servicios'),jdecode(''),'/352.html','true',[],'',''],
	['PAGE','394',jdecode('Contacto'),jdecode(''),'/394.html','true',[],'',''],
	['PAGE','9352',jdecode('Nuestros+Clientes'),jdecode(''),'/9352.html','true',[],'',''],
	['PAGE','18101',jdecode('Blog'),jdecode(''),'/18101.html','true',[],'','']];
var siteelementCount=9;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='DB7A7A';
theSitetree.keyvisualId='1986';
theSitetree.keyvisualName='powerbutton2.jpg';
theSitetree.fontsetId='328';
theSitetree.graphicsetId='386';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var prodDef={
  wl_name: 'grp13-hostin',
  product: 'WSCVWLSSSLYTC2IW'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Stylus',
				paletteFamily: 	'DB7A7A',
				keyvisualId: 	'1986',
				keyvisualName: 	'powerbutton2.jpg',
				fontsetId: 		'328',
				graphicsetId: 	'386',
				contentColor: 	'000066',
				contentBGColor: 'FFFFFF',
				a_color: 		'DB7A7A',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '9301',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-d4efff62d9645c858775d1aefc093d40']={
webappId:    '7060',
documentId:  '8101',
internalId:  'd4efff62d9645c858775d1aefc093d40',
customField: 'language:es;country:ES;'
};
webappMappings['1501']=webappMappings['1501-3005971']={
webappId:    '1501',
documentId:  '9301',
internalId:  '3005971',
customField: '1501'
};
webappMappings['7050']=webappMappings['7050-758']={
webappId:    '7050',
documentId:  '18101',
internalId:  '758',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9301',
internalId:  '',
customField: '20081030-204042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9373',
internalId:  '',
customField: '20080207-170435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9394',
internalId:  '',
customField: '20080207-170547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '373',
internalId:  '',
customField: '20080207-170729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8101',
internalId:  '',
customField: '20071108-225945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '352',
internalId:  '',
customField: '20080207-171752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '394',
internalId:  '',
customField: '20080207-171906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9352',
internalId:  '',
customField: '20080207-173410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18101',
internalId:  '',
customField: '20090123-104805'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN31JC';
var companyName   = 'Corpos+Equipos+y+Servicio%2C+S.A.+de+C.V.';
var htmlTitle	  = 'Lavadoras+y+secadoras+para+Lavanderia+la+tecnolog%C3%ADa+m%C3%A1s+avanzada';
var metaKeywords  = 'LAVANDERIA%2C+LAVADORAS%2C+SECADORAS%2C+LAVADORAS+Y+SECADORAS%2C+OPORTUNIDAD+DE+NEGOCIO%2C+NEGOCIO%2C+OPORTUNIDAD%2C+AMOR%2C+EXITO%2C+FRACASO%2C+ODIO%2C+SUPERACION%2C+AMISTAD%2C+AMIGOS%2C+TINTORERIA%2C+EDREDONES%2C+PLANCHADO%2C+PLANCHADURIA%2C+TRASPASO%2C+TRASPASOS%2C+TRASPASO+NEGOCIO%2C+LAVADORA%2C+SECADORA%2C+DIGITAL+LAUNDRY%2C+DO+IT+CLEAN%2C+CLEAN%2C+LAUNDRY%2C+COIN+LAUNDRY%2C+COINLAUNDRY';
var metaContents  = 'LAVANDERIAS%3A+Dise%C3%B1o%2C+Instalaci%C3%B3n+y+Venta+de+los+mejores+equipos+para+lavander%C3%ADa.';
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();
};

