

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/05/2008','11:34','BRM','Presentation','6406591','','','');
headlines[1] = new headline('30/04/2008','19:10','BRM','Change in substantial holding','6405312','','','');
headlines[2] = new headline('30/04/2008','19:06','BRM','Appendix 3B','6405308','','','');
headlines[3] = new headline('30/04/2008','19:04','BRM','Change of Director`s Interest Notice','6405304','','','');
headlines[4] = new headline('29/04/2008','16:25','BRM','March Quarterly Report','6404558','','','');
headlines[5] = new headline('22/04/2008','15:13','BRM','Brockman confirms discussions with Haoning Group','6403575','','','');
headlines[6] = new headline('21/04/2008','15:00','BRM','Media Announcement - NWIOA','6403422','','','');
headlines[7] = new headline('21/04/2008','13:38','BRM','Quarterly Cashflow Report','6403406','','','');
headlines[8] = new headline('17/04/2008','13:06','BRM','Boardroomradio Interview','6403084','','','');
headlines[9] = new headline('16/04/2008','13:01','BRM','Media Release - Positive Scoping Study for Marillana Project','6402911','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/brockman/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";

		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><a target='_blank' href='http://clients.weblink.com.au/clients/brockman/article.asp?view=" +  h.id + "'>" + h.headline + "</td>");
		document.write("	</tr>");

	}
	document.write("	</tbody>")
	document.write("</table>")
}
