

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/01/2012','10:27','WWM','Daily share buy-back notice - Appendix 3E','3368376','','','');
headlines[1] = new headline('25/01/2012','11:07','WWM','Daily share buy-back notice - Appendix 3E','3368337','','','');
headlines[2] = new headline('11/01/2012','14:22','WWM','ASIC form 484 - Change to company details','3367885','','','');
headlines[3] = new headline('23/12/2011','11:07','WWM','Business Announcement - rent roll divestment','3367487','','','');
headlines[4] = new headline('15/12/2011','10:29','WWM','Results of Extraordinary Meeting','3366895','','','');
headlines[5] = new headline('29/11/2011','10:48','WWM','Results of 2011 Annual General Meeting','3365875','','','');
headlines[6] = new headline('24/11/2011','17:06','WWM','ASIC for 484 - change to company details','3365598','','','');
headlines[7] = new headline('22/11/2011','9:05','WWM','Daily share buy-back notice - Appendix 3E','3365255','','','');
headlines[8] = new headline('17/11/2011','10:52','WWM','Daily share buy-back notice - Appendix 3E','3364965','','','');
headlines[9] = new headline('16/11/2011','9:35','WWM','Extraordinary General Meeting - Independent Expert Report','3364867','','','');
headlines[10] = new headline('16/11/2011','9:33','WWM','Notice of Extraordinary General Meeting/Proxy Form','3364866','','','');
headlines[11] = new headline('11/11/2011','11:40','WWM','Daily share buy-back notice - Appendix 3E','3364617','','','');
headlines[12] = new headline('10/11/2011','10:30','WWM','Daily share buy-back notice - Appendix 3E','3364548','','','');
headlines[13] = new headline('27/10/2011','10:39','WWM','Daily share buy-back notice - Appendix 3E','3363604','','','');
headlines[14] = new headline('26/10/2011','18:20','WWM','Notice of Annual General Meeting/Proxy Form','3363559','','','');
headlines[15] = new headline('26/10/2011','18:19','WWM','Notice of Annual General Meeting/Proxy Form','3363558','','','');
headlines[16] = new headline('21/10/2011','9:35','WWM','Announcement of buy-back - Appendix 3C','3363158','','','');
headlines[17] = new headline('19/10/2011','18:01','WWM','Final share buy-back notice - Appendix 3F','3363039','','','');
headlines[18] = new headline('14/10/2011','18:45','WWM','Proposed Asset Sale','3362768','','','');
headlines[19] = new headline('26/09/2011','9:41','WWM','Annual Report to shareholders','3361544','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/wentworth/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' width=230 >");
	document.write("	<thead>");
	document.write("		<tr>");
	document.write("			<th>Date</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" : "even";
        var asxcode = 'WWM';
       var buffer;
       buffer=" " 
		if (h.symbol == '') continue;

		document.write("	<tr class='" + cls + "'>");
		document.write("		<td>" + h.date + "</td>");
		document.write("		<td><a target='_blank' href='http://clients.weblink.com.au/clients/wentworth/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + "</td>");
		document.write("	</tr>");
		if (cls="even")
		{
		    cls="odd"
		}
		else
		{
		    cls="even"
		}
		document.write("	<tr class='" + cls + "'>");
		document.write("		<td><div style='color:white'>test</div></td>");
		document.write("		<td></td>");
		document.write("	</tr>");
		
	}
	document.write("	</tbody>")
	document.write("</table>")
}

