

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('Mar 9, 2010','16:17','MMZ','Change in substantial holding','2585879','','','');
headlines[1] = new headline('Mar 9, 2010','16:16','MMZ','Change of Director`s Interest Notice','2585878','','','');
headlines[2] = new headline('Feb 26, 2010','17:24','MMZ','Appendix 4D - Half Year Accounts','2584694','','','');
headlines[3] = new headline('Feb 26, 2010','17:24','MMZ','Half Yearly Report and Accounts','2584695','','','');
headlines[4] = new headline('Feb 19, 2010','17:54','MMZ','Appendix 3B','2583438','','','');
headlines[5] = new headline('Feb 17, 2010','8:53','MMZ','Heads of Agreement with Hot Shot Media Pty Ltd','2582838','','','');
headlines[6] = new headline('Feb 15, 2010','9:46','MMZ','Trading Halt','2582564','','','');
headlines[7] = new headline('Feb 12, 2010','12:56','MMZ','Conversion of Convertible Note','2582459','','','');
headlines[8] = new headline('Feb 11, 2010','18:46','MMZ','Appendix 3B - Final Partly Paid Shares Conversion','2582358','','','');
headlines[9] = new headline('Feb 1, 2010','16:44','MMZ','Appendix 3B','2581168','','','');


///// 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>")
}
