var g_u692bf4f3b5d4f_img = document.getElementById("u692bf4f3b5d4f_slideshowImg"); var g_u692bf4f3b5d4f_i = 0; var last_u692bf4f3b5d4f_i = 0; g_u692bf4f3b5d4f_img.setAttribute("src",u692bf4f3b5d4f_images[0]); function u692bf4f3b5d4f_swap() { while (g_u692bf4f3b5d4f_i == last_u692bf4f3b5d4f_i) { if (g_u692bf4f3b5d4f_random) g_u692bf4f3b5d4f_i = Math.floor(Math.random() * (u692bf4f3b5d4f_images.length-1)+.5); else { g_u692bf4f3b5d4f_i++; if (g_u692bf4f3b5d4f_i >= u692bf4f3b5d4f_images.length) g_u692bf4f3b5d4f_i = 0; } } last_u692bf4f3b5d4f_i = g_u692bf4f3b5d4f_i; g_u692bf4f3b5d4f_img.setAttribute("src",u692bf4f3b5d4f_images[g_u692bf4f3b5d4f_i]); setTimeout("u692bf4f3b5d4f_swap()",g_u692bf4f3b5d4f_delay); } if (u692bf4f3b5d4f_images.length > 1) { if (g_u692bf4f3b5d4f_random) { u692bf4f3b5d4f_swap() } else { setTimeout("u692bf4f3b5d4f_swap()",g_u692bf4f3b5d4f_delay); } }