var g_u68b229d64af98_img = document.getElementById("u68b229d64af98_slideshowImg"); var g_u68b229d64af98_i = 0; var last_u68b229d64af98_i = 0; g_u68b229d64af98_img.setAttribute("src",u68b229d64af98_images[0]); function u68b229d64af98_swap() { while (g_u68b229d64af98_i == last_u68b229d64af98_i) { if (g_u68b229d64af98_random) g_u68b229d64af98_i = Math.floor(Math.random() * (u68b229d64af98_images.length-1)+.5); else { g_u68b229d64af98_i++; if (g_u68b229d64af98_i >= u68b229d64af98_images.length) g_u68b229d64af98_i = 0; } } last_u68b229d64af98_i = g_u68b229d64af98_i; g_u68b229d64af98_img.setAttribute("src",u68b229d64af98_images[g_u68b229d64af98_i]); setTimeout("u68b229d64af98_swap()",g_u68b229d64af98_delay); } if (u68b229d64af98_images.length > 1) { if (g_u68b229d64af98_random) { u68b229d64af98_swap() } else { setTimeout("u68b229d64af98_swap()",g_u68b229d64af98_delay); } }