var g_u692bf50482d26_img = document.getElementById("u692bf50482d26_slideshowImg"); var g_u692bf50482d26_i = 0; var last_u692bf50482d26_i = 0; g_u692bf50482d26_img.setAttribute("src",u692bf50482d26_images[0]); function u692bf50482d26_swap() { while (g_u692bf50482d26_i == last_u692bf50482d26_i) { if (g_u692bf50482d26_random) g_u692bf50482d26_i = Math.floor(Math.random() * (u692bf50482d26_images.length-1)+.5); else { g_u692bf50482d26_i++; if (g_u692bf50482d26_i >= u692bf50482d26_images.length) g_u692bf50482d26_i = 0; } } last_u692bf50482d26_i = g_u692bf50482d26_i; g_u692bf50482d26_img.setAttribute("src",u692bf50482d26_images[g_u692bf50482d26_i]); setTimeout("u692bf50482d26_swap()",g_u692bf50482d26_delay); } if (u692bf50482d26_images.length > 1) { if (g_u692bf50482d26_random) { u692bf50482d26_swap() } else { setTimeout("u692bf50482d26_swap()",g_u692bf50482d26_delay); } }