////////////////////////////////////////////////////////////////////////////////////////////////////
//
//	function_global.js : global javascript functions for calculator
//
////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//	browser functions
////////////////////////////////////////////////////////////////////////////////////////////////////

function browserType ()
{
	var browser = ' ' + navigator.userAgent.toLowerCase ();

	this.OP	 = true	     && (browser.indexOf ('opera') > 0);
	this.IE  = !this.OP  && (browser.indexOf ('msie')  > 0);
	this.NS  = !this.OP  && !this.IE;

	this.OP6 = true	     && ((browser.indexOf ('opera 6')	> 0) || (browser.indexOf ('opera/6')	> 0));
	this.OP6 = this.OP6  || ((browser.indexOf ('opera 7')	> 0) || (browser.indexOf ('opera/7')	> 0));
	this.IE6 = !this.OP6 && (browser.indexOf  ('msie 6')	> 0);
	this.NS6 = true	     && ((browser.indexOf ('netscape6') > 0) || (browser.indexOf ('netscape/7') > 0));
	this.NS6 = this.NS6  || ((browser.indexOf ('firefox')	> 0) || (browser.indexOf ('safari')	> 0));

	this.DOM = true      && document.getElementById;

	return this;
}

////////////////////////////////////////////////////////////////////////////////////////////////////
//	global variables
////////////////////////////////////////////////////////////////////////////////////////////////////

var isBrowser = new browserType;

////////////////////////////////////////////////////////////////////////////////////////////////////
//
//	function_global.js : global javascript functions for calculator
//
////////////////////////////////////////////////////////////////////////////////////////////////////