var feed={title:'Charlie\'s path to dEAth',description:'Engineer\'s log',link:'http://blog.charliezhu.com',items:[{title:'铁路订票系统的平民技术思路',link:'http://blog.charliezhu.com/2012/01/17/%e9%93%81%e8%b7%af%e8%ae%a2%e7%a5%a8%e7%b3%bb%e7%bb%9f%e7%9a%84%e5%b9%b3%e6%b0%91%e6%8a%80%e6%9c%af%e6%80%9d%e8%b7%af/',pubDate:'Tue, 17 Jan 2012 00:51:16 +0800',author:'charlie'},{title:'北京空气质量真的很次',link:'http://blog.charliezhu.com/2011/09/08/486/',pubDate:'Thu, 08 Sep 2011 12:19:57 +0800',author:'charlie'},{title:'用Google Spreadsheet批量生成化学信息和结构图片',link:'http://blog.charliezhu.com/2011/06/05/%e7%94%a8google-spreadsheet%e6%89%b9%e9%87%8f%e7%94%9f%e6%88%90%e5%8c%96%e5%ad%a6%e4%bf%a1%e6%81%af%e5%92%8c%e7%bb%93%e6%9e%84%e5%9b%be%e7%89%87/',pubDate:'Sun, 05 Jun 2011 23:39:21 +0800',author:'charlie'},{title:'MIOSS 2011资料下载',link:'http://blog.charliezhu.com/2011/05/30/mioss-2011/',pubDate:'Mon, 30 May 2011 23:13:04 +0800',author:'charlie'},{title:'Evernote VS. TiddlyWiki',link:'http://blog.charliezhu.com/2011/05/27/evernote-vs-tiddlywiki/',pubDate:'Fri, 27 May 2011 06:50:58 +0800',author:'charlie'},{title:'第6千万个CAS注册的化合物',link:'http://blog.charliezhu.com/2011/05/22/%e7%ac%ac6%e5%8d%83%e4%b8%87%e4%b8%aacas%e6%b3%a8%e5%86%8c%e7%9a%84%e5%8c%96%e5%90%88%e7%89%a9/',pubDate:'Sun, 22 May 2011 21:04:31 +0800',author:'charlie'}],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);
