var g_u689b03445f5c0_img = document.getElementById("u689b03445f5c0_slideshowImg"); var g_u689b03445f5c0_i = 0; var last_u689b03445f5c0_i = 0; g_u689b03445f5c0_img.setAttribute("src",u689b03445f5c0_images[0]); function u689b03445f5c0_swap() { while (g_u689b03445f5c0_i == last_u689b03445f5c0_i) { if (g_u689b03445f5c0_random) g_u689b03445f5c0_i = Math.floor(Math.random() * (u689b03445f5c0_images.length-1)+.5); else { g_u689b03445f5c0_i++; if (g_u689b03445f5c0_i >= u689b03445f5c0_images.length) g_u689b03445f5c0_i = 0; } } last_u689b03445f5c0_i = g_u689b03445f5c0_i; g_u689b03445f5c0_img.setAttribute("src",u689b03445f5c0_images[g_u689b03445f5c0_i]); setTimeout("u689b03445f5c0_swap()",g_u689b03445f5c0_delay); } if (u689b03445f5c0_images.length > 1) { if (g_u689b03445f5c0_random) { u689b03445f5c0_swap() } else { setTimeout("u689b03445f5c0_swap()",g_u689b03445f5c0_delay); } }