

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('10/03/2010','8:24','ARU','WA Media Presentation - Nolans update','6483323','','','');
headlines[1] = new headline('09/03/2010','9:59','ARU','ARU invited to present to the USGS','6483206','','','');
headlines[2] = new headline('09/03/2010','9:59','ARU','Business update - US presentations','6483204','','','');
headlines[3] = new headline('26/02/2010','13:21','ARU','s708A Secondary Trading Notice','6482031','','','');
headlines[4] = new headline('25/02/2010','15:01','ARU','Rights Issue - Notification Letters to Shareholders','6481840','','','');
headlines[5] = new headline('25/02/2010','12:53','ARU','Replacement Appendix 3B','6481794','','','');
headlines[6] = new headline('23/02/2010','19:27','ARU','Appendix 3B','6481473','','','');
headlines[7] = new headline('23/02/2010','19:20','ARU','Renounceable Issue Prospectus','6481472','','','');
headlines[8] = new headline('23/02/2010','19:19','ARU','Placement settlement and Renounceable Issue','6481471','','','');
headlines[9] = new headline('23/02/2010','19:11','ARU','Appendix 3B','6481470','','','');
headlines[10] = new headline('22/02/2010','18:57','ARU','Jervois LOI Lapse','6481279','','','');
headlines[11] = new headline('19/02/2010','10:19','ARU','Capital Raising Update','6481015','','','');
headlines[12] = new headline('17/02/2010','10:40','ARU','New Capital Raising','6480754','','','');
headlines[13] = new headline('15/02/2010','9:58','ARU','Trading Halt','6480467','','','');
headlines[14] = new headline('01/02/2010','18:10','ARU','BBY Rare Earth Conference February 2010','6479142','','','');
headlines[15] = new headline('29/01/2010','15:59','ARU','December 2009 Activities and Cash Flow Report','6478623','','','');
headlines[16] = new headline('15/01/2010','9:06','ARU','Response to ASX Price Query','6476761','','','');
headlines[17] = new headline('12/01/2010','8:26','ARU','Investor Presentation January 2010','6476439','','','');
headlines[18] = new headline('06/01/2010','13:36','ARU','Open Briefing - CEO Priorities and Vision 2010','6476068','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/Arafura/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 renderHeadlinesList2()
{
	document.write("<table class='wlNewsTable'>");
	document.write("	<thead>");
	document.write("		<tr align=left>");
	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 = 'ARU';
		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/Arafura/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + "</td>");
		document.write("	</tr>");

	}
	document.write("	</tbody>")
	document.write("</table>")
}
