<!--
// Declaración de variables
var a, b, d, v, aL, aR, aC, vT, vB, h8, w8, s8, wC, h12, s2, hC, px, bg, img, tb, tg, brd
var i, j, texto, iM, bM, iP, bP, iT, bT, css, tipo, fondo, cCss, lnk, cab, aLnk, aNom, bgc
a=' align="', d=document, v=' v'+a, aL=a+'left"', aR=a+'right"', aC=a+'center"'
vT=v+'top"', vB=v+'bottom"', h8=' height="8"', w8=' width="8"', s8=w8 + h8, wC=' width="100%"'
h12=' height="12"', s2=' width="24"'+ h12, b=' background="/img/', hC=' height="100%"'
px='<img src="/img/px.gif" width="1" height="1">', bg=' bgcolor="#FFFFFF"', sC=wC + hC
img='<img src="/img/', tb='<table border="0" cellspacing="0" cellpadding="0"'+ sC +'>'

function rB(texto){	return(bR(texto,'#818181','zonas/bla/',''))}
function rBGP(texto){	return(bR(texto,'#BCBCBC','zonas/regBOL/','#E6E6E6'))}
function rB2(texto,css,tipo,fondo){	return(bRW(texto,css,tipo,fondo))} 
function rBW(texto,css){ return(bRW(texto,css,'prod/','#FFFFFF'))} 
function rBG(texto,css){ return(bRW(texto,css,'zonas/Gris/','#eeeeee'))} 
function rBox2(texto,css){ return(bxRd3(texto,css,'prod/'))}
function rBox2GC(texto,css){ return(bxRd3(texto,'fdGris','zonas/regBOL/'))}
function rBP(tipo,cab,lnk,cCss,texto,css){return(bRP(tipo,cab,lnk,cCss,texto,css))} 
function rBox(texto,css){bxRd(texto,css,'prod/')}
function rBoxGC(texto,css){bxRd(texto,'fdGris','zonas/regBOL/')}

//*****************************************

function bR(texto,brd,tipo,fondo){
iT=img + tipo, bT=b + tipo;
if (brd == "") bgc = '';
else bgc = ' bgcolor="'+ brd +'"';
j ='<table border="0" cellspacing="0" cellpadding="0"'+ wC +'>'
j = j +'<tr><td'+ vT + s8 + bT +'left.gif">'+ iT +'topleft.gif"'+ s8 +'></td>'
j = j +'<td'+ vT + aC + wC +' rowspan="2"' +'><table border="0" cellspacing="0" cellpadding="0"'+ wC + hC +'>'
j = j +'<tr><td height="1"'+ bgc +'><img src="/img/px.gif"></td></tr>'
if (fondo == "") j = j +'<tr><td'+ aC + ' height="14">'+ texto +'</td></tr>';
else j = j +'<tr><td'+ aC +' height="14" bgcolor="'+ fondo +'">'+ texto +'</td></tr>';
j = j +'<tr><td height="1"'+ bgc +'><img src="/img/px.gif"></td></tr></table></td>'
j = j +'<td'+ aR + vT + s8 + bT +'right.gif">'+ iT +'topright.gif"'+ s8 +'></td></tr>'
j = j +'<tr><td'+ vB + h8 + bT +'left.gif">'+ iT +'dwnleft.gif"'+ s8 +'></td><td'+ aR + vB + h8 + bT +'right.gif">'+ iT +'dwnright.gif"'+ s8 +'></td></tr></table>'
return (j);
}

function bRW(texto,css,tipo,fondo){
iT=img + tipo, bT=b + tipo;
if (css=="") css = 'textoMora'
j =tb + '<tr><td'+ aL + vT + s8 +'>'+ iT +'topleft.gif"'+ s8 +'></td>'
j = j +'<td'+ bT +'top.gif"'+ h8 + wC +'>'+ px +'</td>'
j = j +'<td'+ aR + vT + s8 +'>'+ iT +'topright.gif"'+ s8 +'></td></tr>'
j = j +'<tr><td'+ bT +'left.gif">'+ px +'</td>'
j = j +'<td'+ aC +' class='+ css +' bgcolor='+ fondo +'>'+ texto +'</td>'
j = j +'<td'+ bT +'right.gif">'+ px +'</td></tr>'
j = j +'<tr><td'+ aL + vB + h8 +'>'+ iT +'dwnleft.gif"'+ s8 +'></td>'
j = j +'<td'+ bT +'dwn.gif"'+ h8 +'>'+ px +'</td>'
j = j +'<td'+ aR + vB + h8 +'>'+ iT +'dwnright.gif"'+ s8 +'></td></tr></table>'
return(j);
}

function bxRd3(texto,css,tipo){
iT=img + tipo, bT=b + tipo;
if (css=="") css = 'textoMora'
j=tb + '<tr><td'+ aL + vT + s8 +'>'+ iT +'topleft.gif"'+ s8 +'></td>';
j = j +'<td'+ bT +'top.gif"'+ h8 + wC +'>'+ px +'</td>';
j = j +'<td'+ aR + vT + s8 +'>'+ iT +'topright.gif"'+ s8 +'></td></tr>';
j = j +'<tr><td'+ bT +'left.gif">'+ px +'</td>';
j = j +'<td'+ aC +' class='+ css + bg +'>'+ texto +'</td>';	
j = j +'<td'+ bT +'right.gif">'+ px +'</td></tr>';
j = j +'<tr><td'+ aL + vB + h8 +'>'+ iT +'dwnleft.gif"'+ s8 +'></td>';
j = j +'<td'+ bT +'dwn.gif"'+ h8 +'>'+ px +'</td>';
j = j +'<td'+ aR + vB + h8 +'>'+ iT +'dwnright.gif"'+ s8 +'></td></tr></table>';
return (j);
}

function bxRd(texto,css,tipo){
iT=img + tipo, bT=b + tipo;
if (css=="") css = 'textoMora'
d.write(tb + '<tr><td'+ aL + vT + s8 +'>'+ iT +'topleft.gif"'+ s8 +'></td>');
d.write('<td'+ bT +'top.gif"'+ h8 + wC +'>'+ px +'</td>');
d.write('<td'+ aR + vT + s8 +'>'+ iT +'topright.gif"'+ s8 +'></td></tr>');
d.write('<tr><td'+ bT +'left.gif">'+ px +'</td>');
d.write('<td'+ aC +' class='+ css + bg +'>'+ texto +'</td>');
d.write('<td'+ bT +'right.gif">'+ px +'</td></tr>');
d.write('<tr><td'+ aL + vB + h8 +'>'+ iT +'dwnleft.gif"'+ s8 +'></td>');
d.write('<td'+ bT +'dwn.gif"'+ h8 +'>'+ px +'</td>');
d.write('<td'+ aR + vB + h8 +'>'+ iT +'dwnright.gif"'+ s8 +'></td></tr></table>');
}

function bxRd2(tipo,tit,texto,css){
iM=img +'menu/', bM=b +'menu/', bP=b +'prod/', iP=img +'prod/';
d.write(tb + '<tr><td'+ aL + vT +'>'+ iM + tipo +'/topleft.gif"'+ s2 +'></td>');
d.write('<td'+ aC + bM + tipo +'/top.gif"'+ wC + h12 +'>'+ tit +'</td>');
d.write('<td'+ aR + vT +'>' + iM + tipo +'/topright.gif"'+ s2 +'></td>');
d.write('</tr><tr><td colspan="3">');
d.write(tb +'<tr><td'+ w8 + bP +'left.gif">'+ px +'</td>');
d.write('<td'+ vT + bg + wC +' class="'+ css +'">'+ texto +'</td>');
d.write('<td'+ w8 + bP +'right.gif">'+ px +'</td></tr>');
d.write('<tr><td'+ vB + aL + s8 +'>'+ iP +'dwnleft.gif"'+ s8 +'></td>');
d.write('<td'+ bP +'dwn.gif"'+ h8 + wC +'>'+ px +'</td>');
d.write('<td'+ aR + vB + s8 +'>'+ iP +'dwnright.gif"'+ s8 +'></td>');
d.write('</tr></table>');
d.write('</td></tr></table>');
}

function bRP(tipo,cab,lnk,cCss,texto,css){
iM=img +'menu/', bM=b +'menu/', bP=b +'prod/', iP=img +'prod/';
if (tipo == "bw") {tg='target="_blank"'} else {tg=''}
j ='<table border="0" cellspacing="0" cellpadding="0"' + hC +'><tr>'
j = j +'<td'+ aL + vT +' width="24" >'+ iM + tipo +'/topleft.gif"'+ s2 +'></td>'
j = j +'<td'+ aC + bM + tipo +'/top.gif"'+ wC + h12 +'class="'+ cCss +'">'
if (lnk != '') {j = j +'<a class="'+ cCss +'" href="'+ lnk +'"'+ tg +'>'+ cab +'</a>'} else {j = j +cab}
j = j +'</td>'
j = j +'<td'+ aR + vT + ' width="24" >' + iM + tipo +'/topright.gif"'+ s2 +'></td>'
j = j +'</tr><tr><td colspan="3">'
j = j +'<table border="0" cellspacing="0" cellpadding="0"'+ wC + hC +'>'
j = j +'<tr><td'+ w8 + bP +'left.gif">'+ px +'</td>'
j = j +'<td valign="top"'+ bg + wC + hC +' class="'+ css +'">'+ texto +'</td>'
j = j +'<td'+ w8 + bP +'right.gif">'+ px +'</td></tr>'
j = j +'<tr><td'+ vB + aL + s8 +'>'+ iP +'dwnleft.gif"'+ s8 +'></td>'
j = j +'<td'+ bP +'dwn.gif"'+ h8 + wC +'>'+ px +'</td>'
j = j +'<td'+ aR + vB + s8 +'>'+ iP +'dwnright.gif"'+ s8 +'></td>'
j = j +'</tr></table>'
j = j +'</td></tr></table>'
return(j);
}

//*****************************************

function prod(aLnk,aNom){
j ='<table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td width="20"></td><td>'
for (i=0;i<=aLnk.length-2;i++) {j +='<a href="'+ aLnk[i] +'" class="lnkMora">- '+ aNom[i] +'</a><br>'}
j = j +'</td></tr></table>'
return(j);
}
//-->
