var timenowrandimage7898 = 0; var counttimerrandimage7898 = -1; var counttimerlrandimage7898 = counttimerrandimage7898; var timesetrandimage7898 = 10; var nimagerandimage7898 = new Image; var imagesrandimage7898 = new Array('http://www.cgiconnection.com/randimage4/images/newzealand13-2.jpg','http://www.cgiconnection.com/randimage4/images/newzealand13flip-2.jpg'); var urlsrandimage7898 = new Array('http://','http://'); var timesrandimage7898 = new Array('',''); var newwinsrandimage7898 = new Array('',''); var footersrandimage7898 = new Array('',''); var timerrandimage7898; var timerfrandimage7898; var i = 0; var preloadimgrandimage7898 = 0; var footerrandimage7898 = '
Powered by CGI Connection'; var statusrandimage7898 = ''; var floatidrandimage7898 = 0; var zoomidrandimage7898 = 0; var carrandimage7898 = 1; var fadeSpeedrandimage7898 = 10; var outTime = 2100 - (fadeSpeedrandimage7898 * 35); var objrandimage7898; var opacityrandimage7898; var nsrandimage7898 = document.layers; var ierandimage7898 = document.all; var fadeinvalrandimage7898 = ""; var fadeoutvalrandimage7898 = ""; var sliderandimage7898 = 0; var zfrandimage7898 = 0.075; var ztrandimage7898 = 500; var wcrandimage7898; var Elemrandimage7898; var yPosrandimage7898 = 0; var xPosrandimage7898 = 0; var xPostrandimage7898 = 0; var yPostrandimage7898 = 0; var gsrandimage7898 = ""; if (preloadimgrandimage7898 == 1) { for(i=0; i < imagesrandimage7898.length; i++) { nimagerandimage7898.src = imagesrandimage7898[i]; } } function setOpacrandimage7898(objrandimage7898, opacityrandimage7898) { opacityrandimage7898 = (opacityrandimage7898 == 100)?99.999:opacityrandimage7898; if (nsrandimage7898) { objrandimage7898.style.MozOpacity = opacityrandimage7898/100; } else if (ierandimage7898) { objrandimage7898.style.filter = "alpha(opacity:"+opacityrandimage7898+")"; } else { objrandimage7898.style.opacity = opacityrandimage7898/100; } } function fadeInrandimage7898(objIdrandimage7898,opacityrandimage7898) { if (document.getElementById) { objrandimage7898 = document.getElementById(objIdrandimage7898); if (opacityrandimage7898 <= 100) { setOpacrandimage7898(objrandimage7898, opacityrandimage7898); opacityrandimage7898 += fadeSpeedrandimage7898; window.setTimeout("fadeInrandimage7898('" + objIdrandimage7898 +"',"+opacityrandimage7898+")", 100); } else { setOpacrandimage7898(objrandimage7898, 100); } } } function fadeOutrandimage7898(objIdrandimage7898,opacityrandimage7898) { if (document.getElementById) { objrandimage7898 = document.getElementById(objIdrandimage7898); if (opacityrandimage7898 >= 0) { setOpacrandimage7898(objrandimage7898, opacityrandimage7898); opacityrandimage7898 = opacityrandimage7898 - fadeSpeedrandimage7898; window.setTimeout("fadeOutrandimage7898('" + objIdrandimage7898 +"',"+opacityrandimage7898+")", 100); } else { setOpacrandimage7898(objrandimage7898, 0); } } } function changeTextrandimage7898(div_id,val){ elm=document.getElementById(div_id); elm.innerHTML = '

' + val + footerrandimage7898 + '

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

'); document.write(''); document.write(''); } if (sliderandimage7898 == 1 || carrandimage7898 == 1) { document.write(''); } else { document.write(''); } document.write('

'); document.write('
'); if (carrandimage7898 == 1) { document.write('
'); } if (sliderandimage7898 == 1) { document.write('
'); document.write('
'); document.write('
'); document.write('
'); } if (sliderandimage7898 != 1 && carrandimage7898 != 1) { if (zoomidrandimage7898 == 0) { document.write(''); } else { document.write(''); } document.write('
'); document.write('
' + footerrandimage7898 + '
'); if (floatidrandimage7898 == 1) { document.write('

'); } var imageIdrandimage7898 = 'randimage7898'; var imageElemrandimage7898 = document.getElementById(imageIdrandimage7898); var tempURLnum; function go_urlrandimage7898(tempURLnum,openinnew,templink,tempsrc) { window.status = statusrandimage7898; var myURL = ""; var isNew = ""; var mySRC = ""; var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi"; var recURL7898 = 0; if (tempURLnum > 0) { counttimerrandimage7898 = tempURLnum - 1; } if (tempURLnum == -1) { myURL = templink; mySRC = tempsrc; isNew = openinnew; } else { myURL = urlsrandimage7898[counttimerrandimage7898]; mySRC = imagesrandimage7898[counttimerrandimage7898]; isNew = newwinsrandimage7898[counttimerrandimage7898]; } if (myURL != "" && myURL != "http://") { if (recURL7898 == 1) { myURL = mainURL + '?filename=new_zealand&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_backrandimage7898() { clearTimeout(timerfrandimage7898); window.status = statusrandimage7898; counttimerlrandimage7898 = counttimerrandimage7898; counttimerrandimage7898 = counttimerrandimage7898 - 1; begin_imagerandimage7898(1); } function go_nextrandimage7898() { clearTimeout(timerfrandimage7898); window.status = statusrandimage7898; counttimerlrandimage7898 = counttimerrandimage7898; counttimerrandimage7898++; begin_imagerandimage7898(1); } function begin_imagerandimage7898(doit) { if (counttimerrandimage7898 >= (imagesrandimage7898.length - 1)) { if (doit < 1) { counttimerrandimage7898 = 0; } } else { if (doit < 1) { counttimerrandimage7898++; } } if (counttimerrandimage7898 < 0 && doit == 1) { counttimerrandimage7898 = imagesrandimage7898.length - 1; } if (counttimerrandimage7898 > (imagesrandimage7898.length - 1) && doit == 1) { counttimerrandimage7898 = 0; } var tempTime = timesrandimage7898[counttimerrandimage7898]; if (tempTime < 1) { tempTime = timesetrandimage7898; } tempTime = tempTime * 1000; if (fadeinvalrandimage7898 == 'Y') { setOpacrandimage7898(imageElemrandimage7898, 0); } if (fadeinvalrandimage7898 == '' && fadeoutvalrandimage7898 == 'Y') { setOpacrandimage7898(imageElemrandimage7898, 100); } nimagerandimage7898.src = imagesrandimage7898[counttimerrandimage7898]; document.randimage7898.src = nimagerandimage7898.src; changeTextrandimage7898("divtextrandimage7898",footersrandimage7898[counttimerrandimage7898]); if (fadeinvalrandimage7898 == 'Y') { fadeInrandimage7898(imageIdrandimage7898,0); } if (fadeoutvalrandimage7898 == 'Y') { timerfrandimage7898 = setTimeout('fadeOutrandimage7898(imageIdrandimage7898,100);', (tempTime - outTime)); } clearTimeout(timerrandimage7898); timerrandimage7898 = setTimeout('begin_imagerandimage7898(0);', tempTime); } function dimsrandimage7898(Elemrandimage7898) { 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 (xPosrandimage7898 > 0) { xPostrandimage7898 = xPosrandimage7898; yPostrandimage7898 = yPosrandimage7898; wcrandimage7898.style.width = xPosrandimage7898; wcrandimage7898.style.height = yPosrandimage7898; } if (ns4) { var Elemrandimage7898 = getObjNN4(document, Elemrandimage7898); yPosrandimage7898 = Elemrandimage7898.clip.height; xPosrandimage7898 = Elemrandimage7898.clip.width; return; } else { var Elemrandimage7898; if(document.getElementById) { var Elemrandimage7898 = document.getElementById(Elemrandimage7898); } else if (document.all) { var Elemrandimage7898 = document.all[Elemrandimage7898]; } } if (op5) { yPosrandimage7898 = Elemrandimage7898.style.pixelHeight; xPosrandimage7898 = Elemrandimage7898.style.pixelWidth; } else { yPosrandimage7898 = Elemrandimage7898.offsetHeight; xPosrandimage7898 = Elemrandimage7898.offsetWidth; } } function znrandimage7898() { clearTimeout(timerrandimage7898); clearTimeout(timerfrandimage7898); czrandimage7898(); if (xPosrandimage7898 > 0) { wcrandimage7898.style.width = xPosrandimage7898; wcrandimage7898.style.height = yPosrandimage7898; } dimsrandimage7898("randimage7898"); window.status=statusrandimage7898; zoomrandimage7898(xPosrandimage7898,yPosrandimage7898,'randimage7898','in'); timerrandimage7898 = setTimeout("czrandimage7898();", ztrandimage7898); } function zbrandimage7898() { xPostrandimage7898 = xPosrandimage7898; yPostrandimage7898 = yPosrandimage7898; clearTimeout(timerrandimage7898); czrandimage7898(); setOpacrandimage7898(imageElemrandimage7898, 100); zoomrandimage7898(xPosrandimage7898,yPosrandimage7898,'randimage7898','out'); timerrandimage7898 = setTimeout('begin_imagerandimage7898(0);', counttimerlrandimage7898); } function zhrandimage7898(){ if (gsrandimage7898 == "out" && (xPostrandimage7898 < xPosrandimage7898 || yPostrandimage7898 < yPosrandimage7898)) { setOpacrandimage7898(imageElemrandimage7898, 100); xPostrandimage7898 = xPosrandimage7898; yPostrandimage7898 = yPosrandimage7898; wcrandimage7898.style.width = xPosrandimage7898; wcrandimage7898.style.height = yPosrandimage7898; gsrandimage7898 = ""; czrandimage7898(); return; } if (parseInt(wcrandimage7898.style.width)>10&&parseInt(wcrandimage7898.style.height)>10) { xPostrandimage7898 = parseInt(wcrandimage7898.style.width) + parseInt(wcrandimage7898.style.width) * zfrandimage7898 * pfrandimage7898; yPostrandimage7898 = parseInt(wcrandimage7898.style.height) + parseInt(wcrandimage7898.style.height) * zfrandimage7898 * pfrandimage7898; wcrandimage7898.style.width = xPostrandimage7898; wcrandimage7898.style.height = yPostrandimage7898; } } function zoomrandimage7898(originalW, originalH, what, state){ gsrandimage7898 = state; if (!document.all&&!document.getElementById) { return; } wcrandimage7898 = eval("document.images."+what); pfrandimage7898 = (state=="in")? 1 : -1; if (wcrandimage7898.style.width=="") { wcrandimage7898.style.width=originalW; wcrandimage7898.style.height=originalH; } if (state=="restore"){ xPostrandimage7898 = xPosrandimage7898; yPostrandimage7898 = yPosrandimage7898; wcrandimage7898.style.width=originalW; wcrandimage7898.style.height=originalH; czrandimage7898(); return; } else { zhrandimage7898(); } bzrandimage7898 = setInterval("zhrandimage7898()",100); } function czrandimage7898(){ if (window.bzrandimage7898) { if (gsrandimage7898 != "in" && (xPostrandimage7898 != xPosrandimage7898 || yPostrandimage7898 != yPosrandimage7898)) { xPostrandimage7898 = xPosrandimage7898; yPostrandimage7898 = yPosrandimage7898; wcrandimage7898.style.width = xPosrandimage7898; wcrandimage7898.style.height = yPosrandimage7898; gsrandimage7898 = ""; } clearInterval(bzrandimage7898); } } var tempcount2; var tempcount5; var Car_Image_Sources7898 = new Array(); var FootersAll7898 = new Array(); var myNewWin7898 = new Array(); var imglength7898 = imagesrandimage7898.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_Width7898 = 300; var Car_Image_Height7898 = 220; var Car_Border=false; var Car_Border_Color="white"; var Car_Speed7898 = 2; var Car_Direction7898 = false; var Car_NoOfSides7898 = 6; var tempcounta7898 = 0; var carTimer7898; var tempL7898 = 0; function startItC7898(whichOne) { if (whichOne == 0) { clearTimeout(carTimer7898); Car_Direction7898 = true; } else { clearTimeout(carTimer7898); Car_Direction7898 = false; } carTimer7898 = setTimeout("CarImages7898()",50); } if (imglength7898 < 6) { tempL7898 = 7 - imglength7898; } if (tempL7898 < 1) { tempL7898 = 1; } var mainCount7898 = 0; for (tempcount5 = 0; tempcount5 < tempL7898; tempcount5++) { for (tempcount2 = 0; tempcount2 < imglength7898; tempcount2++) { var tempVal = imagesrandimage7898[tempcount2]; Car_Image_Sources7898[tempcounta7898] = tempVal; FootersAll7898[tempcounta7898] = footersrandimage7898[tempcount2]; myNewWin7898[tempcounta7898] = newwinsrandimage7898[tempcount2]; tempcounta7898++; Car_Image_Sources7898[tempcounta7898] = urlsrandimage7898[tempcount2]; FootersAll7898[tempcounta7898] = footersrandimage7898[tempcount2]; myNewWin7898[tempcounta7898] = newwinsrandimage7898[tempcount2]; tempcounta7898++; mainCount7898++; } } imglength7898 = mainCount7898; CW_I7898 = new Array(Car_NoOfSides7898 / 2+1);C_ClcW7898 = new Array(Car_NoOfSides7898 / 2); C_Coef7898 = 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_CoefOf7898 = Car_NoOfSides7898 == 4?0:Car_NoOfSides7898 == 6 ? 2:Car_NoOfSides7898 == 8?5:9; C_Pre_Img7898 = new Array(Car_Image_Sources7898.length); var C_Angle7898 = Car_Direction7898 ? Math.PI/(Car_NoOfSides7898 / 2):0,C_CrImg7898 = Car_NoOfSides7898,C_MaxW7898,C_TotalW7898,C_Stppd7898=false,i7898,C_LeftOffset7898,C_HalfNo7898 = Car_NoOfSides7898 / 2; function CarouselStart7898(){ if(document.getElementById){ for(i7898=0;i7898 < Car_Image_Sources7898.length; i7898+=2){ C_Pre_Img7898[i7898]=new Image();C_Pre_Img7898[i7898].src=Car_Image_Sources7898[i7898]} C_MaxW7898=Car_Image_Width7898 / Math.sin(Math.PI/Car_NoOfSides7898)+C_HalfNo7898 + 1; Car_Div=document.getElementById("Carousel7898"); for(i7898=0;i7898= Math.PI/C_HalfNo7898)){ if(C_CrImg7898 == Car_Image_Sources7898.length)C_CrImg7898=0; if(Car_Direction7898){ CW_I7898[C_HalfNo7898] = CW_I7898[0]; for(i7898=0;i7898 0;i7898--)CW_I7898[i7898]=CW_I7898[i7898-1]; CW_I7898[0]=CW_I7898[C_HalfNo7898]; CW_I7898[0].src=Car_Image_Sources7898[C_CrImg7898]; CW_I7898[0].lnk=Car_Image_Sources7898[C_CrImg7898+1]; CW_I7898[0].desc=FootersAll7898[C_CrImg7898]; CW_I7898[0].newwin=myNewWin7898[C_CrImg7898]; } C_Angle7898 = Car_Direction7898 ? Math.PI/C_HalfNo7898:0;C_CrImg7898+=2;}} carTimer7898 = setTimeout("CarImages7898()",50);} function C_LdLnk7898(){go_urlrandimage7898(-1,this.newwin,this.lnk,this.src);} function C_Stp7898(){this.style.cursor=this.lnk?"pointer":"default";C_Stppd7898=true;changeTextrandimage7898("divtextrandimage7898",this.desc);} function C_Rstrt7898(){C_Stppd7898=false;changeTextrandimage7898("divtextrandimage7898","");} setTimeout("CarouselStart7898()",100);