var g_u689b026923b04_img = document.getElementById("u689b026923b04_slideshowImg"); var g_u689b026923b04_i = 0; var last_u689b026923b04_i = 0; g_u689b026923b04_img.setAttribute("src",u689b026923b04_images[0]); function u689b026923b04_swap() { while (g_u689b026923b04_i == last_u689b026923b04_i) { if (g_u689b026923b04_random) g_u689b026923b04_i = Math.floor(Math.random() * (u689b026923b04_images.length-1)+.5); else { g_u689b026923b04_i++; if (g_u689b026923b04_i >= u689b026923b04_images.length) g_u689b026923b04_i = 0; } } last_u689b026923b04_i = g_u689b026923b04_i; g_u689b026923b04_img.setAttribute("src",u689b026923b04_images[g_u689b026923b04_i]); setTimeout("u689b026923b04_swap()",g_u689b026923b04_delay); } if (u689b026923b04_images.length > 1) { if (g_u689b026923b04_random) { u689b026923b04_swap() } else { setTimeout("u689b026923b04_swap()",g_u689b026923b04_delay); } }