var g_u692beccd537c2_img = document.getElementById("u692beccd537c2_slideshowImg"); var g_u692beccd537c2_i = 0; var last_u692beccd537c2_i = 0; g_u692beccd537c2_img.setAttribute("src",u692beccd537c2_images[0]); function u692beccd537c2_swap() { while (g_u692beccd537c2_i == last_u692beccd537c2_i) { if (g_u692beccd537c2_random) g_u692beccd537c2_i = Math.floor(Math.random() * (u692beccd537c2_images.length-1)+.5); else { g_u692beccd537c2_i++; if (g_u692beccd537c2_i >= u692beccd537c2_images.length) g_u692beccd537c2_i = 0; } } last_u692beccd537c2_i = g_u692beccd537c2_i; g_u692beccd537c2_img.setAttribute("src",u692beccd537c2_images[g_u692beccd537c2_i]); setTimeout("u692beccd537c2_swap()",g_u692beccd537c2_delay); } if (u692beccd537c2_images.length > 1) { if (g_u692beccd537c2_random) { u692beccd537c2_swap() } else { setTimeout("u692beccd537c2_swap()",g_u692beccd537c2_delay); } }