var g_u689b02af7a234_img = document.getElementById("u689b02af7a234_slideshowImg"); var g_u689b02af7a234_i = 0; var last_u689b02af7a234_i = 0; g_u689b02af7a234_img.setAttribute("src",u689b02af7a234_images[0]); function u689b02af7a234_swap() { while (g_u689b02af7a234_i == last_u689b02af7a234_i) { if (g_u689b02af7a234_random) g_u689b02af7a234_i = Math.floor(Math.random() * (u689b02af7a234_images.length-1)+.5); else { g_u689b02af7a234_i++; if (g_u689b02af7a234_i >= u689b02af7a234_images.length) g_u689b02af7a234_i = 0; } } last_u689b02af7a234_i = g_u689b02af7a234_i; g_u689b02af7a234_img.setAttribute("src",u689b02af7a234_images[g_u689b02af7a234_i]); setTimeout("u689b02af7a234_swap()",g_u689b02af7a234_delay); } if (u689b02af7a234_images.length > 1) { if (g_u689b02af7a234_random) { u689b02af7a234_swap() } else { setTimeout("u689b02af7a234_swap()",g_u689b02af7a234_delay); } }