var g_u689afa56cf5bf_img = document.getElementById("u689afa56cf5bf_slideshowImg"); var g_u689afa56cf5bf_i = 0; var last_u689afa56cf5bf_i = 0; g_u689afa56cf5bf_img.setAttribute("src",u689afa56cf5bf_images[0]); function u689afa56cf5bf_swap() { while (g_u689afa56cf5bf_i == last_u689afa56cf5bf_i) { if (g_u689afa56cf5bf_random) g_u689afa56cf5bf_i = Math.floor(Math.random() * (u689afa56cf5bf_images.length-1)+.5); else { g_u689afa56cf5bf_i++; if (g_u689afa56cf5bf_i >= u689afa56cf5bf_images.length) g_u689afa56cf5bf_i = 0; } } last_u689afa56cf5bf_i = g_u689afa56cf5bf_i; g_u689afa56cf5bf_img.setAttribute("src",u689afa56cf5bf_images[g_u689afa56cf5bf_i]); setTimeout("u689afa56cf5bf_swap()",g_u689afa56cf5bf_delay); } if (u689afa56cf5bf_images.length > 1) { if (g_u689afa56cf5bf_random) { u689afa56cf5bf_swap() } else { setTimeout("u689afa56cf5bf_swap()",g_u689afa56cf5bf_delay); } }