/* [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','4556',jdecode('HOME'),jdecode(''), jdecode('%2F4556.html'), 'true',[],'',''],
	['PAGE','4613',jdecode('INICIO'),jdecode(''), jdecode('%2F4613.html'), 'true',[],'',''],
	['PAGE','4640',jdecode('FLOTILLA'),jdecode(''), jdecode('%2F4640%2Findex.html'), 'true',[ 
		['PAGE','36558',jdecode('AUTO+SEDAN'),jdecode(''), jdecode('%2F4640%2F36558.html'), 'true',[],'',''],
		['PAGE','36567',jdecode('AUTO+GRANDE'),jdecode(''), jdecode('%2F4640%2F36567.html'), 'true',[],'',''],
		['PAGE','4775',jdecode('VAN+BASE'),jdecode(''), jdecode('%2F4640%2F4775.html'), 'true',[],'',''],
		['PAGE','14703',jdecode('VAN+LUJO'),jdecode(''), jdecode('%2F4640%2F14703.html'), 'true',[],'',''],
		['PAGE','35956',jdecode('VAN+15PAX'),jdecode(''), jdecode('%2F4640%2F35956.html'), 'true',[],'',''],
		['PAGE','36077',jdecode('TOWN+%26+COUNTRY+LIMITED'),jdecode(''), jdecode('%2F4640%2F36077.html'), 'true',[],'',''],
		['PAGE','21003',jdecode('TOWN+%26+COUNTRY+LX'),jdecode(''), jdecode('%2F4640%2F21003.html'), 'true',[],'',''],
		['PAGE','18603',jdecode('WINDSTAR+LIMITED'),jdecode(''), jdecode('%2F4640%2F18603.html'), 'true',[],'',''],
		['PAGE','34828',jdecode('MONTANA+SV6'),jdecode(''), jdecode('%2F4640%2F34828.html'), 'true',[],'',''],
		['PAGE','4802',jdecode('SUBURBAN'),jdecode(''), jdecode('%2F4640%2F4802.html'), 'true',[],'',''],
		['PAGE','18630',jdecode('STARCRAF+VIP'),jdecode(''), jdecode('%2F4640%2F18630.html'), 'true',[],'','']
	],'',''],
	['PAGE','4829',jdecode('PRECIOS'),jdecode(''), jdecode('%2F4829.html'), 'true',[],'',''],
	['PAGE','10703',jdecode('OTROS+ESPECIALES'),jdecode(''), jdecode('%2F10703.html'), 'true',[],'',''],
	['PAGE','10003',jdecode('REQUISITOS'),jdecode(''), jdecode('%2F10003.html'), 'true',[],'',''],
	['PAGE','4856',jdecode('PROMOCIONES'),jdecode(''), jdecode('%2F4856.html'), 'true',[],'',''],
	['PAGE','13303',jdecode('MAPA+Y+DISTANCIAS'),jdecode(''), jdecode('%2F13303%2Findex.html'), 'true',[ 
		['PAGE','15703',jdecode('MAPA+DE+MEXICO'),jdecode(''), jdecode('%2F13303%2F15703.html'), 'true',[],'',''],
		['PAGE','13330',jdecode('TABLA+DE+DISTANCIAS'),jdecode(''), jdecode('%2F13303%2F13330.html'), 'true',[],'','']
	],'',''],
	['PAGE','4883',jdecode('RESERVACIONES'),jdecode(''), jdecode('%2F4883%2Findex.html'), 'true',[ 
		['PAGE','9302',jdecode('CONT%C3%81CTENOS'),jdecode(''), jdecode('%2F4883%2F9302.html'), 'false',[],'','']
	],'',''],
	['PAGE','23902',jdecode('GALERIA+VANS'),jdecode(''), jdecode('%2F23902.html'), 'true',[],'',''],
	['PAGE','28608',jdecode('PAQUETES+%2F++TOURS'),jdecode(''), jdecode('%2F28608%2Findex.html'), 'true',[ 
		['PAGE','32613',jdecode('PAQUETES+VACACIONALES'),jdecode(''), jdecode('%2F28608%2F32613.html'), 'false',[],'',''],
		['PAGE','30708',jdecode('PTO.+VALLARTA%2C+JAL.'),jdecode(''), jdecode('%2F28608%2F30708.html'), 'true',[],'',''],
		['PAGE','30735',jdecode('TECOLUTLA%2C+VER.'),jdecode(''), jdecode('%2F28608%2F30735.html'), 'true',[],'',''],
		['PAGE','35197',jdecode('JALCOMULCO%2C+VER.'),jdecode(''), jdecode('%2F28608%2F35197.html'), 'true',[],'',''],
		['PAGE','35206',jdecode('CD.+MEXICO+Y+TEOTIHUACAN'),jdecode(''), jdecode('%2F28608%2F35206.html'), 'true',[],'',''],
		['PAGE','35215',jdecode('TAXCO%2C+GRO.'),jdecode(''), jdecode('%2F28608%2F35215.html'), 'true',[],'',''],
		['PAGE','35224',jdecode('CHOLULA-PUEBLA'),jdecode(''), jdecode('%2F28608%2F35224.html'), 'true',[],'',''],
		['PAGE','35233',jdecode('CHIAPAS+Y+VILLAHERMOSA'),jdecode(''), jdecode('%2F28608%2F35233.html'), 'false',[],'',''],
		['PAGE','30762',jdecode('ACAPULCO%2C+GRO.'),jdecode(''), jdecode('%2F28608%2F30762.html'), 'true',[],'','']
	],'','']];
var siteelementCount=34;
theSitetree.topTemplateName='Powering';
theSitetree.paletteFamily='A73F07';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10735';
theSitetree.graphicsetId='10569';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='808080';
var localeDef={
  language: 'es',
  country: 'ES'
};
var prodDef={
  wl_name: 'grp13-hostin',
  product: 'WSCSYSSSSLY0XJEZ'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Powering',
				paletteFamily: 	'A73F07',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10735',
				graphicsetId: 	'10569',
				contentColor: 	'FFFFFF',
				contentBGColor: '808080',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4556',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-82032']={
webappId:    '1501',
documentId:  '4556',
internalId:  '82032',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-57dc08512b87ec13fdf818e742660eb4']={
webappId:    '7060',
documentId:  '23902',
internalId:  '57dc08512b87ec13fdf818e742660eb4',
customField: 'language:es;country:ES;'
};
webappMappings['7008']=webappMappings['7008-8101']={
webappId:    '7008',
documentId:  '28608',
internalId:  '8101',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4556',
internalId:  '',
customField: '20110304-181006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4613',
internalId:  '',
customField: '20101202-193322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4640',
internalId:  '',
customField: '20100121-150813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4775',
internalId:  '',
customField: '20090127-224121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14703',
internalId:  '',
customField: '20090127-224439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35956',
internalId:  '',
customField: '20090127-230143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36077',
internalId:  '',
customField: '20090127-230008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21003',
internalId:  '',
customField: '20090127-231158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18603',
internalId:  '',
customField: '20090127-230438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34828',
internalId:  '',
customField: '20090127-230705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4802',
internalId:  '',
customField: '20090127-232503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18630',
internalId:  '',
customField: '20090127-232727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4829',
internalId:  '',
customField: '20101202-193426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10703',
internalId:  '',
customField: '20101202-193603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10003',
internalId:  '',
customField: '20101202-193625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4856',
internalId:  '',
customField: '20101202-193641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13303',
internalId:  '',
customField: '20101202-193712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15703',
internalId:  '',
customField: '20050408-152939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13330',
internalId:  '',
customField: '20051110-175906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4883',
internalId:  '',
customField: '20101202-193922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9302',
internalId:  '',
customField: '20050126-183206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23902',
internalId:  '',
customField: '20101202-193934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28608',
internalId:  '',
customField: '20101202-194038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32613',
internalId:  '',
customField: '20060808-124136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30708',
internalId:  '',
customField: '20090309-124556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30735',
internalId:  '',
customField: '20090310-161045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35197',
internalId:  '',
customField: '20090310-160046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35206',
internalId:  '',
customField: '20090310-160138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35215',
internalId:  '',
customField: '20090310-160345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35224',
internalId:  '',
customField: '20090310-160522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35233',
internalId:  '',
customField: '20070319-173417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30762',
internalId:  '',
customField: '20090310-160611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36558',
internalId:  '',
customField: '20090203-143204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36567',
internalId:  '',
customField: '20090203-143011'
};
webappMappings['7008']=webappMappings['7008-8100']={
webappId:    '7008',
documentId:  '4883',
internalId:  '8100',
customField: 'language:es;country:ES;'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INXXXW';
var companyName   = 'BIENVENIDO+A+DCL+RENT+VANS.';
var htmlTitle	  = 'DCL+RENT%2C+RENTA+DE+CAMIONETAS%2C+MINI+VANS+Y+AUTOS.';
var metaKeywords  = 'DCL+RENT%2C+RENTA+DE+AUTOS%2C+RENTA+DE+CAMIONETAS%2C+RENTA+DE+VANS%2C+ALQUILER+DE+AUTOS+COMPACTOS%2C+EXPRESS+VAN%2C+SERVICIOS+CON+CHOFER+O+SIN+CHOFER%2C+RENTA+DE+CAMIONETAS%2C+ALQUILER+DE+AUTOS%2C+RENT+A+CAR%2C+TOURS%2C+TRASLADOS%2C+EXCURSIONES';
var metaContents  = 'DCL+RENT%2C+RENTA+DE+CAMIONETAS%2C+RENTA+DE+AUTOS%2C+RENTA+DE+VANS+EQUIPADAS+COM+DVD%2C+CD%2C+MP3+Y+ATENAS+DE+T.V.%2C+ALQUILER+DE+AUTOS+COMPACTOS+POR+DIA%2C+SEMANA%2C+MES%2C+EXPRESS+VAN%2C+STRATUS%2C+JETTA%2C+SERVICIOS+CON+CHOFER+O+SIN+CHOFER.+RENTA+DE+CAMIONETAS%2C+ALQUILER+DE+AUTOS%2C+RENT+CAR';
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();
};

