/*
 * jMozes
 *
 * Copyright (c) 2009 Nate Flood
 *
 * Licensed under the GPL license:
 *   http://www.gnu.org/licenses/gpl.html
 *
 * Author URL:
 *   http://www.lookingtotheuttereast.com/
 *
 * Cross Domain Web Service
 *   http://www.lookingtotheuttereast.com/mozes/proxy.php?
 *
 *		takes these arguments:
 *		keyword
 *		origin (what text to start at)
 *		total (how many to retrieve)
 */
 
(function($){
  $.extend({
    jmozes : function(keyword, origin, total, fnk){
      var url = "http://www.lookingtotheuttereast.com/mozes/proxy.php?keyword="+ keyword +"&origin=" + origin + "&total="+ total + "&jsoncallback=?";
      var info = {};
      $.getJSON(url, function(data){
        if(typeof fnk == 'function') fnk.call(this, data);
      });
    }
  });
})(jQuery);
