var g_u59d895a168c39_img = document.getElementById("u59d895a168c39_slideshowImg"); var g_u59d895a168c39_i = 0; var last_u59d895a168c39_i = 0; g_u59d895a168c39_img.setAttribute("src",u59d895a168c39_images[0]); function u59d895a168c39_swap() { while (g_u59d895a168c39_i == last_u59d895a168c39_i) { if (g_u59d895a168c39_random) g_u59d895a168c39_i = Math.floor(Math.random() * (u59d895a168c39_images.length-1)+.5); else { g_u59d895a168c39_i++; if (g_u59d895a168c39_i >= u59d895a168c39_images.length) g_u59d895a168c39_i = 0; } } last_u59d895a168c39_i = g_u59d895a168c39_i; g_u59d895a168c39_img.setAttribute("src",u59d895a168c39_images[g_u59d895a168c39_i]); setTimeout("u59d895a168c39_swap()",g_u59d895a168c39_delay); } if (u59d895a168c39_images.length > 1) { if (g_u59d895a168c39_random) { u59d895a168c39_swap() } else { setTimeout("u59d895a168c39_swap()",g_u59d895a168c39_delay); } }