

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('30 May, 2011','11:26','STU','Removal from Official List','5183239','','','');
headlines[1] = new headline('19 May, 2011','18:56','STU','SXY: Senex completes compulsory acquisition of Stuart shares','5183152','','','');
headlines[2] = new headline('09 May, 2011','8:27','STU','Final Director`s Interest Notice','5183035','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/stuartpetroleum/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 renderHeadlinesList2()
{


		for (var i=0; i<headlines.length; i++) {
			var h = headlines[i];


			if (h.symbol == '') continue;

			document.write("	<h3>");
			document.write("	<a target='_blank' href='http://clients.weblink.com.au/clients/stuartpetroleum/article.asp?view=" + h.id + "'>" + h.headline );
			document.write("	</a>");
			document.write("	<em>");
						document.write(h.date);
			document.write("	</em></h3>");

		}
}

