YUI has a nice way of creating a namespace for your methods etc. in javascript.
Does jQuery have anything similiar?
Depending on what you're trying to do, jQuery's plugin architecture may be what you're looking for:
$.fn.myPlugin = function() {
return $(this).each(function() {
// do stuff
});
};
or ...
$.fn.myPlugin = function() {
var myNamespace = {
// your stuff
};
};
really it depends on what you're trying to do.
http://docs.jquery.com/Plugins/Authoring