focus() dirc = document.location.toString().split('/') filename1=dirc[dirc.length-1] filename=filename1.toString().split('#') filelen = filename.length if(filelen>1) { filename=filename[filename.length-2] }else{ filename=filename[filename.length-1] } fileno=filename.split('.') filenamearr=new Array("photos.htm","photos1.htm","photos2.htm","photos3.htm","photos4.htm","photos5.htm"); i=0; for(i;i") if(i>0) { document.write("First") document.write("Previous") } if(iNext") document.write("Last") } document.write("")