$(function(){function A(I){var H=new Date(I);H.setDate(I.getDate()-I.getDay());return H}function D(I,J,H){I=I.toString();while(I.length<H){I=J+I}return I}function B(I,H){I+=H;if(I>=24){I-=24}return I}function G(){var I=new Date();var K=0;if(I>E&&I<F){K=1}var J=I.getUTCHours();var H=I.getUTCMinutes();$("#time-1").text(D(B(J,1+K),"0",2)+":"+D(H,"0",2));$("#time-2").text(D(B(J,3+K),"0",2)+":"+D(H,"0",2))}var C=new Date();var E=A(new Date(C.getFullYear(),2,31,3,0,0));var F=A(new Date(C.getFullYear(),9,31,2,0,0));window.setInterval(G,1000);G()});function ShowMessage(B,A){$.modal('<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">				<tr><td align="center">'+B+"</td></tr>			</table>",{overlayCss:{backgroundColor:"#000",cursor:"wait"},containerCss:{width:470,height:210,backgroundColor:"#ecf7e0",padding:20},dataCss:{color:"#2C4513",height:210,fontSize:"12pt"}});if(A){setTimeout(function(){$.modal.close()},A)}return false}function ShowError(A){$.modal('<table cellpadding="0" cellspacing="0" border="0" width="100%" height="90%">				<tr><td align="center"><b>'+StringTable.get("er.common.error")+"</b><br/>"+A+'</td></tr>			</table>			<div style="text-align:center">				<input type="button" class="simplemodal-close" value="'+StringTable.get("er.common.close")+'"/>			</div>',{overlayCss:{backgroundColor:"#000",cursor:"wait"},containerCss:{width:470,height:210,backgroundColor:"#ecf7e0",padding:20},dataCss:{color:"#2C4513",height:210,fontSize:"12pt"}});return false}