var g_u689df9bb03452_img = document.getElementById("u689df9bb03452_slideshowImg"); var g_u689df9bb03452_i = 0; var last_u689df9bb03452_i = 0; g_u689df9bb03452_img.setAttribute("src",u689df9bb03452_images[0]); function u689df9bb03452_swap() { while (g_u689df9bb03452_i == last_u689df9bb03452_i) { if (g_u689df9bb03452_random) g_u689df9bb03452_i = Math.floor(Math.random() * (u689df9bb03452_images.length-1)+.5); else { g_u689df9bb03452_i++; if (g_u689df9bb03452_i >= u689df9bb03452_images.length) g_u689df9bb03452_i = 0; } } last_u689df9bb03452_i = g_u689df9bb03452_i; g_u689df9bb03452_img.setAttribute("src",u689df9bb03452_images[g_u689df9bb03452_i]); document.getElementById('slide_name').innerHTML = u689df9bb03452_names[g_u689df9bb03452_i]; setTimeout("u689df9bb03452_swap()",g_u689df9bb03452_delay); } if (u689df9bb03452_images.length > 1) { if (g_u689df9bb03452_random) { u689df9bb03452_swap() } else { setTimeout("u689df9bb03452_swap()",g_u689df9bb03452_delay); } }