/* [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','82701',jdecode('Bienvenido'),jdecode(''),'/82701.html','true',[],'',''],
	['PAGE','4435',jdecode('Presentacion'),jdecode(''),'/4435/index.html','true',[ 
		['PAGE','76801',jdecode('Pol%C3%ADtica'),jdecode(''),'/4435/76801.html','true',[],'',''],
		['PAGE','76822',jdecode('Misi%C3%B3n'),jdecode(''),'/4435/76822.html','true',[],'',''],
		['PAGE','76843',jdecode('Visi%C3%B3n'),jdecode(''),'/4435/76843.html','true',[],'',''],
		['PAGE','76864',jdecode('Valores'),jdecode(''),'/4435/76864.html','true',[],'','']
	],'',''],
	['PAGE','78101',jdecode('Objeto'),jdecode(''),'/78101.html','true',[],'',''],
	['PAGE','10401',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''),'/10401/index.html','true',[ 
		['PAGE','54901',jdecode('Equipo+Directivo'),jdecode(''),'/10401/54901.html','true',[],'',''],
		['PAGE','10428',jdecode('Tecnol%C3%B3gicamente'),jdecode(''),'/10401/10428.html','true',[],'',''],
		['PAGE','54922',jdecode('Nuestro+equipo'),jdecode(''),'/10401/54922.html','true',[],'',''],
		['PAGE','54943',jdecode('D%C3%B3nde+encontrarnos'),jdecode(''),'/10401/54943.html','true',[],'','']
	],'',''],
	['PAGE','10455',jdecode('%C2%BFBiocarburantes%3F'),jdecode(''),'/10455/index.html','true',[ 
		['PAGE','11931',jdecode('La+revoluci%C3%B3n+'),jdecode(''),'/10455/11931.html','true',[],'',''],
		['PAGE','10482',jdecode('Uni%C3%B3n+Europea'),jdecode(''),'/10455/10482.html','true',[],'',''],
		['PAGE','45001',jdecode('Apuesta+de+Espa%C3%B1a++'),jdecode(''),'/10455/45001.html','true',[],'',''],
		['PAGE','13570',jdecode('Espa%C3%B1a+Legislacion'),jdecode(''),'/10455/13570.html','true',[],'',''],
		['PAGE','45901',jdecode('Preguntas+Frecuetes'),jdecode(''),'/10455/45901.html','true',[],'','']
	],'',''],
	['PAGE','15101',jdecode('El+Poligono'),jdecode(''),'/15101.html','true',[],'',''],
	['PAGE','4492',jdecode('Biodiesel'),jdecode(''),'/4492/index.html','true',[ 
		['PAGE','22041',jdecode('La+Planta'),jdecode(''),'/4492/22041.html','true',[],'',''],
		['PAGE','21401',jdecode('Tecnologia'),jdecode(''),'/4492/21401.html','true',[],'',''],
		['PAGE','13301',jdecode('Comercializacion'),jdecode(''),'/4492/13301.html','true',[],'',''],
		['PAGE','54001',jdecode('Producto'),jdecode(''),'/4492/54001.html','true',[],'',''],
		['PAGE','30301',jdecode('%C2%BFQue+es+Biodiesel%3F'),jdecode(''),'/4492/30301.html','true',[],'','']
	],'',''],
	['PAGE','4519',jdecode('Bioetanol'),jdecode(''),'/4519/index.html','true',[ 
		['PAGE','14158',jdecode('Costes'),jdecode(''),'/4519/14158.html','true',[],'',''],
		['PAGE','14389',jdecode('Conceptos'),jdecode(''),'/4519/14389.html','true',[],'',''],
		['PAGE','14416',jdecode('Materia+prima'),jdecode(''),'/4519/14416.html','true',[],'',''],
		['PAGE','14470',jdecode('Proceso'),jdecode(''),'/4519/14470.html','true',[],'','']
	],'',''],
	['PAGE','10509',jdecode('Extractora+Aceite'),jdecode(''),'/10509/index.html','true',[ 
		['PAGE','14497',jdecode('Materia+Prima'),jdecode(''),'/10509/14497.html','true',[],'','']
	],'',''],
	['PAGE','10536',jdecode('Planta+Glicerina'),jdecode(''),'/10536.html','true',[],'',''],
	['PAGE','10563',jdecode('Planta+Piensos'),jdecode(''),'/10563.html','true',[],'',''],
	['PAGE','12501',jdecode('Cogeneracion'),jdecode(''),'/12501/index.html','true',[ 
		['PAGE','42601',jdecode('Prograna+Trabajo'),jdecode(''),'/12501/42601.html','true',[],'',''],
		['PAGE','43101',jdecode('Combustible'),jdecode(''),'/12501/43101.html','true',[],'',''],
		['PAGE','43122',jdecode('Materia+Prima'),jdecode(''),'/12501/43122.html','true',[],'','']
	],'',''],
	['PAGE','10590',jdecode('Bolsa+de+trabajo'),jdecode(''),'/10590.html','true',[],'',''],
	['PAGE','24401',jdecode('Compras'),jdecode(''),'/24401.html','true',[],'',''],
	['PAGE','10617',jdecode('Sede+Social'),jdecode(''),'/10617/index.html','true',[ 
		['PAGE','62601',jdecode('Socios'),jdecode(''),'/10617/62601.html','true',[],'',''],
		['PAGE','81101',jdecode('Zona+Privada'),jdecode(''),'/10617/81101.html','true',[],'','']
	],'',''],
	['PAGE','22601',jdecode('+Enlaces+'),jdecode(''),'/22601.html','true',[],'',''],
	['PAGE','10644',jdecode('Noticias'),jdecode(''),'/10644.html','true',[],'',''],
	['PAGE','24102',jdecode('Libro+de+visitas'),jdecode(''),'/24102/index.html','true',[ 
		['PAGE','24103',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/24102/24103.html','false',[],'','']
	],'','']];
var siteelementCount=47;
theSitetree.topTemplateName='Evident';
theSitetree.paletteFamily='4C7D51';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10433';
theSitetree.graphicsetId='10775';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F9F9D6';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Evident',
				paletteFamily: 	'4C7D51',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10433',
				graphicsetId: 	'10775',
				contentColor: 	'000000',
				contentBGColor: 'F9F9D6',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'4C7C50',
				e_color: 		'1F4D23',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '82701',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-24102aas010ine36e']={
webappId:    '1002',
documentId:  '24102',
internalId:  '24102aas010ine36e',
customField: 'icq=false'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '82701',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4435',
internalId:  '',
customField: '20100227-155453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10644',
internalId:  '',
customField: '20100313-180816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10455',
internalId:  '',
customField: '20100227-161640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11931',
internalId:  '',
customField: '20100227-162636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10482',
internalId:  '',
customField: '20100227-163256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13570',
internalId:  '',
customField: '20100227-163551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10401',
internalId:  '',
customField: '20080920-120315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10428',
internalId:  '',
customField: '20100227-160755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15101',
internalId:  '',
customField: '20100227-163843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4492',
internalId:  '',
customField: '20100227-163954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22041',
internalId:  '',
customField: '20100227-164111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21401',
internalId:  '',
customField: '20100227-164218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13301',
internalId:  '',
customField: '20080923-181159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30301',
internalId:  '',
customField: '20100226-164005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4519',
internalId:  '',
customField: '20070124-114523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14158',
internalId:  '',
customField: '20070124-105807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14389',
internalId:  '',
customField: '20070124-110616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14416',
internalId:  '',
customField: '20070329-110749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14470',
internalId:  '',
customField: '20080923-181346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10509',
internalId:  '',
customField: '20100227-112046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14497',
internalId:  '',
customField: '20100227-110756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10536',
internalId:  '',
customField: '20080923-182456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10563',
internalId:  '',
customField: '20080923-182643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12501',
internalId:  '',
customField: '20100227-110949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10590',
internalId:  '',
customField: '20100227-165504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24401',
internalId:  '',
customField: '20100227-165616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10617',
internalId:  '',
customField: '20080922-151859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22601',
internalId:  '',
customField: '20070316-164725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24102',
internalId:  '',
customField: '20070413-110624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24103',
internalId:  '',
customField: '20070413-110624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42601',
internalId:  '',
customField: '20080227-113407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43101',
internalId:  '',
customField: '20080227-113235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43122',
internalId:  '',
customField: '20080227-112824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45001',
internalId:  '',
customField: '20100227-163436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45901',
internalId:  '',
customField: '20100227-163811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54001',
internalId:  '',
customField: '20100227-164432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54901',
internalId:  '',
customField: '20100227-160426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54922',
internalId:  '',
customField: '20100227-161024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54943',
internalId:  '',
customField: '20100227-161143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62601',
internalId:  '',
customField: '20080614-123656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76801',
internalId:  '',
customField: '20080923-175806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76822',
internalId:  '',
customField: '20080921-112002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76843',
internalId:  '',
customField: '20080921-112216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76864',
internalId:  '',
customField: '20080921-112441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78101',
internalId:  '',
customField: '20100227-160204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81101',
internalId:  '',
customField: '20080922-151614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82701',
internalId:  '',
customField: '20100228-194608'
};
webappMappings['1501']=webappMappings['1501-3272333']={
webappId:    '1501',
documentId:  '82701',
internalId:  '3272333',
customField: '1501'
};
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'Aas010INE36E';
var companyName   = 'BIOCARBURANTES+EUROPA+';
var htmlTitle	  = 'Biocarburantes+Europa';
var metaKeywords  = 'Biocarburantes';
var metaContents  = 'Biocarburantes';
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();
};
