var g_u689b086e6b154_img = document.getElementById("u689b086e6b154_slideshowImg"); var g_u689b086e6b154_i = 0; var last_u689b086e6b154_i = 0; g_u689b086e6b154_img.setAttribute("src",u689b086e6b154_images[0]); function u689b086e6b154_swap() { while (g_u689b086e6b154_i == last_u689b086e6b154_i) { if (g_u689b086e6b154_random) g_u689b086e6b154_i = Math.floor(Math.random() * (u689b086e6b154_images.length-1)+.5); else { g_u689b086e6b154_i++; if (g_u689b086e6b154_i >= u689b086e6b154_images.length) g_u689b086e6b154_i = 0; } } last_u689b086e6b154_i = g_u689b086e6b154_i; g_u689b086e6b154_img.setAttribute("src",u689b086e6b154_images[g_u689b086e6b154_i]); setTimeout("u689b086e6b154_swap()",g_u689b086e6b154_delay); } if (u689b086e6b154_images.length > 1) { if (g_u689b086e6b154_random) { u689b086e6b154_swap() } else { setTimeout("u689b086e6b154_swap()",g_u689b086e6b154_delay); } }