//Interval in ms
tInterval   = 20;

tWidth = '500';
tHeight = '30';

if(tContent == undefined) {
	tContent = 'NEWS +++ NEWS +++ NEWS +++';
}

if(tLink == undefined) {
	tLink = 'news.html';
}

/* * * * * * * * * * * * * * * * * * D E R  T I C K E R * * * * * * * * * * * * * * * * * * * * * */
IE  = document.all&&!window.opera;
DOM = document.getElementById&&!IE;

if(IE) {
	document.write('<div style="overflow: hidden; width: '+tWidth+'px; height: '+tHeight+'px;"><marquee>' +
	'<a href="'+tLink+'"><span id="tickertext">'+tContent+'<span></a></marquee></div>');
} else if(DOM) {
	document.write('<div style="overflow: hidden; width: '+tWidth+'px; height: '+tHeight+'px;>' +
	'<div style="position: absolute; width: '+tWidth+'px; height: 30px; overflow: hidden; clip: rect (0px '+tWidth+'px '+tHeight+'px 0px);")' +
	'<a href="'+tLink+'"><span id="tickertext" style="white-space:nowrap;position:relative;">' +
	tContent + '</span></a></div></div>');
	tPos  = 0;
	tGo=setInterval('DM_ticken()',tInterval);
}

function DM_ticken() {
	tObj = document.getElementById('tickertext');
	tPos = parseInt(tPos)-2;
	tObj.style.left = tPos+'px';
	
	if(tPos < -400) {
		tPos = tWidth;
	}
}     

