
/*
 * -------
 * :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.MetaKeys = Array([4]);
this.MetaVals = Array([4]);



 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 ") ) {
         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] = "PRWeb  - Daily News Feed";
MetaKeys[1] = "MetaLink";
MetaVals[1] = "http://www.prweb.com";
MetaKeys[2] = "MetaLinkTitle";
MetaVals[2] = "<A HREF=\"http://www.prweb.com\" CLASS=\"JSMsg\">PRWeb  - Daily News Feed</A>";
MetaKeys[3] = "MetaDesc";
MetaVals[3] = "PRWeb Latest news releases ";


/* content vaues:
*/
Title[0] = "Free Pumpkin Carving Stencils, Including Ones of Favorite Dog Breeds, Unearthed by Better Homes and Gardens Magazine ";
Desc[0] = "\n          <P>Ideas for spooky Halloween decorations, parties, recipes and crafts scared up by BHG.com (PRWeb Sep 11, 2009)</P>\n        <P>Read the full story at <a href=\"http://www.prweb.com/releases/2009/09/prweb2863734.htm\">http://www.prweb.com/releases/2009/09/prweb2863734.htm</a></P>\n    ";
Link[0] = "http://www.prweb.com/releases/2009/09/prweb2863734.htm";

Title[1] = "ICG Media Wins Multiple Web Design Awards";
Desc[1] = "\n          <P>Stevens Point, Wisconsin-based firm awarded three 2009 American Web Design Awards for client web sites.  The web site designs showcase a range of design ideas featuring products and services. (PRWeb Sep 11, 2009)</P>\n        <P>Read the full story at <a href=\"http://www.prweb.com/releases/website/design/prweb2853284.htm\">http://www.prweb.com/releases/website/design/prweb2853284.htm</a></P>\n    ";
Link[1] = "http://www.prweb.com/releases/website/design/prweb2853284.htm";

Title[2] = "First-Of-Its-Kind \"Green\" Manufactured Home Offered By Modular Lifestyles, Inc.";
Desc[2] = "\n          <P>Modular Lifestyles, Inc., Announces Open House for VIPS And The Public To View First-Of-Its-Kind \"Green\" Factory Built Manufactured Home in Ojai, California. (PRWeb Sep 11, 2009)</P>\n        <P>Read the full story at <a href=\"http://www.prweb.com/releases/2009/09/prweb2792654.htm\">http://www.prweb.com/releases/2009/09/prweb2792654.htm</a></P>\n    ";
Link[2] = "http://www.prweb.com/releases/2009/09/prweb2792654.htm";

Title[3] = "Tampa Personal Injury Lawyer Timothy Anderson, Jr. Joins Father&#039;s Law Firm, Takes Five Cases To Jury Trial In First Eighteen Months";
Desc[3] = "\n          <P>Timothy Anderson Jr., Florida attorney, is now working for his father&#039;s personal injury law practice. In his first 18 months with the firm, he and Timothy Anderson Sr. have tried five cases together. (PRWeb Sep 11, 2009)</P>\n        <P>Read the full story at <a href=\"http://www.prweb.com/releases/2009/09/prweb2813544.htm\">http://www.prweb.com/releases/2009/09/prweb2813544.htm</a></P>\n    ";
Link[3] = "http://www.prweb.com/releases/2009/09/prweb2813544.htm";

Title[4] = "Matthew Sarad to Reverse Aging and Cure Cancer ";
Desc[4] = "\n          <P>Former Telomolecular CEO, Matthew Sarad, plans a series of experiments to demonstrate the power of nanotechnology based regenerative medicines. (PRWeb Sep 11, 2009)</P>\n        <P>Read the full story at <a href=\"http://www.prweb.com/releases/2009/09/prweb2840554.htm\">http://www.prweb.com/releases/2009/09/prweb2840554.htm</a></P>\n    ";
Link[4] = "http://www.prweb.com/releases/2009/09/prweb2840554.htm";

Title[5] = "iPocket Coach joins Apple App Store ";
Desc[5] = "\n          <P>New mobile app coaches managers on workplace communications  (PRWeb Sep 11, 2009)</P>\n        <P>Read the full story at <a href=\"http://www.prweb.com/releases/ipocketcoach/tonydeblauwe/prweb2842984.htm\">http://www.prweb.com/releases/ipocketcoach/tonydeblauwe/prweb2842984.htm</a></P>\n    ";
Link[5] = "http://www.prweb.com/releases/ipocketcoach/tonydeblauwe/prweb2842984.htm";

Title[6] = "Premier Literacy Releases Version 11 of the Most Comprehensive Offering of Literacy Tools Available Today";
Desc[6] = "\n          <P>Premier Literacy announces the release of Version 11 of their Premier Literacy Suite (formerly Accessibility Suite) of software literacy tools. (PRWeb Sep 11, 2009)</P>\n        <P>Read the full story at <a href=\"http://www.prweb.com/releases/2009/09/prweb2848224.htm\">http://www.prweb.com/releases/2009/09/prweb2848224.htm</a></P>\n    ";
Link[6] = "http://www.prweb.com/releases/2009/09/prweb2848224.htm";

Title[7] = "Europe&#039;s Most Successful Collector Coin Direct Marketer Achieves 75% Increase in Monthly Revenues Through Telesales Using Portrait Campaign Manager";
Desc[7] = "\n          <P>Samlerhuset Group to implement Portrait&#039;s Marketing Automation Software in Seven Additional European Countries (PRWeb Sep 11, 2009)</P>\n        <P>Read the full story at <a href=\"http://www.prweb.com/releases/2009/09/prweb2850694.htm\">http://www.prweb.com/releases/2009/09/prweb2850694.htm</a></P>\n    ";
Link[7] = "http://www.prweb.com/releases/2009/09/prweb2850694.htm";

Title[8] = "Resilienze&#8482; Wallpaper Base is leading the Industry in Meeting Global Formaldehyde Standards";
Desc[8] = "\n          <P>Seafront Specialty Paper Inc. (BVI), a global specialty paper manufacturer launches Resilienze&#8482; brandwallpaper base, continuing its commitment to develop and manufacture customized base papers for premium quality residential and commercial wallpaper manufacturers worldwide.  Resilienze&#8482; designed to meet new global standards for reduced formaldehyde content and emissions. (PRWeb Sep 11, 2009)</P>\n        <P>Read the full story at <a href=\"http://www.prweb.com/releases/2009/09/prweb2851074.htm\">http://www.prweb.com/releases/2009/09/prweb2851074.htm</a></P>\n    ";
Link[8] = "http://www.prweb.com/releases/2009/09/prweb2851074.htm";

Title[9] = "Apple&#039;s Ad Catapults Golfshot&#039;s Popularity";
Desc[9] = "\n          <P>Golfshot, the wildly popular Golf GPS and Scorecard app for golfers, has skyrocketed to one of the top apps for Apple&#039;s iPhone thanks to being featured by Apple in its recent commercial targeting sports fans. (PRWeb Sep 11, 2009)</P>\n        <P>Read the full story at <a href=\"http://www.prweb.com/releases/2009/09/prweb2851504.htm\">http://www.prweb.com/releases/2009/09/prweb2851504.htm</a></P>\n    ";
Link[9] = "http://www.prweb.com/releases/2009/09/prweb2851504.htm";

Title[10] = "Online Trading Academy Trading Experts Share Best Practices at the All-Star Trader Event in Denver on Tuesday, September 15, 2009";
Desc[10] = "\n          <P>Online Trading Academy hosts September all-star trader event in Denver. Trading Experts Come Together to Share Best Practices with Trading Students at Online Trading Academy&#039;s one-of-a-kind All-Star Trader Event in Colorado on Tuesday, September 15th.  The event is scheduled from 8am to 5pm at the Denver Marriott South at Park Meadows located at 10345 Park Meadows Dr, Littleton, CO 80124. The tuition for this special event is free and includes complimentary lunch. (PRWeb Sep 11, 2009)</P>\n        <P>Read the full story at <a href=\"http://www.prweb.com/releases/2009/09/prweb2853694.htm\">http://www.prweb.com/releases/2009/09/prweb2853694.htm</a></P>\n    ";
Link[10] = "http://www.prweb.com/releases/2009/09/prweb2853694.htm";

Title[11] = "Recent College Grad Tells the Economy to Shove it With His Home Based Business";
Desc[11] = "\n          <P>Ryan Moran just completed his undergraduate work, but unlike most young adults who are desperately looking for work, he is enjoying the fruits of the work that he did while still a student. Because of a business that he started from his dorm room, Ryan graduated with no debt and has no need to seek employment. However, instead of lavishing himself, he maintains a very humble lifestyle, choosing to live well below his means and living in a small apartment with his college buddies. (PRWeb Sep 11, 2009)</P>\n        <P>Read the full story at <a href=\"http://www.prweb.com/releases/ryan/moran/prweb2855554.htm\">http://www.prweb.com/releases/ryan/moran/prweb2855554.htm</a></P>\n    ";
Link[11] = "http://www.prweb.com/releases/ryan/moran/prweb2855554.htm";

Title[12] = "Real Men Give Real Relationship Advice from the Guy&#8217;s Perspective";
Desc[12] = "\n          <P>Started by three 20-something year old guys with varying dating pasts and current marital statuses, AsktheGuys.com is a new site available for women and men alike to ask any type of question anonymously for those who want to get the serious male&#8217;s point of view on a variety of topics. (PRWeb Sep 11, 2009)</P>\n        <P>Read the full story at <a href=\"http://www.prweb.com/releases/Ask_Guys/Relationship_Advice/prweb2856614.htm\">http://www.prweb.com/releases/Ask_Guys/Relationship_Advice/prweb2856614.htm</a></P>\n    ";
Link[12] = "http://www.prweb.com/releases/Ask_Guys/Relationship_Advice/prweb2856614.htm";

Title[13] = "Buffalo Roundup 2009";
Desc[13] = "\n          <P>Starting Sept. 26, the Black Hills and Custer State Park come alive with events ranging from arts festivals and historic reenactments to chili cook-offs and old-time fiddlers, all centered around the annual roundup of the park&#8217;s nearly 1,500 bison. (PRWeb Sep 11, 2009)</P>\n        <P>Read the full story at <a href=\"http://www.prweb.com/releases/2009/09/prweb2856804.htm\">http://www.prweb.com/releases/2009/09/prweb2856804.htm</a></P>\n    ";
Link[13] = "http://www.prweb.com/releases/2009/09/prweb2856804.htm";

Title[14] = "Affinity VideoNet Partners with Telemerge to Offer North American Videoconferencing Solutions ";
Desc[14] = "\n          <P>Affinity VideoNet and Telemerge Canada now offer HD IP enabled videoconference rooms throughout Canada. (PRWeb Sep 11, 2009)</P>\n        <P>Read the full story at <a href=\"http://www.prweb.com/releases/2009/09/prweb2857174.htm\">http://www.prweb.com/releases/2009/09/prweb2857174.htm</a></P>\n    ";
Link[14] = "http://www.prweb.com/releases/2009/09/prweb2857174.htm";

Title[15] = "Be Nice Prenatal Vitamin Drink Mix Joins Roster of All Natural Brands Available at Maternitique.com ";
Desc[15] = "\n          <P>Be Nice is proud to announce a new partnership with online retailer Maternitique.com, who will be adding Be Nice prenatal vitamin drink mix with DHA to its family of all natural products for babies and expecting mothers. (PRWeb Sep 11, 2009)</P>\n        <P>Read the full story at <a href=\"http://www.prweb.com/releases/prenatal_vitamin/prenatal_drink_mix/prweb2857414.htm\">http://www.prweb.com/releases/prenatal_vitamin/prenatal_drink_mix/prweb2857414.htm</a></P>\n    ";
Link[15] = "http://www.prweb.com/releases/prenatal_vitamin/prenatal_drink_mix/prweb2857414.htm";

Title[16] = "4moms Announces Ship Date for MamaRoo: The 2008 JPMA Innovation Award Winner to Hit Stores on January 20, 2010";
Desc[16] = "\n          <P>The mamaRoo infant swing (http://www.4momsonline.com/mamaroo) offers five unique motions that mimic the natural movements mothers make when holding their babies. It will hit stores in January 2010. (PRWeb Sep 11, 2009)</P>\n        <P>Read the full story at <a href=\"http://www.prweb.com/releases/4moms/mamaRoo/prweb2857424.htm\">http://www.prweb.com/releases/4moms/mamaRoo/prweb2857424.htm</a></P>\n    ";
Link[16] = "http://www.prweb.com/releases/4moms/mamaRoo/prweb2857424.htm";

Title[17] = "Damon, Topham &#38; Company of Marshfield Appoints Jennifer Matulewicz Darby, CPA as Senior Accountant ";
Desc[17] = "\n          <P>In her new role as Senior Accountant, Ms. Darby will prepare individual and corporate tax returns, non-profit informational returns,  perform compilations, reviews and audits, respond to tax notices, and offer general tax, financial, and accounting advice. (PRWeb Sep 11, 2009)</P>\n        <P>Read the full story at <a href=\"http://www.prweb.com/releases/Jennifer_Matulewicz_Darby/Senior_Accountant/prweb2858504.htm\">http://www.prweb.com/releases/Jennifer_Matulewicz_Darby/Senior_Accountant/prweb2858504.htm</a></P>\n    ";
Link[17] = "http://www.prweb.com/releases/Jennifer_Matulewicz_Darby/Senior_Accountant/prweb2858504.htm";

Title[18] = "RACING TOWARD ARMAGEDDON THE THREE GREAT RELIGIONS AND THE PLOT TO END THE WORLD by Michael Baigent, Bestselling coauthor of Holy Blood, Holy Grail";
Desc[18] = "\n          <P>Will current generations live to see Armageddon? Are there really sinister forces at work, encouraging its imminent arrival?  If so, who exactly are they?In his provocative new book, RACING TOWARD ARMAGEDDON, Michael Baigent, NY Times bestselling author and one of the most controversial religious theorists of our time, turns his keen attention to modern-day Jerusalem and its increasingly important role in global affairs. (PRWeb Sep 11, 2009)</P>\n        <P>Read the full story at <a href=\"http://www.prweb.com/releases/baigent/armageddon/prweb2859004.htm\">http://www.prweb.com/releases/baigent/armageddon/prweb2859004.htm</a></P>\n    ";
Link[18] = "http://www.prweb.com/releases/baigent/armageddon/prweb2859004.htm";

Title[19] = "City of Rancho Mirage and The Olson Company Partner to Create Affordable Senior Housing Community Called San Jacinto Village";
Desc[19] = "\n          <P>The City of Rancho Mirage and The Olson Company will conduct a ceremonial ground breaking today on what is, according to officials, the State of California&#039;s largest affordable, senior, new home community to commence construction this year. (PRWeb Sep 11, 2009)</P>\n        <P>Read the full story at <a href=\"http://www.prweb.com/releases/2009/09/prweb2859524.htm\">http://www.prweb.com/releases/2009/09/prweb2859524.htm</a></P>\n    ";
Link[19] = "http://www.prweb.com/releases/2009/09/prweb2859524.htm";

} // end with block

