Помогите советом отладить скрипт
<script language="JavaScript">
var sliderwidth=855;
var sliderheight=150;
var slidespeed=4;
<!-- web-mastery.info -->
var leftrightslide=new Array()
var finalslide=''
leftrightslide[0]='<img src="index/16.jpg" border=1>'
leftrightslide[1]='<img src="index/17.jpg" border=1>'
leftrightslide[2]='<img src="index/18.jpg" border=1>'
leftrightslide[3]='<img src="index/19.jpg" border=1>'
leftrightslide[4]='<img src="index/20.jpg" border=1>'
leftrightslide[5]='<img src="index/20.jpg" border=1>'
leftrightslide[6]='<img src="index/20.jpg" border=1>'
leftrightslide[7]='<img src="index/20.jpg" border=1>'
leftrightslide[8]='<img src="index/20.jpg" border=1>'
leftrightslide[9]='<img src="index/20.jpg" border=1>'
var copyspeed=slidespeed
for (i=0;i<leftrightslide.length;i++)
finalslide=finalslide+leftrightslide+" "
if (document.all){
document.write('<marquee id="ieslider" scrollAmount=0 style="width:'+sliderwidth+'">'+finalslide+'</marquee>')
}
function regenerate(){ window.location.reload() }
function regenerate2(){
if (document.layers){
document.ns_slider01.visibility="show"
setTimeout("window.onresize=regenerate",450)
intializeleftrightslide() }
if (document.all)
ieslider.scrollAmount=slidespeed}
function intializeleftrightslide(){
document.ns_slider01.document.ns_slider02. document.write('<nobr>'+finalslide+'</nobr>')
document. ns_slider01.document.ns_slider02.document.close()
thelength=document.ns_slider01. document.ns_slider02.document.width
scrollslide() }
function scrollslide(){
if (document.ns_slider01. document.ns_slider02.left>=thelength*(-1)){
document.ns_slider01. document.ns_slider02.left-=slidespeed
setTimeout("scrollslide()",100)
}else{
document.ns_slider01. document.ns_slider02.left=sliderwidth
scrollslide()}}
window.onload=regenerate2
</script>