

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('16/03/2010','18:30','IRM','Half Year Accounts','6484262','','','');
headlines[1] = new headline('16/03/2010','11:12','IRM','Maiden Wandoo 7.15Mt Inferred High Grade Bauxite Resource','6484114','','','');
headlines[2] = new headline('02/03/2010','13:11','IRM','AUD$1m second Mt Richardson payment received from Cliffs AP','6482366','','','');
headlines[3] = new headline('29/01/2010','19:21','IRM','Quarterly Activities Report','6478878','','','');
headlines[4] = new headline('29/01/2010','18:30','IRM','Quarterly Cashflow Report','6478812','','','');
headlines[5] = new headline('12/01/2010','17:40','IRM','Change of Director`s Interest Notice','6476519','','','');
headlines[6] = new headline('12/01/2010','16:24','IRM','Change of Director`s Interest Notice','6476505','','','');
headlines[7] = new headline('08/01/2010','17:09','IRM','Iron Mountain Top 20 Shareholders post Aluminex takeover','6476309','','','');
headlines[8] = new headline('07/01/2010','18:16','IRM','Appendix 3B','6476215','','','');
headlines[9] = new headline('18/12/2009','12:42','IRM','Appendix 3B','6474677','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/ironmountain/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("<ul>");

	for (var i=0; i<headlines.length; i++) {
		var h = headlines[i];
        var asxcode = 'IRM';
		if (h.symbol == '') continue;


		document.write("		<li><a target='_blank' href='http://clients.weblink.com.au/clients/ironmountain/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + " - " + h.date +"</li>");
		document.write("	</tr>");

	}
	document.write("</ul>")
}
