

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('29/08/2008','11:44','ABS','Market Update','4202665','','','');
headlines[1] = new headline('27/08/2008','14:29','ABS','AEU: Market update','4202512','','','');
headlines[2] = new headline('25/08/2008','17:07','ABS','Suspension from Official Quotation','4202411','','','');
headlines[3] = new headline('21/08/2008','18:04','ABS','Trading Halt','4202318','','','');
headlines[4] = new headline('13/08/2008','9:18','ABS','CPU: Acquisition of Busy Bees Childcare Vouchers Ltd','4202007','','','');
headlines[5] = new headline('13/08/2008','9:13','ABS','Sale of UK Voucher Business','4202006','','','');
headlines[6] = new headline('05/08/2008','9:17','ABS','Board Appointments','4201831','','','');
headlines[7] = new headline('31/07/2008','8:53','ABS','Market Update','4201611','','','');
headlines[8] = new headline('21/07/2008','18:34','ABS','IMF (Australia) Limited - New Funding Agreement','4201297','','','');
headlines[9] = new headline('21/07/2008','16:16','ABS','IMF: New Funding Agreement - Shareholders v ABC','4201295','','','');


///// 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>")
}
