Ajax.FlickrRequest = Ajax.ScriptRequest.extend({
	setOptions: function(options){
		this.url = "http://api.flickr.com/services/rest/?method=" + this.url;
		this.options = {
			callbackName: "jsoncallback",
			parameters: {
				api_key: "9b629a5deea5f5e9423ddab9eebca3be",
				format: "json"
			}
		};
	}
});

Ajax.YahooImageSearch = Ajax.ScriptRequest.extend({
	setOptions: function(options){
		this.url = "http://search.yahooapis.com/ImageSearchService/V1/imageSearch?query=" + this.url;
		this.options = {
			callbackName: "callback",
			parameters: {
				appid: "dO4kwXvV34Er4Sl8Ju9fPJXAcj3W3Fm0FxYCDk.1k3f5kDPpvdI4my3LPIN2gzqQQU9c5g--",
				output: "json"
			}
		};
	}
});

Ajax.YahooWebSearch = Ajax.ScriptRequest.extend({
	setOptions: function(options){
		this.url = "http://search.yahooapis.com/WebSearchService/V1/webSearch?query=" + this.url;
		this.options = {
			callbackName: "callback",
			parameters: {
				appid: "dO4kwXvV34Er4Sl8Ju9fPJXAcj3W3Fm0FxYCDk.1k3f5kDPpvdI4my3LPIN2gzqQQU9c5g--",
				output: "json"
			}
		};
	}
});

Ajax.DeliciousRequest = Ajax.ScriptRequest.extend({
	setOptions: function(options){
		this.url = "http://del.icio.us/feeds/json/" + this.url;
		this.options = {callbackName: "callback"};
	}
});	
		
Ajax.XmlJsonRequest = Ajax.ScriptRequest.extend({
	setOptions: function(options){
		this.options = {
			callbackName: "_callback",
			parameters: {
				_id: "DJEg41Ac3BG8IAI2E5PZnA",
				_render: "json",
				url: this.url
			}
		};
		this.url = "http://pipes.yahoo.com/pipes/pipe.run";
	}
});			
