var g_u693cf1261c998_img = document.getElementById("u693cf1261c998_slideshowImg"); var g_u693cf1261c998_i = 0; var last_u693cf1261c998_i = 0; g_u693cf1261c998_img.setAttribute("src",u693cf1261c998_images[0]); function u693cf1261c998_swap() { while (g_u693cf1261c998_i == last_u693cf1261c998_i) { if (g_u693cf1261c998_random) g_u693cf1261c998_i = Math.floor(Math.random() * (u693cf1261c998_images.length-1)+.5); else { g_u693cf1261c998_i++; if (g_u693cf1261c998_i >= u693cf1261c998_images.length) g_u693cf1261c998_i = 0; } } last_u693cf1261c998_i = g_u693cf1261c998_i; g_u693cf1261c998_img.setAttribute("src",u693cf1261c998_images[g_u693cf1261c998_i]); setTimeout("u693cf1261c998_swap()",g_u693cf1261c998_delay); } if (u693cf1261c998_images.length > 1) { if (g_u693cf1261c998_random) { u693cf1261c998_swap() } else { setTimeout("u693cf1261c998_swap()",g_u693cf1261c998_delay); } }