var timenowrandimage1907 = 0; var counttimerrandimage1907 = -1; var counttimerlrandimage1907 = counttimerrandimage1907; var timesetrandimage1907 = 5; var nimagerandimage1907 = new Image; var imagesrandimage1907 = new Array('http://www.cgiconnection.com/randimage4/images/home5.jpg','http://www.cgiconnection.com/randimage4/images/home4.jpg','http://www.cgiconnection.com/randimage4/images/home1.jpg','http://www.cgiconnection.com/randimage4/images/home3.jpg','http://www.cgiconnection.com/randimage4/images/home2.jpg'); var urlsrandimage1907 = new Array('http://','http://','http://','http://','http://'); var timesrandimage1907 = new Array('','','','',''); var newwinsrandimage1907 = new Array('','','','',''); var footersrandimage1907 = new Array('house 5','house 4','house 1','house 3','house 2'); var timerrandimage1907; var timerfrandimage1907; var i = 0; var preloadimgrandimage1907 = 1; var footerrandimage1907 = ''; var statusrandimage1907 = ''; var floatidrandimage1907 = 0; var zoomidrandimage1907 = 0; var carrandimage1907 = 0; var fadeSpeedrandimage1907 = 18; var outTime = 2100 - (fadeSpeedrandimage1907 * 35); var objrandimage1907; var opacityrandimage1907; var nsrandimage1907 = document.layers; var ierandimage1907 = document.all; var fadeinvalrandimage1907 = ""; var fadeoutvalrandimage1907 = ""; var sliderandimage1907 = 1; var zfrandimage1907 = 0.05; var ztrandimage1907 = 500; var wcrandimage1907; var Elemrandimage1907; var yPosrandimage1907 = 0; var xPosrandimage1907 = 0; var xPostrandimage1907 = 0; var yPostrandimage1907 = 0; var gsrandimage1907 = ""; if (preloadimgrandimage1907 == 1) { for(i=0; i < imagesrandimage1907.length; i++) { nimagerandimage1907.src = imagesrandimage1907[i]; } } function setOpacrandimage1907(objrandimage1907, opacityrandimage1907) { opacityrandimage1907 = (opacityrandimage1907 == 100)?99.999:opacityrandimage1907; if (nsrandimage1907) { objrandimage1907.style.MozOpacity = opacityrandimage1907/100; } else if (ierandimage1907) { objrandimage1907.style.filter = "alpha(opacity:"+opacityrandimage1907+")"; } else { objrandimage1907.style.opacity = opacityrandimage1907/100; } } function fadeInrandimage1907(objIdrandimage1907,opacityrandimage1907) { if (document.getElementById) { objrandimage1907 = document.getElementById(objIdrandimage1907); if (opacityrandimage1907 <= 100) { setOpacrandimage1907(objrandimage1907, opacityrandimage1907); opacityrandimage1907 += fadeSpeedrandimage1907; window.setTimeout("fadeInrandimage1907('" + objIdrandimage1907 +"',"+opacityrandimage1907+")", 100); } else { setOpacrandimage1907(objrandimage1907, 100); } } } function fadeOutrandimage1907(objIdrandimage1907,opacityrandimage1907) { if (document.getElementById) { objrandimage1907 = document.getElementById(objIdrandimage1907); if (opacityrandimage1907 >= 0) { setOpacrandimage1907(objrandimage1907, opacityrandimage1907); opacityrandimage1907 = opacityrandimage1907 - fadeSpeedrandimage1907; window.setTimeout("fadeOutrandimage1907('" + objIdrandimage1907 +"',"+opacityrandimage1907+")", 100); } else { setOpacrandimage1907(objrandimage1907, 0); } } } function changeTextrandimage1907(div_id,val){ elm=document.getElementById(div_id); elm.innerHTML = '

' + val + footerrandimage1907 + '

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

'); document.write(''); document.write(''); } if (sliderandimage1907 == 1 || carrandimage1907 == 1) { document.write(''); } else { document.write(''); } document.write(''); document.write('

'); document.write('
'); if (carrandimage1907 == 1) { document.write('
'); } if (sliderandimage1907 == 1) { document.write('
'); document.write('
'); document.write('
'); document.write('
'); } if (sliderandimage1907 != 1 && carrandimage1907 != 1) { if (zoomidrandimage1907 == 0) { document.write(''); } else { document.write(''); } document.write('
'); document.write('
' + footerrandimage1907 + '
<<                    >>
'); if (floatidrandimage1907 == 1) { document.write('

'); } var imageIdrandimage1907 = 'randimage1907'; var imageElemrandimage1907 = document.getElementById(imageIdrandimage1907); var tempURLnum; function go_urlrandimage1907(tempURLnum,openinnew,templink,tempsrc) { window.status = statusrandimage1907; var myURL = ""; var isNew = ""; var mySRC = ""; var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi"; var recURL1907 = 0; if (tempURLnum > 0) { counttimerrandimage1907 = tempURLnum - 1; } if (tempURLnum == -1) { myURL = templink; mySRC = tempsrc; isNew = openinnew; } else { myURL = urlsrandimage1907[counttimerrandimage1907]; mySRC = imagesrandimage1907[counttimerrandimage1907]; isNew = newwinsrandimage1907[counttimerrandimage1907]; } if (myURL != "" && myURL != "http://") { if (recURL1907 == 1) { myURL = mainURL + '?filename=homes_slide&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_backrandimage1907() { clearTimeout(timerfrandimage1907); window.status = statusrandimage1907; counttimerlrandimage1907 = counttimerrandimage1907; counttimerrandimage1907 = counttimerrandimage1907 - 1; begin_imagerandimage1907(1); } function go_nextrandimage1907() { clearTimeout(timerfrandimage1907); window.status = statusrandimage1907; counttimerlrandimage1907 = counttimerrandimage1907; counttimerrandimage1907++; begin_imagerandimage1907(1); } function begin_imagerandimage1907(doit) { if (counttimerrandimage1907 >= (imagesrandimage1907.length - 1)) { if (doit < 1) { counttimerrandimage1907 = 0; } } else { if (doit < 1) { counttimerrandimage1907++; } } if (counttimerrandimage1907 < 0 && doit == 1) { counttimerrandimage1907 = imagesrandimage1907.length - 1; } if (counttimerrandimage1907 > (imagesrandimage1907.length - 1) && doit == 1) { counttimerrandimage1907 = 0; } var tempTime = timesrandimage1907[counttimerrandimage1907]; if (tempTime < 1) { tempTime = timesetrandimage1907; } tempTime = tempTime * 1000; if (fadeinvalrandimage1907 == 'Y') { setOpacrandimage1907(imageElemrandimage1907, 0); } if (fadeinvalrandimage1907 == '' && fadeoutvalrandimage1907 == 'Y') { setOpacrandimage1907(imageElemrandimage1907, 100); } nimagerandimage1907.src = imagesrandimage1907[counttimerrandimage1907]; document.randimage1907.src = nimagerandimage1907.src; changeTextrandimage1907("divtextrandimage1907",footersrandimage1907[counttimerrandimage1907]); if (fadeinvalrandimage1907 == 'Y') { fadeInrandimage1907(imageIdrandimage1907,0); } if (fadeoutvalrandimage1907 == 'Y') { timerfrandimage1907 = setTimeout('fadeOutrandimage1907(imageIdrandimage1907,100);', (tempTime - outTime)); } clearTimeout(timerrandimage1907); timerrandimage1907 = setTimeout('begin_imagerandimage1907(0);', tempTime); } function dimsrandimage1907(Elemrandimage1907) { 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 (xPosrandimage1907 > 0) { xPostrandimage1907 = xPosrandimage1907; yPostrandimage1907 = yPosrandimage1907; wcrandimage1907.style.width = xPosrandimage1907; wcrandimage1907.style.height = yPosrandimage1907; } if (ns4) { var Elemrandimage1907 = getObjNN4(document, Elemrandimage1907); yPosrandimage1907 = Elemrandimage1907.clip.height; xPosrandimage1907 = Elemrandimage1907.clip.width; return; } else { var Elemrandimage1907; if(document.getElementById) { var Elemrandimage1907 = document.getElementById(Elemrandimage1907); } else if (document.all) { var Elemrandimage1907 = document.all[Elemrandimage1907]; } } if (op5) { yPosrandimage1907 = Elemrandimage1907.style.pixelHeight; xPosrandimage1907 = Elemrandimage1907.style.pixelWidth; } else { yPosrandimage1907 = Elemrandimage1907.offsetHeight; xPosrandimage1907 = Elemrandimage1907.offsetWidth; } } function znrandimage1907() { clearTimeout(timerrandimage1907); clearTimeout(timerfrandimage1907); czrandimage1907(); if (xPosrandimage1907 > 0) { wcrandimage1907.style.width = xPosrandimage1907; wcrandimage1907.style.height = yPosrandimage1907; } dimsrandimage1907("randimage1907"); window.status=statusrandimage1907; zoomrandimage1907(xPosrandimage1907,yPosrandimage1907,'randimage1907','in'); timerrandimage1907 = setTimeout("czrandimage1907();", ztrandimage1907); } function zbrandimage1907() { xPostrandimage1907 = xPosrandimage1907; yPostrandimage1907 = yPosrandimage1907; clearTimeout(timerrandimage1907); czrandimage1907(); setOpacrandimage1907(imageElemrandimage1907, 100); zoomrandimage1907(xPosrandimage1907,yPosrandimage1907,'randimage1907','out'); timerrandimage1907 = setTimeout('begin_imagerandimage1907(0);', counttimerlrandimage1907); } function zhrandimage1907(){ if (gsrandimage1907 == "out" && (xPostrandimage1907 < xPosrandimage1907 || yPostrandimage1907 < yPosrandimage1907)) { setOpacrandimage1907(imageElemrandimage1907, 100); xPostrandimage1907 = xPosrandimage1907; yPostrandimage1907 = yPosrandimage1907; wcrandimage1907.style.width = xPosrandimage1907; wcrandimage1907.style.height = yPosrandimage1907; gsrandimage1907 = ""; czrandimage1907(); return; } if (parseInt(wcrandimage1907.style.width)>10&&parseInt(wcrandimage1907.style.height)>10) { xPostrandimage1907 = parseInt(wcrandimage1907.style.width) + parseInt(wcrandimage1907.style.width) * zfrandimage1907 * pfrandimage1907; yPostrandimage1907 = parseInt(wcrandimage1907.style.height) + parseInt(wcrandimage1907.style.height) * zfrandimage1907 * pfrandimage1907; wcrandimage1907.style.width = xPostrandimage1907; wcrandimage1907.style.height = yPostrandimage1907; } } function zoomrandimage1907(originalW, originalH, what, state){ gsrandimage1907 = state; if (!document.all&&!document.getElementById) { return; } wcrandimage1907 = eval("document.images."+what); pfrandimage1907 = (state=="in")? 1 : -1; if (wcrandimage1907.style.width=="") { wcrandimage1907.style.width=originalW; wcrandimage1907.style.height=originalH; } if (state=="restore"){ xPostrandimage1907 = xPosrandimage1907; yPostrandimage1907 = yPosrandimage1907; wcrandimage1907.style.width=originalW; wcrandimage1907.style.height=originalH; czrandimage1907(); return; } else { zhrandimage1907(); } bzrandimage1907 = setInterval("zhrandimage1907()",100); } function czrandimage1907(){ if (window.bzrandimage1907) { if (gsrandimage1907 != "in" && (xPostrandimage1907 != xPosrandimage1907 || yPostrandimage1907 != yPosrandimage1907)) { xPostrandimage1907 = xPosrandimage1907; yPostrandimage1907 = yPosrandimage1907; wcrandimage1907.style.width = xPosrandimage1907; wcrandimage1907.style.height = yPosrandimage1907; gsrandimage1907 = ""; } clearInterval(bzrandimage1907); } } var slidespeed1907 = 1; var lefttime1907; var startOne1907 = 0; var whichOne; var tempcount2 = 0; var tempFooter; var tempLine = ""; var finalslide=''; var spacecount = 0; var imagegap1907 = ""; for (spacecount = 0; spacecount < 5; spacecount++) { imagegap1907 += " "; } var slideshowgap = 0; var leftrightslide1907 = ""; leftrightslide1907 = ''; for (tempcount2 = 0; tempcount2 < imagesrandimage1907.length; tempcount2++) { var tempcount3 = tempcount2 + 1; tempFooter = footersrandimage1907[tempcount2]; tempLine = ''; leftrightslide1907 += tempLine; } leftrightslide1907 += '
' + imagegap1907 + '
' + tempFooter + '
'; var copyspeed1907 = slidespeed1907; var iedom1907 = document.all||document.getElementById; var actualwidth1907=''; var cross_slide1907, ns_slide1907; if (iedom1907) { document.write(''); } function fillup1907(whichOne){ if (iedom1907){ cross_slide1907 = document.getElementById? document.getElementById("test21907") : document.all.test21907; cross_slide21907 = document.getElementById? document.getElementById("test31907") : document.all.test31907; cross_slide1907.innerHTML=cross_slide21907.innerHTML=leftrightslide1907; actualwidth1907 = document.all? cross_slide1907.offsetWidth : document.getElementById("temp").offsetWidth; cross_slide21907.style.left = actualwidth1907 + slideshowgap+"px"; } else if (document.layers){ ns_slide1907=document.ns_slidemenu.document.ns_slidemenu2; ns_slide21907=document.ns_slidemenu.document.ns_slidemenu3; ns_slide1907.document.write(leftrightslide1907); ns_slide1907.document.close(); actualwidth1907 = ns_slide1907.document.width; ns_slide21907.left = actualwidth1907 + slideshowgap; ns_slide21907.document.write(leftrightslide1907); ns_slide21907.document.close(); } if (startOne1907 == 0) { startIt1907(0); } else { startIt1907(1); } } function startIt1907(whichOne) { if (whichOne == 0) { clearInterval(lefttime1907); lefttime1907 = setInterval("slideleft1907()",30); } else { clearInterval(lefttime1907); lefttime1907 = setInterval("slideright1907()",30); } } function slideright1907(){ if (iedom1907){ if (parseInt(cross_slide1907.style.left)<(actualwidth1907 * (1)+8)) { cross_slide1907.style.left=parseInt(cross_slide1907.style.left) + copyspeed1907 + "px"; } else { cross_slide1907.style.left=parseInt(cross_slide21907.style.left)- actualwidth1907 - slideshowgap+"px"; } if (parseInt(cross_slide21907.style.left)<(actualwidth1907 * (1)+8)) { cross_slide21907.style.left=parseInt(cross_slide21907.style.left)+ copyspeed1907 +"px"; } else { cross_slide21907.style.left=parseInt(cross_slide1907.style.left) - actualwidth1907 - slideshowgap+"px"; } } else if (document.layers){ if (ns_slide1907.left>(actualwidth1907 * (-1)+8)) { ns_slide1907.left-=copyspeed1907; } else { ns_slide1907.left=ns_slide21907.left + actualwidth1907 + slideshowgap; } if (ns_slide21907.left>(actualwidth1907 *(-1)+8)) { ns_slide21907.left-=copyspeed1907; } else { ns_slide21907.left=ns_slide1907.left+actualwidth1907 +slideshowgap; } } } function slideleft1907(){ if (iedom1907){ if (parseInt(cross_slide1907.style.left)>(actualwidth1907 *(-1)+8)) cross_slide1907.style.left=parseInt(cross_slide1907.style.left) - copyspeed1907 +"px" else cross_slide1907.style.left=parseInt(cross_slide21907.style.left)+actualwidth1907 +slideshowgap+"px" if (parseInt(cross_slide21907.style.left)>(actualwidth1907 *(-1)+8)) cross_slide21907.style.left=parseInt(cross_slide21907.style.left)- copyspeed1907 +"px" else cross_slide21907.style.left=parseInt(cross_slide1907.style.left)+actualwidth1907 +slideshowgap+"px" } else if (document.layers){ if (ns_slide1907.left>(actualwidth1907 *(-1)+8)) ns_slide1907.left-=copyspeed1907 else ns_slide1907.left=ns_slide21907.left+actualwidth1907 +slideshowgap if (ns_slide21907.left>(actualwidth1907 *(-1)+8)) ns_slide21907.left-=copyspeed1907 else ns_slide21907.left=ns_slide1907.left+actualwidth1907 +slideshowgap } } setTimeout('fillup1907();', 100);