var g_u681e00928f083_img = document.getElementById("u681e00928f083_slideshowImg"); var g_u681e00928f083_i = 0; var last_u681e00928f083_i = 0; g_u681e00928f083_img.setAttribute("src",u681e00928f083_images[0]); function u681e00928f083_swap() { while (g_u681e00928f083_i == last_u681e00928f083_i) { if (g_u681e00928f083_random) g_u681e00928f083_i = Math.floor(Math.random() * (u681e00928f083_images.length-1)+.5); else { g_u681e00928f083_i++; if (g_u681e00928f083_i >= u681e00928f083_images.length) g_u681e00928f083_i = 0; } } last_u681e00928f083_i = g_u681e00928f083_i; g_u681e00928f083_img.setAttribute("src",u681e00928f083_images[g_u681e00928f083_i]); setTimeout("u681e00928f083_swap()",g_u681e00928f083_delay); } if (u681e00928f083_images.length > 1) { if (g_u681e00928f083_random) { u681e00928f083_swap() } else { setTimeout("u681e00928f083_swap()",g_u681e00928f083_delay); } }