var pac_sdb_fch__fotos_rutas = new Array();
var pac_sdb_fch__fotos_textos = new Array();
var pe_sdb_fch__indice = 0;
function sdb_fch__est_foto_nav(eDir)
{
sdb_fch__est_foto(sdb_fch__Obt_Nav_Indice(eDir));
}
function sdb_fch__Obt_Nav_Indice(eDir)
{
var eIndice;
eIndice = pe_sdb_fch__indice + eDir;
if (eIndice <  0)
{
eIndice = pac_sdb_fch__fotos_rutas.length - 1;
}
else if (eIndice >= pac_sdb_fch__fotos_rutas.length)
{
eIndice = 0;
}
return eIndice;
}
function sdb_fch__Est_Foto_Principal(cRutaFoto, cTexto)
{
var oHTML_1;
var oHTML_2;
var cHTML;
var eAncho;
if (document.getElementById)
{
oHTML_1 = document.getElementById("sdb__id_fch_fto_ppl_cnt");
if (oHTML_1 != null)
{
cHTML = '<img alt="" id="sdb__id_fch_img_ppl" src="' + cRutaFoto + '"/><p id="sdb__id_fch_img_dsc_2">' + cTexto + '</p>';
oHTML_1.innerHTML = cHTML;
}
{
}
}
return false;
}
function sdb_fch__est_foto(eIndice)
{
sdb_fch__Est_Foto_Principal(pac_sdb_fch__fotos_rutas[eIndice], pac_sdb_fch__fotos_textos[eIndice]);
pe_sdb_fch__indice = eIndice;
}
function sdb_fch__Est_Ancho_Foto_Principal()
{
var oHTML_1;
var oHTML_2;
var eAncho;
var eAnchoAntes;
if (document.getElementById)
{
oHTML_1 = document.getElementById("sdb__id_fch_fto_ppl_cnt");
oHTML_2 = document.getElementById("sdb__id_fch_fto_ppl_img");
eAncho = oHTML_2.width;
eAnchoAntes = eAncho;
if (eAncho == 0)
{
eAncho = oHTML_2.style.width;
}
if (eAncho == 0)
{
oHTML_1.style.width = "100%";
}
else
{
oHTML_1.style.width = eAncho + "px";
}
}
return false;
}
function sdb_fch__Est_Eventos_Enlaces()
{
var aoEnlaces;
var i;
if (document.getElementsByTagName)
{
aoEnlaces = document.getElementsByTagName('A');
for (var i=0; i != aoEnlaces.length; i++)
{
if (aoEnlaces[i].className == '<xsl:value-of select="$kc_sdb_fch__CSS__Enlace_Foto_Galeria" />')
{
if (i == 0)
{
}
}
else
{
aoEnlaces[i].onmouseover = gen_pgu__Est_OnMouseOver_PD;
aoEnlaces[i].onmouseout = gen_pgu__Est_OnMouseOut_PD;
}
}
}
}

