Type.registerNamespace('Selecta')

Selecta.LoginPage = function(element)
{
    Selecta.LoginPage.initializeBase(this, [element]);    
}

Selecta.LoginPage.prototype =
{
    get_isWindows2000OrLess : function()
    {
        if (this._isWindows2000OrLess == null)
            this._isWindows2000OrLess = false;
            
        return this._isWindows2000OrLess;
    },
    set_isWindows2000OrLess : function(value)
    {
        this._isWindows2000OrLess = value == '1';
    },
    load : function()
    {
        $get('login').style.display =
            Silverlight.isInstalled('4.0.50401.0') ? 
                'block' :
                (this.get_isWindows2000OrLess() ? 'block' : 'none');

        $get('notSilverlight').style.display =
            Silverlight.isInstalled('4.0.50401.0') ? 
                'none' :
                (this.get_isWindows2000OrLess() ? 'none' : 'block');

        $get('win2000Message').style.display = this.get_isWindows2000OrLess() ? 'block' : 'none'; 
        $get('loginForm_DropShadow').style.visibility = this.loginForm.style.visibility = 'visible';

        Selecta.LoginPage.callBaseMethod(this, 'load');
    }
}

Selecta.LoginPage.registerClass('Selecta.LoginPage', Selecta.Page);

if (typeof(Sys) !== "undefined") Sys.Application.notifyScriptLoaded();
