

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('06/02/2012','19:52','RKN','Dividend Details','2665959','','','');
headlines[1] = new headline('06/02/2012','19:52','RKN','Preliminary Final Report','2665957','','','');
headlines[2] = new headline('06/02/2012','19:52','RKN','Results Presentation  - Year Ended 31 December 2011','2665958','','','');
headlines[3] = new headline('06/02/2012','19:47','RKN','Preliminary Final Report','2665956','','','');
headlines[4] = new headline('07/12/2011','16:43','RKN','Cancellation of Shares','2660190','','','');
headlines[5] = new headline('06/12/2011','19:39','RKN','Share Buy-Back - Appendix 3E','2660028','','','');
headlines[6] = new headline('05/12/2011','17:42','RKN','Share Buy-Back - Appendix 3E','2659829','','','');
headlines[7] = new headline('05/12/2011','8:30','RKN','Share Buy-Back - Appendix 3E','2659683','','','');
headlines[8] = new headline('02/12/2011','11:02','RKN','Development Update','2659535','','','');
headlines[9] = new headline('30/11/2011','11:24','RKN','Share Buy-Back - Form 484','2659055','','','');
headlines[10] = new headline('28/11/2011','16:50','RKN','Daily share buy-back notice - Appendix 3E','2658726','','','');
headlines[11] = new headline('28/11/2011','9:38','RKN','Daily Share Buy-Back Notice Appendix 3E','2658597','','','');
headlines[12] = new headline('24/11/2011','17:32','RKN','Daily share buy-back notice - Appendix 3E','2658286','','','');
headlines[13] = new headline('18/10/2011','12:48','RKN','Appendix 3B','2653128','','','');
headlines[14] = new headline('12/10/2011','16:30','RKN','Share Buy-Back - Form 484','2652445','','','');
headlines[15] = new headline('26/09/2011','8:34','RKN','Daily share buy-back notice - Appendix 3E','2650095','','','');
headlines[16] = new headline('07/09/2011','17:27','RKN','Daily share buy-back notice - Appendix 3E','2647915','','','');
headlines[17] = new headline('09/08/2011','8:01','RKN','Summary of Half Year Results 2011','2643472','','','');
headlines[18] = new headline('09/08/2011','8:00','RKN','Half Year Report','2643447','','','');
headlines[19] = new headline('09/08/2011','8:00','RKN','Half Yearly Accounts','2643448','','','');


///// 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>")
}

