var g_u689b03014ed03_img = document.getElementById("u689b03014ed03_slideshowImg"); var g_u689b03014ed03_i = 0; var last_u689b03014ed03_i = 0; g_u689b03014ed03_img.setAttribute("src",u689b03014ed03_images[0]); function u689b03014ed03_swap() { while (g_u689b03014ed03_i == last_u689b03014ed03_i) { if (g_u689b03014ed03_random) g_u689b03014ed03_i = Math.floor(Math.random() * (u689b03014ed03_images.length-1)+.5); else { g_u689b03014ed03_i++; if (g_u689b03014ed03_i >= u689b03014ed03_images.length) g_u689b03014ed03_i = 0; } } last_u689b03014ed03_i = g_u689b03014ed03_i; g_u689b03014ed03_img.setAttribute("src",u689b03014ed03_images[g_u689b03014ed03_i]); setTimeout("u689b03014ed03_swap()",g_u689b03014ed03_delay); } if (u689b03014ed03_images.length > 1) { if (g_u689b03014ed03_random) { u689b03014ed03_swap() } else { setTimeout("u689b03014ed03_swap()",g_u689b03014ed03_delay); } }