var Authentication=function() {
Authentication.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Authentication.prototype={
Login:function(Email,Password,succeededCallback, failedCallback, userContext) {
return this._invoke(Authentication.get_path(), 'Login',false,{Email:Email,Password:Password},succeededCallback,failedCallback,userContext); },
Logout:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Authentication.get_path(), 'Logout',false,{},succeededCallback,failedCallback,userContext); }}
Authentication.registerClass('Authentication',Sys.Net.WebServiceProxy);
Authentication._staticInstance = new Authentication();
Authentication.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Authentication._staticInstance._path = value; }
Authentication.get_path = function() { return Authentication._staticInstance._path; }
Authentication.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
Authentication._staticInstance._timeout = value; }
Authentication.get_timeout = function() { 
return Authentication._staticInstance._timeout; }
Authentication.set_defaultUserContext = function(value) { 
Authentication._staticInstance._userContext = value; }
Authentication.get_defaultUserContext = function() { 
return Authentication._staticInstance._userContext; }
Authentication.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Authentication._staticInstance._succeeded = value; }
Authentication.get_defaultSucceededCallback = function() { 
return Authentication._staticInstance._succeeded; }
Authentication.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Authentication._staticInstance._failed = value; }
Authentication.get_defaultFailedCallback = function() { 
return Authentication._staticInstance._failed; }
Authentication.set_path("/WebServices/Authentication.asmx");
Authentication.Login= function(Email,Password,onSuccess,onFailed,userContext) {Authentication._staticInstance.Login(Email,Password,onSuccess,onFailed,userContext); }
Authentication.Logout= function(onSuccess,onFailed,userContext) {Authentication._staticInstance.Logout(onSuccess,onFailed,userContext); }
