

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('02/07/2009','16:20','AVE','Appendix 3B','2555991','','','');
headlines[1] = new headline('22/05/2009','15:51','AVE','Final Director`s Interest Notice','2551593','','','');
headlines[2] = new headline('12/05/2009','17:55','AVE','Ceasing to be a substantial holder','2550437','','','');
headlines[3] = new headline('01/05/2009','16:23','AVE','Director Appointment/Resignation','2549289','','','');
headlines[4] = new headline('26/03/2009','17:53','AVE','DRP Pricing','2545458','','','');
headlines[5] = new headline('11/02/2009','8:55','AVE','Media Release: Half Yearly Results','2539276','','','');
headlines[6] = new headline('11/02/2009','8:55','AVE','Half Yearly Results Presentation','2539278','','','');
headlines[7] = new headline('11/02/2009','8:54','AVE','Half Yearly Report and Accounts','2539277','','','');
headlines[8] = new headline('11/02/2009','8:48','AVE','Half Yearly Report and Accounts','2539271','','','');
headlines[9] = new headline('29/01/2009','17:35','AVE','Updated guidance','2537835','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/aevum/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 = 'AVE';
		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/aevum/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + "</td>");
		document.write("	</tr>");
		
	}
	document.write("	</tbody>")
	document.write("</table>")
}
