var g_u689afe36b04f5_img = document.getElementById("u689afe36b04f5_slideshowImg"); var g_u689afe36b04f5_i = 0; var last_u689afe36b04f5_i = 0; g_u689afe36b04f5_img.setAttribute("src",u689afe36b04f5_images[0]); function u689afe36b04f5_swap() { while (g_u689afe36b04f5_i == last_u689afe36b04f5_i) { if (g_u689afe36b04f5_random) g_u689afe36b04f5_i = Math.floor(Math.random() * (u689afe36b04f5_images.length-1)+.5); else { g_u689afe36b04f5_i++; if (g_u689afe36b04f5_i >= u689afe36b04f5_images.length) g_u689afe36b04f5_i = 0; } } last_u689afe36b04f5_i = g_u689afe36b04f5_i; g_u689afe36b04f5_img.setAttribute("src",u689afe36b04f5_images[g_u689afe36b04f5_i]); setTimeout("u689afe36b04f5_swap()",g_u689afe36b04f5_delay); } if (u689afe36b04f5_images.length > 1) { if (g_u689afe36b04f5_random) { u689afe36b04f5_swap() } else { setTimeout("u689afe36b04f5_swap()",g_u689afe36b04f5_delay); } }