var g_u689b059a7425b_img = document.getElementById("u689b059a7425b_slideshowImg"); var g_u689b059a7425b_i = 0; var last_u689b059a7425b_i = 0; g_u689b059a7425b_img.setAttribute("src",u689b059a7425b_images[0]); function u689b059a7425b_swap() { while (g_u689b059a7425b_i == last_u689b059a7425b_i) { if (g_u689b059a7425b_random) g_u689b059a7425b_i = Math.floor(Math.random() * (u689b059a7425b_images.length-1)+.5); else { g_u689b059a7425b_i++; if (g_u689b059a7425b_i >= u689b059a7425b_images.length) g_u689b059a7425b_i = 0; } } last_u689b059a7425b_i = g_u689b059a7425b_i; g_u689b059a7425b_img.setAttribute("src",u689b059a7425b_images[g_u689b059a7425b_i]); setTimeout("u689b059a7425b_swap()",g_u689b059a7425b_delay); } if (u689b059a7425b_images.length > 1) { if (g_u689b059a7425b_random) { u689b059a7425b_swap() } else { setTimeout("u689b059a7425b_swap()",g_u689b059a7425b_delay); } }