var g_u689afdf03a758_img = document.getElementById("u689afdf03a758_slideshowImg"); var g_u689afdf03a758_i = 0; var last_u689afdf03a758_i = 0; g_u689afdf03a758_img.setAttribute("src",u689afdf03a758_images[0]); function u689afdf03a758_swap() { while (g_u689afdf03a758_i == last_u689afdf03a758_i) { if (g_u689afdf03a758_random) g_u689afdf03a758_i = Math.floor(Math.random() * (u689afdf03a758_images.length-1)+.5); else { g_u689afdf03a758_i++; if (g_u689afdf03a758_i >= u689afdf03a758_images.length) g_u689afdf03a758_i = 0; } } last_u689afdf03a758_i = g_u689afdf03a758_i; g_u689afdf03a758_img.setAttribute("src",u689afdf03a758_images[g_u689afdf03a758_i]); setTimeout("u689afdf03a758_swap()",g_u689afdf03a758_delay); } if (u689afdf03a758_images.length > 1) { if (g_u689afdf03a758_random) { u689afdf03a758_swap() } else { setTimeout("u689afdf03a758_swap()",g_u689afdf03a758_delay); } }