var g_u690c68e89128a_img = document.getElementById("u690c68e89128a_slideshowImg"); var g_u690c68e89128a_i = 0; var last_u690c68e89128a_i = 0; g_u690c68e89128a_img.setAttribute("src",u690c68e89128a_images[0]); function u690c68e89128a_swap() { while (g_u690c68e89128a_i == last_u690c68e89128a_i) { if (g_u690c68e89128a_random) g_u690c68e89128a_i = Math.floor(Math.random() * (u690c68e89128a_images.length-1)+.5); else { g_u690c68e89128a_i++; if (g_u690c68e89128a_i >= u690c68e89128a_images.length) g_u690c68e89128a_i = 0; } } last_u690c68e89128a_i = g_u690c68e89128a_i; g_u690c68e89128a_img.setAttribute("src",u690c68e89128a_images[g_u690c68e89128a_i]); setTimeout("u690c68e89128a_swap()",g_u690c68e89128a_delay); } if (u690c68e89128a_images.length > 1) { if (g_u690c68e89128a_random) { u690c68e89128a_swap() } else { setTimeout("u690c68e89128a_swap()",g_u690c68e89128a_delay); } }