//Информация о броузере
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;
    }
}