

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('29/08/2008','17:12','ENL','Final Director`s Interest Notice','6419211','','','');
headlines[1] = new headline('29/08/2008','17:02','ENL','Resignation of Managing Director','6419207','','','');
headlines[2] = new headline('29/08/2008','13:23','ENL','Appendix 3B','6419119','','','');
headlines[3] = new headline('18/08/2008','13:15','ENL','Release of Restricted Securities','6417822','','','');
headlines[4] = new headline('14/08/2008','11:53','ENL','Appendix 3B','6417548','','','');
headlines[5] = new headline('08/08/2008','13:29','ENL','Release of Restricted Securities','6417065','','','');
headlines[6] = new headline('31/07/2008','17:18','ENL','Quarterly Activities Report','6416140','','','');
headlines[7] = new headline('31/07/2008','12:30','ENL','Quarterly Cashflow Report','6415891','','','');
headlines[8] = new headline('22/07/2008','12:10','ENL','Release of Restricted Securities','6414549','','','');
headlines[9] = new headline('02/07/2008','12:13','ENL','Appendix 3B','6412333','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/eaglenickel/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>Document</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 = 'ENL';
		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/eaglenickel/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + "</td>");
		document.write("	</tr>");

	}
	document.write("	</tbody>")
	document.write("</table>")
}
