var SearchUriParser = new Class({
	
	Extends: UriParser,
	
	options: {
		onComplete: $empty
	},
	
	requests: {},
	
	send: function()
	{	
		if($H(this.params).getLength() == 0)
		{
			this.fireEvent("onComplete");
			return false;			
		}
	
		new Request.JSON({url:"public/searchcontroller/setsearchparams", onComplete:function(){
			this.fireEvent("onComplete");
		}.bind(this), data: {"QUERY": JSON.encode(this.params)}}).send();
	}
	
});

