/*
$RCSfile: browser.js,v $ $Revision: 1.1.1.1 $ in tag $Name:  $
last committed $Date: 2006/11/20 03:39:30 $
  core.js
============================================================
When   		Who   	What
------------------------------------------------------------
2005-07-14  amm   	Created
============================================================

Notes:
Browser specific functions

*/

function get_browser() {

	var agent = navigator.userAgent.toLowerCase();
	var browser_name;

	if (agent.indexOf("msie") != -1) {
		browser_name = "IE";
	}
	else {
		browser_name = "";
	}
	
	return(browser_name);
}


/*  ---------------------------------------------------------------------------
link_click,nolines()
-------------------------------------------------------------------------------
Funny little functions to force a browser not to display the black dotted line
around a link when it's clicked with the mouse.  Just call link_bind() at the
bottom of any file.
---------------------------------------------------------------------------  */
function link_click() {
	this.onFocus= this.blur();
}

function link_nolines() {
	for (var i= document.links.length; i-->0;) {
		document.links[i].onmousedown= link_click;
		document.links[i].onmouseup= link_click;
	}
}