var g_u689b014838201_img = document.getElementById("u689b014838201_slideshowImg"); var g_u689b014838201_i = 0; var last_u689b014838201_i = 0; g_u689b014838201_img.setAttribute("src",u689b014838201_images[0]); function u689b014838201_swap() { while (g_u689b014838201_i == last_u689b014838201_i) { if (g_u689b014838201_random) g_u689b014838201_i = Math.floor(Math.random() * (u689b014838201_images.length-1)+.5); else { g_u689b014838201_i++; if (g_u689b014838201_i >= u689b014838201_images.length) g_u689b014838201_i = 0; } } last_u689b014838201_i = g_u689b014838201_i; g_u689b014838201_img.setAttribute("src",u689b014838201_images[g_u689b014838201_i]); setTimeout("u689b014838201_swap()",g_u689b014838201_delay); } if (u689b014838201_images.length > 1) { if (g_u689b014838201_random) { u689b014838201_swap() } else { setTimeout("u689b014838201_swap()",g_u689b014838201_delay); } }