var g_u689b007603cbe_img = document.getElementById("u689b007603cbe_slideshowImg"); var g_u689b007603cbe_i = 0; var last_u689b007603cbe_i = 0; g_u689b007603cbe_img.setAttribute("src",u689b007603cbe_images[0]); function u689b007603cbe_swap() { while (g_u689b007603cbe_i == last_u689b007603cbe_i) { if (g_u689b007603cbe_random) g_u689b007603cbe_i = Math.floor(Math.random() * (u689b007603cbe_images.length-1)+.5); else { g_u689b007603cbe_i++; if (g_u689b007603cbe_i >= u689b007603cbe_images.length) g_u689b007603cbe_i = 0; } } last_u689b007603cbe_i = g_u689b007603cbe_i; g_u689b007603cbe_img.setAttribute("src",u689b007603cbe_images[g_u689b007603cbe_i]); setTimeout("u689b007603cbe_swap()",g_u689b007603cbe_delay); } if (u689b007603cbe_images.length > 1) { if (g_u689b007603cbe_random) { u689b007603cbe_swap() } else { setTimeout("u689b007603cbe_swap()",g_u689b007603cbe_delay); } }