

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('26/06/2009','9:09','ABS','FUN: Sale of Business Units and Update','4211482','','','');
headlines[1] = new headline('24/06/2009','9:20','ABS','Media Statement - 19 June 2009','4211403','','','');
headlines[2] = new headline('19/06/2009','9:21','ABS','AEU: Unitholder Update','4211306','','','');
headlines[3] = new headline('04/06/2009','17:18','ABS','Media Release - 4 June 09','4210969','','','');
headlines[4] = new headline('04/06/2009','11:02','ABS','Response to ASX Query re LR3.19A','4210948','','','');
headlines[5] = new headline('22/05/2009','17:33','ABS','Change in substantial holding','4210617','','','');
headlines[6] = new headline('18/05/2009','9:08','ABS','Media Release - 15 May 2009','4210417','','','');
headlines[7] = new headline('08/05/2009','12:20','ABS','Director Appointment/Resignation','4210208','','','');
headlines[8] = new headline('08/05/2009','8:54','ABS','Letter to Shareholders and Noteholders - 08 May 2009','4210194','','','');
headlines[9] = new headline('15/04/2009','12:19','ABS','AEU: Australian Education Trust (AET) - Unitholder Update','4209432','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/childcare/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("	</thead>")
		document.write("	<tbody>")

		for (var i=0; i<headlines.length; i++) {
			var h = headlines[i];
			var cls = (i%2 == 0) ? "even" : "odd";

			if (h.symbol == '') continue;

			document.write("	<tr class='" + cls + "'>");
			document.write("		<td>");
			document.write('		<img src ="showcat4.gif" align="bottom"  alt="Pointer">');
			document.write("		</td>");
			document.write("		<td><br>");
			document.write(h.date);
			document.write("		<br>");
			document.write("		<a target='_blank' href='http://clients.weblink.com.au/clients/childcare/article.asp?view=" + h.id + "'>" + h.headline );
			document.write("		</td>");
			document.write("	</tr>");

		}
		document.write("	</tbody>")
	document.write("</table>")
}
