var g_u689b01dc37aef_img = document.getElementById("u689b01dc37aef_slideshowImg"); var g_u689b01dc37aef_i = 0; var last_u689b01dc37aef_i = 0; g_u689b01dc37aef_img.setAttribute("src",u689b01dc37aef_images[0]); function u689b01dc37aef_swap() { while (g_u689b01dc37aef_i == last_u689b01dc37aef_i) { if (g_u689b01dc37aef_random) g_u689b01dc37aef_i = Math.floor(Math.random() * (u689b01dc37aef_images.length-1)+.5); else { g_u689b01dc37aef_i++; if (g_u689b01dc37aef_i >= u689b01dc37aef_images.length) g_u689b01dc37aef_i = 0; } } last_u689b01dc37aef_i = g_u689b01dc37aef_i; g_u689b01dc37aef_img.setAttribute("src",u689b01dc37aef_images[g_u689b01dc37aef_i]); setTimeout("u689b01dc37aef_swap()",g_u689b01dc37aef_delay); } if (u689b01dc37aef_images.length > 1) { if (g_u689b01dc37aef_random) { u689b01dc37aef_swap() } else { setTimeout("u689b01dc37aef_swap()",g_u689b01dc37aef_delay); } }