YUI.add("yql",function(c){if(!YUI.yql){YUI.yql={}}var b="http://query.yahooapis.com/v1/public/yql?",a=function(e,f,d){a.superclass.constructor.apply(this);this._query(e,f,d)};c.extend(a,c.Event.Target,{_receiver:function(d){if(d.query){this.fire("query",d.query)}if(d.error){this.fire("error",d.error)}if(this._cb){this._cb(d)}return this},_query:function(h,i,g){var f=c.stamp({}),d="",e;f=f.replace(/-/g,"_");this._cb=i;YUI.yql[f]=c.bind(this._receiver,this);if(!g){g={}}g.q=h;g.format="json";g.callback="YUI.yql."+f;if(!g.env){g.env="http://datatables.org/alltables.env"}c.each(g,function(l,j){d+=j+"="+encodeURIComponent(l)+"&"});e=b+d;c.Get.script(e,{autopurge:true});return this}});c.yql=a},"1.0",{requires:["get","event-custom"],skinnable:false});