

				var __sampleCrypt = new Object();
				__sampleCrypt.encrypt = function(data)
					{
						var d = [];
						for(var i=data.length -1; i>=0; i--)
							d.push(data.substr(i,1));

						return d.join("");
					}
				__sampleCrypt.decrypt = function(data)
					{
						return this.encrypt(data);
					}

				AjaxPro.cryptProvider = __sampleCrypt;

				
AjaxPro.key = "38.103.63.18";

// NameValueCollectionConverter
addNamespace("Ajax.Web");

Ajax.Web.NameValueCollection = function() {
	this.__type = "System.Collections.Specialized.NameValueCollection";
	this.add = function(key, value) {
		if(this[key] == null)
			this[key] = value;
	}
	this.getKeys = function() {
		var keys = [];
		for(key in this)
			if(typeof this[key] != "function")
				keys.push(key);
		return keys;
	}
	this.getValue = function(key) {
		return this[key];
	}
	this.toJSON = function() {
		var o = this;
		o.toJSON = null;
		delete o.toJSON;
		return AjaxPro.toJSON(o);
	}
}

// DataSetConverter
addNamespace("Ajax.Web");

Ajax.Web.DataSet = function(t) {
	this.__type = "System.Data.DataSet,System.Data";
	this.Tables = [];
	this.addTable = function(t) {
		this.Tables.push(t);
	}
	if(t != null) {
		for(var i=0; i<t.length; i++) {
			this.addTable(t[i]);
		}
	}
}

// DataTableConverter
addNamespace("Ajax.Web");

Ajax.Web.DataTable = function(c, r) {
	this.__type = "System.Data.DataTable,System.Data";
	this.Columns = [];
	this.Rows = [];
	this.addColumn = function(name, type) {
		this.Columns.push({Name:name,__type:type});
	}
	this.toJSON = function() {
		var dt = {};
		dt.Columns = [];
		for(var i=0; i<this.Columns.length; i++)
			dt.Columns.push([this.Columns[i].Name, this.Columns[i].__type]);
		dt.Rows = [];
		for(var i=0; i<this.Rows.length; i++) {
			var row = [];
			for(var j=0; j<this.Columns.length; j++)
				row.push(this.Rows[i][this.Columns[j].Name]);
			dt.Rows.push(row);
		}
		return AjaxPro.toJSON(dt);
	}
	this.addRow = function(row) {
		this.Rows.push(row);
	}
	if(c != null) {
		for(var i=0; i<c.length; i++)
			this.addColumn(c[i][0], c[i][1]);
	}
	if(r != null) {
		for(var i=0; i<r.length; i++) {
			var row = {};
			for(var c=0; c<this.Columns.length && c<r[i].length; c++)
				row[this.Columns[c].Name] = r[i][c];
			this.addRow(row);
		}
	}
}

// ProfileBaseConverter
addNamespace("Ajax.Web");

Ajax.Web.Profile = function() {
	this.toJSON = function() {
		throw "Ajax.Web.Profile cannot be converted to JSON format.";
	}
	this.setProperty_callback = function(res) {
	}
	this.setProperty = function(name, object) {
		this[name] = object;
		AjaxPro.Services.Profile.SetProfile({name:o}, this.setProperty_callback.bind(this));
	}
}

// IDictionaryConverter
addNamespace("Ajax.Web");

Ajax.Web.Dictionary = function(type, kT, vT, items) {
	this.__type = type;
	this.kT = kT;
	this.vT = vT;
	this.keys = [];
	this.values = [];
	this.add = function(k, v) {
		this.keys.push(k);
		this.values.push(v);
		return this.values.length -1;
	}
	if(items != null && !isNaN(items.length)) {
		for(var i=0; i<items.length; i++)
			this.add(items[i][0], items[i][1]);
	}
	this.containsKey = function(key) {
		for(var i=0; i<this.keys.length; i++)
			if(this.keys[i] == key) return true;
		return false;
	}
	this.getValue = function(key) {
		for(var i=0; i<this.keys.length && i<this.values.length; i++)
			if(this.keys[i] == key) return this.values[i];
		return null;
	}
	this.toJSON = function() {
		return AjaxPro.toJSON({__type:this.__type,kT:this.kT,vT:this.vT,keys:this.keys,values:this.values});
	}
}

