/*
* HP - EN
* created: 3/4/2009
* generic functions
*/

function getBrowser()
{
	var tmp = {};
	tmp.useragt = navigator.userAgent;
//alert(navigator.appName)
	tmp.NS4=(navigator.appName=='Netscape') ? 1:0;
	tmp.W3C=(document.getElementById) ? 1:0;
	tmp.IE4=(document.all) ? 1:0;
	tmp.FF=(tmp.useragt.indexOf('Firefox')>-1) ? 1:0;
	if (tmp.useragt.indexOf('MSIE')>-1)
	{ 
		tmp.msie = true; 
		tmp.IEver = parseInt(tmp.useragt.substr(tmp.useragt.indexOf('MSIE')+5,4));
	} else {
	    tmp.msie = false;
		tmp.IEver=null;
	}
	return tmp;
}

