var g_u689b06ea82912_img = document.getElementById("u689b06ea82912_slideshowImg"); var g_u689b06ea82912_i = 0; var last_u689b06ea82912_i = 0; g_u689b06ea82912_img.setAttribute("src",u689b06ea82912_images[0]); function u689b06ea82912_swap() { while (g_u689b06ea82912_i == last_u689b06ea82912_i) { if (g_u689b06ea82912_random) g_u689b06ea82912_i = Math.floor(Math.random() * (u689b06ea82912_images.length-1)+.5); else { g_u689b06ea82912_i++; if (g_u689b06ea82912_i >= u689b06ea82912_images.length) g_u689b06ea82912_i = 0; } } last_u689b06ea82912_i = g_u689b06ea82912_i; g_u689b06ea82912_img.setAttribute("src",u689b06ea82912_images[g_u689b06ea82912_i]); setTimeout("u689b06ea82912_swap()",g_u689b06ea82912_delay); } if (u689b06ea82912_images.length > 1) { if (g_u689b06ea82912_random) { u689b06ea82912_swap() } else { setTimeout("u689b06ea82912_swap()",g_u689b06ea82912_delay); } }