
/*
 * -------
 * :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-2010 Quin Street 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] = "Google, CIA Invest in Recorded Future";
Desc[0] = "The search giant is investing in a company that tries to predict the future by sophisticated scanning and analysis of thousands of websites. \n";
Link[0] = "http://redir.internet.com/rss/click/www.internetnews.com/search/article.php/3896156";

Title[1] = "New Public Cloud Storage Services Target IT";
Desc[1] = "Technology advances and lower costs make public cloud services a more attractive option for the enterprise.\n";
Link[1] = "http://redir.internet.com/rss/click/www.internetnews.com/storage/article.php/3896151";

Title[2] = "Beta Version of RIM&#39;s App World 2 Opens";
Desc[2] = "Announcement comes just days before a big event in New York where new phones and a new OS are also expected.\n";
Link[2] = "http://redir.internet.com/rss/click/www.internetnews.com/mobility/article.php/3896141";

Title[3] = "Research Highlights iPhone 4 Antenna Woes";
Desc[3] = "A new report from PA Consulting in England tests Apple&#39;s iPhone 4 alongside other smartphones, and finds that its antenna issues are worse than its peers.\n";
Link[3] = "http://redir.internet.com/rss/click/www.internetnews.com/mobility/article.php/3896136";

Title[4] = "Taking the Measure of the Twitter &#39;Crime Rate&#39;";
Desc[4] = "Researcher at Barracuda Networks has taken the measure of the \"crime rate\" on Twitter, which ranks somewhere in between e-mail and Facebook on the threat counter.\n";
Link[4] = "http://redir.internet.com/rss/click/www.internetnews.com/security/article.php/3896091";

Title[5] = "Researcher Warns of IE Auto-Complete Flaw";
Desc[5] = "At the Black Hat security conference, Whitehat Security CTO Jeremiah Grossman describes a browser flaw that could allow hackers to capture entries stored in Web forms.\n";
Link[5] = "http://redir.internet.com/rss/click/www.internetnews.com/security/article.php/3896081";

Title[6] = "Microsoft Racing Ahead With Slate PCs: Ballmer";
Desc[6] = "Addressing financial analysts at an annual company event, Microsoft CEO Steve Ballmer declared that slate computers are \"job one\" for the company.\n";
Link[6] = "http://redir.internet.com/rss/click/www.internetnews.com/mobility/article.php/3896026";

Title[7] = "Microsoft Boasts Top Spot in Cloud Race";
Desc[7] = "At the company&#39;s annual meeting with financial analysts, Microsoft COO Kevin Turner, boasts that the software giant is \"number one\" in cloud computing.\n";
Link[7] = "http://redir.internet.com/rss/click/www.internetnews.com/software/article.php/3896021";

Title[8] = "Aruba Taps Cloud to Secure Black Hat Wi-Fi";
Desc[8] = "Networking vendor Aruba goes mesh to secure the Black Hat wireless network, pitting its cloud-based security service against a notoriously hostile crowd.\n";
Link[8] = "http://redir.internet.com/rss/click/www.internetnews.com/security/article.php/3896016";

Title[9] = "Say What? The Week&#39;s Top Five IT Quotes";
Desc[9] = "Privacy concerns over Google and the CIA; HP&#39;s enterprise slate; why online gaming might help your career and more. \n";
Link[9] = "http://redir.internet.com/rss/click/www.internetnews.com/webcontent/article.php/3895901";

Title[10] = "U.S. General Details the Impact of Cyber War";
Desc[10] = "At the Black Hat security conference, retired General and former CIA director Michael Hayden explains the dangers of cyber attacks. \n";
Link[10] = "http://redir.internet.com/rss/click/www.internetnews.com/security/article.php/3895946";

Title[11] = "House Reps. Introduce Spectrum Auction Bill";
Desc[11] = "Lawmakers introduce voluntary incentive auction act that they hope will achieve a compromise between dueling interests.\n";
Link[11] = "http://redir.internet.com/rss/click/www.internetnews.com/government/article.php/3895941";

Title[12] = "DoJ Sues Oracle Claiming Contract Fraud";
Desc[12] = "Oracle became the latest technology company to feel the Justice Department&#39;s fury after it was hit with a lawsuit alleging it defrauded the federal government on a massive software contract.";
Link[12] = "http://redir.internet.com/rss/click/www.internetnews.com/software/article.php/3895936";

Title[13] = "Amazon Debuts New, Low Price Wi-Fi Kindle";
Desc[13] = "With the iPad on its heels, Amazon cuts the price of its newest e-book reader and adds Wi-Fi support.\n";
Link[13] = "http://redir.internet.com/rss/click/www.internetnews.com/mobility/article.php/3895931";

Title[14] = "Millions of Home Routers Insecure: Black Hat";
Desc[14] = "Security researcher at Black Hat conference warns that outside hackers can gain control of a home router and use it as an entry point to take over the LAN.\n";
Link[14] = "http://redir.internet.com/rss/click/www.internetnews.com/security/article.php/3895916";

Title[15] = "Researcher Warns Most Sites Get SSL Wrong";
Desc[15] = "At Black Hat, security researcher presents his latest work demonstrating the widespread misconfiguration of websites that implement SSL protection.\n";
Link[15] = "http://redir.internet.com/rss/click/www.internetnews.com/security/article.php/3895891";

Title[16] = "Report Details Hottest IT Investments";
Desc[16] = "Windows 7, desktop virtualization and unified computing lead the pack in Computer Economics&#39; report. But investment in some other well-known technologies is stalled.  \n";
Link[16] = "http://redir.internet.com/rss/click/www.internetnews.com/software/article.php/3895881";

Title[17] = "Dell Offers New Security for the Midmarket";
Desc[17] = "New products and services are aimed at medium-sized companies that can&#39;t afford enterprise-class security.\n\n";
Link[17] = "http://redir.internet.com/rss/click/www.internetnews.com/security/article.php/3895876";

Title[18] = "Authorities Nab Mariposa Botnet Kit Purveyor";
Desc[18] = "A 23-year-old man was arrested last week in Slovenia for allegedly creating and selling the Butterfly botnet kit used to spread the loathsome Mariposa botnet.";
Link[18] = "http://redir.internet.com/rss/click/www.internetnews.com/security/article.php/3895866";

Title[19] = "Citrix Soars as Symantec, Nvidia Plunge";
Desc[19] = "Technology earnings reports have been mixed so far this quarter.";
Link[19] = "http://redir.internet.com/rss/click/www.internetnews.com/bus-news/article.php/3895861";

} // end with block
