

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('May 20, 2009','17:41','MMZ','Becoming a substantial holder - Digital Mgrs','2551354','','','');
headlines[1] = new headline('May 20, 2009','17:40','MMZ','Becoming a substantial holder - NLS','2551352','','','');
headlines[2] = new headline('May 20, 2009','17:40','MMZ','Becoming a substantial holder - Quadrant 7','2551353','','','');
headlines[3] = new headline('May 20, 2009','17:38','MMZ','Becoming a substantial holder - Decaton','2551349','','','');
headlines[4] = new headline('Apr 30, 2009','18:53','MMZ','Becoming a substantial holder','2549147','','','');
headlines[5] = new headline('Apr 29, 2009','18:03','MMZ','Appendix 4C - quarterly','2548857','','','');
headlines[6] = new headline('Apr 3, 2009','16:20','MMZ','Change in substantial holding','2546430','','','');
headlines[7] = new headline('Mar 30, 2009','8:26','MMZ','Appendix 3B (corrected for rounding error)','2545629','','','');
headlines[8] = new headline('Mar 27, 2009','13:20','MMZ','Appendix 3B','2545549','','','');
headlines[9] = new headline('Mar 27, 2009','13:19','MMZ','Share Placement ASX Waiver','2545548','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/mootermedia/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("	</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><br>");
			document.write(h.date);
			document.write("		<br>");
			document.write("		<a target='_blank' href='http://clients.weblink.com.au/clients/mootermedia/article.asp?view=" + h.id + "'>" + h.headline );
			document.write("	</td>");
			document.write("	</tr>");

		}
		document.write("	</tbody>")
	document.write("</table>")
}
