var feed={title:'滚天在线',description:'爱生活，爱互联网！http://www.Gonten.com',link:'http://www.gonten.com',items:[{title:'因不满薪水 富士康百人扬言集体跳楼（图）',link:'http://item.feedsky.com/~feedsky/gonten/~7717485/596409630/5449372/1/item.html',pubDate:'Fri, 13 Jan 2012 12:30:38 +0800',author:'Gonten'},{title:'“上亿银行密码泄露”引虚惊 疑似第三方支付平台泄密',link:'http://item.feedsky.com/~feedsky/gonten/~7717485/596409631/5449372/1/item.html',pubDate:'Fri, 30 Dec 2011 10:37:55 +0800',author:'Gonten'},{title:'患者被医院收费人员改名为张去死',link:'http://item.feedsky.com/~feedsky/gonten/~7717485/596409632/5449372/1/item.html',pubDate:'Fri, 30 Dec 2011 10:33:43 +0800',author:'Gonten'},{title:'避孕药实名制，福州规定买紧急避孕药实名制 被质疑泄露隐私【图】',link:'http://item.feedsky.com/~feedsky/gonten/~7717485/596409633/5449372/1/item.html',pubDate:'Thu, 29 Dec 2011 12:31:31 +0800',author:'Gonten'},{title:'《天与地》禁播真相 原来是这样的（图文）',link:'http://item.feedsky.com/~feedsky/gonten/~7717485/596409634/5449372/1/item.html',pubDate:'Wed, 28 Dec 2011 17:16:21 +0800',author:'Gonten'},{title:'6警察杀人案背后引深思',link:'http://item.feedsky.com/~feedsky/gonten/~7717485/596409635/5449372/1/item.html',pubDate:'Wed, 28 Dec 2011 15:23:49 +0800',author:'Gonten'},{title:'“东洋之花”面膜含毒 可致精神异常',link:'http://item.feedsky.com/~feedsky/gonten/~7717485/596409636/5449372/1/item.html',pubDate:'Wed, 28 Dec 2011 13:17:05 +0800',author:'Gonten'},{title:'喂奶姐1分32秒喂奶门视频 网友称明明是秀豪乳(视频)',link:'http://item.feedsky.com/~feedsky/gonten/~7717485/596409637/5449372/1/item.html',pubDate:'Wed, 28 Dec 2011 12:58:17 +0800',author:'Gonten'}],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);
