var jh = (("https:" == document.location.protocol) ? "https://" : "http://");
var hu = jh + 'www.domza5.hr/CorvusClient/';

Type.registerNamespace("Corvus.Foundation.Users");

Corvus.Foundation.Users.User = function(id){this.Id = id;this.Login = null;this.Extension = null;this.__sig = ["Id"];this.__type = "Corvus.Foundation.Users.User";this.id = id;
Corvus.Foundation.Users.User.initializeBase(this);}
var $User = Corvus.Foundation.Users.User;

$User.prototype = {GetCart : function(params,onSuccess, onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.GetCart$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,
ChangeMailAndPass : function(params,onSuccess, onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.ChangeMailAndPass$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,
ListUserAddresses : function(params,onSuccess, onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.ListUserAddresses$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,
ListUserGroups : function(params,onSuccess, onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.ListUserGroups$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,
ListActiveDomains : function(params,onSuccess, onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.ListActiveDomains$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,
ListRecentActions : function(params,onSuccess, onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.ListRecentActions$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,
ListUserGroupsInfo : function(params,onSuccess, onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.ListUserGroupsInfo$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,
AddToDomain : function(params,onSuccess, onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.AddToDomain$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,
RemoveFromDomain : function(params,onSuccess, onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.RemoveFromDomain$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,
ListSubscribedNewsletterLists : function(params,onSuccess, onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.ListSubscribedNewsletterLists$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,
CreateFriendRequest : function(params,onSuccess, onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.CreateFriendRequest$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,
ApproveFriendRequest : function(params,onSuccess, onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.ApproveFriendRequest$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,
RemoveFriendRequest : function(params,onSuccess, onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.RemoveFriendRequest$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,
ListPermissionInfo : function(params,onSuccess, onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.ListPermissionInfo$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,
GetUserInfo : function(params,onSuccess, onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.GetUserInfo$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,

getSig : function() {return $User.callBaseMethod(this, 'getSig');},
_SetData : function(onSuccess, onFailure, args, exp) {	 cfw_get(hu +'Corvus.Foundation.Users.User._SetData$$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args, this.Extension ? this.Extension.Expanders : null);}}
$User.CreateNew = function(params,onSuccess,onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.CreateNew$' + cfw_prepareParameters(params) + '$().ashx', onSuccess, onFailure, '', args);}
$User.ListAll = function(params,onSuccess,onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.ListAll$' + cfw_prepareParameters(params) + '$().ashx', onSuccess, onFailure, '', args);}
$User.Exists = function(params,onSuccess,onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.Exists$' + cfw_prepareParameters(params) + '$().ashx', onSuccess, onFailure, '', args);}
$User.GetLoggedUser = function(params,onSuccess,onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.GetLoggedUser$' + cfw_prepareParameters(params) + '$().ashx', onSuccess, onFailure, '', args);}
$User.RefreshSession = function(params,onSuccess,onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.RefreshSession$' + cfw_prepareParameters(params) + '$().ashx', onSuccess, onFailure, '', args);}
$User.LogOutCurrentUser = function(params,onSuccess,onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.LogOutCurrentUser$' + cfw_prepareParameters(params) + '$().ashx', onSuccess, onFailure, '', args);}
$User.ListByFirstLetters = function(params,onSuccess,onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.ListByFirstLetters$' + cfw_prepareParameters(params) + '$().ashx', onSuccess, onFailure, '', args);}
$User.Register = function(params,onSuccess,onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.Register$' + cfw_prepareParameters(params) + '$().ashx', onSuccess, onFailure, '', args);}
$User.RetrievePassword = function(params,onSuccess,onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.RetrievePassword$' + cfw_prepareParameters(params) + '$().ashx', onSuccess, onFailure, '', args);}
$User.Search = function(params,onSuccess,onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.Search$' + cfw_prepareParameters(params) + '$().ashx', onSuccess, onFailure, '', args);}
$User.LogOn = function(params,onSuccess,onFailure, args){	 return cfw_post(hu + 'Corvus.Foundation.Users.User.LogOn$' + cfw_prepareParameters(params) + '$().ashx', onSuccess, onFailure, '', args);}

$User.registerClass('Corvus.Foundation.Users.User',Corvus.JsBase.Base);

Type.registerNamespace("Corvus.Foundation.Web.JavaScript");

Corvus.Foundation.Web.JavaScript.ExpanderPrototype = function(target,extension){this.t = target;this.e = extension;this.__sig = ["Target","Extension"];this.__type = "Corvus.Foundation.Web.JavaScript.ExpanderPrototype";this.target = target;this.extension = extension;
Corvus.Foundation.Web.JavaScript.ExpanderPrototype.initializeBase(this);}

Corvus.Foundation.Web.JavaScript.ExpanderPrototype.prototype = {
getSig : function() {return Corvus.Foundation.Web.JavaScript.ExpanderPrototype.callBaseMethod(this, 'getSig');},
_SetData : function(onSuccess, onFailure, args, exp) {	 cfw_get(hu +'Corvus.Foundation.Web.JavaScript.ExpanderPrototype._SetData$$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args, this.Extension ? this.Extension.Expanders : null);}}

Corvus.Foundation.Web.JavaScript.ExpanderPrototype.registerClass('Corvus.Foundation.Web.JavaScript.ExpanderPrototype',Corvus.JsBase.Base);

Type.registerNamespace("Corvus.Net");

Corvus.Net.EMailAddress = function(address){this.Address = address;this.__sig = ["Address"];this.__type = "Corvus.Net.EMailAddress";this.address = address;
Corvus.Net.EMailAddress.initializeBase(this);}
var $EMail = Corvus.Net.EMailAddress;

$EMail.prototype = {
getSig : function() {return $EMail.callBaseMethod(this, 'getSig');},
_SetData : function(onSuccess, onFailure, args, exp) {	 cfw_get(hu +'Corvus.Net.EMailAddress._SetData$$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args, this.Extension ? this.Extension.Expanders : null);}}

$EMail.registerClass('Corvus.Net.EMailAddress',Corvus.JsBase.Base);

Type.registerNamespace("DomZa5.Components");

DomZa5.Components.NewsletterSubscription = function(){this.__sig = [];this.__type = "DomZa5.Components.NewsletterSubscription";
DomZa5.Components.NewsletterSubscription.initializeBase(this);}
var $NewsletterSubscription = DomZa5.Components.NewsletterSubscription;

$NewsletterSubscription.prototype = {
getSig : function() {return $NewsletterSubscription.callBaseMethod(this, 'getSig');},
_SetData : function(onSuccess, onFailure, args, exp) {	 cfw_get(hu +'DomZa5.Components.NewsletterSubscription._SetData$$($' + this.getSig() + '$).ashx', onSuccess, onFailure, 'sMvtlp36s4NDlbUm8Swfr00iO1nzbn6zTYsGRJtOLeP9H2UqMSBWfERTkZZceX1L5ZsXoMIY/1yNiwqWN8DEYM2Au/lCw0Oll9uKWNNyflx9dKT2F6czarETQddObtWE0v0yIoCPqnU=', args, this.Extension ? this.Extension.Expanders : null);}}
$NewsletterSubscription.Subscribe = function(params,onSuccess,onFailure, args){	 return cfw_post(hu + 'DomZa5.Components.NewsletterSubscription.Subscribe$' + cfw_prepareParameters(params) + '$().ashx', onSuccess, onFailure, 'sMvtlp36s4NDlbUm8Swfr00iO1nzbn6zTYsGRJtOLeP9H2UqMSBWfERTkZZceX1L5ZsXoMIY/1yNiwqWN8DEYM2Au/lCw0Oll9uKWNNyflx9dKT2F6czarETQddObtWE0v0yIoCPqnU=', args);}

$NewsletterSubscription.registerClass('DomZa5.Components.NewsletterSubscription',Corvus.JsBase.Base);

if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();
