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

     

}

sl = new sl_JSMsg();

/* how slow is the with statement */

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


/* content vaues:
*/
Title[0] = "PM backs Shariah law for southern Thailand - Gulf Times";
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.gulf-times.com/site/topics/article.asp%3Fcu_no%3D2%26item_no%3D116484%26version%3D1%26template_id%3D45%26parent_id%3D25&cid=0&ei=ZkpfRbSMO73mHK-fxfwG\">PM backs <b>Shariah law</b> for southern Thailand</a><br><font size=-1><font color=#6f6f6f>Gulf Times,&nbsp;Qatar&nbsp;-</font> <nobr>Nov 7, 2006</nobr></font><br><font size=-1><b>...</b> Surayud told the Foreign Correspondents Club of Thailand that <b>shariah</b>, or Islamic <b>law</b> <b>...</b> “They should have the Islamic <b>law</b> in practice, <b>sharia</b>, because the <b>...</b>  </font><br></table>";
Link[0] = "http://news.google.com/news/url?sa=T&ct=us/0-0&fd=R&url=http://www.gulf-times.com/site/topics/article.asp%3Fcu_no%3D2%26item_no%3D116484%26version%3D1%26template_id%3D45%26parent_id%3D25&cid=0&ei=ZkpfRbSMO73mHK-fxfwG";
DateN[0] = "20061108055900";

Title[1] = "ISLAM: VEIL A NON-ISSUE FOR MUSLIM FEMINISTS - AKI";
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.adnki.com/index_2Level_English.php%3Fcat%3DReligion%26loid%3D8.0.356572748%26par%3D0&cid=0&ei=ZkpfRbSMO73mHK-fxfwG\">ISLAM: VEIL A NON-ISSUE FOR MUSLIM FEMINISTS</a><br><font size=-1><font color=#6f6f6f>AKI,&nbsp;Italy&nbsp;-</font> <nobr>Nov 3, 2006</nobr></font><br><font size=-1><b>...</b> The conference in Barcelona will focus on <b>Sharia</b> (Islamic) <b>law</b> and Muslim <b>...</b> Besides the <b>Shariah</b>, the 400 delegates at the congress will also look at other <b>...</b>  </font><br></table>";
Link[1] = "http://news.google.com/news/url?sa=T&ct=us/1-0&fd=R&url=http://www.adnki.com/index_2Level_English.php%3Fcat%3DReligion%26loid%3D8.0.356572748%26par%3D0&cid=0&ei=ZkpfRbSMO73mHK-fxfwG";
DateN[1] = "20061103174300";

Title[2] = "Islamists pass a Sharia bill in Pakistan region - Spero News";
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://www.speroforum.com/site/article.asp%3Fidarticle%3D6541&cid=0&ei=ZkpfRbSMO73mHK-fxfwG\">Islamists pass a <b>Sharia</b> bill in Pakistan region</a><br><font size=-1><font color=#6f6f6f>Spero News&nbsp;-</font> <nobr>Nov 13, 2006</nobr></font><br><font size=-1><b>...</b> NWFP to make the Hisbah Bill become binding <b>law</b>, the move <b>...</b> of a Judge of the Federal Shariat (<b>Sharia</b>) Court. <b>...</b> control of government to act against <b>Shariah</b> and to <b>...</b>  </font><br></table>";
Link[2] = "http://news.google.com/news/url?sa=T&ct=us/2-0&fd=R&url=http://www.speroforum.com/site/article.asp%3Fidarticle%3D6541&cid=0&ei=ZkpfRbSMO73mHK-fxfwG";
DateN[2] = "20061113205900";

Title[3] = "Somalis ready for fighting in flood-hit south - Gulf Times";
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.gulf-times.com/site/topics/article.asp%3Fcu_no%3D2%26item_no%3D116610%26version%3D1%26template_id%3D39%26parent_id%3D21&cid=0&ei=ZkpfRbSMO73mHK-fxfwG\">Somalis ready for fighting in flood-hit south</a><br><font size=-1><font color=#6f6f6f>Gulf Times,&nbsp;Qatar&nbsp;-</font> <nobr>Nov 8, 2006</nobr></font><br><font size=-1><b>...</b> said they would prosecute their captives through <b>Shariah law</b>. According to this <b>law</b>, pirates are punished the <b>...</b> be charged according to the <b>Sharia</b>.” He said <b>...</b>  </font><br></table>";
Link[3] = "http://news.google.com/news/url?sa=T&ct=us/3-0&fd=R&url=http://www.gulf-times.com/site/topics/article.asp%3Fcu_no%3D2%26item_no%3D116610%26version%3D1%26template_id%3D39%26parent_id%3D21&cid=0&ei=ZkpfRbSMO73mHK-fxfwG";
DateN[3] = "20061109071300";

Title[4] = "Islamic finance qualification launched in Britain - Middle East Online";
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.middle-east-online.com/english/%3Fid%3D18070&cid=0&ei=ZkpfRbSMO73mHK-fxfwG\">Islamic finance qualification launched in Britain</a><br><font size=-1><font color=#6f6f6f>Middle East Online,&nbsp;UK&nbsp;-</font> <nobr>Oct 31, 2006</nobr></font><br><font size=-1><b>...</b> religious aspects of products that are compliant with <b>Sharia law</b>, which prohibits <b>...</b> are providing financial products in compliance with Islamic or <b>Shariah law</b>. </font><br></table>";
Link[4] = "http://news.google.com/news/url?sa=T&ct=us/4-0&fd=R&url=http://www.middle-east-online.com/english/%3Fid%3D18070&cid=0&ei=ZkpfRbSMO73mHK-fxfwG";
DateN[4] = "20061031151100";

Title[5] = "Islamic finance quality standard launched in UK - Peninsula On-line";
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.thepeninsulaqatar.com/Display_news.asp%3Fsection%3DBusiness_News%26subsection%3Dmarket%2Bnews%26month%3DNovember2006%26file%3DBusiness_News2006110132429.xml&cid=0&ei=ZkpfRbSMO73mHK-fxfwG\">Islamic finance quality standard launched in UK</a><br><font size=-1><font color=#6f6f6f>Peninsula On-line,&nbsp;Qatar&nbsp;-</font> <nobr>Oct 31, 2006</nobr></font><br><font size=-1><b>...</b> TSB-who are providing financial products which comply with Islamic or <b>Shariah law</b>. <b>...</b> current accounts to home loans, all of which are compliant with <b>Sharia law</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.thepeninsulaqatar.com/Display_news.asp%3Fsection%3DBusiness_News%26subsection%3Dmarket%2Bnews%26month%3DNovember2006%26file%3DBusiness_News2006110132429.xml&cid=0&ei=ZkpfRbSMO73mHK-fxfwG";
DateN[5] = "20061101003500";

Title[6] = "Sharia may be allowed in Thailand&#39;s south - Washington Times";
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://washingtontimes.com/upi/20061108-115541-3907r.htm&cid=0&ei=ZkpfRbSMO73mHK-fxfwG\"><b>Sharia</b> may be allowed in Thailand&#39;s south</a><br><font size=-1><font color=#6f6f6f>Washington Times,&nbsp;DC&nbsp;-</font> <nobr>Nov 8, 2006</nobr></font><br><font size=-1><b>...</b> Thailand should be allowed to have their own laws. &quot;They should have the Islamic <b>law</b> in practice -- the <b>Shariah</b>,&quot; Surayud said. <b>...</b>  </font><br></table>";
Link[6] = "http://news.google.com/news/url?sa=T&ct=us/6-0&fd=R&url=http://washingtontimes.com/upi/20061108-115541-3907r.htm&cid=0&ei=ZkpfRbSMO73mHK-fxfwG";
DateN[6] = "20061108180500";

Title[7] = "Islamic Notes Gain Converts - Wall Street Journal (subscription)";
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://online.wsj.com/article/SB116344558171321834.html%3Fmod%3Dgooglenews_wsj&cid=0&ei=ZkpfRbSMO73mHK-fxfwG\">Islamic Notes Gain Converts</a><br><font size=-1><font color=#6f6f6f>Wall Street Journal (subscription),&nbsp;NY&nbsp;-</font> <nobr>Nov 13, 2006</nobr></font><br><font size=-1><b>...</b> in its strict adherence to <b>Shariah</b>, or Islamic <b>law</b>, which among <b>...</b> Two of these will be <b>Sharia</b> Quality Ratings <b>...</b> better judge the standard of <b>Shariah</b> endorsements of <b>...</b>  </font><br></table>";
Link[7] = "http://news.google.com/news/url?sa=T&ct=us/7-0&fd=R&url=http://online.wsj.com/article/SB116344558171321834.html%3Fmod%3Dgooglenews_wsj&cid=0&ei=ZkpfRbSMO73mHK-fxfwG";
DateN[7] = "20061114050300";

Title[8] = "Add new comment - Indian Muslims";
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.indianmuslims.info/comment/reply/10904&cid=0&ei=ZkpfRbSMO73mHK-fxfwG\">Add new comment</a><br><font size=-1><font color=#6f6f6f>Indian Muslims,&nbsp;California&nbsp;-</font> <nobr>Oct 30, 2006</nobr></font><br><font size=-1><b>...</b> and an experienced expert on Islamic <b>law</b>, replied in <b>...</b> rechecking the text with various <b>Sharia</b> experts in <b>...</b> the Mufti was in accordance with <b>Shariah</b>,&quot; adding that <b>...</b>  </font><br></table>";
Link[8] = "http://news.google.com/news/url?sa=T&ct=us/8-0&fd=R&url=http://www.indianmuslims.info/comment/reply/10904&cid=0&ei=ZkpfRbSMO73mHK-fxfwG";
DateN[8] = "20061031054700";

Title[9] = "JOHN KERRY SUPPORTS THE TROOPS AS SPECIAL-EDUCATION CASES - FrontPage magazine.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://frontpagemagazine.com/Articles/ReadArticle.asp%3FID%3D25243&cid=0&ei=ZkpfRbSMO73mHK-fxfwG\">JOHN KERRY SUPPORTS THE TROOPS AS SPECIAL-EDUCATION CASES</a><br><font size=-1><font color=#6f6f6f>FrontPage magazine.com,&nbsp;CA&nbsp;-</font> <nobr>Nov 1, 2006</nobr></font><br><font size=-1><b>...</b> He was second in charge of Tehreek-e-Nifaaz-e-<b>Shariah</b>-e-Mohammadi (TNSM), a <b>...</b> the US led war on terror, support of the Taliban, and the promotion of <b>Sharia law</b>. <b>...</b>  </font><br></table>";
Link[9] = "http://news.google.com/news/url?sa=T&ct=us/9-0&fd=R&url=http://frontpagemagazine.com/Articles/ReadArticle.asp%3FID%3D25243&cid=0&ei=ZkpfRbSMO73mHK-fxfwG";
DateN[9] = "20061101083400";

} // end with block
