var g_u682601f319ca9_img = document.getElementById("u682601f319ca9_slideshowImg"); var g_u682601f319ca9_i = 0; var last_u682601f319ca9_i = 0; g_u682601f319ca9_img.setAttribute("src",u682601f319ca9_images[0]); function u682601f319ca9_swap() { while (g_u682601f319ca9_i == last_u682601f319ca9_i) { if (g_u682601f319ca9_random) g_u682601f319ca9_i = Math.floor(Math.random() * (u682601f319ca9_images.length-1)+.5); else { g_u682601f319ca9_i++; if (g_u682601f319ca9_i >= u682601f319ca9_images.length) g_u682601f319ca9_i = 0; } } last_u682601f319ca9_i = g_u682601f319ca9_i; g_u682601f319ca9_img.setAttribute("src",u682601f319ca9_images[g_u682601f319ca9_i]); setTimeout("u682601f319ca9_swap()",g_u682601f319ca9_delay); } if (u682601f319ca9_images.length > 1) { if (g_u682601f319ca9_random) { u682601f319ca9_swap() } else { setTimeout("u682601f319ca9_swap()",g_u682601f319ca9_delay); } }