

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('(03 July 2009)','12:45','MOS','Top 20 Shareholders','2556114','','','');
headlines[1] = new headline('(01 July 2009)','10:54','MOS','Weekly Operations Update 1 July 2009','2555733','','','');
headlines[2] = new headline('(30 June 2009)','9:28','MOS','Managing Director Update','2555485','','','');
headlines[3] = new headline('(24 June 2009)','12:30','MOS','Weekly Operations Update 23 June 2009','2554891','','','');
headlines[4] = new headline('(17 June 2009)','10:19','MOS','Weekly Operations Update 17 June 2009','2553971','','','');
headlines[5] = new headline('(10 June 2009)','12:18','MOS','Appendix 3B - FInal Re Exercise MOSO Options','2553257','','','');
headlines[6] = new headline('(10 June 2009)','10:22','MOS','Weekly Operations Update 10 June 2009','2553235','','','');
headlines[7] = new headline('(03 June 2009)','10:35','MOS','Weekly Operations Update','2552665','','','');
headlines[8] = new headline('(28 May 2009)','13:42','MOS','Appendix 3B - Exercise of MOSO Options','2552152','','','');
headlines[9] = new headline('(27 May 2009)','9:59','MOS','Weekly Operations Update 27 May 2009','2551934','','','');
headlines[10] = new headline('(26 May 2009)','9:36','MOS','Underground Gas Storage discussions and technical evaluation','2551793','','','');
headlines[11] = new headline('(21 May 2009)','9:18','MOS','Appendix 3B - Exercise of MOSO Options','2551411','','','');
headlines[12] = new headline('(20 May 2009)','11:02','MOS','Weekly Operations Update','2551282','','','');
headlines[13] = new headline('(13 May 2009)','10:23','MOS','Weekly Operations Update','2550520','','','');
headlines[14] = new headline('(11 May 2009)','12:42','MOS','Appendix 3B - Exercise of MOSO Options','2550203','','','');
headlines[15] = new headline('(11 May 2009)','9:37','MOS','Acting Chief Executive Officer - Tim Petersen','2550150','','','');
headlines[16] = new headline('(11 May 2009)','9:29','MOS','Final Director`s Interest Notice - Lan Nguyen','2550148','','','');
headlines[17] = new headline('(06 May 2009)','10:00','MOS','Weekly Operations Update','2549659','','','');
headlines[18] = new headline('(30 April 2009)','14:11','MOS','Letter to MOSO Optionholders - Expiry of Options 31 May 09','2549031','','','');
headlines[19] = new headline('(29 April 2009)','11:23','MOS','March 2009 Quarterly Reports','2548777','','','');
headlines[20] = new headline('(15 April 2009)','11:09','MOS','Boardroom Radio - Andy Rigg at the Excellence in Oil and Gas','2547345','','','');
headlines[21] = new headline('(14 April 2009)','9:20','MOS','MOS commits to 2009 Drilling Program in Surat Bowen-Basin','2547129','','','');
headlines[22] = new headline('(07 April 2009)','10:13','MOS','Presentation to the Excellence in Oil and Gas Conference','2546656','','','');
headlines[23] = new headline('(07 April 2009)','9:58','MOS','Appendix 3B- Employee Incentive Plan Options','2546654','','','');
headlines[24] = new headline('(06 April 2009)','9:56','MOS','Acquistion of Santos` Interest in the Surat Bowen Basin','2546506','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/mosaicoil/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></th>");
	document.write("			<th></th>");
	document.write("			<th></th>");
	document.write("		</tr>");
	document.write("	</thead>")
	document.write("	<tbody>")

	for (var i=0; i<headlines.length; i++) {
		var h = headlines[i];
		var cls = "headlinenews";
        var asxcode = 'MOS';
		if (h.symbol == '') continue;

		document.write("	<tr class='" + cls + "'>");
		document.write("		<td colspan=3 align=left><a target='_blank' href='http://clients.weblink.com.au/clients/mosaicoil/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + "</td>");
		document.write("	</tr>");
		document.write("	<tr>");
		document.write("		<td align=left colspan =3>" + h.date + "<br><br></td>");
		document.write("	</tr>");


	}
	document.write("	</tbody>")
	document.write("</table>")
}
