

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('09/09/2010','9:13','GXL','Change of Director`s Interest Notice','4223775','','','');
headlines[1] = new headline('30/08/2010','17:04','GXL','Notice of Annual General Meeting/Proxy Form','4223414','','','');
headlines[2] = new headline('30/08/2010','8:48','GXL','Acquisition Completed - Caloundra','4223370','','','');
headlines[3] = new headline('27/08/2010','11:35','GXL','Acquisition - Brookvale Veterinary Hospital','4223317','','','');
headlines[4] = new headline('26/08/2010','17:01','GXL','Becoming a substantial holder','4223286','','','');
headlines[5] = new headline('26/08/2010','16:35','GXL','Becoming a substantial holder','4223283','','','');
headlines[6] = new headline('26/08/2010','15:37','GXL','Acquisition - Babtec Victorian Assets','4223279','','','');
headlines[7] = new headline('16/08/2010','10:49','GXL','Announcement - Caloundra','4222869','','','');
headlines[8] = new headline('13/08/2010','12:13','GXL','Preliminary Final Report and Annual Report','4222831','','','');
headlines[9] = new headline('10/08/2010','12:01','GXL','Appendix 3B','4222726','','','');
headlines[10] = new headline('03/08/2010','15:32','GXL','Share Purchase Plan Shareholder Documents','4222620','','','');
headlines[11] = new headline('30/07/2010','16:16','GXL','Placement','4222522','','','');
headlines[12] = new headline('29/07/2010','9:55','GXL','Trading Halt','4222421','','','');
headlines[13] = new headline('01/07/2010','14:18','GXL','Director Appointment and Appendix 3X','4221749','','','');
headlines[14] = new headline('11/05/2010','8:58','GXL','Acquisition - Babtec Holdings Pty Ltd','4220570','','','');
headlines[15] = new headline('01/04/2010','12:32','GXL','Change of Director`s Interest Notice','4219631','','','');
headlines[16] = new headline('16/03/2010','13:04','GXL','ACQUISITION','4219111','','','');
headlines[17] = new headline('16/03/2010','10:33','GXL','Trading Halt','4219092','','','');
headlines[18] = new headline('11/03/2010','13:50','GXL','Investor Presentation March 2010','4218987','','','');
headlines[19] = new headline('26/02/2010','9:41','GXL','Half Yearly Report and Accounts','4218554','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/greencrossvet/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 = 'GXL';
		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/greencrossvet/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + "</td>");
		document.write("	</tr>");

	}
	document.write("	</tbody>")
	document.write("</table>")
}
