var timenowrandimage58849 = 0; var counttimerrandimage58849 = -1; var counttimerlrandimage58849 = counttimerrandimage58849; var timesetrandimage58849 = 5; var nimagerandimage58849 = new Image; var imagesrandimage58849 = 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 urlsrandimage58849 = new Array('http://','http://','http://','http://','http://'); var timesrandimage58849 = new Array('','','','',''); var newwinsrandimage58849 = new Array('','','','',''); var footersrandimage58849 = new Array('house 4','house 3','house 2','house 1','house 5'); var timerrandimage58849; var timerfrandimage58849; var i = 0; var preloadimgrandimage58849 = 1; var footerrandimage58849 = '
House Carousel'; var statusrandimage58849 = ''; var floatidrandimage58849 = 0; var zoomidrandimage58849 = 0; var carrandimage58849 = 1; var fadeSpeedrandimage58849 = 18; var outTime = 2100 - (fadeSpeedrandimage58849 * 35); var objrandimage58849; var opacityrandimage58849; var nsrandimage58849 = document.layers; var ierandimage58849 = document.all; var fadeinvalrandimage58849 = ""; var fadeoutvalrandimage58849 = ""; var sliderandimage58849 = 0; var zfrandimage58849 = 0.05; var ztrandimage58849 = 500; var wcrandimage58849; var Elemrandimage58849; var yPosrandimage58849 = 0; var xPosrandimage58849 = 0; var xPostrandimage58849 = 0; var yPostrandimage58849 = 0; var gsrandimage58849 = ""; if (preloadimgrandimage58849 == 1) { for(i=0; i < imagesrandimage58849.length; i++) { nimagerandimage58849.src = imagesrandimage58849[i]; } } function setOpacrandimage58849(objrandimage58849, opacityrandimage58849) { opacityrandimage58849 = (opacityrandimage58849 == 100)?99.999:opacityrandimage58849; if (nsrandimage58849) { objrandimage58849.style.MozOpacity = opacityrandimage58849/100; } else if (ierandimage58849) { objrandimage58849.style.filter = "alpha(opacity:"+opacityrandimage58849+")"; } else { objrandimage58849.style.opacity = opacityrandimage58849/100; } } function fadeInrandimage58849(objIdrandimage58849,opacityrandimage58849) { if (document.getElementById) { objrandimage58849 = document.getElementById(objIdrandimage58849); if (opacityrandimage58849 <= 100) { setOpacrandimage58849(objrandimage58849, opacityrandimage58849); opacityrandimage58849 += fadeSpeedrandimage58849; window.setTimeout("fadeInrandimage58849('" + objIdrandimage58849 +"',"+opacityrandimage58849+")", 100); } else { setOpacrandimage58849(objrandimage58849, 100); } } } function fadeOutrandimage58849(objIdrandimage58849,opacityrandimage58849) { if (document.getElementById) { objrandimage58849 = document.getElementById(objIdrandimage58849); if (opacityrandimage58849 >= 0) { setOpacrandimage58849(objrandimage58849, opacityrandimage58849); opacityrandimage58849 = opacityrandimage58849 - fadeSpeedrandimage58849; window.setTimeout("fadeOutrandimage58849('" + objIdrandimage58849 +"',"+opacityrandimage58849+")", 100); } else { setOpacrandimage58849(objrandimage58849, 0); } } } function changeTextrandimage58849(div_id,val){ elm=document.getElementById(div_id); elm.innerHTML = '

' + val + footerrandimage58849 + '

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

'); document.write(''); document.write(''); } if (sliderandimage58849 == 1 || carrandimage58849 == 1) { document.write(''); } else { document.write(''); } document.write(''); document.write('

'); document.write('
'); if (carrandimage58849 == 1) { document.write('
'); } if (sliderandimage58849 == 1) { document.write('
'); document.write('
'); document.write('
'); document.write('
'); } if (sliderandimage58849 != 1 && carrandimage58849 != 1) { if (zoomidrandimage58849 == 0) { document.write(''); } else { document.write(''); } document.write('
'); document.write('
' + footerrandimage58849 + '
<<<                              >>>
'); if (floatidrandimage58849 == 1) { document.write('

'); } var imageIdrandimage58849 = 'randimage58849'; var imageElemrandimage58849 = document.getElementById(imageIdrandimage58849); var tempURLnum; function go_urlrandimage58849(tempURLnum,openinnew,templink,tempsrc) { window.status = statusrandimage58849; var myURL = ""; var isNew = ""; var mySRC = ""; var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi"; var recURL58849 = 0; if (tempURLnum > 0) { counttimerrandimage58849 = tempURLnum - 1; } if (tempURLnum == -1) { myURL = templink; mySRC = tempsrc; isNew = openinnew; } else { myURL = urlsrandimage58849[counttimerrandimage58849]; mySRC = imagesrandimage58849[counttimerrandimage58849]; isNew = newwinsrandimage58849[counttimerrandimage58849]; } if (myURL != "" && myURL != "http://") { if (recURL58849 == 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_backrandimage58849() { clearTimeout(timerfrandimage58849); window.status = statusrandimage58849; counttimerlrandimage58849 = counttimerrandimage58849; counttimerrandimage58849 = counttimerrandimage58849 - 1; begin_imagerandimage58849(1); } function go_nextrandimage58849() { clearTimeout(timerfrandimage58849); window.status = statusrandimage58849; counttimerlrandimage58849 = counttimerrandimage58849; counttimerrandimage58849++; begin_imagerandimage58849(1); } function begin_imagerandimage58849(doit) { if (counttimerrandimage58849 >= (imagesrandimage58849.length - 1)) { if (doit < 1) { counttimerrandimage58849 = 0; } } else { if (doit < 1) { counttimerrandimage58849++; } } if (counttimerrandimage58849 < 0 && doit == 1) { counttimerrandimage58849 = imagesrandimage58849.length - 1; } if (counttimerrandimage58849 > (imagesrandimage58849.length - 1) && doit == 1) { counttimerrandimage58849 = 0; } var tempTime = timesrandimage58849[counttimerrandimage58849]; if (tempTime < 1) { tempTime = timesetrandimage58849; } tempTime = tempTime * 1000; if (fadeinvalrandimage58849 == 'Y') { setOpacrandimage58849(imageElemrandimage58849, 0); } if (fadeinvalrandimage58849 == '' && fadeoutvalrandimage58849 == 'Y') { setOpacrandimage58849(imageElemrandimage58849, 100); } nimagerandimage58849.src = imagesrandimage58849[counttimerrandimage58849]; document.randimage58849.src = nimagerandimage58849.src; changeTextrandimage58849("divtextrandimage58849",footersrandimage58849[counttimerrandimage58849]); if (fadeinvalrandimage58849 == 'Y') { fadeInrandimage58849(imageIdrandimage58849,0); } if (fadeoutvalrandimage58849 == 'Y') { timerfrandimage58849 = setTimeout('fadeOutrandimage58849(imageIdrandimage58849,100);', (tempTime - outTime)); } clearTimeout(timerrandimage58849); timerrandimage58849 = setTimeout('begin_imagerandimage58849(0);', tempTime); } function dimsrandimage58849(Elemrandimage58849) { 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 (xPosrandimage58849 > 0) { xPostrandimage58849 = xPosrandimage58849; yPostrandimage58849 = yPosrandimage58849; wcrandimage58849.style.width = xPosrandimage58849; wcrandimage58849.style.height = yPosrandimage58849; } if (ns4) { var Elemrandimage58849 = getObjNN4(document, Elemrandimage58849); yPosrandimage58849 = Elemrandimage58849.clip.height; xPosrandimage58849 = Elemrandimage58849.clip.width; return; } else { var Elemrandimage58849; if(document.getElementById) { var Elemrandimage58849 = document.getElementById(Elemrandimage58849); } else if (document.all) { var Elemrandimage58849 = document.all[Elemrandimage58849]; } } if (op5) { yPosrandimage58849 = Elemrandimage58849.style.pixelHeight; xPosrandimage58849 = Elemrandimage58849.style.pixelWidth; } else { yPosrandimage58849 = Elemrandimage58849.offsetHeight; xPosrandimage58849 = Elemrandimage58849.offsetWidth; } } function znrandimage58849() { clearTimeout(timerrandimage58849); clearTimeout(timerfrandimage58849); czrandimage58849(); if (xPosrandimage58849 > 0) { wcrandimage58849.style.width = xPosrandimage58849; wcrandimage58849.style.height = yPosrandimage58849; } dimsrandimage58849("randimage58849"); window.status=statusrandimage58849; zoomrandimage58849(xPosrandimage58849,yPosrandimage58849,'randimage58849','in'); timerrandimage58849 = setTimeout("czrandimage58849();", ztrandimage58849); } function zbrandimage58849() { xPostrandimage58849 = xPosrandimage58849; yPostrandimage58849 = yPosrandimage58849; clearTimeout(timerrandimage58849); czrandimage58849(); setOpacrandimage58849(imageElemrandimage58849, 100); zoomrandimage58849(xPosrandimage58849,yPosrandimage58849,'randimage58849','out'); timerrandimage58849 = setTimeout('begin_imagerandimage58849(0);', counttimerlrandimage58849); } function zhrandimage58849(){ if (gsrandimage58849 == "out" && (xPostrandimage58849 < xPosrandimage58849 || yPostrandimage58849 < yPosrandimage58849)) { setOpacrandimage58849(imageElemrandimage58849, 100); xPostrandimage58849 = xPosrandimage58849; yPostrandimage58849 = yPosrandimage58849; wcrandimage58849.style.width = xPosrandimage58849; wcrandimage58849.style.height = yPosrandimage58849; gsrandimage58849 = ""; czrandimage58849(); return; } if (parseInt(wcrandimage58849.style.width)>10&&parseInt(wcrandimage58849.style.height)>10) { xPostrandimage58849 = parseInt(wcrandimage58849.style.width) + parseInt(wcrandimage58849.style.width) * zfrandimage58849 * pfrandimage58849; yPostrandimage58849 = parseInt(wcrandimage58849.style.height) + parseInt(wcrandimage58849.style.height) * zfrandimage58849 * pfrandimage58849; wcrandimage58849.style.width = xPostrandimage58849; wcrandimage58849.style.height = yPostrandimage58849; } } function zoomrandimage58849(originalW, originalH, what, state){ gsrandimage58849 = state; if (!document.all&&!document.getElementById) { return; } wcrandimage58849 = eval("document.images."+what); pfrandimage58849 = (state=="in")? 1 : -1; if (wcrandimage58849.style.width=="") { wcrandimage58849.style.width=originalW; wcrandimage58849.style.height=originalH; } if (state=="restore"){ xPostrandimage58849 = xPosrandimage58849; yPostrandimage58849 = yPosrandimage58849; wcrandimage58849.style.width=originalW; wcrandimage58849.style.height=originalH; czrandimage58849(); return; } else { zhrandimage58849(); } bzrandimage58849 = setInterval("zhrandimage58849()",100); } function czrandimage58849(){ if (window.bzrandimage58849) { if (gsrandimage58849 != "in" && (xPostrandimage58849 != xPosrandimage58849 || yPostrandimage58849 != yPosrandimage58849)) { xPostrandimage58849 = xPosrandimage58849; yPostrandimage58849 = yPosrandimage58849; wcrandimage58849.style.width = xPosrandimage58849; wcrandimage58849.style.height = yPosrandimage58849; gsrandimage58849 = ""; } clearInterval(bzrandimage58849); } } var tempcount2; var tempcount5; var Car_Image_Sources58849 = new Array(); var FootersAll58849 = new Array(); var myNewWin58849 = new Array(); var imglength58849 = imagesrandimage58849.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_Width58849 = 225; var Car_Image_Height58849 = 200; var Car_Border=false; var Car_Border_Color="white"; var Car_Speed58849 = 3; var Car_Direction58849 = false; var Car_NoOfSides58849 = 8; var tempcounta58849 = 0; var carTimer58849; var tempL58849 = 0; function startItC58849(whichOne) { if (whichOne == 0) { clearTimeout(carTimer58849); Car_Direction58849 = true; } else { clearTimeout(carTimer58849); Car_Direction58849 = false; } carTimer58849 = setTimeout("CarImages58849()",50); } if (imglength58849 < 6) { tempL58849 = 7 - imglength58849; } if (tempL58849 < 1) { tempL58849 = 1; } var mainCount58849 = 0; for (tempcount5 = 0; tempcount5 < tempL58849; tempcount5++) { for (tempcount2 = 0; tempcount2 < imglength58849; tempcount2++) { var tempVal = imagesrandimage58849[tempcount2]; Car_Image_Sources58849[tempcounta58849] = tempVal; FootersAll58849[tempcounta58849] = footersrandimage58849[tempcount2]; myNewWin58849[tempcounta58849] = newwinsrandimage58849[tempcount2]; tempcounta58849++; Car_Image_Sources58849[tempcounta58849] = urlsrandimage58849[tempcount2]; FootersAll58849[tempcounta58849] = footersrandimage58849[tempcount2]; myNewWin58849[tempcounta58849] = newwinsrandimage58849[tempcount2]; tempcounta58849++; mainCount58849++; } } imglength58849 = mainCount58849; CW_I58849 = new Array(Car_NoOfSides58849 / 2+1);C_ClcW58849 = new Array(Car_NoOfSides58849 / 2); C_Coef58849 = 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_CoefOf58849 = Car_NoOfSides58849 == 4?0:Car_NoOfSides58849 == 6 ? 2:Car_NoOfSides58849 == 8?5:9; C_Pre_Img58849 = new Array(Car_Image_Sources58849.length); var C_Angle58849 = Car_Direction58849 ? Math.PI/(Car_NoOfSides58849 / 2):0,C_CrImg58849 = Car_NoOfSides58849,C_MaxW58849,C_TotalW58849,C_Stppd58849=false,i58849,C_LeftOffset58849,C_HalfNo58849 = Car_NoOfSides58849 / 2; function CarouselStart58849(){ if(document.getElementById){ for(i58849=0;i58849 < Car_Image_Sources58849.length; i58849+=2){ C_Pre_Img58849[i58849]=new Image();C_Pre_Img58849[i58849].src=Car_Image_Sources58849[i58849]} C_MaxW58849=Car_Image_Width58849 / Math.sin(Math.PI/Car_NoOfSides58849)+C_HalfNo58849 + 1; Car_Div=document.getElementById("Carousel58849"); for(i58849=0;i58849= Math.PI/C_HalfNo58849)){ if(C_CrImg58849 == Car_Image_Sources58849.length)C_CrImg58849=0; if(Car_Direction58849){ CW_I58849[C_HalfNo58849] = CW_I58849[0]; for(i58849=0;i58849 0;i58849--)CW_I58849[i58849]=CW_I58849[i58849-1]; CW_I58849[0]=CW_I58849[C_HalfNo58849]; CW_I58849[0].src=Car_Image_Sources58849[C_CrImg58849]; CW_I58849[0].lnk=Car_Image_Sources58849[C_CrImg58849+1]; CW_I58849[0].desc=FootersAll58849[C_CrImg58849]; CW_I58849[0].newwin=myNewWin58849[C_CrImg58849]; } C_Angle58849 = Car_Direction58849 ? Math.PI/C_HalfNo58849:0;C_CrImg58849+=2;}} carTimer58849 = setTimeout("CarImages58849()",50);} function C_LdLnk58849(){go_urlrandimage58849(-1,this.newwin,this.lnk,this.src);} function C_Stp58849(){this.style.cursor=this.lnk?"pointer":"default";C_Stppd58849=true;changeTextrandimage58849("divtextrandimage58849",this.desc);} function C_Rstrt58849(){C_Stppd58849=false;changeTextrandimage58849("divtextrandimage58849","");} setTimeout("CarouselStart58849()",100);