function listComments(root){var feed=root.feed;var entries=feed.entry||[];var html=[];if(!feed.entry)
return;var re=/post([0-9]+)/i
var joe=re.exec(feed.id.$t);var myId=joe[1];dateRe=/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):\d{2}.\d{3}/;if(showComments==1){html.push('<div class="blog-entry-comments-body" id="comment-'+myId+'-body">');if(reverseCommentEntries==1)
feed.entry.reverse();for(var i=0;i<feed.entry.length;++i){if((i%2)==0)
html.push('<br class="blog-entry-comments-break"/> <div class="blog-entry-comments-body-even">');else
html.push('<br class="blog-entry-comments-break"/> <div class="blog-entry-comments-body-odd">');var entry=feed.entry[i];var title=entry.title.$t;var published=entry.published.$t;var dateArray=dateRe.exec(published);var thisDate=new Date(dateArray[1],dateArray[2]-1,dateArray[3],dateArray[4],dateArray[5],0)
var content=entry.content.$t;var URI=null;var author=null;author=entry.author[0].name.$t;if(entry.author[0].uri)
var URI=entry.author[0].uri.$t;if(URI!=null){var httpRe=/http:\/\//;if(!httpRe.exec(URI)){URI="http://"+URI;}
author="<a href='"+URI+"'>"+author+"</a>";}
if(!commentIntroduction)
commentIntroduction=' said ... ';html.push(author,commentIntroduction,'<br />','<div>',content,' </div> ',thisDate.toLocaleString(),'</div>');}
html.push('</div>');}
document.getElementById("comment_"+myId).innerHTML+=html.join("");}
function toggleHide(id){ptr=document.getElementById(id);if(ptr.style.visibility=='hidden'){ptr.style.visibility='';ptr.style.height='';document.getElementById(id+"-link").innerHTML=commentHideString;}
else{ptr.style.visibility='hidden';ptr.style.height='0'
document.getElementById(id+"-link").innerHTML=commentShowString;}}
