var g_u689b0f57e0981_img = document.getElementById("u689b0f57e0981_slideshowImg"); var g_u689b0f57e0981_i = 0; var last_u689b0f57e0981_i = 0; g_u689b0f57e0981_img.setAttribute("src",u689b0f57e0981_images[0]); function u689b0f57e0981_swap() { while (g_u689b0f57e0981_i == last_u689b0f57e0981_i) { if (g_u689b0f57e0981_random) g_u689b0f57e0981_i = Math.floor(Math.random() * (u689b0f57e0981_images.length-1)+.5); else { g_u689b0f57e0981_i++; if (g_u689b0f57e0981_i >= u689b0f57e0981_images.length) g_u689b0f57e0981_i = 0; } } last_u689b0f57e0981_i = g_u689b0f57e0981_i; g_u689b0f57e0981_img.setAttribute("src",u689b0f57e0981_images[g_u689b0f57e0981_i]); setTimeout("u689b0f57e0981_swap()",g_u689b0f57e0981_delay); } if (u689b0f57e0981_images.length > 1) { if (g_u689b0f57e0981_random) { u689b0f57e0981_swap() } else { setTimeout("u689b0f57e0981_swap()",g_u689b0f57e0981_delay); } }