<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="__MSG_title__"
             author="Matt M."
             author_email="matt.feedback+datetime@gmail.com"
             author_affiliation="Google Inc."
             author_location="Mountain View, CA"
             screenshot="/ig/modules/datetime_content/__MSG_locale__.png"
             thumbnail="/ig/modules/datetime_content/__MSG_locale__-thm.png"
             category="tools"
             description="__MSG_description__"
             render_inline="optional" height="136" scaling="false">
  <Locale messages="datetime_content/en_ALL.xml"/> 
  <Locale lang="ar" messages="datetime_content/ar_ALL.xml" language_direction="rtl"/>
  <Locale lang="bg" messages="datetime_content/bg_ALL.xml"/>
  <Locale lang="ca" messages="datetime_content/ca_ALL.xml"/>
  <Locale lang="cs" messages="datetime_content/cs_ALL.xml"/>
  <Locale lang="da" messages="datetime_content/da_ALL.xml"/>
  <Locale lang="de" messages="datetime_content/de_ALL.xml"/>
  <Locale lang="el" messages="datetime_content/el_ALL.xml"/>
  <Locale lang="en" messages="datetime_content/en_ALL.xml"/>
  <Locale lang="en-gb" messages="datetime_content/en-gb_ALL.xml"/>
  <Locale lang="es" messages="datetime_content/es_ALL.xml"/>
  <Locale lang="et" messages="datetime_content/et_ALL.xml"/>
  <Locale lang="fi" messages="datetime_content/fi_ALL.xml"/>
  <Locale lang="fil" messages="datetime_content/fil_ALL.xml"/>
  <Locale lang="fr" messages="datetime_content/fr_ALL.xml"/>
  <Locale lang="he" messages="datetime_content/he_ALL.xml" language_direction="rtl"/>
  <Locale lang="hi" messages="datetime_content/hi_ALL.xml"/>
  <Locale lang="hr" messages="datetime_content/hr_ALL.xml"/>
  <Locale lang="hu" messages="datetime_content/hu_ALL.xml"/>
  <Locale lang="hy" messages="datetime_content/hy_ALL.xml"/>
  <Locale lang="id" messages="datetime_content/id_ALL.xml"/>
  <Locale lang="is" messages="datetime_content/is_ALL.xml"/>
  <Locale lang="it" messages="datetime_content/it_ALL.xml"/>
  <Locale lang="iw" messages="datetime_content/he_ALL.xml" language_direction="rtl"/>
  <Locale lang="ja" messages="datetime_content/ja_ALL.xml"/>
  <Locale lang="ko" messages="datetime_content/ko_ALL.xml"/>
  <Locale lang="lt" messages="datetime_content/lt_ALL.xml"/>
  <Locale lang="lv" messages="datetime_content/lv_ALL.xml"/>
  <Locale lang="nl" messages="datetime_content/nl_ALL.xml"/>
  <Locale lang="no" messages="datetime_content/no_ALL.xml"/>
  <Locale lang="pl" messages="datetime_content/pl_ALL.xml"/>
  <Locale lang="pt-br" messages="datetime_content/pt-br_ALL.xml"/>
  <Locale lang="pt-pt" messages="datetime_content/pt-pt_ALL.xml"/>
  <Locale lang="ro" messages="datetime_content/ro_ALL.xml"/>
  <Locale lang="ru" messages="datetime_content/ru_ALL.xml"/>
  <Locale lang="sk" messages="datetime_content/sk_ALL.xml"/>
  <Locale lang="sl" messages="datetime_content/sl_ALL.xml"/>
  <Locale lang="sr" messages="datetime_content/sr_ALL.xml"/>
  <Locale lang="sv" messages="datetime_content/sv_ALL.xml"/>
  <Locale lang="th" messages="datetime_content/th_ALL.xml"/>
  <Locale lang="tr" messages="datetime_content/tr_ALL.xml"/>
  <Locale lang="uk" messages="datetime_content/uk_ALL.xml"/>
  <Locale lang="vi" messages="datetime_content/vi_ALL.xml"/>
  <Locale lang="zh-cn" messages="datetime_content/zh-cn_ALL.xml"/>
  <Locale lang="zh-tw" messages="datetime_content/zh-tw_ALL.xml"/>
</ModulePrefs>
<UserPref name="color" datatype="enum" default_value="blue" display_name="__MSG_color__" >
  <EnumValue value="blue" display_value="__MSG_blue__" />
  <EnumValue value="green" display_value="__MSG_green__" />
  <EnumValue value="orange" display_value="__MSG_orange__" />
  <EnumValue value="pink" display_value="__MSG_pink__" />
  <EnumValue value="purple" display_value="__MSG_purple__" />
  <EnumValue value="red" display_value="__MSG_red__" />
  <EnumValue value="yellow" display_value="__MSG_yellow__" />
</UserPref>
<UserPref name="firstDay" datatype="enum" default_value="__MSG_first_day_of_week_pref_default_value__" display_name="__MSG_first_day_of_week_pref__">
  <EnumValue value="0" display_value="__MSG_sunday__" />
  <EnumValue value="1" display_value="__MSG_monday__" />
  <EnumValue value="2" display_value="__MSG_tuesday__" />
  <EnumValue value="3" display_value="__MSG_wednesday__" />
  <EnumValue value="4" display_value="__MSG_thursday__" />
  <EnumValue value="5" display_value="__MSG_friday__" />
  <EnumValue value="6" display_value="__MSG_saturday__" />
</UserPref>
<Content type="html"><![CDATA[

<table id="gdt_main___MODULE_ID__" width="100%" height="136" border="0" cellpadding="0" cellspacing="0" style="font-family: Arial, Helvetica, sans-serif; background: #FFFFFF; color: #FFFFFF;">
  <tr>
    <td style="width: 12px;">
      <div style="position: relative; width: 12px; height: 136px; overflow: hidden; border: 0px; margin: 0px; padding: 0px;">
        <div id="gdt___BIDI_START_EDGE_____MODULE_ID__" style="position: absolute; __BIDI_START_EDGE__: 0px; top: -136px; width: 24px; height: 272px;"></div>
      </div>
    </td>
    <td style="width: 112px;">
      <div style="width: 112px; height: 136px; overflow: hidden; position: relative; top: 0px; left; 0px;">
        <div id="gdt_b_clock___MODULE_ID__" style="position: absolute; __BIDI_START_EDGE__: 0px; top: 0px; border: 0px; margin: 0px; padding: 0px; width: 112px; height: 272px;">
          <div style="position: relative; width: 112px; height: 112px; top: 12px; overflow: hidden; margin: 0px;">
            <div id="gdt_clock___MODULE_ID__" style="position: absolute; left: 0px; top: 0px; width: 1080px; height: 900px;"></div>
            <div style="position: relative; __BIDI_START_EDGE__: 11px; top: 11px; width: 90px; height: 90px; overflow: hidden;">
              <div id="gdt_hands_m___MODULE_ID__" style="position: absolute; left: 0px; top: -450px; width: 1080px; height: 900px;"></div>
              <div id="gdt_hands_h___MODULE_ID__" style="position: absolute; left: 0px; top: -180px; width: 1080px; height: 900px;"></div>
            </div>
          </div>
        </div>
      </div>
    </td>
    <td>
      <div style="position: relative; top: 0px; __BIDI_START_EDGE__; 0px; height: 136px; overflow: hidden;">
        <div id="gdt_b_date___MODULE_ID__" style="height: 272px; padding: 0px 10px;">
          <table height="136" width="100%">
            <tr>
              <td valign="middle">
                <div style="float: __BIDI_START_EDGE__; padding-__BIDI_START_EDGE__: 5px; padding-__BIDI_END_EDGE__: 10px;">
                  <div id="gdt_day___MODULE_ID__" style="font-size: 16px; font-weight: bold;">__MSG_sun__</div>
                  <div id="gdt_month___MODULE_ID__" style="font-size: 20px; font-weight: bold;">__MSG_jan__</div>
                </div>
                <div id="gdt_date___MODULE_ID__" style="font-size: 42px; font-weight: bold;">1</div>
              </td>
            </tr>
          </table>
        </div>
      </div>
    </td>
    <td id="gdt_td_cal___MODULE_ID__" style="display: none;">
      <div style="position: relative; top: 0px; __BIDI_START_EDGE__: 0px; height: 136px; overflow: hidden;">
        <div id="gdt_cal___MODULE_ID__" style="height: 272px;">
          <div id="gdt_cal_placeholder___MODULE_ID__" style="padding-top: 3px;">
          </div>
        </div>
      </div>
    </td>
    <td style="width: 12px;">
      <div style="position: relative; width: 12px; height: 136px; overflow: hidden; border: 0px; margin: 0px; padding: 0px;">
        <div id="gdt___BIDI_END_EDGE_____MODULE_ID__" style="position: absolute; __BIDI_END_EDGE__: 0px; top: -136px; width: 24px; height: 272px;"></div>
      </div>
    </td>
  </tr>
</table>

<script>function GDT___MODULE_ID__(){this.imgprefix="/ig/modules/datetime_content/";this.prefs=new _IG_Prefs(__MODULE_ID__);var h=this.prefs.getString("color")||"blue";if(!h.match(/^#[0-9a-f]{6}$/i)){var p={green:"#46BC46",orange:"#E69B1E",pink:"#D7398E",purple:"#7332D2",red:"#CD2525",yellow:"#CEC041"};h=p[h]||"#36B1BA"}this.clockColor=h;this.firstDay=this.prefs.getInt("firstDay");if(this.firstDay<0||this.firstDay>6)this.firstDay=0;this.dispDay=-1;this.monthsArray=["__MSG_jan__","__MSG_feb__","__MSG_mar__",
"__MSG_apr__","__MSG_may__","__MSG_jun__","__MSG_jul__","__MSG_aug__","__MSG_sep__","__MSG_oct__","__MSG_nov__","__MSG_dec__"];this.daysArray=["__MSG_sun__","__MSG_mon__","__MSG_tue__","__MSG_wed__","__MSG_thu__","__MSG_fri__","__MSG_sat__"];var k=navigator.userAgent.toLowerCase();this.is_ie56=(k.indexOf("msie 5")!=-1||k.indexOf("msie 6")!=-1)&&document.all&&k.indexOf("opera")==-1;this.setColors=function(a,b){_gel("gdt_main___MODULE_ID__").style.background=a;_gel("gdt_main___MODULE_ID__").style.color=
b};this.writeEl=function(a,b){_gel(a+"__MODULE_ID__").innerHTML=b};this.updateXY=function(a,b,d){_gel(a).style.left=""+-b+"px";_gel(a).style.top=""+-d+"px"};this.toggleCalDisp=function(){if(_gel("gdt_main___MODULE_ID__").clientWidth>315)_gel("gdt_td_cal___MODULE_ID__").style.display="block";else _gel("gdt_td_cal___MODULE_ID__").style.display="none"};this.setBkgPng=function(a,b,d){if(this.is_ie56){_gel(a).style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, src='"+b+"', sizingMethod='scale')";
_gel(a).style.backgroundImage="none"}else{_gel(a).style.backgroundImage="url('"+b+"')";_gel(a).style.backgroundRepeat=d}};this.upClock=function(){var a=new Date,b=a.getHours(),d=a.getMinutes(),f=a.getDay(),i=a.getMonth(),g=a.getDate(),c=(b*3+Math.round(d/20))%36;this.updateXY("gdt_hands_h___MODULE_ID__",90*(c%12),180+90*Math.floor(c/12));this.updateXY("gdt_hands_m___MODULE_ID__",90*(d%12),450+90*Math.floor(d/12));if(g!=this.dispDay){this.writeEl("gdt_day_",this.daysArray[f]);this.writeEl("gdt_month_",
this.monthsArray[i]);this.writeEl("gdt_date_",g);this.drawCal(f,i,g,a.getFullYear());this.dispDay=g}};this.drawCal=function(a,b,d,f){var i=["__MSG_sun_a__","__MSG_mon_a__","__MSG_tue_a__","__MSG_wed_a__","__MSG_thu_a__","__MSG_fri_a__","__MSG_sat_a__"],g=[31,28,31,30,31,30,31,31,30,31,30,31],c=[];c.push("<table cellspacing=1 cellpadding=2 border=0><tr align=right>");var m=g[b];if(b==1&&f%4==0)if(f%100!=0||f%400==0)m=29;for(var e=0;e<7;e++)c.push('<td style="font-size:9px;border-bottom:1px dotted">'+
i[(this.firstDay+e)%7]+"</td>");c.push("</tr>");var j=1,q=(a-this.firstDay+7-d%7+1+7)%7;for(var e=0;e<6;e++){c.push("<tr align=right>");for(var l=0;l<7;l++){var n="font-size:9px;",o=j;if(e==0&&l<q||j>m)o="&nbsp;";else{if(j==d)n+="border:1px solid;font-weight:bold;";j++}c.push('<td style="'+n+'">'+o+"</td>")}c.push("</tr>")}c.push("</table>");_gel("gdt_cal_placeholder___MODULE_ID__").innerHTML=c.join("")};this.startInterval=function(){window.setInterval("GDT___MODULE_ID___handle.upClock()",60000);
this.upClock()};this.setImages=function(){var a=[["clock","clock-and-hands-2",0],["left","background-alpha",0],["right","background-alpha",0],["b_clock","background-alpha",1],["b_date","background-alpha",1],["cal","background-alpha",1],["hands_m","clock-and-hands-2",0],["hands_h","clock-and-hands-2",0]];for(var b=0;b<a.length;b++)this.setBkgPng("gdt_"+a[b][0]+"___MODULE_ID__",this.imgprefix+a[b][1]+".png",a[b][2]?"repeat-x":"no-repeat")};this.main=function(){this.setImages();_IG_AddDOMEventHandler(window,
"resize",GDT___MODULE_ID___handle.toggleCalDisp);this.upClock();this.toggleCalDisp();this.setColors(this.clockColor,"#FFFFFF");window.setTimeout("GDT___MODULE_ID___handle.startInterval()",(60-(new Date).getSeconds())*1000+5)}}var GDT___MODULE_ID___handle=new GDT___MODULE_ID__;_IG_RegisterOnloadHandler(function(){GDT___MODULE_ID___handle.main()});</script>

]]></Content>
</Module>
