

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','19:33','PIM','Change in substantial holding','6575429','','','');
headlines[1] = new headline('27 January 12','19:09','PIM','Quarterly Activities Report','6575426','','','');
headlines[2] = new headline('27 January 12','19:05','PIM','Quarterly Cashflow Report','6575425','','','');
headlines[3] = new headline('06 January 12','13:13','PIM','Rights Issue Update','6573433','','','');
headlines[4] = new headline('08 December 11','12:20','PIM','Becoming a substantial holder','6570728','','','');
headlines[5] = new headline('02 December 11','17:11','PIM','Renounceable Rights Issue Prospectus','6570081','','','');
headlines[6] = new headline('01 December 11','12:25','PIM','Notice Under Section 708A (5) of Corporations Act','6569798','','','');
headlines[7] = new headline('30 November 11','17:12','PIM','Rights Issue - Information for Shareholders','6569574','','','');
headlines[8] = new headline('29 November 11','19:32','PIM','Renounceable Rights Issue Prospectus','6569252','','','');
headlines[9] = new headline('29 November 11','17:01','PIM','Initial Director`s Interest Notice','6569203','','','');
headlines[10] = new headline('28 November 11','20:07','PIM','Placement, Renounceable Offer and Appendix 3B','6568956','','','');
headlines[11] = new headline('28 November 11','14:17','PIM','Appointment of Director','6568815','','','');
headlines[12] = new headline('28 November 11','14:08','PIM','Results of Meeting','6568812','','','');
headlines[13] = new headline('27 October 11','13:48','PIM','Quarterly Cashflow Report','6563548','','','');
headlines[14] = new headline('27 October 11','13:21','PIM','Quarterly Activities Report','6563526','','','');
headlines[15] = new headline('26 October 11','18:10','PIM','Notice of Annual General Meeting/Proxy Form','6563295','','','');
headlines[16] = new headline('28 September 11','15:17','PIM','Annual Report to shareholders','6558895','','','');
headlines[17] = new headline('27 July 11','15:37','PIM','Quarterly Cashflow Report','6550539','','','');
headlines[18] = new headline('27 July 11','15:37','PIM','Quarterly Activities Report','6550540','','','');
headlines[19] = new headline('27 April 11','15:44','PIM','Quarterly Cashflow Report','6538844','','','');
headlines[20] = new headline('27 April 11','15:44','PIM','Quarterly Activities Report','6538845','','','');
headlines[21] = new headline('03 March 11','16:33','PIM','Half Yearly Accounts','6531925','','','');
headlines[22] = new headline('27 January 11','13:54','PIM','Quarterly Activities Report','6525963','','','');
headlines[23] = new headline('25 January 11','14:25','PIM','Quarterly Cashflow Report','6525714','','','');
headlines[24] = new headline('21 December 10','18:07','PIM','Securities Trading Policy','6521771','','','');
headlines[25] = new headline('30 November 10','17:19','PIM','Ceasing to be a substantial holder for PWW','6518257','','','');
headlines[26] = new headline('12 November 10','15:35','PIM','Results of Meeting','6515097','','','');
headlines[27] = new headline('28 October 10','15:39','PIM','Quarterly Activities Report','6512313','','','');
headlines[28] = new headline('25 October 10','16:57','PIM','Quarterly Cashflow Report','6511306','','','');
headlines[29] = new headline('11 October 10','14:57','PIM','Notice of Annual General Meeting/Proxy Form','6508908','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/primeminerals/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 = 'PIM';
		if (h.symbol == '') continue;

		document.write("	<tr class='" + cls + "'>");
		document.write("		<td align=left><a target='_blank' href='http://clients.weblink.com.au/clients/primeminerals/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>")
}

