
/*
 * -------
 * :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 wc_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);
    }
 }

     

}

wc = new wc_JSMsg();

/* how slow is the with statement */

with( wc ) {
/* Meta values
*/
MetaKeys[0] = "MetaCopyright";
MetaVals[0] = "&amp;copy;2006 Google";
MetaKeys[1] = "MetaTitle";
MetaVals[1] = "witchcraft - Google News ";
MetaKeys[2] = "MetaLink";
MetaVals[2] = "http://news.google.com/news?hl=en&amp;ned=us&amp;ie=UTF-8&amp;q=witchcraft";
MetaKeys[3] = "MetaLinkTitle";
MetaVals[3] = "<A HREF=\"http://news.google.com/news?hl=en&amp;ned=us&amp;ie=UTF-8&amp;q=witchcraft\" CLASS=\"JSMsg\">witchcraft - Google News </A>";
MetaKeys[4] = "MetaUpdateDate";
MetaVals[4] = "20061118180112";
MetaKeys[5] = "MetaDesc";
MetaVals[5] = "witchcraft - Google News ";


/* content vaues:
*/
Title[0] = "Actress Judd to write screenplay on Irish witchcraft trial - Unison.ie";
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.unison.ie/breakingnews/index.php3%3Fca%3D42%26si%3D101499&cid=1111326421&ei=Z0pfRZiTNcbKHILLsfQG\">Actress Judd to write screenplay on Irish <b>witchcraft</b> trial</a><br><font size=-1><font color=#6f6f6f>Unison.ie,&nbsp;Ireland&nbsp;-</font> <nobr>9 hours ago</nobr></font><br><font size=-1>The life of one of Kilkenny&#39;s most famous women, who was accused of <b>witchcraft</b> and condemned by the Catholic Church during the 14th century, is to be made into <b>...</b>  </font><br></table>";
Link[0] = "http://news.google.com/news/url?sa=T&ct=us/0-0&fd=R&url=http://www.unison.ie/breakingnews/index.php3%3Fca%3D42%26si%3D101499&cid=1111326421&ei=Z0pfRZiTNcbKHILLsfQG";
DateN[0] = "20061118083200";

Title[1] = "Five life terms for witchcraft &#39;massacre&#39; - Independent Online";
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.iol.co.za/index.php%3Fset_id%3D1%26click_id%3D15%26art_id%3Dvn20061116063446176C203927&cid=1111233541&ei=Z0pfRZiTNcbKHILLsfQG\">Five life terms for <b>witchcraft</b> &#39;massacre&#39;</a><br><font size=-1><font color=#6f6f6f>Independent Online,&nbsp;South Africa&nbsp;-</font> <nobr>Nov 16, 2006</nobr></font><br><font size=-1>A belief in <b>witchcraft</b> was not a licence to kill other people, a Pietermaritzburg High Court judge said on Wednesday, in sentencing a killer to five life terms <b>...</b>  </font><br><font size=-1><a href=\"http://news.google.com/news/url?sa=T&ct=us/1-1&fd=R&url=http://www.news24.com/News24/South_Africa/News/0,,2-7-1442_2030947,00.html&cid=1111233541&ei=Z0pfRZiTNcbKHILLsfQG\">Massacre earns man &#39;life&#39; x5</a> <font size=-1 color=#6f6f6f><nobr>News24</nobr></font></font><br><font class=p size=-1><a class=p href=http://news.google.com/news?hl=en&ned=us&ie=UTF-8&ncl=1111233541><nobr>all 3 news articles</nobr></a></font></table>";
Link[1] = "http://news.google.com/news/url?sa=T&ct=us/1-0&fd=R&url=http://www.iol.co.za/index.php%3Fset_id%3D1%26click_id%3D15%26art_id%3Dvn20061116063446176C203927&cid=1111233541&ei=Z0pfRZiTNcbKHILLsfQG";
DateN[1] = "20061116085400";

Title[2] = "Nigeria: King - I Had Witchcraft Problem From Childhood - Witness - AllAfrica.com";
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://allafrica.com/stories/200611150187.html&cid=0&ei=Z0pfRZiTNcbKHILLsfQG\">Nigeria: King - I Had <b>Witchcraft</b> Problem From Childhood - Witness</a><br><font size=-1><font color=#6f6f6f>AllAfrica.com,&nbsp;Washington&nbsp;-</font> <nobr>Nov 15, 2006</nobr></font><br><font size=-1><b>...</b> witness in an ongoing murder trial involving Lagos clergyman, Mr. Emeka Ezeugo alias Dr. Reverend King; how she allegedly suffered <b>witchcraft</b> problems from her <b>...</b>  </font><br></table>";
Link[2] = "http://news.google.com/news/url?sa=T&ct=us/2-0&fd=R&url=http://allafrica.com/stories/200611150187.html&cid=0&ei=Z0pfRZiTNcbKHILLsfQG";
DateN[2] = "20061115163600";

Title[3] = "Java couple target of witchcraft? - Sun.Star";
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.sunstar.com.ph/static/ilo/2006/11/13/news/java.couple.target.of.witchcraft..html&cid=0&ei=Z0pfRZiTNcbKHILLsfQG\">Java couple target of <b>witchcraft</b>?</a><br><font size=-1><font color=#6f6f6f>Sun.Star,&nbsp;Philippines&nbsp;-</font> <nobr>Nov 12, 2006</nobr></font><br><font size=-1>By Ruby P. Silubrico. AIR Transportation Office Chief Alan Java and his wife Berlin confirmed that they may be subjects of <b>witchcraft</b>. <b>...</b>  </font><br></table>";
Link[3] = "http://news.google.com/news/url?sa=T&ct=us/3-0&fd=R&url=http://www.sunstar.com.ph/static/ilo/2006/11/13/news/java.couple.target.of.witchcraft..html&cid=0&ei=Z0pfRZiTNcbKHILLsfQG";
DateN[3] = "20061113035100";

Title[4] = "Accused of witchcraft, children kicked to the streets in Congo - San Jose Mercury News";
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.mercurynews.com/mld/mercurynews/news/world/15924375.htm&cid=0&ei=Z0pfRZiTNcbKHILLsfQG\">Accused of <b>witchcraft</b>, children kicked to the streets in Congo</a><br><font size=-1><font color=#6f6f6f>San Jose Mercury News,&nbsp; USA&nbsp;-</font> <nobr>Nov 3, 2006</nobr></font><br><font size=-1>By Shashank Bengali. Kipasi Kama, 15, was kicked out of his house when relatives accused him of <b>witchcraft</b>. <b>Witchcraft</b> allegations are now the No. <b>...</b>  </font><br></table>";
Link[4] = "http://news.google.com/news/url?sa=T&ct=us/4-0&fd=R&url=http://www.mercurynews.com/mld/mercurynews/news/world/15924375.htm&cid=0&ei=Z0pfRZiTNcbKHILLsfQG";
DateN[4] = "20061103234200";

Title[5] = "Accused of witchcraft, thousands of children are kicked to the ... - San Jose Mercury News";
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.mercurynews.com/mld/mercurynews/news/world/15933261.htm&cid=0&ei=Z0pfRZiTNcbKHILLsfQG\">Accused of <b>witchcraft</b>, thousands of children are kicked to the <b>...</b></a><br><font size=-1><font color=#6f6f6f>San Jose Mercury News,&nbsp; USA&nbsp;-</font> <nobr>Nov 5, 2006</nobr></font><br><font size=-1><b>...</b> One day, Mando refused to sweep the dirt floor of their home. His stepmother found a sinister explanation for his stubbornness: He was practicing <b>witchcraft</b>. <b>...</b>  </font><br></table>";
Link[5] = "http://news.google.com/news/url?sa=T&ct=us/5-0&fd=R&url=http://www.mercurynews.com/mld/mercurynews/news/world/15933261.htm&cid=0&ei=Z0pfRZiTNcbKHILLsfQG";
DateN[5] = "20061105211000";

Title[6] = "Fall under Vegas Witchcraft’s spell - Denver Daily News";
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.thedenverdailynews.com/%3Fpage%3Ddetails%26id%3D5225%26t%3DArchive&cid=0&ei=Z0pfRZiTNcbKHILLsfQG\">Fall under Vegas <b>Witchcraft</b>’s spell</a><br><font size=-1><font color=#6f6f6f>Denver Daily News,&nbsp;Colorado&nbsp;-</font> <nobr>Nov 9, 2006</nobr></font><br><font size=-1><b>...</b> Vegas <b>Witchcraft</b> has taken the Denver jazz scene by storm for the past four years performing weekly gigs at Dazzle Supper Club, 930 Lincoln St. <b>...</b>  </font><br></table>";
Link[6] = "http://news.google.com/news/url?sa=T&ct=us/6-0&fd=R&url=http://www.thedenverdailynews.com/%3Fpage%3Ddetails%26id%3D5225%26t%3DArchive&cid=0&ei=Z0pfRZiTNcbKHILLsfQG";
DateN[6] = "20061110055400";

Title[7] = "Witchcraft Finally Rock America - Plug In music";
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.pluginmusic.com/news/archive.php%3Fid%3D978&cid=0&ei=Z0pfRZiTNcbKHILLsfQG\"><b>Witchcraft</b> Finally Rock America</a><br><font size=-1><font color=#6f6f6f>Plug In music,&nbsp;PA&nbsp;-</font> <nobr>Nov 2, 2006</nobr></font><br><font size=-1>Swedish doom rockers <b>Witchcraft</b> played the first date of their North American tour in Austin, Texas on Tuesday night after finally being allowed entry to the <b>...</b>  </font><br></table>";
Link[7] = "http://news.google.com/news/url?sa=T&ct=us/7-0&fd=R&url=http://www.pluginmusic.com/news/archive.php%3Fid%3D978&cid=0&ei=Z0pfRZiTNcbKHILLsfQG";
DateN[7] = "20061102222800";

Title[8] = "Witchcraft takes center stage at labor hearing - Gallup Independent";
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.gallupindependent.com/2006/oct/101906jch_witchcraft.html&cid=0&ei=Z0pfRZiTNcbKHILLsfQG\"><b>Witchcraft</b> takes center stage at labor hearing</a><br><font size=-1><font color=#6f6f6f>Gallup Independent,&nbsp;NM&nbsp;-</font> <nobr>Oct 19, 2006</nobr></font><br><font size=-1><b>...</b> before the commission was strictly about whether Logg&#39;s termination was appropriate, there was a side issue that could not be swept under the rug: <b>witchcraft</b>. <b>...</b>  </font><br></table>";
Link[8] = "http://news.google.com/news/url?sa=T&ct=us/8-0&fd=R&url=http://www.gallupindependent.com/2006/oct/101906jch_witchcraft.html&cid=0&ei=Z0pfRZiTNcbKHILLsfQG";
DateN[8] = "20061020024200";

Title[9] = "WITCHCRAFT TOUR UPDATE - The Gauntlet";
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.thegauntlet.com/article/1145/6159/%2509%2509%2509Witchcraft.html&cid=0&ei=Z0pfRZiTNcbKHILLsfQG\"><b>WITCHCRAFT</b> TOUR UPDATE</a><br><font size=-1><font color=#6f6f6f>The Gauntlet,&nbsp;CA&nbsp;-</font> <nobr>Oct 25, 2006</nobr></font><br><font size=-1>Sweden&#39;s <b>Witchcraft</b> who were to start their first US tour in Seattle on October 23 have been forced to return to Sweden for additional processing at the US <b>...</b>  </font><br></table>";
Link[9] = "http://news.google.com/news/url?sa=T&ct=us/9-0&fd=R&url=http://www.thegauntlet.com/article/1145/6159/%2509%2509%2509Witchcraft.html&cid=0&ei=Z0pfRZiTNcbKHILLsfQG";
DateN[9] = "20061025194500";

} // end with block
