

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('23/01/2012','12:51','NFK','Norfolk Group - Appointment of Chief Operating Officer','2664452','','','');
headlines[1] = new headline('22/12/2011','09:19','NFK','Norfolk Group - Tax Consolidation Amendments','2662099','','','');
headlines[2] = new headline('12/12/2011','08:51','NFK','Norfolk Group - Notice of Acceptance for $34m Contract','2660573','','','');
headlines[3] = new headline('07/12/2011','08:24','NFK','Norfolk Group Secures $150m Infrastructure Contract','2660046','','','');
headlines[4] = new headline('02/12/2011','16:11','NFK','Change in substantial holding from PPT','2659614','','','');
headlines[5] = new headline('01/12/2011','08:31','NFK','Norfolk Group - Details of Interim Dividend','2659210','','','');
headlines[6] = new headline('28/11/2011','08:33','NFK','Norfolk Group awarded rail signalling contract','2658576','','','');
headlines[7] = new headline('24/11/2011','09:00','NFK','Norfolk Group - HY2012 Results Presentation','2658065','','','');
headlines[8] = new headline('24/11/2011','08:59','NFK','Norfolk Group - HY2012 Results Announcement','2658064','','','');
headlines[9] = new headline('24/11/2011','08:57','NFK','Half Yearly Report and Accounts','2658063','','','');


///// 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>")
}

