

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('31/01/2012','9:05','ACW','BIOFUEL PROGRAM UPDATE','6575839','','','');
headlines[1] = new headline('27/01/2012','12:16','ACW','Appendix 4C - quarterly','6575320','','','');
headlines[2] = new headline('16/12/2011','12:13','ACW','Change of Director`s Interest Notice','6571683','','','');
headlines[3] = new headline('07/12/2011','17:28','ACW','Update on the Biofuel Research Program','6570612','','','');
headlines[4] = new headline('18/11/2011','15:55','ACW','Results of Meeting','6567361','','','');
headlines[5] = new headline('18/11/2011','10:41','ACW','AGM Presentation 2011','6567274','','','');
headlines[6] = new headline('09/11/2011','19:37','ACW','Change in substantial holding','6566034','','','');
headlines[7] = new headline('09/11/2011','12:18','ACW','Actinogen New Discovery in the Biofuel Research Program','6565952','','','');
headlines[8] = new headline('27/10/2011','13:38','ACW','Appendix 4C - quarterly','6563539','','','');
headlines[9] = new headline('17/10/2011','20:20','ACW','Change in substantial holding','6561673','','','');


///// 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>")
}

