

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('Feb 2, 2012','15:13','MMZ','Notice of Extraordinary General Meeting/Proxy Form','2665631','','','');
headlines[1] = new headline('Feb 2, 2012','12:47','MMZ','Appendix 3B','2665606','','','');
headlines[2] = new headline('Jan 31, 2012','13:13','MMZ','Appendix 4C - quarterly','2665211','','','');
headlines[3] = new headline('Jan 27, 2012','10:22','MMZ','Appendix 3B','2664820','','','');
headlines[4] = new headline('Jan 25, 2012','11:23','MMZ','Appendix 3B','2664678','','','');
headlines[5] = new headline('Jan 16, 2012','10:31','MMZ','ASX Appendix 3Y query and response','2663866','','','');
headlines[6] = new headline('Jan 16, 2012','8:24','MMZ','Appendix 3B corrected','2663836','','','');
headlines[7] = new headline('Jan 12, 2012','19:41','MMZ','Change in substantial holding','2663663','','','');
headlines[8] = new headline('Jan 12, 2012','19:41','MMZ','Change of Director`s Interest Notice','2663664','','','');
headlines[9] = new headline('Jan 12, 2012','19:40','MMZ','Change of Director`s Interest Notice','2663662','','','');


///// 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>")
}

