
// - highlight cell function
function mouseovertd (o){o.style.backgroundColor="#D9D8c0"}
function mouseouttd  (o){o.style.backgroundColor="#FFFFFF"}
var ie=(document.all)?1:0;	var ns=(document.layers)?1:0;
function LightOn(what){if (ie) what.id='buttonon';else return;}
function LightOut(what){if (ie) what.id='buttonoff';else return;}

//- extrnal window function

	
function Start(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=450,height=450");
}


function openNewWindow(theURL,winName,features)
{window.open(theURL,winName,features);}

function resizeWindow(width,height){
	if (document.layers) {
		// resizeTo sets inner size, so use this instead
		window.outerWidth = width;
		window.outerHeight = height;		
	} else window.resizeTo(width,height);
}

function centerWindow(width,height){
	x = (window.screen.availWidth-width)/2;
	y = (window.screen.availHeight-height)/2;
	resizeWindow(width,height);
	window.moveTo(x,y);
}

var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari"
else if (checkIt('omniweb')) browser = "OmniWeb"
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab"
else if (checkIt('msie')) browser = "Internet Explorer"
else if (checkIt('firefox')) browser = "Firefox"
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator"
	version = detect.charAt(8);
}
else browser = "An unknown browser";

if (!version) version = detect.charAt(place + thestring.length);

if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac"
	else if (checkIt('win')) OS = "Windows"
	else OS = "an unknown operating system";
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

