var g_u697c9768e5a88_img = document.getElementById("u697c9768e5a88_slideshowImg"); var g_u697c9768e5a88_i = 0; var last_u697c9768e5a88_i = 0; g_u697c9768e5a88_img.setAttribute("src",u697c9768e5a88_images[0]); function u697c9768e5a88_swap() { while (g_u697c9768e5a88_i == last_u697c9768e5a88_i) { if (g_u697c9768e5a88_random) g_u697c9768e5a88_i = Math.floor(Math.random() * (u697c9768e5a88_images.length-1)+.5); else { g_u697c9768e5a88_i++; if (g_u697c9768e5a88_i >= u697c9768e5a88_images.length) g_u697c9768e5a88_i = 0; } } last_u697c9768e5a88_i = g_u697c9768e5a88_i; g_u697c9768e5a88_img.setAttribute("src",u697c9768e5a88_images[g_u697c9768e5a88_i]); setTimeout("u697c9768e5a88_swap()",g_u697c9768e5a88_delay); } if (u697c9768e5a88_images.length > 1) { if (g_u697c9768e5a88_random) { u697c9768e5a88_swap() } else { setTimeout("u697c9768e5a88_swap()",g_u697c9768e5a88_delay); } }