
function ListPinkNewsHtml(eventHandler){}
ListPinkNewsHtml.prototype.generate=function(value,callback)
{var elem,output,row,cell;var records=value.records;if((undefined==records)||(0==records.length))
{output=document.createElement('blockquote');output.appendChild(document.createTextNode('No News'));return output;}
var output=document.createElement('table');output.className="dataTable";output.appendChild(elem=document.createElement('thead'));row=elem.insertRow(-1);row.appendChild(elem=document.createElement('th'));elem.appendChild(document.createTextNode('Release Date'));elem.scope='col';elem.className='date';row.appendChild(elem=document.createElement('th'));elem.appendChild(document.createTextNode('Title'));elem.scope='col';row.appendChild(elem=document.createElement('th'));elem.appendChild(document.createTextNode('PDF'));elem.scope='col';elem.className='file';output.appendChild(tbody=document.createElement('tbody'));for(var i=0;i<value.records.length;i++)
{var record=value.records[i];row=tbody.insertRow(-1);row.className=(i%2==0)?'odd':'even';row.appendChild(cell=document.createElement('th'));cell.appendChild(document.createTextNode(Formatter.toDate(record.releaseDate)));cell=row.insertCell(1);var anchor=document.createElement('a');if(record.typeId==PINK_SHEETS_COVERAGE_NEWS_TYPE_ID){anchor.href=record.contents;anchor.target='_new';}
else
anchor.href='/corporate/news-show.html?id='+record.id;anchor.innerHTML=record.title;cell.appendChild(anchor);if(undefined!=record.journalName)
{cell.appendChild(document.createTextNode(' -- '+record.journalName));}
cell=row.insertCell(2);if(record.typeId==PINK_SHEETS_COVERAGE_NEWS_TYPE_ID){anchor=document.createElement('a');anchor.href=record.contents;cell.appendChild(anchor);elem=document.createElement('img');elem.src='/corporate/images/icon-pdf.png';anchor.appendChild(elem);}}
var pager=new PagingLinksDOM();row=output.insertRow(-1);cell=row.insertCell(0);cell.colSpan='3';cell.appendChild(pager.generate(value,callback));return output;}