var timenowrandimage35085 = 0; var counttimerrandimage35085 = -1; var counttimerlrandimage35085 = counttimerrandimage35085; var timesetrandimage35085 = 5; var nimagerandimage35085 = new Image; var imagesrandimage35085 = new Array('http://www.cgiconnection.com/randimage4/images/home5.jpg','http://www.cgiconnection.com/randimage4/images/home4.jpg','http://www.cgiconnection.com/randimage4/images/home3.jpg','http://www.cgiconnection.com/randimage4/images/home1.jpg','http://www.cgiconnection.com/randimage4/images/home2.jpg'); var urlsrandimage35085 = new Array('http://','http://','http://','http://','http://'); var timesrandimage35085 = new Array('','','','',''); var newwinsrandimage35085 = new Array('','','','',''); var footersrandimage35085 = new Array('house 5','house 4','house 3','','house 2'); var timerrandimage35085; var timerfrandimage35085; var i = 0; var preloadimgrandimage35085 = 1; var footerrandimage35085 = '
Hold your mouse over the image to zoom'; var statusrandimage35085 = ''; var floatidrandimage35085 = 0; var zoomidrandimage35085 = 1; var carrandimage35085 = 0; var fadeSpeedrandimage35085 = 10; var outTime = 2100 - (fadeSpeedrandimage35085 * 35); var objrandimage35085; var opacityrandimage35085; var nsrandimage35085 = document.layers; var ierandimage35085 = document.all; var fadeinvalrandimage35085 = "Y"; var fadeoutvalrandimage35085 = "Y"; var sliderandimage35085 = 0; var zfrandimage35085 = 0.075; var ztrandimage35085 = 700; var wcrandimage35085; var Elemrandimage35085; var yPosrandimage35085 = 0; var xPosrandimage35085 = 0; var xPostrandimage35085 = 0; var yPostrandimage35085 = 0; var gsrandimage35085 = ""; if (preloadimgrandimage35085 == 1) { for(i=0; i < imagesrandimage35085.length; i++) { nimagerandimage35085.src = imagesrandimage35085[i]; } } function setOpacrandimage35085(objrandimage35085, opacityrandimage35085) { opacityrandimage35085 = (opacityrandimage35085 == 100)?99.999:opacityrandimage35085; if (nsrandimage35085) { objrandimage35085.style.MozOpacity = opacityrandimage35085/100; } else if (ierandimage35085) { objrandimage35085.style.filter = "alpha(opacity:"+opacityrandimage35085+")"; } else { objrandimage35085.style.opacity = opacityrandimage35085/100; } } function fadeInrandimage35085(objIdrandimage35085,opacityrandimage35085) { if (document.getElementById) { objrandimage35085 = document.getElementById(objIdrandimage35085); if (opacityrandimage35085 <= 100) { setOpacrandimage35085(objrandimage35085, opacityrandimage35085); opacityrandimage35085 += fadeSpeedrandimage35085; window.setTimeout("fadeInrandimage35085('" + objIdrandimage35085 +"',"+opacityrandimage35085+")", 100); } else { setOpacrandimage35085(objrandimage35085, 100); } } } function fadeOutrandimage35085(objIdrandimage35085,opacityrandimage35085) { if (document.getElementById) { objrandimage35085 = document.getElementById(objIdrandimage35085); if (opacityrandimage35085 >= 0) { setOpacrandimage35085(objrandimage35085, opacityrandimage35085); opacityrandimage35085 = opacityrandimage35085 - fadeSpeedrandimage35085; window.setTimeout("fadeOutrandimage35085('" + objIdrandimage35085 +"',"+opacityrandimage35085+")", 100); } else { setOpacrandimage35085(objrandimage35085, 0); } } } function changeTextrandimage35085(div_id,val){ elm=document.getElementById(div_id); elm.innerHTML = '

' + val + footerrandimage35085 + '

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

'); document.write(''); document.write(''); } if (sliderandimage35085 == 1 || carrandimage35085 == 1) { document.write(''); } else { document.write(''); } document.write(''); document.write('

'); document.write('
'); if (carrandimage35085 == 1) { document.write('
'); } if (sliderandimage35085 == 1) { document.write('
'); document.write('
'); document.write('
'); document.write('
'); } if (sliderandimage35085 != 1 && carrandimage35085 != 1) { if (zoomidrandimage35085 == 0) { document.write(''); } else { document.write(''); } document.write('
'); document.write('
' + footerrandimage35085 + '
<<                    >>
'); if (floatidrandimage35085 == 1) { document.write('

'); } var imageIdrandimage35085 = 'randimage35085'; var imageElemrandimage35085 = document.getElementById(imageIdrandimage35085); var tempURLnum; function go_urlrandimage35085(tempURLnum,openinnew,templink,tempsrc) { window.status = statusrandimage35085; var myURL = ""; var isNew = ""; var mySRC = ""; var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi"; var recURL35085 = 0; if (tempURLnum > 0) { counttimerrandimage35085 = tempURLnum - 1; } if (tempURLnum == -1) { myURL = templink; mySRC = tempsrc; isNew = openinnew; } else { myURL = urlsrandimage35085[counttimerrandimage35085]; mySRC = imagesrandimage35085[counttimerrandimage35085]; isNew = newwinsrandimage35085[counttimerrandimage35085]; } if (myURL != "" && myURL != "http://") { if (recURL35085 == 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_backrandimage35085() { clearTimeout(timerfrandimage35085); window.status = statusrandimage35085; counttimerlrandimage35085 = counttimerrandimage35085; counttimerrandimage35085 = counttimerrandimage35085 - 1; begin_imagerandimage35085(1); } function go_nextrandimage35085() { clearTimeout(timerfrandimage35085); window.status = statusrandimage35085; counttimerlrandimage35085 = counttimerrandimage35085; counttimerrandimage35085++; begin_imagerandimage35085(1); } function begin_imagerandimage35085(doit) { if (counttimerrandimage35085 >= (imagesrandimage35085.length - 1)) { if (doit < 1) { counttimerrandimage35085 = 0; } } else { if (doit < 1) { counttimerrandimage35085++; } } if (counttimerrandimage35085 < 0 && doit == 1) { counttimerrandimage35085 = imagesrandimage35085.length - 1; } if (counttimerrandimage35085 > (imagesrandimage35085.length - 1) && doit == 1) { counttimerrandimage35085 = 0; } var tempTime = timesrandimage35085[counttimerrandimage35085]; if (tempTime < 1) { tempTime = timesetrandimage35085; } tempTime = tempTime * 1000; if (fadeinvalrandimage35085 == 'Y') { setOpacrandimage35085(imageElemrandimage35085, 0); } if (fadeinvalrandimage35085 == '' && fadeoutvalrandimage35085 == 'Y') { setOpacrandimage35085(imageElemrandimage35085, 100); } nimagerandimage35085.src = imagesrandimage35085[counttimerrandimage35085]; document.randimage35085.src = nimagerandimage35085.src; changeTextrandimage35085("divtextrandimage35085",footersrandimage35085[counttimerrandimage35085]); if (fadeinvalrandimage35085 == 'Y') { fadeInrandimage35085(imageIdrandimage35085,0); } if (fadeoutvalrandimage35085 == 'Y') { timerfrandimage35085 = setTimeout('fadeOutrandimage35085(imageIdrandimage35085,100);', (tempTime - outTime)); } clearTimeout(timerrandimage35085); timerrandimage35085 = setTimeout('begin_imagerandimage35085(0);', tempTime); } function dimsrandimage35085(Elemrandimage35085) { 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 (xPosrandimage35085 > 0) { xPostrandimage35085 = xPosrandimage35085; yPostrandimage35085 = yPosrandimage35085; wcrandimage35085.style.width = xPosrandimage35085; wcrandimage35085.style.height = yPosrandimage35085; } if (ns4) { var Elemrandimage35085 = getObjNN4(document, Elemrandimage35085); yPosrandimage35085 = Elemrandimage35085.clip.height; xPosrandimage35085 = Elemrandimage35085.clip.width; return; } else { var Elemrandimage35085; if(document.getElementById) { var Elemrandimage35085 = document.getElementById(Elemrandimage35085); } else if (document.all) { var Elemrandimage35085 = document.all[Elemrandimage35085]; } } if (op5) { yPosrandimage35085 = Elemrandimage35085.style.pixelHeight; xPosrandimage35085 = Elemrandimage35085.style.pixelWidth; } else { yPosrandimage35085 = Elemrandimage35085.offsetHeight; xPosrandimage35085 = Elemrandimage35085.offsetWidth; } } function znrandimage35085() { clearTimeout(timerrandimage35085); clearTimeout(timerfrandimage35085); czrandimage35085(); if (xPosrandimage35085 > 0) { wcrandimage35085.style.width = xPosrandimage35085; wcrandimage35085.style.height = yPosrandimage35085; } dimsrandimage35085("randimage35085"); window.status=statusrandimage35085; zoomrandimage35085(xPosrandimage35085,yPosrandimage35085,'randimage35085','in'); timerrandimage35085 = setTimeout("czrandimage35085();", ztrandimage35085); } function zbrandimage35085() { xPostrandimage35085 = xPosrandimage35085; yPostrandimage35085 = yPosrandimage35085; clearTimeout(timerrandimage35085); czrandimage35085(); setOpacrandimage35085(imageElemrandimage35085, 100); zoomrandimage35085(xPosrandimage35085,yPosrandimage35085,'randimage35085','out'); timerrandimage35085 = setTimeout('begin_imagerandimage35085(0);', counttimerlrandimage35085); } function zhrandimage35085(){ if (gsrandimage35085 == "out" && (xPostrandimage35085 < xPosrandimage35085 || yPostrandimage35085 < yPosrandimage35085)) { setOpacrandimage35085(imageElemrandimage35085, 100); xPostrandimage35085 = xPosrandimage35085; yPostrandimage35085 = yPosrandimage35085; wcrandimage35085.style.width = xPosrandimage35085; wcrandimage35085.style.height = yPosrandimage35085; gsrandimage35085 = ""; czrandimage35085(); return; } if (parseInt(wcrandimage35085.style.width)>10&&parseInt(wcrandimage35085.style.height)>10) { xPostrandimage35085 = parseInt(wcrandimage35085.style.width) + parseInt(wcrandimage35085.style.width) * zfrandimage35085 * pfrandimage35085; yPostrandimage35085 = parseInt(wcrandimage35085.style.height) + parseInt(wcrandimage35085.style.height) * zfrandimage35085 * pfrandimage35085; wcrandimage35085.style.width = xPostrandimage35085; wcrandimage35085.style.height = yPostrandimage35085; } } function zoomrandimage35085(originalW, originalH, what, state){ gsrandimage35085 = state; if (!document.all&&!document.getElementById) { return; } wcrandimage35085 = eval("document.images."+what); pfrandimage35085 = (state=="in")? 1 : -1; if (wcrandimage35085.style.width=="") { wcrandimage35085.style.width=originalW; wcrandimage35085.style.height=originalH; } if (state=="restore"){ xPostrandimage35085 = xPosrandimage35085; yPostrandimage35085 = yPosrandimage35085; wcrandimage35085.style.width=originalW; wcrandimage35085.style.height=originalH; czrandimage35085(); return; } else { zhrandimage35085(); } bzrandimage35085 = setInterval("zhrandimage35085()",100); } function czrandimage35085(){ if (window.bzrandimage35085) { if (gsrandimage35085 != "in" && (xPostrandimage35085 != xPosrandimage35085 || yPostrandimage35085 != yPosrandimage35085)) { xPostrandimage35085 = xPosrandimage35085; yPostrandimage35085 = yPosrandimage35085; wcrandimage35085.style.width = xPosrandimage35085; wcrandimage35085.style.height = yPosrandimage35085; gsrandimage35085 = ""; } clearInterval(bzrandimage35085); } } begin_imagerandimage35085(0);