var g_u689af9bf0770b_img = document.getElementById("u689af9bf0770b_slideshowImg"); var g_u689af9bf0770b_i = 0; var last_u689af9bf0770b_i = 0; g_u689af9bf0770b_img.setAttribute("src",u689af9bf0770b_images[0]); function u689af9bf0770b_swap() { while (g_u689af9bf0770b_i == last_u689af9bf0770b_i) { if (g_u689af9bf0770b_random) g_u689af9bf0770b_i = Math.floor(Math.random() * (u689af9bf0770b_images.length-1)+.5); else { g_u689af9bf0770b_i++; if (g_u689af9bf0770b_i >= u689af9bf0770b_images.length) g_u689af9bf0770b_i = 0; } } last_u689af9bf0770b_i = g_u689af9bf0770b_i; g_u689af9bf0770b_img.setAttribute("src",u689af9bf0770b_images[g_u689af9bf0770b_i]); setTimeout("u689af9bf0770b_swap()",g_u689af9bf0770b_delay); } if (u689af9bf0770b_images.length > 1) { if (g_u689af9bf0770b_random) { u689af9bf0770b_swap() } else { setTimeout("u689af9bf0770b_swap()",g_u689af9bf0770b_delay); } }