var timenowrandimage62711 = 0; var counttimerrandimage62711 = -1; var counttimerlrandimage62711 = counttimerrandimage62711; var timesetrandimage62711 = 10; var nimagerandimage62711 = new Image; var imagesrandimage62711 = new Array('http://www.cgiconnection.com/randimage4/images/newzealand13-2.jpg','http://www.cgiconnection.com/randimage4/images/newzealand13flip-2.jpg'); var urlsrandimage62711 = new Array('http://','http://'); var timesrandimage62711 = new Array('',''); var newwinsrandimage62711 = new Array('',''); var footersrandimage62711 = new Array('',''); var timerrandimage62711; var timerfrandimage62711; var i = 0; var preloadimgrandimage62711 = 0; var footerrandimage62711 = '
Powered by CGI Connection'; var statusrandimage62711 = ''; var floatidrandimage62711 = 0; var zoomidrandimage62711 = 0; var carrandimage62711 = 1; var fadeSpeedrandimage62711 = 10; var outTime = 2100 - (fadeSpeedrandimage62711 * 35); var objrandimage62711; var opacityrandimage62711; var nsrandimage62711 = document.layers; var ierandimage62711 = document.all; var fadeinvalrandimage62711 = ""; var fadeoutvalrandimage62711 = ""; var sliderandimage62711 = 0; var zfrandimage62711 = 0.075; var ztrandimage62711 = 500; var wcrandimage62711; var Elemrandimage62711; var yPosrandimage62711 = 0; var xPosrandimage62711 = 0; var xPostrandimage62711 = 0; var yPostrandimage62711 = 0; var gsrandimage62711 = ""; if (preloadimgrandimage62711 == 1) { for(i=0; i < imagesrandimage62711.length; i++) { nimagerandimage62711.src = imagesrandimage62711[i]; } } function setOpacrandimage62711(objrandimage62711, opacityrandimage62711) { opacityrandimage62711 = (opacityrandimage62711 == 100)?99.999:opacityrandimage62711; if (nsrandimage62711) { objrandimage62711.style.MozOpacity = opacityrandimage62711/100; } else if (ierandimage62711) { objrandimage62711.style.filter = "alpha(opacity:"+opacityrandimage62711+")"; } else { objrandimage62711.style.opacity = opacityrandimage62711/100; } } function fadeInrandimage62711(objIdrandimage62711,opacityrandimage62711) { if (document.getElementById) { objrandimage62711 = document.getElementById(objIdrandimage62711); if (opacityrandimage62711 <= 100) { setOpacrandimage62711(objrandimage62711, opacityrandimage62711); opacityrandimage62711 += fadeSpeedrandimage62711; window.setTimeout("fadeInrandimage62711('" + objIdrandimage62711 +"',"+opacityrandimage62711+")", 100); } else { setOpacrandimage62711(objrandimage62711, 100); } } } function fadeOutrandimage62711(objIdrandimage62711,opacityrandimage62711) { if (document.getElementById) { objrandimage62711 = document.getElementById(objIdrandimage62711); if (opacityrandimage62711 >= 0) { setOpacrandimage62711(objrandimage62711, opacityrandimage62711); opacityrandimage62711 = opacityrandimage62711 - fadeSpeedrandimage62711; window.setTimeout("fadeOutrandimage62711('" + objIdrandimage62711 +"',"+opacityrandimage62711+")", 100); } else { setOpacrandimage62711(objrandimage62711, 0); } } } function changeTextrandimage62711(div_id,val){ elm=document.getElementById(div_id); elm.innerHTML = '

' + val + footerrandimage62711 + '

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

'); document.write(''); document.write(''); } if (sliderandimage62711 == 1 || carrandimage62711 == 1) { document.write(''); } else { document.write(''); } document.write('

'); document.write('
'); if (carrandimage62711 == 1) { document.write('
'); } if (sliderandimage62711 == 1) { document.write('
'); document.write('
'); document.write('
'); document.write('
'); } if (sliderandimage62711 != 1 && carrandimage62711 != 1) { if (zoomidrandimage62711 == 0) { document.write(''); } else { document.write(''); } document.write('
'); document.write('
' + footerrandimage62711 + '
'); if (floatidrandimage62711 == 1) { document.write('

'); } var imageIdrandimage62711 = 'randimage62711'; var imageElemrandimage62711 = document.getElementById(imageIdrandimage62711); var tempURLnum; function go_urlrandimage62711(tempURLnum,openinnew,templink,tempsrc) { window.status = statusrandimage62711; var myURL = ""; var isNew = ""; var mySRC = ""; var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi"; var recURL62711 = 0; if (tempURLnum > 0) { counttimerrandimage62711 = tempURLnum - 1; } if (tempURLnum == -1) { myURL = templink; mySRC = tempsrc; isNew = openinnew; } else { myURL = urlsrandimage62711[counttimerrandimage62711]; mySRC = imagesrandimage62711[counttimerrandimage62711]; isNew = newwinsrandimage62711[counttimerrandimage62711]; } if (myURL != "" && myURL != "http://") { if (recURL62711 == 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_backrandimage62711() { clearTimeout(timerfrandimage62711); window.status = statusrandimage62711; counttimerlrandimage62711 = counttimerrandimage62711; counttimerrandimage62711 = counttimerrandimage62711 - 1; begin_imagerandimage62711(1); } function go_nextrandimage62711() { clearTimeout(timerfrandimage62711); window.status = statusrandimage62711; counttimerlrandimage62711 = counttimerrandimage62711; counttimerrandimage62711++; begin_imagerandimage62711(1); } function begin_imagerandimage62711(doit) { if (counttimerrandimage62711 >= (imagesrandimage62711.length - 1)) { if (doit < 1) { counttimerrandimage62711 = 0; } } else { if (doit < 1) { counttimerrandimage62711++; } } if (counttimerrandimage62711 < 0 && doit == 1) { counttimerrandimage62711 = imagesrandimage62711.length - 1; } if (counttimerrandimage62711 > (imagesrandimage62711.length - 1) && doit == 1) { counttimerrandimage62711 = 0; } var tempTime = timesrandimage62711[counttimerrandimage62711]; if (tempTime < 1) { tempTime = timesetrandimage62711; } tempTime = tempTime * 1000; if (fadeinvalrandimage62711 == 'Y') { setOpacrandimage62711(imageElemrandimage62711, 0); } if (fadeinvalrandimage62711 == '' && fadeoutvalrandimage62711 == 'Y') { setOpacrandimage62711(imageElemrandimage62711, 100); } nimagerandimage62711.src = imagesrandimage62711[counttimerrandimage62711]; document.randimage62711.src = nimagerandimage62711.src; changeTextrandimage62711("divtextrandimage62711",footersrandimage62711[counttimerrandimage62711]); if (fadeinvalrandimage62711 == 'Y') { fadeInrandimage62711(imageIdrandimage62711,0); } if (fadeoutvalrandimage62711 == 'Y') { timerfrandimage62711 = setTimeout('fadeOutrandimage62711(imageIdrandimage62711,100);', (tempTime - outTime)); } clearTimeout(timerrandimage62711); timerrandimage62711 = setTimeout('begin_imagerandimage62711(0);', tempTime); } function dimsrandimage62711(Elemrandimage62711) { 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 (xPosrandimage62711 > 0) { xPostrandimage62711 = xPosrandimage62711; yPostrandimage62711 = yPosrandimage62711; wcrandimage62711.style.width = xPosrandimage62711; wcrandimage62711.style.height = yPosrandimage62711; } if (ns4) { var Elemrandimage62711 = getObjNN4(document, Elemrandimage62711); yPosrandimage62711 = Elemrandimage62711.clip.height; xPosrandimage62711 = Elemrandimage62711.clip.width; return; } else { var Elemrandimage62711; if(document.getElementById) { var Elemrandimage62711 = document.getElementById(Elemrandimage62711); } else if (document.all) { var Elemrandimage62711 = document.all[Elemrandimage62711]; } } if (op5) { yPosrandimage62711 = Elemrandimage62711.style.pixelHeight; xPosrandimage62711 = Elemrandimage62711.style.pixelWidth; } else { yPosrandimage62711 = Elemrandimage62711.offsetHeight; xPosrandimage62711 = Elemrandimage62711.offsetWidth; } } function znrandimage62711() { clearTimeout(timerrandimage62711); clearTimeout(timerfrandimage62711); czrandimage62711(); if (xPosrandimage62711 > 0) { wcrandimage62711.style.width = xPosrandimage62711; wcrandimage62711.style.height = yPosrandimage62711; } dimsrandimage62711("randimage62711"); window.status=statusrandimage62711; zoomrandimage62711(xPosrandimage62711,yPosrandimage62711,'randimage62711','in'); timerrandimage62711 = setTimeout("czrandimage62711();", ztrandimage62711); } function zbrandimage62711() { xPostrandimage62711 = xPosrandimage62711; yPostrandimage62711 = yPosrandimage62711; clearTimeout(timerrandimage62711); czrandimage62711(); setOpacrandimage62711(imageElemrandimage62711, 100); zoomrandimage62711(xPosrandimage62711,yPosrandimage62711,'randimage62711','out'); timerrandimage62711 = setTimeout('begin_imagerandimage62711(0);', counttimerlrandimage62711); } function zhrandimage62711(){ if (gsrandimage62711 == "out" && (xPostrandimage62711 < xPosrandimage62711 || yPostrandimage62711 < yPosrandimage62711)) { setOpacrandimage62711(imageElemrandimage62711, 100); xPostrandimage62711 = xPosrandimage62711; yPostrandimage62711 = yPosrandimage62711; wcrandimage62711.style.width = xPosrandimage62711; wcrandimage62711.style.height = yPosrandimage62711; gsrandimage62711 = ""; czrandimage62711(); return; } if (parseInt(wcrandimage62711.style.width)>10&&parseInt(wcrandimage62711.style.height)>10) { xPostrandimage62711 = parseInt(wcrandimage62711.style.width) + parseInt(wcrandimage62711.style.width) * zfrandimage62711 * pfrandimage62711; yPostrandimage62711 = parseInt(wcrandimage62711.style.height) + parseInt(wcrandimage62711.style.height) * zfrandimage62711 * pfrandimage62711; wcrandimage62711.style.width = xPostrandimage62711; wcrandimage62711.style.height = yPostrandimage62711; } } function zoomrandimage62711(originalW, originalH, what, state){ gsrandimage62711 = state; if (!document.all&&!document.getElementById) { return; } wcrandimage62711 = eval("document.images."+what); pfrandimage62711 = (state=="in")? 1 : -1; if (wcrandimage62711.style.width=="") { wcrandimage62711.style.width=originalW; wcrandimage62711.style.height=originalH; } if (state=="restore"){ xPostrandimage62711 = xPosrandimage62711; yPostrandimage62711 = yPosrandimage62711; wcrandimage62711.style.width=originalW; wcrandimage62711.style.height=originalH; czrandimage62711(); return; } else { zhrandimage62711(); } bzrandimage62711 = setInterval("zhrandimage62711()",100); } function czrandimage62711(){ if (window.bzrandimage62711) { if (gsrandimage62711 != "in" && (xPostrandimage62711 != xPosrandimage62711 || yPostrandimage62711 != yPosrandimage62711)) { xPostrandimage62711 = xPosrandimage62711; yPostrandimage62711 = yPosrandimage62711; wcrandimage62711.style.width = xPosrandimage62711; wcrandimage62711.style.height = yPosrandimage62711; gsrandimage62711 = ""; } clearInterval(bzrandimage62711); } } var tempcount2; var tempcount5; var Car_Image_Sources62711 = new Array(); var FootersAll62711 = new Array(); var myNewWin62711 = new Array(); var imglength62711 = imagesrandimage62711.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_Width62711 = 300; var Car_Image_Height62711 = 220; var Car_Border=false; var Car_Border_Color="white"; var Car_Speed62711 = 2; var Car_Direction62711 = false; var Car_NoOfSides62711 = 6; var tempcounta62711 = 0; var carTimer62711; var tempL62711 = 0; function startItC62711(whichOne) { if (whichOne == 0) { clearTimeout(carTimer62711); Car_Direction62711 = true; } else { clearTimeout(carTimer62711); Car_Direction62711 = false; } carTimer62711 = setTimeout("CarImages62711()",50); } if (imglength62711 < 6) { tempL62711 = 7 - imglength62711; } if (tempL62711 < 1) { tempL62711 = 1; } var mainCount62711 = 0; for (tempcount5 = 0; tempcount5 < tempL62711; tempcount5++) { for (tempcount2 = 0; tempcount2 < imglength62711; tempcount2++) { var tempVal = imagesrandimage62711[tempcount2]; Car_Image_Sources62711[tempcounta62711] = tempVal; FootersAll62711[tempcounta62711] = footersrandimage62711[tempcount2]; myNewWin62711[tempcounta62711] = newwinsrandimage62711[tempcount2]; tempcounta62711++; Car_Image_Sources62711[tempcounta62711] = urlsrandimage62711[tempcount2]; FootersAll62711[tempcounta62711] = footersrandimage62711[tempcount2]; myNewWin62711[tempcounta62711] = newwinsrandimage62711[tempcount2]; tempcounta62711++; mainCount62711++; } } imglength62711 = mainCount62711; CW_I62711 = new Array(Car_NoOfSides62711 / 2+1);C_ClcW62711 = new Array(Car_NoOfSides62711 / 2); C_Coef62711 = 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_CoefOf62711 = Car_NoOfSides62711 == 4?0:Car_NoOfSides62711 == 6 ? 2:Car_NoOfSides62711 == 8?5:9; C_Pre_Img62711 = new Array(Car_Image_Sources62711.length); var C_Angle62711 = Car_Direction62711 ? Math.PI/(Car_NoOfSides62711 / 2):0,C_CrImg62711 = Car_NoOfSides62711,C_MaxW62711,C_TotalW62711,C_Stppd62711=false,i62711,C_LeftOffset62711,C_HalfNo62711 = Car_NoOfSides62711 / 2; function CarouselStart62711(){ if(document.getElementById){ for(i62711=0;i62711 < Car_Image_Sources62711.length; i62711+=2){ C_Pre_Img62711[i62711]=new Image();C_Pre_Img62711[i62711].src=Car_Image_Sources62711[i62711]} C_MaxW62711=Car_Image_Width62711 / Math.sin(Math.PI/Car_NoOfSides62711)+C_HalfNo62711 + 1; Car_Div=document.getElementById("Carousel62711"); for(i62711=0;i62711= Math.PI/C_HalfNo62711)){ if(C_CrImg62711 == Car_Image_Sources62711.length)C_CrImg62711=0; if(Car_Direction62711){ CW_I62711[C_HalfNo62711] = CW_I62711[0]; for(i62711=0;i62711 0;i62711--)CW_I62711[i62711]=CW_I62711[i62711-1]; CW_I62711[0]=CW_I62711[C_HalfNo62711]; CW_I62711[0].src=Car_Image_Sources62711[C_CrImg62711]; CW_I62711[0].lnk=Car_Image_Sources62711[C_CrImg62711+1]; CW_I62711[0].desc=FootersAll62711[C_CrImg62711]; CW_I62711[0].newwin=myNewWin62711[C_CrImg62711]; } C_Angle62711 = Car_Direction62711 ? Math.PI/C_HalfNo62711:0;C_CrImg62711+=2;}} carTimer62711 = setTimeout("CarImages62711()",50);} function C_LdLnk62711(){go_urlrandimage62711(-1,this.newwin,this.lnk,this.src);} function C_Stp62711(){this.style.cursor=this.lnk?"pointer":"default";C_Stppd62711=true;changeTextrandimage62711("divtextrandimage62711",this.desc);} function C_Rstrt62711(){C_Stppd62711=false;changeTextrandimage62711("divtextrandimage62711","");} setTimeout("CarouselStart62711()",100);