var timenowrandimage47195 = 0; var counttimerrandimage47195 = -1; var counttimerlrandimage47195 = counttimerrandimage47195; var timesetrandimage47195 = 10; var nimagerandimage47195 = new Image; var imagesrandimage47195 = new Array('http://www.cgiconnection.com/randimage4/images/imperial_coronation-2.jpg','http://www.cgiconnection.com/randimage4/images/imperial_resurrection-2.jpg','http://www.cgiconnection.com/randimage4/images/imperial_cuckoo.jpg','http://www.cgiconnection.com/randimage4/images/imperial_lillies.jpg'); var urlsrandimage47195 = new Array('http://','http://','http://','http://'); var timesrandimage47195 = new Array('','','',''); var newwinsrandimage47195 = new Array('','','',''); var footersrandimage47195 = new Array('Coronation Egg','Resurrection Egg','Cuckoo Clock Egg','Lillies of the Valley Egg'); var timerrandimage47195; var timerfrandimage47195; var i = 0; var preloadimgrandimage47195 = 0; var footerrandimage47195 = '
Faberge Imperial Eggs'; var statusrandimage47195 = ''; var floatidrandimage47195 = 0; var zoomidrandimage47195 = 0; var carrandimage47195 = 1; var fadeSpeedrandimage47195 = 10; var outTime = 2100 - (fadeSpeedrandimage47195 * 35); var objrandimage47195; var opacityrandimage47195; var nsrandimage47195 = document.layers; var ierandimage47195 = document.all; var fadeinvalrandimage47195 = ""; var fadeoutvalrandimage47195 = ""; var sliderandimage47195 = 0; var zfrandimage47195 = 0.075; var ztrandimage47195 = 500; var wcrandimage47195; var Elemrandimage47195; var yPosrandimage47195 = 0; var xPosrandimage47195 = 0; var xPostrandimage47195 = 0; var yPostrandimage47195 = 0; var gsrandimage47195 = ""; if (preloadimgrandimage47195 == 1) { for(i=0; i < imagesrandimage47195.length; i++) { nimagerandimage47195.src = imagesrandimage47195[i]; } } function setOpacrandimage47195(objrandimage47195, opacityrandimage47195) { opacityrandimage47195 = (opacityrandimage47195 == 100)?99.999:opacityrandimage47195; if (nsrandimage47195) { objrandimage47195.style.MozOpacity = opacityrandimage47195/100; } else if (ierandimage47195) { objrandimage47195.style.filter = "alpha(opacity:"+opacityrandimage47195+")"; } else { objrandimage47195.style.opacity = opacityrandimage47195/100; } } function fadeInrandimage47195(objIdrandimage47195,opacityrandimage47195) { if (document.getElementById) { objrandimage47195 = document.getElementById(objIdrandimage47195); if (opacityrandimage47195 <= 100) { setOpacrandimage47195(objrandimage47195, opacityrandimage47195); opacityrandimage47195 += fadeSpeedrandimage47195; window.setTimeout("fadeInrandimage47195('" + objIdrandimage47195 +"',"+opacityrandimage47195+")", 100); } else { setOpacrandimage47195(objrandimage47195, 100); } } } function fadeOutrandimage47195(objIdrandimage47195,opacityrandimage47195) { if (document.getElementById) { objrandimage47195 = document.getElementById(objIdrandimage47195); if (opacityrandimage47195 >= 0) { setOpacrandimage47195(objrandimage47195, opacityrandimage47195); opacityrandimage47195 = opacityrandimage47195 - fadeSpeedrandimage47195; window.setTimeout("fadeOutrandimage47195('" + objIdrandimage47195 +"',"+opacityrandimage47195+")", 100); } else { setOpacrandimage47195(objrandimage47195, 0); } } } function changeTextrandimage47195(div_id,val){ elm=document.getElementById(div_id); elm.innerHTML = '

' + val + footerrandimage47195 + '

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

'); document.write(''); document.write(''); } if (sliderandimage47195 == 1 || carrandimage47195 == 1) { document.write(''); } else { document.write(''); } document.write('

'); document.write('
'); if (carrandimage47195 == 1) { document.write('
'); } if (sliderandimage47195 == 1) { document.write('
'); document.write('
'); document.write('
'); document.write('
'); } if (sliderandimage47195 != 1 && carrandimage47195 != 1) { if (zoomidrandimage47195 == 0) { document.write(''); } else { document.write(''); } document.write('
'); document.write('
' + footerrandimage47195 + '
'); if (floatidrandimage47195 == 1) { document.write('

'); } var imageIdrandimage47195 = 'randimage47195'; var imageElemrandimage47195 = document.getElementById(imageIdrandimage47195); var tempURLnum; function go_urlrandimage47195(tempURLnum,openinnew,templink,tempsrc) { window.status = statusrandimage47195; var myURL = ""; var isNew = ""; var mySRC = ""; var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi"; var recURL47195 = 0; if (tempURLnum > 0) { counttimerrandimage47195 = tempURLnum - 1; } if (tempURLnum == -1) { myURL = templink; mySRC = tempsrc; isNew = openinnew; } else { myURL = urlsrandimage47195[counttimerrandimage47195]; mySRC = imagesrandimage47195[counttimerrandimage47195]; isNew = newwinsrandimage47195[counttimerrandimage47195]; } if (myURL != "" && myURL != "http://") { if (recURL47195 == 1) { myURL = mainURL + '?filename=faberge&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_backrandimage47195() { clearTimeout(timerfrandimage47195); window.status = statusrandimage47195; counttimerlrandimage47195 = counttimerrandimage47195; counttimerrandimage47195 = counttimerrandimage47195 - 1; begin_imagerandimage47195(1); } function go_nextrandimage47195() { clearTimeout(timerfrandimage47195); window.status = statusrandimage47195; counttimerlrandimage47195 = counttimerrandimage47195; counttimerrandimage47195++; begin_imagerandimage47195(1); } function begin_imagerandimage47195(doit) { if (counttimerrandimage47195 >= (imagesrandimage47195.length - 1)) { if (doit < 1) { counttimerrandimage47195 = 0; } } else { if (doit < 1) { counttimerrandimage47195++; } } if (counttimerrandimage47195 < 0 && doit == 1) { counttimerrandimage47195 = imagesrandimage47195.length - 1; } if (counttimerrandimage47195 > (imagesrandimage47195.length - 1) && doit == 1) { counttimerrandimage47195 = 0; } var tempTime = timesrandimage47195[counttimerrandimage47195]; if (tempTime < 1) { tempTime = timesetrandimage47195; } tempTime = tempTime * 1000; if (fadeinvalrandimage47195 == 'Y') { setOpacrandimage47195(imageElemrandimage47195, 0); } if (fadeinvalrandimage47195 == '' && fadeoutvalrandimage47195 == 'Y') { setOpacrandimage47195(imageElemrandimage47195, 100); } nimagerandimage47195.src = imagesrandimage47195[counttimerrandimage47195]; document.randimage47195.src = nimagerandimage47195.src; changeTextrandimage47195("divtextrandimage47195",footersrandimage47195[counttimerrandimage47195]); if (fadeinvalrandimage47195 == 'Y') { fadeInrandimage47195(imageIdrandimage47195,0); } if (fadeoutvalrandimage47195 == 'Y') { timerfrandimage47195 = setTimeout('fadeOutrandimage47195(imageIdrandimage47195,100);', (tempTime - outTime)); } clearTimeout(timerrandimage47195); timerrandimage47195 = setTimeout('begin_imagerandimage47195(0);', tempTime); } function dimsrandimage47195(Elemrandimage47195) { 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 (xPosrandimage47195 > 0) { xPostrandimage47195 = xPosrandimage47195; yPostrandimage47195 = yPosrandimage47195; wcrandimage47195.style.width = xPosrandimage47195; wcrandimage47195.style.height = yPosrandimage47195; } if (ns4) { var Elemrandimage47195 = getObjNN4(document, Elemrandimage47195); yPosrandimage47195 = Elemrandimage47195.clip.height; xPosrandimage47195 = Elemrandimage47195.clip.width; return; } else { var Elemrandimage47195; if(document.getElementById) { var Elemrandimage47195 = document.getElementById(Elemrandimage47195); } else if (document.all) { var Elemrandimage47195 = document.all[Elemrandimage47195]; } } if (op5) { yPosrandimage47195 = Elemrandimage47195.style.pixelHeight; xPosrandimage47195 = Elemrandimage47195.style.pixelWidth; } else { yPosrandimage47195 = Elemrandimage47195.offsetHeight; xPosrandimage47195 = Elemrandimage47195.offsetWidth; } } function znrandimage47195() { clearTimeout(timerrandimage47195); clearTimeout(timerfrandimage47195); czrandimage47195(); if (xPosrandimage47195 > 0) { wcrandimage47195.style.width = xPosrandimage47195; wcrandimage47195.style.height = yPosrandimage47195; } dimsrandimage47195("randimage47195"); window.status=statusrandimage47195; zoomrandimage47195(xPosrandimage47195,yPosrandimage47195,'randimage47195','in'); timerrandimage47195 = setTimeout("czrandimage47195();", ztrandimage47195); } function zbrandimage47195() { xPostrandimage47195 = xPosrandimage47195; yPostrandimage47195 = yPosrandimage47195; clearTimeout(timerrandimage47195); czrandimage47195(); setOpacrandimage47195(imageElemrandimage47195, 100); zoomrandimage47195(xPosrandimage47195,yPosrandimage47195,'randimage47195','out'); timerrandimage47195 = setTimeout('begin_imagerandimage47195(0);', counttimerlrandimage47195); } function zhrandimage47195(){ if (gsrandimage47195 == "out" && (xPostrandimage47195 < xPosrandimage47195 || yPostrandimage47195 < yPosrandimage47195)) { setOpacrandimage47195(imageElemrandimage47195, 100); xPostrandimage47195 = xPosrandimage47195; yPostrandimage47195 = yPosrandimage47195; wcrandimage47195.style.width = xPosrandimage47195; wcrandimage47195.style.height = yPosrandimage47195; gsrandimage47195 = ""; czrandimage47195(); return; } if (parseInt(wcrandimage47195.style.width)>10&&parseInt(wcrandimage47195.style.height)>10) { xPostrandimage47195 = parseInt(wcrandimage47195.style.width) + parseInt(wcrandimage47195.style.width) * zfrandimage47195 * pfrandimage47195; yPostrandimage47195 = parseInt(wcrandimage47195.style.height) + parseInt(wcrandimage47195.style.height) * zfrandimage47195 * pfrandimage47195; wcrandimage47195.style.width = xPostrandimage47195; wcrandimage47195.style.height = yPostrandimage47195; } } function zoomrandimage47195(originalW, originalH, what, state){ gsrandimage47195 = state; if (!document.all&&!document.getElementById) { return; } wcrandimage47195 = eval("document.images."+what); pfrandimage47195 = (state=="in")? 1 : -1; if (wcrandimage47195.style.width=="") { wcrandimage47195.style.width=originalW; wcrandimage47195.style.height=originalH; } if (state=="restore"){ xPostrandimage47195 = xPosrandimage47195; yPostrandimage47195 = yPosrandimage47195; wcrandimage47195.style.width=originalW; wcrandimage47195.style.height=originalH; czrandimage47195(); return; } else { zhrandimage47195(); } bzrandimage47195 = setInterval("zhrandimage47195()",100); } function czrandimage47195(){ if (window.bzrandimage47195) { if (gsrandimage47195 != "in" && (xPostrandimage47195 != xPosrandimage47195 || yPostrandimage47195 != yPosrandimage47195)) { xPostrandimage47195 = xPosrandimage47195; yPostrandimage47195 = yPosrandimage47195; wcrandimage47195.style.width = xPosrandimage47195; wcrandimage47195.style.height = yPosrandimage47195; gsrandimage47195 = ""; } clearInterval(bzrandimage47195); } } var tempcount2; var tempcount5; var Car_Image_Sources47195 = new Array(); var FootersAll47195 = new Array(); var myNewWin47195 = new Array(); var imglength47195 = imagesrandimage47195.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_Width47195 = 220; var Car_Image_Height47195 = 300; var Car_Border=false; var Car_Border_Color="white"; var Car_Speed47195 = 3; var Car_Direction47195 = false; var Car_NoOfSides47195 = 4; var tempcounta47195 = 0; var carTimer47195; var tempL47195 = 0; function startItC47195(whichOne) { if (whichOne == 0) { clearTimeout(carTimer47195); Car_Direction47195 = true; } else { clearTimeout(carTimer47195); Car_Direction47195 = false; } carTimer47195 = setTimeout("CarImages47195()",50); } if (imglength47195 < 6) { tempL47195 = 7 - imglength47195; } if (tempL47195 < 1) { tempL47195 = 1; } var mainCount47195 = 0; for (tempcount5 = 0; tempcount5 < tempL47195; tempcount5++) { for (tempcount2 = 0; tempcount2 < imglength47195; tempcount2++) { var tempVal = imagesrandimage47195[tempcount2]; Car_Image_Sources47195[tempcounta47195] = tempVal; FootersAll47195[tempcounta47195] = footersrandimage47195[tempcount2]; myNewWin47195[tempcounta47195] = newwinsrandimage47195[tempcount2]; tempcounta47195++; Car_Image_Sources47195[tempcounta47195] = urlsrandimage47195[tempcount2]; FootersAll47195[tempcounta47195] = footersrandimage47195[tempcount2]; myNewWin47195[tempcounta47195] = newwinsrandimage47195[tempcount2]; tempcounta47195++; mainCount47195++; } } imglength47195 = mainCount47195; CW_I47195 = new Array(Car_NoOfSides47195 / 2+1);C_ClcW47195 = new Array(Car_NoOfSides47195 / 2); C_Coef47195 = 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_CoefOf47195 = Car_NoOfSides47195 == 4?0:Car_NoOfSides47195 == 6 ? 2:Car_NoOfSides47195 == 8?5:9; C_Pre_Img47195 = new Array(Car_Image_Sources47195.length); var C_Angle47195 = Car_Direction47195 ? Math.PI/(Car_NoOfSides47195 / 2):0,C_CrImg47195 = Car_NoOfSides47195,C_MaxW47195,C_TotalW47195,C_Stppd47195=false,i47195,C_LeftOffset47195,C_HalfNo47195 = Car_NoOfSides47195 / 2; function CarouselStart47195(){ if(document.getElementById){ for(i47195=0;i47195 < Car_Image_Sources47195.length; i47195+=2){ C_Pre_Img47195[i47195]=new Image();C_Pre_Img47195[i47195].src=Car_Image_Sources47195[i47195]} C_MaxW47195=Car_Image_Width47195 / Math.sin(Math.PI/Car_NoOfSides47195)+C_HalfNo47195 + 1; Car_Div=document.getElementById("Carousel47195"); for(i47195=0;i47195= Math.PI/C_HalfNo47195)){ if(C_CrImg47195 == Car_Image_Sources47195.length)C_CrImg47195=0; if(Car_Direction47195){ CW_I47195[C_HalfNo47195] = CW_I47195[0]; for(i47195=0;i47195 0;i47195--)CW_I47195[i47195]=CW_I47195[i47195-1]; CW_I47195[0]=CW_I47195[C_HalfNo47195]; CW_I47195[0].src=Car_Image_Sources47195[C_CrImg47195]; CW_I47195[0].lnk=Car_Image_Sources47195[C_CrImg47195+1]; CW_I47195[0].desc=FootersAll47195[C_CrImg47195]; CW_I47195[0].newwin=myNewWin47195[C_CrImg47195]; } C_Angle47195 = Car_Direction47195 ? Math.PI/C_HalfNo47195:0;C_CrImg47195+=2;}} carTimer47195 = setTimeout("CarImages47195()",50);} function C_LdLnk47195(){go_urlrandimage47195(-1,this.newwin,this.lnk,this.src);} function C_Stp47195(){this.style.cursor=this.lnk?"pointer":"default";C_Stppd47195=true;changeTextrandimage47195("divtextrandimage47195",this.desc);} function C_Rstrt47195(){C_Stppd47195=false;changeTextrandimage47195("divtextrandimage47195","");} setTimeout("CarouselStart47195()",100);