

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('27 January 12','18:08','PWW','Quarterly Cashflow Report','6575410','','','');
headlines[1] = new headline('27 January 12','18:08','PWW','Quarterly Activities Report','6575411','','','');
headlines[2] = new headline('21 December 11','12:46','PWW','Appendix 5B','6572241','','','');
headlines[3] = new headline('28 November 11','14:34','PWW','Results of Meeting','6568822','','','');
headlines[4] = new headline('17 November 11','15:11','PWW','Appendix 5B','6567128','','','');
headlines[5] = new headline('27 October 11','13:43','PWW','Quarterly Cashflow Report','6563544','','','');
headlines[6] = new headline('27 October 11','13:15','PWW','Quarterly Activities Report','6563521','','','');
headlines[7] = new headline('26 October 11','17:50','PWW','Notice of Annual General Meeting/Proxy Form','6563293','','','');
headlines[8] = new headline('30 September 11','13:33','PWW','Appendix 5B','6559394','','','');
headlines[9] = new headline('28 September 11','15:58','PWW','Annual Report to shareholders','6558905','','','');
headlines[10] = new headline('19 September 11','13:31','PWW','Waiver from Listing Rule 6.24','6557677','','','');
headlines[11] = new headline('13 September 11','18:49','PWW','Project Acquisitions','6557015','','','');
headlines[12] = new headline('29 July 11','13:57','PWW','Quarterly Cashflow Report','6551209','','','');
headlines[13] = new headline('29 July 11','13:57','PWW','Quarterly Activities Report','6551213','','','');
headlines[14] = new headline('20 July 11','14:12','PWW','Tenement Acquisition','6549646','','','');
headlines[15] = new headline('09 June 11','16:12','PWW','Becoming a substantial holder','6544892','','','');
headlines[16] = new headline('27 April 11','13:56','PWW','Quarterly Activities Report','6538822','','','');
headlines[17] = new headline('27 April 11','13:55','PWW','Quarterly Cashflow Report','6538820','','','');
headlines[18] = new headline('25 February 11','17:19','PWW','Half Yearly Accounts','6530909','','','');
headlines[19] = new headline('14 February 11','15:09','PWW','Becoming a substantial holder','6528865','','','');
headlines[20] = new headline('11 February 11','12:30','PWW','Change in substantial holding','6528612','','','');
headlines[21] = new headline('11 February 11','12:25','PWW','Appendix 3B','6528610','','','');
headlines[22] = new headline('25 January 11','14:25','PWW','Quarterly Cashflow Report','6525716','','','');
headlines[23] = new headline('21 January 11','17:12','PWW','Quarterly Activities Report','6525362','','','');
headlines[24] = new headline('21 December 10','18:07','PWW','Securities Trading Policy','6521772','','','');
headlines[25] = new headline('16 December 10','15:57','PWW','Sale of Ketildian Project, Greenland','6520889','','','');
headlines[26] = new headline('30 November 10','17:19','PWW','Ceasing to be a substantial holder from PIM','6518256','','','');
headlines[27] = new headline('12 November 10','16:43','PWW','Results of Meeting','6515109','','','');
headlines[28] = new headline('28 October 10','14:59','PWW','Quarterly Activities Report','6512282','','','');
headlines[29] = new headline('25 October 10','17:02','PWW','Quarterly Cashflow Report','6511308','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/powerresources/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 = 'PWW';
		if (h.symbol == '') continue;

		document.write("	<tr class='" + cls + "'>");
		document.write("		<td align=left><a target='_blank' href='http://clients.weblink.com.au/clients/powerresources/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + "</a><br>");
		document.write(h.date + "<p></td>");
		//document.write("		<td>" + h.time + "</td>");
		document.write("	</tr>");

	}
	document.write("	</tbody>")
	document.write("</table>")
}

