var org = {p3k: ({url:"http://www.smartmoney.com/rss/smheadlines.cfm?feed=1&format=RSS091", xml:"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<?xml-stylesheet type=\"text/xsl\" media=\"screen\" href=\"/~d/styles/rss2full.xsl\"?><?xml-stylesheet type=\"text/css\" media=\"screen\" href=\"http://feeds.smartmoney.com/~d/styles/itemcontent.css\"?><rss xmlns:feedburner=\"http://rssnamespace.org/feedburner/ext/1.0\" version=\"2.0\">\n\t<channel>\n\t\t<title>SmartMoney.com</title> \n\t\t<link>http://www.smartmoney.com/</link> \n\t\t<description>Investing, Saving and Personal Finance</description> \n\t\t<language>en-us</language> \n\t\t<copyright>Copyright 2010 Dow Jones &amp; Company, Inc.  All Rights Reserved.</copyright> \n\t\t<image>\n\t\t\t<url>http://www.smartmoney.com/rss/images/sm_logo_65x31.gif</url>\n\t\t\t<title>SmartMoney.com</title>\n\t\t\t<link>http://www.smartmoney.com/</link>\n\t\t\t<width>65</width>\n\t\t\t<height>31</height>\n\t\t</image>\n\t\t\n\t\t<atom10:link xmlns:atom10=\"http://www.w3.org/2005/Atom\" rel=\"self\" type=\"application/rss+xml\" href=\"http://feeds.smartmoney.com/smartmoney/headlines\" /><feedburner:info uri=\"smartmoney/headlines\" /><atom10:link xmlns:atom10=\"http://www.w3.org/2005/Atom\" rel=\"hub\" href=\"http://pubsubhubbub.appspot.com/\" /><feedburner:browserFriendly>This is an XML content feed. It is intended to be viewed in a newsreader or syndicated to another site, subject to copyright and fair use.</feedburner:browserFriendly><item>\n\t\t\t<title>Stock Futures Creep Higher on Jobs Data (Market Update)</title>\n\t\t\t<link>http://feeds.smartmoney.com/~r/smartmoney/headlines/~3/ylnK27opFz8/</link>\n\t\t\t<pubDate>Thu, 02 Sep 2010 09:27:05 -0400</pubDate>\n\t\t\t<description>U.S. stock futures advanced slightly following a bigger-than-expected drop in weekly...\n&lt;p&gt;&lt;a href=\"http://feedads.g.doubleclick.net/~at/1MKSPj_ieDuQ-uwGV1S8qiqHIvQ/0/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/1MKSPj_ieDuQ-uwGV1S8qiqHIvQ/0/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;\n&lt;a href=\"http://feedads.g.doubleclick.net/~at/1MKSPj_ieDuQ-uwGV1S8qiqHIvQ/1/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/1MKSPj_ieDuQ-uwGV1S8qiqHIvQ/1/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=\"feedflare\"&gt;\n&lt;a href=\"http://feeds.smartmoney.com/~ff/smartmoney/headlines?a=ylnK27opFz8:7Z4--Di5oNE:xfcBjTuBJok\"&gt;&lt;img src=\"http://feeds.feedburner.com/~ff/smartmoney/headlines?d=xfcBjTuBJok\" border=\"0\"&gt;&lt;/img&gt;&lt;/a&gt;\n&lt;/div&gt;&lt;img src=\"http://feeds.feedburner.com/~r/smartmoney/headlines/~4/ylnK27opFz8\" height=\"1\" width=\"1\"/&gt;</description>\n\t\t\t<guid isPermaLink=\"false\">http://www.smartmoney.com/investing/stocks/market-update-thursday-sep-2-2010-25036/</guid> <source url=\"http://www.smartmoney.com/rss/publisherLink.cfm?publisher=SmartMoney%2Ecom\">SmartMoney.com</source>\n\t\t<feedburner:origLink>http://www.smartmoney.com/investing/stocks/market-update-thursday-sep-2-2010-25036/?cid=1122</feedburner:origLink></item>\n\t\t\n\t\t<item>\n\t\t\t<title>India Calls for Web Data From Google, Skype (Early Bird)</title>\n\t\t\t<link>http://feeds.smartmoney.com/~r/smartmoney/headlines/~3/WcjHtMvxTKw/</link>\n\t\t\t<pubDate>Thu, 02 Sep 2010 08:01:17 -0400</pubDate>\n\t\t\t<description>WHAT'S HAPPENING NOW: Like RIM before them, the firms face a new mandate.\n&lt;p&gt;&lt;a href=\"http://feedads.g.doubleclick.net/~at/ptzER-Rp2Zs_rqKypf1-mBrDeQw/0/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/ptzER-Rp2Zs_rqKypf1-mBrDeQw/0/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;\n&lt;a href=\"http://feedads.g.doubleclick.net/~at/ptzER-Rp2Zs_rqKypf1-mBrDeQw/1/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/ptzER-Rp2Zs_rqKypf1-mBrDeQw/1/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=\"feedflare\"&gt;\n&lt;a href=\"http://feeds.smartmoney.com/~ff/smartmoney/headlines?a=WcjHtMvxTKw:ucqNSVI_BtA:xfcBjTuBJok\"&gt;&lt;img src=\"http://feeds.feedburner.com/~ff/smartmoney/headlines?d=xfcBjTuBJok\" border=\"0\"&gt;&lt;/img&gt;&lt;/a&gt;\n&lt;/div&gt;&lt;img src=\"http://feeds.feedburner.com/~r/smartmoney/headlines/~4/WcjHtMvxTKw\" height=\"1\" width=\"1\"/&gt;</description>\n\t\t\t<author>letters@smartmoney.com (AnnaMaria Andriotis)</author>\n<guid isPermaLink=\"false\">http://www.smartmoney.com/investing/stocks/india-demands-web-data-from-google-skype/</guid> <source url=\"http://www.smartmoney.com/rss/publisherLink.cfm?publisher=SmartMoney%2Ecom\">SmartMoney.com</source>\n\t\t<feedburner:origLink>http://www.smartmoney.com/investing/stocks/india-demands-web-data-from-google-skype/?cid=1122</feedburner:origLink></item>\n\t\t\n\t\t<item>\n\t\t\t<title>3 Stocks With Customer Satisfaction Appeal (Screens)</title>\n\t\t\t<link>http://feeds.smartmoney.com/~r/smartmoney/headlines/~3/uiQn4CjF3ok/</link>\n\t\t\t<pubDate>Thu, 02 Sep 2010 05:01:51 -0400</pubDate>\n\t\t\t<description>Hough: Studies show firms that satisfy clients take care of shareholders, too.\n&lt;p&gt;&lt;a href=\"http://feedads.g.doubleclick.net/~at/OlU5VGUPzPYYAmsozSsqD8Yjf1g/0/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/OlU5VGUPzPYYAmsozSsqD8Yjf1g/0/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;\n&lt;a href=\"http://feedads.g.doubleclick.net/~at/OlU5VGUPzPYYAmsozSsqD8Yjf1g/1/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/OlU5VGUPzPYYAmsozSsqD8Yjf1g/1/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=\"feedflare\"&gt;\n&lt;a href=\"http://feeds.smartmoney.com/~ff/smartmoney/headlines?a=uiQn4CjF3ok:nAXUwJ1BD1U:xfcBjTuBJok\"&gt;&lt;img src=\"http://feeds.feedburner.com/~ff/smartmoney/headlines?d=xfcBjTuBJok\" border=\"0\"&gt;&lt;/img&gt;&lt;/a&gt;\n&lt;/div&gt;&lt;img src=\"http://feeds.feedburner.com/~r/smartmoney/headlines/~4/uiQn4CjF3ok\" height=\"1\" width=\"1\"/&gt;</description>\n\t\t\t<author>letters@smartmoney.com (Jack Hough)</author>\n<guid isPermaLink=\"false\">http://www.smartmoney.com/investing/stocks/3-stocks-with-customer-satisfaction-appeal/</guid> <source url=\"http://www.smartmoney.com/rss/publisherLink.cfm?publisher=SmartMoney%2Ecom\">SmartMoney.com</source>\n\t\t<feedburner:origLink>http://www.smartmoney.com/investing/stocks/3-stocks-with-customer-satisfaction-appeal/?cid=1122</feedburner:origLink></item>\n\t\t\n\t\t<item>\n\t\t\t<title>Co-Op Maintenance Fees Are Rising </title>\n\t\t\t<link>http://feeds.smartmoney.com/~r/smartmoney/headlines/~3/nLvxBGy4TQ8/</link>\n\t\t\t<pubDate>Thu, 02 Sep 2010 05:01:46 -0400</pubDate>\n\t\t\t<description>Budget-strapped boards are charging more for building services.\n&lt;p&gt;&lt;a href=\"http://feedads.g.doubleclick.net/~at/zXl0BeodOwj1GbnDt3PdLBsZASQ/0/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/zXl0BeodOwj1GbnDt3PdLBsZASQ/0/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;\n&lt;a href=\"http://feedads.g.doubleclick.net/~at/zXl0BeodOwj1GbnDt3PdLBsZASQ/1/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/zXl0BeodOwj1GbnDt3PdLBsZASQ/1/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=\"feedflare\"&gt;\n&lt;a href=\"http://feeds.smartmoney.com/~ff/smartmoney/headlines?a=nLvxBGy4TQ8:tkS9GZmc1gk:xfcBjTuBJok\"&gt;&lt;img src=\"http://feeds.feedburner.com/~ff/smartmoney/headlines?d=xfcBjTuBJok\" border=\"0\"&gt;&lt;/img&gt;&lt;/a&gt;\n&lt;/div&gt;&lt;img src=\"http://feeds.feedburner.com/~r/smartmoney/headlines/~4/nLvxBGy4TQ8\" height=\"1\" width=\"1\"/&gt;</description>\n\t\t\t<author>letters@smartmoney.com (AnnaMaria Andriotis)</author>\n<guid isPermaLink=\"false\">http://www.smartmoney.com/personal-finance/real-estate/co-op-maintenance-fees-are-rising/</guid> <source url=\"http://www.smartmoney.com/rss/publisherLink.cfm?publisher=SmartMoney%2Ecom\">SmartMoney.com</source>\n\t\t<feedburner:origLink>http://www.smartmoney.com/personal-finance/real-estate/co-op-maintenance-fees-are-rising/?cid=1122</feedburner:origLink></item>\n\t\t\n\t\t<item>\n\t\t\t<title>10 Things Graduate Schools Won't Tell You (10 Things)</title>\n\t\t\t<link>http://feeds.smartmoney.com/~r/smartmoney/headlines/~3/ryH27d4GySI/</link>\n\t\t\t<pubDate>Thu, 02 Sep 2010 05:01:10 -0400</pubDate>\n\t\t\t<description>The big question: Will an advanced degree lead to a bigger paycheck?\n&lt;p&gt;&lt;a href=\"http://feedads.g.doubleclick.net/~at/TMa4fWwfwFmQmR_EMtjIbmCJlF0/0/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/TMa4fWwfwFmQmR_EMtjIbmCJlF0/0/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;\n&lt;a href=\"http://feedads.g.doubleclick.net/~at/TMa4fWwfwFmQmR_EMtjIbmCJlF0/1/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/TMa4fWwfwFmQmR_EMtjIbmCJlF0/1/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=\"feedflare\"&gt;\n&lt;a href=\"http://feeds.smartmoney.com/~ff/smartmoney/headlines?a=ryH27d4GySI:wlnw9RrM8Cs:xfcBjTuBJok\"&gt;&lt;img src=\"http://feeds.feedburner.com/~ff/smartmoney/headlines?d=xfcBjTuBJok\" border=\"0\"&gt;&lt;/img&gt;&lt;/a&gt;\n&lt;/div&gt;&lt;img src=\"http://feeds.feedburner.com/~r/smartmoney/headlines/~4/ryH27d4GySI\" height=\"1\" width=\"1\"/&gt;</description>\n\t\t\t<author>letters@smartmoney.com (Marlys Harris)</author>\n<guid isPermaLink=\"false\">http://www.smartmoney.com/personal-finance/college-planning/10-things-graduate-schools-wont-tell-you/</guid> <source url=\"http://www.smartmoney.com/rss/publisherLink.cfm?publisher=SmartMoney%2Ecom\">SmartMoney.com</source>\n\t\t<feedburner:origLink>http://www.smartmoney.com/personal-finance/college-planning/10-things-graduate-schools-wont-tell-you/?cid=1122</feedburner:origLink></item>\n\t\t\n\t\t<item>\n\t\t\t<title>Not a Stockpicker's Market </title>\n\t\t\t<link>http://feeds.smartmoney.com/~r/smartmoney/headlines/~3/6gJiaLnk3I0/</link>\n\t\t\t<pubDate>Thu, 02 Sep 2010 05:01:00 -0400</pubDate>\n\t\t\t<description>Despite increasing talk of ominous market indicators, stocks are more likely to rally.\n&lt;p&gt;&lt;a href=\"http://feedads.g.doubleclick.net/~at/3bknMYu_zZY0sq0FqOhcrRMmuzM/0/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/3bknMYu_zZY0sq0FqOhcrRMmuzM/0/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;\n&lt;a href=\"http://feedads.g.doubleclick.net/~at/3bknMYu_zZY0sq0FqOhcrRMmuzM/1/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/3bknMYu_zZY0sq0FqOhcrRMmuzM/1/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=\"feedflare\"&gt;\n&lt;a href=\"http://feeds.smartmoney.com/~ff/smartmoney/headlines?a=6gJiaLnk3I0:TB8s4jGw2eM:xfcBjTuBJok\"&gt;&lt;img src=\"http://feeds.feedburner.com/~ff/smartmoney/headlines?d=xfcBjTuBJok\" border=\"0\"&gt;&lt;/img&gt;&lt;/a&gt;\n&lt;/div&gt;&lt;img src=\"http://feeds.feedburner.com/~r/smartmoney/headlines/~4/6gJiaLnk3I0\" height=\"1\" width=\"1\"/&gt;</description>\n\t\t\t<author>letters@smartmoney.com (Vito J. Racanelli)</author>\n<guid isPermaLink=\"false\">http://www.smartmoney.com/investing/stocks/not-a-stockpickers-market/</guid> <source url=\"http://www.smartmoney.com/rss/publisherLink.cfm?publisher=SmartMoney%2Ecom\">SmartMoney.com</source>\n\t\t<feedburner:origLink>http://www.smartmoney.com/investing/stocks/not-a-stockpickers-market/?cid=1122</feedburner:origLink></item>\n\t\t\n\t\t<item>\n\t\t\t<title>New Apple TV Could Shift Video Rental Trends (Deal of the Day)</title>\n\t\t\t<link>http://feeds.smartmoney.com/~r/smartmoney/headlines/~3/khRO1voVsPE/</link>\n\t\t\t<pubDate>Wed, 01 Sep 2010 17:16:38 -0400</pubDate>\n\t\t\t<description>Where you rent is increasingly about what technology you use.\n&lt;p&gt;&lt;a href=\"http://feedads.g.doubleclick.net/~at/Y-R8qBKeVy53CIsCKp6fa4_oOzs/0/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/Y-R8qBKeVy53CIsCKp6fa4_oOzs/0/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;\n&lt;a href=\"http://feedads.g.doubleclick.net/~at/Y-R8qBKeVy53CIsCKp6fa4_oOzs/1/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/Y-R8qBKeVy53CIsCKp6fa4_oOzs/1/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=\"feedflare\"&gt;\n&lt;a href=\"http://feeds.smartmoney.com/~ff/smartmoney/headlines?a=khRO1voVsPE:Xt3am3uhQ_c:xfcBjTuBJok\"&gt;&lt;img src=\"http://feeds.feedburner.com/~ff/smartmoney/headlines?d=xfcBjTuBJok\" border=\"0\"&gt;&lt;/img&gt;&lt;/a&gt;\n&lt;/div&gt;&lt;img src=\"http://feeds.feedburner.com/~r/smartmoney/headlines/~4/khRO1voVsPE\" height=\"1\" width=\"1\"/&gt;</description>\n\t\t\t<author>letters@smartmoney.com (Kelli B. Grant)</author>\n<guid isPermaLink=\"false\">http://www.smartmoney.com/spending/technology/the-new-rules-of-movie-rentals/</guid> <source url=\"http://www.smartmoney.com/rss/publisherLink.cfm?publisher=SmartMoney%2Ecom\">SmartMoney.com</source>\n\t\t<feedburner:origLink>http://www.smartmoney.com/spending/technology/the-new-rules-of-movie-rentals/?cid=1122</feedburner:origLink></item>\n\t\t\n\t\t<item>\n\t\t\t<title>11 Tips to Cut Your Grocery Bills (Deal of the Day)</title>\n\t\t\t<link>http://feeds.smartmoney.com/~r/smartmoney/headlines/~3/VgzY1UqF8rQ/</link>\n\t\t\t<pubDate>Thu, 02 Sep 2010 05:01:18 -0400</pubDate>\n\t\t\t<description>Offset rising food prices with smart savings strategies.\n&lt;p&gt;&lt;a href=\"http://feedads.g.doubleclick.net/~at/S32BAWTeHBGigIRanv8I8-Ehud0/0/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/S32BAWTeHBGigIRanv8I8-Ehud0/0/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;\n&lt;a href=\"http://feedads.g.doubleclick.net/~at/S32BAWTeHBGigIRanv8I8-Ehud0/1/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/S32BAWTeHBGigIRanv8I8-Ehud0/1/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=\"feedflare\"&gt;\n&lt;a href=\"http://feeds.smartmoney.com/~ff/smartmoney/headlines?a=VgzY1UqF8rQ:MBnSg2aM6-s:xfcBjTuBJok\"&gt;&lt;img src=\"http://feeds.feedburner.com/~ff/smartmoney/headlines?d=xfcBjTuBJok\" border=\"0\"&gt;&lt;/img&gt;&lt;/a&gt;\n&lt;/div&gt;&lt;img src=\"http://feeds.feedburner.com/~r/smartmoney/headlines/~4/VgzY1UqF8rQ\" height=\"1\" width=\"1\"/&gt;</description>\n\t\t\t<author>letters@smartmoney.com (Kelli B. Grant)</author>\n<guid isPermaLink=\"false\">http://www.smartmoney.com/spending/for-the-home/11-tips-to-cut-grocery-bills/</guid> <source url=\"http://www.smartmoney.com/rss/publisherLink.cfm?publisher=SmartMoney%2Ecom\">SmartMoney.com</source>\n\t\t<feedburner:origLink>http://www.smartmoney.com/spending/for-the-home/11-tips-to-cut-grocery-bills/?cid=1122</feedburner:origLink></item>\n\t\t\n\t\t<item>\n\t\t\t<title>Jail Bonds Can't Bar Defaults (Muni Bond Watch)</title>\n\t\t\t<link>http://feeds.smartmoney.com/~r/smartmoney/headlines/~3/zzRAiB_yz4Q/</link>\n\t\t\t<pubDate>Thu, 02 Sep 2010 01:10:32 -0400</pubDate>\n\t\t\t<description>Public money and private prisons sentence investors to portfolio worries.\n&lt;p&gt;&lt;a href=\"http://feedads.g.doubleclick.net/~at/8PEJx4SkelrYeYeWtROj4eXOco4/0/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/8PEJx4SkelrYeYeWtROj4eXOco4/0/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;\n&lt;a href=\"http://feedads.g.doubleclick.net/~at/8PEJx4SkelrYeYeWtROj4eXOco4/1/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/8PEJx4SkelrYeYeWtROj4eXOco4/1/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=\"feedflare\"&gt;\n&lt;a href=\"http://feeds.smartmoney.com/~ff/smartmoney/headlines?a=zzRAiB_yz4Q:bkF-WEy4Rfk:xfcBjTuBJok\"&gt;&lt;img src=\"http://feeds.feedburner.com/~ff/smartmoney/headlines?d=xfcBjTuBJok\" border=\"0\"&gt;&lt;/img&gt;&lt;/a&gt;\n&lt;/div&gt;&lt;img src=\"http://feeds.feedburner.com/~r/smartmoney/headlines/~4/zzRAiB_yz4Q\" height=\"1\" width=\"1\"/&gt;</description>\n\t\t\t<author>letters@smartmoney.com (Will Swarts)</author>\n<guid isPermaLink=\"false\">http://www.smartmoney.com/investing/bonds/jail-bonds-cant-bar-defaults/</guid> <source url=\"http://www.smartmoney.com/rss/publisherLink.cfm?publisher=SmartMoney%2Ecom\">SmartMoney.com</source>\n\t\t<feedburner:origLink>http://www.smartmoney.com/investing/bonds/jail-bonds-cant-bar-defaults/?cid=1122</feedburner:origLink></item>\n\t\t\n\t\t<item>\n\t\t\t<title>Stocks Gain as Economic Fears Ease (Market Update)</title>\n\t\t\t<link>http://feeds.smartmoney.com/~r/smartmoney/headlines/~3/bjMDj9A7OHs/</link>\n\t\t\t<pubDate>Wed, 01 Sep 2010 18:12:03 -0400</pubDate>\n\t\t\t<description>Hello September.\n&lt;p&gt;&lt;a href=\"http://feedads.g.doubleclick.net/~at/3K_6dDrfSNr6VvVomQMajXmfAK4/0/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/3K_6dDrfSNr6VvVomQMajXmfAK4/0/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;\n&lt;a href=\"http://feedads.g.doubleclick.net/~at/3K_6dDrfSNr6VvVomQMajXmfAK4/1/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/3K_6dDrfSNr6VvVomQMajXmfAK4/1/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=\"feedflare\"&gt;\n&lt;a href=\"http://feeds.smartmoney.com/~ff/smartmoney/headlines?a=bjMDj9A7OHs:GyFb20Jgp7w:xfcBjTuBJok\"&gt;&lt;img src=\"http://feeds.feedburner.com/~ff/smartmoney/headlines?d=xfcBjTuBJok\" border=\"0\"&gt;&lt;/img&gt;&lt;/a&gt;\n&lt;/div&gt;&lt;img src=\"http://feeds.feedburner.com/~r/smartmoney/headlines/~4/bjMDj9A7OHs\" height=\"1\" width=\"1\"/&gt;</description>\n\t\t\t<guid isPermaLink=\"false\">http://www.smartmoney.com/investing/stocks/market-update-wednesday-sep-1-2010-25023/</guid> <source url=\"http://www.smartmoney.com/rss/publisherLink.cfm?publisher=SmartMoney%2Ecom\">SmartMoney.com</source>\n\t\t<feedburner:origLink>http://www.smartmoney.com/investing/stocks/market-update-wednesday-sep-1-2010-25023/?cid=1122</feedburner:origLink></item>\n\t\t\n\t\t<item>\n\t\t\t<title>Apple Makes Internet-TV Push </title>\n\t\t\t<link>http://feeds.smartmoney.com/~r/smartmoney/headlines/~3/u2e0mTPgAsE/</link>\n\t\t\t<pubDate>Wed, 01 Sep 2010 14:51:05 -0400</pubDate>\n\t\t\t<description>A new Apple TV can deliver 99-cent rentals of TV shows over the Internet.\n&lt;p&gt;&lt;a href=\"http://feedads.g.doubleclick.net/~at/t4jziBwXnX1wBMuqytwRKg5WbO4/0/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/t4jziBwXnX1wBMuqytwRKg5WbO4/0/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;\n&lt;a href=\"http://feedads.g.doubleclick.net/~at/t4jziBwXnX1wBMuqytwRKg5WbO4/1/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/t4jziBwXnX1wBMuqytwRKg5WbO4/1/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=\"feedflare\"&gt;\n&lt;a href=\"http://feeds.smartmoney.com/~ff/smartmoney/headlines?a=u2e0mTPgAsE:aqjDYUBSH1w:xfcBjTuBJok\"&gt;&lt;img src=\"http://feeds.feedburner.com/~ff/smartmoney/headlines?d=xfcBjTuBJok\" border=\"0\"&gt;&lt;/img&gt;&lt;/a&gt;\n&lt;/div&gt;&lt;img src=\"http://feeds.feedburner.com/~r/smartmoney/headlines/~4/u2e0mTPgAsE\" height=\"1\" width=\"1\"/&gt;</description>\n\t\t\t<author>letters@smartmoney.com (SmartMoney Magazine Staff)</author>\n<guid isPermaLink=\"false\">http://www.smartmoney.com/spending/technology/apple-makes-internet-tv-push/</guid> <source url=\"http://www.smartmoney.com/rss/publisherLink.cfm?publisher=SmartMoney%2Ecom\">SmartMoney.com</source>\n\t\t<feedburner:origLink>http://www.smartmoney.com/spending/technology/apple-makes-internet-tv-push/?cid=1122</feedburner:origLink></item>\n\t\t\n\t\t<item>\n\t\t\t<title>Saving on Taxes in a Lousy Economy (The Tax Guy)</title>\n\t\t\t<link>http://feeds.smartmoney.com/~r/smartmoney/headlines/~3/g6Bcne2ieRM/</link>\n\t\t\t<pubDate>Wed, 01 Sep 2010 14:07:27 -0400</pubDate>\n\t\t\t<description>The upside of the gloom? Some valuable tax breaks.\n&lt;p&gt;&lt;a href=\"http://feedads.g.doubleclick.net/~at/H8HvCGrCyK49GyyhX8lEIrWQo-k/0/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/H8HvCGrCyK49GyyhX8lEIrWQo-k/0/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;\n&lt;a href=\"http://feedads.g.doubleclick.net/~at/H8HvCGrCyK49GyyhX8lEIrWQo-k/1/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/H8HvCGrCyK49GyyhX8lEIrWQo-k/1/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=\"feedflare\"&gt;\n&lt;a href=\"http://feeds.smartmoney.com/~ff/smartmoney/headlines?a=g6Bcne2ieRM:2XIQEiYcpIE:xfcBjTuBJok\"&gt;&lt;img src=\"http://feeds.feedburner.com/~ff/smartmoney/headlines?d=xfcBjTuBJok\" border=\"0\"&gt;&lt;/img&gt;&lt;/a&gt;\n&lt;/div&gt;&lt;img src=\"http://feeds.feedburner.com/~r/smartmoney/headlines/~4/g6Bcne2ieRM\" height=\"1\" width=\"1\"/&gt;</description>\n\t\t\t<author>letters@smartmoney.com (Bill Bischoff)</author>\n<guid isPermaLink=\"false\">http://www.smartmoney.com/personal-finance/taxes/saving-on-taxes-in-a-lousy-economy/</guid> <source url=\"http://www.smartmoney.com/rss/publisherLink.cfm?publisher=SmartMoney%2Ecom\">SmartMoney.com</source>\n\t\t<feedburner:origLink>http://www.smartmoney.com/personal-finance/taxes/saving-on-taxes-in-a-lousy-economy/?cid=1122</feedburner:origLink></item>\n\t\t\n\t\t<item>\n\t\t\t<title>Investors Peer Inside Apple's Gadget Box (Early Bird)</title>\n\t\t\t<link>http://feeds.smartmoney.com/~r/smartmoney/headlines/~3/Kc857tpEaO4/</link>\n\t\t\t<pubDate>Wed, 01 Sep 2010 11:54:22 -0400</pubDate>\n\t\t\t<description>Analysts expect a revamped $99 Apple TV and 99-cent rentals.\n&lt;p&gt;&lt;a href=\"http://feedads.g.doubleclick.net/~at/nbSD53vpDaW0oKNCYTNVCsm_amM/0/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/nbSD53vpDaW0oKNCYTNVCsm_amM/0/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;\n&lt;a href=\"http://feedads.g.doubleclick.net/~at/nbSD53vpDaW0oKNCYTNVCsm_amM/1/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/nbSD53vpDaW0oKNCYTNVCsm_amM/1/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=\"feedflare\"&gt;\n&lt;a href=\"http://feeds.smartmoney.com/~ff/smartmoney/headlines?a=Kc857tpEaO4:Hv74lJJqf8c:xfcBjTuBJok\"&gt;&lt;img src=\"http://feeds.feedburner.com/~ff/smartmoney/headlines?d=xfcBjTuBJok\" border=\"0\"&gt;&lt;/img&gt;&lt;/a&gt;\n&lt;/div&gt;&lt;img src=\"http://feeds.feedburner.com/~r/smartmoney/headlines/~4/Kc857tpEaO4\" height=\"1\" width=\"1\"/&gt;</description>\n\t\t\t<author>letters@smartmoney.com (AnnaMaria Andriotis)</author>\n<guid isPermaLink=\"false\">http://www.smartmoney.com/investing/stocks/investors-peer-inside-apples-new-gadget-box/</guid> <source url=\"http://www.smartmoney.com/rss/publisherLink.cfm?publisher=SmartMoney%2Ecom\">SmartMoney.com</source>\n\t\t<feedburner:origLink>http://www.smartmoney.com/investing/stocks/investors-peer-inside-apples-new-gadget-box/?cid=1122</feedburner:origLink></item>\n\t\t\n\t\t<item>\n\t\t\t<title>College Savings Plans Cut Fees</title>\n\t\t\t<link>http://feeds.smartmoney.com/~r/smartmoney/headlines/~3/Agg6JnNSn8s/</link>\n\t\t\t<pubDate>Wed, 01 Sep 2010 06:01:10 -0400</pubDate>\n\t\t\t<description>Some 529 savings plans are cheaper, but they aren't perfect for every parent.\n&lt;p&gt;&lt;a href=\"http://feedads.g.doubleclick.net/~at/W5yE9TWJlg_T_Op6JRE8H0GgoKo/0/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/W5yE9TWJlg_T_Op6JRE8H0GgoKo/0/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;\n&lt;a href=\"http://feedads.g.doubleclick.net/~at/W5yE9TWJlg_T_Op6JRE8H0GgoKo/1/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/W5yE9TWJlg_T_Op6JRE8H0GgoKo/1/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=\"feedflare\"&gt;\n&lt;a href=\"http://feeds.smartmoney.com/~ff/smartmoney/headlines?a=Agg6JnNSn8s:HmiqKITNpz8:xfcBjTuBJok\"&gt;&lt;img src=\"http://feeds.feedburner.com/~ff/smartmoney/headlines?d=xfcBjTuBJok\" border=\"0\"&gt;&lt;/img&gt;&lt;/a&gt;\n&lt;/div&gt;&lt;img src=\"http://feeds.feedburner.com/~r/smartmoney/headlines/~4/Agg6JnNSn8s\" height=\"1\" width=\"1\"/&gt;</description>\n\t\t\t<author>letters@smartmoney.com (AnnaMaria Andriotis)</author>\n<guid isPermaLink=\"false\">http://www.smartmoney.com/personal-finance/college-planning/college-savings-plans-cut-fees/</guid> <source url=\"http://www.smartmoney.com/rss/publisherLink.cfm?publisher=SmartMoney%2Ecom\">SmartMoney.com</source>\n\t\t<feedburner:origLink>http://www.smartmoney.com/personal-finance/college-planning/college-savings-plans-cut-fees/?cid=1122</feedburner:origLink></item>\n\t\t\n\t\t<item>\n\t\t\t<title>Get a Flu Shot for Less (Deal of the Day)</title>\n\t\t\t<link>http://feeds.smartmoney.com/~r/smartmoney/headlines/~3/xhAtZ8rZIu4/</link>\n\t\t\t<pubDate>Wed, 01 Sep 2010 05:01:00 -0400</pubDate>\n\t\t\t<description>Consumers looking for a seasonal flu vaccination can get them early and cheap.\n&lt;p&gt;&lt;a href=\"http://feedads.g.doubleclick.net/~at/6SIqhNXyiI-I4pry29zT6uq4APg/0/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/6SIqhNXyiI-I4pry29zT6uq4APg/0/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;\n&lt;a href=\"http://feedads.g.doubleclick.net/~at/6SIqhNXyiI-I4pry29zT6uq4APg/1/da\"&gt;&lt;img src=\"http://feedads.g.doubleclick.net/~at/6SIqhNXyiI-I4pry29zT6uq4APg/1/di\" border=\"0\" ismap=\"true\"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=\"feedflare\"&gt;\n&lt;a href=\"http://feeds.smartmoney.com/~ff/smartmoney/headlines?a=xhAtZ8rZIu4:21jDRleIG1w:xfcBjTuBJok\"&gt;&lt;img src=\"http://feeds.feedburner.com/~ff/smartmoney/headlines?d=xfcBjTuBJok\" border=\"0\"&gt;&lt;/img&gt;&lt;/a&gt;\n&lt;/div&gt;&lt;img src=\"http://feeds.feedburner.com/~r/smartmoney/headlines/~4/xhAtZ8rZIu4\" height=\"1\" width=\"1\"/&gt;</description>\n\t\t\t<author>letters@smartmoney.com (Kelli B. Grant)</author>\n<guid isPermaLink=\"false\">http://www.smartmoney.com/spending/deals/get-a-flu-shot-for-less/</guid> <source url=\"http://www.smartmoney.com/rss/publisherLink.cfm?publisher=SmartMoney%2Ecom\">SmartMoney.com</source>\n\t\t<feedburner:origLink>http://www.smartmoney.com/spending/deals/get-a-flu-shot-for-less/?cid=1122</feedburner:origLink></item>\n\t\t\n\t</channel>\n\t</rss>\n", message:undefined, modified:(new Date(1283438454360)), baseUri:"http://p3k.org/rss/", query:"frameColor=black&textColor=black&_=1213976733218&titleBarColor=lightblue&compact=&fontFace=&align=left&showXmlButton=true&maxItems=10&boxFillColor=white&undefined=&titleBarTextColor=black&width=650&url=http://www.smartmoney.com/rss/smheadlines.cfm?feed=1&format=RSS091&", param:{textColor:"black", width:"650", align:"left", fontFace:"", url:"http://www.smartmoney.com/rss/smheadlines.cfm?feed=1&format=RSS091", compact:"", frameColor:"black", showXmlButton:"true", undefined:"", boxFillColor:"white", _:"1213976733218", 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();

