//Информация о броузере
function browserInformation()
{
//Свойства
	this.userAgent = navigator.userAgent.toLowerCase();
	this.isIE = ((this.userAgent.indexOf("msie") != -1) && (this.userAgent.indexOf("opera") == -1));
	this.isOpera = (this.userAgent.indexOf("opera") != -1);
	this.isMAC = (this.userAgent.indexOf("mac") != -1);
	this.isGecko = (navigator.product == "Gecko");
	this.isMozilla = this.isGecko;
	this.isFireFox = false;
	if (this.isGecko == true || this.isMozilla == true)
	{
		this.isFireFox = (this.userAgent.indexOf("firefox") != -1);
	}
	this.versionName = navigator.appVersion.toString();
	this.versionNumber = 0;
	if (this.isIE == true)
	{
		this.versionNumber = toFloat(this.userAgent.replace(/^.*msie\s(\d{1,3}\.\d{1,5});.*$/igm, "$1"), 0);
	}
	else if (this.isOpera == true)
	{
		this.versionNumber = toFloat(this.userAgent.replace(/^.*opera(\s|\/)(\d{1,3}\.\d{1,5}).*$/igm, "$2"), 0);
	}
	else if (this.isFireFox == true)
	{
		this.versionNumber = toFloat(this.userAgent.replace(/^.*\sfirefox\/(\d{1,3}\.\d{1,5}).*$/igm, "$1"), 0);
	}
	else if (this.isGecko == true || this.isMozilla == true)
	{
		this.versionNumber = toFloat(this.userAgent.replace(/^.*;\srv:(\d{1,3}\.\d{1,5}).*$/igm, "$1"), 0);
	}
	this.language = null;
	this.isHTTP = null;
	
//Методы
    this.init = init;

//Инициализация
    function init()
    {
        this.language = (document.body && document.body.getAttribute("lang") != "" ) ? document.body.getAttribute("lang") : "ru";
	    this.isHTTP = (document.location.href.indexOf("http://") == 0) ? true : false;
    }
}