var g_u693547fca1717_img = document.getElementById("u693547fca1717_slideshowImg"); var g_u693547fca1717_i = 0; var last_u693547fca1717_i = 0; g_u693547fca1717_img.setAttribute("src",u693547fca1717_images[0]); function u693547fca1717_swap() { while (g_u693547fca1717_i == last_u693547fca1717_i) { if (g_u693547fca1717_random) g_u693547fca1717_i = Math.floor(Math.random() * (u693547fca1717_images.length-1)+.5); else { g_u693547fca1717_i++; if (g_u693547fca1717_i >= u693547fca1717_images.length) g_u693547fca1717_i = 0; } } last_u693547fca1717_i = g_u693547fca1717_i; g_u693547fca1717_img.setAttribute("src",u693547fca1717_images[g_u693547fca1717_i]); setTimeout("u693547fca1717_swap()",g_u693547fca1717_delay); } if (u693547fca1717_images.length > 1) { if (g_u693547fca1717_random) { u693547fca1717_swap() } else { setTimeout("u693547fca1717_swap()",g_u693547fca1717_delay); } }