var timeout=45;
//var marqueewidth=screen.width-20;
var marqueewidth=window.innerWidth-1;
var marqueeheight=18
var speed=4
var marqueecontents='Linux, Unix and Perl training, course materials and consultancy around the world ......';

function regenerate2(){
  if(document.all) return;
  intializemarquee()
}

function intializemarquee(){

	document.getElementById('box').innerHTML='<div id="cmarqueecontent" style="position:absolute; left:0; top:0;"><nobr>'+marqueecontents+'</nobr><\/div>';
	thelength=document.getElementById('cmarqueecontent').offsetWidth;	
	document.getElementById('cmarqueecontent').style.left=marqueewidth;	

	scrollit()  
}

function scrollit(){
	if(document.getElementById('cmarqueecontent').offsetLeft >= thelength*(-1)*2)
	{
		document.getElementById('cmarqueecontent').style.left = document.getElementById('cmarqueecontent').offsetLeft - speed;
		setTimeout("scrollit()",timeout)
	}
	else
	{
		document.getElementById('cmarqueecontent').style.left=marqueewidth
		setTimeout("scrollit()",timeout)  
	}
}

if ( navigator.appName == "Microsoft Internet Explorer" )
{
	document.write('<div style="font-size:10pt; color: yellow; position:absolute; left:1px; top:530px;"><marquee>'+marqueecontents+'</marquee></div>');
}
else
{
	window.onload=regenerate2			
	document.write('<div id="box" style="font-size:10pt; color: yellow; position:absolute; left:1px; top:530px; height: '+marqueeheight+'px; width:'+marqueewidth+'px;clip: rect(0px,'+marqueewidth+'px, '+marqueeheight+'px, 0px); overflow:hidden;"></div>');
}
