function showResponse(originalRequest) {
   zonble.sayhtml = '<div class="zonble">';
   zonble.sayhtml += '<p>zonble想告訴您：</p>';
   zonble.sayhtml += '<p>' + originalRequest.responseText + '</p>';
   $('zonblesay').innerHTML = zonble.sayhtml;
   new Effect.Appear('zonblesay');
}

zonble.init = function() {
   if(document.getElementById('zonblesay')) {
      zonble.say = document.getElementById('zonblesay');
      new Effect.Fade('zonblesay');
   }
   if(document.getElementById('zonblep')) {
      zonble.p = document.getElementById('zonblep');
      zonble.p.onmouseover = function() {
	 $('zonblesay').style.display = "none";
	 var zonblesayurl = "http://zonble.net/etc/zonblesay.php";
	 var myAjax = new Ajax.Request(zonblesayurl, {method: 'get', onComplete: showResponse});
      }
      zonble.p.onmouseout = function() {
	 new Effect.Fade('zonblesay');
      }
      zonble.p.onfocus = function() {
	 new Effect.Appear('zonblesay');
      }
      zonble.p.onblur = function() {
	 new Effect.Fade('zonblesay');
      }
   }
   if(document.getElementById('menu_month')) {
      zonble.month = document.getElementById('menu_month');
      zonble.month.onchange = function() {
	 zonble.jumpmenu('parent',this,0);
	 return true;
      }
   }
   window.status = "zonble’s promptbook";
}

Event.observe(window, 'load', zonble.init, false);
