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

this.Title = Array([this.ShortListSize]);
this.Desc = Array([this.ShortListSize]);
this.Link = 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 ") ) {
         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);
    }
 }

     

}

intop = new intop_JSMsg();

/* how slow is the with statement */

with( intop ) {
/* Meta values
*/
MetaKeys[0] = "MetaCopyright";
MetaVals[0] = "Copyright 1996-2006 Jupitermedia Corporation";
MetaKeys[1] = "MetaTitle";
MetaVals[1] = "InternetNews Realtime News for IT Managers";
MetaKeys[2] = "MetaLink";
MetaVals[2] = "http://www.internetnews.com";
MetaKeys[3] = "MetaLinkTitle";
MetaVals[3] = "<A HREF=\"http://www.internetnews.com\" CLASS=\"JSMsg\">InternetNews Realtime News for IT Managers</A>";
MetaKeys[4] = "MetaDesc";
MetaVals[4] = "All the top news, features, analysis and insight into enterprise and Internet technology, geared for IT managers and delivered by the best in the industry.";


/* content vaues:
*/
Title[0] = "CA Acquires Cloud Vendor Nimsoft for $350M";
Desc[0] = "CA makes another cloud computing acquisition, picking up IT performance and availability monitoring software vendor Nimsoft in all-cash deal.\n";
Link[0] = "http://redir.internet.com/rss/click/www.internetnews.com/software/article.php/3870011";

Title[1] = "Microsoft Gives MSN Home Page a Major Overhaul";
Desc[1] = "Microsoft has been previewing a radical redesign of its MSN home page since last fall, but now it&#39;s time to start pushing it out to MSN&#39;s 100 million U.S. users.\n";
Link[1] = "http://redir.internet.com/rss/click/www.internetnews.com/webcontent/article.php/3869946";

Title[2] = "NoSQL Supporters Challenge Relational Databases";
Desc[2] = "Multiple open source projects based on a new approach to databases were discussed at this week&#39;s NoSQL Live conference. \n";
Link[2] = "http://redir.internet.com/rss/click/www.internetnews.com/dev-news/article.php/3869936";

Title[3] = "AMD Planning Netbook Chip for 2011";
Desc[3] = "After a long time on the sidelines, Intel rival AMD is getting into the netbook game with a dedicated chip designed specifically for computers with screens 12 inches or smaller.\n";
Link[3] = "http://redir.internet.com/rss/click/www.internetnews.com/hardware/article.php/3869921";

Title[4] = "Google Ready to Make China Decision";
Desc[4] = "CEO Eric Schmidt said the search giant is continuing discussions with the Chinese government that will determine whether it shuts down its operations there. \n";
Link[4] = "http://redir.internet.com/rss/click/www.internetnews.com/breakingnews/article.php/3869916";

Title[5] = "Lost Drive Puts National Guard Data at Risk";
Desc[5] = "Tens of thousands of Arkansas National Guard soldiers became the latest victims of a security breach at a military base after an unencrypted external hard drive was discovered missing last month.";
Link[5] = "http://redir.internet.com/rss/click/www.internetnews.com/security/article.php/3869896";

Title[6] = "Tech Stocks Rally Ten Years After Topping Out";
Desc[6] = "Ten years after the dot-com bubble burst, the Nasdaq still has a long way to go.";
Link[6] = "http://redir.internet.com/rss/click/www.internetnews.com/bus-news/article.php/3869886";

Title[7] = "Mariposa Bot Shipped With Vodafone Smartphone";
Desc[7] = "Panda Security discovered Confiker, Mariposa and Lineage password stealing malware samples installed on a recently purchased Vodafone HTC Magic smartphone.";
Link[7] = "http://redir.internet.com/rss/click/www.internetnews.com/security/article.php/3869871";

Title[8] = "IT Job Market Heating Up: Report";
Desc[8] = "A report by staffing and placement firm Robert Half International shows that while many companies are still taking a wait-and-see approach to new hires, there&#39;s general optimism in the IT sector.";
Link[8] = "http://redir.internet.com/rss/click/www.internetnews.com/bus-news/article.php/3869836";

Title[9] = "Bing Makes Strides But Momentum Stalls";
Desc[9] = "Microsoft&#39;s Bing search engine managed to gain market share again in February, but its success isn&#39;t exactly sending Google running for cover.";
Link[9] = "http://redir.internet.com/rss/click/www.internetnews.com/search/article.php/3869831";

Title[10] = "Microsoft Veteran Thacker Scores Turing Award";
Desc[10] = "Chuck Thacker, one of the found researchers of Xerox&#39;s Palo Alto Research Center, has received the Association for Computing Machinery&#39;s prestigious Turing Award.\n";
Link[10] = "http://redir.internet.com/rss/click/www.internetnews.com/hardware/article.php/3869811";

Title[11] = "Google Unveils Apps Marketplace";
Desc[11] = "Search giant debuts online shop for apps, expanding beyond its own App Engine to offer developers working in other frameworks an integration into the marketplace.\n";
Link[11] = "http://redir.internet.com/rss/click/www.internetnews.com/dev-news/article.php/3869771";

Title[12] = "MySpace Planning Site Revamp to Revive Growth";
Desc[12] = "Once the leader in the social networking space, MySpace has fallen on hard times of late. But a new executive team is betting it can bring the site back to life with a site overhaul and fresh developer talent.\n";
Link[12] = "http://redir.internet.com/rss/click/www.internetnews.com/breakingnews/article.php/3869766";

Title[13] = "U.S. Eyes Path to Press China on Internet Policy";
Desc[13] = "U.S. Trade Representative describes country&#39;s talks with Google and other companies, and raises the prospect of pursuing a WTO complaint against China over Internet restrictions.\n";
Link[13] = "http://redir.internet.com/rss/click/www.internetnews.com/breakingnews/article.php/3869751";

Title[14] = "Is Windows 7 Service Pack Coming in Q4?";
Desc[14] = "Malaysian tech enthusiast site TechArp claims its sources say Microsoft has moved up availability of the first service pack for Windows 7 - possibly to the end of this year.\n";
Link[14] = "http://redir.internet.com/rss/click/www.internetnews.com/software/article.php/3869716";

Title[15] = "Microsoft-Sponsored CodePlex Moves Ahead";
Desc[15] = "The non-profit open source foundation looks to show it&#39;s not just an extension of its main backer, Microsoft. \n";
Link[15] = "http://redir.internet.com/rss/click/www.internetnews.com/software/article.php/3869671";

Title[16] = "Microsoft Offering Software, Training for Vets";
Desc[16] = "Software giant pledges $2 million in cash and $6 million in software to help veterans acquire the skills and training to compete in a 21st century workforce.\n";
Link[16] = "http://redir.internet.com/rss/click/www.internetnews.com/software/article.php/3869651";

Title[17] = "Microsoft Patch Tuesday Includes IE Warning";
Desc[17] = "In the latest edition of its monthly security ritual, Microsoft patches two bugs, both deemed \"important,\" and issued an advisory about a flaw recently discovered in the Internet Explorer browser.\n";
Link[17] = "http://redir.internet.com/rss/click/www.internetnews.com/security/article.php/3869641";

Title[18] = "Apple&#39;s Flash Feast Could Crimp SSD Sales";
Desc[18] = "An article in DigiTimes shines the spotlight on an unintended consequence of Apple&#39;s success with devices like the iPhone, iPod and the pending release of the vaunted iPad.";
Link[18] = "http://redir.internet.com/rss/click/www.internetnews.com/hardware/article.php/3869636";

Title[19] = "Apple Seen Gearing Up for More Patent Fights";
Desc[19] = "Though it&#39;s not known for initiating patent lawsuits, Apple could be getting ready to more aggressively defend its intellectual property in the face of increasing competition from rival smartphone makers.\n";
Link[19] = "http://redir.internet.com/rss/click/www.internetnews.com/mobility/article.php/3869631";

} // end with block
