var g_u689af84922225_img = document.getElementById("u689af84922225_slideshowImg"); var g_u689af84922225_i = 0; var last_u689af84922225_i = 0; g_u689af84922225_img.setAttribute("src",u689af84922225_images[0]); function u689af84922225_swap() { while (g_u689af84922225_i == last_u689af84922225_i) { if (g_u689af84922225_random) g_u689af84922225_i = Math.floor(Math.random() * (u689af84922225_images.length-1)+.5); else { g_u689af84922225_i++; if (g_u689af84922225_i >= u689af84922225_images.length) g_u689af84922225_i = 0; } } last_u689af84922225_i = g_u689af84922225_i; g_u689af84922225_img.setAttribute("src",u689af84922225_images[g_u689af84922225_i]); setTimeout("u689af84922225_swap()",g_u689af84922225_delay); } if (u689af84922225_images.length > 1) { if (g_u689af84922225_random) { u689af84922225_swap() } else { setTimeout("u689af84922225_swap()",g_u689af84922225_delay); } }