var timenowrandimage99045 = 0; var counttimerrandimage99045 = -1; var timesetrandimage99045 = 5; var nimagerandimage99045 = new Image; var imagesrandimage99045 = new Array('http://www.cgiconnection.com/randimage3/images/home1.jpg','http://www.cgiconnection.com/randimage3/images/home4.jpg','http://www.cgiconnection.com/randimage3/images/home3.jpg','http://www.cgiconnection.com/randimage3/images/home2.jpg','http://www.cgiconnection.com/randimage3/images/home5.jpg'); var urlsrandimage99045 = new Array('http://www.cgiconnection.com/randimage3/images/home1.jpg','http://www.cgiconnection.com/randimage3/images/home4.jpg','http://www.cgiconnection.com/randimage3/images/home3.jpg','http://www.cgiconnection.com/randimage3/images/home2.jpg','http://www.cgiconnection.com/randimage3/images/home5.jpg'); var timesrandimage99045 = new Array('','','','',''); var newwinsrandimage99045 = new Array('Y','Y','Y','Y','Y'); var footersrandimage99045 = new Array('Demo House #1

Random Image Rotator III
Powered by CGI Connection
','Demo House #4

Random Image Rotator III
Powered by CGI Connection
','Demo House #3

Random Image Rotator III
Powered by CGI Connection
','Demo House #2

Random Image Rotator III
Powered by CGI Connection
','Demo House #5

Random Image Rotator III
Powered by CGI Connection
'); var timerrandimage99045; var timerfrandimage99045; var i = 0; var preloadimgrandimage99045 = 1; var footerrandimage99045 = '
Click the above picture to open in a new window'; var statusrandimage99045 = ''; var fadeSpeedrandimage99045 = 25; var outTime = 2100 - (fadeSpeedrandimage99045 * 35); var objrandimage99045; var opacityrandimage99045; var nsrandimage99045 = document.layers; var ierandimage99045 = document.all; var fadeinvalrandimage99045 = "Y"; var fadeoutvalrandimage99045 = "Y"; if (preloadimgrandimage99045 == 1) { for(i=0; i < imagesrandimage99045.length; i++) { nimagerandimage99045.src = imagesrandimage99045[i]; } } function setOpacrandimage99045(objrandimage99045, opacityrandimage99045) { opacityrandimage99045 = (opacityrandimage99045 == 100)?99.999:opacityrandimage99045; if (nsrandimage99045) { // Older Mozilla and Firefox objrandimage99045.style.MozOpacity = opacityrandimage99045/100; } else if (ierandimage99045) { // IE/Win objrandimage99045.style.filter = "alpha(opacity:"+opacityrandimage99045+")"; } else { // Safari 1.2, newer Firefox and Mozilla, CSS3 objrandimage99045.style.opacity = opacityrandimage99045/100; } } function fadeInrandimage99045(objIdrandimage99045,opacityrandimage99045) { if (document.getElementById) { objrandimage99045 = document.getElementById(objIdrandimage99045); if (opacityrandimage99045 <= 100) { setOpacrandimage99045(objrandimage99045, opacityrandimage99045); opacityrandimage99045 += fadeSpeedrandimage99045; window.setTimeout("fadeInrandimage99045('" + objIdrandimage99045 +"',"+opacityrandimage99045+")", 100); } else { setOpacrandimage99045(objrandimage99045, 100); } } } function fadeOutrandimage99045(objIdrandimage99045,opacityrandimage99045) { if (document.getElementById) { objrandimage99045 = document.getElementById(objIdrandimage99045); if (opacityrandimage99045 >= 0) { setOpacrandimage99045(objrandimage99045, opacityrandimage99045); opacityrandimage99045 = opacityrandimage99045 - fadeSpeedrandimage99045; window.setTimeout("fadeOutrandimage99045('" + objIdrandimage99045 +"',"+opacityrandimage99045+")", 100); } else { setOpacrandimage99045(objrandimage99045, 0); } } } function changeTextrandimage99045(div_id,val){ elm=document.getElementById(div_id); elm.innerHTML = '

' + val + footerrandimage99045 + '

'; } document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write('
'); document.write(''); document.write('
'); document.write('
Previous Home                    Next Home
'); var imageIdrandimage99045 = 'randimage99045'; var imageElemrandimage99045 = document.getElementById(imageIdrandimage99045); function go_urlrandimage99045() { window.status = statusrandimage99045; if (urlsrandimage99045[counttimerrandimage99045] != "" && urlsrandimage99045[counttimerrandimage99045] != "http://") { if (newwinsrandimage99045[counttimerrandimage99045] == "Y") { window.open(urlsrandimage99045[counttimerrandimage99045],'RandomImage','resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,width=790,height=550,top=10,left=10'); } else { location.href = urlsrandimage99045[counttimerrandimage99045]; } } } function go_backrandimage99045() { clearTimeout(timerfrandimage99045); window.status = statusrandimage99045; counttimerrandimage99045 = counttimerrandimage99045 - 1; begin_imagerandimage99045(1); } function go_nextrandimage99045() { clearTimeout(timerfrandimage99045); window.status = statusrandimage99045; counttimerrandimage99045++; begin_imagerandimage99045(1); } function begin_imagerandimage99045(doit) { if (counttimerrandimage99045 >= (imagesrandimage99045.length - 1)) { if (doit < 1) { counttimerrandimage99045 = 0; } } else { if (doit < 1) { counttimerrandimage99045++; } } if (counttimerrandimage99045 < 0 && doit == 1) { counttimerrandimage99045 = imagesrandimage99045.length - 1; } if (counttimerrandimage99045 > (imagesrandimage99045.length - 1) && doit == 1) { counttimerrandimage99045 = 0; } var tempTime = timesrandimage99045[counttimerrandimage99045]; if (tempTime < 1) { tempTime = timesetrandimage99045; } tempTime = tempTime * 1000; if (fadeinvalrandimage99045 == 'Y') { setOpacrandimage99045(imageElemrandimage99045, 0); } if (fadeinvalrandimage99045 == '' && fadeoutvalrandimage99045 == 'Y') { setOpacrandimage99045(imageElemrandimage99045, 100); } nimagerandimage99045.src = imagesrandimage99045[counttimerrandimage99045]; document.randimage99045.src = nimagerandimage99045.src; changeTextrandimage99045("divtextrandimage99045",footersrandimage99045[counttimerrandimage99045]); if (fadeinvalrandimage99045 == 'Y') { fadeInrandimage99045(imageIdrandimage99045,0); } if (fadeoutvalrandimage99045 == 'Y') { timerfrandimage99045 = setTimeout('fadeOutrandimage99045(imageIdrandimage99045,100);', (tempTime - outTime)); } clearTimeout(timerrandimage99045); timerrandimage99045 = setTimeout('begin_imagerandimage99045(0);', tempTime); } begin_imagerandimage99045(0);