

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('31/01/2012','15:40','RHT','Appendix 4C - quarterly','6576192','','','');
headlines[1] = new headline('12/12/2011','19:09','RHT','Newsletter','6571106','','','');
headlines[2] = new headline('09/12/2011','14:17','RHT','Patent Application Lodged for MRI Measurement of Fatty Liver','6570897','','','');
headlines[3] = new headline('05/12/2011','16:34','RHT','Resonance Health appoints Middle East distributor','6570278','','','');
headlines[4] = new headline('16/11/2011','18:08','RHT','Results of Meeting','6566961','','','');
headlines[5] = new headline('16/11/2011','11:45','RHT','Managing Director`s Address to Shareholders','6566853','','','');
headlines[6] = new headline('31/10/2011','14:48','RHT','Appendix 4C - quarterly','6564334','','','');
headlines[7] = new headline('17/10/2011','17:08','RHT','Notice of Annual General Meeting/Proxy Form','6561612','','','');
headlines[8] = new headline('17/10/2011','17:07','RHT','Annual Report to shareholders','6561610','','','');
headlines[9] = new headline('28/09/2011','13:20','RHT','Full Year Statutory Accounts','6558876','','','');
headlines[10] = new headline('31/08/2011','14:49','RHT','Preliminary Final Report','6555290','','','');
headlines[11] = new headline('08/08/2011','13:23','RHT','Appendix 3Y','6552505','','','');
headlines[12] = new headline('03/08/2011','9:16','RHT','FDA clearance to market cardiac iron test in USA','6552054','','','');
headlines[13] = new headline('01/08/2011','9:26','RHT','Change in address of office premises','6551726','','','');
headlines[14] = new headline('29/07/2011','14:56','RHT','Appendix 4C - monthly','6551273','','','');
headlines[15] = new headline('23/05/2011','10:56','RHT','RHT Develops Accurate Fatty Liver Diagnostic Test','6542629','','','');
headlines[16] = new headline('29/04/2011','15:42','RHT','Appendix 4C - quarterly','6539674','','','');
headlines[17] = new headline('28/03/2011','13:45','RHT','Presentation at Small Cap Showcase Expo 2011','6535165','','','');
headlines[18] = new headline('10/03/2011','12:31','RHT','Expands Master Service Agreement with Novartis','6532875','','','');
headlines[19] = new headline('25/02/2011','13:04','RHT','Half Yearly Report and Accounts','6530792','','','');
headlines[20] = new headline('11/02/2011','15:18','RHT','RHT signs agreement with Pfizer','6528659','','','');
headlines[21] = new headline('31/01/2011','17:02','RHT','Appendix 4C - quarterly','6526935','','','');
headlines[22] = new headline('21/01/2011','17:03','RHT','RHT Gains Worldwide Exclusive License','6525360','','','');
headlines[23] = new headline('18/01/2011','10:23','RHT','Response to ASX Query re Appendix 3Z','6524777','','','');
headlines[24] = new headline('14/01/2011','15:30','RHT','FerriScan Reimbursement Update','6524531','','','');
headlines[25] = new headline('12/01/2011','15:51','RHT','Final Director`s Interest Notice','6524304','','','');
headlines[26] = new headline('20/12/2010','18:16','RHT','Securities Trading Policy','6521458','','','');
headlines[27] = new headline('17/12/2010','8:24','RHT','Board Changes','6520963','','','');
headlines[28] = new headline('22/11/2010','17:00','RHT','Change of Director`s Interest Notice','6516390','','','');
headlines[29] = new headline('22/11/2010','16:45','RHT','Appendix 3B','6516383','','','');
headlines[30] = new headline('17/11/2010','14:45','RHT','Results of Annual General Meeting','6515713','','','');
headlines[31] = new headline('17/11/2010','12:15','RHT','Resonance Health Announces new FerriScan contracts','6515658','','','');
headlines[32] = new headline('17/11/2010','10:47','RHT','AGM Presentation to Shareholders','6515635','','','');
headlines[33] = new headline('29/10/2010','19:54','RHT','Appendix 4C - quarterly','6513254','','','');
headlines[34] = new headline('13/10/2010','14:22','RHT','Annual Report to shareholders','6509290','','','');
headlines[35] = new headline('13/10/2010','13:45','RHT','Notice of Annual General Meeting/Proxy Form','6509277','','','');
headlines[36] = new headline('06/10/2010','15:23','RHT','Resonance Health Announces Agreement with Novartis','6508394','','','');
headlines[37] = new headline('29/09/2010','15:21','RHT','Financial Report','6507162','','','');
headlines[38] = new headline('30/08/2010','11:05','RHT','Preliminary Final Report','6503218','','','');
headlines[39] = new headline('30/07/2010','14:19','RHT','Appendix 4C - quarterly','6499793','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/resonancehealth/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";

		if (h.symbol == '') continue;

		document.write("	<tr class='" + cls + "'>");
		document.write("		<td>" + h.date + "</td>");
		document.write("		<td>" + h.time + "</td>");
		document.write("		<td><a target='_blank' href='http://clients.weblink.com.au/clients/resonancehealth/article.asp?view=" + h.id + "'>" + h.headline + "</td>");
		document.write("	</tr>");
		
	}
	document.write("	</tbody>")
	document.write("</table>")
}

