var g_u689b102380a98_img = document.getElementById("u689b102380a98_slideshowImg"); var g_u689b102380a98_i = 0; var last_u689b102380a98_i = 0; g_u689b102380a98_img.setAttribute("src",u689b102380a98_images[0]); function u689b102380a98_swap() { while (g_u689b102380a98_i == last_u689b102380a98_i) { if (g_u689b102380a98_random) g_u689b102380a98_i = Math.floor(Math.random() * (u689b102380a98_images.length-1)+.5); else { g_u689b102380a98_i++; if (g_u689b102380a98_i >= u689b102380a98_images.length) g_u689b102380a98_i = 0; } } last_u689b102380a98_i = g_u689b102380a98_i; g_u689b102380a98_img.setAttribute("src",u689b102380a98_images[g_u689b102380a98_i]); setTimeout("u689b102380a98_swap()",g_u689b102380a98_delay); } if (u689b102380a98_images.length > 1) { if (g_u689b102380a98_random) { u689b102380a98_swap() } else { setTimeout("u689b102380a98_swap()",g_u689b102380a98_delay); } }