var org = {p3k: ({url:"http://rss.news.yahoo.com/rss/business", xml:"<?xml version=\"1.0\" encoding=\"iso-8859-1\" ?>\n<rss version=\"2.0\" xmlns:media=\"http://search.yahoo.com/mrss/\" xmlns:ynews=\"http://news.yahoo.com/rss/\">\n<channel>\n<title>Yahoo! News: Business News</title>\n<copyright>Copyright (c) 2010 Yahoo! Inc. All rights reserved.</copyright>\n<link>http://news.yahoo.com/business</link>\n<category>business</category>\n<description>Business News</description>\n<language>en-us</language> \n<lastBuildDate>Mon, 06 Sep 2010 00:54:06 GMT</lastBuildDate>\n<ttl>5</ttl> \n<image>\n<title>Yahoo! News</title>\n<width>142</width>\n<height>18</height>\n<link>http://news.yahoo.com/business</link>\n<url>http://l.yimg.com/a/i/us/nws/th/main_142c.gif</url>\n</image>\n<item>\n<title>What might make the Fed flinch? \n    (Reuters)\n</title>\n <link>http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/nm/20100905/bs_nm/us_economy_weekahead_outlook</link>\n <guid isPermaLink=\"false\">nm/20100905/us_economy_weekahead_outlook</guid>\n<source>Reuters</source>\n<category>business</category>\n<pubDate>Sun, 05 Sep 2010 19:54:49 GMT</pubDate>\n<description>&#60;p>&#60;a href=\"http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/nm/20100905/bs_nm/us_economy_weekahead_outlook\">&#60;img src=\"http://d.yimg.com/a/p/rids/20100905/i/r1667962881.jpg?x=130&amp;y=88&amp;q=85&amp;sig=phj5Glvo91o1N3mzu50Wtw--\" align=\"left\" height=\"88\" width=\"130\" alt=\"Federal Reserve Board Chairman Ben Bernanke makes his way through the Dirkson building hallway after a Financial Crisis Inquiry Commission hearing on &quot;Too Big to Fail: Expectations and Impact of Extraordinary Government Intervention and the role of Systemic Risk in the Financial Crisis,&quot; on Capitol Hill in Washington September 2, 2010. REUTERS/Molly Riley\" border=\"0\" />&#60;/a>Reuters - The U.S. economy appears to be trudging along, neither booming nor busting, growing steadily enough to diminish double-dip recession fears but not quickly enough to bring down unemployment.&#60;/p>&#60;br clear=\"all\"/></description>\n<media:content url=\"http://d.yimg.com/a/p/rids/20100905/i/r1667962881.jpg?x=130&amp;y=88&amp;q=85&amp;sig=phj5Glvo91o1N3mzu50Wtw--\" type=\"image/jpeg\" height=\"88\" width=\"130\"/>\n<media:text type=\"html\">&#60;p>&#60;a href=\"http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/nm/20100905/bs_nm/us_economy_weekahead_outlook\">&#60;img src=\"http://d.yimg.com/a/p/rids/20100905/i/r1667962881.jpg?x=130&amp;y=88&amp;q=85&amp;sig=phj5Glvo91o1N3mzu50Wtw--\" align=\"left\" height=\"88\" width=\"130\" alt=\"photo\" title=\"Federal Reserve Board Chairman Ben Bernanke makes his way through the Dirkson building hallway after a Financial Crisis Inquiry Commission hearing on &quot;Too Big to Fail: Expectations and Impact of Extraordinary Government Intervention and the role of Systemic Risk in the Financial Crisis,&quot; on Capitol Hill in Washington September 2, 2010. REUTERS/Molly Riley\" border=\"0\"/>&#60;/a>&#60;/p>&#60;br clear=\"all\"/></media:text>\n<media:credit role=\"publishing company\">(Reuters)</media:credit>\n</item>\n<item>\n<title>IMF&#39;s Lipsky says moderate world recovery underway \n    (Reuters)\n</title>\n <link>http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/nm/20100905/bs_nm/us_g20_economy_lipsky</link>\n <guid isPermaLink=\"false\">nm/20100905/us_g20_economy_lipsky</guid>\n<source>Reuters</source>\n<category>business</category>\n<pubDate>Sun, 05 Sep 2010 05:07:07 GMT</pubDate>\n<description>&#60;p>&#60;a href=\"http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/nm/20100905/bs_nm/us_g20_economy_lipsky\">&#60;img src=\"http://d.yimg.com/a/p/rids/20100905/i/r1231400107.jpg?x=130&amp;y=97&amp;q=85&amp;sig=.Lbi6sCksYwbLULiamwR0Q--\" align=\"left\" height=\"97\" width=\"130\" alt=\"John Lipsky, the International Monetary Fund&#39;s first deputy managing director, answers a reporter&#39;s question after the meeting of G20 finance and central bank deputies in Gwangju, south of Seoul, September 5, 2010. REUTERS/Lee Jae-Won\" border=\"0\" />&#60;/a>Reuters - The world economy is recovering moderately but still faces challenges such as the need for medium-term fiscal consolidation, the IMF&#39;s First Managing Director, John Lipsky, said on Sunday.&#60;/p>&#60;br clear=\"all\"/></description>\n<media:content url=\"http://d.yimg.com/a/p/rids/20100905/i/r1231400107.jpg?x=130&amp;y=97&amp;q=85&amp;sig=.Lbi6sCksYwbLULiamwR0Q--\" type=\"image/jpeg\" height=\"97\" width=\"130\"/>\n<media:text type=\"html\">&#60;p>&#60;a href=\"http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/nm/20100905/bs_nm/us_g20_economy_lipsky\">&#60;img src=\"http://d.yimg.com/a/p/rids/20100905/i/r1231400107.jpg?x=130&amp;y=97&amp;q=85&amp;sig=.Lbi6sCksYwbLULiamwR0Q--\" align=\"left\" height=\"97\" width=\"130\" alt=\"photo\" title=\"John Lipsky, the International Monetary Fund&#39;s first deputy managing director, answers a reporter&#39;s question after the meeting of G20 finance and central bank deputies in Gwangju, south of Seoul, September 5, 2010. REUTERS/Lee Jae-Won\" border=\"0\"/>&#60;/a>&#60;/p>&#60;br clear=\"all\"/></media:text>\n<media:credit role=\"publishing company\">(Reuters)</media:credit>\n</item>\n<item>\n<title>China allows insurers to invest in private equity, real estate \n    (Reuters)\n</title>\n <link>http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/nm/20100906/bs_nm/us_insurance_investment</link>\n <guid isPermaLink=\"false\">nm/20100906/us_insurance_investment</guid>\n<source>Reuters</source>\n<category>business</category>\n<pubDate>Mon, 06 Sep 2010 00:45:39 GMT</pubDate>\n<description>Reuters - China will allow insurers to broaden investment channels into private equity and real estate, a move that could unleash as much as $100 billion worth of fresh funding into unlisted firms and the property sector.</description>\n</item>\n<item>\n<title>BP restarts sale of Alaskan assets: report \n    (Reuters)\n</title>\n <link>http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/nm/20100906/bs_nm/us_bp_alaska_assets</link>\n <guid isPermaLink=\"false\">nm/20100906/us_bp_alaska_assets</guid>\n<source>Reuters</source>\n<category>business</category>\n<pubDate>Mon, 06 Sep 2010 00:54:06 GMT</pubDate>\n<description>Reuters - BP  has revived the sale of its Alaskan assets after failing to offload them to U.S. oil and gas company Apache  in July, the Financial Times reported on Monday.</description>\n</item>\n<item>\n<title>Taxpayers may face initial loss on GM IPO: sources \n    (Reuters)\n</title>\n <link>http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/nm/20100905/bs_nm/us_gm_ipo</link>\n <guid isPermaLink=\"false\">nm/20100905/us_gm_ipo</guid>\n<source>Reuters</source>\n<category>business</category>\n<pubDate>Sun, 05 Sep 2010 15:00:05 GMT</pubDate>\n<description>&#60;p>&#60;a href=\"http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/nm/20100905/bs_nm/us_gm_ipo\">&#60;img src=\"http://d.yimg.com/a/p/ap/20100903/capt.03546a1f0f8844abaa9740d98f4037df-03546a1f0f8844abaa9740d98f4037df-0.jpg?x=92&amp;y=130&amp;q=85&amp;sig=KJF.NTF2KYNqnmpbK4GJ8A--\" align=\"left\" height=\"130\" width=\"92\" alt=\"FILE - In this June 13, 2010 file photo, Tim Allen arrives at the world premiere of &#039;Toy Story 3,&#039; at The El Capitan Theater in Los Angeles. General Motors Co. said Friday, Sept. 3, 2010, Tim Allen will be a spokesman for the brand and will star in a series of TV ads for the 2011 Chevrolet Cruze that begin airing on Tuesday. (AP Photo/Katy Winn, file)\" border=\"0\" />&#60;/a>Reuters - The U.S. government is likely to take a loss on General Motors Co in the first offering of the automaker&#39;s stock, six people familiar with preparations for the landmark IPO said.&#60;/p>&#60;br clear=\"all\"/></description>\n<media:content url=\"http://d.yimg.com/a/p/ap/20100903/capt.03546a1f0f8844abaa9740d98f4037df-03546a1f0f8844abaa9740d98f4037df-0.jpg?x=92&amp;y=130&amp;q=85&amp;sig=KJF.NTF2KYNqnmpbK4GJ8A--\" type=\"image/jpeg\" height=\"130\" width=\"92\"/>\n<media:text type=\"html\">&#60;p>&#60;a href=\"http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/nm/20100905/bs_nm/us_gm_ipo\">&#60;img src=\"http://d.yimg.com/a/p/ap/20100903/capt.03546a1f0f8844abaa9740d98f4037df-03546a1f0f8844abaa9740d98f4037df-0.jpg?x=92&amp;y=130&amp;q=85&amp;sig=KJF.NTF2KYNqnmpbK4GJ8A--\" align=\"left\" height=\"130\" width=\"92\" alt=\"photo\" title=\"FILE - In this June 13, 2010 file photo, Tim Allen arrives at the world premiere of &#039;Toy Story 3,&#039; at The El Capitan Theater in Los Angeles. General Motors Co. said Friday, Sept. 3, 2010, Tim Allen will be a spokesman for the brand and will star in a series of TV ads for the 2011 Chevrolet Cruze that begin airing on Tuesday. (AP Photo/Katy Winn, file)\" border=\"0\"/>&#60;/a>&#60;/p>&#60;br clear=\"all\"/></media:text>\n<media:credit role=\"publishing company\">(Reuters)</media:credit>\n</item>\n<item>\n<title>&quot;Quote stuffing&quot; a focus in flash crash probe \n    (Reuters)\n</title>\n <link>http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/nm/20100902/bs_nm/us_sec_trades</link>\n <guid isPermaLink=\"false\">nm/20100902/us_sec_trades</guid>\n<source>Reuters</source>\n<category>business</category>\n<pubDate>Thu, 02 Sep 2010 19:23:36 GMT</pubDate>\n<description>&#60;p>&#60;a href=\"http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/nm/20100902/bs_nm/us_sec_trades\">&#60;img src=\"http://d.yimg.com/a/p/afp/20100901/capt.photo_1283334393446-1-0.jpg?x=130&amp;y=86&amp;q=85&amp;sig=F7Qv8VNVH5gQzhX67ms5Vw--\" align=\"left\" height=\"86\" width=\"130\" alt=\"Traders at the New York Stock Exchange on August 31. Asian and European stocks were rising, lifted by bargain-hunting and upbeat data, as dealers set aside Wall Street&#39;s worst August performance in nine years amid stubborn US recovery doubts.(AFP/Getty Images/Spencer Platt)\" border=\"0\" />&#60;/a>Reuters - U.S. regulators probing the May flash crash are focusing on a trading practice known as &quot;quote stuffing&quot;, in which large numbers of rapid-fire orders to buy or sell stocks are placed and canceled almost immediately.&#60;/p>&#60;br clear=\"all\"/></description>\n<media:content url=\"http://d.yimg.com/a/p/afp/20100901/capt.photo_1283334393446-1-0.jpg?x=130&amp;y=86&amp;q=85&amp;sig=F7Qv8VNVH5gQzhX67ms5Vw--\" type=\"image/jpeg\" height=\"86\" width=\"130\"/>\n<media:text type=\"html\">&#60;p>&#60;a href=\"http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/nm/20100902/bs_nm/us_sec_trades\">&#60;img src=\"http://d.yimg.com/a/p/afp/20100901/capt.photo_1283334393446-1-0.jpg?x=130&amp;y=86&amp;q=85&amp;sig=F7Qv8VNVH5gQzhX67ms5Vw--\" align=\"left\" height=\"86\" width=\"130\" alt=\"photo\" title=\"Traders at the New York Stock Exchange on August 31. Asian and European stocks were rising, lifted by bargain-hunting and upbeat data, as dealers set aside Wall Street&#39;s worst August performance in nine years amid stubborn US recovery doubts.(AFP/Getty Images/Spencer Platt)\" border=\"0\"/>&#60;/a>&#60;/p>&#60;br clear=\"all\"/></media:text>\n<media:credit role=\"publishing company\">(Reuters)</media:credit>\n</item>\n<item>\n<title>G20 members agree economic recovery to continue \n    (Reuters)\n</title>\n <link>http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/nm/20100904/bs_nm/us_g20_economy</link>\n <guid isPermaLink=\"false\">nm/20100904/us_g20_economy</guid>\n<source>Reuters</source>\n<category>business</category>\n<pubDate>Sat, 04 Sep 2010 12:53:17 GMT</pubDate>\n<description>Reuters - G20 delegates agreed on Saturday global economic recovery would endure although the speed of expansion may slow, a South Korean official said.</description>\n</item>\n<item>\n<title>Campbell reports Q4 profit rise on better margins \n    (AP)\n</title>\n <link>http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/ap/20100903/ap_on_bi_ge/us_earns_campbell_soup</link>\n <guid isPermaLink=\"false\">ap/20100903/us_earns_campbell_soup</guid>\n<source>AP</source>\n<category>business</category>\n<pubDate>Fri, 03 Sep 2010 20:48:36 GMT</pubDate>\n<description>&#60;p>&#60;a href=\"http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/ap/20100903/ap_on_bi_ge/us_earns_campbell_soup\">&#60;img src=\"http://d.yimg.com/a/p/ap/20100903/capt.5081492f7662453a96309ac0365e5ec3-5081492f7662453a96309ac0365e5ec3-0.jpg?x=130&amp;y=86&amp;q=85&amp;sig=Y3QIGAHf_ZRiJ0UNd_iPQA--\" align=\"left\" height=\"86\" width=\"130\" alt=\"In this June 19, 2010 photograph, people walk along inside the new building at the Campbell Soup Co. headquarters, in Camden, N.J.  The Campbell Soup Co. said Friday, Sept. 3, 2010, it made a profit of $113, or 33 cents per share during the fourth fiscal quarter, when the temperature rises and its soup sales traditionally drop.  (AP Photo/Mel Evans)\" border=\"0\" />&#60;/a>AP - Summer is rarely a hot sales season for Campbell Soup Co., and this year&#039;s sweltering June and July made that even more true, but the company said Friday that cost-cutting and strong drink sales helped its net income climb.&#60;/p>&#60;br clear=\"all\"/></description>\n<media:content url=\"http://d.yimg.com/a/p/ap/20100903/capt.5081492f7662453a96309ac0365e5ec3-5081492f7662453a96309ac0365e5ec3-0.jpg?x=130&amp;y=86&amp;q=85&amp;sig=Y3QIGAHf_ZRiJ0UNd_iPQA--\" type=\"image/jpeg\" height=\"86\" width=\"130\"/>\n<media:text type=\"html\">&#60;p>&#60;a href=\"http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/ap/20100903/ap_on_bi_ge/us_earns_campbell_soup\">&#60;img src=\"http://d.yimg.com/a/p/ap/20100903/capt.5081492f7662453a96309ac0365e5ec3-5081492f7662453a96309ac0365e5ec3-0.jpg?x=130&amp;y=86&amp;q=85&amp;sig=Y3QIGAHf_ZRiJ0UNd_iPQA--\" align=\"left\" height=\"86\" width=\"130\" alt=\"photo\" title=\"In this June 19, 2010 photograph, people walk along inside the new building at the Campbell Soup Co. headquarters, in Camden, N.J.  The Campbell Soup Co. said Friday, Sept. 3, 2010, it made a profit of $113, or 33 cents per share during the fourth fiscal quarter, when the temperature rises and its soup sales traditionally drop.  (AP Photo/Mel Evans)\" border=\"0\"/>&#60;/a>&#60;/p>&#60;br clear=\"all\"/></media:text>\n<media:credit role=\"publishing company\">(AP)</media:credit>\n</item>\n<item>\n<title>Trichet calls for united EU at the IMF \n    (AFP)\n</title>\n <link>http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/afp/20100904/bs_afp/economyfinanceecbimf</link>\n <guid isPermaLink=\"false\">afp/20100904/economyfinanceecbimf</guid>\n<source>AFP</source>\n<category>business</category>\n<pubDate>Sat, 04 Sep 2010 17:58:55 GMT</pubDate>\n<description>&#60;p>&#60;a href=\"http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/afp/20100904/bs_afp/economyfinanceecbimf\">&#60;img src=\"http://d.yimg.com/a/p/afp/20100904/capt.photo_1283623121705-1-0.jpg?x=130&amp;y=89&amp;q=85&amp;sig=lF6Owx.C7kzFQUJwUB2zcw--\" align=\"left\" height=\"89\" width=\"130\" alt=\"Jean-Claude Trichet, Governor of the European Central Bank, gives a press conference at the Ambrosetti Forum at the Villa d&#39;Este hotel in Cernobbio on the Como Lake, northern Milan. European Central Bank chief Jean-Claude Trichet called Saturday for Europe to hold a united position on refomin the International Monetary Fund.(AFP/Olivier Morin)\" border=\"0\" />&#60;/a>AFP - European Central Bank chief Jean-Claude Trichet called Saturday for Europe to hold a united position on refomin the International Monetary Fund.&#60;/p>&#60;br clear=\"all\"/></description>\n<media:content url=\"http://d.yimg.com/a/p/afp/20100904/capt.photo_1283623121705-1-0.jpg?x=130&amp;y=89&amp;q=85&amp;sig=lF6Owx.C7kzFQUJwUB2zcw--\" type=\"image/jpeg\" height=\"89\" width=\"130\"/>\n<media:text type=\"html\">&#60;p>&#60;a href=\"http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/afp/20100904/bs_afp/economyfinanceecbimf\">&#60;img src=\"http://d.yimg.com/a/p/afp/20100904/capt.photo_1283623121705-1-0.jpg?x=130&amp;y=89&amp;q=85&amp;sig=lF6Owx.C7kzFQUJwUB2zcw--\" align=\"left\" height=\"89\" width=\"130\" alt=\"photo\" title=\"Jean-Claude Trichet, Governor of the European Central Bank, gives a press conference at the Ambrosetti Forum at the Villa d&#39;Este hotel in Cernobbio on the Como Lake, northern Milan. European Central Bank chief Jean-Claude Trichet called Saturday for Europe to hold a united position on refomin the International Monetary Fund.(AFP/Olivier Morin)\" border=\"0\"/>&#60;/a>&#60;/p>&#60;br clear=\"all\"/></media:text>\n<media:credit role=\"publishing company\">(AFP)</media:credit>\n</item>\n<item>\n<title>Petrobras sells 64 bln dlrs of stock to fund oil exploration \n    (AFP)\n</title>\n <link>http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/afp/20100903/bs_afp/brazileconomyoilindustrystocks</link>\n <guid isPermaLink=\"false\">afp/20100903/brazileconomyoilindustrystocks</guid>\n<source>AFP</source>\n<category>business</category>\n<pubDate>Fri, 03 Sep 2010 20:57:08 GMT</pubDate>\n<description>&#60;p>&#60;a href=\"http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/afp/20100903/bs_afp/brazileconomyoilindustrystocks\">&#60;img src=\"http://d.yimg.com/a/p/afp/20100903/capt.photo_1283519709697-1-0.jpg?x=88&amp;y=130&amp;q=85&amp;sig=DEWTox5f8omu6a5vk6zi2Q--\" align=\"left\" height=\"130\" width=\"88\" alt=\"An oil platform off the coast of Brazil. Brazil&#39;s Petrobras unveiled one of the world&#39;s biggest share offerings Friday, a sale of up to 64 billion dollars in new stock to finance oil exploration aimed at turning Brazil into a leading oil exporter of the 21st century.(AFP/File/Antonio Scorza)\" border=\"0\" />&#60;/a>AFP - Brazil&#39;s Petrobras unveiled one of the world&#39;s biggest share offerings Friday, a sale of up to 64 billion dollars in new stock to finance oil exploration aimed at turning Brazil into a leading oil exporter of the 21st century.&#60;/p>&#60;br clear=\"all\"/></description>\n<media:content url=\"http://d.yimg.com/a/p/afp/20100903/capt.photo_1283519709697-1-0.jpg?x=88&amp;y=130&amp;q=85&amp;sig=DEWTox5f8omu6a5vk6zi2Q--\" type=\"image/jpeg\" height=\"130\" width=\"88\"/>\n<media:text type=\"html\">&#60;p>&#60;a href=\"http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/afp/20100903/bs_afp/brazileconomyoilindustrystocks\">&#60;img src=\"http://d.yimg.com/a/p/afp/20100903/capt.photo_1283519709697-1-0.jpg?x=88&amp;y=130&amp;q=85&amp;sig=DEWTox5f8omu6a5vk6zi2Q--\" align=\"left\" height=\"130\" width=\"88\" alt=\"photo\" title=\"An oil platform off the coast of Brazil. Brazil&#39;s Petrobras unveiled one of the world&#39;s biggest share offerings Friday, a sale of up to 64 billion dollars in new stock to finance oil exploration aimed at turning Brazil into a leading oil exporter of the 21st century.(AFP/File/Antonio Scorza)\" border=\"0\"/>&#60;/a>&#60;/p>&#60;br clear=\"all\"/></media:text>\n<media:credit role=\"publishing company\">(AFP)</media:credit>\n</item>\n<item>\n<title>Debt levels should fall after pre-crisis jump: BIS \n    (Reuters)\n</title>\n <link>http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/nm/20100905/bs_nm/us_bis_debt</link>\n <guid isPermaLink=\"false\">nm/20100905/us_bis_debt</guid>\n<source>Reuters</source>\n<category>business</category>\n<pubDate>Sun, 05 Sep 2010 19:03:17 GMT</pubDate>\n<description>Reuters - Debt levels that ran up ahead of the financial crisis have shown only a modest decline since and are likely to fall sharply in the coming years, a study said.</description>\n</item>\n<item>\n<title>Venezuela OKs payment for French retailer Casino \n    (Reuters)\n</title>\n <link>http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/nm/20100904/bs_nm/us_venezuela_retail_casino</link>\n <guid isPermaLink=\"false\">nm/20100904/us_venezuela_retail_casino</guid>\n<source>Reuters</source>\n<category>business</category>\n<pubDate>Sat, 04 Sep 2010 21:09:56 GMT</pubDate>\n<description>Reuters - Venezuelan President Hugo Chavez has approved a $690 million payment to French retailer Casino and other owners of a supermarket chain nationalized earlier this year, state media said on Saturday.</description>\n</item>\n<item>\n<title>MGIC added $1.2B in mortgage coverage in August \n    (AP)\n</title>\n <link>http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/ap/20100903/ap_on_bi_ge/us_mgic_mortgages</link>\n <guid isPermaLink=\"false\">ap/20100903/us_mgic_mortgages</guid>\n<source>AP</source>\n<category>business</category>\n<pubDate>Fri, 03 Sep 2010 18:50:41 GMT</pubDate>\n<description>AP - Private mortgage insurer Mortgage Guaranty Insurance Corp. said Friday it added $1.2 billion in new primary insurance coverage in August and the number of delinquent loans it insures declined.</description>\n</item>\n<item>\n<title>Key oil spill evidence raised to Gulf&#039;s surface \n    (AP)\n</title>\n <link>http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/ap/20100905/ap_on_bi_ge/us_gulf_oil_spill</link>\n <guid isPermaLink=\"false\">ap/20100905/us_gulf_oil_spill</guid>\n<source>AP</source>\n<category>science</category>\n<pubDate>Sun, 05 Sep 2010 17:25:15 GMT</pubDate>\n<description>&#60;p>&#60;a href=\"http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/ap/20100905/ap_on_bi_ge/us_gulf_oil_spill\">&#60;img src=\"http://d.yimg.com/a/p/ap/20100905/capt.5444adeaa9f74e9a9fa6fca0f30a2690-5444adeaa9f74e9a9fa6fca0f30a2690-0.jpg?x=130&amp;y=91&amp;q=85&amp;sig=H6d_xK_12.0HoaRV3y064A--\" align=\"left\" height=\"91\" width=\"130\" alt=\"In this Sept. 4, 2010 picture, the Helix Q4000, bottom, the vessel responsible for lifting the Deepwater Horizon blowout preventer stack from the sea floor, is seen on the Gulf of Mexico near the coast of Louisiana. (AP Photo/Patrick Semansky)\" border=\"0\" />&#60;/a>AP - Investigators looking into what went wrong in the Gulf of Mexico oil spill are a step closer to answers now that a key piece of evidence is secure aboard a ship.&#60;/p>&#60;br clear=\"all\"/></description>\n<media:content url=\"http://d.yimg.com/a/p/ap/20100905/capt.5444adeaa9f74e9a9fa6fca0f30a2690-5444adeaa9f74e9a9fa6fca0f30a2690-0.jpg?x=130&amp;y=91&amp;q=85&amp;sig=H6d_xK_12.0HoaRV3y064A--\" type=\"image/jpeg\" height=\"91\" width=\"130\"/>\n<media:text type=\"html\">&#60;p>&#60;a href=\"http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/ap/20100905/ap_on_bi_ge/us_gulf_oil_spill\">&#60;img src=\"http://d.yimg.com/a/p/ap/20100905/capt.5444adeaa9f74e9a9fa6fca0f30a2690-5444adeaa9f74e9a9fa6fca0f30a2690-0.jpg?x=130&amp;y=91&amp;q=85&amp;sig=H6d_xK_12.0HoaRV3y064A--\" align=\"left\" height=\"91\" width=\"130\" alt=\"photo\" title=\"In this Sept. 4, 2010 picture, the Helix Q4000, bottom, the vessel responsible for lifting the Deepwater Horizon blowout preventer stack from the sea floor, is seen on the Gulf of Mexico near the coast of Louisiana. (AP Photo/Patrick Semansky)\" border=\"0\"/>&#60;/a>&#60;/p>&#60;br clear=\"all\"/></media:text>\n<media:credit role=\"publishing company\">(AP)</media:credit>\n</item>\n<item>\n<title>McCain Hits Democrats for &#39;Flailing Around&#39; on Economy \n    (CQPolitics.com)\n</title>\n <link>http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/cq/20100905/pl_cq_politics/politics000003728936</link>\n <guid isPermaLink=\"false\">cq/20100905/politics000003728936</guid>\n<source>CQPolitics.com</source>\n<category>business</category>\n<pubDate>Sun, 05 Sep 2010 17:28:49 GMT</pubDate>\n<description>CQPolitics.com - Leading voices in both parties sparred Sunday over the state of the economy and the role that Bush tax cuts should play in the recovery.</description>\n</item>\n<item>\n<title>Suzuki to build new auto plant in India \n    (AFP)\n</title>\n <link>http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/afp/20100905/bs_afp/japanindiaautocompanysuzuki</link>\n <guid isPermaLink=\"false\">afp/20100905/japanindiaautocompanysuzuki</guid>\n<source>AFP</source>\n<category>business</category>\n<pubDate>Sun, 05 Sep 2010 07:19:41 GMT</pubDate>\n<description>&#60;p>&#60;a href=\"http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/afp/20100905/bs_afp/japanindiaautocompanysuzuki\">&#60;img src=\"http://d.yimg.com/a/p/afp/20100905/capt.photo_1283662515549-1-0.jpg?x=130&amp;y=83&amp;q=85&amp;sig=fzOSqcuG.R9kFz2h7N.BDA--\" align=\"left\" height=\"83\" width=\"130\" alt=\"Japan&#39;s top minicar maker Suzuki Motor Corp. is to build a new auto assembly plant near the Indian capital New Delhi in a bid to meet growing demand in the country, a newspaper reported on Sunday.(AFP/Gabriel Bouys)\" border=\"0\" />&#60;/a>AFP - Japan&#39;s top minicar maker Suzuki Motor Corp. is to build a new auto assembly plant near the Indian capital New Delhi in a bid to meet growing demand in the country, a newspaper reported on Sunday.&#60;/p>&#60;br clear=\"all\"/></description>\n<media:content url=\"http://d.yimg.com/a/p/afp/20100905/capt.photo_1283662515549-1-0.jpg?x=130&amp;y=83&amp;q=85&amp;sig=fzOSqcuG.R9kFz2h7N.BDA--\" type=\"image/jpeg\" height=\"83\" width=\"130\"/>\n<media:text type=\"html\">&#60;p>&#60;a href=\"http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/afp/20100905/bs_afp/japanindiaautocompanysuzuki\">&#60;img src=\"http://d.yimg.com/a/p/afp/20100905/capt.photo_1283662515549-1-0.jpg?x=130&amp;y=83&amp;q=85&amp;sig=fzOSqcuG.R9kFz2h7N.BDA--\" align=\"left\" height=\"83\" width=\"130\" alt=\"photo\" title=\"Japan&#39;s top minicar maker Suzuki Motor Corp. is to build a new auto assembly plant near the Indian capital New Delhi in a bid to meet growing demand in the country, a newspaper reported on Sunday.(AFP/Gabriel Bouys)\" border=\"0\"/>&#60;/a>&#60;/p>&#60;br clear=\"all\"/></media:text>\n<media:credit role=\"publishing company\">(AFP)</media:credit>\n</item>\n<item>\n<title>Crafting a Career in Eco-Chic Jewelry \n    (BusinessWeek)\n</title>\n <link>http://us.rd.yahoo.com/dailynews/rss/business/*http://news.yahoo.com/s/bw/20100903/bs_bw/sep2010sb2010092589904</link>\n <guid isPermaLink=\"false\">bw/20100903/sep2010sb2010092589904</guid>\n<source>BusinessWeek</source>\n<category>business</category>\n<pubDate>Fri, 03 Sep 2010 12:08:42 GMT</pubDate>\n<description>BusinessWeek - Goldman Sachs  may not have a lot of friends in the White House these days, but one of its former employees has made a good impression. After three years as an analyst in Goldman&#39;s fixed-income, currencies, and commodities division, Monique Pean began her own jewelry line that can now be found in Barneys, Jeffrey New York, and around the neck of Michelle Obama.</description>\n</item>\n</channel>\n</rss>\n<!-- server api9.sub.news.sp1.yahoo.com -->\n", message:undefined, modified:(new Date(1283745310211)), baseUri:"http://p3k.org/rss/", query:"frameColor=black&textColor=black&_=1213976424843&titleBarColor=lightblue&compact=&fontFace=&align=left&showXmlButton=true&maxItems=10&boxFillColor=white&undefined=&titleBarTextColor=black&width=650&url=http://rss.news.yahoo.com/rss/business&", param:{textColor:"black", width:"650", align:"left", fontFace:"", url:"http://rss.news.yahoo.com/rss/business", compact:"", frameColor:"black", showXmlButton:"true", undefined:"", boxFillColor:"white", _:"1213976424843", titleBarColor:"lightblue", maxItems:"10", titleBarTextColor:"black"}, box:"<table class=\"rssBox\" width=\"${width}\" bgcolor=\"${frameColor}\" \n      style=\"table-layout: fixed; overflow: hidden; font-family: ${fontFace};\" \n      align=\"${align}\" cellspacing=\"1\" cellpadding=\"7\" border=\"0\">\n<tr bgcolor=\"${titleBarColor}\">\n<td>\n   ${xmlButton}\n   <strong>${title}</strong>\n   <div>\n      <small style=\"color: ${titleBarTextColor};\">${date}</small>\n   </div>\n</td>\n</tr>\n<tr bgcolor=\"${boxFillColor}\">\n<td class=\"rssBoxContent\" style=\"color: ${textColor};\">\n   ${image}\n   ${items}\n   ${input}\n   <div class=\"rssBoxPromo\" style=\"margin-top: 0px; text-align: left; \n         font: 9px verdana, sans-serif\">\n      RSS box by <a href=\"http://p3k.org/rss\">p3k.org</a>.\n   </div>\n</td>\n</tr>\n</table>\n\n", image:"<a href=\"${link}\"><img src=\"${source}\" width=\"${width}\" height=\"${height}\" \nalt=\"${title}\" title=\"${title}\" align=\"${align}\" valign=\"${valign}\" \nhspace=\"${hspace}\" vspace=\"${vspace}\" border=\"0\" /></a>\n\n", input:"<form method=\"get\" action=\"${link}\">\n${description}\n<input type=\"text\" name=\"${name}\" size=\"15\" /> <input type=\"submit\" \nvalue=\"${title}\" />\n</form>\n\n", item:"<div class=\"rssBoxItemContent\">\n${title}\n${break}\n${description}\n${buttons}\n</div><br />\n\n", date:"${year}-${month}-${day}, ${hours}:${minutes}h\n\n", link:"<a class=\"${class}\" href=\"${link}\" style=\"${style}\">${text}</a>\n", error:"<?xml version=\"1.0\"?>\n<rss version=\"error\">\n   <channel>\n      <title>RSS Box Error</title>\n      <link>${link}</link>\n      <description>This output was automatically generated to report an error \n      that occurred during a request to the JavaScript RSS Box Viewer.</description>\n      <item>\n         <title>Oops, something went wrong...</title>\n         <description>An error occurred while processing the request to the \n         JavaScript RSS Box Viewer.</description>\n      </item>\n      <item>\n         <title>An error message was returned by the server.</title>\n         <description>${message}</description>\n      </item>\n      <item>\n         <description>Most likely, this might have happened because of a \n         non-existent or invalid RSS feed URL. Please check and possibly correct \n         your input, then try again.</description>\n      </item>\n   </channel>\n</rss>\n\n"})};
function debug(str) {
   return document.write('<p><span style="background-color: yellow;">', 
         str, '</span><p>');
}

org.p3k.RssBox = function() {
   var ref;
   var ISOPATTERN = /([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9:]+).*$/;
   
   var data = org.p3k;
   data.defaults = {
      url: "http://blog.p3k.org/rss",
      maxItems: 7,
      width: 200,
      align: "",
      frameColor: "black",
      titleBarColor: "lightblue",
      titleBarTextColor: "black",
      boxFillColor: "white",
      textColor: "black",
      showXmlButton: "",
      compact: ""
   };
   
   var baseUri = data.baseUri;
    
   var getColor = function(str) {
      if (str.length === 6 && parseInt(str, 16) && str.indexOf("#") !== 0) {
         str = "#" + str;
      }
      return str.toLowerCase();
   }

   var value;
   for (var i in data.defaults) {
      value = data.param[i];
      if (!value || value.length === 0) {
         data.param[i] = data.defaults[i];
      } else if (i.indexOf("Color") > 0) {
         data.param[i] = getColor(value);
      }
   }

   // FIXME: Ugly work-around for many boxes using too small width 
   // values because the former version did not show the exact output.
   if (data.param.javascript && data.param.width < 200) {
      data.param.width = 200;
   }
   // Remove obsolete parameters from param and query
   delete data.param.javascript;
   data.query = data.query.replace("javascript=true", "");   

   var NAMESPACES = {
      dc: "http://purl.org/dc/elements/1.1/",
      rdf: "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   };

   var getUrl = function(url) {
      url = baseUri + "proxy.r?" + encodeURIComponent(url);
   
      var HttpRequest = function() {
         return (typeof XMLHttpRequest !== "undefined") ?
            new XMLHttpRequest() : new ActiveXObject("Msxml2.XMLHTTP");
      }
   
      var request = new HttpRequest();
      request.open("GET", url, false);
      request.send(null);   
      if (!request.getResponseHeader("Date")) {
         var cached = request;
         var ifModifiedSince = cached.getResponseHeader("Last-Modified") || 
               new Date(0); // January 1, 1970
         request = new HttpRequest();
         request.open("GET", url, false);
         request.setRequestHeader("If-Modified-Since", ifModifiedSince);
         request.send("");
         if (request.status === 304) {
            request = cached; 
         }
      }
      return request;
   }
   
   var getDocument = function(source) {
      if (source) {
         if (document.implementation.createDocument) {
            var parser = new DOMParser();
            var doc = parser.parseFromString(source, "text/xml");
            return doc;
         } else if (window.ActiveXObject) {
            var doc = new ActiveXObject("Microsoft.XMLDOM");
            doc.async = "false";
            doc.loadXML(source);
            return doc;
         }
      }
      return null;
   }
   
   var getError = function() {
      var msg = null, root;
      if (!xml || data.message) {
         msg = data.message || "Unknown error.";
      } else if (xml.parseError && xml.parseError.errorCode) {
         msg = xml.parseError.reason; // IExplore
      } else if (root = xml.documentElement) {
         var errorNode;
         if (root.nodeName === "parsererror") {
            msg = xml.documentElement.textContent; // Mozilla
         } else if ((errorNode = root.childNodes[0]) && 
               errorNode.nodeName === "parsererror") {
            msg = errorNode.textContent; // Safari
         } else if (!/rss|rdf|scriptingNews/i.test(xml.documentElement.nodeName)) {
            msg = "Incompatible data format. Are you sure this is an RSS feed?";
         }
      }
      return msg;
   }
   
   var getNode = function(parent, name, namespace) {
      if (namespace) {
         if (typeof parent.getElementsByTagNameNS === "undefined") {
            var elements = parent.getElementsByTagName(namespace + ":" + name);
         } else {
            var elements = parent.getElementsByTagNameNS(NAMESPACES[namespace], name);
         }
      } else {
         var elements = parent.getElementsByTagName(name);
      }
      if (elements && elements[0]) {
         return elements[0];
      }
      return null;
   }
   
   var getText = function(node) {
      if (node && node.childNodes && node.childNodes.length > 0) {
         return node.childNodes[0].nodeValue || "";
      }
      return "";
   }
   
   var trim = function(str) {
      if (str) {
         return str.replace(/^\s*(\S*)\s*$/, "$1");
      }
      return "";
   }
   
   var padZero = function(n) {
      if (n < 10) {
         return "0" + n
      }
      return n;
   }

   var encodeXml = function(str) {
      if (!str) {
         return "";
      }
      return str.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/&/g, "&amp;");
   }
      
   var render = function(template, param) {
      if (!template || !param) {
         return template;
      }
      template = template.replace(/\$\{([^}]+)\}/g, function() {
         var key = arguments[1];
         return param[key] || "";
      });
      return template;
   }
   
   var renderDate = function(date) {
      if (date.constructor !== Date) {
         var str = String(date);
         var millis = Date.parse(str.replace(ISOPATTERN, "$1/$2/$3 $4"));
         if (millis) {
            date = new Date(millis);
         } else {
            date = new Date;
         }
      }

      return render(data.date, {
         year: date.getFullYear(),
         month: padZero(date.getMonth() + 1),
         day: padZero(date.getDate()),
         hours: padZero(date.getHours()),
         minutes: padZero(date.getMinutes()),
         seconds: padZero(date.getSeconds()),
         timeZone: "" // date.getTimezoneOffset()
      });
   }
   
   var renderButtons = function(enclosure, source) {
      var result = "";
      if (enclosure && enclosure.link) {
         result += render(data.image, {
            source: baseUri + "enclosure.gif",
            title: enclosure.type,
            link: encodeURI(enclosure.link),
            width: 13,
            height: 16
         });
      }
      if (source && source.link) {
         result += render(data.image, {
            source: baseUri + "source.gif",
            title: source.title,
            link: encodeURI(source.link),
            width: 15,
            height: 15
         });
      }
      return result;         
   }
   
   var param = data.param;
   var rss = data.rss = {items: []};
   var xml = getDocument(data.xml);

   rss.error = getError();
   if (rss.error !== null) {
      xml = getDocument(render(data.error, {
         link: baseUri + "?" + encodeXml(data.query),
         message: encodeXml(rss.error)
      }));
      param.compact = 0;
      param.showXmlButton = 1;
   }

   var root = xml.documentElement;
   var type = root.nodeName;

   if (type === "scriptingNews") {
      var channel = getNode(xml, "header");
      rss.format = "Scripting News";
      rss.version = getText(getNode(channel, "scriptingNewsVersion"));
      rss.title = getText(getNode(channel, "channelTitle"));
      rss.description = getText(getNode(channel, "channelDescription"));
      rss.link = getText(getNode(channel, "channelLink"));
      if (ref = getText(getNode(channel, "imageUrl"))) {
         ref = rss.image = {source: ref};
         ref.title = getText(getNode(channel, "imageTitle"));
         ref.link = getText(getNode(channel, "imageLink"));
         ref.width = getText(getNode(channel, "imageWidth"));
         ref.height = getText(getNode(channel, "imageHeight"));
         ref.description = getText(getNode(channel, "imageCaption"));
      }
   } else {
      var channel = getNode(xml, "channel");
      rss.format = "RSS";
      rss.version = (type === "rdf:RDF") ? "1.0" : 
            root.getAttribute("version");
      rss.title = getText(getNode(channel, "title"));
      rss.description = getText(getNode(channel, "description"));
      rss.link = getText(getNode(channel, "link"));
      var image = getNode(xml, "image");
      if (image) {
         ref = rss.image = {};
         ref.source = getText(getNode(image, "url"));
         ref.title = getText(getNode(image, "title"));
         ref.link = getText(getNode(image, "link"));
         ref.width = getText(getNode(image, "width"));
         ref.height = getText(getNode(image, "height"));
         ref.description = getText(getNode(image, "description"));
      }
   }
   
   if (type === "rdf:RDF") {
      rss.date = renderDate(getText(getNode(channel, "date", "dc")) || data.modified);
      rss.rights = getText(getNode(channel, "creator", "dc"));
      var input = getNode(root, "textinput");
      if (input && !getNode(input, "link")) {
         input = root.getElementsByTagName("textinput")[1];
      }
      if (input) {
         ref = rss.input = {};
         ref.link = getText(getNode(input, "link"));
         ref.description = getText(getNode(input, "description"));
         ref.name = getText(getNode(input, "name"));
         ref.title = getText(getNode(input, "title"));
      }
   } else {
      rss.date = renderDate(getText(getNode(channel, "lastBuildDate") || getText(getNode(channel, "pubDate"))) || data.modified);
      rss.rights = getText(getNode(channel, "copyright"));
   }
   
   var item, text, node;
   var items = xml.getElementsByTagName("item");

   for (var i=0; i<Math.min(items.length, param.maxItems); i+=1) {
      item = items[i];

      if (type === "scriptingNews") {
         ref = {title: ""};
         ref.description = getText(getNode(item, "text")).replace(/\n/g, " ");
         ref.link = getText(getNode(item, "link"));
         if (text = trim(getText(getNode(item, "linetext")).replace(/\n/g, " "))) {
            ref.description = ref.description.replace(new RegExp(text), 
                  '<a href="' + getText(getNode(item, "url")) + '">' + text + '</a>');
         }
      } else {
         ref = {
            title: getText(getNode(item, "title")),
            description: getText(getNode(item, "description")),
            link: getText(getNode(item, "link") || getNode(item, "guid"))
         };
     }

     if (node = getNode(item, "source")) {
        ref.source = {
           link: node.getAttribute("url"),
           title: getText(node)
        }
     }
     
     if (node = getNode(item, "enclosure")) {
        ref.enclosure = {
           link: node.getAttribute("url"),
           length: node.getAttribute("length"),
           type: node.getAttribute("type")
        }
     }
     
     if (node = getNode(item, "category")) {
        ref.category = {
           domain: node.getAttribute("domain") || "",
           content: getText(node)
        }
     }
     
     rss.items.push(ref);
   }
   
   var item, items = "";
   for (var i=0; i<rss.items.length; i+=1) {
      item = rss.items[i];
      items += render(data.item, {
         title: new function() {
            var title = (!param.compact ? "<strong>" : "");
            if (item.link) {
               title += render(data.link, {
                  link: encodeURI(item.link),
                  text: item.title,
                  'class': "rssBoxItemTitle"
               });
            } else {
               title += item.title;
            }
            !param.compact && (title += "</strong>");
            return new String(title); // FIXME: Funny, title alone will be rendered as [object]
         }(),
         'break': item.title && item.description ? "<br />" : "",
         description: (!param.compact || !item.title) && item.description,
         buttons: renderButtons(item.enclosure, item.source)
      });
   }
   
   var box = render(data.box, {
      title: rss.link ? render(data.link, {
         link: encodeURI(rss.link),
         text: rss.title,
         'class': "rssBoxTitle",
         style: "color: " + param.titleBarTextColor
      }) : rss.title,
      description: rss.description,
      items: items,

      xmlButton: param.showXmlButton && render(data.image, {
         link: param.url,
         source: baseUri + "rss.png",
         title: rss.format + " " + rss.version,
         width: 16,
         height: 16,
         align: "right",
         hspace: 3
      }),
      
      image: !param.compact && rss.image && render(data.image, {
         link: encodeURI(rss.image.link),
         source: rss.image.source,
         width: rss.image.width,
         height: rss.image.height,
         title: rss.image.title,
         align: "right",
         valign: "baseline",
         hspace: 5,
         vspace: 5
      }),
      
      input: !param.compact && rss.input && render(data.input, {
         link: encodeURI(rss.input.link),
         description: rss.input.description,
         name: rss.input.name,
         title: rss.input.title
      }),
      
      date: rss.date,
      width: param.width,
      frameColor: param.frameColor,
      fontFace: param.fontFace,
      align: param.align,
      titleBarColor: param.titleBarColor,
      titleBarTextColor: param.titleBarTextColor,
      boxFillColor: param.boxFillColor,
      textColor: param.textColor
   });

   if (!window.rssBoxSetup) {
      document.write(box);
   }
   
   return box;
};

org.p3k.RssBox();

