/*
* -------
* :ATTRIBUTION NOTICE BEGINS
*
* The following JSMsg functions are:
*
* (C) Copyright 2002 - 2003, Creativyst, Inc.
* ALL RIGHTS RESERVED
*
* For more information go to:
* http://www.Creativyst.com
* or email:
* Support@Creativyst.com
*
* Licensed under the Open Software License version 1.1
*
* END ATTRIBUTION NOTICE:
* -------
* 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 its source.
*
*
*/
function rss_JSMsg() {
this.Title = Array([this.ShortListSize]);
this.Desc = Array([this.ShortListSize]);
this.Attrib = Array([this.ShortListSize]);
this.Link = Array([this.ShortListSize]);
this.DateN = Array([this.ShortListSize]);
this.ShortListSize = 5;
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)
{
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,"Year4N") ) {
return(this.DateN[msgNumber].substr(0,4));
}
return(this.DateN[msgNumber].substr(0,4));
}
}
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 = '\n';
myTmp = myTmp + this.Title[msgNumber] + '\n';
return(myTmp);
}
if( this.MetaMsg(msgPart,"Title") ) {
return(this.Title[msgNumber]);
}
if( this.MetaMsg(msgPart,"Link") ) {
if( this.Link[msgNumber] ) {
myTmp = "\n";
myTmp = myTmp + this.Link[msgNumber] + "\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)
{
if( this.is(msgCmd, "Title LinkTitle Desc Description Attrib Source Link LinkTitle DayN Day2N MonthN Month2N Year2N Year4N YearN Year ") ) {
return(1);
}
else if( this.is(msgCmd, "MetaCount") ) {
return(5);
}
else {
return(0);
}
}
}
rss = new rss_JSMsg();
/* how slow is the with statement */
with( rss ) {
Title[0] = "Gaddafi, Italy talk business";
Desc[0] = "Malaysia Sun - Mon, 30 Aug 2010 00:00:00 +0200";
Attrib[0] = "- Gaddafi, Italy talk businessMalaysia Sun - Mon, 30 Aug 2010 00:00:00 +0200http://story.malaysiasun.com/index.php/ct/9/cid/303b19022816233b/id/38209187/Malaysia SunMon, 30 Aug 2010 00:00:00 +0200http://story.malaysiasun.com/index.php/ct/9/cid/303b19022816233b/id/38209187/";
Link[0] = "http://story.malaysiasun.com/index.php/ct/9/cid/303b19022816233b/id/38209187/";
DateN[0] = "20100830";
Title[1] = "Seeing stars the Italian way";
Desc[1] = "China Daily - Sun, 29 Aug 2010 00:00:00 +0200";
Attrib[1] = "
- Seeing stars the Italian wayChina Daily - Sun, 29 Aug 2010 00:00:00 +0200http://www.chinadaily.com.cn/life/2010-08/29/content_11220224.htmChina DailySun, 29 Aug 2010 00:00:00 +0200http://www.chinadaily.com.cn/life/2010-08/29/content_11220224.htm";
Link[1] = "http://www.chinadaily.com.cn/life/2010-08/29/content_11220224.htm";
DateN[1] = "20100829";
Title[2] = "September to do list: eat Italian";
Desc[2] = "Examiner.com - Sun, 29 Aug 2010 00:00:00 +0200";
Attrib[2] = "
- September to do list: eat ItalianExaminer.com - Sun, 29 Aug 2010 00:00:00 +0200http://www.examiner.com/italian-food-in-washington-dc/september-to-do-list-eat-italianExaminer.comSun, 29 Aug 2010 00:00:00 +0200http://www.examiner.com/italian-food-in-washington-dc/september-to-do-list-eat-italian";
Link[2] = "http://www.examiner.com/italian-food-in-washington-dc/september-to-do-list-eat-italian";
DateN[2] = "20100829";
Title[3] = "Innovative chemicals for oil production; BASF presents its portfolio of oilfield chemicals at the Annual Technical Conference and Exhibition of the Society of Petroleum Engineers; Innovative products for drilling, extraction, stimulation of oil and gas flow, cementing of wells and tertiary oil recovery";
Desc[3] = "M2 - Fri, 27 Aug 2010 00:00:00 +0200";
Attrib[3] = "
- Innovative chemicals for oil production; BASF presents its portfolio of oilfield chemicals at the Annual Technical Conference and Exhibition of the Society of Petroleum Engineers; Innovative products for drilling, extraction, stimulation of oil and gas flow, cementing of wells and tertiary oil recoveryM2 - Fri, 27 Aug 2010 00:00:00 +0200http://www.m2.com/m2/web/story.php/201060B3AF31E4ACF5BD8025778C00433AE7/text/M2PWM2Fri, 27 Aug 2010 00:00:00 +0200http://www.m2.com/m2/web/story.php/201060B3AF31E4ACF5BD8025778C00433AE7/text/M2PW";
Link[3] = "http://www.m2.com/m2/web/story.php/201060B3AF31E4ACF5BD8025778C00433AE7/text/M2PW";
DateN[3] = "20100827";
Title[4] = "Cygam Energy Inc. Announces Filing of Second Quarter Financial Statements and MD&A and Provides an Update on Tunisian and Italian Permits";
Desc[4] = "Market Wire - Fri, 27 Aug 2010 00:00:00 +0200";
Attrib[4] = "
- Cygam Energy Inc. Announces Filing of Second Quarter Financial Statements and MD&A and Provides an Update on Tunisian and Italian PermitsMarket Wire - Fri, 27 Aug 2010 00:00:00 +0200http://www.marketwire.com/mw/release.do?id=1310576&sourceType=3Market WireFri, 27 Aug 2010 00:00:00 +0200http://www.marketwire.com/mw/release.do?id=1310576&sourceType=3";
Link[4] = "http://www.marketwire.com/mw/release.do?id=1310576&sourceType=3";
DateN[4] = "20100827";
} // end with block
headtitle='eXtrapola.com - Italtrade Online press review';