﻿__ModalDialogue_version = 1;

///<Documentation>
///<Class name="Browser">
///<Constructor>
///<summary>Browser constructor</summary>
Browser = function(){}
///</Constructor>

///<Methods>
///<Method name="GetType">
///<summary>Gets the current type of browser (IE, FireFox, etc)</summary>
///<returns>void</returns>
Browser.prototype.GetType = function() 
{
    return navigator.appName;
}
///</Method>

///<Method name="GetVersion">
///<summary>Gets the current type of browser. This currently only works for IE</summary>
///<returns>void</returns>
Browser.prototype.GetVersion = function() 
{
    var rv = -1; 
    if (navigator.appName == 'Microsoft Internet Explorer') 
    {
        var ua = navigator.userAgent;
        var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
        if (re.exec(ua) != null)
            rv = parseFloat(RegExp.$1);
    }
    return rv;
}
///</Method>

///<Method name="GetVersion">
///<summary>Gets the current type of browser. This currently only works for IE</summary>
///<returns>void</returns>
Browser.prototype.IsSupported = function() 
{
    if (navigator.appName != 'Microsoft Internet Explorer')
        return false;

    if (this.GetVersion < 7.0)
        return false;

    return true;
}
///</Method>
///</Methods>
///</Class>

