var g_u689af8e4670d5_img = document.getElementById("u689af8e4670d5_slideshowImg"); var g_u689af8e4670d5_i = 0; var last_u689af8e4670d5_i = 0; g_u689af8e4670d5_img.setAttribute("src",u689af8e4670d5_images[0]); function u689af8e4670d5_swap() { while (g_u689af8e4670d5_i == last_u689af8e4670d5_i) { if (g_u689af8e4670d5_random) g_u689af8e4670d5_i = Math.floor(Math.random() * (u689af8e4670d5_images.length-1)+.5); else { g_u689af8e4670d5_i++; if (g_u689af8e4670d5_i >= u689af8e4670d5_images.length) g_u689af8e4670d5_i = 0; } } last_u689af8e4670d5_i = g_u689af8e4670d5_i; g_u689af8e4670d5_img.setAttribute("src",u689af8e4670d5_images[g_u689af8e4670d5_i]); setTimeout("u689af8e4670d5_swap()",g_u689af8e4670d5_delay); } if (u689af8e4670d5_images.length > 1) { if (g_u689af8e4670d5_random) { u689af8e4670d5_swap() } else { setTimeout("u689af8e4670d5_swap()",g_u689af8e4670d5_delay); } }