var total_show=10; var shift_size=3; var i_id=new Array(); var i_files=new Array(); var i_names=new Array(); i_id[1]=409; i_files[1]='DSC_118764_w700.jpg'; i_names[1]='***'; i_id[2]=410; i_files[2]='DSC_118782_w700.jpg'; i_names[2]='***'; i_id[3]=481; i_files[3]='DSC_117976_small.jpg'; i_names[3]='***'; i_id[4]=412; i_files[4]='DSC_118725_w700.jpg'; i_names[4]='***'; var current=4; i_id[5]=413; i_files[5]='DSC_118739_w700.jpg'; i_names[5]='***'; i_id[6]=480; i_files[6]='DSC_118513_small.jpg'; i_names[6]='***'; var i; var start=((current-Math.floor(total_show/2))<1)?1:(current-Math.floor(total_show/2)); var end=((start+total_show)1)?(end-total_show):1; } function show_tn(start, end) { var text=''; for (i=start;i'; } tumbs=document.getElementById('thumbs'); tumbs.innerHTML=text; document.getElementById('moveLeft').className=(start>1)?'moveLeftA':'moveLeft'; document.getElementById('moveRight').className=(endi_id.length)?i_id.length:(end+shift_size); start=((end-total_show)<1)?1:(end-total_show); show_tn(start, end); } if (direction=='left') { start=((start-shift_size))<1?1:(start-shift_size); end=((start+total_show)>i_id.length)?i_id.length:(start+total_show); show_tn(start, end); } } show_tn(start, end); function toggleInfo2(id) { $info=document.getElementById('info'+id); if ($info.style.display=='none') { $info.style.display='block'; } else { $info.style.display='none'; } } function toggleInfo(id, trigger) { $info=document.getElementById('info'+id); if (trigger) { $info.style.display='block'; $img=document.getElementById('imgSrc'+id); if ($info.offsetWidth>150) $info.style.width=150+'px'; $info.style.marginLeft=Math.round(($img.width-$info.offsetWidth)/2)+'px'; $info.style.marginTop=($img.height-$info.offsetHeight-10)+'px'; } else { $info.style.display='none'; } }