var g_u689afe68b1429_img = document.getElementById("u689afe68b1429_slideshowImg"); var g_u689afe68b1429_i = 0; var last_u689afe68b1429_i = 0; g_u689afe68b1429_img.setAttribute("src",u689afe68b1429_images[0]); function u689afe68b1429_swap() { while (g_u689afe68b1429_i == last_u689afe68b1429_i) { if (g_u689afe68b1429_random) g_u689afe68b1429_i = Math.floor(Math.random() * (u689afe68b1429_images.length-1)+.5); else { g_u689afe68b1429_i++; if (g_u689afe68b1429_i >= u689afe68b1429_images.length) g_u689afe68b1429_i = 0; } } last_u689afe68b1429_i = g_u689afe68b1429_i; g_u689afe68b1429_img.setAttribute("src",u689afe68b1429_images[g_u689afe68b1429_i]); setTimeout("u689afe68b1429_swap()",g_u689afe68b1429_delay); } if (u689afe68b1429_images.length > 1) { if (g_u689afe68b1429_random) { u689afe68b1429_swap() } else { setTimeout("u689afe68b1429_swap()",g_u689afe68b1429_delay); } }