var g_u694143bd339fa_img = document.getElementById("u694143bd339fa_slideshowImg"); var g_u694143bd339fa_i = 0; var last_u694143bd339fa_i = 0; g_u694143bd339fa_img.setAttribute("src",u694143bd339fa_images[0]); function u694143bd339fa_swap() { while (g_u694143bd339fa_i == last_u694143bd339fa_i) { if (g_u694143bd339fa_random) g_u694143bd339fa_i = Math.floor(Math.random() * (u694143bd339fa_images.length-1)+.5); else { g_u694143bd339fa_i++; if (g_u694143bd339fa_i >= u694143bd339fa_images.length) g_u694143bd339fa_i = 0; } } last_u694143bd339fa_i = g_u694143bd339fa_i; g_u694143bd339fa_img.setAttribute("src",u694143bd339fa_images[g_u694143bd339fa_i]); setTimeout("u694143bd339fa_swap()",g_u694143bd339fa_delay); } if (u694143bd339fa_images.length > 1) { if (g_u694143bd339fa_random) { u694143bd339fa_swap() } else { setTimeout("u694143bd339fa_swap()",g_u694143bd339fa_delay); } }