var g_u689af7be1d864_img = document.getElementById("u689af7be1d864_slideshowImg"); var g_u689af7be1d864_i = 0; var last_u689af7be1d864_i = 0; g_u689af7be1d864_img.setAttribute("src",u689af7be1d864_images[0]); function u689af7be1d864_swap() { while (g_u689af7be1d864_i == last_u689af7be1d864_i) { if (g_u689af7be1d864_random) g_u689af7be1d864_i = Math.floor(Math.random() * (u689af7be1d864_images.length-1)+.5); else { g_u689af7be1d864_i++; if (g_u689af7be1d864_i >= u689af7be1d864_images.length) g_u689af7be1d864_i = 0; } } last_u689af7be1d864_i = g_u689af7be1d864_i; g_u689af7be1d864_img.setAttribute("src",u689af7be1d864_images[g_u689af7be1d864_i]); setTimeout("u689af7be1d864_swap()",g_u689af7be1d864_delay); } if (u689af7be1d864_images.length > 1) { if (g_u689af7be1d864_random) { u689af7be1d864_swap() } else { setTimeout("u689af7be1d864_swap()",g_u689af7be1d864_delay); } }