Type.registerNamespace('SCCA.Services');
SCCA.Services.Ads=function() {
SCCA.Services.Ads.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
SCCA.Services.Ads.prototype={
GetRandomAdsHTML:function(PageName,AdType,HasFlash,succeededCallback, failedCallback, userContext) {
return this._invoke(SCCA.Services.Ads.get_path(), 'GetRandomAdsHTML',false,{PageName:PageName,AdType:AdType,HasFlash:HasFlash},succeededCallback,failedCallback,userContext); }}
SCCA.Services.Ads.registerClass('SCCA.Services.Ads',Sys.Net.WebServiceProxy);
SCCA.Services.Ads._staticInstance = new SCCA.Services.Ads();
SCCA.Services.Ads.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; SCCA.Services.Ads._staticInstance._path = value; }
SCCA.Services.Ads.get_path = function() { return SCCA.Services.Ads._staticInstance._path; }
SCCA.Services.Ads.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); }
SCCA.Services.Ads._staticInstance._timeout = value; }
SCCA.Services.Ads.get_timeout = function() { 
return SCCA.Services.Ads._staticInstance._timeout; }
SCCA.Services.Ads.set_defaultUserContext = function(value) { 
SCCA.Services.Ads._staticInstance._userContext = value; }
SCCA.Services.Ads.get_defaultUserContext = function() { 
return SCCA.Services.Ads._staticInstance._userContext; }
SCCA.Services.Ads.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; SCCA.Services.Ads._staticInstance._succeeded = value; }
SCCA.Services.Ads.get_defaultSucceededCallback = function() { 
return SCCA.Services.Ads._staticInstance._succeeded; }
SCCA.Services.Ads.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; SCCA.Services.Ads._staticInstance._failed = value; }
SCCA.Services.Ads.get_defaultFailedCallback = function() { 
return SCCA.Services.Ads._staticInstance._failed; }
SCCA.Services.Ads.set_path("/AjaxService/Ads.asmx");
SCCA.Services.Ads.GetRandomAdsHTML= function(PageName,AdType,HasFlash,onSuccess,onFailed,userContext) {SCCA.Services.Ads._staticInstance.GetRandomAdsHTML(PageName,AdType,HasFlash,onSuccess,onFailed,userContext); }
