// browser detection

var ns4=document.layers;
var ns6=document.getElementById&&!document.all;
var ie4=document.all;


// get object, cross browser friendly
function getById(id)
{
	if (ns4) return document[id];
	else if (ns6) return document.getElementById(id);
	else if (ie4) return document.all(id);
}


// hover "over" script for submit buttons or other objects
function hltOver(t, clr, showurl, cursor) {
	if (t.style.backgroundColor != clr) {
		t.revertColor = t.style.backgroundColor;
	}
	t.style.backgroundColor = clr;
	if(cursor)t.style.cursor = cursor; else t.style.cursor='hand';
	if(showurl)window.status = showurl;
}


// hover "out" script for submit buttons or other objects
function hltOut(t) {
	try { t.style.backgroundColor = t.revertColor; }
	catch (e) {}
	t.revertColor = null;
	window.status = '';
}

