var g_u662cf3cc71aaa_img = document.getElementById("u662cf3cc71aaa_slideshowImg"); var g_u662cf3cc71aaa_i = 0; var last_u662cf3cc71aaa_i = 0; g_u662cf3cc71aaa_img.setAttribute("src",u662cf3cc71aaa_images[0]); function u662cf3cc71aaa_swap() { while (g_u662cf3cc71aaa_i == last_u662cf3cc71aaa_i) { if (g_u662cf3cc71aaa_random) g_u662cf3cc71aaa_i = Math.floor(Math.random() * (u662cf3cc71aaa_images.length-1)+.5); else { g_u662cf3cc71aaa_i++; if (g_u662cf3cc71aaa_i >= u662cf3cc71aaa_images.length) g_u662cf3cc71aaa_i = 0; } } last_u662cf3cc71aaa_i = g_u662cf3cc71aaa_i; g_u662cf3cc71aaa_img.setAttribute("src",u662cf3cc71aaa_images[g_u662cf3cc71aaa_i]); document.getElementById('slide_name').innerHTML = u662cf3cc71aaa_names[g_u662cf3cc71aaa_i]; setTimeout("u662cf3cc71aaa_swap()",g_u662cf3cc71aaa_delay); } if (u662cf3cc71aaa_images.length > 1) { if (g_u662cf3cc71aaa_random) { u662cf3cc71aaa_swap() } else { setTimeout("u662cf3cc71aaa_swap()",g_u662cf3cc71aaa_delay); } }