/*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
= Phoenix Snake Custom JS Framework Version 0.1
= Author: Phoenix Snake
= Create: February 9, 2010
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/

( function( $ ){

   document.addEvent( "domready", function(){
      $$( ".fetch" ).each( function( e ){
         new Request.JSON( {
            url: "serv.main.php",
            onSuccess: function( json, rtext ){
               e.set( "html", rtext );
               e.removeClass( "fetch" );
            }
         } ).send( "cmd=" + e.get( "id" ) );
      } );

   } );
   
} )( document.id )