var g_u698654ce189a9_img = document.getElementById("u698654ce189a9_slideshowImg"); var g_u698654ce189a9_i = 0; var last_u698654ce189a9_i = 0; g_u698654ce189a9_img.setAttribute("src",u698654ce189a9_images[0]); function u698654ce189a9_swap() { while (g_u698654ce189a9_i == last_u698654ce189a9_i) { if (g_u698654ce189a9_random) g_u698654ce189a9_i = Math.floor(Math.random() * (u698654ce189a9_images.length-1)+.5); else { g_u698654ce189a9_i++; if (g_u698654ce189a9_i >= u698654ce189a9_images.length) g_u698654ce189a9_i = 0; } } last_u698654ce189a9_i = g_u698654ce189a9_i; g_u698654ce189a9_img.setAttribute("src",u698654ce189a9_images[g_u698654ce189a9_i]); setTimeout("u698654ce189a9_swap()",g_u698654ce189a9_delay); } if (u698654ce189a9_images.length > 1) { if (g_u698654ce189a9_random) { u698654ce189a9_swap() } else { setTimeout("u698654ce189a9_swap()",g_u698654ce189a9_delay); } }