/* * 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="Son";else if(G==1)G="Mon";else if(G==2)G="Die";else if(G==3)G="Mit";else if(G==4)G="Don";else if(G==5)G="Fre";else if(G==6)G="Sam";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="Jan";else if(H==1)K="Feb";else if(H==2)K="Mär";else if(H==3)K="Apr";else if(H==4)K="Mai";else if(H==5)K="Jun";else if(H==6)K="Jul";else if(H==7)K="Aug";else if(H==8)K="Sep";else if(H==9)K="Okt";else if(H==10)K="Nov";else if(H==11)K="Dez";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,3,28); firstdate.setHours(0); firstdate.setMinutes(13); firstdate.setSeconds(27); var now=new Date(); var mydiff=(firstdate-now)/1000; function mystartclockdeSakhalinsk11(){ js_clock('mystartclockdeSakhalinsk11',mydiff,'clockdeSakhalinsk1',1); } addLoadEvent(mystartclockdeSakhalinsk11);