var timenowrandimage53558 = 0; var counttimerrandimage53558 = -1; var counttimerlrandimage53558 = counttimerrandimage53558; var timesetrandimage53558 = 5; var nimagerandimage53558 = new Image; var imagesrandimage53558 = new Array('http://www.cgiconnection.com/randimage4/images/home4.jpg','http://www.cgiconnection.com/randimage4/images/home3.jpg','http://www.cgiconnection.com/randimage4/images/home2.jpg','http://www.cgiconnection.com/randimage4/images/home1.jpg','http://www.cgiconnection.com/randimage4/images/home5.jpg'); var urlsrandimage53558 = new Array('http://','http://','http://','http://','http://'); var timesrandimage53558 = new Array('','','','',''); var newwinsrandimage53558 = new Array('','','','',''); var footersrandimage53558 = new Array('house 4','house 3','house 2','house 1','house 5'); var timerrandimage53558; var timerfrandimage53558; var i = 0; var preloadimgrandimage53558 = 1; var footerrandimage53558 = '
House Carousel'; var statusrandimage53558 = ''; var floatidrandimage53558 = 0; var zoomidrandimage53558 = 0; var carrandimage53558 = 1; var fadeSpeedrandimage53558 = 18; var outTime = 2100 - (fadeSpeedrandimage53558 * 35); var objrandimage53558; var opacityrandimage53558; var nsrandimage53558 = document.layers; var ierandimage53558 = document.all; var fadeinvalrandimage53558 = ""; var fadeoutvalrandimage53558 = ""; var sliderandimage53558 = 0; var zfrandimage53558 = 0.05; var ztrandimage53558 = 500; var wcrandimage53558; var Elemrandimage53558; var yPosrandimage53558 = 0; var xPosrandimage53558 = 0; var xPostrandimage53558 = 0; var yPostrandimage53558 = 0; var gsrandimage53558 = ""; if (preloadimgrandimage53558 == 1) { for(i=0; i < imagesrandimage53558.length; i++) { nimagerandimage53558.src = imagesrandimage53558[i]; } } function setOpacrandimage53558(objrandimage53558, opacityrandimage53558) { opacityrandimage53558 = (opacityrandimage53558 == 100)?99.999:opacityrandimage53558; if (nsrandimage53558) { objrandimage53558.style.MozOpacity = opacityrandimage53558/100; } else if (ierandimage53558) { objrandimage53558.style.filter = "alpha(opacity:"+opacityrandimage53558+")"; } else { objrandimage53558.style.opacity = opacityrandimage53558/100; } } function fadeInrandimage53558(objIdrandimage53558,opacityrandimage53558) { if (document.getElementById) { objrandimage53558 = document.getElementById(objIdrandimage53558); if (opacityrandimage53558 <= 100) { setOpacrandimage53558(objrandimage53558, opacityrandimage53558); opacityrandimage53558 += fadeSpeedrandimage53558; window.setTimeout("fadeInrandimage53558('" + objIdrandimage53558 +"',"+opacityrandimage53558+")", 100); } else { setOpacrandimage53558(objrandimage53558, 100); } } } function fadeOutrandimage53558(objIdrandimage53558,opacityrandimage53558) { if (document.getElementById) { objrandimage53558 = document.getElementById(objIdrandimage53558); if (opacityrandimage53558 >= 0) { setOpacrandimage53558(objrandimage53558, opacityrandimage53558); opacityrandimage53558 = opacityrandimage53558 - fadeSpeedrandimage53558; window.setTimeout("fadeOutrandimage53558('" + objIdrandimage53558 +"',"+opacityrandimage53558+")", 100); } else { setOpacrandimage53558(objrandimage53558, 0); } } } function changeTextrandimage53558(div_id,val){ elm=document.getElementById(div_id); elm.innerHTML = '

' + val + footerrandimage53558 + '

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

'); document.write(''); document.write(''); } if (sliderandimage53558 == 1 || carrandimage53558 == 1) { document.write(''); } else { document.write(''); } document.write(''); document.write('

'); document.write('
'); if (carrandimage53558 == 1) { document.write('
'); } if (sliderandimage53558 == 1) { document.write('
'); document.write('
'); document.write('
'); document.write('
'); } if (sliderandimage53558 != 1 && carrandimage53558 != 1) { if (zoomidrandimage53558 == 0) { document.write(''); } else { document.write(''); } document.write('
'); document.write('
' + footerrandimage53558 + '
<<<                              >>>
'); if (floatidrandimage53558 == 1) { document.write('

'); } var imageIdrandimage53558 = 'randimage53558'; var imageElemrandimage53558 = document.getElementById(imageIdrandimage53558); var tempURLnum; function go_urlrandimage53558(tempURLnum,openinnew,templink,tempsrc) { window.status = statusrandimage53558; var myURL = ""; var isNew = ""; var mySRC = ""; var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi"; var recURL53558 = 0; if (tempURLnum > 0) { counttimerrandimage53558 = tempURLnum - 1; } if (tempURLnum == -1) { myURL = templink; mySRC = tempsrc; isNew = openinnew; } else { myURL = urlsrandimage53558[counttimerrandimage53558]; mySRC = imagesrandimage53558[counttimerrandimage53558]; isNew = newwinsrandimage53558[counttimerrandimage53558]; } if (myURL != "" && myURL != "http://") { if (recURL53558 == 1) { myURL = mainURL + '?filename=homes_carousel&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_backrandimage53558() { clearTimeout(timerfrandimage53558); window.status = statusrandimage53558; counttimerlrandimage53558 = counttimerrandimage53558; counttimerrandimage53558 = counttimerrandimage53558 - 1; begin_imagerandimage53558(1); } function go_nextrandimage53558() { clearTimeout(timerfrandimage53558); window.status = statusrandimage53558; counttimerlrandimage53558 = counttimerrandimage53558; counttimerrandimage53558++; begin_imagerandimage53558(1); } function begin_imagerandimage53558(doit) { if (counttimerrandimage53558 >= (imagesrandimage53558.length - 1)) { if (doit < 1) { counttimerrandimage53558 = 0; } } else { if (doit < 1) { counttimerrandimage53558++; } } if (counttimerrandimage53558 < 0 && doit == 1) { counttimerrandimage53558 = imagesrandimage53558.length - 1; } if (counttimerrandimage53558 > (imagesrandimage53558.length - 1) && doit == 1) { counttimerrandimage53558 = 0; } var tempTime = timesrandimage53558[counttimerrandimage53558]; if (tempTime < 1) { tempTime = timesetrandimage53558; } tempTime = tempTime * 1000; if (fadeinvalrandimage53558 == 'Y') { setOpacrandimage53558(imageElemrandimage53558, 0); } if (fadeinvalrandimage53558 == '' && fadeoutvalrandimage53558 == 'Y') { setOpacrandimage53558(imageElemrandimage53558, 100); } nimagerandimage53558.src = imagesrandimage53558[counttimerrandimage53558]; document.randimage53558.src = nimagerandimage53558.src; changeTextrandimage53558("divtextrandimage53558",footersrandimage53558[counttimerrandimage53558]); if (fadeinvalrandimage53558 == 'Y') { fadeInrandimage53558(imageIdrandimage53558,0); } if (fadeoutvalrandimage53558 == 'Y') { timerfrandimage53558 = setTimeout('fadeOutrandimage53558(imageIdrandimage53558,100);', (tempTime - outTime)); } clearTimeout(timerrandimage53558); timerrandimage53558 = setTimeout('begin_imagerandimage53558(0);', tempTime); } function dimsrandimage53558(Elemrandimage53558) { 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 (xPosrandimage53558 > 0) { xPostrandimage53558 = xPosrandimage53558; yPostrandimage53558 = yPosrandimage53558; wcrandimage53558.style.width = xPosrandimage53558; wcrandimage53558.style.height = yPosrandimage53558; } if (ns4) { var Elemrandimage53558 = getObjNN4(document, Elemrandimage53558); yPosrandimage53558 = Elemrandimage53558.clip.height; xPosrandimage53558 = Elemrandimage53558.clip.width; return; } else { var Elemrandimage53558; if(document.getElementById) { var Elemrandimage53558 = document.getElementById(Elemrandimage53558); } else if (document.all) { var Elemrandimage53558 = document.all[Elemrandimage53558]; } } if (op5) { yPosrandimage53558 = Elemrandimage53558.style.pixelHeight; xPosrandimage53558 = Elemrandimage53558.style.pixelWidth; } else { yPosrandimage53558 = Elemrandimage53558.offsetHeight; xPosrandimage53558 = Elemrandimage53558.offsetWidth; } } function znrandimage53558() { clearTimeout(timerrandimage53558); clearTimeout(timerfrandimage53558); czrandimage53558(); if (xPosrandimage53558 > 0) { wcrandimage53558.style.width = xPosrandimage53558; wcrandimage53558.style.height = yPosrandimage53558; } dimsrandimage53558("randimage53558"); window.status=statusrandimage53558; zoomrandimage53558(xPosrandimage53558,yPosrandimage53558,'randimage53558','in'); timerrandimage53558 = setTimeout("czrandimage53558();", ztrandimage53558); } function zbrandimage53558() { xPostrandimage53558 = xPosrandimage53558; yPostrandimage53558 = yPosrandimage53558; clearTimeout(timerrandimage53558); czrandimage53558(); setOpacrandimage53558(imageElemrandimage53558, 100); zoomrandimage53558(xPosrandimage53558,yPosrandimage53558,'randimage53558','out'); timerrandimage53558 = setTimeout('begin_imagerandimage53558(0);', counttimerlrandimage53558); } function zhrandimage53558(){ if (gsrandimage53558 == "out" && (xPostrandimage53558 < xPosrandimage53558 || yPostrandimage53558 < yPosrandimage53558)) { setOpacrandimage53558(imageElemrandimage53558, 100); xPostrandimage53558 = xPosrandimage53558; yPostrandimage53558 = yPosrandimage53558; wcrandimage53558.style.width = xPosrandimage53558; wcrandimage53558.style.height = yPosrandimage53558; gsrandimage53558 = ""; czrandimage53558(); return; } if (parseInt(wcrandimage53558.style.width)>10&&parseInt(wcrandimage53558.style.height)>10) { xPostrandimage53558 = parseInt(wcrandimage53558.style.width) + parseInt(wcrandimage53558.style.width) * zfrandimage53558 * pfrandimage53558; yPostrandimage53558 = parseInt(wcrandimage53558.style.height) + parseInt(wcrandimage53558.style.height) * zfrandimage53558 * pfrandimage53558; wcrandimage53558.style.width = xPostrandimage53558; wcrandimage53558.style.height = yPostrandimage53558; } } function zoomrandimage53558(originalW, originalH, what, state){ gsrandimage53558 = state; if (!document.all&&!document.getElementById) { return; } wcrandimage53558 = eval("document.images."+what); pfrandimage53558 = (state=="in")? 1 : -1; if (wcrandimage53558.style.width=="") { wcrandimage53558.style.width=originalW; wcrandimage53558.style.height=originalH; } if (state=="restore"){ xPostrandimage53558 = xPosrandimage53558; yPostrandimage53558 = yPosrandimage53558; wcrandimage53558.style.width=originalW; wcrandimage53558.style.height=originalH; czrandimage53558(); return; } else { zhrandimage53558(); } bzrandimage53558 = setInterval("zhrandimage53558()",100); } function czrandimage53558(){ if (window.bzrandimage53558) { if (gsrandimage53558 != "in" && (xPostrandimage53558 != xPosrandimage53558 || yPostrandimage53558 != yPosrandimage53558)) { xPostrandimage53558 = xPosrandimage53558; yPostrandimage53558 = yPosrandimage53558; wcrandimage53558.style.width = xPosrandimage53558; wcrandimage53558.style.height = yPosrandimage53558; gsrandimage53558 = ""; } clearInterval(bzrandimage53558); } } var tempcount2; var tempcount5; var Car_Image_Sources53558 = new Array(); var FootersAll53558 = new Array(); var myNewWin53558 = new Array(); var imglength53558 = imagesrandimage53558.length; /*********************************************** * Carousel Slideshow script- © Ger Versluis 2003 * Permission granted to DynamicDrive.com to feature script * This notice must stay intact for legal use * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/ var Car_Image_Width53558 = 225; var Car_Image_Height53558 = 200; var Car_Border=false; var Car_Border_Color="white"; var Car_Speed53558 = 3; var Car_Direction53558 = false; var Car_NoOfSides53558 = 8; var tempcounta53558 = 0; var carTimer53558; var tempL53558 = 0; function startItC53558(whichOne) { if (whichOne == 0) { clearTimeout(carTimer53558); Car_Direction53558 = true; } else { clearTimeout(carTimer53558); Car_Direction53558 = false; } carTimer53558 = setTimeout("CarImages53558()",50); } if (imglength53558 < 6) { tempL53558 = 7 - imglength53558; } if (tempL53558 < 1) { tempL53558 = 1; } var mainCount53558 = 0; for (tempcount5 = 0; tempcount5 < tempL53558; tempcount5++) { for (tempcount2 = 0; tempcount2 < imglength53558; tempcount2++) { var tempVal = imagesrandimage53558[tempcount2]; Car_Image_Sources53558[tempcounta53558] = tempVal; FootersAll53558[tempcounta53558] = footersrandimage53558[tempcount2]; myNewWin53558[tempcounta53558] = newwinsrandimage53558[tempcount2]; tempcounta53558++; Car_Image_Sources53558[tempcounta53558] = urlsrandimage53558[tempcount2]; FootersAll53558[tempcounta53558] = footersrandimage53558[tempcount2]; myNewWin53558[tempcounta53558] = newwinsrandimage53558[tempcount2]; tempcounta53558++; mainCount53558++; } } imglength53558 = mainCount53558; CW_I53558 = new Array(Car_NoOfSides53558 / 2+1);C_ClcW53558 = new Array(Car_NoOfSides53558 / 2); C_Coef53558 = new Array( 3*Math.PI/2,0,3*Math.PI/2,11*Math.PI/6,Math.PI/6,3*Math.PI/2,7*Math.PI/4, 0, Math.PI/4,3*Math.PI/2,5*Math.PI/3,11*Math.PI/6,0,Math.PI/6,Math.PI/3); var C_CoefOf53558 = Car_NoOfSides53558 == 4?0:Car_NoOfSides53558 == 6 ? 2:Car_NoOfSides53558 == 8?5:9; C_Pre_Img53558 = new Array(Car_Image_Sources53558.length); var C_Angle53558 = Car_Direction53558 ? Math.PI/(Car_NoOfSides53558 / 2):0,C_CrImg53558 = Car_NoOfSides53558,C_MaxW53558,C_TotalW53558,C_Stppd53558=false,i53558,C_LeftOffset53558,C_HalfNo53558 = Car_NoOfSides53558 / 2; function CarouselStart53558(){ if(document.getElementById){ for(i53558=0;i53558 < Car_Image_Sources53558.length; i53558+=2){ C_Pre_Img53558[i53558]=new Image();C_Pre_Img53558[i53558].src=Car_Image_Sources53558[i53558]} C_MaxW53558=Car_Image_Width53558 / Math.sin(Math.PI/Car_NoOfSides53558)+C_HalfNo53558 + 1; Car_Div=document.getElementById("Carousel53558"); for(i53558=0;i53558= Math.PI/C_HalfNo53558)){ if(C_CrImg53558 == Car_Image_Sources53558.length)C_CrImg53558=0; if(Car_Direction53558){ CW_I53558[C_HalfNo53558] = CW_I53558[0]; for(i53558=0;i53558 0;i53558--)CW_I53558[i53558]=CW_I53558[i53558-1]; CW_I53558[0]=CW_I53558[C_HalfNo53558]; CW_I53558[0].src=Car_Image_Sources53558[C_CrImg53558]; CW_I53558[0].lnk=Car_Image_Sources53558[C_CrImg53558+1]; CW_I53558[0].desc=FootersAll53558[C_CrImg53558]; CW_I53558[0].newwin=myNewWin53558[C_CrImg53558]; } C_Angle53558 = Car_Direction53558 ? Math.PI/C_HalfNo53558:0;C_CrImg53558+=2;}} carTimer53558 = setTimeout("CarImages53558()",50);} function C_LdLnk53558(){go_urlrandimage53558(-1,this.newwin,this.lnk,this.src);} function C_Stp53558(){this.style.cursor=this.lnk?"pointer":"default";C_Stppd53558=true;changeTextrandimage53558("divtextrandimage53558",this.desc);} function C_Rstrt53558(){C_Stppd53558=false;changeTextrandimage53558("divtextrandimage53558","");} setTimeout("CarouselStart53558()",100);