var g_u689df1f17a905_img = document.getElementById("u689df1f17a905_slideshowImg"); var g_u689df1f17a905_i = 0; var last_u689df1f17a905_i = 0; g_u689df1f17a905_img.setAttribute("src",u689df1f17a905_images[0]); function u689df1f17a905_swap() { while (g_u689df1f17a905_i == last_u689df1f17a905_i) { if (g_u689df1f17a905_random) g_u689df1f17a905_i = Math.floor(Math.random() * (u689df1f17a905_images.length-1)+.5); else { g_u689df1f17a905_i++; if (g_u689df1f17a905_i >= u689df1f17a905_images.length) g_u689df1f17a905_i = 0; } } last_u689df1f17a905_i = g_u689df1f17a905_i; g_u689df1f17a905_img.setAttribute("src",u689df1f17a905_images[g_u689df1f17a905_i]); document.getElementById('slide_name').innerHTML = u689df1f17a905_names[g_u689df1f17a905_i]; setTimeout("u689df1f17a905_swap()",g_u689df1f17a905_delay); } if (u689df1f17a905_images.length > 1) { if (g_u689df1f17a905_random) { u689df1f17a905_swap() } else { setTimeout("u689df1f17a905_swap()",g_u689df1f17a905_delay); } }