var g_u686488faa8567_img = document.getElementById("u686488faa8567_slideshowImg"); var g_u686488faa8567_i = 0; var last_u686488faa8567_i = 0; g_u686488faa8567_img.setAttribute("src",u686488faa8567_images[0]); function u686488faa8567_swap() { while (g_u686488faa8567_i == last_u686488faa8567_i) { if (g_u686488faa8567_random) g_u686488faa8567_i = Math.floor(Math.random() * (u686488faa8567_images.length-1)+.5); else { g_u686488faa8567_i++; if (g_u686488faa8567_i >= u686488faa8567_images.length) g_u686488faa8567_i = 0; } } last_u686488faa8567_i = g_u686488faa8567_i; g_u686488faa8567_img.setAttribute("src",u686488faa8567_images[g_u686488faa8567_i]); setTimeout("u686488faa8567_swap()",g_u686488faa8567_delay); } if (u686488faa8567_images.length > 1) { if (g_u686488faa8567_random) { u686488faa8567_swap() } else { setTimeout("u686488faa8567_swap()",g_u686488faa8567_delay); } }