<?xml version="1.0" encoding="UTF-8"?>
<Module>
    
    <ModulePrefs 
        title="__MSG_extname__"
        scaling="false"
        height="190" 
        category="news"
        author="www.vercalendario.info" 
        author_email="info@vercalendario.info"
        screenshot="https://www.vercalendario.info/docs/ext/google/gadgets/cathlit/tags/0.0.2/screenshot.png">
        <Locale messages="https://www.vercalendario.info/docs/ext/google/gadgets/cathlit/tags/0.0.2/bundle/ALL_ALL.xml"/> 
        <Locale lang="es" messages="https://www.vercalendario.info/docs/ext/google/gadgets/cathlit/tags/0.0.2/bundle/es_ALL.xml"/> 
        <Locale lang="en" messages="https://www.vercalendario.info/docs/ext/google/gadgets/cathlit/tags/0.0.2/bundle/en_ALL.xml"/> 
        <Locale lang="fr" messages="https://www.vercalendario.info/docs/ext/google/gadgets/cathlit/tags/0.0.2/bundle/fr_ALL.xml"/> 
        <Locale lang="it" messages="https://www.vercalendario.info/docs/ext/google/gadgets/cathlit/tags/0.0.2/bundle/it_ALL.xml"/> 
        <Locale lang="pt" messages="https://www.vercalendario.info/docs/ext/google/gadgets/cathlit/tags/0.0.2/bundle/pt_ALL.xml"/> 
    </ModulePrefs>
    <UserPref name="radius" display_name="__MSG_radius__" default_value="200" datatype="enum">
        <EnumValue value="30" display_value="30px" /> 
        <EnumValue value="60" display_value="60px" /> 
        <EnumValue value="80" display_value="80px" /> 
        <EnumValue value="100" display_value="100px" /> 
        <EnumValue value="125" display_value="125px" /> 
        <EnumValue value="150" display_value="150px" /> 
        <EnumValue value="175" display_value="175px" /> 
        <EnumValue value="190" display_value="190px" /> 
        <EnumValue value="200" display_value="200px" /> 
        <EnumValue value="225" display_value="225px" /> 
        <EnumValue value="250" display_value="250px" /> 
        <EnumValue value="275" display_value="275px" /> 
        <EnumValue value="300" display_value="300px" /> 
        <EnumValue value="325" display_value="325px" /> 
        <EnumValue value="350" display_value="350px" /> 
        <EnumValue value="375" display_value="375px" /> 
        <EnumValue value="400" display_value="400px" /> 
        <EnumValue value="425" display_value="425px" /> 
        <EnumValue value="450" display_value="450px" /> 
        <EnumValue value="475" display_value="475px" /> 
        <EnumValue value="500" display_value="500px" /> 
    </UserPref>
  <Content type="html">
  <![CDATA[
   <head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>www.vercalendario.info</title>
        <style type="text/css">
            #cathlitgadgetd{display:none;}
            #cathlit svg{
            font-family: sans-serif,serif;
            }

            #copyright{
            font-size: xx-small;
            text-align: right;
            display: none;
            }
            #text_info{
            stroke:black;
            fill:black;
            }
            #rect_info{
            fill:none;
            stroke:none;
            }


            /*day path related*/
            .d-adv{
            fill: violet;
            }
            .d-nav{
            fill: #f0f0f0;
            }
            .d-ord1{
            fill: green;
            }
            .d-ord2{
            fill: green;
            }
            .d-pas{
            fill: #f0f0f0;
            }
            .d-cua{
            fill: violet;
            }

            .d-d:hover{
            fill-opacity:1;
            }
            .d-d{
            fill-opacity:0.3;
            }

            .d-m1-2013{

            }

            #dci{
            fill:white;
            }
            #today{
            fill: yellow;
            fill-opacity:1;
            }
            #palmsun,#goodfri,#penteco{
            fill: red;
            fill-opacity:1;
            }


            /*week path related*/
            .w-w:hover{

            }
            .w-w{
            stroke:black;
            fill:#efefef;
            }

            /*week text*/
            .wte:hover{
            font-weight: bold;
            font-size: large;
            cursor:pointer;
            }
            .wte{
            text-anchor:middle;
            font-size: x-small;
            }

            #wci{
            fill:none;
            }

            /*cycle path related*/
            /*cycle text*/
            .ctp{
            }
            .cte:hover{
            font-weight: bold;

            cursor:pointer;
            }
            .cte{
            text-anchor:middle;
            font-size: small;
            font-weight: bold;
            text-shadow: 0px 1px 0 white;
            }

            .c-adv{
            fill:#800078;
            }
            .c-nav{
            fill:#f0f0f0;
            }
            .c-cua{
            fill:#800078;
            }
            .c-pas{
            fill:#f0f0f0;
            }
            .c-ord1,.c-ord2{
            fill:green;
            }

            .c-adv,.c-nav,.c-cua,.c-pas,.c-ord1,.c-ord2{

            }
            .c-c{

            }


            /*month path related*/

            /*month text*/
            .mtp{
            }
            .mte:hover{
            font-weight: bold;
            font-size: large;
            cursor:pointer;
            }
            .mte{
            text-anchor:middle;
            }
            .mtsp{
            margin-top:20px;
            }

            .m-m0{
            fill:#b1b1b1;
            }
            .m-m1{
            fill:#b7b7b7;
            }
            .m-m2{
            fill:#bfbfbf;
            }
            .m-m3{
            fill:#c1c1c1;
            }
            .m-m4{
            fill:#c7c7c7;
            }
            .m-m5{
            fill:#cfcfcf;
            }
            .m-m6{
            fill:#d1d1d1;
            }
            .m-m7{
            fill:#d7d7d7;
            }
            .m-m8{
            fill:#dfdfdf;
            }
            .m-m9{
            fill:#e1e1e1;
            }
            .m-m10{
            fill:#e7e7e7;
            }
            .m-m11{
            fill:#efefef;
            }
            #mci{
            fill:white;
            }
            .m-m{/**month background*/
            stroke:black;
            fill:white;
            fill-opacity:0.43;
            }

            #dci,#wci,#mci,#cci,.d-d,.w-w,.m-m,.c-c{}

        </style>
  </head>
    <div id="cathlitgadgetd"></div>
    <div id="cathlits"></div>
    
    <script type="text/javascript">
    
/**
 * 
 * This code written by developers from www.vercalendario.info. 
 */
var CathLit=function(){this.p=null};CathLit.prototype={open:function(h){window.open(h)},create:function(){function h(a){return document.createElementNS("http://www.w3.org/2000/svg",a)}function b(a,b,c){a.setAttributeNS(null,b,c)}function x(a,b,c,p){a.setAttributeNS(p?p:null,b,c)}function H(a){a.setHours(0,0,0);a.setDate(a.getDate()+0-(a.getDay()||7));var b=new Date(a.getFullYear(),0,1),b=Math.ceil(((a-b)/864E5+1)/7);return[a.getFullYear(),b]}function S(a,c){var e=new Date(c.getTime());e.setDate(e.getDate()-1);var p=H(e),d=p[1],g=p[0],
k=h("path");b(k,"class","w-w w-"+d);u=v-(C+a*y);w=v-C;var f=m+z*Math.cos(u*Math.PI/180),n=l+z*Math.sin(u*Math.PI/180),q=m+z*Math.cos(w*Math.PI/180),s=l+z*Math.sin(w*Math.PI/180);b(k,"d","M "+m+" "+l+" L "+f+" "+n+" A "+z+" "+z+" 0 0 1 "+q+" "+s+" z");var t=h("path");b(t,"id","wtp"+d+"-"+g);b(t,"d","M "+f+" "+n+" A "+z+" "+z+" 0 0 1 "+q+" "+s);J.appendChild(t);f=h("text");f.wnum=p[1];f.wy=p[0];b(f,"class","wte");b(f,"dy","20px");f.onmouseover=function(){for(var a=document.getElementById("text_info");a.firstChild;)a.removeChild(a.childNodes[0]);
var b=document.createTextNode(r.p.tr.week+" "+this.wnum+" [ "+this.wy+" ]");a.appendChild(b)};p=h("textPath");b(p,"startOffset","50%");b(p,"class","wtp");x(p,"xlink:href","#wtp"+d+"-"+g,"http://www.w3.org/1999/xlink");g=h("tspan");b(g,"class","wtsp");g.appendChild(document.createTextNode(""+d));p.appendChild(g);f.appendChild(p);K[K.length]=f;k.year=e.getFullYear();k.week=d;L[L.length]=k}function T(a,c,e){var p=new Date(e.getTime());p.setDate(p.getDate()-1);e=h("path");b(e,"class","m-m m-m"+a);u=v-
(C+c*y);w=v-C;var d=m+A*Math.cos(u*Math.PI/180)+360*G,f=l+A*Math.sin(u*Math.PI/180)+360*G,g=m+A*Math.cos(w*Math.PI/180),k=l+A*Math.sin(w*Math.PI/180);b(e,"d","M "+m+" "+l+" L "+d+" "+f+" A "+A+" "+A+" 0 0 1 "+g+" "+k+" z");if(18<c){var n=h("path");b(n,"id","mtp"+a);b(n,"d","M "+d+" "+f+" A "+A+" "+A+" 0 0 1 "+g+" "+k);J.appendChild(n);d=h("text");d.month=p.getMonth();d.year=p.getFullYear();d.daycount=c;d.onmouseover=function(){for(var a=document.getElementById("text_info");a.firstChild;)a.removeChild(a.childNodes[0]);
var b=document.createTextNode(r.p.tr.mnames[this.month]+" "+p.getFullYear()+", "+c+" "+r.p.tr.days);a.appendChild(b)};d.onclick=function(){r.open(U+r.to_ascii(r.p.tr.lang+"/"+r.p.tr.event+"/"+r.p.tr.prefix+"-"+r.p.tr.month+"-"+r.p.tr.mnames[this.month]+"-"+this.year+".html"))};b(d,"class","mte");b(d,"dy","20px");f=h("textPath");b(f,"startOffset","50%");b(f,"class","mtp");x(f,"xlink:href","#mtp"+a,"http://www.w3.org/1999/xlink");g=h("tspan");b(g,"class","mtsp");g.appendChild(document.createTextNode(r.p.tr.mnames[a].substring(0,
3)+" "+p.getFullYear()));f.appendChild(g);d.appendChild(f);M[M.length]=d}N[N.length]=e}function V(a){if(n[a.getTime()]){var c=h("path");b(c,"class","c-c c-"+n[a.getTime()].cycle);b(c,"id",n[a.getTime()].cycle);u=v-(C+n[a.getTime()].daycount*y-y);w=v-(C-y);var d=0;182<n[a.getTime()].daycount&&(d=1);var e=m+D*Math.cos(u*Math.PI/180)+360*G,f=l+D*Math.sin(u*Math.PI/180)+360*G,g=m+D*Math.cos(w*Math.PI/180),k=l+D*Math.sin(w*Math.PI/180);b(c,"d","M "+m+" "+l+" L "+e+" "+f+" A "+D+" "+D+" 0 "+d+" 1 "+g+" "+
k+" z");var q=h("path");b(q,"id","ctp"+n[a.getTime()].cycle);b(q,"d","M "+e+" "+f+" A "+D+" "+D+" 0 "+d+" 1 "+g+" "+k);J.appendChild(q);d=h("text");b(d,"class","cte");d.cycle=n[a.getTime()].cycle;d.daycount=n[a.getTime()].daycount;d.onmouseover=function(){for(var a=document.getElementById("text_info");a.firstChild;)a.removeChild(a.childNodes[0]);var b=document.createTextNode(r.p.tr.cyna[this.cycle]+", "+this.daycount+" "+r.p.tr.days);a.appendChild(b)};e=h("textPath");b(e,"startOffset","50%");x(e,
"xlink:href","#ctp"+n[a.getTime()].cycle,"http://www.w3.org/1999/xlink");f=h("tspan");f.appendChild(document.createTextNode(r.p.tr.cyna[n[a.getTime()].cycle].toUpperCase()));e.appendChild(f);d.appendChild(e);O[O.length]=d;c.daycount=n[a.getTime()].daycount;c.cycle=n[a.getTime()].cycle;P[P.length]=c}}var v=0,Q=[],g=this.p.ho.getFullYear(),k=0.7*this.p.radius,z=0.8*this.p.radius,A=0.9*this.p.radius,D=0.95*this.p.radius,m=this.p.radius,l=this.p.radius,U="http://www.vercalendario.info/",r=this,v=0>window.location.host.indexOf("log")?
360:0,e=function(a){a=new Date(a-1,11,25);for(var b=0,c=0;;){c>0&&0===a.getDay()&&++b;if(4<=b)break;a.setDate(a.getDate()-1);if(1E3<c)break;c++}return a},d=e(g),a=e(g+1);this.p.ho.getTime()>=a.getTime()?(Q.c=g+"-"+(g+1),++g,d=a,a=e(g+1)):Q.c=g-1+"-"+g;var c=new Date(d.getTime()),E=0,t=0,q="adv",e=[],n=[],f=1,F=0,s=function(a){var b=Math.floor(a/100),c=a-19*Math.floor(a/19),d=b-Math.floor(b/4)-Math.floor((b-Math.floor((b-17)/25))/3)+19*c+15,d=d-30*Math.floor(d/30),d=d-Math.floor(d/28)*(1-Math.floor(d/28)*
Math.floor(29/(d+1))*Math.floor((21-c)/11)),b=a+Math.floor(a/4)+d+2-b+Math.floor(b/4),b=b-7*Math.floor(b/7),d=d-b,b=3+Math.floor((d+40)/44);return new Date(a,b-1,d+28-31*Math.floor(b/4))}(g),I=new Date(s.getTime());I.setDate(I.getDate()-47);var B=new Date(s.getTime());B.setDate(B.getDate()+49);var R=new Date(g,0,6),g=new Date(g-1,11,25),G=0;for(document.getElementById("cathlits")||G++;c.getTime()<a.getTime();)c.getTime()===this.p.ho.getTime()&&(t=E),e[c.getTime()]=q,0===c.getDay()&&++F,c.getTime()===
B.getTime()?(n[c.getTime()]={cycle:"pas",daycount:f},f=0,q="ord2",F=0):c.getTime()===s.getTime()?(n[c.getTime()]={cycle:"cua",daycount:f},f=0,q="pas",F=0):c.getTime()===I.getTime()?(n[c.getTime()]={cycle:"ord1",daycount:f},f=0,q="cua",F=0):"adv"===q?c.getTime()===g.getTime()&&(n[c.getTime()]={cycle:"adv",daycount:f},f=0,q="nav",F=0):"nav"===q&&(c.getTime()>R.getTime()&&0===c.getDay())&&(n[c.getTime()]={cycle:"nav",daycount:f},f=0,q="ord2",F=0),c.setDate(c.getDate()+1),E++,f++;n[(new Date(a.getTime())).setDate(a.getDate()-
1)]={cycle:"ord2",daycount:f-1};Q.t=e;c=new Date(s.getTime());c.setDate(c.getDate()-7);g=new Date(s.getTime());g.setDate(g.getDate()-2);s=[];s[c.getTime()]="palmsun";s[g.getTime()]="goodfri";s[B.getTime()]="penteco";s[this.p.ho.getTime()]="today";for(var y=360/E,c=new Date(d.getTime()),f=c.getMonth(),B=0,E=[],L=[],N=[],P=[],K=[],M=[],O=[],J=h("defs"),q=g=0,u,w=0,C=90+t*y+y/2;360>Math.round(v);)V(c),f!==c.getMonth()&&(T(f,B,c),B=0),0===c.getDay()&&(S(q,c),q=0),c.getTime()>=a.getTime()&&(c=new Date(d.getTime()),
c.setDate(d.getDate()-1)),u=v-C,w=v-(C-y),t=h("path"),f=m+k*Math.cos(u*Math.PI/180),F=l+k*Math.sin(u*Math.PI/180),I=m+k*Math.cos(w*Math.PI/180)+360*G,R=l+k*Math.sin(w*Math.PI/180)+360*G,b(t,"d","M "+m+" "+l+" L "+f+" "+F+" A "+k+" "+k+" 0 0 1 "+I+" "+R+" z"),b(t,"class"," d-d d-"+(e[c.getTime()]?e[c.getTime()]:"ad")+"  d-md"+c.getMonth()+"-"+c.getDate()+"  d-my"+c.getMonth()+"-"+c.getFullYear()+" d-ymd"+c.getFullYear()+"-"+c.getMonth()+"-"+c.getDate()+" "),s[c.getTime()]&&b(t,"id",s[c.getTime()]),
t.onclick=function(){r.open(U+r.to_ascii(r.p.tr.lang+"/"+r.p.tr.event+"/"+r.p.tr.prefix+"-"+this.date.getDate()+"-"+r.p.tr.mnames[this.date.getMonth()]+"-"+this.date.getFullYear()+".html"))},t.onmouseover=function(){for(var a=r.p.tr.dnames[0===this.date.getDay()?6:this.date.getDay()-1],b=document.getElementById("text_info");b.firstChild;)b.removeChild(b.childNodes[0]);a=document.createTextNode(a+", "+this.date.toISOString().substring(0,10)+(this.id?" [ "+r.p.tr.special_dates_text[this.id]+" ]":""));b.appendChild(a)},
t.date=new Date(c.getTime()),E[E.length]=t,B++,f=c.getMonth(),v+=y,c.setDate(c.getDate()+1),q++,g++;T(f,B,c);S(q,a);d=h("svg");b(d,"id","svglit");x(d,"xmlns:rdf","http://www.w3.org/1999/02/22-rdf-syntax-ns#","http://www.w3.org/2000/xmlns/");x(d,"xmlns:cc","http://creativecommons.org/ns#","http://www.w3.org/2000/xmlns/");x(d,"xmlns:dc","http://purl.org/dc/elements/1.1/","http://www.w3.org/2000/xmlns/");x(d,"xmlns:xlink","http://www.w3.org/1999/xlink","http://www.w3.org/2000/xmlns/");x(d,"xmlns","http://www.w3.org/2000/svg",
"http://www.w3.org/2000/xmlns/");b(d,"version","1.1");b(d,"width",2*this.p.radius);b(d,"height",2*this.p.radius);d.appendChild(J);for(a=0;a<P.length;a++)d.appendChild(P[a]);for(a=0;a<O.length;a++)d.appendChild(O[a]);a=h("circle");b(a,"cx",m);b(a,"cy",l);b(a,"r",A);b(a,"id","mci");d.appendChild(a);for(a=0;a<N.length;a++)d.appendChild(N[a]);for(a=0;a<M.length;a++)d.appendChild(M[a]);a=h("circle");b(a,"cx",m);b(a,"cy",l);b(a,"r",z);b(a,"id","wci");d.appendChild(a);for(a=0;a<L.length;a++)d.appendChild(L[a]);
for(a=0;a<K.length;a++)d.appendChild(K[a]);a=h("circle");b(a,"cx",m);b(a,"cy",l);b(a,"r",k);b(a,"id","dci");d.appendChild(a);for(a=0;a<E.length;a++)d.appendChild(E[a]);a=h("path");b(a,"id","cmn");e=0.2*k;c=0.2*e;b(a,"d","M "+(m-e/2)+" "+(l-e/2+c)+" L "+(m+e/2)+" "+(l+e/2-c)+" M "+(m+e/2)+" "+(l-e/2+c)+" L "+(m-e/2)+" "+(l+e/2-c)+" M "+m+" "+(l-e)+" V "+(l+0.7*e)+" M "+m+" "+(l-e)+" C "+(m+e/2)+" "+(l-e)+" "+(m+e/2)+" "+(l-e/2)+" "+m+" "+(l-e/2));b(a,"stroke","black");b(a,"stroke-width","5px");b(a,
"fill","transparent");d.appendChild(a);a=h("g");e=h("rect");b(e,"id","rect_info");b(e,"x",m-0.8*k);b(e,"y",l-k/3);b(e,"width",1.6*k);b(e,"height","200");c=h("text");b(c,"x",m-0.8*k);b(c,"y",l-k/3);b(c,"id","text_info");a.appendChild(e);a.appendChild(c);d.appendChild(a);k=h("text");b(k,"x",2*this.p.radius-160);b(k,"y",2*this.p.radius-20);b(k,"id","copyright");k.appendChild(document.createTextNode("\u00a9 vercalendario.info "+(new Date).getFullYear()));d.appendChild(k);document.getElementById(this.p.target).appendChild(d);
return Q},to_ascii:function(h){for(var b="\u00e1\u00e9\u00ed\u00f3\u00fa\u00e7\u00ff\u00f1\u00e3\u1ebd\u0129\u00f5\u0169\u00e2\u00ea\u00ee\u00f4\u00fb\u00fc\u00e0\u00e8\u00ec\u00f2\u00f9\u00e4\u00eb\u00ef\u00f6\u00fc\u00c1\u00c9\u00cd\u00d3\u00da\u00c7\u0178\u00d1\u00c3\u1ebc\u0128\u00d5\u0168\u00c2\u00ca\u00ce\u00d4\u00db\u00dc\u00c0\u00c8\u00cc\u00d2\u00d9\u00c4\u00cb\u00cf\u00d6\u00dc".split(""),x="aeioucynaeiouaeiouuaeiouaeiouAEIOUCYNAEIOUAEIOUUAEIOUAEIOU_".split(""),H=0;H<b.length;H++)h=h.replace(b[H],
x[H]);return h.toLowerCase()}};

//Compatibility
var prefs = new gadgets.Prefs();
var chrome=new Object();
    chrome.tabs=new Object();
    chrome.tabs.create=function(o){
        if(typeof o === "string"){
            window.open(o);
        }else{window.open(o.url);}
    };
    chrome.i18n=new Object();
    chrome.i18n.getMessage=function(s){
        return prefs.getMsg(s);
    };

//popup
document.title=chrome.i18n.getMessage("extname");

var ddat=new Date();
var year=ddat.getFullYear();

//var ho=new Date(2012,11,7);//adviento
//var ho=new Date(2013,11,26);//navidad
//var ho=new Date(2013,0,26);//tiempo ordinario 1
//var ho=new Date(2013,2,25);//cuaresma
//var ho=new Date(2013,4,1);//pascua
//var ho=new Date(2013,7,10);//tiempo ordinario 2   

var p=[];
    p.target="cathlits";
    p.radius=prefs.getInt("radius");
    p.ho=new Date(ddat.getFullYear(),ddat.getMonth(),ddat.getDate());
    p.tr={
        lang:chrome.i18n.getMessage("l"),
        week:chrome.i18n.getMessage("week"),
        days:chrome.i18n.getMessage("days"),
        month:chrome.i18n.getMessage("month"),
        event:chrome.i18n.getMessage("event"),
        prefix:chrome.i18n.getMessage("urlprefix"),
        cyna:{
            adv:chrome.i18n.getMessage("adv"),
            nav:chrome.i18n.getMessage("nav"),
            ord1:chrome.i18n.getMessage("ord1"),
            cua:chrome.i18n.getMessage("cua"),
            pas:chrome.i18n.getMessage("pas"),
            ord2:chrome.i18n.getMessage("ord2")
        },
        special_dates_text:{
            today:chrome.i18n.getMessage("today"),
            palmsun:chrome.i18n.getMessage("palmsun"),
            goodfri:chrome.i18n.getMessage("goodfri"),
            penteco:chrome.i18n.getMessage("penteco")
        },
        mnames:[
            chrome.i18n.getMessage("m1"),
            chrome.i18n.getMessage("m2"),
            chrome.i18n.getMessage("m3"),
            chrome.i18n.getMessage("m4"),
            chrome.i18n.getMessage("m5"),
            chrome.i18n.getMessage("m6"),
            chrome.i18n.getMessage("m7"),
            chrome.i18n.getMessage("m8"),
            chrome.i18n.getMessage("m9"),
            chrome.i18n.getMessage("m10"),
            chrome.i18n.getMessage("m11"),
            chrome.i18n.getMessage("m12")
        ],
        dnames:[
            chrome.i18n.getMessage("d1"),
            chrome.i18n.getMessage("d2"),
            chrome.i18n.getMessage("d3"),
            chrome.i18n.getMessage("d4"),
            chrome.i18n.getMessage("d5"),
            chrome.i18n.getMessage("d6"),
            chrome.i18n.getMessage("d7")
        ]
};
var cathlit=new CathLit();
    cathlit.p=p;
    cathlit.open=function(u){window.open(u);};
var dt=cathlit.create();

var anionum=((year%3===0)?3:Math.ceil(year%3));
var anios=["","A","B","C"];
var atipo=anios[anionum];
var ddst=p.ho.toISOString().substring(0,10);

var mgd=document.getElementById("cathlitgadgetd");
    mgd.style.textAlign="center";
    mgd.innerHTML='<div id="date"></div>';

document.body.style.backgroundColor="white";
//document.body.style.backgroundImage="url(images/t/"+dt.t[tr.ho.getTime()]+".jpg)";
document.body.style.backgroundRepeat="no-repeat";

var ah1=document.createElement("a");
var h1=document.createElement("h1");
    h1.appendChild(document.createTextNode(chrome.i18n.getMessage("lity")+' "'+atipo+'" '+ dt.c));
var href="http://www.vercalendario.info/"+cathlit.to_ascii(chrome.i18n.getMessage("l")+"/"+chrome.i18n.getMessage("event")+"/"+chrome.i18n.getMessage("urlprefix")+"-"+chrome.i18n.getMessage("year")+"-"+chrome.i18n.getMessage("calendar")+"-"+year)+".html";
    ah1.href=href;
    ah1.onclick=function(){
        cathlit.open(this.href);
    };
    ah1.appendChild(h1);
var h3=document.createElement("h3");
    h3.className=dt.t[p.ho.getTime()];
    h3.appendChild(document.createTextNode(chrome.i18n.getMessage("today")+': '+ddst+' - '+chrome.i18n.getMessage(""+dt.t[p.ho.getTime()])));
var ah3=document.createElement("a");
    ah3.href='http://www.vercalendario.info/'+chrome.i18n.getMessage("todayurl");
    ah3.onclick=function(){
        cathlit.open(this.href);
    };
    ah3.appendChild(h3);
mgd.appendChild(ah1);
mgd.appendChild(ah3);


setTimeout(
    function(e){
        show_cathlit(e);
    },1000,document.getElementById(cathlit.p.target));


var t1=null;
function show_cathlit(e){
    if(e.style.opacity < 0.9){
        e.style.opacity=(e.style.opacity*1)+0.05;
        t1=setTimeout(function(e){show_cathlit(e);}, 100, e);
    }else{
        clearTimeout(t1);
    }
}


    </script>
  ]]> 
  </Content>
</Module>