
/*
 * -------
 * :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.Desc = Array([this.ShortListSize]);
this.Link = Array([this.ShortListSize]);
this.DateN = Array([this.ShortListSize]);

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



 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 Desc Description Link LinkTitle DayN 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] = "MetaTitle";
MetaVals[0] = "Yahoo! Finance: Retirement News";
MetaKeys[1] = "MetaLink";
MetaVals[1] = "http://biz.yahoo.com/topic/retirement/";
MetaKeys[2] = "MetaLinkTitle";
MetaVals[2] = "<A HREF=\"http://biz.yahoo.com/topic/retirement/\" CLASS=\"JSMsg\">Yahoo! Finance: Retirement News</A>";
MetaKeys[3] = "MetaUpdateDate";
MetaVals[3] = "20091120225941";
MetaKeys[4] = "MetaDesc";
MetaVals[4] = "The latest news on Retirement from Yahoo! Finance ";


/* content vaues:
*/
Title[0] = "Patient 401(k) Members Win Rewards (Investor\'s Business Daily)";
Desc[0] = "Good things happen to those who hang tough. That applies to 401 plan members too.";
Link[0] = "http://us.rd.yahoo.com/finance/news/rss/story/*http://biz.yahoo.com/ibd/091120/funds.html?.v=1";
DateN[0] = "20091120225941";

Title[1] = "Ohio AG sues credit agencies for public pensions (AP)";
Desc[1] = "The three major credit ratings agencies gave mortgage-backed securities unjustifiably high ratings in return for lucrative fees, losing at least $457 million for five Ohio public employee pension and retirement funds, the state\'s attorney general alleged in a lawsuit filed Friday.";
Link[1] = "http://us.rd.yahoo.com/finance/news/rss/story/*http://biz.yahoo.com/ap/091120/us_attorney_general_ratings_agencies.html?.v=6";
DateN[1] = "20091120200716";

Title[2] = "W.Va. municipal pension relief plan wins passage (AP)";
Desc[2] = "Some of West Virginia\'s largest cities can soon freeze and gradually pay down their daunting pension funding shortfalls, after the House of Delegates sent Gov. Joe Manchin his special session relief proposal Thursday.";
Link[2] = "http://us.rd.yahoo.com/finance/news/rss/story/*http://biz.yahoo.com/ap/091120/us_special_session_wva.html?.v=2";
DateN[2] = "20091120135910";

Title[3] = "Hedge funds for the average investor (Bankrate.com)";
Desc[3] = "Hedge funds bar the riffraff. But investors can access mutual funds that employ hedging strategies.";
Link[3] = "http://us.rd.yahoo.com/finance/news/rss/story/*http://biz.yahoo.com/brn/091120/8131390.html?.v=1";
DateN[3] = "20091120110000";

Title[4] = "Government abandons Bush investment advice rule (AP)";
Desc[4] = "The federal government has decided to abandon a Bush administration plan that would have permitted mutual fund companies and brokerage firms to offer investment advice to 401 customers.";
Link[4] = "http://us.rd.yahoo.com/finance/news/rss/story/*http://biz.yahoo.com/ap/091119/us_investment_advice_rule.html?.v=4";
DateN[4] = "20091119235430";

Title[5] = "10 Tips for Covering Your Assets (Motley Fool)";
Desc[5] = "How to prepare for life\'s surprises -- both good and bad.";
Link[5] = "http://us.rd.yahoo.com/finance/news/rss/story/*http://biz.yahoo.com/fool/091119/rx36292.html?.v=1";
DateN[5] = "20091119170135";

Title[6] = "Fidelity: Staying the course worked for millions (AP)";
Desc[6] = "If you had a good mix of stocks and bonds in your retirement account and you left it alone through the market madness of the past year, more than likely you\'re in good shape now.";
Link[6] = "http://us.rd.yahoo.com/finance/news/rss/story/*http://biz.yahoo.com/ap/091119/us_fidelity_retirement_accounts.html?.v=2";
DateN[6] = "20091119154448";

Title[7] = "7 ways to stretch your retirement income (Bankrate.com)";
Desc[7] = "You don\'t have to defy the laws of physics to stretch your money so it will last. Just plan wisely.";
Link[7] = "http://us.rd.yahoo.com/finance/news/rss/story/*http://biz.yahoo.com/brn/091119/8131093.html?.v=1";
DateN[7] = "20091119110000";

Title[8] = "4 ways to face a cash-strapped retirement (Bankrate.com)";
Desc[8] = "Follow this approach to socking away money and putting things in order -- before it\'s too late.";
Link[8] = "http://us.rd.yahoo.com/finance/news/rss/story/*http://biz.yahoo.com/brn/091119/8134307.html?.v=1";
DateN[8] = "20091119110000";

Title[9] = "W.Va. lawmakers begin 4th special session of \'09 (AP)";
Desc[9] = "A group representing hundreds of West Virginia police officers sees the value in the special session legislation that aims to help ailing municipal pensions, one of its officials said Tuesday.";
Link[9] = "http://us.rd.yahoo.com/finance/news/rss/story/*http://biz.yahoo.com/ap/091118/us_special_session_wva.html?.v=2";
DateN[9] = "20091118162017";

Title[10] = "Should investors over age 50 own stocks? (Bankrate.com)";
Desc[10] = "The stock market is a scary place, but experts say most investors should have some exposure.";
Link[10] = "http://us.rd.yahoo.com/finance/news/rss/story/*http://biz.yahoo.com/brn/091118/8130868.html?.v=1";
DateN[10] = "20091118110000";

Title[11] = "AP lays off employees to hit cost-cutting goal (AP)";
Desc[11] = "The Associated Press laid off an undisclosed number of news employees Tuesday as part of the cooperative\'s yearlong plan to cut worldwide payroll expenses by 10 percent.";
Link[11] = "http://us.rd.yahoo.com/finance/news/rss/story/*http://biz.yahoo.com/ap/091117/us_associated_press_layoffs.html?.v=3";
DateN[11] = "20091118012225";

Title[12] = "Okla. ed board wants use of Rainy Day Fund now (AP)";
Desc[12] = "Cuts in state funding for education mean teachers at one northeastern Oklahoma school now must clean their own classrooms while their superintendent scrubs the toilets. A superintendent in a neighboring county is considering laying off five teachers.";
Link[12] = "http://us.rd.yahoo.com/finance/news/rss/story/*http://biz.yahoo.com/ap/091117/ok_education_board.html?.v=2";
DateN[12] = "20091118011554";

Title[13] = "Stock market improves SD trust fund payouts (AP)";
Desc[13] = "Stock market gains mean two trust funds likely will be able to contribute money to help support education and health care in next year\'s state budget, state Investment Officer Matt Clark said.";
Link[13] = "http://us.rd.yahoo.com/finance/news/rss/story/*http://biz.yahoo.com/ap/091117/us_state_investments.html?.v=2";
DateN[13] = "20091117180029";

Title[14] = "Figuring retirement needs in shaky economy (Bankrate.com)";
Desc[14] = "Take these steps to see if your nest egg can furnish your needs in best- and worst-case scenarios.";
Link[14] = "http://us.rd.yahoo.com/finance/news/rss/story/*http://biz.yahoo.com/brn/091117/8130952.html?.v=1";
DateN[14] = "20091117110000";

Title[15] = "Amway to eliminate 93 positions in US, Canada (AP)";
Desc[15] = "Direct-selling giant Amway says it\'s eliminating 93 positions in the United States and Canada over the next 15 months due to a consolidation of its financial operations.";
Link[15] = "http://us.rd.yahoo.com/finance/news/rss/story/*http://biz.yahoo.com/ap/091116/us_amway_job_cuts.html?.v=2";
DateN[15] = "20091116194021";

Title[16] = "Neb. meatpacker sued over handling of layoffs (AP)";
Desc[16] = "Three women who once worked at a Nebraska meatpacking company have sued their former employer, saying it violated a federal law aimed at protecting workers during mass layoffs or plant closings.";
Link[16] = "http://us.rd.yahoo.com/finance/news/rss/story/*http://biz.yahoo.com/ap/091114/ne_neb_layoff_lawsuit.html?.v=2";
DateN[16] = "20091114223456";

Title[17] = "Mrs. Obama: health overhaul will help older women (AP)";
Desc[17] = "First lady Michelle Obama sought to assure older women on Friday that efforts to overhaul health care won\'t undercut the benefits they receive through Medicare, saying her husband considers the government-run program a \"sacred part of America\'s social safety net.\"";
Link[17] = "http://us.rd.yahoo.com/finance/news/rss/story/*http://biz.yahoo.com/ap/091113/us_michelle_obama_health_care.html?.v=6";
DateN[17] = "20091113230028";

Title[18] = "New York Times to lay off news service workers (AP)";
Desc[18] = "The New York Times News Service, which repackages Times stories for other media outlets, is laying off at least 25 employees.";
Link[18] = "http://us.rd.yahoo.com/finance/news/rss/story/*http://biz.yahoo.com/ap/091113/us_new_york_times_layoffs.html?.v=6";
DateN[18] = "20091113194909";

Title[19] = "BA and Iberia: merger positive for passengers (AP)";
Desc[19] = "British Airways PLC and Spain\'s Iberia SA talked up the benefits of a proposed $7 billion merger on Friday, dismissing criticisms that the deal could increase fares, reduce competition and drag down service standards at Britain\'s flagship carrier.";
Link[19] = "http://us.rd.yahoo.com/finance/news/rss/story/*http://biz.yahoo.com/ap/091113/eu_britain_british_airways_iberia.html?.v=11";
DateN[19] = "20091113165332";

} // end with block
