

function headline(date, time, symbol, headline, id,pages)
{
	// Represents a headline object
	this.date = date;
	this.time = time;
	this.symbol = symbol;
	this.headline = headline;
	this.id = id;
	this.pages = pages;
}

///// Data values /////
var headlines = new Array();

headlines[0] = new headline('12/06/2009','16:05','SHE','Rights Issue Offer Document','6449675','10','','');
headlines[1] = new headline('12/06/2009','14:44','SHE','Letter to Optionholders - Non-Renounceable Rights Issue','6449643','2','','');
headlines[2] = new headline('12/06/2009','14:44','SHE','Notifcation under Section 708AA','6449645','1','','');
headlines[3] = new headline('12/06/2009','14:38','SHE','Letter to Shareholders - Non Renounceable Rights Issue','6449642','2','','');
headlines[4] = new headline('11/06/2009','18:15','SHE','Notice of Pro-Rata Non Renounceable Rights Issue','6449551','1','','');
headlines[5] = new headline('11/06/2009','18:14','SHE','Appendix 3B','6449550','8','','');
headlines[6] = new headline('11/06/2009','17:36','SHE','Becoming a substantial holder','6449547','2','','');
headlines[7] = new headline('11/06/2009','16:30','SHE','Cleansing Statement','6449534','2','','');
headlines[8] = new headline('11/06/2009','16:29','SHE','Appendix 3B','6449531','8','','');
headlines[9] = new headline('11/06/2009','16:11','SHE','Exploration Update and Divestment of Heemskirk Tin Project','6449530','3','','');
headlines[10] = new headline('10/06/2009','16:07','SHE','Placement','6449385','1','','');
headlines[11] = new headline('09/06/2009','18:59','SHE','Divestment of Heemskirk Tin Mining and Processing Operation','6449304','1','','');
headlines[12] = new headline('06/05/2009','16:37','SHE','Change in substantial holding','6446091','2','','');
headlines[13] = new headline('28/04/2009','17:31','SHE','Quarterly Cashflow Report','6444622','5','','');
headlines[14] = new headline('28/04/2009','17:27','SHE','Quarterly Activities Report','6444620','2','','');
headlines[15] = new headline('16/03/2009','18:06','SHE','Half Year Accounts - Re-released','6441076','15','','');
headlines[16] = new headline('12/03/2009','18:46','SHE','Half Year Accounts','6440638','15','','');
headlines[17] = new headline('30/01/2009','10:58','SHE','Quarterly Activities Report','6436286','3','','');
headlines[18] = new headline('29/01/2009','16:51','SHE','Quarterly Cashflow Report','6436155','5','','');
headlines[19] = new headline('23/01/2009','10:56','SHE','Change of Office holders - Appendix 3x and 3z','6435615','5','','');
headlines[20] = new headline('12/12/2008','14:01','SHE','Appendix 3B','6432940','9','','');
headlines[21] = new headline('17/11/2008','13:34','SHE','Results of Meeting - Amended','6429600','2','','');
headlines[22] = new headline('17/11/2008','8:26','SHE','Results of Meeting','6429548','2','','');
headlines[23] = new headline('05/11/2008','10:28','SHE','Tin Production Update','6428529','1','','');
headlines[24] = new headline('30/10/2008','14:25','SHE','Quarterly Activities Report','6427440','7','','');
headlines[25] = new headline('30/10/2008','14:25','SHE','Quarterly Cashflow Report','6427441','5','','');
headlines[26] = new headline('16/10/2008','16:02','SHE','Notice of Annual General Meeting/Proxy Form','6424945','9','','');
headlines[27] = new headline('01/10/2008','8:34','SHE','Annual Report to shareholders','6423041','69','','');
headlines[28] = new headline('29/09/2008','12:23','SHE','Tin Production and Mandiodo Update - Amended','6422550','2','','');
headlines[29] = new headline('29/09/2008','11:57','SHE','Tin Production and Mandiodo Update','6422548','2','','');
headlines[30] = new headline('03/09/2008','15:02','SHE','Final Director`s Interest Notice','6419763','2','','');
headlines[31] = new headline('03/09/2008','15:00','SHE','Resignation of Director','6419762','1','','');
headlines[32] = new headline('31/07/2008','13:34','SHE','Quarterly Activity Report','6415938','11','','');
headlines[33] = new headline('31/07/2008','13:34','SHE','Quarterly Cash Flow','6415939','5','','');
headlines[34] = new headline('21/07/2008','10:27','SHE','Mill Refurbishment Completed','6414372','2','','');
headlines[35] = new headline('04/07/2008','9:42','SHE','Final Director`s Interest Notice','6412677','2','','');
headlines[36] = new headline('18/06/2008','16:03','SHE','Mill Commissioning and Investor Update','6410656','4','','');
headlines[37] = new headline('29/05/2008','9:10','SHE','Appendix 3B','6408508','9','','');
headlines[38] = new headline('27/05/2008','12:44','SHE','CFO Broadcast','6408232','1','','');
headlines[39] = new headline('23/05/2008','12:16','SHE','Sunshine Lead Zinc Silver Resource Estimate','6407891','2','','');
headlines[40] = new headline('15/05/2008','18:38','SHE','Mandiodo Nickel Exploration Permit','6407123','2','','');
headlines[41] = new headline('14/05/2008','9:23','SHE','Appendix 3B','6406865','9','','');
headlines[42] = new headline('01/05/2008','11:30','SHE','Boardroom Radio Interview','6405429','2','','');
headlines[43] = new headline('30/04/2008','16:50','SHE','Interview with Managing Director','6405115','2','','');
headlines[44] = new headline('30/04/2008','11:29','SHE','Quarterly Activities Report','6404805','11','','');
headlines[45] = new headline('29/04/2008','19:21','SHE','Quarterly Cashflow Report','6404638','5','','');
headlines[46] = new headline('21/04/2008','9:59','SHE','Maiden Inferred Resource and Investor Update','6403350','3','','');
headlines[47] = new headline('17/04/2008','17:21','SHE','Mandiodo Nickel Permits','6403124','3','','');
headlines[48] = new headline('03/04/2008','14:54','SHE','Opes Prime Update','6401259','2','','');
headlines[49] = new headline('14/03/2008','15:55','SHE','Half Yearly Report and Accounts','6399241','26','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/stonehengemetals/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<font color=red>Sample</font></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 = 'SHE';
		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/stonehengemetals/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + " </a></td><td><a target='_blank' href='http://clients.weblink.com.au/clients/stonehengemetals/article.asp?asx="+ asxcode +"&view=" + h.id + "'><img align='middle' src='http://clients.weblink.com.au/clients/stonehengemetals/pdf.gif' alt='pdf icon' />("+h.pages+ " pages)"+"</a></td>");
		document.write("	</tr>");

	}
	document.write("	</tbody>")
	document.write("</table>")
}
