

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('08/02/2012','9:56','ABU','Old Pirate Trenching Extends to 726 metres @ 24.01g/t Gold','6577381','','','');
headlines[1] = new headline('06/02/2012','9:53','ABU','Completes Share Placement Section 708A Notice and App 3B','6577100','','','');
headlines[2] = new headline('31/01/2012','10:15','ABU','Broadcast - ABM activities and capital raising update','6575878','','','');
headlines[3] = new headline('30/01/2012','16:36','ABU','Quarterly Activities and Cashflow Report','6575680','','','');
headlines[4] = new headline('30/01/2012','9:45','ABU','Share Placement Success','6575496','','','');
headlines[5] = new headline('25/01/2012','9:53','ABU','Technical and Corporate Update January 2012','6575104','','','');
headlines[6] = new headline('25/01/2012','9:41','ABU','Trading Halt','6575094','','','');
headlines[7] = new headline('20/01/2012','9:40','ABU','ABM and Tanami Gold enter Memorandum of Understanding','6574622','','','');
headlines[8] = new headline('20/01/2012','9:39','ABU','TAM: Tanami Gold NL and ABM enter MOU','6574621','','','');
headlines[9] = new headline('19/01/2012','9:59','ABU','Impressive Drill Results from Buccaneer Porphyry','6574508','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/ABMResources/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='wlNews' cellpadding=0 cellspacing=0>");
    document.write("<tr><td>");  
	document.write("<table class='wlNewsTable'>");
	document.write("	<thead>");
	document.write("		<tr>");
	document.write("			<th>Date</th>");
	document.write("			<th>Time</th>");
	document.write("			<th align=left>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 = 'ABU';
		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/ABMResources/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + "</td>");
		document.write("	</tr>");
		
	}
	document.write("	</tbody>")
	document.write("</table>")
	document.write("</tr></td>");  
	document.write("</table>")
}

