if (typeof Ferengi == "undefined") {
    var Ferengi = {
        Version: "1.0"
    };
    Ferengi.namespace = function() {
        var a = arguments,
			o = null,
			i, j, d;
        for (i = 0; i < a.length; ++i) {
            d = a[i].split(".");
            o = Ferengi;
            for (j = (d[0] == "Ferengi") ? 1 : 0; j < d.length; ++j) {
                o[d[j]] = o[d[j]] || {};
                o = o[d[j]];
            }
        }
        return o;
    };
};
Ferengi.namespace("Pxp");
// Creating a class
Ferengi.Pxp.Login = new Class({
    Implements: Options,
    options: {
        Id: ""
    },
    initialize: function(options) {
        this.setOptions(options);
        // initialize commands goes here
    }

});


Ferengi.Pxp.Login.implement({

    IsLoginButton: function(o) {
        return $defined($('ctl00_Head_LoginBar1_LinkIniciarSecion'))
    }
, NeedsAuthentication: function(o) {
    var Out = o.getAttribute("NeedsAuthentication") == "true" && this.IsLoginButton();
    if (Out) { LoginShow() };
    return Out;
}

});
