/*
* -------
* :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 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.MetaKeys = Array([5]);
this.MetaVals = Array([5]);
this.ShortListSize = 11;
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 = '\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)
{
var i,l;
if( this.is(msgCmd, "Title LinkTitle Desc Description Attrib Source Link LinkTitle DayN Day2N MonthN Month2N Year2N Year4N YearN Year Time Hour2N Minute2N ") ) {
return(1);
}
else if( this.is(msgCmd, "MetaCount") ) {
return(11);
}
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);
}
}
}
rss = new rss_JSMsg();
/* how slow is the with statement */
with( rss ) {
/* Meta values
*/
MetaKeys[0] = "MetaTitle";
MetaVals[0] = "eXtrapola.com - Italtrade Online press review";
MetaKeys[1] = "MetaLink";
MetaVals[1] = "http://www.extrapola.com";
MetaKeys[2] = "MetaLinkTitle";
MetaVals[2] = "eXtrapola.com - Italtrade Online press review";
MetaKeys[3] = "MetaUpdateDate";
MetaVals[3] = "20120130093009";
MetaKeys[4] = "MetaDesc";
MetaVals[4] = "Netclipping per ICE Italtrade";
/* content vaues:
*/
Title[0] = "Helping Their Country";
Desc[0] = "WWD.com - Mon, 30 Jan 2012 00:00:00 +0100";
Attrib[0] = "- \n Helping Their Country\n WWD.com - Mon, 30 Jan 2012 00:00:00 +0100\n http://www.wwd.com/fashion-news/fashion-scoops/helping-their-country-5582738?src=rss/fashion/20120130\n WWD.com\n Mon, 30 Jan 2012 00:00:00 +0100\n 76632579\n ";
Link[0] = "http://www.wwd.com/fashion-news/fashion-scoops/helping-their-country-5582738?src=rss/fashion/20120130";
DateN[0] = "20120130000000";
Title[1] = "Qatar Motor Show attracts more than 120,000 visitors";
Desc[1] = "AME Info - Sun, 29 Jan 2012 00:00:00 +0100";
Attrib[1] = "
- \n Qatar Motor Show attracts more than 120,000 visitors\n AME Info - Sun, 29 Jan 2012 00:00:00 +0100\n http://www.ameinfo.com/288403.html\n AME Info\n Sun, 29 Jan 2012 00:00:00 +0100\n 76602728\n ";
Link[1] = "http://www.ameinfo.com/288403.html";
DateN[1] = "20120129000000";
Title[2] = "Fashion Footwear feature: Cinzia Araia sneakers";
Desc[2] = "Examiner.com - Sat, 28 Jan 2012 00:00:00 +0100";
Attrib[2] = "
- \n Fashion Footwear feature: Cinzia Araia sneakers\n Examiner.com - Sat, 28 Jan 2012 00:00:00 +0100\n http://www.examiner.com/urban-fashion-in-new-york/fashion-footwear-feature-cinzia-araia-sneakers\n Examiner.com\n Sat, 28 Jan 2012 00:00:00 +0100\n 76534823\n ";
Link[2] = "http://www.examiner.com/urban-fashion-in-new-york/fashion-footwear-feature-cinzia-araia-sneakers";
DateN[2] = "20120128000000";
Title[3] = "Italy:CCSPET, a 100% Newlife fabric concept developed";
Desc[3] = "Fibre2fashion.com - Fri, 27 Jan 2012 00:00:00 +0100";
Attrib[3] = "
- \n Italy:CCSPET, a 100% Newlife fabric concept developed\n Fibre2fashion.com - Fri, 27 Jan 2012 00:00:00 +0100\n http://www.fibre2fashion.com/news/textile-news/newsdetails.aspx?news_id=107558\n Fibre2fashion.com\n Fri, 27 Jan 2012 00:00:00 +0100\n 76412982\n ";
Link[3] = "http://www.fibre2fashion.com/news/textile-news/newsdetails.aspx?news_id=107558";
DateN[3] = "20120127000000";
Title[4] = "Italy:Salvatore Ferragamo keeps its excellent growth in sales";
Desc[4] = "Fibre2fashion.com - Fri, 27 Jan 2012 00:00:00 +0100";
Attrib[4] = "
- \n Italy:Salvatore Ferragamo keeps its excellent growth in sales\n Fibre2fashion.com - Fri, 27 Jan 2012 00:00:00 +0100\n http://www.fibre2fashion.com/news/apparel-news/newsdetails.aspx?news_id=107543\n Fibre2fashion.com\n Fri, 27 Jan 2012 00:00:00 +0100\n 76413009\n ";
Link[4] = "http://www.fibre2fashion.com/news/apparel-news/newsdetails.aspx?news_id=107543";
DateN[4] = "20120127000000";
Title[5] = "An Italian job, well done";
Desc[5] = "Gulf Times - Thu, 26 Jan 2012 00:00:00 +0100";
Attrib[5] = "
- \n An Italian job, well done\n Gulf Times - Thu, 26 Jan 2012 00:00:00 +0100\n http://www.gulf-times.com/site/topics/article.asp?cu_no=2&item_no=483029&version=1&template_id=36&parent_id=16\n Gulf Times\n Thu, 26 Jan 2012 00:00:00 +0100\n 76204923\n ";
Link[5] = "http://www.gulf-times.com/site/topics/article.asp?cu_no=2&item_no=483029&version=1&template_id=36&parent_id=16";
DateN[5] = "20120126000000";
Title[6] = "Luxottica cheers flat European markets";
Desc[6] = "Fashion United - Thu, 26 Jan 2012 00:00:00 +0100";
Attrib[6] = "
- \n Luxottica cheers flat European markets\n Fashion United - Thu, 26 Jan 2012 00:00:00 +0100\n http://www.fashionunited.co.uk/fashion-news/design/luxottica-cheers-flat-european-markets-2012012613933\n Fashion United\n Thu, 26 Jan 2012 00:00:00 +0100\n 76295789\n ";
Link[6] = "http://www.fashionunited.co.uk/fashion-news/design/luxottica-cheers-flat-european-markets-2012012613933";
DateN[6] = "20120126000000";
Title[7] = "VN, Italy start visa exemption agreement";
Desc[7] = "VietNamNet Bridge - Wed, 25 Jan 2012 00:00:00 +0100";
Attrib[7] = "
- \n VN, Italy start visa exemption agreement\n VietNamNet Bridge - Wed, 25 Jan 2012 00:00:00 +0100\n http://english.vietnamnet.vn/en/travel/18087/vn--italy-start-visa-exemption-agreement.html\n VietNamNet Bridge\n Wed, 25 Jan 2012 00:00:00 +0100\n 76171653\n ";
Link[7] = "http://english.vietnamnet.vn/en/travel/18087/vn--italy-start-visa-exemption-agreement.html";
DateN[7] = "20120125000000";
Title[8] = "New Women\'s Fashion Line Launches in Palm Beach Gardens, Tuta Moda";
Desc[8] = "PR.com - Wed, 25 Jan 2012 00:00:00 +0100";
Attrib[8] = "
- \n New Women\'s Fashion Line Launches in Palm Beach Gardens, Tuta Moda\n PR.com - Wed, 25 Jan 2012 00:00:00 +0100\n http://www.pr.com/press-release/385589\n PR.com\n Wed, 25 Jan 2012 00:00:00 +0100\n 76172144\n ";
Link[8] = "http://www.pr.com/press-release/385589";
DateN[8] = "20120125000000";
Title[9] = "Ducati\'s museum and archives become a historical and cultural asset for the Emilia Romagna region";
Desc[9] = "Two wheels blog - Wed, 25 Jan 2012 00:00:00 +0100";
Attrib[9] = "
- \n Ducati\'s museum and archives become a historical and cultural asset for the Emilia Romagna region\n Two wheels blog - Wed, 25 Jan 2012 00:00:00 +0100\n http://www.twowheelsblog.com/post/8865/ducatis-museum-and-archives-become-a-historical-and-cultural-asset-for-the-emilia-romagna-region\n Two wheels blog\n Wed, 25 Jan 2012 00:00:00 +0100\n 76171135\n ";
Link[9] = "http://www.twowheelsblog.com/post/8865/ducatis-museum-and-archives-become-a-historical-and-cultural-asset-for-the-emilia-romagna-region";
DateN[9] = "20120125000000";
Title[10] = "Sourcing norms force brands to evaluate entry";
Desc[10] = "LiveMint - Mon, 23 Jan 2012 00:00:00 +0100";
Attrib[10] = "
- \n Sourcing norms force brands to evaluate entry\n LiveMint - Mon, 23 Jan 2012 00:00:00 +0100\n http://www.livemint.com/2012/01/23233416/Sourcing-norms-force-brands-to.html\n LiveMint\n Mon, 23 Jan 2012 00:00:00 +0100\n 75939247\n ";
Link[10] = "http://www.livemint.com/2012/01/23233416/Sourcing-norms-force-brands-to.html";
DateN[10] = "20120123000000";
} // end with block