/* [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('INICIO'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','452',jdecode('LAVADO+DE+ALFOMBRA'),jdecode(''),'/452.html','true',[],'',''],
	['PAGE','6143',jdecode('LAVADO+DE+MUEBLES'),jdecode(''),'/6143.html','true',[],'',''],
	['PAGE','6206',jdecode('LAVADO+DE+VESTIDURAS'),jdecode(''),'/6206.html','true',[],'',''],
	['PAGE','6332',jdecode('ESTETICA+AUTOMOTRIZ'),jdecode(''),'/6332.html','true',[],'',''],
	['PAGE','6500',jdecode('PROTECTOR+DE+MANCHAS'),jdecode(''),'/6500.html','true',[],'',''],
	['PAGE','6269',jdecode('PULIDO+DE+PISOS'),jdecode(''),'/6269.html','true',[],'',''],
	['PAGE','6353',jdecode('PAQUETES+DE+LAVADO'),jdecode(''),'/6353/index.html','true',[ 
		['PAGE','6374',jdecode('Standard'),jdecode(''),'/6353/6374.html','true',[],'',''],
		['PAGE','6395',jdecode('Gold'),jdecode(''),'/6353/6395.html','true',[],'',''],
		['PAGE','6416',jdecode('Platinum'),jdecode(''),'/6353/6416.html','true',[],'','']
	],'',''],
	['PAGE','74001',jdecode('C+OT+I+Z+A++++EN++++L+I+N+E+A++'),jdecode(''),'/74001.html','true',[],'',''],
	['PAGE','6437',jdecode('EQUIPOS+venta+%2F+renta+'),jdecode(''),'/6437/index.html','true',[ 
		['PAGE','6458',jdecode('Venta'),jdecode(''),'/6437/6458.html','true',[],'',''],
		['PAGE','6479',jdecode('Renta'),jdecode(''),'/6437/6479.html','true',[],'','']
	],'',''],
	['PAGE','27901',jdecode('P+R+O+M+O+C+I+O+N+E+S'),jdecode(''),'/27901.html','true',[],'',''],
	['PAGE','64501',jdecode('NUESTROS+CLIENTES+'),jdecode(''),'/64501.html','true',[],'',''],
	['PAGE','473',jdecode('CONTACTO'),jdecode(''),'/473.html','true',[],'',''],
	['PAGE','10706',jdecode('LIBRO+DE+VISITAS'),jdecode(''),'/10706.html','true',[],'',''],
	['PAGE','10701',jdecode('LEER+LIBRO+DE+VISITAS'),jdecode(''),'/10701.html','false',[],'',''],
	['PAGE','64522',jdecode('GRUPO+LASER+%28Pisos%2CPersianas%29'),jdecode(''),'/64522.html','true',[],'','']];
var siteelementCount=21;
theSitetree.topTemplateName='Easy';
theSitetree.paletteFamily='003366';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='54';
theSitetree.graphicsetId='57';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Easy',
				paletteFamily: 	'003366',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'54',
				graphicsetId: 	'57',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'003366',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'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-6057']={
webappId:    '7008',
documentId:  '473',
internalId:  '6057',
customField: 'language:es;country:ES;'
};
webappMappings['1002']=webappMappings['1002-10706avec10inv840']={
webappId:    '1002',
documentId:  '10706',
internalId:  '10706avec10inv840',
customField: 'icq=false'
};
webappMappings['1501']=webappMappings['1501-4721375']={
webappId:    '1501',
documentId:  '401',
internalId:  '4721375',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20090901-132316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64501',
internalId:  '',
customField: '20080812-101615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20100512-104346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27901',
internalId:  '',
customField: '20090901-174430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20090901-190353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6143',
internalId:  '',
customField: '20071023-210836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6206',
internalId:  '',
customField: '20071024-134927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6332',
internalId:  '',
customField: '20071024-174124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6500',
internalId:  '',
customField: '20071023-175113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6269',
internalId:  '',
customField: '20071023-165140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6353',
internalId:  '',
customField: '20070918-102826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6374',
internalId:  '',
customField: '20070918-102859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6395',
internalId:  '',
customField: '20070918-102934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6416',
internalId:  '',
customField: '20070918-103006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74001',
internalId:  '',
customField: '20080808-170646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6437',
internalId:  '',
customField: '20071024-132212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6458',
internalId:  '',
customField: '20080808-165345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6479',
internalId:  '',
customField: '20070918-103531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10706',
internalId:  '',
customField: '20070918-103812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20070918-103848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64522',
internalId:  '',
customField: '20071127-190337'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INV840';
var companyName   = 'VIVA+SIN+ACAROS';
var htmlTitle	  = 'LASER+CLEAN+%28LAVADO+DE+ALFOMBRAS+MUBLES+SALAS+Y+PULIDO+DE+PISOS%29';
var metaKeywords  = 'Lavado++Alfombras++Vestiduras++Carrocer%C3%ADas++Manchas++Protectores++Pulidos++Manchas++Maquina+de+lavados++';
var metaContents  = 'Lavado++Alfombras++Vestiduras++Carrocer%C3%ADas++Manchas++Protectores++Pulidos++Manchas++Maquina+de+lavados++';
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();
};
