var timenowrandimage83470 = 0; var counttimerrandimage83470 = -1; var counttimerlrandimage83470 = counttimerrandimage83470; var timesetrandimage83470 = 5; var nimagerandimage83470 = new Image; var imagesrandimage83470 = new Array('http://www.cgiconnection.com/randimage4/images/home3.jpg','http://www.cgiconnection.com/randimage4/images/home1.jpg','http://www.cgiconnection.com/randimage4/images/home2.jpg','http://www.cgiconnection.com/randimage4/images/home5.jpg','http://www.cgiconnection.com/randimage4/images/home4.jpg'); var urlsrandimage83470 = new Array('http://','http://','http://','http://','http://'); var timesrandimage83470 = new Array('','','','',''); var newwinsrandimage83470 = new Array('','','','',''); var footersrandimage83470 = new Array('house 3','','house 2','house 5','house 4'); var timerrandimage83470; var timerfrandimage83470; var i = 0; var preloadimgrandimage83470 = 1; var footerrandimage83470 = '
Hold your mouse over the image to zoom'; var statusrandimage83470 = ''; var floatidrandimage83470 = 0; var zoomidrandimage83470 = 1; var carrandimage83470 = 0; var fadeSpeedrandimage83470 = 10; var outTime = 2100 - (fadeSpeedrandimage83470 * 35); var objrandimage83470; var opacityrandimage83470; var nsrandimage83470 = document.layers; var ierandimage83470 = document.all; var fadeinvalrandimage83470 = "Y"; var fadeoutvalrandimage83470 = "Y"; var sliderandimage83470 = 0; var zfrandimage83470 = 0.075; var ztrandimage83470 = 700; var wcrandimage83470; var Elemrandimage83470; var yPosrandimage83470 = 0; var xPosrandimage83470 = 0; var xPostrandimage83470 = 0; var yPostrandimage83470 = 0; var gsrandimage83470 = ""; if (preloadimgrandimage83470 == 1) { for(i=0; i < imagesrandimage83470.length; i++) { nimagerandimage83470.src = imagesrandimage83470[i]; } } function setOpacrandimage83470(objrandimage83470, opacityrandimage83470) { opacityrandimage83470 = (opacityrandimage83470 == 100)?99.999:opacityrandimage83470; if (nsrandimage83470) { objrandimage83470.style.MozOpacity = opacityrandimage83470/100; } else if (ierandimage83470) { objrandimage83470.style.filter = "alpha(opacity:"+opacityrandimage83470+")"; } else { objrandimage83470.style.opacity = opacityrandimage83470/100; } } function fadeInrandimage83470(objIdrandimage83470,opacityrandimage83470) { if (document.getElementById) { objrandimage83470 = document.getElementById(objIdrandimage83470); if (opacityrandimage83470 <= 100) { setOpacrandimage83470(objrandimage83470, opacityrandimage83470); opacityrandimage83470 += fadeSpeedrandimage83470; window.setTimeout("fadeInrandimage83470('" + objIdrandimage83470 +"',"+opacityrandimage83470+")", 100); } else { setOpacrandimage83470(objrandimage83470, 100); } } } function fadeOutrandimage83470(objIdrandimage83470,opacityrandimage83470) { if (document.getElementById) { objrandimage83470 = document.getElementById(objIdrandimage83470); if (opacityrandimage83470 >= 0) { setOpacrandimage83470(objrandimage83470, opacityrandimage83470); opacityrandimage83470 = opacityrandimage83470 - fadeSpeedrandimage83470; window.setTimeout("fadeOutrandimage83470('" + objIdrandimage83470 +"',"+opacityrandimage83470+")", 100); } else { setOpacrandimage83470(objrandimage83470, 0); } } } function changeTextrandimage83470(div_id,val){ elm=document.getElementById(div_id); elm.innerHTML = '

' + val + footerrandimage83470 + '

'; } document.write(''); if (floatidrandimage83470 == 1) { document.write('
'); } document.write('

'); document.write(''); document.write(''); } if (sliderandimage83470 == 1 || carrandimage83470 == 1) { document.write(''); } else { document.write(''); } document.write(''); document.write('

'); document.write('
'); if (carrandimage83470 == 1) { document.write('
'); } if (sliderandimage83470 == 1) { document.write('
'); document.write('
'); document.write('
'); document.write('
'); } if (sliderandimage83470 != 1 && carrandimage83470 != 1) { if (zoomidrandimage83470 == 0) { document.write(''); } else { document.write(''); } document.write('
'); document.write('
' + footerrandimage83470 + '
<<                    >>
'); if (floatidrandimage83470 == 1) { document.write('

'); } var imageIdrandimage83470 = 'randimage83470'; var imageElemrandimage83470 = document.getElementById(imageIdrandimage83470); var tempURLnum; function go_urlrandimage83470(tempURLnum,openinnew,templink,tempsrc) { window.status = statusrandimage83470; var myURL = ""; var isNew = ""; var mySRC = ""; var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi"; var recURL83470 = 0; if (tempURLnum > 0) { counttimerrandimage83470 = tempURLnum - 1; } if (tempURLnum == -1) { myURL = templink; mySRC = tempsrc; isNew = openinnew; } else { myURL = urlsrandimage83470[counttimerrandimage83470]; mySRC = imagesrandimage83470[counttimerrandimage83470]; isNew = newwinsrandimage83470[counttimerrandimage83470]; } if (myURL != "" && myURL != "http://") { if (recURL83470 == 1) { myURL = mainURL + '?filename=homes_zoom&gourl=' + escape(myURL) + '&img=' + escape(mySRC); } if (isNew == "Y") { window.open(myURL,'RandomImage','resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,width=790,height=550,top=10,left=10'); } else { location.href = myURL; } } } function go_backrandimage83470() { clearTimeout(timerfrandimage83470); window.status = statusrandimage83470; counttimerlrandimage83470 = counttimerrandimage83470; counttimerrandimage83470 = counttimerrandimage83470 - 1; begin_imagerandimage83470(1); } function go_nextrandimage83470() { clearTimeout(timerfrandimage83470); window.status = statusrandimage83470; counttimerlrandimage83470 = counttimerrandimage83470; counttimerrandimage83470++; begin_imagerandimage83470(1); } function begin_imagerandimage83470(doit) { if (counttimerrandimage83470 >= (imagesrandimage83470.length - 1)) { if (doit < 1) { counttimerrandimage83470 = 0; } } else { if (doit < 1) { counttimerrandimage83470++; } } if (counttimerrandimage83470 < 0 && doit == 1) { counttimerrandimage83470 = imagesrandimage83470.length - 1; } if (counttimerrandimage83470 > (imagesrandimage83470.length - 1) && doit == 1) { counttimerrandimage83470 = 0; } var tempTime = timesrandimage83470[counttimerrandimage83470]; if (tempTime < 1) { tempTime = timesetrandimage83470; } tempTime = tempTime * 1000; if (fadeinvalrandimage83470 == 'Y') { setOpacrandimage83470(imageElemrandimage83470, 0); } if (fadeinvalrandimage83470 == '' && fadeoutvalrandimage83470 == 'Y') { setOpacrandimage83470(imageElemrandimage83470, 100); } nimagerandimage83470.src = imagesrandimage83470[counttimerrandimage83470]; document.randimage83470.src = nimagerandimage83470.src; changeTextrandimage83470("divtextrandimage83470",footersrandimage83470[counttimerrandimage83470]); if (fadeinvalrandimage83470 == 'Y') { fadeInrandimage83470(imageIdrandimage83470,0); } if (fadeoutvalrandimage83470 == 'Y') { timerfrandimage83470 = setTimeout('fadeOutrandimage83470(imageIdrandimage83470,100);', (tempTime - outTime)); } clearTimeout(timerrandimage83470); timerrandimage83470 = setTimeout('begin_imagerandimage83470(0);', tempTime); } function dimsrandimage83470(Elemrandimage83470) { var ns4 = document.layers; var op5 = (navigator.userAgent.indexOf("Opera 5")!=-1) ||(navigator.userAgent.indexOf("Opera/5")!=-1); var op6 = (navigator.userAgent.indexOf("Opera 6")!=-1) ||(navigator.userAgent.indexOf("Opera/6")!=-1); var agt=navigator.userAgent.toLowerCase(); var mac = (agt.indexOf("mac")!=-1); var ie = (agt.indexOf("msie") != -1); var mac_ie = mac && ie; if (xPosrandimage83470 > 0) { xPostrandimage83470 = xPosrandimage83470; yPostrandimage83470 = yPosrandimage83470; wcrandimage83470.style.width = xPosrandimage83470; wcrandimage83470.style.height = yPosrandimage83470; } if (ns4) { var Elemrandimage83470 = getObjNN4(document, Elemrandimage83470); yPosrandimage83470 = Elemrandimage83470.clip.height; xPosrandimage83470 = Elemrandimage83470.clip.width; return; } else { var Elemrandimage83470; if(document.getElementById) { var Elemrandimage83470 = document.getElementById(Elemrandimage83470); } else if (document.all) { var Elemrandimage83470 = document.all[Elemrandimage83470]; } } if (op5) { yPosrandimage83470 = Elemrandimage83470.style.pixelHeight; xPosrandimage83470 = Elemrandimage83470.style.pixelWidth; } else { yPosrandimage83470 = Elemrandimage83470.offsetHeight; xPosrandimage83470 = Elemrandimage83470.offsetWidth; } } function znrandimage83470() { clearTimeout(timerrandimage83470); clearTimeout(timerfrandimage83470); czrandimage83470(); if (xPosrandimage83470 > 0) { wcrandimage83470.style.width = xPosrandimage83470; wcrandimage83470.style.height = yPosrandimage83470; } dimsrandimage83470("randimage83470"); window.status=statusrandimage83470; zoomrandimage83470(xPosrandimage83470,yPosrandimage83470,'randimage83470','in'); timerrandimage83470 = setTimeout("czrandimage83470();", ztrandimage83470); } function zbrandimage83470() { xPostrandimage83470 = xPosrandimage83470; yPostrandimage83470 = yPosrandimage83470; clearTimeout(timerrandimage83470); czrandimage83470(); setOpacrandimage83470(imageElemrandimage83470, 100); zoomrandimage83470(xPosrandimage83470,yPosrandimage83470,'randimage83470','out'); timerrandimage83470 = setTimeout('begin_imagerandimage83470(0);', counttimerlrandimage83470); } function zhrandimage83470(){ if (gsrandimage83470 == "out" && (xPostrandimage83470 < xPosrandimage83470 || yPostrandimage83470 < yPosrandimage83470)) { setOpacrandimage83470(imageElemrandimage83470, 100); xPostrandimage83470 = xPosrandimage83470; yPostrandimage83470 = yPosrandimage83470; wcrandimage83470.style.width = xPosrandimage83470; wcrandimage83470.style.height = yPosrandimage83470; gsrandimage83470 = ""; czrandimage83470(); return; } if (parseInt(wcrandimage83470.style.width)>10&&parseInt(wcrandimage83470.style.height)>10) { xPostrandimage83470 = parseInt(wcrandimage83470.style.width) + parseInt(wcrandimage83470.style.width) * zfrandimage83470 * pfrandimage83470; yPostrandimage83470 = parseInt(wcrandimage83470.style.height) + parseInt(wcrandimage83470.style.height) * zfrandimage83470 * pfrandimage83470; wcrandimage83470.style.width = xPostrandimage83470; wcrandimage83470.style.height = yPostrandimage83470; } } function zoomrandimage83470(originalW, originalH, what, state){ gsrandimage83470 = state; if (!document.all&&!document.getElementById) { return; } wcrandimage83470 = eval("document.images."+what); pfrandimage83470 = (state=="in")? 1 : -1; if (wcrandimage83470.style.width=="") { wcrandimage83470.style.width=originalW; wcrandimage83470.style.height=originalH; } if (state=="restore"){ xPostrandimage83470 = xPosrandimage83470; yPostrandimage83470 = yPosrandimage83470; wcrandimage83470.style.width=originalW; wcrandimage83470.style.height=originalH; czrandimage83470(); return; } else { zhrandimage83470(); } bzrandimage83470 = setInterval("zhrandimage83470()",100); } function czrandimage83470(){ if (window.bzrandimage83470) { if (gsrandimage83470 != "in" && (xPostrandimage83470 != xPosrandimage83470 || yPostrandimage83470 != yPosrandimage83470)) { xPostrandimage83470 = xPosrandimage83470; yPostrandimage83470 = yPosrandimage83470; wcrandimage83470.style.width = xPosrandimage83470; wcrandimage83470.style.height = yPosrandimage83470; gsrandimage83470 = ""; } clearInterval(bzrandimage83470); } } begin_imagerandimage83470(0);