

function headline(date, time, symbol, headline, id)
{
	// Represents a headline object
	this.date = date;
	this.time = time;
	this.symbol = symbol;
	this.headline = headline;
	this.id = id;
}

///// Data values /////
var headlines = new Array();

headlines[0] = new headline('12/03/2010','18:00','NFK','Change in substantial holding from MND','2586358','','','');
headlines[1] = new headline('12/03/2010','09:02','NFK','Change of Director`s Interest Notice','2586222','','','');
headlines[2] = new headline('12/03/2010','09:02','NFK','Change of Director`s Interest Notice','2586223','','','');
headlines[3] = new headline('12/03/2010','08:59','NFK','Change of Director`s Interest Notice','2586221','','','');
headlines[4] = new headline('12/03/2010','08:58','NFK','Change of Director`s Interest Notice','2586220','','','');
headlines[5] = new headline('10/03/2010','10:12','NFK','Change in substantial holding','2585949','','','');
headlines[6] = new headline('09/03/2010','09:28','NFK','Despatch of Holding Statements - Renounceable Rights Issue','2585797','','','');
headlines[7] = new headline('09/03/2010','09:26','NFK','Appendix 3B','2585796','','','');
headlines[8] = new headline('03/03/2010','14:37','NFK','Norfolk - Close of Renounceable Rights Issue','2585207','','','');
headlines[9] = new headline('15/02/2010','15:33','NFK','Change of Director`s Interest Notice','2582627','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/norfolk/article.asp?view=' + articleID;
	var PopupWin = window.open(urlStr,"viewNews","scrollbars=yes,toolbar=no,directories=no,status=yes,menubar=no,resizable=yes,width=630,height=450")
	PopupWin.focus();
}

function renderHeadlinesList()
{
	document.write("<table class='wlNewsTable' width=435 height=250>");
	document.write("	<thead>");
	document.write("		<tr>");
	document.write("			<th height=20px width= 75px style='text-align:left;'>Date</th>");
	document.write("			<th width=60px>Time</th>");
	document.write("			<th style='text-align:left;' width=300px>Document</th>");
	document.write("		</tr>");
	document.write("	</thead>")
    document.write("   <tr>");
    document.write("   <td height=2px colspan=3 bgcolor=#82C033>"); 
    document.write("   </td>");  
    document.write("   </tr>"); 	
	document.write("	<tbody>")
	

	for (var i=0; i<headlines.length; i++) {
		var h = headlines[i];
		var cls = (i%2 == 0) ? "even" : "odd";
        var asxcode = 'NFK';
		if (h.symbol == '') continue;
		document.write("	<tr class='" + cls + "'>");
		document.write("		<td align=left>" + h.date + "</td>");
		document.write("		<td align=center>" + h.time + "</td>");
		document.write("		<td align=left><a target='_blank' href='http://clients.weblink.com.au/clients/norfolk/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + "</td>");
		document.write("	</tr>");
		
	}
	document.write("	</tbody>")
	document.write("</table>")
}
