// declare global variable to hold a reference to the 
// newsfeed marquee object.
var marquee;

function initNewsfeed()
{
	html = '';												
	html += '<ul class=siteupdate>';
	html += '<li><b>-- 19/1/2006 --</b>';
	html += '<li>&nbsp;Enhanced RSS 2.0 Reader.<br /><br />';
	html += '<li><b>-- 10/1/2006 --</b>';
	html += '<li>&nbsp;Created RSS feed 2.0.<br /><br />';
	html += '<li><b>-- 18/12/2005 --</b>';
	html += '<li>&nbsp;Photogallery is ready.<br /><br />';
	html += '<li><b>-- 21/10/2005 --</b>';
	html += '<li>&nbsp;Chit Chat Center is ready.';
	html += '<li>&nbsp;Updated "My Interests" &nbsp;section.<br /><br />';
	html += '<li><b>-- 11/10/2005 --</b>';
	html += '<li>&nbsp;Main page is nearly done.';
	html += '<li>&nbsp;Image slide show ready.<br /><br />';
	html += '<li><b>-- 10/10/2005 --</b>';
	html += '<li>&nbsp;Site layout done.';
	html += '<li>&nbsp;Adding pictures.';
	html += '</ul>';
	
	writeNewsfeed(html, 180, 100);			

	// start the marquee when the page has loaded.
	marquee.start();
}

function myDocWrite() {
  	newsfeedDIV = document.getElementById("newsfeed");
  	newsfeedDIV.innerHTML = myDocWrite.arguments[0];
}

function writeNewsfeed(html, width, height)
{
	document.write = myDocWrite;
	marquee = new xbMarquee('marquee01', height, width, 1, 70, 'up', 'scroll',  html);
	document.write = null;

	marquee.onmouseover = function () { this.stop(); };
	marquee.onmouseout  = function () { this.start(); };
}
