var g_u68f17a80a4415_img = document.getElementById("u68f17a80a4415_slideshowImg"); var g_u68f17a80a4415_i = 0; var last_u68f17a80a4415_i = 0; g_u68f17a80a4415_img.setAttribute("src",u68f17a80a4415_images[0]); function u68f17a80a4415_swap() { while (g_u68f17a80a4415_i == last_u68f17a80a4415_i) { if (g_u68f17a80a4415_random) g_u68f17a80a4415_i = Math.floor(Math.random() * (u68f17a80a4415_images.length-1)+.5); else { g_u68f17a80a4415_i++; if (g_u68f17a80a4415_i >= u68f17a80a4415_images.length) g_u68f17a80a4415_i = 0; } } last_u68f17a80a4415_i = g_u68f17a80a4415_i; g_u68f17a80a4415_img.setAttribute("src",u68f17a80a4415_images[g_u68f17a80a4415_i]); setTimeout("u68f17a80a4415_swap()",g_u68f17a80a4415_delay); } if (u68f17a80a4415_images.length > 1) { if (g_u68f17a80a4415_random) { u68f17a80a4415_swap() } else { setTimeout("u68f17a80a4415_swap()",g_u68f17a80a4415_delay); } }