

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('23/10/2008','16:28','WWA','Change of Director`s Interest Notice','2526151','','','');
headlines[1] = new headline('23/10/2008','16:02','WWA','Results of Meeting','2526127','','','');
headlines[2] = new headline('23/10/2008','11:09','WWA','Chairman`s Address to Shareholders','2526033','','','');
headlines[3] = new headline('29/09/2008','16:43','WWA','Change of Director`s Interest Notice','2522745','','','');
headlines[4] = new headline('19/09/2008','15:59','WWA','Annual Report to shareholders','2521503','','','');
headlines[5] = new headline('19/09/2008','15:55','WWA','Notice of Annual General Meeting/Proxy Form','2521501','','','');
headlines[6] = new headline('19/09/2008','15:55','WWA','Notice of Annual General Meeting/Proxy Form','2521502','','','');
headlines[7] = new headline('29/08/2008','12:44','WWA','Letter to Shareholders on Final Year Results','2518572','','','');
headlines[8] = new headline('21/08/2008','10:51','WWA','Media Release','2516947','','','');
headlines[9] = new headline('21/08/2008','10:46','WWA','Chairman`s Announcement','2516945','','','');
headlines[10] = new headline('21/08/2008','10:45','WWA','Preliminary Final Report and Full Year Statutory Accounts','2516944','','','');
headlines[11] = new headline('16/07/2008','12:54','WWA','Profit Forecast Full Year 2008','2512779','','','');
headlines[12] = new headline('17/06/2008','12:40','WWA','Change of Phone and Fax Numbers','2509157','','','');
headlines[13] = new headline('17/06/2008','12:04','WWA','Change of Registered Offices','2509151','','','');
headlines[14] = new headline('21/02/2008','10:32','WWA','Media Release','2493870','','','');
headlines[15] = new headline('21/02/2008','10:31','WWA','Half Yearly Report and Accounts','2493868','','','');
headlines[16] = new headline('21/02/2008','10:31','WWA','Chairmans Statement','2493869','','','');
headlines[17] = new headline('25/01/2008','17:09','WWA','Change of Director`s Interest Notice','2490588','','','');
headlines[18] = new headline('16/01/2008','12:18','WWA','Profit Forecast Half Year','2489382','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/wridgways/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/wridgways/article.asp?view=" + h.id + "'>" + h.headline + "</td>");
		document.write("	</tr>");
		
	}
	document.write("	</tbody>")
	document.write("</table>")
}
