<?xml version='1.0' encoding='UTF-8'?>
<Module>
<ModulePrefs title="Today's Horoscope"
    title_url='http://www.tarot.com/go/google-ig/rss-horo-dailyhoro/?sign=__UP_sign__'
    directory_title='Daily Horoscopes'
    description='Daily horoscopes courtesy of tarot.com'
    height='200'
    author='csindia-gadgets' author_email='gadgetfactory@google.com'>
  <Preload
    href='http://feeds.tarot.com/f/ws/igoogle/birthdate/__UP_month____UP_day____UP_year__/?partner=igoogle&amp;key=a9a51c94bbb165f9&amp;type=xml'/>
  <Locale lang='en'
    messages='/ig/modules/horoscope_content/horo_string_en_All.xml' />
  <Locale messages='/ig/modules/horoscope_content/horo_string_en_All.xml' />
  <Require feature='views'/>
  <Require feature='setprefs'/>
  <Require feature='dynamic-height'/>
  <Require feature="settitle"/>
</ModulePrefs>
<UserPref name='day' display_name='__MSG_bday__'
          datatype='string' default_value=''/>
<UserPref name='month' display_name='__MSG_bmon__'
          datatype='enum' default_value='__MSG_january__'>
  <EnumValue value='1' display_value='__MSG_january__'/>
  <EnumValue value='2' display_value='__MSG_february__'/>
  <EnumValue value='3' display_value='__MSG_march__'/>
  <EnumValue value='4' display_value='__MSG_april__'/>
  <EnumValue value='5' display_value='__MSG_may__'/>
  <EnumValue value='6' display_value='__MSG_june__'/>
  <EnumValue value='7' display_value='__MSG_july__'/>
  <EnumValue value='8' display_value='__MSG_august__'/>
  <EnumValue value='9' display_value='__MSG_september__'/>
  <EnumValue value='10' display_value='__MSG_october__'/>
  <EnumValue value='11' display_value='__MSG_november__'/>
  <EnumValue value='12' display_value='__MSG_december__'/>
</UserPref>

<UserPref name='year' display_name='__MSG_byear__'
          datatype='string' default_value=''/>
<UserPref name='signSnap' datatype='hidden' default_value='' />
<UserPref name='sign' datatype='enum' default_value='Gemini'>
  <EnumValue value='All Signs'   display_value='General Horoscope' />
  <EnumValue value='Aries'       display_value='Aries (March 21 - April 19)' />
  <EnumValue value='Taurus'      display_value='Taurus (April 20 - May 20)' />
  <EnumValue value='Gemini'      display_value='Gemini (May 21 - June 20)' />
  <EnumValue value='Cancer'      display_value='Cancer (June 21 - July 22)' />
  <EnumValue value='Leo'         display_value='Leo (July 23 - August 22)' />
  <EnumValue value='Virgo'       display_value='Virgo (August 23 - September 22)' />

  <EnumValue value='Libra'       display_value='Libra (September 23 - October 22)' />
  <EnumValue value='Scorpio'     display_value='Scorpio (October 23 - November 21)' />
  <EnumValue value='Sagittarius' display_value='Sagittarius (November 22 - December 21)' />
  <EnumValue value='Capricorn'   display_value='Capricorn (December 22 - January 19)' />
  <EnumValue value='Aquarius'    display_value='Aquarius (January 20 - February 18)' />
  <EnumValue value='Pisces'      display_value='Pisces (February 19 - March 20)' />
</UserPref>
<Content type="html">
<![CDATA[
<div id=hidden__MODULE_ID__ style=display:none;></div>
<div id=t__MODULE_ID__ style="padding:7px; vertical-align:top; font-size:12px;"></div>
<script>function showMsg__MODULE_ID__(c){var a='<div style="text-align:left; padding-top:5px;">'+c+"</div>";_gel("t__MODULE_ID__").innerHTML=a}function generateDateString__MODULE_ID__(){var c=new Date,a=c.getDate(),e=new Date,f=480,g=c.getTimezoneOffset(),j=g-f,k=j*60*1000;e.setTime(c.getTime()+k);var l=e.getDate();if(a==l)return null;var d=c.getFullYear(),h=c.getMonth()+1,i=d.toString();i+=h<10?"0"+h:h;i+=a<10?"0"+a:a;return i}
function logclick__MODULE_ID__(c){var a=_args().url,e=new _IG_Prefs(__MODULE_ID__),f=e.getString("sign");_gel("t__MODULE_ID__").innerHTML+="<img width=1 height=1 src='/ig/nop?url="+_esc(a)+"&action="+_esc(c)+"&sign="+_esc(f)+"'>"}
function tarot__MODULE_ID__(){var c=new _IG_Prefs(__MODULE_ID__),a=c.getString("sign");if(a==null||a=="")a="Gemini";var e="http://www.tarot.com/rss/generate.php?code=google-ig&feed=daily_horoscope&sign="+_esc(a),f=generateDateString__MODULE_ID__();if(f)e+="&date="+f;_IG_FetchXmlContent(e,function(g){if(g==null||typeof g!="object"||g.firstChild==null)showMsg__MODULE_ID__("Horoscope information is currently not available.  Please try again later.");else{for(var j=_gel("hidden__MODULE_ID__"),k=false,
l=g.getElementsByTagName("item").item(0).childNodes,d=0;d<l.length;d++){var h=l.item(d);if(h.nodeName=="description")for(var i=h.childNodes,m=0;m<i.length;m++){var o=i.item(m);if(o.nodeName=="#cdata-section"){k=true;j.innerHTML=o.nodeValue}}}if(k){var n=-1,p=new Array("All Signs","Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces");for(d=0;d<p.length;d++)if(a==p[d]){n=d;break}if(n==-1)showMsg__MODULE_ID__("internal error: unknown horoscope sign.");
else{var q=j.getElementsByTagName("div")[2].innerHTML,r=j.getElementsByTagName("div")[3].innerHTML;if(a=="All Signs")a="everyone";var b="<a target=_blank onclick=\"logclick__MODULE_ID__('logo');\"";b+=' href="http://www.tarot.com/go/google-ig/rss-horo-dailyhoroitem/?sign='+_esc(a.toLowerCase())+'">';b+="<img src=http://www.gstatic.com/ig/modules/horoscope/"+_esc(a.toLowerCase())+".gif";b+=' title="Tarot.com '+_hesc(a)+' Horoscope" border="0" height="75" width="75"';b+=' style="vertical-align: top; float: left; position: relative; padding-right: 20px; padding-left: 5px;">';
b+="</a>";b+=_hesc(q);b+='<div style="float:left;margin-top: 18px;"><font size=-1>By <a target=_blank href="http://www.tarot.com/about-us/bios/levine">';b+="Rick Levine</a></font></div>";b+='<div style="padding-right: 5px; text-align:right;"><font size=-1>';b+=_hesc(r)+"<br>";b+="<a target=_blank onclick=\"logclick__MODULE_ID__('more');\"";b+=' href="http://www.tarot.com/go/google-ig/rss-horo-more/?sign='+n+'">';b+="more from Tarot.com &raquo;</a>";b+="</div>";_gel("t__MODULE_ID__").innerHTML=b;_IG_AdjustIFrameHeight()}}else showMsg__MODULE_ID__("internal error: could not find horoscope description.")}})}
_IG_RegisterOnloadHandler(tarot__MODULE_ID__);</script>
]]>
</Content>
<Content type="html" view="home, canvas">
<![CDATA[
<div class=bDay__MODULE_ID__ id=enterBday__MODULE_ID__ style=display:none>
__MSG_enter_dob__<br />
<img class=bdayPic__MODULE_ID__ src=http://www.gstatic.com/ig/modules/horoscope/everyone.gif>
<table id=bdayTable__MODULE_ID__>
<tr>
<td class=bDay__MODULE_ID__>__MSG_day__</td>
<td>
<input class=bdayInput__MODULE_ID__ id=day__MODULE_ID__ maxlength=2>
</td>
<tr>
<td class=bDay__MODULE_ID__ style=padding-right:6px>__MSG_mon__</td>
<td>
<select id=month__MODULE_ID__>
<option value=1>__MSG_january__
<option value=2>__MSG_february__
<option value=3>__MSG_march__
<option value=4>__MSG_april__
<option value=5>__MSG_may__
<option value=6>__MSG_june__
<option value=7>__MSG_july__
<option value=8>__MSG_august__
<option value=9>__MSG_september__
<option value=10>__MSG_october__
<option value=11>__MSG_november__
<option value=12>__MSG_december__
</select>
</td>
<tr>
<td class=bDay__MODULE_ID__>__MSG_year__</td>
<td>
<input class=bdayInput__MODULE_ID__ id=year__MODULE_ID__ maxlength=4>
<input onclick=saveBirthday__MODULE_ID__() type=button value=OK />
</td>
<tr>
<td align=center colspan=2><div id=err__MODULE_ID__ style=color:#FF0000></div>
</td>
</table>
</div>
<div id=tarot__MODULE_ID__>
<table cellpadding=0 cellspacing=0 width=100%>
<tr>
<td id=mainCell__MODULE_ID__ vAlign=top>
<div id=horoscope_max__MODULE_ID__>
<br />
<table cellpadding=0 cellspacing=0 width=100%>
<tr>
<td class=section_title__MODULE_ID__ id=numerology__MODULE_ID__>
__MSG_numerology__
</td>
<td class=section_title__MODULE_ID__ id=todayTitle__MODULE_ID__>
__MSG_daily_card__
</td>
<tr>
<td id=number__MODULE_ID__ style=padding-right:35px; valign=top width=50%></td>
<td id=card__MODULE_ID__ valign=top></td>
</table>
<br />
<table cellpadding=0 cellspacing=0 width=100%>
<tr>
<td class=section_title__MODULE_ID__ colspan=2 id=lovehoro__MODULE_ID__>
__MSG_weekly_horoscope__
</td>
<tr>
<td id=pic__MODULE_ID__ style=padding-top:6px; valign=top>
</td>
<td id=weekly_reading__MODULE_ID__ valign=top></td>
</table>
<br />
<table border=0 cellpadding=1 cellspacing=0 width=100%>
<tr>
<td id=headcelebs__MODULE_ID__></td>
<td class=section_title__MODULE_ID__ width=50%>
<div class=section_title__MODULE_ID__>
__MSG_changing_sky__
</div>
</td>
<tr>
<td id=celebs__MODULE_ID__ valign=top></td>
<td valign=top width=50%>
<div id=sky__MODULE_ID__ style=clear:left></div>
</td>
</table>
<br />
<table border=0 cellpadding=1 cellspacing=0 width=100%>
<tr>
<td class=section_title__MODULE_ID__ valign=top width=100%>
__MSG_featured_article__
</td>
<tr>
<td id=feature_articles__MODULE_ID__ style=padding-top:6px valign=top width=50%>
</td>
</table>
<br />
<table border=0 cellpadding=1 cellspacing=0 width=100%>
<tr>
<td class=section_title__MODULE_ID__ valign=top>
__MSG_more_articles__
</td>
<tr>
<td id=articles__MODULE_ID__ style=clear:left;padding:4px; valign=top></td>
</table>
</div>
</td>
<td id=blogCell__MODULE_ID__ style="padding-top: 4px; padding-left: 10px;" valign=top>
<div class=section_title__MODULE_ID__ id=header_Blogs__MODULE_ID__></div>
<div id=recent_blog__MODULE_ID__></div>
</td>
</table>
</div>
<style>#horoscope_max__MODULE_ID__,#weekly_horoscope__MODULE_ID__{display:none}.pic__MODULE_ID__,#cardImg__MODULE_ID__,#numImg__MODULE_ID__{padding-right:10px;padding-left:5px;float:left}.author__MODULE_ID__{clear:left;float:left}#articles__MODULE_ID__,#sky__MODULE_ID__,#cosmic_guidance__MODULE_ID__{font-size:12px;text-align:left}.bDay__MODULE_ID__{font-size:13px;text-align:left}.recent_blogs__MODULE_ID__{font-size:12px;padding:5px}.celeb__MODULE_ID__,.article__MODULE_ID__,.sky__MODULE_ID__{clear:left;padding-bottom:2px;vertical-align:top}.section_title__MODULE_ID__,.headCompat__MODULE_ID__,.headLeastCompat__MODULE_ID__{clear:left;font-weight:bold;font-size:14px}#daily_reading__MODULE_ID__,#weekly_reading__MODULE_ID__,#celebs__MODULE_ID__,#card__MODULE_ID__,#number__MODULE_ID__,#compat__MODULE_ID__,#leastCompat__MODULE_ID__,#author__MODULE_ID__,#date__MODULE_ID__,#feature_articles__MODULE_ID__{font-size:12px;text-align:justify;padding-right:20px}#bdayTable__MODULE_ID__{padding-top:12px}#bdayTable__MODULE_ID__ td{vertical-align:middle}.bdayInput__MODULE_ID__{padding-left:2px;padding-right:2px}#year__MODULE_ID__{width:4em}#day__MODULE_ID__{width:2em}.bdayPic__MODULE_ID__{float:left;padding-right:6px;padding-top:8px}</style>
<script>var prefs__MODULE_ID__=new _IG_Prefs(__MODULE_ID__),flag_feed1__MODULE_ID__=false,flag_feed2__MODULE_ID__=false,day__MODULE_ID__,month__MODULE_ID__,year__MODULE_ID__,signName__MODULE_ID__;function showMsg__MODULE_ID__(c){var b='<div style="text-align:left; font-color:#FF0000; padding-top:5px;">'+c+"</div>";_gel("tarot__MODULE_ID__").innerHTML=b}
function parseBlogsData__MODULE_ID__(c){flag_feed2__MODULE_ID__=true;if(c==null||typeof c!="object"||c.firstChild==null)showMsg__MODULE_ID__("__MSG_blogs_not_found__");else{var b=c.getElementsByTagName("item"),a="";if(b!=null)for(var e=0;e<b.length;e++){var f=b.item(e),d=getValue__MODULE_ID__(f,"title"),h=getValue__MODULE_ID__(f,"link"),g=getValue__MODULE_ID__(f,"pubDate"),j=getValue__MODULE_ID__(f,"description");if(j.length>80){var i=j.indexOf(" ",80);j=j.substr(0,i);j=j+"..."}a=a+'<div class=recent_blogs__MODULE_ID__><a href="%BLOG_URL%" target="_blank">%BLOG_TITLE%</a>&nbsp;<br>%BLOG_DESC%</div>';
a=a.replace(/%BLOG_TITLE%/g,d);a=a.replace(/%BLOG_URL%/g,h);a=a.replace(/%BLOG_DESC%/g,j)}_gel("recent_blog__MODULE_ID__").innerHTML=a;_IG_AdjustIFrameHeight()}}function getDate__MODULE_ID__(){var c=new Date,b=c.getDate().toString();if(b.length==1)b="0"+b;var a=(c.getMonth()+1).toString();if(a.length==1)a="0"+a;var e=c.getYear().toString();return e+a+b}
function parseTarotData__MODULE_ID__(c){flag_feed1__MODULE_ID__=true;if(c==null||typeof c!="object"||c.firstChild==null)showMsg__MODULE_ID__(prefs__MODULE_ID__.getMsg("horoscope_not_found"));else{for(var b=-1,a=["__MSG_all_signs__","__MSG_aries_wd__","__MSG_taurus_wd__","__MSG_gemini_wd__","__MSG_cancer_wd__","__MSG_leo_wd__","__MSG_virgo_wd__","__MSG_libra_wd__","__MSG_scorpio_wd__","__MSG_sagittarius_wd__","__MSG_capricorn_wd__","__MSG_aquarius_wd__","__MSG_pisces_wd__"],e,f,d=0;d<a.length;d++){if(d>
0){e=a[d].indexOf(" ");f=a[d].substr(0,e)}else f=a[d];if(signName__MODULE_ID__==f){b=d;break}}var h=c.getElementsByTagName("daily_horoscope").item(0),g=h.getElementsByTagName("sign_content"),j=g.item(b),i='<a target=_blank href="http://www.tarot.com/go/google-ig/rss-horo-dailyhoroitem/?sign=%SIGN%"><img class="pic__MODULE_ID__" align="left" src="http://gfx.tarot.com/images/astrology/sun-signs/75x75/%SIGN_NUMBER%.gif" title="Tarot.com %CAPITAL_SIGN% Horoscope" border="0" height="75" width="75"></a>';
i=i.replace(/%SIGN%/g,_hesc(signName__MODULE_ID__.toLowerCase()));i=i.replace(/%CAPITAL_SIGN%/g,_hesc(signName__MODULE_ID__));i=i.replace(/%SIGN_NUMBER%/g,b);var l=getValue__MODULE_ID__(j,"interp");if(gadgets.views.getCurrentView("__MODULE_ID__").getName().toLowerCase()=="canvas"){var n="http://www.tarot.com/astrology/daily-horoscope/^1-horoscope/?scopeDay=";n=n.replace("^1",signName__MODULE_ID__.toLowerCase());_gel("daily_pic__MODULE_ID__").innerHTML=i;var v=['<div style="font-weight:bold; padding-top: 6px;">',
"__MSG_todays_horoscope__</div>",'__MSG_by__ <a href="http://www.tarot.com/go/igoogle/','igoogle-rick-bio/?code=igoogle" target="_blank">',"__MSG_daily_horo_author__</a><br><br>",_hesc(l),'  <nobr><a href="',n,'" target="_blank">__MSG_more_from_tarot__</a></nobr>'];_gel("todayTitle__MODULE_ID__").innerHTML=a[b];_gel("daily_reading__MODULE_ID__").innerHTML=v.join("");var k=_gel("tarot__MODULE_ID__");k.style.width="95%";k.style.paddingTop="5px";_gel("horoscope_max__MODULE_ID__").style.display="block";
_gel("lovehoro__MODULE_ID__").innerHTML+=signName__MODULE_ID__;var H=j.getElementsByTagName("celeb_info");addCelebrities__MODULE_ID__(H,_hesc(signName__MODULE_ID__));addCard__MODULE_ID__(c);addNumber__MODULE_ID__(c);i='<a href="http://www.tarot.com/astrology/weekly//?code=igoogle&displaySign=%SIGN_NUMBER%" target="_blank"><img height="100" width="75" border="0" align="left" title="__MSG_weekly_horoscope__ %SIGN_NAME%" src="http://www.gstatic.com/ig/modules/horoscope/love.jpg" class="pic__MODULE_ID__"/></a>';
i=i.replace(/%SIGN_NUMBER%/g,b);i=i.replace(/%SIGN_NAME%/g,_hesc(signName__MODULE_ID__));_gel("pic__MODULE_ID__").innerHTML=i;var I=c.getElementsByTagName("weekly_horoscope").item(0);g=I.getElementsByTagName("sign_content");j=g.item(b);l=getValue__MODULE_ID__(j,"interp");var J=['<div id="author__MODULE_ID__" style="padding-top: 5px;">','__MSG_by__ <a href="http://www.tarot.com/go/igoogle/igoogle-jawer-bio/?','code=igoogle" target="_blank">__MSG_weekly_horo_author__</a></div><br>',_hesc(l)];_gel("weekly_reading__MODULE_ID__").innerHTML=
J.join("");var q=[],m,A=c.getElementsByTagName("feature_item");for(d=0;d<A.length;d++){var B=A.item(d);m='<div class=article__MODULE_ID__ style="padding-bottom:4px;"><a href="%ARTICLE_URL%" target="_blank">%ARTICLE_TITLE%</a></div>';var K=getValue__MODULE_ID__(B,"article_url"),o=getValue__MODULE_ID__(B,"article_title");m=m.replace(/%ARTICLE_URL%/g,K);m=m.replace(/%ARTICLE_TITLE%/g,_hesc(o));q.push(m)}_gel("articles__MODULE_ID__").innerHTML=q.join("");q=[];var s=c.getElementsByTagName("featured_article")[0];
if(!(s==undefined||s==null)){var r=s.getElementsByTagName("article")[0];if(r!=undefined){o=getValue__MODULE_ID__(r,"header");if(o!="")o="<b>"+o+":</b><br><br>";var L=getValue__MODULE_ID__(r,"subheader"),M=getValue__MODULE_ID__(r,"img"),N=getValue__MODULE_ID__(r,"copy"),O=s.getElementsByTagName("link")[0];n=getValue__MODULE_ID__(O,"link_url");q.push('<img class="pic__MODULE_ID__" height="75" width="78" ','border="0" src="',M,'"/>',o,"<b>",L,"</b><br>",N,"<nobr>",'<a href="',n,'" target="_blank">__MSG_more__</a>',
"</nobr>");_gel("feature_articles__MODULE_ID__").innerHTML=q.join("")}var w=c.getElementsByTagName("astro_news_today")[0];if(!(w==undefined||w==null)){for(var P=w.getElementsByTagName("our_changing_sky")[0],C=P.getElementsByTagName("planet"),x=['<table id="sky__MODULE_ID__" border=0>'],y=[],z=0;z<C.length;z++){var D=C.item(z),Q=getValue__MODULE_ID__(D,"planet_name");y=[];for(var E=[],p=Q,F=0;F<3;F++){y.push(p.substr(0,p.indexOf(" "))," ");p=p.substring(p.indexOf(" ")+1)}var G=p.split(" to "),t=G[0].split(" "),
u=G[1].split(" ");if(t[1].length==2)t[1]="0"+t[1];if(u[1].length==2)u[1]="0"+u[1];E.push(t.join(" "),"to",u.join(" "));var R=getValue__MODULE_ID__(D,"planet_url");m='<tr><td style="padding-right:5px"><a href="%PLANET_URL%" target="_blank">%PLANET_TITLE1%</a></td><td>%PLANET_TITLE2%</td></tr>';m=m.replace(/%PLANET_TITLE1%/g,y.join(""));m=m.replace(/%PLANET_TITLE2%/g,"  "+E.join(" "));m=m.replace(/%PLANET_URL%/g,R);x.push(m)}x.push("</table>");_gel("sky__MODULE_ID__").innerHTML=x.join("");_IG_AdjustIFrameHeight()}}}else{_gel("daily_reading__MODULE_ID__").innerHTML=
i+_hesc(l);var S=["<nobr>",'<a href="http://www.tarot.com/go/google-ig/rss-horo-more/?sign=',b,'" target="_blank">__MSG_moretorrent__</a></nobr>'];_gel("date__MODULE_ID__").innerHTML=S.join("");_IG_AdjustIFrameHeight()}}}
function addCelebrities__MODULE_ID__(c,b){var a=["<div class=section_title__MODULE_ID__>",_hesc(b+" __MSG_celebrities__"),"</div>"],e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];_gel("headcelebs__MODULE_ID__").innerHTML=a.join("");a=['<table border=0 id="celebs__MODULE_ID__">'];for(var f=0;f<c.length;f++){var d=c.item(f),h=getValue__MODULE_ID__(d,"name"),g=getValue__MODULE_ID__(d,"birthdate"),j=g.split("/");g=e[parseInt(j[0],10)-1]+" "+j[1]+", "+j[2];var i=getValue__MODULE_ID__(d,
"url"),l='<tr><td><a href="%CELEB_URL%" target="_blank">%CELEB_NAME%</a></td><td></td><td>%CELEB_BDAY%</td></tr>';l=l.replace(/%CELEB_NAME%/g,_hesc(h));l=l.replace(/%CELEB_BDAY%/g,_hesc(g));l=l.replace(/%CELEB_URL%/g,_hesc(i));a.push(l)}a.push("</table>");_gel("celebs__MODULE_ID__").innerHTML=a.join("")}
function addCard__MODULE_ID__(c){var b=c.getElementsByTagName("daily_card").item(0),a=getValue__MODULE_ID__(b,"title"),e=a.indexOf("for");if(e!=-1){var f=a.substr(e+4),d=f.split(" ");if(d[1]<10)d[1]="0"+d[1];a=a.substr(0,e+4)+d[0].substr(0,3)+" "+d[1]+", "+d[2]}var h=b.getElementsByTagName("card").item(0),g=getValue__MODULE_ID__(h,"img"),j=getValue__MODULE_ID__(h,"motto"),i=getValue__MODULE_ID__(h,"name"),l=getValue__MODULE_ID__(h,"deck_name"),n=getValue__MODULE_ID__(h,"deck_url"),v=getValue__MODULE_ID__(h,
"url"),k='<table cellspacing=0 cellpadding=0 border=0><tr><td vAlign="top"  style="padding-top:6px"><a href="%MORE_LINK%" target=_blank><img border=0 id="cardImg__MODULE_ID__" height=80px; src="%CARD_IMAGE_URL%"></a></td><td id="card__MODULE_ID__" valign="top" style="padding-top:6px;"><b>%CARD_TITLE%</b><br><br><b>%CARD_NAME%: </b>%CARD_MOTTO% <br><br>Deck: <a href="%DECK_URL%" target="_blank">%DECK_NAME%</a><br></td></tr></table>';k=k.replace(/%CARD_TITLE%/g,a);k=k.replace(/%CARD_IMAGE_URL%/g,g);
k=k.replace(/%CARD_MOTTO%/g,_hesc(j));k=k.replace(/%CARD_NAME%/g,_hesc(i));k=k.replace(/%DECK_NAME%/g,_hesc(l));k=k.replace(/%DECK_URL%/g,_hesc(n));k=k.replace(/%MORE_LINK%/g,_hesc(v));_gel("card__MODULE_ID__").innerHTML=k}
function addNumber__MODULE_ID__(c){var b=c.getElementsByTagName("daily_number").item(0),a=b.getElementsByTagName("personalized_content").item(0),e=getValue__MODULE_ID__(a,"img"),f=getValue__MODULE_ID__(a,"interp"),d="mon1="+month__MODULE_ID__+"&day1="+day__MODULE_ID__+"&year1="+year__MODULE_ID__,h=b.getElementsByTagName("link").item(0),g='<table cellspacing=0 cellpadding=0 border=0><tr><td vAlign="top"  style="padding-top:6px"><a href="http://www.tarot.com/numerology/daily/?%DOB%" target="_blank"><img border="0" width="75" height="75" id="numImg__MODULE_ID__" align="left" src="%NUM_IMAGE_URL%"/></a></td><td id="number__MODULE_ID__" style="padding-top:6px" vAlign="top">%NUMEROLOGY%</td></tr></table>';
g=g.replace(/%NUM_IMAGE_URL%/g,_hesc(e));g=g.replace(/%NUMEROLOGY%/g,_hesc(f));g=g.replace(/%DOB%/g,d);_gel("number__MODULE_ID__").innerHTML=g}
function addCompatibileSign__MODULE_ID__(c){var b=[],a=c.getElementsByTagName("most_compatible");if(!(a==null||a==undefined)){for(var e=a[0].getElementsByTagName("sign_item"),f=0;f<e.length;f++){var d=e.item(f),h=getValue__MODULE_ID__(d,"name"),g=getValue__MODULE_ID__(d,"url");b.push('<a href="',g,'" target="_blank">',h,"</a><br>")}_gel("compat__MODULE_ID__").innerHTML=b.join("");b=[];var j=c.getElementsByTagName("least_compatible");e=j[0].getElementsByTagName("sign_item");for(f=0;f<e.length;f++){d=
e.item(f);var i=getValue__MODULE_ID__(d,"name"),l=getValue__MODULE_ID__(d,"url");b.push('<a href="',l,'" target="_blank">',i,"</a><br>")}_gel("leastCompat__MODULE_ID__").innerHTML=b.join("")}}function getValue__MODULE_ID__(c,b){var a=c.getElementsByTagName(b).item(0);if(a==undefined||a==null)return"";var e=a.childNodes[0];if(e==undefined||e==null)return"";return e.nodeValue}
function getSign__MODULE_ID__(c,b){var a="";b=parseInt(b,10);switch(parseInt(c,10)){case 1:a=b<=19?"__MSG_capricorn__":"__MSG_aquarius__";break;case 2:a=b<=18?"__MSG_aquarius__":"__MSG_pisces__";break;case 3:a=b<=20?"__MSG_pisces__":"__MSG_aries__";break;case 4:a=b<=19?"__MSG_aries__":"__MSG_taurus__";break;case 5:a=b<=20?"__MSG_taurus__":"__MSG_gemini__";break;case 6:a=b<=20?"__MSG_gemini__":"__MSG_cancer__";break;case 7:a=b<=22?"__MSG_cancer__":"__MSG_leo__";break;case 8:a=b<=22?"__MSG_leo__":"__MSG_virgo__";
break;case 9:a=b<=22?"__MSG_virgo__":"__MSG_libra__";break;case 10:a=b<=22?"__MSG_libra__":"__MSG_scorpio__";break;case 11:a=b<=21?"__MSG_scorpio__":"__MSG_sagittarius__";break;case 12:a=b<=21?"__MSG_sagittarius__":"__MSG_capricorn__";break}return a}
function checkFeedResponse(c){if(c==1)flag_feed1__MODULE_ID__==false&&showMsg__MODULE_ID__(prefs__MODULE_ID__.getMsg("horoscope_not_found"));else c==2&&flag_feed2__MODULE_ID__==false&&showMsg__MODULE_ID__(prefs__MODULE_ID__.getMsg("horoscope_not_found"))}
function fetchTarotData__MODULE_ID__(){if(day__MODULE_ID__.length==1)day__MODULE_ID__="0"+day__MODULE_ID__;if(month__MODULE_ID__.length==1)month__MODULE_ID__="0"+month__MODULE_ID__;var c=""+month__MODULE_ID__+day__MODULE_ID__+year__MODULE_ID__,b="http://feeds.tarot.com/f/ws/igoogle/birthdate/"+c+"/?partner=igoogle&key=a9a51c94bbb165f9&type=xml";_IG_FetchXmlContent(b,parseTarotData__MODULE_ID__);setTimeout("checkFeedResponse(1)",5000)}
function fetchblogs__MODULE_ID__(){var c="http://www.tarot.com/blog/wp-rss2.php?author_name=creporter&code=igoogle";_IG_FetchXmlContent(c,parseBlogsData__MODULE_ID__);setTimeout("checkFeedResponse(2)",5000)}
function doValidate__MODULE_ID__(c,b){var a=b.length;if(!a||!parseInt(b,10))return false;if(c){var e=_gel("month__MODULE_ID__").value,f=_gel("year__MODULE_ID__").value;if(e==2){var d=28;if(f%4==0&&(f%100!=0||f%400==0))d=29;if(parseInt(b,10)>d)return false}else if(e==4||e==6||e==9||e==11){if(parseInt(b,10)>30)return false}else if(parseInt(b,10)>31)return false}else if(a!=4)return false;for(var h,g=0;g<a;g++){h=b.charAt(g);if(h<"0"||h>"9")return false}return true}
function saveBirthday__MODULE_ID__(){var c=_gel("err__MODULE_ID__");c.innerHTML="";day__MODULE_ID__=_gel("day__MODULE_ID__").value;if(doValidate__MODULE_ID__(true,day__MODULE_ID__)){month__MODULE_ID__=_gel("month__MODULE_ID__").value;year__MODULE_ID__=_gel("year__MODULE_ID__").value;if(doValidate__MODULE_ID__(false,year__MODULE_ID__)){prefs__MODULE_ID__.set("day",day__MODULE_ID__);prefs__MODULE_ID__.set("month",month__MODULE_ID__);prefs__MODULE_ID__.set("year",year__MODULE_ID__);var b=getSign__MODULE_ID__(month__MODULE_ID__,
day__MODULE_ID__);prefs__MODULE_ID__.set("sign",b);prefs__MODULE_ID__.set("signSnap",b);loadHoroscopeGadget__MODULE_ID__();_IG_AdjustIFrameHeight()}else{c.innerHTML="__MSG_invalid_year__";_IG_AdjustIFrameHeight()}}else{c.innerHTML="__MSG_invalid_date__";_IG_AdjustIFrameHeight()}}function refreshPage(){loadHoroscopeGadget__MODULE_ID__()}
function loadHoroscopeGadget__MODULE_ID__(){var c=_gel("tarot__MODULE_ID__"),b=prefs__MODULE_ID__.getString("signSnap");if(b===""){_gel("enterBday__MODULE_ID__").style.display="block";c.style.display="none"}else{var a=prefs__MODULE_ID__.getString("sign");if(b!=a){prefs__MODULE_ID__.set("signSnap",a);prefs__MODULE_ID__.set("day","");prefs__MODULE_ID__.set("year","")}day__MODULE_ID__=prefs__MODULE_ID__.getString("day");month__MODULE_ID__=prefs__MODULE_ID__.getString("month");year__MODULE_ID__=prefs__MODULE_ID__.getString("year");
signName__MODULE_ID__=day__MODULE_ID__==""?a:getSign__MODULE_ID__(month__MODULE_ID__,day__MODULE_ID__);prefs__MODULE_ID__.set("sign",signName__MODULE_ID__);prefs__MODULE_ID__.set("signSnap",signName__MODULE_ID__);var e="__MSG_todays_horoscope_for__ "+signName__MODULE_ID__;_IG_SetTitle(e,__MODULE_ID__);createHoroTable__MODULE_ID__();c.style.display="block";_gel("enterBday__MODULE_ID__").style.display="none";fetchTarotData__MODULE_ID__();if(gadgets.views.getCurrentView("__MODULE_ID__").getName().toLowerCase()==
"canvas"){var f=_gel("mainCell__MODULE_ID__");f.style.width="80%";f.style.borderRight="1px solid #c9d7f1";_gel("header_Blogs__MODULE_ID__").innerHTML="__MSG_recent_blogs__";fetchblogs__MODULE_ID__()}else{var d=_gel("date__MODULE_ID__"),h=_gel("blogCell__MODULE_ID__");d.style.paddingRight="7px";d.style.paddingTop="7px";_gel("author__MODULE_ID__").style.paddingTop="7px";_gel("daily_reading__MODULE_ID__").style.paddingRight="7px";_gel("recent_blog__MODULE_ID__").style.height="0px";h.style.display="none";
h.innerHTML=""}}_IG_AdjustIFrameHeight()}
function createHoroTable__MODULE_ID__(){var c=['<table width="100%" cellspacing="0" cellpadding="0"><tr>'];gadgets.views.getCurrentView("__MODULE_ID__").getName().toLowerCase()=="canvas"?c.push('<td id="todayTitle__MODULE_ID__"'," class=section_title__MODULE_ID__",' colspan="2"></td></tr><tr><td id="daily_pic__MODULE_ID__" ','style="vertical-align: top; padding-top: 6px;"></td><td id=','daily_reading__MODULE_ID__ style="vertical-align:top"></td>',"</tr>"):c.push('<td style="vertical-align:top"><div id=',
'daily_reading__MODULE_ID__></div><div id="author__MODULE_ID__" ','style="float: left; vertical-align:bottom; padding-top:5">','__MSG_by__ <a href="http://www.tarot.com/go/igoogle/','igoogle-rick-bio/?code=igoogle" target="_blank">','__MSG_daily_horo_author__</a></div><div id="date__MODULE_ID__" ','style="text-align:right;vertical-align:bottom"></div></td>');c.push("</tr></table>");_gel("mainCell__MODULE_ID__").innerHTML=c.join("")+_gel("mainCell__MODULE_ID__").innerHTML}
function setView__MODULE_ID__(c){_gel("tarot__MODULE_ID__").innerHTML="";gadgets.views.requestNavigateTo(new gadgets.views.View(c))}_IG_RegisterOnloadHandler(loadHoroscopeGadget__MODULE_ID__);</script>
]]>
</Content>
</Module>
