var timenowrandimage14228 = 0; var counttimerrandimage14228 = -1; var counttimerlrandimage14228 = counttimerrandimage14228; var timesetrandimage14228 = 10; var nimagerandimage14228 = new Image; var imagesrandimage14228 = new Array('http://www.cgiconnection.com/randimage4/images/sunsetclouds8kv-2.jpg','http://www.cgiconnection.com/randimage4/images/sunsetclouds8kvflip-2.jpg'); var urlsrandimage14228 = new Array('http://','http://'); var timesrandimage14228 = new Array('',''); var newwinsrandimage14228 = new Array('',''); var footersrandimage14228 = new Array('',''); var timerrandimage14228; var timerfrandimage14228; var i = 0; var preloadimgrandimage14228 = 0; var footerrandimage14228 = '
Powered by CGI Connection'; var statusrandimage14228 = ''; var floatidrandimage14228 = 0; var zoomidrandimage14228 = 0; var carrandimage14228 = 1; var fadeSpeedrandimage14228 = 10; var outTime = 2100 - (fadeSpeedrandimage14228 * 35); var objrandimage14228; var opacityrandimage14228; var nsrandimage14228 = document.layers; var ierandimage14228 = document.all; var fadeinvalrandimage14228 = ""; var fadeoutvalrandimage14228 = ""; var sliderandimage14228 = 0; var zfrandimage14228 = 0.075; var ztrandimage14228 = 500; var wcrandimage14228; var Elemrandimage14228; var yPosrandimage14228 = 0; var xPosrandimage14228 = 0; var xPostrandimage14228 = 0; var yPostrandimage14228 = 0; var gsrandimage14228 = ""; if (preloadimgrandimage14228 == 1) { for(i=0; i < imagesrandimage14228.length; i++) { nimagerandimage14228.src = imagesrandimage14228[i]; } } function setOpacrandimage14228(objrandimage14228, opacityrandimage14228) { opacityrandimage14228 = (opacityrandimage14228 == 100)?99.999:opacityrandimage14228; if (nsrandimage14228) { objrandimage14228.style.MozOpacity = opacityrandimage14228/100; } else if (ierandimage14228) { objrandimage14228.style.filter = "alpha(opacity:"+opacityrandimage14228+")"; } else { objrandimage14228.style.opacity = opacityrandimage14228/100; } } function fadeInrandimage14228(objIdrandimage14228,opacityrandimage14228) { if (document.getElementById) { objrandimage14228 = document.getElementById(objIdrandimage14228); if (opacityrandimage14228 <= 100) { setOpacrandimage14228(objrandimage14228, opacityrandimage14228); opacityrandimage14228 += fadeSpeedrandimage14228; window.setTimeout("fadeInrandimage14228('" + objIdrandimage14228 +"',"+opacityrandimage14228+")", 100); } else { setOpacrandimage14228(objrandimage14228, 100); } } } function fadeOutrandimage14228(objIdrandimage14228,opacityrandimage14228) { if (document.getElementById) { objrandimage14228 = document.getElementById(objIdrandimage14228); if (opacityrandimage14228 >= 0) { setOpacrandimage14228(objrandimage14228, opacityrandimage14228); opacityrandimage14228 = opacityrandimage14228 - fadeSpeedrandimage14228; window.setTimeout("fadeOutrandimage14228('" + objIdrandimage14228 +"',"+opacityrandimage14228+")", 100); } else { setOpacrandimage14228(objrandimage14228, 0); } } } function changeTextrandimage14228(div_id,val){ elm=document.getElementById(div_id); elm.innerHTML = '

' + val + footerrandimage14228 + '

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

'); document.write(''); document.write(''); } if (sliderandimage14228 == 1 || carrandimage14228 == 1) { document.write(''); } else { document.write(''); } document.write('

'); document.write('
'); if (carrandimage14228 == 1) { document.write('
'); } if (sliderandimage14228 == 1) { document.write('
'); document.write('
'); document.write('
'); document.write('
'); } if (sliderandimage14228 != 1 && carrandimage14228 != 1) { if (zoomidrandimage14228 == 0) { document.write(''); } else { document.write(''); } document.write('
'); document.write('
' + footerrandimage14228 + '
'); if (floatidrandimage14228 == 1) { document.write('

'); } var imageIdrandimage14228 = 'randimage14228'; var imageElemrandimage14228 = document.getElementById(imageIdrandimage14228); var tempURLnum; function go_urlrandimage14228(tempURLnum,openinnew,templink,tempsrc) { window.status = statusrandimage14228; var myURL = ""; var isNew = ""; var mySRC = ""; var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi"; var recURL14228 = 0; if (tempURLnum > 0) { counttimerrandimage14228 = tempURLnum - 1; } if (tempURLnum == -1) { myURL = templink; mySRC = tempsrc; isNew = openinnew; } else { myURL = urlsrandimage14228[counttimerrandimage14228]; mySRC = imagesrandimage14228[counttimerrandimage14228]; isNew = newwinsrandimage14228[counttimerrandimage14228]; } if (myURL != "" && myURL != "http://") { if (recURL14228 == 1) { myURL = mainURL + '?filename=sunset&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_backrandimage14228() { clearTimeout(timerfrandimage14228); window.status = statusrandimage14228; counttimerlrandimage14228 = counttimerrandimage14228; counttimerrandimage14228 = counttimerrandimage14228 - 1; begin_imagerandimage14228(1); } function go_nextrandimage14228() { clearTimeout(timerfrandimage14228); window.status = statusrandimage14228; counttimerlrandimage14228 = counttimerrandimage14228; counttimerrandimage14228++; begin_imagerandimage14228(1); } function begin_imagerandimage14228(doit) { if (counttimerrandimage14228 >= (imagesrandimage14228.length - 1)) { if (doit < 1) { counttimerrandimage14228 = 0; } } else { if (doit < 1) { counttimerrandimage14228++; } } if (counttimerrandimage14228 < 0 && doit == 1) { counttimerrandimage14228 = imagesrandimage14228.length - 1; } if (counttimerrandimage14228 > (imagesrandimage14228.length - 1) && doit == 1) { counttimerrandimage14228 = 0; } var tempTime = timesrandimage14228[counttimerrandimage14228]; if (tempTime < 1) { tempTime = timesetrandimage14228; } tempTime = tempTime * 1000; if (fadeinvalrandimage14228 == 'Y') { setOpacrandimage14228(imageElemrandimage14228, 0); } if (fadeinvalrandimage14228 == '' && fadeoutvalrandimage14228 == 'Y') { setOpacrandimage14228(imageElemrandimage14228, 100); } nimagerandimage14228.src = imagesrandimage14228[counttimerrandimage14228]; document.randimage14228.src = nimagerandimage14228.src; changeTextrandimage14228("divtextrandimage14228",footersrandimage14228[counttimerrandimage14228]); if (fadeinvalrandimage14228 == 'Y') { fadeInrandimage14228(imageIdrandimage14228,0); } if (fadeoutvalrandimage14228 == 'Y') { timerfrandimage14228 = setTimeout('fadeOutrandimage14228(imageIdrandimage14228,100);', (tempTime - outTime)); } clearTimeout(timerrandimage14228); timerrandimage14228 = setTimeout('begin_imagerandimage14228(0);', tempTime); } function dimsrandimage14228(Elemrandimage14228) { 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 (xPosrandimage14228 > 0) { xPostrandimage14228 = xPosrandimage14228; yPostrandimage14228 = yPosrandimage14228; wcrandimage14228.style.width = xPosrandimage14228; wcrandimage14228.style.height = yPosrandimage14228; } if (ns4) { var Elemrandimage14228 = getObjNN4(document, Elemrandimage14228); yPosrandimage14228 = Elemrandimage14228.clip.height; xPosrandimage14228 = Elemrandimage14228.clip.width; return; } else { var Elemrandimage14228; if(document.getElementById) { var Elemrandimage14228 = document.getElementById(Elemrandimage14228); } else if (document.all) { var Elemrandimage14228 = document.all[Elemrandimage14228]; } } if (op5) { yPosrandimage14228 = Elemrandimage14228.style.pixelHeight; xPosrandimage14228 = Elemrandimage14228.style.pixelWidth; } else { yPosrandimage14228 = Elemrandimage14228.offsetHeight; xPosrandimage14228 = Elemrandimage14228.offsetWidth; } } function znrandimage14228() { clearTimeout(timerrandimage14228); clearTimeout(timerfrandimage14228); czrandimage14228(); if (xPosrandimage14228 > 0) { wcrandimage14228.style.width = xPosrandimage14228; wcrandimage14228.style.height = yPosrandimage14228; } dimsrandimage14228("randimage14228"); window.status=statusrandimage14228; zoomrandimage14228(xPosrandimage14228,yPosrandimage14228,'randimage14228','in'); timerrandimage14228 = setTimeout("czrandimage14228();", ztrandimage14228); } function zbrandimage14228() { xPostrandimage14228 = xPosrandimage14228; yPostrandimage14228 = yPosrandimage14228; clearTimeout(timerrandimage14228); czrandimage14228(); setOpacrandimage14228(imageElemrandimage14228, 100); zoomrandimage14228(xPosrandimage14228,yPosrandimage14228,'randimage14228','out'); timerrandimage14228 = setTimeout('begin_imagerandimage14228(0);', counttimerlrandimage14228); } function zhrandimage14228(){ if (gsrandimage14228 == "out" && (xPostrandimage14228 < xPosrandimage14228 || yPostrandimage14228 < yPosrandimage14228)) { setOpacrandimage14228(imageElemrandimage14228, 100); xPostrandimage14228 = xPosrandimage14228; yPostrandimage14228 = yPosrandimage14228; wcrandimage14228.style.width = xPosrandimage14228; wcrandimage14228.style.height = yPosrandimage14228; gsrandimage14228 = ""; czrandimage14228(); return; } if (parseInt(wcrandimage14228.style.width)>10&&parseInt(wcrandimage14228.style.height)>10) { xPostrandimage14228 = parseInt(wcrandimage14228.style.width) + parseInt(wcrandimage14228.style.width) * zfrandimage14228 * pfrandimage14228; yPostrandimage14228 = parseInt(wcrandimage14228.style.height) + parseInt(wcrandimage14228.style.height) * zfrandimage14228 * pfrandimage14228; wcrandimage14228.style.width = xPostrandimage14228; wcrandimage14228.style.height = yPostrandimage14228; } } function zoomrandimage14228(originalW, originalH, what, state){ gsrandimage14228 = state; if (!document.all&&!document.getElementById) { return; } wcrandimage14228 = eval("document.images."+what); pfrandimage14228 = (state=="in")? 1 : -1; if (wcrandimage14228.style.width=="") { wcrandimage14228.style.width=originalW; wcrandimage14228.style.height=originalH; } if (state=="restore"){ xPostrandimage14228 = xPosrandimage14228; yPostrandimage14228 = yPosrandimage14228; wcrandimage14228.style.width=originalW; wcrandimage14228.style.height=originalH; czrandimage14228(); return; } else { zhrandimage14228(); } bzrandimage14228 = setInterval("zhrandimage14228()",100); } function czrandimage14228(){ if (window.bzrandimage14228) { if (gsrandimage14228 != "in" && (xPostrandimage14228 != xPosrandimage14228 || yPostrandimage14228 != yPosrandimage14228)) { xPostrandimage14228 = xPosrandimage14228; yPostrandimage14228 = yPosrandimage14228; wcrandimage14228.style.width = xPosrandimage14228; wcrandimage14228.style.height = yPosrandimage14228; gsrandimage14228 = ""; } clearInterval(bzrandimage14228); } } var tempcount2; var tempcount5; var Car_Image_Sources14228 = new Array(); var FootersAll14228 = new Array(); var myNewWin14228 = new Array(); var imglength14228 = imagesrandimage14228.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_Width14228 = 300; var Car_Image_Height14228 = 220; var Car_Border=false; var Car_Border_Color="white"; var Car_Speed14228 = 2; var Car_Direction14228 = false; var Car_NoOfSides14228 = 6; var tempcounta14228 = 0; var carTimer14228; var tempL14228 = 0; function startItC14228(whichOne) { if (whichOne == 0) { clearTimeout(carTimer14228); Car_Direction14228 = true; } else { clearTimeout(carTimer14228); Car_Direction14228 = false; } carTimer14228 = setTimeout("CarImages14228()",50); } if (imglength14228 < 6) { tempL14228 = 7 - imglength14228; } if (tempL14228 < 1) { tempL14228 = 1; } var mainCount14228 = 0; for (tempcount5 = 0; tempcount5 < tempL14228; tempcount5++) { for (tempcount2 = 0; tempcount2 < imglength14228; tempcount2++) { var tempVal = imagesrandimage14228[tempcount2]; Car_Image_Sources14228[tempcounta14228] = tempVal; FootersAll14228[tempcounta14228] = footersrandimage14228[tempcount2]; myNewWin14228[tempcounta14228] = newwinsrandimage14228[tempcount2]; tempcounta14228++; Car_Image_Sources14228[tempcounta14228] = urlsrandimage14228[tempcount2]; FootersAll14228[tempcounta14228] = footersrandimage14228[tempcount2]; myNewWin14228[tempcounta14228] = newwinsrandimage14228[tempcount2]; tempcounta14228++; mainCount14228++; } } imglength14228 = mainCount14228; CW_I14228 = new Array(Car_NoOfSides14228 / 2+1);C_ClcW14228 = new Array(Car_NoOfSides14228 / 2); C_Coef14228 = 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_CoefOf14228 = Car_NoOfSides14228 == 4?0:Car_NoOfSides14228 == 6 ? 2:Car_NoOfSides14228 == 8?5:9; C_Pre_Img14228 = new Array(Car_Image_Sources14228.length); var C_Angle14228 = Car_Direction14228 ? Math.PI/(Car_NoOfSides14228 / 2):0,C_CrImg14228 = Car_NoOfSides14228,C_MaxW14228,C_TotalW14228,C_Stppd14228=false,i14228,C_LeftOffset14228,C_HalfNo14228 = Car_NoOfSides14228 / 2; function CarouselStart14228(){ if(document.getElementById){ for(i14228=0;i14228 < Car_Image_Sources14228.length; i14228+=2){ C_Pre_Img14228[i14228]=new Image();C_Pre_Img14228[i14228].src=Car_Image_Sources14228[i14228]} C_MaxW14228=Car_Image_Width14228 / Math.sin(Math.PI/Car_NoOfSides14228)+C_HalfNo14228 + 1; Car_Div=document.getElementById("Carousel14228"); for(i14228=0;i14228= Math.PI/C_HalfNo14228)){ if(C_CrImg14228 == Car_Image_Sources14228.length)C_CrImg14228=0; if(Car_Direction14228){ CW_I14228[C_HalfNo14228] = CW_I14228[0]; for(i14228=0;i14228 0;i14228--)CW_I14228[i14228]=CW_I14228[i14228-1]; CW_I14228[0]=CW_I14228[C_HalfNo14228]; CW_I14228[0].src=Car_Image_Sources14228[C_CrImg14228]; CW_I14228[0].lnk=Car_Image_Sources14228[C_CrImg14228+1]; CW_I14228[0].desc=FootersAll14228[C_CrImg14228]; CW_I14228[0].newwin=myNewWin14228[C_CrImg14228]; } C_Angle14228 = Car_Direction14228 ? Math.PI/C_HalfNo14228:0;C_CrImg14228+=2;}} carTimer14228 = setTimeout("CarImages14228()",50);} function C_LdLnk14228(){go_urlrandimage14228(-1,this.newwin,this.lnk,this.src);} function C_Stp14228(){this.style.cursor=this.lnk?"pointer":"default";C_Stppd14228=true;changeTextrandimage14228("divtextrandimage14228",this.desc);} function C_Rstrt14228(){C_Stppd14228=false;changeTextrandimage14228("divtextrandimage14228","");} setTimeout("CarouselStart14228()",100);