YAHOO.namespace('YAHOO.EU');
YAHOO.EU.AjaxEvent = function(sUrl) {
 this.sUrl = sUrl;
 return this;
};
YAHOO.EU.AjaxEvent.prototype = {
 subscribe : function(o, oScope){
 if(!this.oEvent){
 this.oEvent = new YAHOO.util.CustomEvent("ajaxevent", this, false, YAHOO.util.CustomEvent.FLAT);
 }
 if(oScope){
 this.oEvent.subscribe(o, oScope, true);
 }else{
 this.oEvent.subscribe(o);
 }
 },
 connect : function(sUrl){
 if(sUrl){
 this.sUrl = sUrl;
 }
 var dt = new Date().valueOf();
 if(this.sUrl.indexOf("?") === -1){
 this.sUrl = this.sUrl + "?yaetime=" + dt;
 }else{
 if(this.sUrl.indexOf("yaetime") === -1){
 this.sUrl = this.sUrl + "&yaetime=" + dt;
 }else{
 this.sUrl = this.sUrl.replace(/yaetime=[0-9]+/i, "yaetime=" + dt);
 }
 }
 YAHOO.util.Connect.asyncRequest('GET', this.sUrl, {
 success: this.callback,
 scope: this
 });
 },
 
 callback : function (o){
 var oJSON = eval("(" + o.responseText + ")");
 this.oEvent.fire((typeof oJSON === "object") ? oJSON : null);
 }
};