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

