
/*
 * -------
 * :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 np_JSMsg() {

this.Title = Array([this.ShortListSize]);
this.Link = Array([this.ShortListSize]);
this.Cat = Array([this.ShortListSize]);
this.DateN = Array([this.ShortListSize]);

this.MetaKeys = Array([6]);
this.MetaVals = Array([6]);



 this.ShortListSize = 20;
 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 Link LinkTitle Cat Category SubjectDayN Day2N MonthN Month2N Year2N Year4N YearN Year Time Hour2N Minute2N ") ) {
         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);
    }
 }

     

}

np = new np_JSMsg();

/* how slow is the with statement */

with( np ) {
/* Meta values
*/
MetaKeys[0] = "MetaCopyright";
MetaVals[0] = "Copyright  © 1996-2005 PR Newswire Association LLC. All Rights Reserved.";
MetaKeys[1] = "MetaTitle";
MetaVals[1] = "PR Newswire: Domestic policy";
MetaKeys[2] = "MetaLink";
MetaVals[2] = "http://www.prnewswire.com/prn/owa/keysearch_ind_sub?last=&amp;indust=&amp;state=&amp;subject=POL";
MetaKeys[3] = "MetaLinkTitle";
MetaVals[3] = "<A HREF=\"http://www.prnewswire.com/prn/owa/keysearch_ind_sub?last=&amp;indust=&amp;state=&amp;subject=POL\" CLASS=\"JSMsg\">PR Newswire: Domestic policy</A>";
MetaKeys[4] = "MetaUpdateDate";
MetaVals[4] = "20090911152815";
MetaKeys[5] = "MetaDesc";
MetaVals[5] = "Domestic policy press releases distributed via PR Newswire.";


/* content vaues:
*/
Title[0] = "UAN Nurse Among Political Activists To Be Honored by AFL-CIO";
Link[0] = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109&STORY=/www/story/09-11-2009/0005092352&EDATE=";
Cat[0] = "Health Care/Hospitals";
DateN[0] = "20090911151700";

Title[1] = "U.S. Customs Import Security Filing Initiative Hits Stride and a Few Bumps";
Link[1] = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109&STORY=/www/story/09-11-2009/0005092348&EDATE=";
Cat[1] = "Air Freight";
DateN[1] = "20090911151400";

Title[2] = "First Lady Michelle Obama Challenges The George Washington University to Serve";
Link[2] = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109&STORY=/www/story/09-11-2009/0005092346&EDATE=";
Cat[2] = "Education";
DateN[2] = "20090911151000";

Title[3] = "University of Maryland\'s Dingman Center for Entrepreneurship Partners with Peking University to Deliver 2010 China Business Plan Competition in Beijing";
Link[3] = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109&STORY=/www/story/09-11-2009/0005092325&EDATE=";
Cat[3] = "Education";
DateN[3] = "20090911143400";

Title[4] = "Remarks as Prepared for Delivery by Attorney General Holder at the National Law Enforcement Officers Memorial September 11 Ceremony";
Link[4] = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109&STORY=/www/story/09-11-2009/0005092323&EDATE=";
Cat[4] = "Federal executive branch, agency news";
DateN[4] = "20090911143300";

Title[5] = "PA Growing \'Green\' Economy While Creating Jobs, Helping Consumers Save Money, Gov. Rendell Says";
Link[5] = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109&STORY=/www/story/09-11-2009/0005092311&EDATE=";
Cat[5] = "Construction/Building";
DateN[5] = "20090911140200";

Title[6] = "U.S.-Russia Business Council Announces Alcoa CEO as New Chairman";
Link[6] = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109&STORY=/www/story/09-11-2009/0005092309&EDATE=";
Cat[6] = "Banking/Financial Services";
DateN[6] = "20090911140000";

Title[7] = "American Lung Association Supports Health Officials to Prevent the Spread of Seasonal Influenza by Urging People to Get Vaccinated";
Link[7] = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109&STORY=/www/story/09-11-2009/0005092302&EDATE=";
Cat[7] = "Health Care/Hospitals";
DateN[7] = "20090911135300";

Title[8] = "Ovarian Cancer Coalition Partners With Consuelo Vanderbilt Costin";
Link[8] = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109&STORY=/www/story/09-11-2009/0005092295&EDATE=";
Cat[8] = "Health Care/Hospitals";
DateN[8] = "20090911133200";

Title[9] = "Chicago Bears Quarterback Jay Cutler, Eli Lilly and Company and the American Diabetes Association Team Up to Fund Diabetes Camp Scholarships Through \"Touchdowns for Diabetes\"";
Link[9] = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109&STORY=/www/story/09-11-2009/0005092291&EDATE=";
Cat[9] = "Health Care/Hospitals";
DateN[9] = "20090911133000";

Title[10] = "The Epoch Times Breaks Important Story About John Liu\'s Campaign Financing";
Link[10] = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109&STORY=/www/story/09-11-2009/0005092287&EDATE=";
Cat[10] = "Publishing/Information Services";
DateN[10] = "20090911132600";

Title[11] = "AAA Warns Parents to Avoid Most Common Car Seat Mistakes";
Link[11] = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109&STORY=/www/story/09-11-2009/0005092280&EDATE=";
Cat[11] = "Auto";
DateN[11] = "20090911131100";

Title[12] = "Reading Is Fundamental Honors 9/11 -- National Day of Service and Remembrance and Commemorates United We Serve";
Link[12] = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109&STORY=/www/story/09-11-2009/0005092281&EDATE=";
Cat[12] = "Books";
DateN[12] = "20090911131100";

Title[13] = "Expert Insights on Japan\'s General Election Available at Tokyo Foundation Website";
Link[13] = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109&STORY=/www/story/09-11-2009/0005092274&EDATE=";
Cat[13] = "Asian-related news";
DateN[13] = "20090911130000";

Title[14] = "Clinical Labs Report Additional Data to Aid in Detecting Kidney Disease";
Link[14] = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109&STORY=/www/story/09-11-2009/0005092253&EDATE=";
Cat[14] = "Health Care/Hospitals";
DateN[14] = "20090911125600";

Title[15] = "Woman-Owned Businesses Retaining Their Employees in Tough Economy";
Link[15] = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109&STORY=/www/story/09-11-2009/0005092242&EDATE=";
Cat[15] = "Workforce Management/Human Resources";
DateN[15] = "20090911123000";

Title[16] = "Blue Cross and Blue Shield Sued by Health Care Providers for Abusive Practices";
Link[16] = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109&STORY=/www/story/09-11-2009/0005092234&EDATE=";
Cat[16] = "Health Care/Hospitals";
DateN[16] = "20090911122400";

Title[17] = "U.S. Senate Vote Imminent on Deadly and Destructive Overweight Truck Exemption - Federal Agency\'s Dire Warning Ignored on Allowing 100,000 Pound Trucks on Maine\'s Roads and Bridges";
Link[17] = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109&STORY=/www/story/09-11-2009/0005092227&EDATE=";
Cat[17] = "Auto";
DateN[17] = "20090911121000";

Title[18] = "Gary Cooper Commemorated on Stamp";
Link[18] = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109&STORY=/www/story/09-11-2009/0005092224&EDATE=";
Cat[18] = "Film & Motion Picture";
DateN[18] = "20090911120200";

Title[19] = "The Center for the Study of Islam & Democracy Hosts Ramadan Dinner with Dr. Seyyed Hossein Nasr";
Link[19] = "http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109&STORY=/www/story/09-11-2009/0005092205&EDATE=";
Cat[19] = "Foreign policy/International affairs";
DateN[19] = "20090911120000";

} // end with block
