var g_u68665f8c5a787_img = document.getElementById("u68665f8c5a787_slideshowImg"); var g_u68665f8c5a787_i = 0; var last_u68665f8c5a787_i = 0; g_u68665f8c5a787_img.setAttribute("src",u68665f8c5a787_images[0]); function u68665f8c5a787_swap() { while (g_u68665f8c5a787_i == last_u68665f8c5a787_i) { if (g_u68665f8c5a787_random) g_u68665f8c5a787_i = Math.floor(Math.random() * (u68665f8c5a787_images.length-1)+.5); else { g_u68665f8c5a787_i++; if (g_u68665f8c5a787_i >= u68665f8c5a787_images.length) g_u68665f8c5a787_i = 0; } } last_u68665f8c5a787_i = g_u68665f8c5a787_i; g_u68665f8c5a787_img.setAttribute("src",u68665f8c5a787_images[g_u68665f8c5a787_i]); setTimeout("u68665f8c5a787_swap()",g_u68665f8c5a787_delay); } if (u68665f8c5a787_images.length > 1) { if (g_u68665f8c5a787_random) { u68665f8c5a787_swap() } else { setTimeout("u68665f8c5a787_swap()",g_u68665f8c5a787_delay); } }