var g_u6866df9049cad_img = document.getElementById("u6866df9049cad_slideshowImg"); var g_u6866df9049cad_i = 0; var last_u6866df9049cad_i = 0; g_u6866df9049cad_img.setAttribute("src",u6866df9049cad_images[0]); function u6866df9049cad_swap() { while (g_u6866df9049cad_i == last_u6866df9049cad_i) { if (g_u6866df9049cad_random) g_u6866df9049cad_i = Math.floor(Math.random() * (u6866df9049cad_images.length-1)+.5); else { g_u6866df9049cad_i++; if (g_u6866df9049cad_i >= u6866df9049cad_images.length) g_u6866df9049cad_i = 0; } } last_u6866df9049cad_i = g_u6866df9049cad_i; g_u6866df9049cad_img.setAttribute("src",u6866df9049cad_images[g_u6866df9049cad_i]); setTimeout("u6866df9049cad_swap()",g_u6866df9049cad_delay); } if (u6866df9049cad_images.length > 1) { if (g_u6866df9049cad_random) { u6866df9049cad_swap() } else { setTimeout("u6866df9049cad_swap()",g_u6866df9049cad_delay); } }