
/*
 * -------
 * :ATTRIBUTION NOTICE BEGINS
 *
 * The following JSMsg functions are:
 * 
 *    (C) Copyright 2002 - 2006, Creativyst, Inc.
 *               ALL RIGHTS RESERVED
 * 
 * For more information go to:
 *   http://www.Creativyst.com/Doc/Std/JSMsg/JSMsg.htm
 * or email:
 *            Support@Creativyst.com
 * 
 * Licensed under the Open Software License version 1.1
 *
 * END ATTRIBUTION NOTICE:
 * -------
 *
 * The following version token is 
 * required by aggregators
 * -------
 * JSMsgVersion:1.0a
 * -------
 *
 * Made by: JSMFeed.pl v1.0f
*/
/* JSCpragma:StartCompress
*/
/* These functions are free software; you can redistribute 
 * them and/or modify them under the terms of the Open 
 * Software License (OSL) version 1.1 as published by
 * the Open Source Initiative;
 * 
 * This program is distributed in the hope that it will 
 * be useful, but WITHOUT ANY WARRANTY; without even the 
 * implied warranty of MERCHANTABILITY or FITNESS FOR A 
 * PARTICULAR PURPOSE. See the Open Software License
 * version 1.1 for more details.
 * 
 * For the complete details of the Open Software License
 * please visit the Open Source Initiative website.
 *
 * 
 * These functions are part of a shared convention.
 * called JSMsg.  Please see the JSMsg document
 * for more details.
 *
 * www.creativyst.com/Doc/Std/JSMsg/JSMsg.htm
 *
 * -------------------------------------------
 * Parts of this code were automatically
 * generated and may contain copyrighted
 * content from other sources as well.
 * Such content may not be used without
 * first obtaining explicit permissions
 * from their sources.
 *
 *
*/

function rv_JSMsg() {

this.Title = Array([this.ShortListSize]);
this.Desc = Array([this.ShortListSize]);
this.Link = Array([this.ShortListSize]);
this.DateN = Array([this.ShortListSize]);

this.MetaKeys = Array([6]);
this.MetaVals = Array([6]);



 this.ShortListSize = 10;
 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)
 {
    return( this.GetNCore(msgPart, msgNumber) );
 }

 this.GetNCore = 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,"Year2N") ) {
            return(this.DateN[msgNumber].substr(2,2));
          }
          return(this.DateN[msgNumber].substr(0,4));
        }
    }

    if(  this.ok(msgPart,"Time") ) {
      myTmp = this.DateN[msgNumber];
      return(myTmp.substr(8,6));
    }
    if(  this.ok(msgPart,"Hour2N") ) {
      myTmp = this.DateN[msgNumber];
      return(myTmp.substr(8,2));
    }
    if(  this.ok(msgPart,"Minute2N") ) {
      myTmp = this.DateN[msgNumber];
      return(myTmp.substr(10,2));
    }

    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 DayN Day2N MonthN Month2N Year2N Year4N YearN Year Time Hour2N Minute2N ") ) {
         return(1);

    }
    else if( this.is(msgCmd, "MetaCount") ) {
        return(10);
    }
    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);
    }
 }

     

}

rv = new rv_JSMsg();

/* how slow is the with statement */

with( rv ) {
/* Meta values
*/
MetaKeys[0] = "MetaCopyright";
MetaVals[0] = "&amp;copy;2006 Google";
MetaKeys[1] = "MetaTitle";
MetaVals[1] = "&quot;religious violence&quot; OR &quot;holy war&quot; OR &quot;religious terrorism&quot; - Google News ";
MetaKeys[2] = "MetaLink";
MetaVals[2] = "http://news.google.com/news?hl=en&amp;ned=us&amp;ie=UTF-8&amp;q=%22religious+violence%22+OR+%22holy+war%22+OR+%22religious+terrorism%22";
MetaKeys[3] = "MetaLinkTitle";
MetaVals[3] = "<A HREF=\"http://news.google.com/news?hl=en&amp;ned=us&amp;ie=UTF-8&amp;q=%22religious+violence%22+OR+%22holy+war%22+OR+%22religious+terrorism%22\" CLASS=\"JSMsg\">&quot;religious violence&quot; OR &quot;holy war&quot; OR &quot;religious terrorism&quot; - Google News </A>";
MetaKeys[4] = "MetaUpdateDate";
MetaVals[4] = "20060307080815";
MetaKeys[5] = "MetaDesc";
MetaVals[5] = "&quot;religious violence&quot; OR &quot;holy war&quot; OR &quot;religious terrorism&quot; - Google News ";


/* content vaues:
*/
Title[0] = "Religious Terrorism Strikes Chapel Hill - Human Events";
Desc[0] = "<br><table border=0 width= valign=top cellpadding=2 cellspacing=7><tr><td valign=top><a href=\"http://news.google.com/news/url?sa=T&ct=us/0-0&fd=R&url=http://www.humaneventsonline.com/blog-detail.php%3Fid%3D12926&cid=0\"><b>Religious</b> <b>Terrorism</b> Strikes Chapel Hill</a><br><font size=-1><font color=#6f6f6f>Human Events&nbsp;-</font> <nobr>Mar 3, 2006</nobr></font><br><font size=-1><b>...</b> shields and brains as offensive weapons, University of North Carolina students are now called to defend themselves against <b>religious</b> <b>terrorism</b> while they walk <b>...</b>  </font><br></table>";
Link[0] = "http://news.google.com/news/url?sa=T&ct=us/0-0&fd=R&url=http://www.humaneventsonline.com/blog-detail.php%3Fid%3D12926&cid=0";
DateN[0] = "20060304035200";

Title[1] = "Ebb in religious violence reveals Nigerian carnage - San Francisco Chronicle";
Desc[1] = "<br><table border=0 width= valign=top cellpadding=2 cellspacing=7><tr><td valign=top><a href=\"http://news.google.com/news/url?sa=T&ct=us/1-0&fd=R&url=http://www.sfgate.com/cgi-bin/article.cgi%3Ffile%3D/c/a/2006/02/24/MNGD1HE0VP1.DTL&cid=0\">Ebb in <b>religious</b> <b>violence</b> reveals Nigerian carnage</a><br><font size=-1><font color=#6f6f6f>San Francisco Chronicle,&nbsp; USA&nbsp;-</font> <nobr>Feb 24, 2006</nobr></font><br><font size=-1><b>...</b> homes or huddled as refugees at police stations, Christian residents expressed little remorse for their role in five days of <b>religious</b> <b>violence</b> sparked by <b>...</b>  </font><br></table>";
Link[1] = "http://news.google.com/news/url?sa=T&ct=us/1-0&fd=R&url=http://www.sfgate.com/cgi-bin/article.cgi%3Ffile%3D/c/a/2006/02/24/MNGD1HE0VP1.DTL&cid=0";
DateN[1] = "20060224112600";

Title[2] = "66 dead in Nigeria&#39;s religious violence - CNN International";
Desc[2] = "<br><table border=0 width= valign=top cellpadding=2 cellspacing=7><tr><td valign=top><a href=\"http://news.google.com/news/url?sa=T&ct=us/2-0&fd=R&url=http://edition.cnn.com/2006/WORLD/africa/02/22/nigeria.riots.reut/&cid=0\">66 dead in Nigeria&#39;s <b>religious</b> <b>violence</b></a><br><font size=-1><font color=#6f6f6f>CNN International&nbsp;-</font> <nobr>Feb 22, 2006</nobr></font><br><font size=-1><b>...</b> in both regions. <b>Religious</b> <b>violence</b> is often stoked by political leaders seeking to bolster their own power bases. Fighting in one <b>...</b>  </font><br></table>";
Link[2] = "http://news.google.com/news/url?sa=T&ct=us/2-0&fd=R&url=http://edition.cnn.com/2006/WORLD/africa/02/22/nigeria.riots.reut/&cid=0";
DateN[2] = "20060222151100";

Title[3] = "Nigeria struggles against religious violence and oil rebels - Monsters and Critics.com";
Desc[3] = "<br><table border=0 width= valign=top cellpadding=2 cellspacing=7><tr><td valign=top><a href=\"http://news.google.com/news/url?sa=T&ct=us/3-0&fd=R&url=http://news.monstersandcritics.com/africa/article_1131747.php/Nigeria_struggles_against_religious_violence_and_oil_rebels&cid=0\">Nigeria struggles against <b>religious</b> <b>violence</b> and oil rebels</a><br><font size=-1><font color=#6f6f6f>Monsters and Critics.com,&nbsp;UK&nbsp;-</font> <nobr>Feb 21, 2006</nobr></font><br><font size=-1><b>...</b> <b>Religious</b> <b>violence</b> in northern Nigeria peaked in 2001 when twelve states introduced Islamic Sharia law, which sparked violence that left some two thousand <b>...</b>  </font><br></table>";
Link[3] = "http://news.google.com/news/url?sa=T&ct=us/3-0&fd=R&url=http://news.monstersandcritics.com/africa/article_1131747.php/Nigeria_struggles_against_religious_violence_and_oil_rebels&cid=0";
DateN[3] = "20060221175100";

Title[4] = "Nigerian religious violence kills 96 - Independent";
Desc[4] = "<br><table border=0 width= valign=top cellpadding=2 cellspacing=7><tr><td valign=top><a href=\"http://news.google.com/news/url?sa=T&ct=us/4-0&fd=R&url=http://news.independent.co.uk/world/africa/article347147.ece&cid=0\">Nigerian <b>religious</b> <b>violence</b> kills 96</a><br><font size=-1><font color=#6f6f6f>Independent,&nbsp;UK&nbsp;-</font> <nobr>Feb 22, 2006</nobr></font><br><font size=-1><b>...</b> Nigeria is divided between a predominantly Muslim north and a mainly Christian south. Thousands have died in <b>religious</b> <b>violence</b> since 2000. <b>...</b>  </font><br></table>";
Link[4] = "http://news.google.com/news/url?sa=T&ct=us/4-0&fd=R&url=http://news.independent.co.uk/world/africa/article347147.ece&cid=0";
DateN[4] = "20060223002100";

Title[5] = "Religious violence escalates in Nigeria - Independent Online";
Desc[5] = "<br><table border=0 width= valign=top cellpadding=2 cellspacing=7><tr><td valign=top><a href=\"http://news.google.com/news/url?sa=T&ct=us/5-0&fd=R&url=http://www.iol.co.za/index.php%3Fset_id%3D1%26click_id%3D86%26art_id%3Dqw1140788880823B252&cid=0\"><b>Religious</b> <b>violence</b> escalates in Nigeria</a><br><font size=-1><font color=#6f6f6f>Independent Online,&nbsp;South Africa&nbsp;-</font> <nobr>Feb 24, 2006</nobr></font><br><font size=-1><b>...</b> The <b>religious</b> <b>violence</b> first broke out last Saturday in the northeastern city of Maiduguri, when a Muslim protest against Danish cartoons of the Prophet <b>...</b>  </font><br></table>";
Link[5] = "http://news.google.com/news/url?sa=T&ct=us/5-0&fd=R&url=http://www.iol.co.za/index.php%3Fset_id%3D1%26click_id%3D86%26art_id%3Dqw1140788880823B252&cid=0";
DateN[5] = "20060224165800";

Title[6] = "Pope condemns religious violence in Iraq, Nigeria - Reuters AlertNet";
Desc[6] = "<br><table border=0 width= valign=top cellpadding=2 cellspacing=7><tr><td valign=top><a href=\"http://news.google.com/news/url?sa=T&ct=us/6-0&fd=R&url=http://www.alertnet.org/thenews/newsdesk/L26106424.htm&cid=0\">Pope condemns <b>religious</b> <b>violence</b> in Iraq, Nigeria</a><br><font size=-1><font color=#6f6f6f>Reuters AlertNet,&nbsp;UK&nbsp;-</font> <nobr>Feb 26, 2006</nobr></font><br><font size=-1>VATICAN CITY, Feb 26 (Reuters) - Pope Benedict on Sunday condemned <b>religious</b> <b>violence</b> in Iraq and Nigeria, saying God would punish those who killed in his name <b>...</b>  </font><br></table>";
Link[6] = "http://news.google.com/news/url?sa=T&ct=us/6-0&fd=R&url=http://www.alertnet.org/thenews/newsdesk/L26106424.htm&cid=0";
DateN[6] = "20060226113800";

Title[7] = "Pope Benedict Condemns Religious Violence in Iraq, Nigeria - Voice of America";
Desc[7] = "<br><table border=0 width= valign=top cellpadding=2 cellspacing=7><tr><td valign=top><a href=\"http://news.google.com/news/url?sa=T&ct=us/7-0&fd=R&url=http://www.voanews.com/english/2006-02-26-voa28.cfm&cid=0\">Pope Benedict Condemns <b>Religious</b> <b>Violence</b> in Iraq, Nigeria</a><br><font size=-1><font color=#6f6f6f>Voice of America&nbsp;-</font> <nobr>Feb 26, 2006</nobr></font><br><font size=-1>By VOA News. Pope Benedict has condemned <b>religious</b> <b>violence</b> in Iraq and Nigeria, saying God will punish those who kill in the name of religion. <b>...</b>  </font><br></table>";
Link[7] = "http://news.google.com/news/url?sa=T&ct=us/7-0&fd=R&url=http://www.voanews.com/english/2006-02-26-voa28.cfm&cid=0";
DateN[7] = "20060226182800";

Title[8] = "Religious Violence Resumes In Nigeria&#39;s Anambra State - Voice of America";
Desc[8] = "<br><table border=0 width= valign=top cellpadding=2 cellspacing=7><tr><td valign=top><a href=\"http://news.google.com/news/url?sa=T&ct=us/8-0&fd=R&url=http://www.voanews.com/english/Africa/2006-02-22-voa63.cfm&cid=0\"><b>Religious</b> <b>Violence</b> Resumes In Nigeria&#39;s Anambra State</a><br><font size=-1><font color=#6f6f6f>Voice of America&nbsp;-</font> <nobr>Feb 22, 2006</nobr></font><br><font size=-1>By Ashenafi Abedje. Sporadic <b>religious</b> <b>violence</b> has continued around Nigeria’s southeastern city of Onitsha, in Anambra State. <b>...</b>  </font><br></table>";
Link[8] = "http://news.google.com/news/url?sa=T&ct=us/8-0&fd=R&url=http://www.voanews.com/english/Africa/2006-02-22-voa63.cfm&cid=0";
DateN[8] = "20060222200700";

Title[9] = "Religious violence toll at 127 - News24";
Desc[9] = "<br><table border=0 width= valign=top cellpadding=2 cellspacing=7><tr><td valign=top><a href=\"http://news.google.com/news/url?sa=T&ct=us/9-0&fd=R&url=http://www.news24.com/News24/Africa/News/0,,2-11-1447_1888328,00.html&cid=0\"><b>Religious</b> <b>violence</b> toll at 127</a><br><font size=-1><font color=#6f6f6f>News24,&nbsp;South Africa&nbsp;-</font> <nobr>Feb 25, 2006</nobr></font><br><font size=-1>Lagos - Sectarian violence spread to three more Nigerian cities on Friday, claiming seven lives and raising the death toll in days of killings to 127. <b>...</b>  </font><br></table>";
Link[9] = "http://news.google.com/news/url?sa=T&ct=us/9-0&fd=R&url=http://www.news24.com/News24/Africa/News/0,,2-11-1447_1888328,00.html&cid=0";
DateN[9] = "20060225185000";

} // end with block
                                
