var dayNO10DATE = 0; var dayNO100DATE = 0; var dayNO1000DATE = 0; var dayNOW = new Date(); var dayANNUAL; (dayPARAM2 == "Annual") ? dayANNUAL = true : dayANNUAL = false; if ((dayPARAM1 == dayNOW.getMonth()) && (dayPARAM0 == dayNOW.getDate()) && ((dayPARAM2 == dayNOW.getFullYear()) || (dayANNUAL == true))) { document.write(''); document.write(''); document.write('
'); document.write('
   it\'s
' + dayPARAM3 + '
'); } else { if (dayANNUAL != true) { var dayBIGDAY = new Date(dayPARAM2, dayPARAM1, dayPARAM0); } else { var dayBIGDAY = new Date(dayNOW.getFullYear(), dayPARAM1, dayPARAM0); if (dayBIGDAY < dayNOW) dayBIGDAY.setFullYear(dayBIGDAY.getFullYear() + 1); } document.write(''); document.write(''); document.write(''); document.write(''); document.write('
'); Math.abs(dayBIGDAY - dayNOW) > 86400000000 ? document.write('') : dayNO1000DATE = 1; Math.abs(dayBIGDAY - dayNOW) > 8640000000 ? document.write('') : dayNO100DATE = 1; Math.abs(dayBIGDAY - dayNOW) > 864000000 ? document.write('') : dayNO10DATE = 1; document.write('
   '); (dayNOW < dayBIGDAY) ? document.write('until') : document.write('since'); document.write('
' + dayPARAM3 + '
'); dayREFRESH(); } function dayREFRESH(){ dayNOW = new Date(); if (dayANNUAL != true) { var dayBIGDAY = new Date(dayPARAM2, dayPARAM1, dayPARAM0); } else { var dayBIGDAY = new Date(dayNOW.getFullYear(), dayPARAM1, dayPARAM0); if (dayBIGDAY < dayNOW) dayBIGDAY.setFullYear(dayBIGDAY.getFullYear() + 1); } dayCOUNTER = Math.abs(dayBIGDAY - dayNOW) / 1000; dayDAYSUNTIL = Math.floor(dayCOUNTER / (60 * 60 * 24)); dayHOURSUNTIL = Math.floor((dayCOUNTER - (dayDAYSUNTIL * 60 * 60 * 24)) / (60 * 60)); dayMINSUNTIL = Math.floor((dayCOUNTER - ((dayDAYSUNTIL * 60 * 60 * 24) + (dayHOURSUNTIL * 60 * 60))) / 60); daySECSUNTIL = dayCOUNTER - (dayDAYSUNTIL * 60 * 60 * 24) - (dayHOURSUNTIL * 60 * 60) - (dayMINSUNTIL * 60); if ((dayNO1000DATE == 0) && (dayDAYSUNTIL > 999) && (document.images.dayDAY0.src != "http://pic.reocities.com/images/gadgetfactory/day/b" + Math.floor(dayDAYSUNTIL / 1000) + "_11x18.gif")) document.images.dayDAY0.src = "http://pic.reocities.com/images/gadgetfactory/day/b" + Math.floor(dayDAYSUNTIL / 1000) + "_11x18.gif"; if ((dayNO1000DATE == 0) && (dayDAYSUNTIL <= 999) && (document.images.dayDAY0.src != "http://pic.reocities.com/images/pixel.gif")) document.images.dayDAY0.src = "http://pic.reocities.com/images/pixel.gif"; if ((dayNO100DATE == 0) && (dayDAYSUNTIL > 99) && (document.images.dayDAY1.src != "http://pic.reocities.com/images/gadgetfactory/day/b" + Math.floor((dayDAYSUNTIL - (Math.floor(dayDAYSUNTIL / 1000) *1000))/ 100) + "_11x18.gif")) document.images.dayDAY1.src = "http://pic.reocities.com/images/gadgetfactory/day/b" + Math.floor((dayDAYSUNTIL - (Math.floor(dayDAYSUNTIL / 1000) *1000))/ 100) + "_11x18.gif"; if ((dayNO100DATE == 0) && (dayDAYSUNTIL <= 99) && (document.images.dayDAY1.src != "http://pic.reocities.com/images/pixel.gif")) document.images.dayDAY1.src = "http://pic.reocities.com/images/pixel.gif"; if ((dayNO10DATE == 0) && (dayDAYSUNTIL > 9) && (document.images.dayDAY2.src != "http://pic.reocities.com/images/gadgetfactory/day/b" + Math.floor((dayDAYSUNTIL - (Math.floor(dayDAYSUNTIL / 100) *100))/ 10) + "_11x18.gif")) document.images.dayDAY2.src = "http://pic.reocities.com/images/gadgetfactory/day/b" + Math.floor((dayDAYSUNTIL - (Math.floor(dayDAYSUNTIL / 100) *100))/ 10) + "_11x18.gif"; if ((dayNO10DATE == 0) && (dayDAYSUNTIL <= 9) && (document.images.dayDAY2.src != "http://pic.reocities.com/images/pixel.gif")) document.images.dayDAY2.src = "http://pic.reocities.com/images/pixel.gif"; if (document.images.dayDAY3.src != "http://pic.reocities.com/images/gadgetfactory/day/b" + (dayDAYSUNTIL - (Math.floor(dayDAYSUNTIL / 10) * 10)) + "_11x18.gif") document.images.dayDAY3.src = "http://pic.reocities.com/images/gadgetfactory/day/b" + (dayDAYSUNTIL - (Math.floor(dayDAYSUNTIL / 10) * 10)) + "_11x18.gif"; if ((dayDAYSUNTIL == 1) && (document.images.dayDAYS.src != "http://pic.reocities.com/images/gadgetfactory/day/day_43x18.gif")) document.images.dayDAYS.src = "http://pic.reocities.com/images/gadgetfactory/day/day_43x18.gif"; if ((dayDAYSUNTIL != 1) && (document.images.dayDAYS.src != "http://pic.reocities.com/images/gadgetfactory/day/days_43x18.gif")) document.images.dayDAYS.src = "http://pic.reocities.com/images/gadgetfactory/day/days_43x18.gif"; if (document.images.dayDAYS0.src != "http://pic.reocities.com/images/gadgetfactory/day/s" + Math.floor(dayDAYSUNTIL / 1000) + "_6x8.gif") document.images.dayDAYS0.src = "http://pic.reocities.com/images/gadgetfactory/day/s" + Math.floor(dayDAYSUNTIL / 1000) + "_6x8.gif"; if (document.images.dayDAYS1.src != "http://pic.reocities.com/images/gadgetfactory/day/s" + Math.floor((dayDAYSUNTIL - (Math.floor(dayDAYSUNTIL / 1000) *1000))/ 100) + "_6x8.gif") document.images.dayDAYS1.src = "http://pic.reocities.com/images/gadgetfactory/day/s" + Math.floor((dayDAYSUNTIL - (Math.floor(dayDAYSUNTIL / 1000) *1000))/ 100) + "_6x8.gif"; if (document.images.dayDAYS2.src != "http://pic.reocities.com/images/gadgetfactory/day/s" + Math.floor((dayDAYSUNTIL - (Math.floor(dayDAYSUNTIL / 100) *100))/ 10) + "_6x8.gif") document.images.dayDAYS2.src = "http://pic.reocities.com/images/gadgetfactory/day/s" + Math.floor((dayDAYSUNTIL - (Math.floor(dayDAYSUNTIL / 100) *100))/ 10) + "_6x8.gif"; if (document.images.dayDAYS3.src != "http://pic.reocities.com/images/gadgetfactory/day/s" + (dayDAYSUNTIL - (Math.floor(dayDAYSUNTIL / 10) * 10)) + "_6x8.gif") document.images.dayDAYS3.src = "http://pic.reocities.com/images/gadgetfactory/day/s" + (dayDAYSUNTIL - (Math.floor(dayDAYSUNTIL / 10) * 10)) + "_6x8.gif"; if (document.images.dayHRS1.src != "http://pic.reocities.com/images/gadgetfactory/day/s" + Math.floor(dayHOURSUNTIL / 10) + "_6x8.gif") document.images.dayHRS1.src = "http://pic.reocities.com/images/gadgetfactory/day/s" + Math.floor(dayHOURSUNTIL / 10) + "_6x8.gif"; if (document.images.dayHRS2.src != "http://pic.reocities.com/images/gadgetfactory/day/s" + (dayHOURSUNTIL - (Math.floor(dayHOURSUNTIL / 10) * 10)) + "_6x8.gif") document.images.dayHRS2.src = "http://pic.reocities.com/images/gadgetfactory/day/s" + (dayHOURSUNTIL - (Math.floor(dayHOURSUNTIL / 10) * 10)) + "_6x8.gif"; if (document.images.dayMIN1.src != "http://pic.reocities.com/images/gadgetfactory/day/s" + Math.floor(dayMINSUNTIL / 10) + "_6x8.gif") document.images.dayMIN1.src = "http://pic.reocities.com/images/gadgetfactory/day/s" + Math.floor(dayMINSUNTIL / 10) + "_6x8.gif"; if (document.images.dayMIN2.src != "http://pic.reocities.com/images/gadgetfactory/day/s" + (dayMINSUNTIL - (Math.floor(dayMINSUNTIL / 10) * 10)) + "_6x8.gif") document.images.dayMIN2.src = "http://pic.reocities.com/images/gadgetfactory/day/s" + (dayMINSUNTIL - (Math.floor(dayMINSUNTIL / 10) * 10)) + "_6x8.gif"; if (document.images.daySEC1.src != "http://pic.reocities.com/images/gadgetfactory/day/s" + Math.floor(daySECSUNTIL / 10) + "_6x8.gif") document.images.daySEC1.src = "http://pic.reocities.com/images/gadgetfactory/day/s" + Math.floor(daySECSUNTIL / 10) + "_6x8.gif"; if (document.images.daySEC2.src != "http://pic.reocities.com/images/gadgetfactory/day/s" + Math.floor(daySECSUNTIL - (Math.floor(daySECSUNTIL / 10) * 10)) + "_6x8.gif") document.images.daySEC2.src = "http://pic.reocities.com/images/gadgetfactory/day/s" + Math.floor(daySECSUNTIL - (Math.floor(daySECSUNTIL / 10) * 10)) + "_6x8.gif"; setTimeout('dayREFRESH()',1000); }