

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 8, 2008','11:16','MMZ','Agreement with Adap.tv','2504613','','','');
headlines[1] = new headline('May 6, 2008','11:03','MMZ','Section 708AA Notice for Share Placement','2504272','','','');
headlines[2] = new headline('May 6, 2008','11:00','MMZ','Appendix 3B for Rights Issue','2504270','','','');
headlines[3] = new headline('May 6, 2008','10:59','MMZ','Section 708A Nortice','2504268','','','');
headlines[4] = new headline('Apr 30, 2008','17:16','MMZ','Rights Issue Shortfall Notice','2503649','','','');
headlines[5] = new headline('Apr 30, 2008','17:12','MMZ','Appendix 4C - quarterly','2503644','','','');
headlines[6] = new headline('Apr 30, 2008','11:05','MMZ','Withdrawal of Amended Timetable for Rights Issue','2503496','','','');
headlines[7] = new headline('Apr 29, 2008','8:48','MMZ','Non-Renounceable Issue, Revised Timetable','2503203','','','');
headlines[8] = new headline('Apr 23, 2008','8:34','MMZ','Change of Director`s Interest Notice','2502678','','','');
headlines[9] = new headline('Apr 22, 2008','10:18','MMZ','CEO Update Letter to Shareholders','2502538','','','');


///// 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>")
}
