var marker;
var tablewidth=document.width;// In NS6 this actually gives us the window width. But for some strange reason unless this line is here the next line by itself doesn't work with NS6.
tablewidth=document.getElementById("thetable").offsetWidth;
if (navigator.userAgent.indexOf("IE")!=-1)marker=((document.body.clientWidth)-tablewidth)/2;
else{
	if(document.getElementById("thetable").offsetHeight > window.innerHeight){
		marker=((window.innerWidth-tablewidth)/2)-6;}// 6 is a good value for the chrome in NS6, i.e. the vertical scrollbar's width.
	else {marker=((window.innerWidth-tablewidth)/2)}
}
if (marker<0)marker=0;
//alert (marker);
//alert (tablewidth);

