Hace mucho consegui el siguiente codigo.
lo que haces es abrirte una serie de imagenes en un popup, que pasan al presionar sobre siguiente o anterior...
El tema es que no se como hacer para que se abra la ventna, no se si falta un pedazo...
el problema es que no se donde realizarl el hipervinculo para que me abra dicha ventana popup con la lista de imagenes...
el codigo es este:
por favor, lo nesecito de verdad!!!!!
 
 
<script language="javascript">
//Ventana ajustada a foto versión 2 por tunait
var estilos = 'estilos.css' //nombre o ruta de hoja de estilos
var titulo = "Galería de fotos" //título de la ventana popup
afotos=new Array()
afotos[0]="fotos/tibidabo.jpg"
afotos[1]="fotos/gato.jpg"
afotos[2]="fotos/paloma.jpg"
afotos[3]="fotos/alenanene.jpg"
 
 
var ventana
function afoto(cual)
{
if(ventana){ventana.close()}
buscar(cual)
ventana=window. open('','ventana','resize=yes,scrollbars=no,resiza  ble=yes')
ventana.document.writeln ('<html><head><link href="' + estilos + '" rel="stylesheet" type="text/css">')
ventana.document.writeln('<title>' + titulo + '</title></head>')
ventana.document.writeln('<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" style="overflow:hidden"><div align="center"><img id="foto" alt="mi foto" src="' + cual + '" onLoad="opener.redimensionar(this.width, this.height)" onClick="if(opener.cont==opener.afotos.length-1){opener.cont=0}else{opener.cont++};document.getE  lementById(\'foto\').src =opener.afotos[opener.cont];return false" >')
ventana.document.writeln('<br /><a href="#" onClick="if(opener.cont==0){opener.cont=opener.afo  tos.length-1}else{opener.cont--};document.getElementById(\'foto\').src =opener.afotos[opener.cont];return false">anterior</a>')
ventana.document.write('  |  <a href="#" onClick="if(opener.cont==opener.afotos.length-1){opener.cont=0}else{opener.cont++};document.getE  lementById(\'foto\').src =opener.afotos[opener.cont];return false">siguiente</a></div>')
ventana.document.writeln ('</body></html>')
ventana.document.close()
ventana.document.onmousedown=clik
}
var cont
 
function redimensionar(ancho, alto)
{
ventana.resizeTo(ancho+12,alto+78)
ventana.moveTo((screen.width - ancho)/2,(screen.height - (alto+78))/2)
 
}
function buscar(que)
{
for(c=0;c<afotos.length;c++)
{
if(afotos[c]==que)
{cont= c;
return cont
break}
}
}
function cursor(){
if(navigator.appName=="Netscape"){var manita='pointer'}
else{var manita='hand'}
for (m=0;m<document.getElementsByTagName('a').length;m  ++){
document.getElementsByTagName('a')[m].className='verEjemplo'}
}
function clik() {
if (ventana.event.button== 2 ) {
ventana.alert( ' NOP' ); 
}
}
</script> 
  
 
 
 
 
