

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('09/01/2012','9:26','IRI','Profit Guidance - Six months ending 31 December 2011','2663223','','','');
headlines[1] = new headline('05/01/2012','16:50','IRI','Appendix 3Y','2663095','','','');
headlines[2] = new headline('05/01/2012','16:49','IRI','Appendix 3B','2663093','','','');
headlines[3] = new headline('23/12/2011','12:12','IRI','Appendix 3B','2662379','','','');
headlines[4] = new headline('19/12/2011','12:12','IRI','Appendix 3B','2661546','','','');
headlines[5] = new headline('21/11/2011','20:03','IRI','IRI 2011 AGM - Results of Meeting','2657666','','','');
headlines[6] = new headline('21/11/2011','20:01','IRI','IRI Ltd AGM 2011 - Chairmans Address to Shareholders','2657664','','','');
headlines[7] = new headline('21/11/2011','19:58','IRI','IR Ltd AGM Presentation 2011','2657663','','','');
headlines[8] = new headline('20/10/2011','17:16','IRI','Notice of Annual General Meeting 2011','2653539','','','');
headlines[9] = new headline('20/10/2011','17:14','IRI','Annual Report to Shareholders FY2011','2653537','','','');
headlines[10] = new headline('06/09/2011','9:39','IRI','Appendix 3B','2647677','','','');
headlines[11] = new headline('26/08/2011','16:38','IRI','Financial Statements 2011','2646160','','','');
headlines[12] = new headline('18/08/2011','18:03','IRI','Results Briefing - FY2011','2644883','','','');
headlines[13] = new headline('18/08/2011','18:02','IRI','Market Release - Results for FY2011','2644882','','','');
headlines[14] = new headline('18/08/2011','18:01','IRI','Appendix 4E - 30 June 2011','2644881','','','');
headlines[15] = new headline('07/07/2011','11:02','IRI','FY2011 Profit Guidance','2640197','','','');
headlines[16] = new headline('31/05/2011','9:57','IRI','Appendix 3B','2636228','','','');
headlines[17] = new headline('14/04/2011','17:28','IRI','Appendix 3B','2631451','','','');
headlines[18] = new headline('21/02/2011','9:50','IRI','Correction to Record Date for Dividend','2624475','','','');
headlines[19] = new headline('18/02/2011','8:24','IRI','Results Briefing 1st Half FY2011','2624259','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/IRI/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 goP(page) {
				window.location = '?PageNumber=' + (page);
			}

function renderHeadlinesList2()
{

	document.write("<table class='wlNewsTable'>");
		document.write("	<thead>");
		document.write("		<tr>");
		document.write("			<th>Date</th>");
		//document.write("			<th>Time</th>");
		document.write("			<th>Headline</th>");
		document.write("			<th>PDF</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 = 'IRI';
			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/IRI/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + "</a></td>");
			document.write("		<td><a target='_blank' href='http://clients.weblink.com.au/clients/IRI/article.asp?asx="+ asxcode +"&view=" + h.id + "'><img src='http://clients.weblink.com.au/clients/IRI/icon_pdf.gif'  alt='View PDF' border='0' /></a></td>");
			document.write("	</tr>");

		}
		document.write("	</tbody>")
	document.write("</table>")


    document.write("<table class='wlpageTable' >")
    document.write("<tr>")
    
	document.write("<td >")
	document.write("				")
	 document.write("   <b>1</b>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(2);'>2</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(3);'>3</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(4);'>4</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(5);'>5</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(6);'>6</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(7);'>7</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(8);'>8</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(9);'>9</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(10);'>10</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(11);'>11</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(12);'>12</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(13);'>13</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(14);'>14</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(15);'>15</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(16);'>16</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(17);'>17</a>")
	
	document.write("<td >")
	document.write("				")
	
	document.write("			<a href='javascript:goP(18);'>18</a>")
	
    document.write("                 ")
	document.write("			</td>")

	 
	document.write("<td>")
	document.write("				<a href='javascript:goP(2);'><img src='http://clients.weblink.com.au/clients/IRI/next_icon.gif' alt='Next page' border='0' /></a>")
	document.write("			</td>")
	
	document.write("		</tr>")
    document.write("</table>")
 
}

