var timenowrandimage45012 = 0;
var counttimerrandimage45012 = -1;
var counttimerlrandimage45012 = counttimerrandimage45012;
var timesetrandimage45012 = 10;
var nimagerandimage45012 = new Image;
var imagesrandimage45012 = 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 urlsrandimage45012 = new Array('http://','http://','http://','http://');
var timesrandimage45012 = new Array('','','','');
var newwinsrandimage45012 = new Array('','','','');
var footersrandimage45012 = new Array('Coronation Egg','Resurrection Egg','Cuckoo Clock Egg','Lillies of the Valley Egg');
var timerrandimage45012;
var timerfrandimage45012;
var i = 0;
var preloadimgrandimage45012 = 0;
var footerrandimage45012 = '
Faberge Imperial Eggs';
var statusrandimage45012 = '';
var floatidrandimage45012 = 0;
var zoomidrandimage45012 = 0;
var carrandimage45012 = 1;
var fadeSpeedrandimage45012 = 10;
var outTime = 2100 - (fadeSpeedrandimage45012 * 35);
var objrandimage45012;
var opacityrandimage45012;
var nsrandimage45012 = document.layers;
var ierandimage45012 = document.all;
var fadeinvalrandimage45012 = "";
var fadeoutvalrandimage45012 = "";
var sliderandimage45012 = 0;
var zfrandimage45012 = 0.075;
var ztrandimage45012 = 500;
var wcrandimage45012;
var Elemrandimage45012;
var yPosrandimage45012 = 0;
var xPosrandimage45012 = 0;
var xPostrandimage45012 = 0;
var yPostrandimage45012 = 0;
var gsrandimage45012 = "";
if (preloadimgrandimage45012 == 1)
{
for(i=0; i < imagesrandimage45012.length; i++)
{
nimagerandimage45012.src = imagesrandimage45012[i];
}
}
function setOpacrandimage45012(objrandimage45012, opacityrandimage45012) {
opacityrandimage45012 = (opacityrandimage45012 == 100)?99.999:opacityrandimage45012;
if (nsrandimage45012)
{
objrandimage45012.style.MozOpacity = opacityrandimage45012/100;
}
else if (ierandimage45012)
{
objrandimage45012.style.filter = "alpha(opacity:"+opacityrandimage45012+")";
}
else
{
objrandimage45012.style.opacity = opacityrandimage45012/100;
}
}
function fadeInrandimage45012(objIdrandimage45012,opacityrandimage45012) {
if (document.getElementById) {
objrandimage45012 = document.getElementById(objIdrandimage45012);
if (opacityrandimage45012 <= 100) {
setOpacrandimage45012(objrandimage45012, opacityrandimage45012);
opacityrandimage45012 += fadeSpeedrandimage45012;
window.setTimeout("fadeInrandimage45012('" + objIdrandimage45012 +"',"+opacityrandimage45012+")", 100);
}
else
{
setOpacrandimage45012(objrandimage45012, 100);
}
}
}
function fadeOutrandimage45012(objIdrandimage45012,opacityrandimage45012) {
if (document.getElementById) {
objrandimage45012 = document.getElementById(objIdrandimage45012);
if (opacityrandimage45012 >= 0) {
setOpacrandimage45012(objrandimage45012, opacityrandimage45012);
opacityrandimage45012 = opacityrandimage45012 - fadeSpeedrandimage45012;
window.setTimeout("fadeOutrandimage45012('" + objIdrandimage45012 +"',"+opacityrandimage45012+")", 100);
}
else
{
setOpacrandimage45012(objrandimage45012, 0);
}
}
}
function changeTextrandimage45012(div_id,val){
elm=document.getElementById(div_id);
elm.innerHTML = '
' + val + footerrandimage45012 + '
';
}
document.write('');
if (floatidrandimage45012 == 1)
{
document.write('');
}
document.write('
');
document.write('
');
document.write('');
if (carrandimage45012 == 1)
{
document.write('');
}
if (sliderandimage45012 == 1)
{
document.write('');
document.write(' ');
document.write(' ');
document.write(' ');
}
if (sliderandimage45012 != 1 && carrandimage45012 != 1)
{
if (zoomidrandimage45012 == 0)
{
document.write('');
}
else
{
document.write('');
}
document.write('');
document.write(' |
');
}
if (sliderandimage45012 == 1 || carrandimage45012 == 1)
{
document.write('' + footerrandimage45012 + ' |
');
}
else
{
document.write(' |
');
}
document.write('');
document.write('
');
if (floatidrandimage45012 == 1)
{
document.write('
');
}
var imageIdrandimage45012 = 'randimage45012';
var imageElemrandimage45012 = document.getElementById(imageIdrandimage45012);
var tempURLnum;
function go_urlrandimage45012(tempURLnum,openinnew,templink,tempsrc) {
window.status = statusrandimage45012;
var myURL = "";
var isNew = "";
var mySRC = "";
var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi";
var recURL45012 = 0;
if (tempURLnum > 0)
{
counttimerrandimage45012 = tempURLnum - 1;
}
if (tempURLnum == -1)
{
myURL = templink;
mySRC = tempsrc;
isNew = openinnew;
}
else
{
myURL = urlsrandimage45012[counttimerrandimage45012];
mySRC = imagesrandimage45012[counttimerrandimage45012];
isNew = newwinsrandimage45012[counttimerrandimage45012];
}
if (myURL != "" && myURL != "http://")
{
if (recURL45012 == 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_backrandimage45012() {
clearTimeout(timerfrandimage45012);
window.status = statusrandimage45012;
counttimerlrandimage45012 = counttimerrandimage45012;
counttimerrandimage45012 = counttimerrandimage45012 - 1;
begin_imagerandimage45012(1);
}
function go_nextrandimage45012() {
clearTimeout(timerfrandimage45012);
window.status = statusrandimage45012;
counttimerlrandimage45012 = counttimerrandimage45012;
counttimerrandimage45012++;
begin_imagerandimage45012(1);
}
function begin_imagerandimage45012(doit) {
if (counttimerrandimage45012 >= (imagesrandimage45012.length - 1))
{
if (doit < 1)
{
counttimerrandimage45012 = 0;
}
}
else
{
if (doit < 1)
{
counttimerrandimage45012++;
}
}
if (counttimerrandimage45012 < 0 && doit == 1)
{
counttimerrandimage45012 = imagesrandimage45012.length - 1;
}
if (counttimerrandimage45012 > (imagesrandimage45012.length - 1) && doit == 1)
{
counttimerrandimage45012 = 0;
}
var tempTime = timesrandimage45012[counttimerrandimage45012];
if (tempTime < 1)
{
tempTime = timesetrandimage45012;
}
tempTime = tempTime * 1000;
if (fadeinvalrandimage45012 == 'Y')
{
setOpacrandimage45012(imageElemrandimage45012, 0);
}
if (fadeinvalrandimage45012 == '' && fadeoutvalrandimage45012 == 'Y')
{
setOpacrandimage45012(imageElemrandimage45012, 100);
}
nimagerandimage45012.src = imagesrandimage45012[counttimerrandimage45012];
document.randimage45012.src = nimagerandimage45012.src;
changeTextrandimage45012("divtextrandimage45012",footersrandimage45012[counttimerrandimage45012]);
if (fadeinvalrandimage45012 == 'Y')
{
fadeInrandimage45012(imageIdrandimage45012,0);
}
if (fadeoutvalrandimage45012 == 'Y')
{
timerfrandimage45012 = setTimeout('fadeOutrandimage45012(imageIdrandimage45012,100);', (tempTime - outTime));
}
clearTimeout(timerrandimage45012);
timerrandimage45012 = setTimeout('begin_imagerandimage45012(0);', tempTime);
}
function dimsrandimage45012(Elemrandimage45012) {
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 (xPosrandimage45012 > 0)
{
xPostrandimage45012 = xPosrandimage45012;
yPostrandimage45012 = yPosrandimage45012;
wcrandimage45012.style.width = xPosrandimage45012;
wcrandimage45012.style.height = yPosrandimage45012;
}
if (ns4) {
var Elemrandimage45012 = getObjNN4(document, Elemrandimage45012);
yPosrandimage45012 = Elemrandimage45012.clip.height;
xPosrandimage45012 = Elemrandimage45012.clip.width;
return;
}
else {
var Elemrandimage45012;
if(document.getElementById) {
var Elemrandimage45012 = document.getElementById(Elemrandimage45012);
}
else if (document.all) {
var Elemrandimage45012 = document.all[Elemrandimage45012];
}
}
if (op5) {
yPosrandimage45012 = Elemrandimage45012.style.pixelHeight;
xPosrandimage45012 = Elemrandimage45012.style.pixelWidth;
}
else {
yPosrandimage45012 = Elemrandimage45012.offsetHeight;
xPosrandimage45012 = Elemrandimage45012.offsetWidth;
}
}
function znrandimage45012() {
clearTimeout(timerrandimage45012);
clearTimeout(timerfrandimage45012);
czrandimage45012();
if (xPosrandimage45012 > 0)
{
wcrandimage45012.style.width = xPosrandimage45012;
wcrandimage45012.style.height = yPosrandimage45012;
}
dimsrandimage45012("randimage45012");
window.status=statusrandimage45012;
zoomrandimage45012(xPosrandimage45012,yPosrandimage45012,'randimage45012','in');
timerrandimage45012 = setTimeout("czrandimage45012();", ztrandimage45012);
}
function zbrandimage45012() {
xPostrandimage45012 = xPosrandimage45012;
yPostrandimage45012 = yPosrandimage45012;
clearTimeout(timerrandimage45012);
czrandimage45012();
setOpacrandimage45012(imageElemrandimage45012, 100);
zoomrandimage45012(xPosrandimage45012,yPosrandimage45012,'randimage45012','out');
timerrandimage45012 = setTimeout('begin_imagerandimage45012(0);', counttimerlrandimage45012);
}
function zhrandimage45012(){
if (gsrandimage45012 == "out" && (xPostrandimage45012 < xPosrandimage45012 || yPostrandimage45012 < yPosrandimage45012))
{
setOpacrandimage45012(imageElemrandimage45012, 100);
xPostrandimage45012 = xPosrandimage45012;
yPostrandimage45012 = yPosrandimage45012;
wcrandimage45012.style.width = xPosrandimage45012;
wcrandimage45012.style.height = yPosrandimage45012;
gsrandimage45012 = "";
czrandimage45012();
return;
}
if (parseInt(wcrandimage45012.style.width)>10&&parseInt(wcrandimage45012.style.height)>10)
{
xPostrandimage45012 = parseInt(wcrandimage45012.style.width) + parseInt(wcrandimage45012.style.width) * zfrandimage45012 * pfrandimage45012;
yPostrandimage45012 = parseInt(wcrandimage45012.style.height) + parseInt(wcrandimage45012.style.height) * zfrandimage45012 * pfrandimage45012;
wcrandimage45012.style.width = xPostrandimage45012;
wcrandimage45012.style.height = yPostrandimage45012;
}
}
function zoomrandimage45012(originalW, originalH, what, state){
gsrandimage45012 = state;
if (!document.all&&!document.getElementById) {
return;
}
wcrandimage45012 = eval("document.images."+what);
pfrandimage45012 = (state=="in")? 1 : -1;
if (wcrandimage45012.style.width=="")
{
wcrandimage45012.style.width=originalW;
wcrandimage45012.style.height=originalH;
}
if (state=="restore"){
xPostrandimage45012 = xPosrandimage45012;
yPostrandimage45012 = yPosrandimage45012;
wcrandimage45012.style.width=originalW;
wcrandimage45012.style.height=originalH;
czrandimage45012();
return;
}
else
{
zhrandimage45012();
}
bzrandimage45012 = setInterval("zhrandimage45012()",100);
}
function czrandimage45012(){
if (window.bzrandimage45012) {
if (gsrandimage45012 != "in" && (xPostrandimage45012 != xPosrandimage45012 || yPostrandimage45012 != yPosrandimage45012))
{
xPostrandimage45012 = xPosrandimage45012;
yPostrandimage45012 = yPosrandimage45012;
wcrandimage45012.style.width = xPosrandimage45012;
wcrandimage45012.style.height = yPosrandimage45012;
gsrandimage45012 = "";
}
clearInterval(bzrandimage45012);
}
}
var tempcount2;
var tempcount5;
var Car_Image_Sources45012 = new Array();
var FootersAll45012 = new Array();
var myNewWin45012 = new Array();
var imglength45012 = imagesrandimage45012.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_Width45012 = 220;
var Car_Image_Height45012 = 300;
var Car_Border=false;
var Car_Border_Color="white";
var Car_Speed45012 = 3;
var Car_Direction45012 = false;
var Car_NoOfSides45012 = 4;
var tempcounta45012 = 0;
var carTimer45012;
var tempL45012 = 0;
function startItC45012(whichOne) {
if (whichOne == 0)
{
clearTimeout(carTimer45012);
Car_Direction45012 = true;
}
else
{
clearTimeout(carTimer45012);
Car_Direction45012 = false;
}
carTimer45012 = setTimeout("CarImages45012()",50);
}
if (imglength45012 < 6)
{
tempL45012 = 7 - imglength45012;
}
if (tempL45012 < 1)
{
tempL45012 = 1;
}
var mainCount45012 = 0;
for (tempcount5 = 0; tempcount5 < tempL45012; tempcount5++)
{
for (tempcount2 = 0; tempcount2 < imglength45012; tempcount2++)
{
var tempVal = imagesrandimage45012[tempcount2];
Car_Image_Sources45012[tempcounta45012] = tempVal;
FootersAll45012[tempcounta45012] = footersrandimage45012[tempcount2];
myNewWin45012[tempcounta45012] = newwinsrandimage45012[tempcount2];
tempcounta45012++;
Car_Image_Sources45012[tempcounta45012] = urlsrandimage45012[tempcount2];
FootersAll45012[tempcounta45012] = footersrandimage45012[tempcount2];
myNewWin45012[tempcounta45012] = newwinsrandimage45012[tempcount2];
tempcounta45012++;
mainCount45012++;
}
}
imglength45012 = mainCount45012;
CW_I45012 = new Array(Car_NoOfSides45012 / 2+1);C_ClcW45012 = new Array(Car_NoOfSides45012 / 2);
C_Coef45012 = 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_CoefOf45012 = Car_NoOfSides45012 == 4?0:Car_NoOfSides45012 == 6 ? 2:Car_NoOfSides45012 == 8?5:9;
C_Pre_Img45012 = new Array(Car_Image_Sources45012.length);
var C_Angle45012 = Car_Direction45012 ? Math.PI/(Car_NoOfSides45012 / 2):0,C_CrImg45012 = Car_NoOfSides45012,C_MaxW45012,C_TotalW45012,C_Stppd45012=false,i45012,C_LeftOffset45012,C_HalfNo45012 = Car_NoOfSides45012 / 2;
function CarouselStart45012(){
if(document.getElementById){
for(i45012=0;i45012 < Car_Image_Sources45012.length; i45012+=2){
C_Pre_Img45012[i45012]=new Image();C_Pre_Img45012[i45012].src=Car_Image_Sources45012[i45012]}
C_MaxW45012=Car_Image_Width45012 / Math.sin(Math.PI/Car_NoOfSides45012)+C_HalfNo45012 + 1;
Car_Div=document.getElementById("Carousel45012");
for(i45012=0;i45012= Math.PI/C_HalfNo45012)){
if(C_CrImg45012 == Car_Image_Sources45012.length)C_CrImg45012=0;
if(Car_Direction45012){
CW_I45012[C_HalfNo45012] = CW_I45012[0];
for(i45012=0;i45012 0;i45012--)CW_I45012[i45012]=CW_I45012[i45012-1];
CW_I45012[0]=CW_I45012[C_HalfNo45012];
CW_I45012[0].src=Car_Image_Sources45012[C_CrImg45012];
CW_I45012[0].lnk=Car_Image_Sources45012[C_CrImg45012+1];
CW_I45012[0].desc=FootersAll45012[C_CrImg45012];
CW_I45012[0].newwin=myNewWin45012[C_CrImg45012];
}
C_Angle45012 = Car_Direction45012 ? Math.PI/C_HalfNo45012:0;C_CrImg45012+=2;}}
carTimer45012 = setTimeout("CarImages45012()",50);}
function C_LdLnk45012(){go_urlrandimage45012(-1,this.newwin,this.lnk,this.src);}
function C_Stp45012(){this.style.cursor=this.lnk?"pointer":"default";C_Stppd45012=true;changeTextrandimage45012("divtextrandimage45012",this.desc);}
function C_Rstrt45012(){C_Stppd45012=false;changeTextrandimage45012("divtextrandimage45012","");}
setTimeout("CarouselStart45012()",100);