
function ListPinkNewsHtml2(){}
ListPinkNewsHtml2.prototype.generate=function(value,callback)
{var output,row,cell,rows=0,cells=0;var records=value.records;if((undefined==records)||(0==records.length))
{output=document.createElement('blockquote');output.appendChild(document.createTextNode('No News'));return output;}
output=document.createElement('table');output.style.width='100%';for(var i=0;i<records.length;i++)
{var record=records[i];row=output.insertRow(rows++);cells=0;cell=row.insertCell(cells++);cell.style.verticalAlign='top';cell.style.whiteSpace='nowrap';cell.style.width='1%';cell.appendChild(document.createTextNode(Formatter.toDate(record.releaseDate)));cell=row.insertCell(cells++);cell.style.verticalAlign='top';cell.style.width='1%';cell.innerHTML='&mdash;';cell=row.insertCell(cells++);cell.style.verticalAlign='top';var a=document.createElement('a');if(record.isCoverage)
{a.href=record.contents;a.target='_new';}
else
{a.href='javascript:void(null);';a.onclick=callback.handleOpenContents;a.myCallback=callback;a.myRecord=record;a.myValue=value;}
a.innerHTML=record.title;cell.appendChild(a);if(record.journalName)
Elements.addSpan(cell,undefined,' &mdash; '+record.journalName);}
var pager=new PagingLinksDOM();row=output.insertRow(rows++);cell=row.insertCell(0);cell.colSpan=cells;cell.style.paddingTop='10px';cell.appendChild(pager.generate(value,callback));return output;}