

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('25/02/2010','20:05','ACW','Appendix 4D Half Yearly Report and Accounts','6481911','','','');
headlines[1] = new headline('11/02/2010','12:57','ACW','New Biodegradable Shopping Bags and many other products','6480205','','','');
headlines[2] = new headline('29/01/2010','16:36','ACW','Appendix 4C - quarterly','6478670','','','');
headlines[3] = new headline('24/11/2009','15:06','ACW','Results of Annual General Meeting','6470687','','','');
headlines[4] = new headline('30/10/2009','20:23','ACW','Appendix 4C - quarterly','6467550','','','');
headlines[5] = new headline('27/10/2009','11:35','ACW','Actinogen Team Member awarded UWA Gold Medal','6465970','','','');
headlines[6] = new headline('22/10/2009','20:20','ACW','2009 Annual Report','6465299','','','');
headlines[7] = new headline('22/10/2009','20:16','ACW','Notice of Annual General Meeting','6465298','','','');
headlines[8] = new headline('22/10/2009','20:15','ACW','Letter to shareholders re AGM and Annual Report','6465296','','','');
headlines[9] = new headline('01/10/2009','14:38','ACW','Appendix 3B','6462454','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/actinogen/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("	<tbody>")

	for (var i=0; i<headlines.length; i++) {
		var h = headlines[i];
		var cls = (i%2 == 0) ? "even" : "odd";
        var asxcode = 'ACW';
		if (h.symbol == '') continue;

		document.write("	<tr class='" + cls + "'>");
		document.write("		<td align=left><font size = 2><b>" + h.date + "</b></font><br>"  + h.headline + "  "+ "<br><a target='_blank' href='http://clients.weblink.com.au/clients/actinogen/article.asp?asx="+ asxcode +"&view=" + h.id + "'>READ MORE</a>"+ "</td>");
		document.write("	</tr>");

	}
	document.write("	</tbody>")
	document.write("</table>")
}
