
/*
 * -------
 * :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] = "20061118180103";
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] = "Mujahideen Of Lebanon Call To Prepare For Holy War Against ... - Jihad Unspun";
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.jihadunspun.com/intheatre_internal.php%3Farticle%3D106748%26list%3D/home.php&cid=0&ei=XkpfRc2VMZuaHKWQ9PYG\">Mujahideen Of Lebanon Call To Prepare For <b>Holy War</b> Against <b>...</b></a><br><font size=-1><font color=#6f6f6f>Jihad Unspun,&nbsp;Canada&nbsp;-</font> <nobr>7 hours ago</nobr></font><br><font size=-1>A group identifying itself as the Mujahideen of Lebanon issued a statement Friday calling upon Sunnis to prepare for a confrontation with Shi&#39;ah Hezbollah now <b>...</b>  </font><br></table>";
Link[0] = "http://news.google.com/news/url?sa=T&ct=us/0-0&fd=R&url=http://www.jihadunspun.com/intheatre_internal.php%3Farticle%3D106748%26list%3D/home.php&cid=0&ei=XkpfRc2VMZuaHKWQ9PYG";
DateN[0] = "20061118103700";

Title[1] = "Religious violence hardly new - Wilmington Morning Star";
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.wilmingtonstar.com/apps/pbcs.dll/article%3FAID%3D/20061112/NEWS/611120304/-1/State&cid=0&ei=XkpfRc2VMZuaHKWQ9PYG\"><b>Religious violence</b> hardly new</a><br><font size=-1><font color=#6f6f6f>Wilmington Morning Star,&nbsp;NC&nbsp;-</font> <nobr>Nov 12, 2006</nobr></font><br><font size=-1>By Matthew Cobb. Does this sound familiar? Disaffected and reckless young British men with genuine grievances, fueled by religious <b>...</b>  </font><br></table>";
Link[1] = "http://news.google.com/news/url?sa=T&ct=us/1-0&fd=R&url=http://www.wilmingtonstar.com/apps/pbcs.dll/article%3FAID%3D/20061112/NEWS/611120304/-1/State&cid=0&ei=XkpfRc2VMZuaHKWQ9PYG";
DateN[1] = "20061112090200";

Title[2] = "&#39;Today&#39; and &#39;GMA&#39; -- Holy war - Arizona Daily Star";
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://regulus2.azstarnet.com/blogs/remotecontrolled/2630/today-and-gma----holy-war&cid=0&ei=XkpfRc2VMZuaHKWQ9PYG\">&#39;Today&#39; and &#39;GMA&#39; -- <b>Holy war</b></a><br><font size=-1><font color=#6f6f6f>Arizona Daily Star,&nbsp;AZ&nbsp;-</font> <nobr>Nov 10, 2006</nobr></font><br><font size=-1>I think there was a cosmic disruption of the space-time continuum at 7 am today. As soon as I turned on my TV, I had the feeling <b>...</b>  </font><br></table>";
Link[2] = "http://news.google.com/news/url?sa=T&ct=us/2-0&fd=R&url=http://regulus2.azstarnet.com/blogs/remotecontrolled/2630/today-and-gma----holy-war&cid=0&ei=XkpfRc2VMZuaHKWQ9PYG";
DateN[2] = "20061110181400";

Title[3] = "Somali demonstrators back Islamists&#39; holy war against Ethiopia - EiTB";
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://www.eitb24.com/portal/eitb24/noticia/en/international-news/jihad-somali-demonstrators-back-islamists-holy-war-against-ethiop%3FitemId%3DB24_17676%26cl%3D%252Feitb24%252Finternacional%26idioma%3Den&cid=0&ei=XkpfRc2VMZuaHKWQ9PYG\">Somali demonstrators back Islamists&#39; <b>holy war</b> against Ethiopia</a><br><font size=-1><font color=#6f6f6f>EiTB,&nbsp;Spain&nbsp;-</font> <nobr>Oct 27, 2006</nobr></font><br><font size=-1>Thousands of Somalis took to the streets of Mogadishu on Friday to back dominant Islamists in a <b>holy war</b> they have declared against Ethiopian troops. <b>...</b>  </font><br></table>";
Link[3] = "http://news.google.com/news/url?sa=T&ct=us/3-0&fd=R&url=http://www.eitb24.com/portal/eitb24/noticia/en/international-news/jihad-somali-demonstrators-back-islamists-holy-war-against-ethiop%3FitemId%3DB24_17676%26cl%3D%252Feitb24%252Finternacional%26idioma%3Den&cid=0&ei=XkpfRc2VMZuaHKWQ9PYG";
DateN[3] = "20061027183900";

Title[4] = "Islamists call for &#39;holy war&#39; - News24";
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://www.news24.com/News24/Africa/News/0,,2-11-1447_2018892,00.html&cid=0&ei=XkpfRc2VMZuaHKWQ9PYG\">Islamists call for &#39;<b>holy war</b>&#39;</a><br><font size=-1><font color=#6f6f6f>News24,&nbsp;South Africa&nbsp;-</font> <nobr>Oct 23, 2006</nobr></font><br><font size=-1>Mogadishu - Somalia&#39;s powerful Islamists movement called on Monday for the start of a threatened &quot;<b>holy war</b>&quot; against Ethiopian troops allegedly on Somali <b>...</b>  </font><br></table>";
Link[4] = "http://news.google.com/news/url?sa=T&ct=us/4-0&fd=R&url=http://www.news24.com/News24/Africa/News/0,,2-11-1447_2018892,00.html&cid=0&ei=XkpfRc2VMZuaHKWQ9PYG";
DateN[4] = "20061023132900";

Title[5] = "Holy war against pride parade - Ynetnews";
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.ynetnews.com/articles/0,7340,L-3321178,00.html&cid=0&ei=XkpfRc2VMZuaHKWQ9PYG\"><b>Holy war</b> against pride parade</a><br><font size=-1><font color=#6f6f6f>Ynetnews,&nbsp;Israel&nbsp;-</font> <nobr>Oct 29, 2006</nobr></font><br><font size=-1><b>...</b> human life. This is what we are trying to make him understand – there is a danger and there will be a <b>holy war</b> on this issue.&quot;. The <b>...</b>  </font><br></table>";
Link[5] = "http://news.google.com/news/url?sa=T&ct=us/5-0&fd=R&url=http://www.ynetnews.com/articles/0,7340,L-3321178,00.html&cid=0&ei=XkpfRc2VMZuaHKWQ9PYG";
DateN[5] = "20061030005700";

Title[6] = "Indonesian police arrest 15 suspects in religious violence on ... - International Herald Tribune";
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.iht.com/articles/ap/2006/10/31/asia/AS_GEN_Indonesia_Religious_Violence.php&cid=0&ei=XkpfRc2VMZuaHKWQ9PYG\">Indonesian police arrest 15 suspects in <b>religious violence</b> on <b>...</b></a><br><font size=-1><font color=#6f6f6f>International Herald Tribune,&nbsp;France&nbsp;-</font> <nobr>Oct 30, 2006</nobr></font><br><font size=-1>AP. JAKARTA, Indonesia Indonesian police have arrested at least 15 Muslims suspected of participating in violence against Christians <b>...</b>  </font><br></table>";
Link[6] = "http://news.google.com/news/url?sa=T&ct=us/6-0&fd=R&url=http://www.iht.com/articles/ap/2006/10/31/asia/AS_GEN_Indonesia_Religious_Violence.php&cid=0&ei=XkpfRc2VMZuaHKWQ9PYG";
DateN[6] = "20061031043000";

Title[7] = "Indonesia tries to halt religious terrorism - Bangkok Post";
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.bangkokpost.com/breaking_news/breakingnews.php%3Fid%3D113934&cid=0&ei=XkpfRc2VMZuaHKWQ9PYG\">Indonesia tries to halt <b>religious terrorism</b></a><br><font size=-1><font color=#6f6f6f>Bangkok Post,&nbsp;Thailand&nbsp;-</font> <nobr>Nov 1, 2006</nobr></font><br><font size=-1>Jakarta (dpa) - Indonesian police on Wednesday named 26 new suspects in religiously-motivated attacks in restive Central Sulawesi province, the scene of <b>...</b>  </font><br></table>";
Link[7] = "http://news.google.com/news/url?sa=T&ct=us/7-0&fd=R&url=http://www.bangkokpost.com/breaking_news/breakingnews.php%3Fid%3D113934&cid=0&ei=XkpfRc2VMZuaHKWQ9PYG";
DateN[7] = "20061101135600";

Title[8] = "Somalia: Holy war declared on Ethiopia - SomaliNet";
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://somalinet.com/news/world/English/4408&cid=0&ei=XkpfRc2VMZuaHKWQ9PYG\">Somalia: <b>Holy war</b> declared on Ethiopia</a><br><font size=-1><font color=#6f6f6f>SomaliNet&nbsp;-</font> <nobr>Oct 25, 2006</nobr></font><br><font size=-1><b>...</b> to prepare for Jihad. His call of <b>holy war</b> was echoed by many others in other parts of the country. The Islamic movement leaders <b>...</b>  </font><br></table>";
Link[8] = "http://news.google.com/news/url?sa=T&ct=us/8-0&fd=R&url=http://somalinet.com/news/world/English/4408&cid=0&ei=XkpfRc2VMZuaHKWQ9PYG";
DateN[8] = "20061025163000";

Title[9] = "Indonesian Police Announce 26 More Suspects In Religious Violence - Playfuls.com";
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.playfuls.com/news_10_2532-Indonesian-Police-Announce-26-More-Suspects-In-Religious-Violence.html&cid=0&ei=XkpfRc2VMZuaHKWQ9PYG\">Indonesian Police Announce 26 More Suspects In <b>Religious Violence</b></a><br><font size=-1><font color=#6f6f6f>Playfuls.com,&nbsp;Romania&nbsp;-</font> <nobr>Nov 1, 2006</nobr></font><br><font size=-1>by Playfuls Team. Indonesian police on Wednesday named 26 new suspects in religiously-motivated attacks in restive Central Sulawesi <b>...</b>  </font><br></table>";
Link[9] = "http://news.google.com/news/url?sa=T&ct=us/9-0&fd=R&url=http://www.playfuls.com/news_10_2532-Indonesian-Police-Announce-26-More-Suspects-In-Religious-Violence.html&cid=0&ei=XkpfRc2VMZuaHKWQ9PYG";
DateN[9] = "20061101145300";

} // end with block
