var g_u689afb4f0599d_img = document.getElementById("u689afb4f0599d_slideshowImg"); var g_u689afb4f0599d_i = 0; var last_u689afb4f0599d_i = 0; g_u689afb4f0599d_img.setAttribute("src",u689afb4f0599d_images[0]); function u689afb4f0599d_swap() { while (g_u689afb4f0599d_i == last_u689afb4f0599d_i) { if (g_u689afb4f0599d_random) g_u689afb4f0599d_i = Math.floor(Math.random() * (u689afb4f0599d_images.length-1)+.5); else { g_u689afb4f0599d_i++; if (g_u689afb4f0599d_i >= u689afb4f0599d_images.length) g_u689afb4f0599d_i = 0; } } last_u689afb4f0599d_i = g_u689afb4f0599d_i; g_u689afb4f0599d_img.setAttribute("src",u689afb4f0599d_images[g_u689afb4f0599d_i]); setTimeout("u689afb4f0599d_swap()",g_u689afb4f0599d_delay); } if (u689afb4f0599d_images.length > 1) { if (g_u689afb4f0599d_random) { u689afb4f0599d_swap() } else { setTimeout("u689afb4f0599d_swap()",g_u689afb4f0599d_delay); } }