var g_u692bf555954c9_img = document.getElementById("u692bf555954c9_slideshowImg"); var g_u692bf555954c9_i = 0; var last_u692bf555954c9_i = 0; g_u692bf555954c9_img.setAttribute("src",u692bf555954c9_images[0]); function u692bf555954c9_swap() { while (g_u692bf555954c9_i == last_u692bf555954c9_i) { if (g_u692bf555954c9_random) g_u692bf555954c9_i = Math.floor(Math.random() * (u692bf555954c9_images.length-1)+.5); else { g_u692bf555954c9_i++; if (g_u692bf555954c9_i >= u692bf555954c9_images.length) g_u692bf555954c9_i = 0; } } last_u692bf555954c9_i = g_u692bf555954c9_i; g_u692bf555954c9_img.setAttribute("src",u692bf555954c9_images[g_u692bf555954c9_i]); setTimeout("u692bf555954c9_swap()",g_u692bf555954c9_delay); } if (u692bf555954c9_images.length > 1) { if (g_u692bf555954c9_random) { u692bf555954c9_swap() } else { setTimeout("u692bf555954c9_swap()",g_u692bf555954c9_delay); } }