var timenowrandimage8311 = 0; var counttimerrandimage8311 = -1; var timesetrandimage8311 = 5; var nimagerandimage8311 = new Image; var imagesrandimage8311 = new Array('http://www.cgiconnection.com/randimage3/images/home1.jpg','http://www.cgiconnection.com/randimage3/images/home4.jpg','http://www.cgiconnection.com/randimage3/images/home5.jpg','http://www.cgiconnection.com/randimage3/images/home2.jpg','http://www.cgiconnection.com/randimage3/images/home3.jpg'); var urlsrandimage8311 = new Array('http://www.cgiconnection.com/randimage3/images/home1.jpg','http://www.cgiconnection.com/randimage3/images/home4.jpg','http://www.cgiconnection.com/randimage3/images/home5.jpg','http://www.cgiconnection.com/randimage3/images/home2.jpg','http://www.cgiconnection.com/randimage3/images/home3.jpg'); var timesrandimage8311 = new Array('','','','',''); var newwinsrandimage8311 = new Array('Y','Y','Y','Y','Y'); var footersrandimage8311 = 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 #5

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

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

Random Image Rotator III
Powered by CGI Connection
'); var timerrandimage8311; var timerfrandimage8311; var i = 0; var preloadimgrandimage8311 = 1; var footerrandimage8311 = '
Click the above picture to open in a new window'; var statusrandimage8311 = ''; var fadeSpeedrandimage8311 = 25; var outTime = 2100 - (fadeSpeedrandimage8311 * 35); var objrandimage8311; var opacityrandimage8311; var nsrandimage8311 = document.layers; var ierandimage8311 = document.all; var fadeinvalrandimage8311 = "Y"; var fadeoutvalrandimage8311 = "Y"; if (preloadimgrandimage8311 == 1) { for(i=0; i < imagesrandimage8311.length; i++) { nimagerandimage8311.src = imagesrandimage8311[i]; } } function setOpacrandimage8311(objrandimage8311, opacityrandimage8311) { opacityrandimage8311 = (opacityrandimage8311 == 100)?99.999:opacityrandimage8311; if (nsrandimage8311) { // Older Mozilla and Firefox objrandimage8311.style.MozOpacity = opacityrandimage8311/100; } else if (ierandimage8311) { // IE/Win objrandimage8311.style.filter = "alpha(opacity:"+opacityrandimage8311+")"; } else { // Safari 1.2, newer Firefox and Mozilla, CSS3 objrandimage8311.style.opacity = opacityrandimage8311/100; } } function fadeInrandimage8311(objIdrandimage8311,opacityrandimage8311) { if (document.getElementById) { objrandimage8311 = document.getElementById(objIdrandimage8311); if (opacityrandimage8311 <= 100) { setOpacrandimage8311(objrandimage8311, opacityrandimage8311); opacityrandimage8311 += fadeSpeedrandimage8311; window.setTimeout("fadeInrandimage8311('" + objIdrandimage8311 +"',"+opacityrandimage8311+")", 100); } else { setOpacrandimage8311(objrandimage8311, 100); } } } function fadeOutrandimage8311(objIdrandimage8311,opacityrandimage8311) { if (document.getElementById) { objrandimage8311 = document.getElementById(objIdrandimage8311); if (opacityrandimage8311 >= 0) { setOpacrandimage8311(objrandimage8311, opacityrandimage8311); opacityrandimage8311 = opacityrandimage8311 - fadeSpeedrandimage8311; window.setTimeout("fadeOutrandimage8311('" + objIdrandimage8311 +"',"+opacityrandimage8311+")", 100); } else { setOpacrandimage8311(objrandimage8311, 0); } } } function changeTextrandimage8311(div_id,val){ elm=document.getElementById(div_id); elm.innerHTML = '

' + val + footerrandimage8311 + '

'; } document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write('
'); document.write(''); document.write('
'); document.write('
Previous Home                    Next Home
'); var imageIdrandimage8311 = 'randimage8311'; var imageElemrandimage8311 = document.getElementById(imageIdrandimage8311); function go_urlrandimage8311() { window.status = statusrandimage8311; if (urlsrandimage8311[counttimerrandimage8311] != "" && urlsrandimage8311[counttimerrandimage8311] != "http://") { if (newwinsrandimage8311[counttimerrandimage8311] == "Y") { window.open(urlsrandimage8311[counttimerrandimage8311],'RandomImage','resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,width=790,height=550,top=10,left=10'); } else { location.href = urlsrandimage8311[counttimerrandimage8311]; } } } function go_backrandimage8311() { clearTimeout(timerfrandimage8311); window.status = statusrandimage8311; counttimerrandimage8311 = counttimerrandimage8311 - 1; begin_imagerandimage8311(1); } function go_nextrandimage8311() { clearTimeout(timerfrandimage8311); window.status = statusrandimage8311; counttimerrandimage8311++; begin_imagerandimage8311(1); } function begin_imagerandimage8311(doit) { if (counttimerrandimage8311 >= (imagesrandimage8311.length - 1)) { if (doit < 1) { counttimerrandimage8311 = 0; } } else { if (doit < 1) { counttimerrandimage8311++; } } if (counttimerrandimage8311 < 0 && doit == 1) { counttimerrandimage8311 = imagesrandimage8311.length - 1; } if (counttimerrandimage8311 > (imagesrandimage8311.length - 1) && doit == 1) { counttimerrandimage8311 = 0; } var tempTime = timesrandimage8311[counttimerrandimage8311]; if (tempTime < 1) { tempTime = timesetrandimage8311; } tempTime = tempTime * 1000; if (fadeinvalrandimage8311 == 'Y') { setOpacrandimage8311(imageElemrandimage8311, 0); } if (fadeinvalrandimage8311 == '' && fadeoutvalrandimage8311 == 'Y') { setOpacrandimage8311(imageElemrandimage8311, 100); } nimagerandimage8311.src = imagesrandimage8311[counttimerrandimage8311]; document.randimage8311.src = nimagerandimage8311.src; changeTextrandimage8311("divtextrandimage8311",footersrandimage8311[counttimerrandimage8311]); if (fadeinvalrandimage8311 == 'Y') { fadeInrandimage8311(imageIdrandimage8311,0); } if (fadeoutvalrandimage8311 == 'Y') { timerfrandimage8311 = setTimeout('fadeOutrandimage8311(imageIdrandimage8311,100);', (tempTime - outTime)); } clearTimeout(timerrandimage8311); timerrandimage8311 = setTimeout('begin_imagerandimage8311(0);', tempTime); } begin_imagerandimage8311(0);