

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('28/11/2008','10:23','MMX','Chameleon Litgation Update','2531754','','','');
headlines[1] = new headline('27/11/2008','17:58','MMX','CHM: Litigation Update','2531731','','','');
headlines[2] = new headline('24/11/2008','18:09','MMX','Audio Broadcast','2530989','','','');
headlines[3] = new headline('21/11/2008','15:13','MMX','Results of Annual General Meeting of Shareholders','2530731','','','');
headlines[4] = new headline('21/11/2008','12:08','MMX','AGM Chairman`s Address and Presentations','2530682','','','');
headlines[5] = new headline('18/11/2008','12:09','MMX','POSCO lifts shareholding in Murchison','2530052','','','');
headlines[6] = new headline('17/11/2008','18:04','MMX','Change in substantial holding','2529933','','','');
headlines[7] = new headline('31/10/2008','18:08','MMX','Change of Director`s Interest Notice','2527799','','','');
headlines[8] = new headline('31/10/2008','8:46','MMX','Response to ASX Price Query','2527524','','','');
headlines[9] = new headline('30/10/2008','18:32','MMX','Audio Broadcast','2527500','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/Murchison/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>Date</th>");
	document.write("			<th>Time</th>");
	document.write("			<th>ASX Announcements</th>");
	document.write("		</tr>");
	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";
        var asxcode = 'MMX';
		if (h.symbol == '') continue;

		document.write("	<tr class='" + cls + "'>");
		document.write("		<td>" + h.date + "</td>");
		document.write("		<td>" + h.time + "</td>");
		document.write("		<td align=left><a target='_blank' href='http://clients.weblink.com.au/clients/Murchison/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + "</td>");
		document.write("	</tr>");
		
	}
	document.write("	</tbody>")
	document.write("</table>")
}
