var feed={title:'我的网络生活',description:'Record of my daily life',link:'http://www.hotopics.cn',items:[{title:'作为网编如何轻松的制作专题',link:'http://item.feedsky.com/~feedsky/hotopics/~7688710/323536781/5797862/1/item.html',pubDate:'Tue, 19 Jan 2010 17:37:28 +0800',author:'吴怀唐'},{title:'那些女孩教我的事',link:'http://item.feedsky.com/~feedsky/hotopics/~7688710/323177165/5797862/1/item.html',pubDate:'Mon, 18 Jan 2010 20:53:31 +0800',author:'wuhuaitang'},{title:'世界100大奇特建筑【图】',link:'http://item.feedsky.com/~feedsky/hotopics/~7688710/323177167/5797862/1/item.html',pubDate:'Wed, 13 Jan 2010 13:41:17 +0800',author:'吴怀唐'},{title:'雷倒一片！日本女星',link:'http://item.feedsky.com/~feedsky/hotopics/~7688710/323177169/5797862/1/item.html',pubDate:'Fri, 08 Jan 2010 16:48:53 +0800',author:'吴怀唐'},{title:'大家也只准看不准哭–奔三的80后',link:'http://item.feedsky.com/~feedsky/hotopics/~7688710/323177171/5797862/1/item.html',pubDate:'Thu, 07 Jan 2010 17:29:16 +0800',author:'吴怀唐'},{title:'会叫的孩子有奶吃',link:'http://item.feedsky.com/~feedsky/hotopics/~7688710/323177174/5797862/1/item.html',pubDate:'Wed, 06 Jan 2010 16:11:39 +0800',author:'吴怀唐'},{title:'测试天才的10大奇图',link:'http://item.feedsky.com/~feedsky/hotopics/~7688710/323177176/5797862/1/item.html',pubDate:'Tue, 05 Jan 2010 13:25:29 +0800',author:'吴怀唐'},{title:'《阿凡达》：I see you',link:'http://item.feedsky.com/~feedsky/hotopics/~7688710/323177178/5797862/1/item.html',pubDate:'Thu, 31 Dec 2009 12:03:11 +0800',author:'吴怀唐'},{title:'一年就上一天班你他妈的还要请',link:'http://item.feedsky.com/~feedsky/hotopics/~7688710/323177179/5797862/1/item.html',pubDate:'Tue, 29 Dec 2009 21:14:46 +0800',author:'吴怀唐'},{title:'今天我使用了谷歌的DNS，你呢？',link:'http://item.feedsky.com/~feedsky/hotopics/~7688710/323177182/5797862/1/item.html',pubDate:'Mon, 28 Dec 2009 14:35:52 +0800',author:'吴怀唐'}],encoding:'utf8'};
function outfeed(feed){
	//begin body
	document.write('<div style="border: 1px solid rgb(188, 204, 235); margin: 0.5em; padding: 0pt; background: rgb(255, 255, 255) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; text-align: left; text-indent: 0pt; text-decoration: none; font-weight: normal; font-family: arial,sans-serif; font-size: 10pt; -moz-border-radius-topleft: 8px; -moz-border-radius-topright: 8px; -moz-border-radius-bottomright: 8px; -moz-border-radius-bottomleft: 8px;" id="readerpublishermodule0" class="reader-publisher-module">');
	//begin title
	document.write('<h3 style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color rgb(188, 204, 235); border-width: medium medium 1px; margin: 0pt 0.5em; padding: 0.2em 0pt; background: transparent none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; text-align: left; text-indent: 0pt; text-decoration: none; font-weight: normal; -moz-border-radius-topleft: 8px; -moz-border-radius-topright: 8px; -moz-border-radius-bottomright: 0pt; -moz-border-radius-bottomleft: 0pt; color: rgb(9, 9, 146);">');
	document.write('<a href="'+feed.link+'" >');
	document.write(feed.title);
	document.write('</a>');
	document.write('</h3>');
	//end title
	//begin items 
	document.write('<ul style="border: medium none ; margin: 0pt 0.5em; padding: 0.2em; background: transparent none repeat scroll 0%; overflow: hidden; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; text-align: left; text-indent: 0pt; text-decoration: none; font-weight: normal;">');
	for(var i=0;i<feed.items.length;i++){
		var item=feed.items[i];
		//begin item
		document.write('<li style="border: medium none ; margin: 0pt; padding: 0.4em 0pt; background: transparent none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; text-align: left; text-indent: 0pt; text-decoration: none; font-weight: normal; list-style-type: none;">');
		//begin item title
		document.write('<a style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color rgb(122, 126, 224); border-width: medium medium 1px; margin: 0pt; padding: 0pt; background: transparent none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; text-align: left; text-indent: 0pt; text-decoration: none; font-weight: normal; color: rgb(16, 16, 200);" class="i" ');
		//fill link title
		var re = /([\"\n\\])/g;
        var desc = item.title;
        desc=desc.replace(re, "");
        re = /<[\s\S]+?>/g;
        desc = desc.replace(re, "");
        desc=item.pubDate+":"+desc;
		document.write('title="'+desc+'" ');
		//fill link url
		document.write('href="'+item.link+'">');
		//fill title text
		document.write(item.title);
		//end item title
		document.write('</a>');
		//end item 
		document.write('</li>');
	}
	//end items
	document.write('</ul>');
	//begin home link
	//tail style
	document.write('<div style="border-style: solid none none; border-color: rgb(188, 204, 235) -moz-use-text-color -moz-use-text-color; border-width: 1px medium medium; margin: 0pt; padding: 0.2em 8px; background: rgb(229, 236, 249) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; text-align: right; text-indent: 0pt; text-decoration: none; font-weight: normal; -moz-border-radius-topleft: 0pt; -moz-border-radius-topright: 0pt; -moz-border-radius-bottomright: 4px; -moz-border-radius-bottomleft: 4px; font-size: small; white-space: nowrap;" class="f">');
	document.write('<a href="'+feed.selflink+'" ');
	document.write('style="border: medium none ; margin: 0pt; padding: 0pt; background: transparent none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; text-align: left; text-indent: 0pt; text-decoration: underline; font-weight: normal; color: rgb(137, 141, 233);">');
	document.write('Read in Feedsky');
	document.write('</a>');
	document.write('</div>');
	//end home link
	//end body
	document.write('</div>');
}
outfeed(feed);