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]=369; i_files[1]='DSC_108273_w700.jpg'; i_names[1]='***'; i_id[2]=373; i_files[2]='DSC_110220_w700.jpg'; i_names[2]='***'; i_id[3]=371; i_files[3]='DSC_108639_w700.jpg'; i_names[3]='***'; i_id[4]=372; i_files[4]='DSC_109259_w700.jpg'; i_names[4]='***'; i_id[5]=376; i_files[5]='DSC_111919_w700.jpg'; i_names[5]='***'; i_id[6]=370; i_files[6]='DSC_108434_w700.jpg'; i_names[6]='***'; i_id[7]=374; i_files[7]='DSC_110467_w700.jpg'; i_names[7]='***'; var current=7; i_id[8]=379; i_files[8]='DSC_112221_w700.jpg'; i_names[8]='***'; i_id[9]=378; i_files[9]='DSC_112722_w700.jpg'; i_names[9]='***'; 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'; } }