function JsmInfo_JSMsg()
{

this.Title = new Array();
this.Desc = new Array();
this.Link = new Array();
this.Cat = new Array();
this.DateN = new Array();

this.MetaKeys = new Array();
this.MetaVals = new Array();




















































































 this.ShortListSize = 40;
 this.BeenLoaded = 0;
 this.dispNumb;

 this.Msg = function(msgPart, msgOffset)
 {
    document.write( this.Get(msgPart, msgOffset) );
 }

 this.MsgDay = function(msgPart)
 {
    document.write( this.GetDay(msgPart) );
 }

 this.MsgN = function(msgPart, msgNumber)
 {
    document.write( this.GetN(msgPart, msgNumber) );
 }


 this.Get = function(msgPart, msgOffset)
 {
    if(!msgOffset) {
        msgOffset = 0;
    }
    if(!this.BeenLoaded) {
        this.BeenLoaded = 1;
        dispNumb = 
           this.getRandInt(this.ShortListSize);
    }
    return( this.GetN(msgPart, (dispNumb + msgOffset)) );
 }

 this.GetDay = function(msgPart)
 {
    var d = new Date();
    var x = d.getDate();
    return( this.GetN(msgPart, x) );
 }


 this.GetN = function(msgPart, msgNumber)
 {
    var myTmp;

    if(!msgPart) {
        msgPart = "Body";
    }
    if(!msgNumber) {
        msgNumber = 0;
    }

    if(msgNumber >= this.ShortListSize) {
        msgNumber = msgNumber % this.ShortListSize;
    }

    if(  this.ok(msgPart,"Type") ) {
        return(this.Type[msgNumber]);
    }
    if(  this.ok(msgPart,"Title") ) {
        return(this.Title[msgNumber]);
    }
    if(  this.ok(msgPart, "Desc Description Content") ) {
        return(this.Desc[msgNumber]);
    }
    if(  this.ok(msgPart,"Body") ) {
        return(this.Body[msgNumber]);
    }
    if(  this.ok(msgPart, "Attrib Attribute Source") ) {
        return(this.Attrib[msgNumber]);
    }
    if(  this.ok(msgPart, "Author") ) {
        if(!this.Author[msgNumber]) {
            return(this.Attrib[msgNumber]);
        }
        return(this.Author[msgNumber]);
    }

    if(  this.ok(msgPart,"DayN Day2N Day") ) {
        myTmp = this.DateN[msgNumber];
        if(myTmp.length) { 
          myTmp = myTmp.substr(6,2);
          if(  this.ok(msgPart,"Day2N") ) {
            return(myTmp);
          }
          if(myTmp.charAt(0) == "0") {
            return(myTmp.substr(1,1))
          }
          return(myTmp);
        }
    }
    if(  this.ok(msgPart, "MonthN Month2N") ) {
        myTmp = this.DateN[msgNumber];
        if(myTmp.length) {
          myTmp = myTmp.substr(4,2)
          if(  this.ok(msgPart,"Month2N") ) {
            return(myTmp);
          }
          if(myTmp.charAt(0) == "0") {
            return(myTmp.substr(1,1))
          }
          return(myTmp);
        }
    }
    if(  this.ok(msgPart, "Year2N Year4N YearN Year") ) {
        if(this.DateN[msgNumber].length) {
          if(  this.ok(msgPart,"Year4N") ) {
            return(this.DateN[msgNumber].substr(0,4));
          }
          return(this.DateN[msgNumber].substr(0,4));
        }
    }

    if(  this.ok(msgPart,"Link") ) {
        return(this.Link[msgNumber]);
    }
    if( this.ok(msgPart,"LinkTitle") ) {
        if(this.MetaMsg(msgPart,"Link") && this.MetaMsg(msgPart,"Title") ) {
          if( !this.Link[msgNumber] ) {
              return(this.Title[msgNumber]);
          }

          if( !this.Title[msgNumber] ) {
            this.Title[msgNumber] =  this.Link[msgNumber];              
          }
          myTmp = '<A TARGET="_blank" \n'; 
          myTmp = myTmp + 'HREF="' + this.Link[msgNumber] + '">\n';
          myTmp = myTmp + this.Title[msgNumber] + '</A>\n';

          return(myTmp);

        }
        if( this.MetaMsg(msgPart,"Title") ) {
          return(this.Title[msgNumber]);
        }
        if( this.MetaMsg(msgPart,"Link") ) {
          if( this.Link[msgNumber] ) {
            myTmp = "<A TARGET=\"_blank\" \n"; 
            myTmp = myTmp + "HREF=\"" + this.Link[msgNumber] + "\">\n";
            myTmp = myTmp + this.Link[msgNumber] + "</A>\n";
            return(myTmp);
          }
        }
        return("");
    }
    if( this.ok(msgPart,"Cat Category Subject") ) {
        return(this.Cat[msgNumber]);
    }
    if( this.ok(msgPart,"Thumb") ) {
        return(this.Thumb[msgNumber]);
    }
    if( this.ok(msgPart,"Alt") ) {
        return(this.Alt[msgNumber]);
    }

    return("");
 }




 this.getRandInt = function(RandSz)
 {
    var t, t2, t3;

    t = 0;
    while(t < .000001) {
        t = Math.random();
        t = Math.abs(t);
    }
    t2 = t * 1000000;
    t2 = Math.round(t2);
    t3 = t2 % RandSz;
    return(t3);
 }



 this.ok = function(a, b)
 {
    var t, t2;

    if(!this.is(a,b)) {
        return(0);
    }
    return(this.MetaMsg(a));
 }

 this.is = function(a, b)
 {
    var t, t2;

    t = a + " ";
    t2 = b + " ";
    t2 = t2.toUpperCase();
    t = t.toUpperCase();

    if(t2.indexOf(t) == -1) {
        return(0);
    }
    return(1);
 }


 this.MetaMsg = function(msgCmd)
 {
    var i,l;

    if( this.is(msgCmd, "Title LinkTitle Desc Description Link LinkTitle Cat Category SubjectDayN Day2N MonthN Month2N Year2N Year4N YearN Year ") ) {
         return(1);

    }
    else if( this.is(msgCmd, "MetaCount") ) {
        return(20);
    }
    else {
        if(this.MetaKeys) {
            l = this.MetaKeys.length;
            for(i = 0;i < l;i++) {
                if(this.MetaKeys[i] == msgCmd) {
                    return(this.MetaVals[i]);
                }
            }
        }
        return(0);
    }
 }
}

JsmInfo = new JsmInfo_JSMsg();

/* how slow is the with statement */

with( JsmInfo ) {
Title[0] ='<span class=textgiallobold10>•Calendario Convocazioni Supplenti Sc.Sec. I e II gr. a.s. 2010-11 Giorno 10-09</span><br><a href="http://www.csamatera.it/sez1080291900/new1283543809" class=textbianco><br><b>[dettagli...]<b></a>';
Title[1] ='<span class=textgiallobold10>•Disponibilità Incarichi Pers.Doc.Scuola Primaria a.s.2010-11</span><br><a href="http://www.csamatera.it/sez1080291900/new1283234271" class=textbianco><br><b>[dettagli...]<b></a>';
Title[2] ='<span class=textgiallobold10>•Disponibilità Per  Incarichi  a T.D. Sc. Infanzia a.s. 2010_2011.doc</span><br><a href="http://www.csamatera.it/sez1080291900/new1283234859" class=textbianco><br><b>[dettagli...]<b></a>';
Title[3] ='<span class=textgiallobold10>•Decreto Cumulativo Utilizz.- Ass. provv, Doc.II gr. a.s.2010-11</span><br><a href="http://www.csamatera.it/sez1080291900/new1282984820" class=textbianco><br><b>[dettagli...]<b></a>';
Title[4] ='<span class=textgiallobold10>•Decreto Cumulativo Conferma e Nuova Utilizz.ne D.O.S. IIgr. a.s.2010-11</span><br><a href="http://www.csamatera.it/sez1080291900/new1282926139" class=textbianco><br><b>[dettagli...]<b></a>';
Title[5] ='<span class=textgiallobold10>•Posti Disponibili Stipula Contratti T.I. Peronale A.T.A. a.s. 2010-11.doc</span><br><a href="http://www.csamatera.it/sez1080291900/new1282815208" class=textbianco><br><b>[dettagli...]<b></a>';
Title[6] ='<span class=textgiallobold10>•Scuola Sec.Igr. - Utilizzazioni e Ass. Provvisorie Provinciali ed Interprovinciali  a.s. 2010/11</span><br><a href="http://www.csamatera.it/sez1080291900/new1282812601" class=textbianco><br><b>[dettagli...]<b></a>';
Title[7] ='<span class=textgiallobold10>•Calendario  relativo alla stipula di contratti di lavoro T.D. Sc.Primaria e Infanzia  a.s.2010-11</span><br><a href="http://www.csamatera.it/sez1080291900/new1282802592" class=textbianco><br><b>[dettagli...]<b></a>';
Title[8] ='<span class=textgiallobold10>•Calendario  relativo alla stipula di contratti di lavoro T.D. Pers. ATA a.s.2010-11- I AVVISO-</span><br><a href="http://www.csamatera.it/sez1080291900/new1282801864" class=textbianco><br><b>[dettagli...]<b></a>';
Title[9] ='<span class=textgiallobold10>•Scuola Infanzia -Rettifiche Utilizz. e Ass. Provvisorie Provinciali -Interprovinciali -a.s. 2010/11</span><br><a href="http://www.csamatera.it/sez1080291900/new1282802289" class=textbianco><br><b>[dettagli...]<b></a>';
Title[10] ='<span class=textgiallobold10>•Utilizzazioni e Assegnazioni Provvisorie  Personale  A.T.A. a.s. 2010/11</span><br><a href="http://www.csamatera.it/sez1080291900/new1282807325" class=textbianco><br><b>[dettagli...]<b></a>';
Title[11] ='<span class=textgiallobold10>•Scuola Primaria - Utilizzazioni e Ass. Provvisorie Provinciali ed Interprovinciali  a.s. 2010/11</span><br><a href="http://www.csamatera.it/sez1080291900/new1282638953" class=textbianco><br><b>[dettagli...]<b></a>';
Title[12] ='<span class=textgiallobold10>•Scuola Infanzia - Utilizzazioni e Ass. Provvisorie Provinciali -Interprovinciali -a.s. 2010/11</span><br><a href="http://www.csamatera.it/sez1080291900/new1282638464" class=textbianco><br><b>[dettagli...]<b></a>';
Title[13] ='<span class=textgiallobold10>•Scuola Primaria Elenco Disponibilità Operazioni Inizio Anno a.s.2010-2011</span><br><a href="http://www.csamatera.it/sez1080291900/new1282562542" class=textbianco><br><b>[dettagli...]<b></a>';
Title[14] ='<span class=textgiallobold10>•AVVISO  relativo alla stipula di contratti di lavoro per il personale ATA a.s.2010-11</span><br><a href="http://www.csamatera.it/sez1080291900/new1282288289" class=textbianco><br><b>[dettagli...]<b></a>';
Title[15] ='<span class=textgiallobold10>•Calendario Prova Finale Mobilità Professionale A.T.A. a.s.2010</span><br><a href="http://www.csamatera.it/sez1080291900/new1281538850" class=textbianco><br><b>[dettagli...]<b></a>';
Title[16] ='<span class=textgiallobold10>•CALENDARIO DI MASSIMA DELLE OPERAZIONI DI AVVIO DELL’ANNO SCOLASTICO 2010/2011</span><br><a href="http://www.csamatera.it/sez1080291900/new1281509117" class=textbianco><br><b>[dettagli...]<b></a>';
Title[17] ='<span class=textgiallobold10>•Code  Grad. Esau. Definitive  Pers. doc.Sc. Primaria, Infanzia e Pers. Educ. A.S.2010-2011</span><br><a href="http://www.csamatera.it/sez1080291900/new1281438031" class=textbianco><br><b>[dettagli...]<b></a>';
Title[18] ='<span class=textgiallobold10>•Grad.Esaur.Definitive Pers.Docente  II gr. Code a.s.2010-2011</span><br><a href="http://www.csamatera.it/sez1080291900/new1281436079" class=textbianco><br><b>[dettagli...]<b></a>';
Title[19] ='<span class=textgiallobold10>•Grad.Esaur.Definitive Pers.Docente I gr. Code a.s.2010-2011</span><br><a href="http://www.csamatera.it/sez1080291900/new1281436399" class=textbianco><br><b>[dettagli...]<b></a>';
Title[20] ='<span class=textgiallobold10>•O.D. PERS. A.T.A. - ELENCO POSTI DISPONIBILI a.s.2010-2011</span><br><a href="http://www.csamatera.it/sez1080291900/new1280986719" class=textbianco><br><b>[dettagli...]<b></a>';
Title[21] ='<span class=textgiallobold10>•Graduatorie Esau.Definitive Pers.Doc.Sc.Sec.I e II gr.a.s.2010-11</span><br><a href="http://www.csamatera.it/sez1080291900/new1280993018" class=textbianco><br><b>[dettagli...]<b></a>';
Title[22] ='<span class=textgiallobold10>•Grad.Esau.Definitive Pers. Doc. Sc. Primaria - Infanzia Pers.Ed. a.s.2010-11</span><br><a href="http://www.csamatera.it/sez1080291900/new1280993491" class=textbianco><br><b>[dettagli...]<b></a>';
Title[23] ='<span class=textgiallobold10>•Informativa Domande Utilizz.Docenti Sc. Primaria e Infanzia a.s.2010-2011</span><br><a href="http://www.csamatera.it/sez1080291900/new1279526908" class=textbianco><br><b>[dettagli...]<b></a>';
Title[24] ='<span class=textgiallobold10>•Progetti Regionali a.s. 2009-10 -Terza Convocazione  Personale A.T.A</span><br><a href="http://www.csamatera.it/sez1080291900/new1271985583" class=textbianco><br><b>[dettagli...]<b></a>';
Title[25] ='<span class=textgiallobold10>•Concorsi per soli titoli Personale ATA 2009-2010</span><br><a href="http://www.csamatera.it/sez1080291900/new1270725034" class=textbianco><br><b>[dettagli...]<b></a>';
Title[26] ='<span class=textgiallobold10>•Grad. Definitiva degli ammessi al corso di formazione per l attribuzione della 2^ Posizione Stipendiale Pers.ATA</span><br><a href="http://www.csamatera.it/sez1080291900/new1268313261" class=textbianco><br><b>[dettagli...]<b></a>';
Title[27] ='<span class=textgiallobold10>•Cessazioni dal Servizio Personale della Scuola dal 1° Settembre 2010</span><br><a href="http://www.csamatera.it/sez1080291900/new1266837592" class=textbianco><br><b>[dettagli...]<b></a>';
Title[28] ='<span class=textgiallobold10>•Graduatorie prioritarie ex D M 100-09 Pers. A.T.A.</span><br><a href="http://www.csamatera.it/sez1080291900/new1265630976" class=textbianco><br><b>[dettagli...]<b></a>';
Title[29] ='<span class=textgiallobold10>•Graduatorie prioritarie ex D.M.100-09 Sc.Sec. 1 e 2 gr.</span><br><a href="http://www.csamatera.it/sez1080291900/new1265532035" class=textbianco><br><b>[dettagli...]<b></a>';
Title[30] ='<span class=textgiallobold10>•GRAD. PRIORITARIA PER DISTRETTO D0CENTI SC.PRIMARIA E INFANZIA</span><br><a href="http://www.csamatera.it/sez1080291900/new1265204955" class=textbianco><br><b>[dettagli...]<b></a>';
Title[31] ='<span class=textgiallobold10>•Personale A.T.A. -  Attribuzione della 2^ posizione economica  </span><br><a href="http://www.csamatera.it/sez1080291900/new1265179262" class=textbianco><br><b>[dettagli...]<b></a>';
Title[32] ='<span class=textgiallobold10>•Pubbl. Graduat. Provv. PRECARI Personale ATA</span><br><a href="http://www.csamatera.it/sez1080291900/new1260853174" class=textbianco><br><b>[dettagli...]<b></a>';
Title[33] ='<span class=textgiallobold10>•Circolare sui Permessi straordinari retribuiti per studio - anno scol  2009 10</span><br><a href="http://www.csamatera.it/sez1080291900/new1256729455" class=textbianco><br><b>[dettagli...]<b></a>';
Title[34] ='<span class=textgiallobold10>•Graduatorie Esaurimento Definitive Coda Sc.Secondaria II gr.Nomine T.D. Biennio 2009-11</span><br><a href="http://www.csamatera.it/sez1080291900/new1250688845" class=textbianco><br><b>[dettagli...]<b></a>';
Title[35] ='<span class=textgiallobold10>•Graduatorie Esaurimento Definitive Coda Sc.Infanzia -Primaria e Pers.Ed. Biennio 2009-11</span><br><a href="http://www.csamatera.it/sez1080291900/new1250687086" class=textbianco><br><b>[dettagli...]<b></a>';
Title[36] ='<span class=textgiallobold10>•Graduatorie Esaurimento Definitive Coda Sc.Secondaria II gr. Biennio 2009-11</span><br><a href="http://www.csamatera.it/sez1080291900/new1250689251" class=textbianco><br><b>[dettagli...]<b></a>';
Title[37] ='<span class=textgiallobold10>•Graduatorie Esaurimento Definitive Coda Sc.Secondaria I gr. Biennio 2009-11</span><br><a href="http://www.csamatera.it/sez1080291900/new1250687926" class=textbianco><br><b>[dettagli...]<b></a>';
Title[38] ='<span class=textgiallobold10>•Grad.Esau.Definitive 2 Docenti Sc.Sec. di I e II gr. Biennio 2009-11</span><br><a href="http://www.csamatera.it/sez1080291900/new1250072533" class=textbianco><br><b>[dettagli...]<b></a>';
Title[39] ='<span class=textgiallobold10>•Grad.Esau.Definitiva 2 Doc.Sc.Infanzia - Primaria -Pers.Educ Biennio 2009-11</span><br><a href="http://www.csamatera.it/sez1080291900/new1249985984" class=textbianco><br><b>[dettagli...]<b></a>';
} // end with block