var timenowrandimage61585 = 0; var counttimerrandimage61585 = -1; var counttimerlrandimage61585 = counttimerrandimage61585; var timesetrandimage61585 = 10; var nimagerandimage61585 = new Image; var imagesrandimage61585 = new Array('http://www.cgiconnection.com/randimage4/images/sunsetclouds8kv-2.jpg','http://www.cgiconnection.com/randimage4/images/sunsetclouds8kvflip-2.jpg'); var urlsrandimage61585 = new Array('http://','http://'); var timesrandimage61585 = new Array('',''); var newwinsrandimage61585 = new Array('',''); var footersrandimage61585 = new Array('',''); var timerrandimage61585; var timerfrandimage61585; var i = 0; var preloadimgrandimage61585 = 0; var footerrandimage61585 = '
Powered by CGI Connection'; var statusrandimage61585 = ''; var floatidrandimage61585 = 0; var zoomidrandimage61585 = 0; var carrandimage61585 = 1; var fadeSpeedrandimage61585 = 10; var outTime = 2100 - (fadeSpeedrandimage61585 * 35); var objrandimage61585; var opacityrandimage61585; var nsrandimage61585 = document.layers; var ierandimage61585 = document.all; var fadeinvalrandimage61585 = ""; var fadeoutvalrandimage61585 = ""; var sliderandimage61585 = 0; var zfrandimage61585 = 0.075; var ztrandimage61585 = 500; var wcrandimage61585; var Elemrandimage61585; var yPosrandimage61585 = 0; var xPosrandimage61585 = 0; var xPostrandimage61585 = 0; var yPostrandimage61585 = 0; var gsrandimage61585 = ""; if (preloadimgrandimage61585 == 1) { for(i=0; i < imagesrandimage61585.length; i++) { nimagerandimage61585.src = imagesrandimage61585[i]; } } function setOpacrandimage61585(objrandimage61585, opacityrandimage61585) { opacityrandimage61585 = (opacityrandimage61585 == 100)?99.999:opacityrandimage61585; if (nsrandimage61585) { objrandimage61585.style.MozOpacity = opacityrandimage61585/100; } else if (ierandimage61585) { objrandimage61585.style.filter = "alpha(opacity:"+opacityrandimage61585+")"; } else { objrandimage61585.style.opacity = opacityrandimage61585/100; } } function fadeInrandimage61585(objIdrandimage61585,opacityrandimage61585) { if (document.getElementById) { objrandimage61585 = document.getElementById(objIdrandimage61585); if (opacityrandimage61585 <= 100) { setOpacrandimage61585(objrandimage61585, opacityrandimage61585); opacityrandimage61585 += fadeSpeedrandimage61585; window.setTimeout("fadeInrandimage61585('" + objIdrandimage61585 +"',"+opacityrandimage61585+")", 100); } else { setOpacrandimage61585(objrandimage61585, 100); } } } function fadeOutrandimage61585(objIdrandimage61585,opacityrandimage61585) { if (document.getElementById) { objrandimage61585 = document.getElementById(objIdrandimage61585); if (opacityrandimage61585 >= 0) { setOpacrandimage61585(objrandimage61585, opacityrandimage61585); opacityrandimage61585 = opacityrandimage61585 - fadeSpeedrandimage61585; window.setTimeout("fadeOutrandimage61585('" + objIdrandimage61585 +"',"+opacityrandimage61585+")", 100); } else { setOpacrandimage61585(objrandimage61585, 0); } } } function changeTextrandimage61585(div_id,val){ elm=document.getElementById(div_id); elm.innerHTML = '

' + val + footerrandimage61585 + '

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

'); document.write(''); document.write(''); } if (sliderandimage61585 == 1 || carrandimage61585 == 1) { document.write(''); } else { document.write(''); } document.write('

'); document.write('
'); if (carrandimage61585 == 1) { document.write('
'); } if (sliderandimage61585 == 1) { document.write('
'); document.write('
'); document.write('
'); document.write('
'); } if (sliderandimage61585 != 1 && carrandimage61585 != 1) { if (zoomidrandimage61585 == 0) { document.write(''); } else { document.write(''); } document.write('
'); document.write('
' + footerrandimage61585 + '
'); if (floatidrandimage61585 == 1) { document.write('

'); } var imageIdrandimage61585 = 'randimage61585'; var imageElemrandimage61585 = document.getElementById(imageIdrandimage61585); var tempURLnum; function go_urlrandimage61585(tempURLnum,openinnew,templink,tempsrc) { window.status = statusrandimage61585; var myURL = ""; var isNew = ""; var mySRC = ""; var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi"; var recURL61585 = 0; if (tempURLnum > 0) { counttimerrandimage61585 = tempURLnum - 1; } if (tempURLnum == -1) { myURL = templink; mySRC = tempsrc; isNew = openinnew; } else { myURL = urlsrandimage61585[counttimerrandimage61585]; mySRC = imagesrandimage61585[counttimerrandimage61585]; isNew = newwinsrandimage61585[counttimerrandimage61585]; } if (myURL != "" && myURL != "http://") { if (recURL61585 == 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_backrandimage61585() { clearTimeout(timerfrandimage61585); window.status = statusrandimage61585; counttimerlrandimage61585 = counttimerrandimage61585; counttimerrandimage61585 = counttimerrandimage61585 - 1; begin_imagerandimage61585(1); } function go_nextrandimage61585() { clearTimeout(timerfrandimage61585); window.status = statusrandimage61585; counttimerlrandimage61585 = counttimerrandimage61585; counttimerrandimage61585++; begin_imagerandimage61585(1); } function begin_imagerandimage61585(doit) { if (counttimerrandimage61585 >= (imagesrandimage61585.length - 1)) { if (doit < 1) { counttimerrandimage61585 = 0; } } else { if (doit < 1) { counttimerrandimage61585++; } } if (counttimerrandimage61585 < 0 && doit == 1) { counttimerrandimage61585 = imagesrandimage61585.length - 1; } if (counttimerrandimage61585 > (imagesrandimage61585.length - 1) && doit == 1) { counttimerrandimage61585 = 0; } var tempTime = timesrandimage61585[counttimerrandimage61585]; if (tempTime < 1) { tempTime = timesetrandimage61585; } tempTime = tempTime * 1000; if (fadeinvalrandimage61585 == 'Y') { setOpacrandimage61585(imageElemrandimage61585, 0); } if (fadeinvalrandimage61585 == '' && fadeoutvalrandimage61585 == 'Y') { setOpacrandimage61585(imageElemrandimage61585, 100); } nimagerandimage61585.src = imagesrandimage61585[counttimerrandimage61585]; document.randimage61585.src = nimagerandimage61585.src; changeTextrandimage61585("divtextrandimage61585",footersrandimage61585[counttimerrandimage61585]); if (fadeinvalrandimage61585 == 'Y') { fadeInrandimage61585(imageIdrandimage61585,0); } if (fadeoutvalrandimage61585 == 'Y') { timerfrandimage61585 = setTimeout('fadeOutrandimage61585(imageIdrandimage61585,100);', (tempTime - outTime)); } clearTimeout(timerrandimage61585); timerrandimage61585 = setTimeout('begin_imagerandimage61585(0);', tempTime); } function dimsrandimage61585(Elemrandimage61585) { 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 (xPosrandimage61585 > 0) { xPostrandimage61585 = xPosrandimage61585; yPostrandimage61585 = yPosrandimage61585; wcrandimage61585.style.width = xPosrandimage61585; wcrandimage61585.style.height = yPosrandimage61585; } if (ns4) { var Elemrandimage61585 = getObjNN4(document, Elemrandimage61585); yPosrandimage61585 = Elemrandimage61585.clip.height; xPosrandimage61585 = Elemrandimage61585.clip.width; return; } else { var Elemrandimage61585; if(document.getElementById) { var Elemrandimage61585 = document.getElementById(Elemrandimage61585); } else if (document.all) { var Elemrandimage61585 = document.all[Elemrandimage61585]; } } if (op5) { yPosrandimage61585 = Elemrandimage61585.style.pixelHeight; xPosrandimage61585 = Elemrandimage61585.style.pixelWidth; } else { yPosrandimage61585 = Elemrandimage61585.offsetHeight; xPosrandimage61585 = Elemrandimage61585.offsetWidth; } } function znrandimage61585() { clearTimeout(timerrandimage61585); clearTimeout(timerfrandimage61585); czrandimage61585(); if (xPosrandimage61585 > 0) { wcrandimage61585.style.width = xPosrandimage61585; wcrandimage61585.style.height = yPosrandimage61585; } dimsrandimage61585("randimage61585"); window.status=statusrandimage61585; zoomrandimage61585(xPosrandimage61585,yPosrandimage61585,'randimage61585','in'); timerrandimage61585 = setTimeout("czrandimage61585();", ztrandimage61585); } function zbrandimage61585() { xPostrandimage61585 = xPosrandimage61585; yPostrandimage61585 = yPosrandimage61585; clearTimeout(timerrandimage61585); czrandimage61585(); setOpacrandimage61585(imageElemrandimage61585, 100); zoomrandimage61585(xPosrandimage61585,yPosrandimage61585,'randimage61585','out'); timerrandimage61585 = setTimeout('begin_imagerandimage61585(0);', counttimerlrandimage61585); } function zhrandimage61585(){ if (gsrandimage61585 == "out" && (xPostrandimage61585 < xPosrandimage61585 || yPostrandimage61585 < yPosrandimage61585)) { setOpacrandimage61585(imageElemrandimage61585, 100); xPostrandimage61585 = xPosrandimage61585; yPostrandimage61585 = yPosrandimage61585; wcrandimage61585.style.width = xPosrandimage61585; wcrandimage61585.style.height = yPosrandimage61585; gsrandimage61585 = ""; czrandimage61585(); return; } if (parseInt(wcrandimage61585.style.width)>10&&parseInt(wcrandimage61585.style.height)>10) { xPostrandimage61585 = parseInt(wcrandimage61585.style.width) + parseInt(wcrandimage61585.style.width) * zfrandimage61585 * pfrandimage61585; yPostrandimage61585 = parseInt(wcrandimage61585.style.height) + parseInt(wcrandimage61585.style.height) * zfrandimage61585 * pfrandimage61585; wcrandimage61585.style.width = xPostrandimage61585; wcrandimage61585.style.height = yPostrandimage61585; } } function zoomrandimage61585(originalW, originalH, what, state){ gsrandimage61585 = state; if (!document.all&&!document.getElementById) { return; } wcrandimage61585 = eval("document.images."+what); pfrandimage61585 = (state=="in")? 1 : -1; if (wcrandimage61585.style.width=="") { wcrandimage61585.style.width=originalW; wcrandimage61585.style.height=originalH; } if (state=="restore"){ xPostrandimage61585 = xPosrandimage61585; yPostrandimage61585 = yPosrandimage61585; wcrandimage61585.style.width=originalW; wcrandimage61585.style.height=originalH; czrandimage61585(); return; } else { zhrandimage61585(); } bzrandimage61585 = setInterval("zhrandimage61585()",100); } function czrandimage61585(){ if (window.bzrandimage61585) { if (gsrandimage61585 != "in" && (xPostrandimage61585 != xPosrandimage61585 || yPostrandimage61585 != yPosrandimage61585)) { xPostrandimage61585 = xPosrandimage61585; yPostrandimage61585 = yPosrandimage61585; wcrandimage61585.style.width = xPosrandimage61585; wcrandimage61585.style.height = yPosrandimage61585; gsrandimage61585 = ""; } clearInterval(bzrandimage61585); } } var tempcount2; var tempcount5; var Car_Image_Sources61585 = new Array(); var FootersAll61585 = new Array(); var myNewWin61585 = new Array(); var imglength61585 = imagesrandimage61585.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_Width61585 = 300; var Car_Image_Height61585 = 220; var Car_Border=false; var Car_Border_Color="white"; var Car_Speed61585 = 2; var Car_Direction61585 = false; var Car_NoOfSides61585 = 6; var tempcounta61585 = 0; var carTimer61585; var tempL61585 = 0; function startItC61585(whichOne) { if (whichOne == 0) { clearTimeout(carTimer61585); Car_Direction61585 = true; } else { clearTimeout(carTimer61585); Car_Direction61585 = false; } carTimer61585 = setTimeout("CarImages61585()",50); } if (imglength61585 < 6) { tempL61585 = 7 - imglength61585; } if (tempL61585 < 1) { tempL61585 = 1; } var mainCount61585 = 0; for (tempcount5 = 0; tempcount5 < tempL61585; tempcount5++) { for (tempcount2 = 0; tempcount2 < imglength61585; tempcount2++) { var tempVal = imagesrandimage61585[tempcount2]; Car_Image_Sources61585[tempcounta61585] = tempVal; FootersAll61585[tempcounta61585] = footersrandimage61585[tempcount2]; myNewWin61585[tempcounta61585] = newwinsrandimage61585[tempcount2]; tempcounta61585++; Car_Image_Sources61585[tempcounta61585] = urlsrandimage61585[tempcount2]; FootersAll61585[tempcounta61585] = footersrandimage61585[tempcount2]; myNewWin61585[tempcounta61585] = newwinsrandimage61585[tempcount2]; tempcounta61585++; mainCount61585++; } } imglength61585 = mainCount61585; CW_I61585 = new Array(Car_NoOfSides61585 / 2+1);C_ClcW61585 = new Array(Car_NoOfSides61585 / 2); C_Coef61585 = 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_CoefOf61585 = Car_NoOfSides61585 == 4?0:Car_NoOfSides61585 == 6 ? 2:Car_NoOfSides61585 == 8?5:9; C_Pre_Img61585 = new Array(Car_Image_Sources61585.length); var C_Angle61585 = Car_Direction61585 ? Math.PI/(Car_NoOfSides61585 / 2):0,C_CrImg61585 = Car_NoOfSides61585,C_MaxW61585,C_TotalW61585,C_Stppd61585=false,i61585,C_LeftOffset61585,C_HalfNo61585 = Car_NoOfSides61585 / 2; function CarouselStart61585(){ if(document.getElementById){ for(i61585=0;i61585 < Car_Image_Sources61585.length; i61585+=2){ C_Pre_Img61585[i61585]=new Image();C_Pre_Img61585[i61585].src=Car_Image_Sources61585[i61585]} C_MaxW61585=Car_Image_Width61585 / Math.sin(Math.PI/Car_NoOfSides61585)+C_HalfNo61585 + 1; Car_Div=document.getElementById("Carousel61585"); for(i61585=0;i61585= Math.PI/C_HalfNo61585)){ if(C_CrImg61585 == Car_Image_Sources61585.length)C_CrImg61585=0; if(Car_Direction61585){ CW_I61585[C_HalfNo61585] = CW_I61585[0]; for(i61585=0;i61585 0;i61585--)CW_I61585[i61585]=CW_I61585[i61585-1]; CW_I61585[0]=CW_I61585[C_HalfNo61585]; CW_I61585[0].src=Car_Image_Sources61585[C_CrImg61585]; CW_I61585[0].lnk=Car_Image_Sources61585[C_CrImg61585+1]; CW_I61585[0].desc=FootersAll61585[C_CrImg61585]; CW_I61585[0].newwin=myNewWin61585[C_CrImg61585]; } C_Angle61585 = Car_Direction61585 ? Math.PI/C_HalfNo61585:0;C_CrImg61585+=2;}} carTimer61585 = setTimeout("CarImages61585()",50);} function C_LdLnk61585(){go_urlrandimage61585(-1,this.newwin,this.lnk,this.src);} function C_Stp61585(){this.style.cursor=this.lnk?"pointer":"default";C_Stppd61585=true;changeTextrandimage61585("divtextrandimage61585",this.desc);} function C_Rstrt61585(){C_Stppd61585=false;changeTextrandimage61585("divtextrandimage61585","");} setTimeout("CarouselStart61585()",100);