var CD = 23; var CM = 3; var CY = 2018; var Ch = 2; var Cmin = 00; var SD = 18; var SM = 12; var SY = 2017; var Sh = 11; var Smin = 36; var J = new Date(); var SP = new Date(SY, SM-1, SD, Sh, Smin, 00); var TG = SP.getTime() - J.getTime(); function CountdownAnzeigen() { var J = new Date(); var Countdown = new Date(CY, CM-1, CD, Ch, Cmin, 00);var MS = Countdown.getTime()-J.getTime()-TG;var Re = Math.floor(MS/1000); var LI = "/f1/saison/formel-1-termin-kalender-2018"; var RE = "Australien-GP"; var SE = "1. Freien Training"; var SEL = "1. Freies Training"; var TXT = "" + RE + ": ";if(Re>=600){if(Re>=86400){var D = Math.floor(Re/86400);Re = Re-D*86400;if (D == 1) { TXT += D + " Tag und ";}else{TXT += D + " Tage und ";}}if(Re>=3600){var HH = Math.floor(Re/3600); Re = Re-HH*3600;TXT += HH + ":";}else{TXT += "00:";}if(Re>=60){var Min = Math.floor(Re/60);Re = Re-Min*60;if(Min<10){TXT += "0";}TXT += Min + ":";}else{TXT += "00:";}if(Re<10){TXT += "0";}TXT += Re + " Stunden bis zum " + SE + ""; document.getElementById('Countdown').innerHTML = TXT;window.setTimeout("CountdownAnzeigen()", 3000);}else{TXT += "" + SEL + " live im Ticker!"; document.getElementById('Countdown').innerHTML = TXT;window.setTimeout("CountdownAnzeigen()", 3000);}}