

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('29/06/2009','18:14','BRM','Change in substantial holding','6451210','','','');
headlines[1] = new headline('25/06/2009','12:42','BRM','New Substantial Shareholder','6450826','','','');
headlines[2] = new headline('24/06/2009','18:10','BRM','Change in substantial holding','6450751','','','');
headlines[3] = new headline('23/06/2009','14:32','BRM','Annexure to Becoming a substantial holder','6450571','','','');
headlines[4] = new headline('23/06/2009','14:26','BRM','Becoming a substantial holder','6450570','','','');
headlines[5] = new headline('17/06/2009','11:52','BRM','Presentation - Investor Series','6450013','','','');
headlines[6] = new headline('17/06/2009','11:50','BRM','Audio Broadcast - Investor Series Presentation','6450012','','','');
headlines[7] = new headline('29/05/2009','11:39','BRM','Shareholder Newsletter','6448355','','','');
headlines[8] = new headline('28/05/2009','11:55','BRM','Change of Director`s Interest Notice','6448220','','','');
headlines[9] = new headline('26/05/2009','17:20','BRM','Corporate Video','6447981','','','');


///// 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>")
}
