var g_u689aff154f693_img = document.getElementById("u689aff154f693_slideshowImg"); var g_u689aff154f693_i = 0; var last_u689aff154f693_i = 0; g_u689aff154f693_img.setAttribute("src",u689aff154f693_images[0]); function u689aff154f693_swap() { while (g_u689aff154f693_i == last_u689aff154f693_i) { if (g_u689aff154f693_random) g_u689aff154f693_i = Math.floor(Math.random() * (u689aff154f693_images.length-1)+.5); else { g_u689aff154f693_i++; if (g_u689aff154f693_i >= u689aff154f693_images.length) g_u689aff154f693_i = 0; } } last_u689aff154f693_i = g_u689aff154f693_i; g_u689aff154f693_img.setAttribute("src",u689aff154f693_images[g_u689aff154f693_i]); setTimeout("u689aff154f693_swap()",g_u689aff154f693_delay); } if (u689aff154f693_images.length > 1) { if (g_u689aff154f693_random) { u689aff154f693_swap() } else { setTimeout("u689aff154f693_swap()",g_u689aff154f693_delay); } }