/* * Compressed by JSA(www.xidea.org) */ function js_clock($,Q,C,E){var _=new Date(),G=_.getDay();_=DateAdd("s",_,Q);var D=_.getHours(),B=_.getMinutes(),P=_.getSeconds(),J="AM";if(D>11){J="PM";D=D-12}if(D==0)D=12;if(D<10)D=""+D;if(B<10)B="0"+B;if(P<10)P="0"+P;if(G==0)G="(日)";else if(G==1)G="(一)";else if(G==2)G="(二)";else if(G==3)G="(三)";else if(G==4)G="(四)";else if(G==5)G="(五)";else if(G==6)G="(六)";var H=_.getMonth(),F=_.getDate(),I=_.getYear();if(I<=99)I="19"+I;if((I>99)&&(I<2000))I+=1900;var K="";if(H==0)K="1月";else if(H==1)K="2月";else if(H==2)K="3月";else if(H==3)K="4月";else if(H==4)K="5月";else if(H==5)K="6月";else if(H==6)K="7月";else if(H==7)K="8月";else if(H==8)K="9月";else if(H==9)K="10月";else if(H==10)K="11月";else if(H==11)K="12月";var M=document.getElementById(C);if(document.getElementById("timeformat")!=null)E=document.getElementById("timeformat").options[document.getElementById("timeformat").selectedIndex].value;H=H+1;var N="",O="日"+""+"",L="月"+""+"",A="年"+""+"";if(E==1)N=K+" "+F+O+""+I+" "+D+":"+B+":"+P+" "+J;else if(E==2)N=F+O+""+K+" "+I+" "+D+":"+B+":"+P+" "+J;else if(E==3)N=H+"/"+F+"/"+I+" "+D+":"+B+":"+P+" "+J;else if(E==4)N=F+"/"+H+"/"+I+" "+D+":"+B+":"+P+" "+J;else if(E==5)N=I+"/"+H+"/"+F+" "+D+":"+B+":"+P+" "+J;else if(E==6)N=I+"-"+H+"-"+F+" "+D+":"+B+":"+P+" "+J;else if(E==7)N=K+" "+F+O+""+I+" "+G+" "+D+":"+B+":"+P+" "+J;else if(E==8)N=F+O+""+K+" "+I+" "+G+" "+D+":"+B+":"+P+" "+J;else if(E==9)N=H+"/"+F+"/"+I+" "+G+" "+D+":"+B+":"+P+" "+J;else if(E==10)N=F+"/"+H+"/"+I+" "+G+" "+D+":"+B+":"+P+" "+J;else if(E==11)N=I+"/"+H+"/"+F+" "+G+" "+D+":"+B+":"+P+" "+J;else if(E==12)N=I+"-"+H+"-"+F+" "+G+" "+D+":"+B+":"+P+" "+J;else if(E==13)N=I+A+""+H+L+""+F+O+""+G+" "+D+":"+B+":"+P+" "+J;else if(E==14)N=G+", "+K+" "+F+O+""+I+" "+D+":"+B+":"+P+" "+J;else if(E==15)N=G+", "+F+O+""+K+" "+I+" "+D+":"+B+":"+P+" "+J;else if(E==16)N=G+" "+K+" "+F+O+""+I+" "+D+":"+B+":"+P+" "+J;else if(E==17)N=G+" "+F+O+""+K+" "+I+" "+D+":"+B+":"+P+" "+J;M.innerHTML=N;setTimeout(""+$+"("+Q+",'"+C+"',"+E+")",1000)}function DateAdd(_,A,$){switch(_){case"d":A.setDate(A.getDate()+$);break;case"m":A.setMonth(A.getMonth()+$);break;case"y":A.setYear(A.getFullYear()+$);break;case"h":A.setHours(A.getHours()+$);break;case"n":A.setMinutes(A.getMinutes()+$);break;case"s":A.setSeconds(A.getSeconds()+$);break}return A}function dateDiff(interval,date1,date2){var objInterval={"D":1000*60*60*24,"H":1000*60*60,"M":1000*60,"S":1000,"T":1};interval=interval.toUpperCase();var dt1=Date.parse(date1.replace(/-/g,"/")),dt2=Date.parse(date2.replace(/-/g,"/"));try{return Math.round((dt2-dt1)/eval("(objInterval."+interval+")"))}catch(e){return e.message}}function addLoadEvent($){var _=window.onload;if(typeof window.onload!="function")window.onload=$;else window.onload=function(){_();$()}} var firstdate=new Date(); firstdate.setFullYear(2024,10,16); firstdate.setHours(19); firstdate.setMinutes(27); firstdate.setSeconds(57); var now=new Date(); var mydiff=(firstdate-now)/1000; function mystartclocktwVienna15(){ js_clock('mystartclocktwVienna15',mydiff,'clocktwVienna1',5); } addLoadEvent(mystartclocktwVienna15);