var g_u692cb87b4af1c_img = document.getElementById("u692cb87b4af1c_slideshowImg"); var g_u692cb87b4af1c_i = 0; var last_u692cb87b4af1c_i = 0; g_u692cb87b4af1c_img.setAttribute("src",u692cb87b4af1c_images[0]); function u692cb87b4af1c_swap() { while (g_u692cb87b4af1c_i == last_u692cb87b4af1c_i) { if (g_u692cb87b4af1c_random) g_u692cb87b4af1c_i = Math.floor(Math.random() * (u692cb87b4af1c_images.length-1)+.5); else { g_u692cb87b4af1c_i++; if (g_u692cb87b4af1c_i >= u692cb87b4af1c_images.length) g_u692cb87b4af1c_i = 0; } } last_u692cb87b4af1c_i = g_u692cb87b4af1c_i; g_u692cb87b4af1c_img.setAttribute("src",u692cb87b4af1c_images[g_u692cb87b4af1c_i]); setTimeout("u692cb87b4af1c_swap()",g_u692cb87b4af1c_delay); } if (u692cb87b4af1c_images.length > 1) { if (g_u692cb87b4af1c_random) { u692cb87b4af1c_swap() } else { setTimeout("u692cb87b4af1c_swap()",g_u692cb87b4af1c_delay); } }