var wedNO10DATE = 0; var wedNO100DATE = 0; var wedNO1000DATE = 0; var wedNOW = new Date(); if (wedPARAM1 != wedNOW.getMonth() || wedPARAM0 != wedNOW.getDate() || wedPARAM2!= wedNOW.getFullYear()) { var wedWEDDING = new Date(wedPARAM2, wedPARAM1, wedPARAM0); if (wedNOW < wedWEDDING) var wedNEXTANNIV = wedWEDDING; else { var wedNEXTANNIV = new Date(wedNOW.getFullYear(), wedPARAM1, wedPARAM0); if (wedNEXTANNIV < wedNOW) wedNEXTANNIV.setFullYear(wedNEXTANNIV.getFullYear() + 1); } document.write(''); document.write('
'); (wedNEXTANNIV - wedNOW) > 86400000000 ? document.write('') : wedNO1000DATE = 1; (wedNEXTANNIV - wedNOW) > 8640000000 ? document.write('') : wedNO100DATE = 1; (wedNEXTANNIV - wedNOW) > 864000000 ? document.write('') : wedNO10DATE = 1; document.write('
'); (wedWEDDING < wedNOW) ? document.write('') : document.write(''); document.write('
'); wedREFRESH();} else {document.write(''); } function wedREFRESH(){ wedNOW = new Date(); var wedWEDDING = new Date(wedPARAM2, wedPARAM1, wedPARAM0); if (wedNOW < wedWEDDING) var wedNEXTANNIV = wedWEDDING; else { var wedNEXTANNIV = new Date(wedNOW.getFullYear(), wedPARAM1, wedPARAM0); if (wedNEXTANNIV < wedNOW) wedNEXTANNIV.setFullYear(wedNEXTANNIV.getFullYear() + 1); } wedCOUNTER = (wedNEXTANNIV - wedNOW) / 1000; wedDAYSUNTIL = Math.floor(wedCOUNTER / (60 * 60 * 24)); wedHOURSUNTIL = Math.floor((wedCOUNTER - (wedDAYSUNTIL * 60 * 60 * 24)) / (60 * 60)); wedMINSUNTIL = Math.floor((wedCOUNTER - ((wedDAYSUNTIL * 60 * 60 * 24) + (wedHOURSUNTIL * 60 * 60))) / 60); wedSECSUNTIL = wedCOUNTER - (wedDAYSUNTIL * 60 * 60 * 24) - (wedHOURSUNTIL * 60 * 60) - (wedMINSUNTIL * 60); if ((wedNO1000DATE == 0) && (wedDAYSUNTIL > 999) && (document.images.wedDAY0.src != "http://pic.oocities.com/images/gadgetfactory/wed/b" + Math.floor(wedDAYSUNTIL / 1000) + "_11x18.gif")) document.images.wedDAY0.src = "http://pic.oocities.com/images/gadgetfactory/wed/b" + Math.floor(wedDAYSUNTIL / 1000) + "_11x18.gif"; if ((wedNO1000DATE == 0) && (wedDAYSUNTIL <= 999) && (document.images.wedDAY0.src != "http://pic.oocities.com/images/pixel.gif")) document.images.wedDAY0.src = "http://pic.oocities.com/images/pixel.gif"; if ((wedNO100DATE == 0) && (wedDAYSUNTIL > 99) && (document.images.wedDAY1.src != "http://pic.oocities.com/images/gadgetfactory/wed/b" + Math.floor((wedDAYSUNTIL - (Math.floor(wedDAYSUNTIL / 1000) *1000))/ 100) + "_11x18.gif")) document.images.wedDAY1.src = "http://pic.oocities.com/images/gadgetfactory/wed/b" + Math.floor((wedDAYSUNTIL - (Math.floor(wedDAYSUNTIL / 1000) *1000))/ 100) + "_11x18.gif"; if ((wedNO100DATE == 0) && (wedDAYSUNTIL <= 99) && (document.images.wedDAY1.src != "http://pic.oocities.com/images/pixel.gif")) document.images.wedDAY1.src = "http://pic.oocities.com/images/pixel.gif"; if ((wedNO10DATE == 0) && (wedDAYSUNTIL > 9) && (document.images.wedDAY2.src != "http://pic.oocities.com/images/gadgetfactory/wed/b" + Math.floor((wedDAYSUNTIL - (Math.floor(wedDAYSUNTIL / 100) *100))/ 10) + "_11x18.gif")) document.images.wedDAY2.src = "http://pic.oocities.com/images/gadgetfactory/wed/b" + Math.floor((wedDAYSUNTIL - (Math.floor(wedDAYSUNTIL / 100) *100))/ 10) + "_11x18.gif"; if ((wedNO10DATE == 0) && (wedDAYSUNTIL <= 9) && (document.images.wedDAY2.src != "http://pic.oocities.com/images/pixel.gif")) document.images.wedDAY2.src = "http://pic.oocities.com/images/pixel.gif"; if (document.images.wedDAY3.src != "http://pic.oocities.com/images/gadgetfactory/wed/b" + (wedDAYSUNTIL - (Math.floor(wedDAYSUNTIL / 10) * 10)) + "_11x18.gif") document.images.wedDAY3.src = "http://pic.oocities.com/images/gadgetfactory/wed/b" + (wedDAYSUNTIL - (Math.floor(wedDAYSUNTIL / 10) * 10)) + "_11x18.gif"; if ((wedDAYSUNTIL == 1) && (document.images.wedDAYS.src != "http://pic.oocities.com/images/gadgetfactory/wed/day_43x18.gif")) document.images.wedDAYS.src = "http://pic.oocities.com/images/gadgetfactory/wed/day_43x18.gif"; if ((wedDAYSUNTIL != 1) && (document.images.wedDAYS.src != "http://pic.oocities.com/images/gadgetfactory/wed/days_43x18.gif")) document.images.wedDAYS.src = "http://pic.oocities.com/images/gadgetfactory/wed/days_43x18.gif"; if (document.images.wedDAYS0.src != "http://pic.oocities.com/images/gadgetfactory/wed/s" + Math.floor(wedDAYSUNTIL / 1000) + "_6x8.gif") document.images.wedDAYS0.src = "http://pic.oocities.com/images/gadgetfactory/wed/s" + Math.floor(wedDAYSUNTIL / 1000) + "_6x8.gif"; if (document.images.wedDAYS1.src != "http://pic.oocities.com/images/gadgetfactory/wed/s" + Math.floor((wedDAYSUNTIL - (Math.floor(wedDAYSUNTIL / 1000) *1000))/ 100) + "_6x8.gif") document.images.wedDAYS1.src = "http://pic.oocities.com/images/gadgetfactory/wed/s" + Math.floor((wedDAYSUNTIL - (Math.floor(wedDAYSUNTIL / 1000) *1000))/ 100) + "_6x8.gif"; if (document.images.wedDAYS2.src != "http://pic.oocities.com/images/gadgetfactory/wed/s" + Math.floor((wedDAYSUNTIL - (Math.floor(wedDAYSUNTIL / 100) *100))/ 10) + "_6x8.gif") document.images.wedDAYS2.src = "http://pic.oocities.com/images/gadgetfactory/wed/s" + Math.floor((wedDAYSUNTIL - (Math.floor(wedDAYSUNTIL / 100) *100))/ 10) + "_6x8.gif"; if (document.images.wedDAYS3.src != "http://pic.oocities.com/images/gadgetfactory/wed/s" + (wedDAYSUNTIL - (Math.floor(wedDAYSUNTIL / 10) * 10)) + "_6x8.gif") document.images.wedDAYS3.src = "http://pic.oocities.com/images/gadgetfactory/wed/s" + (wedDAYSUNTIL - (Math.floor(wedDAYSUNTIL / 10) * 10)) + "_6x8.gif"; if (document.images.wedHRS1.src != "http://pic.oocities.com/images/gadgetfactory/wed/s" + Math.floor(wedHOURSUNTIL / 10) + "_6x8.gif") document.images.wedHRS1.src = "http://pic.oocities.com/images/gadgetfactory/wed/s" + Math.floor(wedHOURSUNTIL / 10) + "_6x8.gif"; if (document.images.wedHRS2.src != "http://pic.oocities.com/images/gadgetfactory/wed/s" + (wedHOURSUNTIL - (Math.floor(wedHOURSUNTIL / 10) * 10)) + "_6x8.gif") document.images.wedHRS2.src = "http://pic.oocities.com/images/gadgetfactory/wed/s" + (wedHOURSUNTIL - (Math.floor(wedHOURSUNTIL / 10) * 10)) + "_6x8.gif"; if (document.images.wedMIN1.src != "http://pic.oocities.com/images/gadgetfactory/wed/s" + Math.floor(wedMINSUNTIL / 10) + "_6x8.gif") document.images.wedMIN1.src = "http://pic.oocities.com/images/gadgetfactory/wed/s" + Math.floor(wedMINSUNTIL / 10) + "_6x8.gif"; if (document.images.wedMIN2.src != "http://pic.oocities.com/images/gadgetfactory/wed/s" + (wedMINSUNTIL - (Math.floor(wedMINSUNTIL / 10) * 10)) + "_6x8.gif") document.images.wedMIN2.src = "http://pic.oocities.com/images/gadgetfactory/wed/s" + (wedMINSUNTIL - (Math.floor(wedMINSUNTIL / 10) * 10)) + "_6x8.gif"; if (document.images.wedSEC1.src != "http://pic.oocities.com/images/gadgetfactory/wed/s" + Math.floor(wedSECSUNTIL / 10) + "_6x8.gif") document.images.wedSEC1.src = "http://pic.oocities.com/images/gadgetfactory/wed/s" + Math.floor(wedSECSUNTIL / 10) + "_6x8.gif"; if (document.images.wedSEC2.src != "http://pic.oocities.com/images/gadgetfactory/wed/s" + Math.floor(wedSECSUNTIL - (Math.floor(wedSECSUNTIL / 10) * 10)) + "_6x8.gif") document.images.wedSEC2.src = "http://pic.oocities.com/images/gadgetfactory/wed/s" + Math.floor(wedSECSUNTIL - (Math.floor(wedSECSUNTIL / 10) * 10)) + "_6x8.gif"; setTimeout('wedREFRESH()',1000); }