

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('27/11/2008','9:37','RKN','Acquisition of Corporate Services and Cost Recovery Business','2531487','','','');
headlines[1] = new headline('27/11/2008','9:30','RKN','EON: Sale of Corporate Services and Billback Businesses','2531477','','','');
headlines[2] = new headline('06/11/2008','13:29','RKN','Appointment of Assistant Company Secretary','2528558','','','');
headlines[3] = new headline('06/11/2008','13:26','RKN','Ceasing to be a substantial holder in Espreon Limited','2528554','','','');
headlines[4] = new headline('06/11/2008','13:22','RKN','Termination of Espreon Share Sale Agreement','2528552','','','');
headlines[5] = new headline('29/10/2008','9:42','RKN','Update on proposed acquisition of Espreon businesses','2526967','','','');
headlines[6] = new headline('30/09/2008','17:34','RKN','Ceasing to be a substantial holder','2523073','','','');
headlines[7] = new headline('23/09/2008','17:25','RKN','Appendix 3B','2521934','','','');
headlines[8] = new headline('23/09/2008','16:56','RKN','Appendix 3B','2521922','','','');
headlines[9] = new headline('23/09/2008','15:55','RKN','Update on Acquisition of Corp Services and BillBack','2521908','','','');
headlines[10] = new headline('17/09/2008','13:34','RKN','Notice of ceasing to be a substantial holder from WAM','2521147','','','');
headlines[11] = new headline('11/08/2008','8:35','RKN','Analysts Presentation','2515501','','','');
headlines[12] = new headline('11/08/2008','8:34','RKN','Interim Dividend','2515499','','','');
headlines[13] = new headline('11/08/2008','8:33','RKN','Half Yearly Report and Accounts','2515497','','','');
headlines[14] = new headline('01/08/2008','15:45','RKN','Appendix 3B','2514729','','','');
headlines[15] = new headline('01/08/2008','10:52','RKN','Update on proposed acquisition','2514676','','','');
headlines[16] = new headline('01/07/2008','9:28','RKN','Update EON Corporate Services and Cost Recovery Transaction','2510983','','','');
headlines[17] = new headline('01/07/2008','9:09','RKN','EON: Espreon and Vectis Announce Merger Proposal','2510965','','','');
headlines[18] = new headline('26/06/2008','10:56','RKN','Appendix 3B','2510475','','','');
headlines[19] = new headline('19/06/2008','10:10','RKN','Becoming a substantial holder','2509483','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/reckon/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'>");
	document.write("	<thead>");
	document.write("		<tr>");
	document.write("			<th>Date</th>");
	document.write("			<th>Time</th>");
	document.write("			<th>Document</th>");
	document.write("		</tr>");
	document.write("	</thead>")
	document.write("	<tbody>")

	for (var i=0; i<headlines.length; i++) {
		var h = headlines[i];
		var cls = (i%2 == 0) ? "even" : "odd";
        var asxcode = 'RKN';
		if (h.symbol == '') continue;

		document.write("	<tr class='" + cls + "'>");
		document.write("		<td>" + h.date + "</td>");
		document.write("		<td>" + h.time + "</td>");
		document.write("		<td align=left><b><a class='newsLink' target='_blank' href='http://clients.weblink.com.au/clients/reckon/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + "<b></td>");
		document.write("	</tr>");
		
	}
	document.write("	</tbody>")
	document.write("</table>")
}
