function slideshow(c) { var a = document.getelementbyid("slidecontainer"), f = document.getelementbyid("slidesimgs").getelementsbytagname("li"), h = document.getelementbyid("slidebar"), n = h.getelementsbytagname("li"), d = f.length, c = c || 3000, e = lasti = 0, j, m; function b() { m = setinterval(function () { e = e + 1 >= d ? e + 1 - d : e + 1; g() }, c) } function k() { clearinterval(m) } function g() { f[lasti].style.display = "none"; n[lasti].classname = ""; f[e].style.display = "block"; n[e].classname = "on"; lasti = e } f[e].style.display = "block"; a.onmouseover = k; a.onmouseout = b; h.onmouseover = function (i) { j = i ? i.target : window.event.srcelement; if (j.nodename === "li") { e = parseint(j.innerhtml, 10) - 1; g() } }; b() } ;