<?xml version="1.0" encoding="UTF-8" ?>
<Module>
  <ModulePrefs title="__MSG_title__"
               description="__MSG_description__"
               author="Google"
               author_email="googlemodules+timeandweather+201207231@google.com"
               author_affiliation="Google Inc."
               author_location="Korea"
               screenshot="__MSG_screenshot__"
               thumbnail="__MSG_thumbnail__"
               height="120"
               scrolling="false">
    <Locale messages="http://www.gstatic.com/ig/modules/timeandweather/ALL_ALL.xml" />
    <Locale lang="ja" messages="http://www.gstatic.com/ig/modules/timeandweather/ja_ALL.xml" />
    <Locale lang="ko" messages="http://www.gstatic.com/ig/modules/timeandweather/ko_ALL.xml" />
    <Require feature="dynamic-height"/>
    <Require feature="setprefs" />
    <Preload href="__UP_preload_url__" />
  </ModulePrefs>
  <UserPref name="city" datatype="hidden" default_value="__MSG_default_city__" />
  <UserPref name="DST" display_name="__MSG_DST__" datatype="bool" default_value="false" />
  <UserPref name="clock" display_name="__MSG_clock__" datatype="enum" default_value="0">
    <EnumValue value="0" display_value="__MSG_analog__" />
    <EnumValue value="1" display_value="__MSG_digital__" />
  </UserPref>
  <UserPref name="preload_url" datatype="hidden" default_value="__MSG_weather_url____MSG_preload_location__" />
  <Content type="html" view="home,preview">

<![CDATA[
<style>#tw___MODULE_ID__{height:115px;margin:5px 5px 0;overflow:hidden}#tw___MODULE_ID__ *{margin:0;padding:0;overflow:hidden}#tw___MODULE_ID__ .left{float:left}#tw___MODULE_ID__.digital .left .region{width:140px;height:22px}#tw___MODULE_ID__.analog .left .region{width:70px;height:22px}#tw___MODULE_ID__ .left .select{width:100%}#tw___MODULE_ID__ .clock{position:relative;width:138px;height:64px;margin:5px 0;border:1px solid #9ac7fe}#tw___MODULE_ID__ .clock-n{border-color:#494949}#tw___MODULE_ID__ .clock .top{height:20px;border-top:1px solid #d7e0e7;border-bottom:1px solid #b9d9ff;background-color:#ecf5fe}#tw___MODULE_ID__ .clock .top-n{border-top-color:#7f7f7f;border-bottom-color:#707070;background-color:#8b8b8b}#tw___MODULE_ID__ .clock .top .meridiem{display:inline;float:left;margin:3px 0 0 9px;font:12px arial;font-weight:bold;color:#7cb8ff}#tw___MODULE_ID__ .clock .top .meridiem-n{color:#e9e9e9}#tw___MODULE_ID__ .clock .top .sun{display:inline;float:right;width:20px;height:20px;background:transparent url(//www.gstatic.com/ig/modules/timeandweather/moonsun.gif) no-repeat scroll 0}#tw___MODULE_ID__ .clock .h{height:0;border-top:21px solid #add2ff;border-bottom:21px solid #9dc8fd;font-size:0;line-height:0}#tw___MODULE_ID__ .clock .h-n{border-top-color:#575757;border-bottom-color:#494949}#tw___MODULE_ID__ .clock .time{position:absolute;left:5px;top:25px;width:126px;font:33px arial;color:#fff;text-align:right}#tw___MODULE_ID__ .left .date{font:11px dotum;text-align:center}#tw___MODULE_ID__ ol{list-style-type:none}#tw___MODULE_ID__ ol li{float:left;margin-left:2px}#tw___MODULE_ID__ .weather .wd-a{margin:12px 0 2px;font:11px dotum;text-align:center}#tw___MODULE_ID__ .weather .wd-b{margin:34px 0 2px;font:11px dotum;text-align:center}#tw___MODULE_ID__ .weather .wb{padding:1px;margin:0 1px;border:1px solid #ccc}#tw___MODULE_ID__ .weather .wi-a{width:62px;height:62px;background:transparent url(//www.gstatic.com/ig/modules/timeandweather/weather.gif) no-repeat scroll 0}#tw___MODULE_ID__ .weather .wi-b{width:40px;height:40px;background:transparent url(//www.gstatic.com/ig/modules/timeandweather/weather.gif) no-repeat scroll 0}#tw___MODULE_ID__ .weather .wt{margin-top:5px;font:11px tahoma;text-align:center}#tw___MODULE_ID__ .bg-view{position:relative;width:70px;height:70px;margin:3px 0}#tw___MODULE_ID__ .view{position:relative;width:52px;height:52px;left:9px;top:9px}#tw___MODULE_ID__ .aclock{background:transparent url(//www.gstatic.com/ig/modules/timeandweather/time.png) no-repeat scroll 0;width:780px;height:1110px}* html #tw___MODULE_ID__ .aclock{background-image:none;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=//www.gstatic.com/ig/modules/timeandweather/time.png,sizingMethod=crop)}#tw___MODULE_ID__ .aclock.bg{position:absolute;top:-1040px}#tw___MODULE_ID__ .aclock.hand{position:absolute;cursor:default}#tw___MODULE_ID__ .aclock.cab{position:absolute;left:-140px;top:-1040px}#m___MODULE_ID___b{padding:5px 5px 10px}</style>
<div class=analog id=tw___MODULE_ID__>
<div class=left>
<div class=region>
<select class=select id=select___MODULE_ID__></select>
</div>
<div class=clock id=clock___MODULE_ID__ style=display:none>
<div class=top id=top___MODULE_ID__>
<div class=meridiem id=meridiem___MODULE_ID__>AM</div>
<div class=sun id=sun___MODULE_ID__></div>
</div>
<div class=h id=two_colors___MODULE_ID__></div>
<div class=time id=time___MODULE_ID__></div>
</div>
<div class=bg-view id=aclock___MODULE_ID__>
<div class="aclock bg" id=aclock_bg___MODULE_ID__></div>
<div class=view>
<div class="aclock hand" id=aclock_h___MODULE_ID__></div>
<div class="aclock hand" id=aclock_m___MODULE_ID__></div>
<div class="aclock hand" id=aclock_s___MODULE_ID__></div>
</div>
<div class="aclock cab"></div>
</div>
<div class=date id=date___MODULE_ID__></div>
</div>
<ol class=weather id=weather___MODULE_ID__></ol>
</div>
<script>var g="",i=' -62px"></div></div><div class="wt">',k=' 0"></div></div><div class="wt">',l=",",n=",,",p="0",r=":",t="</div></li>",u='</div><div class="wb"><div class="wi-b" style="background-position: ',v='<li><div class="wd-a">__MSG_current__</div><div class="wb"><div class="wi-a" style="background-position: ',w='<li><div class="wd-b">',x="AM",y="DST",z="PM",A="__MSG_date_format__",B="__MSG_days_of_week__",C="_cities",D="_cities_names",E="_cities_timezones",F="_lat_long",G="_timezone",H="aclock_",
I="aclock_bg_",J="aclock_h_",K="aclock_m_",L="aclock_s_",M="block",N="city",O="clock",P="clock clock-n",Q="clock_",R="condition",S="countries",aa="current_conditions",T="data",ba="date_",ca="digital",da="forecast_conditions",ea="h",fa="h h-n",ga="high",ha="http:",ia="https:",ja="low",ka="meridiem",la="meridiem meridiem-n",ma="meridiem_",na="none",oa="object",pa="optgroup",qa="option",ra="preload_url",U="px",sa="px 0",ta="select_",V="selected",ua="sun_",va="time_",wa="top",xa="top top-n",ya="top_",
za="tw_",Aa="two_colors_",Ba="unmaximize",Ca="weather_",Da="weather_url",W="|",X="\u00b0 | ",Ea="\u00b0</div></li>",Y,Z=Z||{};Z.H=function(a,f,b,d,c){this.Z=a;this.j=f;this.e=b;this.J=d.split(W);this.ca=c.split(W);this.k=0;this.da=this.ea(this.L);this.b=new Date;this.L();this.K()};Y=Z.H.prototype;Y.ea=function(a){var f=this,b=[].slice.call(arguments,1);return function(){var d=b.concat([].slice.call(arguments));return a.apply(f,d)}};Y.$=function(a){this.j=a;this.la();this.K()};
Y.M=function(a){return 10>a?p+a:g+a};Y.ja=function(){var a=new Date,a=a.getTime()+6E4*a.getTimezoneOffset();this.b.setTime(a+36E5*this.j)};Y.ka=function(a){a=(this.b.getDay()+a)%7;return this.J[a]};Y.ha=function(){var a=this.b.getFullYear(),f=this.b.getMonth()+1,b=this.b.getDate(),d=this.b.getDay(),c=this.ca[this.e],c=c.replace(/YY/,a),c=c.replace(/MM/,f),c=c.replace(/DD/,b);return c=c.replace(/DAY/,this.J[d])};
Y.ia=function(){var a=this.b.getHours(),f=this.b.getMinutes(),b=this.b.getSeconds();12<a&&(a-=12);var d=[];d.push(a);d.push(r);d.push(this.M(f));d.push(r);d.push(this.M(b));return d.join(g)};Y.L=function(){this.ja();this.Z(this.ha(),this.ia(),this.b.getHours(),this.b.getMinutes(),this.b.getSeconds())};Y.K=function(){this.k||(this.k=window.setInterval(this.da,1E3))};Y.la=function(){this.k&&(window.clearInterval(this.k),this.k=0)};
var $={T:function(a,f,b,d,c,e){this.aa=a;this.j=f;this.Y=b;this.ba=c;this.ga=e},N:function(a){this.W=_gel(za+a);this.Q=_gel(ba+a);this.R=_gel(va+a);this.o=_gel(ma+a);this.q=_gel(ua+a);this.p=_gel(Q+a);this.F=_gel(ya+a);this.D=_gel(Aa+a);this.h=_gel(ta+a);this.G=_gel(Ca+a);this.U=_gel(H+a);this.P=_gel(I+a);this.A=_gel(J+a);this.B=_gel(K+a);this.C=_gel(L+a);this.d=[];this.a=new _IG_Prefs(a);this.O=this.a.getBool(y);this.e=this.a.getInt(O);this.g=this.c=0;this.e&&(this.W.className=ca,this.U.style.display=
na,this.p.style.display=M);this.l=-1;for(var f=this.a.getString(N),b=this.a.getMsg(S).split(W),d=[],c=0;c<b.length;++c){var a=b[c],e=parseInt(this.a.getMsg(a+G),10),h=this.a.getMsg(a+C).split(W),o=this.a.getMsg(a+D).split(W),j=this.a.getMsg(a+F).split(W),s=this.a.getMsg(a+E).split(W);this.d.push(new $.T(a,e,h,o,j,s));e=document.createElement(pa);e.label=this.a.getMsg(a);a=h.length;for(j=0;j<a;++j){var s=1E3*c+j,m=document.createElement(qa);m.value=s;m.text=o[j];m.innerText=o[j];h[j]==f&&(m.selected=
V,this.c=c,this.g=j);e.appendChild(m);d[h[j]]=m}this.h.appendChild(e)}this.s=new Z.H(this.bind(this.V),this.w(),this.e,B,A);this.S=this.bind(this.X);this.h.onchange=this.bind(this.I);this.z();var q=this;_IG_AddModuleEventHandler(__MODULE_ID__,Ba,function(){var a=q.a.getString(N),b=q.h.options[q.h.selectedIndex].text;if(a!=b)if(a=d[a]){a.selected=V;q.I()}})}};Y=$.N.prototype;
Y.bind=function(a){var f=this,b=[].slice.call(arguments,1);return function(){var d=b.concat([].slice.call(arguments));return a.apply(f,d)}};Y.w=function(){var a=25==this.d[this.c].j?this.d[this.c].ga[this.g]:this.d[this.c].j;this.O&&++a;return a};
Y.V=function(a,f,b,d,c){this.Q.innerHTML=a;a=6<=b&&18>b;if(this.e)this.R.innerHTML=f,this.o.innerHTML=12>b?x:z,d=a?b-6:(b+6)%12,d=70-5*d,b=Math.floor(b/6)%2?b%6:5-b%6,b=10-2*b,this.q.style.marginRight=d+U,this.q.style.marginTop=b+U,this.l!=a&&(this.q.style.backgroundPosition=-60*a+sa,a?(this.p.className=O,this.o.className=ka,this.F.className=wa,this.D.className=ea):(this.p.className=P,this.o.className=la,this.F.className=xa,this.D.className=fa),this.l=a);else{this.l!=a&&(this.P.style.left=-70*!a+
U,this.l=a);var f=52*-(c%15),c=52*Math.floor(c/15)-156,e=52*-(d%15),h=52*Math.floor(d/15)-364,d=52*-(5*(b%3)+Math.floor(d/12)),b=52*Math.floor(b%12/3)-572;a||(h-=416,b-=416);this.C.style.left=f+U;this.C.style.top=c+U;this.B.style.left=e+U;this.B.style.top=h+U;this.A.style.left=d+U;this.A.style.top=b+U}};Y.r=function(a){return Math.floor(10*(a-32)/18)};
Y.z=function(){var a=this.d[this.c],a=this.a.getMsg(Da)+n+a.aa+l+a.ba[this.g],f=ha,b=gadgets.util.getUrlParameters().parent;b&&b.match(/https:/gi)&&(f=ia);a=f+gadgets.io.getProxyUrl(a).replace(/^https:|http:/,g);_IG_FetchXmlContent(a,this.S,{ma:600});return a};
Y.X=function(a){if(!a||typeof a!=oa||null==a.firstChild)this.G.innerHTML=g;else{var f=__MSG_celsius__,b=[],d={Clear:0,"Mostly Sunny":1,"Partly Sunny":1,"Mostly Cloudy":2,Cloudy:3,"Chance of Rain":4,Rain:4,"Heavy Rain":5,"Chance of Storm":6,Thunderstorm:6,"Chance of Snow":7,Snow:7,"Heavy Snow":8,Haze:9,Fog:10},c=a.getElementsByTagName(aa);if(c[0]){b.push(v);var e=c[0].getElementsByTagName(R),e=e[0].getAttribute(T);(e=d[e])?(b.push(-62*e),b.push(U)):b.push(0);b.push(k);e=c[0].childNodes[1].getAttribute(T);
f?b.push(this.r(parseInt(e,10))):b.push(_hesc(e));b.push(X);b.push(_hesc(c[0].childNodes[3].getAttribute(T).substr(10)));b.push(t)}for(var a=a.getElementsByTagName(da),c=1,h;h=a[c];++c){b.push(w);b.push(_hesc(this.s.ka(c)));b.push(u);e=h.getElementsByTagName(R)[0].getAttribute(T);if(e=d[e]){var o=40;b.push(e*-o);b.push(U)}else b.push(0);b.push(i);e=h.getElementsByTagName(ja)[0].getAttribute(T);f?b.push(this.r(parseInt(e,10))):b.push(_hesc(e));b.push(X);e=h.getElementsByTagName(ga)[0].getAttribute(T);
f?b.push(this.r(parseInt(e,10))):b.push(_hesc(e));b.push(Ea)}this.G.innerHTML=b.join(g)}};Y.I=function(){var a=this.h.value;this.c=Math.floor(a/1E3);this.g=a%1E3;a=this.z();this.s.$(this.w());this.a.set(ra,a);this.a.set(N,this.d[this.c].Y[this.g])};new $.N(__MODULE_ID__);</script>
]]>

  </Content>
  <Content type="html" view="canvas">
<![CDATA[
<style>#tw___MODULE_ID__ .region{display:inline;margin:6px 15px 10px 10px}#tw___MODULE_ID__ .clock{margin-top:9px}#tw___MODULE_ID__ .time{margin-left:5px}#tw___MODULE_ID__ .f{font:bold 13px Tahoma;color:#333}#tw___MODULE_ID__ .l{float:left}#tw___MODULE_ID__ .c{clear:both;width:100%;border-top:1px solid #ccc;font-size:0}#tw___MODULE_ID__ .weather{width:100%;height:970px;padding:0;margin:0;border:0}</style>
<div id=tw___MODULE_ID__>
<div class="region l">
<select class=select id=select___MODULE_ID__></select>
</div>
<div class="clock l">
<div class="f l" id=meridiem___MODULE_ID__></div>
<div class="time f l" id=time___MODULE_ID__></div>
</div>
<div class=c></div>
<iframe class=weather frameborder=0 id=weather___MODULE_ID__></iframe>
</div>
<script>var d="",h=",",k=".",l="0",o=":",p="AM",q="DST",r="PM",s="__MSG_date_format__",t="__MSG_days_of_week__",u="_cities",v="_cities_names",w="_cities_timezones",x="_lat_long",y="_timezone",z="city",A="clock",B="countries",C="http://igoogle.wunderground.com/cgi-bin/findweather/getForecast?unit=SI&hl=__MSG_hl__&query=",D="meridiem_",E="optgroup",F="option",G="preload_url",H="select_",I="selected",J="time_",K="weather_",L="|",M,N=N||{};
N.p=function(a,b,f,c,e){this.L=a;this.g=b;this.j=f;this.q=c.split(L);this.N=e.split(L);this.h=0;this.O=this.P(this.s);this.b=new Date;this.s();this.r()};M=N.p.prototype;M.P=function(a){var b=this,f=[].slice.call(arguments,1);return function(){var c=f.concat([].slice.call(arguments));return a.apply(b,c)}};M.M=function(a){this.g=a;this.V();this.r()};M.z=function(a){return 10>a?l+a:d+a};M.U=function(){var a=new Date,a=a.getTime()+6E4*a.getTimezoneOffset();this.b.setTime(a+36E5*this.g)};
M.W=function(a){a=(this.b.getDay()+a)%7;return this.q[a]};M.S=function(){var a=this.b.getFullYear(),b=this.b.getMonth()+1,f=this.b.getDate(),c=this.b.getDay(),e=this.N[this.j],e=e.replace(/YY/,a),e=e.replace(/MM/,b),e=e.replace(/DD/,f);return e=e.replace(/DAY/,this.q[c])};M.T=function(){var a=this.b.getHours(),b=this.b.getMinutes(),f=this.b.getSeconds();12<a&&(a-=12);var c=[];c.push(a);c.push(o);c.push(this.z(b));c.push(o);c.push(this.z(f));return c.join(d)};
M.s=function(){this.U();this.L(this.S(),this.T(),this.b.getHours(),this.b.getMinutes(),this.b.getSeconds())};M.r=function(){this.h||(this.h=window.setInterval(this.O,1E3))};M.V=function(){this.h&&(window.clearInterval(this.h),this.h=0)};
var O={H:function(a,b,f,c,e,i){this.g=b;this.K=f;this.Q=e;this.R=i},A:function(a){this.G=_gel(J+a);this.F=_gel(D+a);this.k=_gel(H+a);this.D=_gel(K+a);this.d=[];this.a=new _IG_Prefs(a);this.B=this.a.getBool(q);this.j=this.a.getInt(A);this.e=this.c=0;for(var b=this.a.getString(z),f=this.a.getMsg(B).split(L),c=0;c<f.length;++c){var a=f[c],e=parseInt(this.a.getMsg(a+y),10),i=this.a.getMsg(a+u).split(L),m=this.a.getMsg(a+v).split(L),g=this.a.getMsg(a+x).split(L),n=this.a.getMsg(a+w).split(L);this.d.push(new O.H(a,
e,i,m,g,n));e=document.createElement(E);e.label=this.a.getMsg(a);a=i.length;for(g=0;g<a;++g){var n=1E3*c+g,j=document.createElement(F);j.value=n;j.text=m[g];j.innerText=m[g];i[g]==b&&(j.selected=I,this.c=c,this.e=g);e.appendChild(j)}this.k.appendChild(e)}this.C=new N.p(this.bind(this.I),this.o(),this.j,t,s);this.k.onchange=this.bind(this.J);this.l()}};M=O.A.prototype;
M.bind=function(a){var b=this,f=[].slice.call(arguments,1);return function(){var c=f.concat([].slice.call(arguments));return a.apply(b,c)}};M.o=function(){var a=25==this.d[this.c].g?this.d[this.c].R[this.e]:this.d[this.c].g;this.B&&++a;return a};M.I=function(a,b,f){this.G.innerHTML=b;this.F.innerHTML=12>f?p:r};M.w=function(a){var b=a.length-6;return a.substr(0,b)+k+a.substr(b)};
M.l=function(){var a=this.d[this.c].Q[this.e].split(h),b=[];b.push(C);b.push(this.w(a[0]));b.push(h);b.push(this.w(a[1]));this.D.src=b.join(d);_IG_AdjustIFrameHeight()};M.J=function(){var a=this.k.value;this.c=Math.floor(a/1E3);this.e=a%1E3;a=this.l();this.C.M(this.o());this.a.set(G,a);this.a.set(z,this.d[this.c].K[this.e])};new O.A(__MODULE_ID__);</script>
]]>
  </Content>
</Module>
