

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/02/2012','17:20','GXL','Ceasing to be a substantial holder','4239327','','','');
headlines[1] = new headline('01/02/2012','10:17','GXL','Acquisition - Maitland Vet Hospital','4239296','','','');
headlines[2] = new headline('25/01/2012','11:39','GXL','Change of Director`s Interest Notice','4239100','','','');
headlines[3] = new headline('07/12/2011','14:45','GXL','Acquisition Pakenham - Completion','4238204','','','');
headlines[4] = new headline('02/12/2011','9:36','GXL','Acquisition Barolin Vet Hospital - Completion','4238042','','','');
headlines[5] = new headline('15/11/2011','14:40','GXL','Acquisition - Morwell, Barolin and Pakenham','4237320','','','');
headlines[6] = new headline('14/11/2011','15:31','GXL','Director Appointment and Appendix 3X','4237273','','','');
headlines[7] = new headline('14/11/2011','12:44','GXL','Shareholders Newsletter - Issue 1','4237270','','','');
headlines[8] = new headline('25/10/2011','12:41','GXL','Acquisition Hurstbridge - Completion','4236400','','','');
headlines[9] = new headline('25/10/2011','12:36','GXL','Results of Meeting','4236399','','','');
headlines[10] = new headline('25/10/2011','11:48','GXL','Chairman`s Address to Shareholders','4236396','','','');
headlines[11] = new headline('13/10/2011','9:33','GXL','Open Briefing - CEO on FY2012 Outlook and Strategy','4236003','','','');
headlines[12] = new headline('26/09/2011','15:56','GXL','Investor Presentation September 2011','4235486','','','');
headlines[13] = new headline('23/09/2011','15:55','GXL','Notice of Annual General Meeting/Proxy Form','4235450','','','');
headlines[14] = new headline('22/09/2011','15:39','GXL','Appendix 3B','4235401','','','');
headlines[15] = new headline('21/09/2011','8:29','GXL','Completion - Livingstone Road Animal Health Centre','4235349','','','');
headlines[16] = new headline('19/09/2011','12:23','GXL','Change of Director`s Interest Notice - Amended','4235296','','','');
headlines[17] = new headline('16/09/2011','9:27','GXL','Dividend Payment Details/ Appendix 3B/ Appendix 3Y','4235246','','','');
headlines[18] = new headline('13/09/2011','8:47','GXL','Acquisition - Hurstbridge','4235149','','','');
headlines[19] = new headline('06/09/2011','8:27','GXL','Dividend Details - DRP Share Price','4234977','','','');


///// 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>")
}

