

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('15/03/2010','16:10','WWM','Business Announcement - New Banking Facility','3333815','','','');
headlines[1] = new headline('26/02/2010','11:20','WWM','Half Yearly Report and Accounts/Business Announcement','3333025','','','');
headlines[2] = new headline('26/02/2010','11:08','WWM','Change of Share Registry','3333023','','','');
headlines[3] = new headline('12/02/2010','15:37','WWM','Becoming a substantial holder - Vesture Limited','3332152','','','');
headlines[4] = new headline('02/02/2010','10:41','WWM','Becoming a substantial holder for Vesture Limited','3331737','','','');
headlines[5] = new headline('01/02/2010','14:30','WWM','Business announcement - strategic investment','3331691','','','');
headlines[6] = new headline('29/01/2010','13:46','WWM','Appendix 4C - quarterly and business announcement','3331577','','','');
headlines[7] = new headline('20/01/2010','15:41','WWM','Appendix 3B','3331242','','','');
headlines[8] = new headline('14/01/2010','8:56','WWM','Becoming a substantial holder','3331051','','','');
headlines[9] = new headline('18/12/2009','18:04','WWM','Change in Director interest','3330319','','','');
headlines[10] = new headline('18/12/2009','17:59','WWM','Appendix 3B','3330318','','','');
headlines[11] = new headline('16/12/2009','12:21','WWM','Investor update at AGM','3330092','','','');
headlines[12] = new headline('16/12/2009','12:19','WWM','Results of AGM','3330091','','','');
headlines[13] = new headline('12/11/2009','10:30','WWM','Notice of Annual General Meeting','3327862','','','');
headlines[14] = new headline('04/11/2009','12:05','WWM','Appendix 3B','3327399','','','');
headlines[15] = new headline('30/10/2009','15:47','WWM','Maiden dividend/Business update/ Appendix 4C','3327189','','','');
headlines[16] = new headline('30/10/2009','12:27','WWM','Notice of initial substantial holder from WAM','3327135','','','');
headlines[17] = new headline('20/10/2009','17:51','WWM','Change in substantial holding','3326342','','','');
headlines[18] = new headline('19/10/2009','15:09','WWM','Change in substantial holding','3326250','','','');
headlines[19] = new headline('16/10/2009','9:08','WWM','Appendix 3B','3326097','','','');


///// 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>")
}
